/* ===== 全局样式重置 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a0a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --accent-gold: #ffd700;
    --accent-emerald: #00d9a5;
    --text-light: #f8f9fa;
    --text-muted: #b8c5d6;
    --bg-dark: #0f0f23;
    --bg-card: #1e1e3f;
    --gradient-main: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-accent: linear-gradient(135deg, #e94560 0%, #ff6b9d 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(233, 69, 96, 0.3);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== 排版系统 ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== 布局容器 ===== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-card);
}

/* ===== 顶部导航 ===== */
.site-header {
    background: var(--gradient-main);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-wrapper img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-nav a {
    padding: 0.6rem 1.2rem;
    color: var(--text-light);
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(233, 69, 96, 0.2);
    color: var(--accent-color);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    background: var(--gradient-accent);
    color: #fff !important;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.5);
}

/* 移动端菜单 */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumb-list li::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: var(--text-muted);
}

.breadcrumb-list a:hover {
    color: var(--accent-color);
}

/* ===== 英雄区域 ===== */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: var(--gradient-main);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.3;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-title span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-accent);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* ===== 特色数据展示 ===== */
.stats-bar {
    background: var(--bg-card);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ===== 游戏卡片网格 ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(233, 69, 96, 0.3);
}

.game-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-card-img img {
    transform: scale(1.1);
}

.game-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.8rem;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.game-card-body {
    padding: 1.5rem;
}

.game-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.game-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.game-rtp {
    font-size: 0.85rem;
    color: var(--accent-emerald);
}

.game-link {
    padding: 0.5rem 1rem;
    background: rgba(233, 69, 96, 0.2);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    transition: var(--transition);
}

.game-link:hover {
    background: var(--accent-color);
    color: #fff;
}

/* ===== 内容区块 ===== */
.content-block {
    margin-bottom: 3rem;
}

.content-block h2 {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.content-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-box:hover {
    border-color: rgba(233, 69, 96, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-box h4 {
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

/* ===== 支付方式 ===== */
.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.payment-icon {
    width: 80px;
    height: 50px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.payment-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===== 用户评论 ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.review-author {
    flex: 1;
}

.review-name {
    font-weight: 600;
    color: var(--text-light);
}

.review-location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-rating {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.review-content {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ===== FAQ手风琴 ===== */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 2rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== 作者信息 ===== */
.author-box {
    display: flex;
    gap: 2rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    align-items: flex-start;
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    flex-shrink: 0;
}

.author-info h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.author-title {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.author-bio {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== 牌照区域 ===== */
.license-box {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.license-badge {
    width: 120px;
    height: auto;
}

.license-info {
    flex: 1;
    min-width: 250px;
}

.license-info h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* ===== 页脚 ===== */
.site-footer {
    background: var(--primary-color);
    padding: 4rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-payment {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-payment img {
    height: 32px;
    width: auto;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    margin: 1rem auto 0;
}

/* ===== 内页样式 ===== */
.page-header {
    background: var(--gradient-main);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    opacity: 0.9;
}

.article-content {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin: -3rem auto 3rem;
    max-width: 1000px;
    position: relative;
    z-index: 2;
}

.article-content h2 {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-img {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.article-img img {
    width: 100%;
    height: auto;
}

.article-img figcaption {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.info-table th,
.info-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-table th {
    background: rgba(233, 69, 96, 0.1);
    color: var(--accent-color);
    font-weight: 600;
    width: 35%;
}

.info-table td {
    color: var(--text-muted);
}

.tip-box {
    background: rgba(0, 217, 165, 0.1);
    border-left: 4px solid var(--accent-emerald);
    padding: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: 1.5rem 0;
}

.tip-box h4 {
    color: var(--accent-emerald);
    margin-bottom: 0.75rem;
}

.warning-box {
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid var(--accent-gold);
    padding: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: 1.5rem 0;
}

.warning-box h4 {
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .article-content {
        padding: 2rem;
        margin: -2rem 1rem 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    .header-inner {
        position: relative;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-payment {
        justify-content: center;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .license-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .game-card-img {
        height: 160px;
    }
    
    .article-content {
        padding: 1.5rem;
        margin: -1.5rem 0.5rem 1.5rem;
    }
    
    .info-table th,
    .info-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-accent { color: var(--accent-color); }
.text-emerald { color: var(--accent-emerald); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
