/* 百家乐网站主样式表 */
/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-top {
    background: #0f0f1a;
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: #ffd700;
    margin-left: 15px;
}

.header-top a:hover {
    color: #fff;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo span {
    color: #fff;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 10px 18px;
    color: #fff;
    font-size: 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #1a1a2e;
}

/* 横幅区域 */
.banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, #16213e 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ffd700" stroke-width="0.5" opacity="0.1"/></svg>') repeat;
    background-size: 100px 100px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
}

.banner h1 span {
    color: #ffd700;
}

.banner p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #1a1a2e;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,215,0,0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffd700;
    color: #ffd700;
    margin-left: 15px;
}

.btn-outline:hover {
    background: #ffd700;
    color: #1a1a2e;
}

/* 内容区域 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #1a1a2e;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
}

.section-title p {
    color: #666;
    font-size: 18px;
    margin-top: 20px;
}

/* 游戏卡片 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.game-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.game-card-img {
    height: 180px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.game-card-content {
    padding: 25px;
}

.game-card h3 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.game-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* 特色区域 */
.features {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #ffd700;
}

.feature-item p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
}

/* 关于我们 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.about-text p {
    color: #666;
    margin-bottom: 15px;
    line-height: 2;
}

.about-image {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-radius: 15px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 80px;
}

/* 新闻区域 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.news-card-img {
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 40px;
}

.news-card-content {
    padding: 25px;
}

.news-card-date {
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-card h3 a:hover {
    color: #ffd700;
}

.news-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.news-more {
    display: inline-block;
    margin-top: 15px;
    color: #ffd700;
    font-weight: bold;
}

.news-more:hover {
    color: #ffaa00;
}

/* 页脚 */
.footer {
    background: #0f0f1a;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3,
.footer-links h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffd700;
}

.footer-about p {
    color: #aaa;
    line-height: 1.8;
    font-size: 14px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #ffd700;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* 内页样式 */
.page-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #aaa;
}

.breadcrumb a {
    color: #ffd700;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-content {
    padding: 60px 0;
}

.content-box {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.content-box h2 {
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.content-box h3 {
    font-size: 22px;
    color: #1a1a2e;
    margin: 30px 0 15px;
}

.content-box p {
    color: #666;
    line-height: 2;
    margin-bottom: 15px;
}

.content-box ul {
    margin: 15px 0 15px 20px;
}

.content-box ul li {
    color: #666;
    line-height: 2;
    position: relative;
    padding-left: 20px;
}

.content-box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ffd700;
}

/* 新闻详情页 */
.news-detail {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-detail-header h1 {
    font-size: 32px;
    color: #1a1a2e;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-meta {
    color: #999;
    font-size: 14px;
}

.news-meta span {
    margin-right: 20px;
}

.news-body {
    line-height: 2;
    color: #444;
}

.news-body p {
    margin-bottom: 20px;
}

.news-body h2 {
    font-size: 24px;
    color: #1a1a2e;
    margin: 30px 0 15px;
}

.news-body h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin: 25px 0 15px;
}

.news-nav {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.news-nav a {
    color: #666;
    font-size: 14px;
}

.news-nav a:hover {
    color: #ffd700;
}

/* 新闻列表页 */
.news-list-item {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-img {
    width: 280px;
    height: 180px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 30px;
}

.news-list-content h3 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.news-list-content h3 a:hover {
    color: #ffd700;
}

.news-list-content .date {
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
}

.news-list-content p {
    color: #666;
    line-height: 1.8;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .banner h1 {
        font-size: 32px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .news-list-item {
        flex-direction: column;
    }
    
    .news-list-img {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-menu a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .content-box {
        padding: 25px;
    }
}
