/* 
 * 皇冠娱乐城 - 主样式表
 * 独特的紫金配色方案 + 现代玻璃态设计
 * 移动端优先响应式布局
 */

/* CSS变量定义 */
:root {
    --primary-gold: #D4AF37;
    --primary-purple: #4A1A6B;
    --deep-purple: #2D0A4E;
    --accent-pink: #FF6B9D;
    --accent-cyan: #00D4FF;
    --bg-dark: #0F0A1A;
    --bg-card: rgba(74, 26, 107, 0.4);
    --text-light: #FFFFFF;
    --text-muted: #B8A8C8;
    --glass-border: rgba(212, 175, 55, 0.3);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4E4A6 50%, #D4AF37 100%);
    --gradient-purple: linear-gradient(180deg, #4A1A6B 0%, #2D0A4E 100%);
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* 基础重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(74, 26, 107, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 导航栏 - 非sticky */
.main-nav {
    background: var(--gradient-purple);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    background: var(--bg-card);
    color: var(--primary-gold);
}

.cta-btn {
    background: var(--gradient-gold);
    color: var(--deep-purple) !important;
    font-weight: 700;
    padding: 0.8rem 1.5rem !important;
    border-radius: 25px !important;
    box-shadow: var(--shadow-glow);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.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(--primary-gold);
    text-decoration: none;
}

.breadcrumb-list span {
    color: var(--text-muted);
}

/* Hero区域 */
.hero-section {
    position: relative;
    padding: 3rem 0;
    overflow: hidden;
}

.hero-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 10, 78, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* 玻璃态卡片 */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* 章节标题 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 游戏卡片网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.game-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.game-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.game-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.game-card-body {
    padding: 1.5rem;
}

.game-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 0.8rem;
}

.game-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.game-card-link {
    display: inline-block;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.game-card-link:hover {
    color: var(--primary-gold);
}

/* 内容区块 */
.content-section {
    padding: 4rem 0;
}

.content-block {
    margin-bottom: 3rem;
}

.content-block h2 {
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--glass-border);
}

.content-block h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin: 1.5rem 0 1rem;
}

.content-block p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-align: justify;
}

.content-block ul, .content-block ol {
    color: var(--text-muted);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-block li {
    margin-bottom: 0.5rem;
}

/* 作者信息卡片 */
.author-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin: 2rem 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.author-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 用户评论 */
.reviews-section {
    padding: 4rem 0;
    background: var(--gradient-purple);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: rgba(15, 10, 26, 0.6);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-light);
}

.reviewer-location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-stars {
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.review-content {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ区域 */
.faq-section {
    padding: 4rem 0;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.faq-question {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    color: var(--primary-gold);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 支付方式 */
.payment-section {
    padding: 3rem 0;
    text-align: center;
}

.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.payment-icons img {
    height: 40px;
    width: auto;
    filter: grayscale(0.3);
    transition: filter 0.3s;
}

.payment-icons img:hover {
    filter: grayscale(0);
}

/* 牌照区域 */
.license-section {
    padding: 3rem 0;
    text-align: center;
    background: var(--bg-card);
}

.license-badge {
    max-width: 200px;
    margin: 1rem auto;
}

.license-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 页脚 */
.main-footer {
    background: var(--deep-purple);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--primary-gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    text-align: center;
}

.footer-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-badges img {
    height: 50px;
    width: auto;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-gold);
    color: var(--deep-purple);
}

/* 响应式设计 - 移动端优先 */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        justify-content: center;
    }
    
    .hero-overlay {
        padding: 1rem;
    }
    
    .author-card {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 图片懒加载占位 */
img[loading="lazy"] {
    background: var(--bg-card);
}

/* 打印样式 */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .main-nav, .main-footer {
        display: none;
    }
}
