/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c41e3a;
    --secondary-color: #d4af37;
    --accent-color: #1a5490;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --bg-light: #ffffff;
    --bg-dark: #0f0f0f;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'SimHei', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    overflow-x: hidden;
}

/* 容器布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

/* 导航栏样式 */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b1428 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 60px;
    width: auto;
}

.site-title {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* Hero区域 */
.hero-section {
    background: linear-gradient(135deg, rgba(26,84,144,0.95) 0%, rgba(196,30,58,0.95) 100%),
                url('../images/hero-banner.webp') center/cover no-repeat;
    min-height: 600px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 35px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #b8941f 100%);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 6px 25px rgba(212,175,55,0.4);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 35px rgba(212,175,55,0.6);
}

/* 卡片网格布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.game-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: var(--transition);
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.2);
    border-color: var(--secondary-color);
}

.game-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover img {
    transform: scale(1.08);
}

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

.game-card h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.game-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.game-card .learn-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.game-card .learn-more:hover {
    gap: 15px;
    color: var(--primary-color);
}

/* 内容区块 */
.content-block {
    background: var(--bg-light);
    padding: 50px;
    border-radius: var(--border-radius);
    margin: 40px 0;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.content-block h2 {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
    border-left: 6px solid var(--secondary-color);
    padding-left: 20px;
}

.content-block h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin: 35px 0 20px;
    font-weight: 600;
}

.content-block p {
    margin-bottom: 20px;
    line-height: 1.9;
    color: #444;
}

.content-block ul {
    margin: 20px 0 20px 30px;
    line-height: 2;
}

.content-block li {
    margin-bottom: 12px;
    color: #555;
}

/* FAQ样式 */
.faq-container {
    margin-top: 50px;
}

.faq-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 5px solid var(--secondary-color);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateX(5px);
}

.faq-item h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.faq-item p {
    color: #555;
    line-height: 1.8;
}

/* 用户评论样式 */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.review-card {
    background: var(--bg-light);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 5rem;
    color: var(--secondary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

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

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.reviewer-info h5 {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
}

.reviewer-info .location {
    color: #777;
    font-size: 0.95rem;
}

.rating {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.review-card p {
    color: #555;
    line-height: 1.7;
    font-style: italic;
}

.review-date {
    color: #999;
    font-size: 0.9rem;
    margin-top: 15px;
    text-align: right;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #999;
}

.payment-icons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.payment-icons img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: var(--transition);
}

.payment-icons img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
}

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

.breadcrumb span {
    color: #666;
    margin: 0 8px;
}

/* 响应式设计 - 移动端优先 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        justify-content: center;
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .content-block {
        padding: 30px 20px;
    }
    
    .content-block h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .logo-container img {
        height: 45px;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
}

/* 性能优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}
