/* 
 * 皇冠娱乐城 - 主样式表
 * 独特的紫金配色方案 + 现代化设计
 * 移动端优先响应式设计
 */

/* CSS变量定义 */
:root {
    --primary-purple: #4a1a6b;
    --secondary-purple: #6b2d9e;
    --accent-gold: #d4af37;
    --light-gold: #f5e6a3;
    --dark-bg: #1a0a2e;
    --card-bg: #2d1b4e;
    --text-light: #f8f4ff;
    --text-muted: #b8a8d4;
    --success-green: #28a745;
    --warning-red: #dc3545;
    --gradient-primary: linear-gradient(135deg, #4a1a6b 0%, #6b2d9e 50%, #8b4cc4 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f5e6a3 50%, #d4af37 100%);
    --shadow-soft: 0 4px 20px rgba(74, 26, 107, 0.3);
    --shadow-strong: 0 8px 40px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 重置和基础样式 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Noto Sans SC', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 链接样式 */
a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--light-gold);
    text-decoration: underline;
}

/* 图片响应式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 头部导航 - 非sticky */
.site-header {
    background: var(--gradient-primary);
    padding: 12px 0;
    position: relative;
    z-index: 100;
    box-shadow: var(--shadow-soft);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-wrap img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: block;
    background: var(--accent-gold);
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--primary-purple);
    font-weight: 600;
}

.menu-toggle:hover {
    background: var(--light-gold);
}

/* 导航菜单 */
.main-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
}

.main-nav.active {
    display: flex;
}

.main-nav a {
    display: block;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
}

.main-nav a:hover,
.main-nav a.current {
    background: var(--accent-gold);
    color: var(--primary-purple);
    text-decoration: none;
}

/* CTA按钮 */
.cta-btn {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--primary-purple) !important;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: var(--transition-smooth);
    text-decoration: none !important;
    text-align: center;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

/* Hero区域 */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 16px;
    background: linear-gradient(rgba(26, 10, 46, 0.7), rgba(26, 10, 46, 0.85)), url('../images/hero-banner.jpg') center/cover no-repeat;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 24px;
    opacity: 0.95;
}

/* 面包屑导航 */
.breadcrumb {
    background: rgba(45, 27, 78, 0.8);
    padding: 12px 0;
    font-size: 0.875rem;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.breadcrumb-list li::after {
    content: '›';
    margin-left: 8px;
    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);
}

/* 内容区块 */
.content-section {
    padding: 48px 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-title.center {
    text-align: center;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* 游戏卡片网格 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.game-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.game-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.game-card-body {
    padding: 16px;
}

.game-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.game-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.game-card .cta-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.875rem;
}

/* 特色区块 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition-smooth);
}

.feature-item:hover {
    background: var(--secondary-purple);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 支付方式 */
.payment-section {
    background: var(--card-bg);
    padding: 32px 16px;
    border-radius: var(--border-radius);
    margin: 32px 0;
}

.payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

.payment-item {
    background: rgba(255,255,255,0.1);
    padding: 16px 24px;
    border-radius: 8px;
    text-align: center;
    min-width: 100px;
}

.payment-item img {
    height: 32px;
    margin: 0 auto 8px;
}

/* 用户评论 */
.reviews-section {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    padding: 48px 0;
}

.review-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-gold);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--accent-gold);
}

.reviewer-location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.review-content {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ手风琴 */
.faq-section {
    padding: 48px 0;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--accent-gold);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.1);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition-smooth);
}

.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 20px 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 关于我们 */
.about-section {
    background: var(--card-bg);
    padding: 48px 0;
}

.about-content {
    display: grid;
    gap: 32px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-light);
    line-height: 1.9;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
}

/* 牌照信息 */
.license-section {
    text-align: center;
    padding: 48px 16px;
    background: rgba(45, 27, 78, 0.5);
}

.license-badge {
    max-width: 200px;
    margin: 0 auto 20px;
}

.license-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.license-number {
    font-weight: 600;
    color: var(--accent-gold);
    display: block;
    margin-top: 8px;
}

/* 客户支持 */
.support-section {
    padding: 48px 0;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.support-item {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    text-align: center;
}

.support-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
}

.support-title {
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.support-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 负责任博彩 */
.responsible-section {
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0a2e 100%);
    padding: 48px 0;
    border-top: 3px solid var(--warning-red);
}

.responsible-content {
    text-align: center;
}

.age-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.responsible-title {
    color: var(--warning-red);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.responsible-text {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 24px;
    line-height: 1.8;
}

.responsible-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.responsible-links a {
    padding: 10px 20px;
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid var(--warning-red);
    border-radius: 25px;
    color: var(--warning-red);
    font-size: 0.9rem;
}

.responsible-links a:hover {
    background: var(--warning-red);
    color: white;
    text-decoration: none;
}

/* 页脚 */
.site-footer {
    background: linear-gradient(180deg, var(--primary-purple) 0%, #0d0518 100%);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--accent-gold);
    color: var(--primary-purple);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-payment {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-payment img {
    height: 28px;
    opacity: 0.8;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 12px;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* 内页样式 */
.page-header {
    background: var(--gradient-primary);
    padding: 32px 0;
    text-align: center;
}

.page-title {
    font-size: 1.75rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.article-content {
    padding: 32px 0;
}

.article-content h2 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary-purple);
}

.article-content h3 {
    color: var(--light-gold);
    font-size: 1.25rem;
    margin: 24px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
    color: var(--text-light);
    line-height: 1.9;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-light);
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-image {
    margin: 24px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.article-image img {
    width: 100%;
}

.article-image figcaption {
    background: var(--card-bg);
    padding: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 信息表格 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.info-table th,
.info-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-table th {
    background: var(--secondary-purple);
    color: var(--accent-gold);
    font-weight: 600;
}

.info-table td {
    color: var(--text-light);
}

.info-table tr:last-child td {
    border-bottom: none;
}

/* 提示框 */
.tip-box {
    background: rgba(212, 175, 55, 0.15);
    border-left: 4px solid var(--accent-gold);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.tip-box-title {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 8px;
}

.tip-box p {
    color: var(--text-light);
    margin: 0;
}

/* APP下载页面 */
.app-section {
    padding: 48px 0;
    text-align: center;
}

.app-banner {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 32px;
    box-shadow: var(--shadow-strong);
}

.app-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.app-feature {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
}

.app-feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.app-feature-title {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 8px;
}

.app-download-btns {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 300px;
    margin: 32px auto;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--card-bg);
    border: 2px solid var(--accent-gold);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.download-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-purple);
    text-decoration: none;
}

.download-btn-icon {
    font-size: 1.5rem;
}

/* 作者信息 */
.author-box {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    margin: 32px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
}

.author-info {
    flex: 1;
    min-width: 200px;
}

.author-name {
    color: var(--accent-gold);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.author-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.author-bio {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 媒体查询 - 平板及以上 */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .menu-toggle {
        display: none;
    }

    .main-nav {
        display: flex;
        flex-direction: row;
        width: auto;
        padding-top: 0;
        gap: 4px;
    }

    .main-nav a {
        padding: 10px 16px;
        background: transparent;
    }

    .hero-section {
        min-height: 70vh;
        padding: 60px 24px;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .support-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .app-features {
        grid-template-columns: repeat(4, 1fr);
    }

    .app-download-btns {
        flex-direction: row;
        max-width: 500px;
    }

    .about-content {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

/* 媒体查询 - 桌面 */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .game-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .content-section {
        padding: 64px 0;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* 懒加载图片占位 */
img[loading="lazy"] {
    background: var(--card-bg);
}

/* 打印样式 */
@media print {
    .site-header,
    .site-footer,
    .cta-btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
