/* ========================================
   c7娱乐 - 主样式表
   独特的紫金配色方案 + 卡片式布局
   ======================================== */

/* CSS变量定义 */
:root {
    --primary-gold: #D4AF37;
    --primary-purple: #2D1B4E;
    --secondary-purple: #4A2C7A;
    --accent-gold: #FFD700;
    --dark-bg: #1A0F2E;
    --card-bg: #2A1A4A;
    --text-light: #F5F5F5;
    --text-muted: #B8A8D0;
    --success-green: #28A745;
    --warning-orange: #FFA500;
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #D4AF37 100%);
    --gradient-purple: linear-gradient(180deg, #2D1B4E 0%, #1A0F2E 100%);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    --shadow-card: 0 8px 32px 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 {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--gradient-purple);
    color: var(--text-light);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 图片懒加载优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* ========== 头部导航 ========== */
.site-header {
    background: rgba(26, 15, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    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 {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.5rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.nav-list a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary-gold);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-list a:hover::after {
    width: 60%;
}

/* CTA按钮 */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--gradient-gold);
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

/* ========== 面包屑导航 ========== */
.breadcrumb-nav {
    background: rgba(42, 26, 74, 0.5);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.breadcrumb-list {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.breadcrumb-list a:hover {
    color: var(--primary-gold);
}

.breadcrumb-list .separator {
    color: var(--text-muted);
}

.breadcrumb-list .current {
    color: var(--primary-gold);
}

/* ========== Hero区域 ========== */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 1.5rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 15, 46, 0.7) 0%, rgba(26, 15, 46, 0.9) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta-secondary {
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid var(--primary-gold);
    transition: var(--transition-smooth);
}

.hero-cta-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* ========== 主要内容区域 ========== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-block {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    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-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* ========== 游戏卡片网格 ========== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.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.5s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.08);
}

.game-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-gold);
    color: var(--primary-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.game-card-content {
    padding: 1.5rem;
}

.game-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.game-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    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(212, 175, 55, 0.1);
}

.game-card-rtp {
    font-size: 0.85rem;
    color: var(--success-green);
}

.game-card-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.game-card-link:hover {
    text-decoration: underline;
}

/* ========== 特色区块 ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-gold);
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========== 内容文章区 ========== */
.article-content {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.article-content h2 {
    font-size: 1.75rem;
    color: var(--primary-gold);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-size: 1.35rem;
    color: var(--text-light);
    margin: 1.5rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.article-content a:hover {
    text-decoration: underline;
}

/* ========== 支付方式区域 ========== */
.payment-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.payment-item {
    background: rgba(26, 15, 46, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-smooth);
}

.payment-item:hover {
    background: rgba(212, 175, 55, 0.1);
}

.payment-item img {
    height: 40px;
    margin: 0 auto 0.75rem;
    object-fit: contain;
}

.payment-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========== FAQ区域 ========== */
.faq-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(26, 15, 46, 0.5);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    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.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========== 用户评论区 ========== */
.reviews-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: rgba(26, 15, 46, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.review-info h4 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.review-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-rating {
    color: var(--accent-gold);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.review-content {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.review-date {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ========== 作者信息区 ========== */
.author-box {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin: 2rem 0;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-gold);
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.25rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.author-bio {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== 标签云 ========== */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tag-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.tag-link:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary-gold);
    border-color: var(--primary-gold);
}

/* ========== 页脚 ========== */
.site-footer {
    background: rgba(26, 15, 46, 0.98);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-column h4 {
    font-size: 1.1rem;
    color: var(--primary-gold);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-column a:hover {
    color: var(--primary-gold);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--primary-gold);
    color: var(--primary-purple);
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.footer-badges img {
    height: 50px;
    object-fit: contain;
}

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.footer-legal a:hover {
    color: var(--primary-gold);
}

.age-restriction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--warning-orange);
    font-weight: 700;
    font-size: 1rem;
}

.age-badge {
    width: 36px;
    height: 36px;
    border: 2px solid var(--warning-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* ========== 响应式设计 ========== */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-list a {
        padding: 1rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: transparent;
        border: none;
        color: var(--primary-gold);
        font-size: 2rem;
        cursor: pointer;
    }
    
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .hero-section {
        min-height: 60vh;
        padding: 3rem 1rem;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .cta-button,
    .hero-cta-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ========== 动画效果 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* ========== 打印样式 ========== */
@media print {
    .site-header,
    .site-footer,
    .cta-button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .article-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
