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

:root {
    --primary-color: #1a1f3a;
    --secondary-color: #6b46c1;
    --accent-color: #fbbf24;
    --text-light: #ffffff;
    --text-dark: #1f2937;
    --bg-gradient: linear-gradient(135deg, #1a1f3a 0%, #2d1b4e 50%, #1a1f3a 100%);
}

body {
    font-family: 'Microsoft YaHei', 'Noto Sans SC', 'PingFang SC', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: #f9fafb;
    overflow-x: hidden;
}

/* 导航栏 - 非sticky */
header {
    background: var(--bg-gradient);
    padding: 1.2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.site-title {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

nav a:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.cta-button {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: var(--text-dark);
    padding: 0.75rem 1.8rem;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.6);
}

/* 移动端菜单 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero区域 */
.hero-section {
    background: var(--bg-gradient);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-banner.webp') center/cover no-repeat;
    opacity: 0.25;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-description {
    font-size: 1.3rem;
    color: #e5e7eb;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* 内容区域 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 游戏卡片网格 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.game-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(107, 70, 193, 0.2);
}

.game-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.game-card-content {
    padding: 1.5rem;
}

.game-card-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.game-card-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

/* 特色功能区 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(107, 70, 193, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    object-fit: contain;
}

.feature-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.feature-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

/* FAQ区域 */
.faq-container {
    max-width: 900px;
    margin: 3rem auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-question {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.faq-answer {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
}

/* 用户评论 */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.review-rating {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.review-location {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.review-date {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 1.5rem 0;
    background: #f3f4f6;
}

.breadcrumb-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-separator {
    color: #9ca3af;
}

/* 页脚 */
footer {
    background: var(--bg-gradient);
    color: var(--text-light);
    padding: 4rem 1.5rem 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

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

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

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

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #d1d5db;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.age-restriction {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    margin-top: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    nav ul.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .game-grid,
    .features-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* 图片懒加载优化 */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* 内容文本样式 */
.content-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.5rem;
}

.content-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.info-table th,
.info-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.info-table th {
    background: var(--secondary-color);
    color: white;
    font-weight: 600;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:hover {
    background: #f9fafb;
}
