/* =====================================================
   {{SITE_NAME}} - 主样式表
   独特紫金配色方案 | 移动优先响应式设计
   ===================================================== */

/* CSS变量定义 */
:root {
    --primary-purple: #6B21A8;
    --primary-gold: #F59E0B;
    --dark-purple: #4C1D95;
    --light-purple: #A855F7;
    --accent-gold: #FCD34D;
    --bg-dark: #1E1B4B;
    --bg-darker: #0F0E24;
    --text-light: #F8FAFC;
    --text-muted: #CBD5E1;
    --success-green: #10B981;
    --warning-red: #EF4444;
    --card-bg: rgba(107, 33, 168, 0.15);
    --border-color: rgba(168, 85, 247, 0.3);
    --shadow-purple: 0 4px 20px rgba(107, 33, 168, 0.4);
    --shadow-gold: 0 4px 20px rgba(245, 158, 11, 0.3);
    --gradient-main: linear-gradient(135deg, var(--dark-purple) 0%, var(--bg-dark) 50%, var(--bg-darker) 100%);
    --gradient-gold: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    --gradient-purple: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
}

/* 基础重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--gradient-main);
    color: var(--text-light);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 图片响应式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 链接样式 */
a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =====================================================
   导航栏样式 (非sticky)
   ===================================================== */
.main-header {
    background: linear-gradient(180deg, var(--bg-darker) 0%, transparent 100%);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-area img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.logo-area h1 {
    font-size: 1.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.main-nav {
    width: 100%;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-list li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-list li a:hover {
    background: var(--card-bg);
    color: var(--accent-gold);
    text-decoration: none;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-gold);
    color: var(--bg-darker) !important;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: var(--shadow-gold);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
    text-decoration: none;
}

/* =====================================================
   面包屑导航
   ===================================================== */
.breadcrumb-nav {
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.875rem;
}

.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-gold);
}

/* =====================================================
   Hero区域
   ===================================================== */
.hero-section {
    position: relative;
    padding: 3rem 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
}

.feature-badge svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-gold);
}

/* =====================================================
   游戏卡片网格
   ===================================================== */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 1.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-muted);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 2rem 0;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-purple);
    border-color: var(--light-purple);
}

.game-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.05);
}

.game-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-gold);
    color: var(--bg-darker);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
}

.game-card-content {
    padding: 1rem;
}

.game-card-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.game-card-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.game-card-footer {
    padding: 0 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rtp-badge {
    font-size: 0.8rem;
    color: var(--success-green);
}

.play-link {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 600;
}

/* =====================================================
   内容区块
   ===================================================== */
.content-section {
    padding: 3rem 0;
}

.content-section:nth-child(even) {
    background: rgba(0, 0, 0, 0.2);
}

.content-block {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.content-block h3 {
    font-size: 1.25rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.content-block p {
    margin-bottom: 1rem;
    text-align: justify;
}

.content-block ul, .content-block ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-block li {
    margin-bottom: 0.5rem;
}

/* =====================================================
   用户评论
   ===================================================== */
.reviews-section {
    padding: 3rem 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.reviewer-info h4 {
    font-size: 1rem;
    color: var(--text-light);
}

.reviewer-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-stars {
    color: var(--primary-gold);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.review-content {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.review-date {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* =====================================================
   FAQ手风琴
   ===================================================== */
.faq-section {
    padding: 3rem 0;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(168, 85, 247, 0.1);
}

.faq-question h4 {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.faq-icon {
    width: 24px;
    height: 24px;
    fill: var(--accent-gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* =====================================================
   支付方式
   ===================================================== */
.payment-section {
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.payment-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.payment-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.payment-item img {
    max-height: 40px;
    margin: 0 auto 0.75rem;
}

.payment-item h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.payment-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =====================================================
   牌照区域
   ===================================================== */
.license-section {
    padding: 3rem 0;
    text-align: center;
}

.license-badge {
    display: inline-block;
    background: var(--card-bg);
    border: 2px solid var(--accent-gold);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
}

.license-badge img {
    max-width: 120px;
    margin: 0 auto 1rem;
}

.license-badge h4 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.license-badge p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =====================================================
   页脚
   ===================================================== */
.main-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: var(--accent-gold);
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-purple);
    border-color: var(--light-purple);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: var(--text-light);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.age-restriction {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--warning-red);
    border-radius: 8px;
    font-weight: 700;
    margin-top: 1rem;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.payment-icons img {
    height: 30px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.payment-icons img:hover {
    opacity: 1;
}

/* =====================================================
   内页样式
   ===================================================== */
.page-hero {
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--bg-dark) 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: 2rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: var(--text-muted);
}

.article-content {
    padding: 2rem 0;
}

.article-content h2 {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-content h3 {
    font-size: 1.25rem;
    color: var(--light-purple);
    margin: 1.5rem 0 1rem;
}

.article-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.article-image img {
    width: 100%;
}

.article-image figcaption {
    padding: 0.75rem;
    background: var(--card-bg);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
}

.info-table th, .info-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.info-table th {
    background: rgba(107, 33, 168, 0.3);
    color: var(--accent-gold);
    font-weight: 600;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.tip-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid var(--success-green);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.tip-box h4 {
    color: var(--success-green);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid var(--warning-red);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.warning-box h4 {
    color: var(--warning-red);
    margin-bottom: 0.75rem;
}

/* =====================================================
   APP下载页面
   ===================================================== */
.app-download-section {
    padding: 3rem 0;
    text-align: center;
}

.app-preview {
    max-width: 300px;
    margin: 2rem auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-purple);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    margin: 2rem auto;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-light);
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--primary-purple);
    border-color: var(--light-purple);
    text-decoration: none;
}

.download-btn svg {
    width: 28px;
    height: 28px;
    fill: var(--text-light);
}

.app-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.app-feature {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.app-feature svg {
    width: 40px;
    height: 40px;
    fill: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.app-feature h4 {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.app-feature p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =====================================================
   响应式设计 - 平板
   ===================================================== */
@media (min-width: 768px) {
    .nav-wrapper {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .main-nav {
        width: auto;
    }
    
    .nav-list {
        gap: 0.25rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-buttons {
        flex-direction: row;
        max-width: 500px;
    }
    
    .app-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =====================================================
   响应式设计 - 桌面
   ===================================================== */
@media (min-width: 1024px) {
    .hero-content h2 {
        font-size: 3rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .payment-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =====================================================
   动画效果
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* =====================================================
   工具类
   ===================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.hidden { display: none; }
.visible { display: block; }
