/* 
 * c7娱乐 - 主样式表
 * 2026年最新设计 - 移动端优先响应式布局
 * 独特配色方案：深紫渐变 + 金色点缀
 */

/* ===== CSS变量定义 ===== */
:root {
    --primary-dark: #0f0a1e;
    --primary-purple: #1a1035;
    --accent-gold: #d4af37;
    --accent-gold-light: #f4d03f;
    --accent-purple: #6b3fa0;
    --accent-magenta: #9b2d6b;
    --text-white: #ffffff;
    --text-light: #e8e8e8;
    --text-muted: #a0a0a0;
    --success-green: #28a745;
    --warning-orange: #fd7e14;
    --danger-red: #dc3545;
    --card-bg: rgba(26, 16, 53, 0.85);
    --border-color: rgba(212, 175, 55, 0.3);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);
    --shadow-purple: 0 8px 32px rgba(107, 63, 160, 0.4);
    --gradient-main: linear-gradient(135deg, #0f0a1e 0%, #1a1035 50%, #2d1f4e 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    --gradient-button: linear-gradient(135deg, #6b3fa0 0%, #9b2d6b 100%);
    --font-main: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    --font-heading: 'Noto Serif SC', 'SimSun', serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
}

/* ===== 基础重置 ===== */
*, *::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: var(--font-main);
    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: color var(--transition-fast);
}

a:hover {
    color: var(--accent-gold-light);
}

ul, ol {
    list-style: none;
}

/* ===== 排版 ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    line-height: 1.4;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* ===== 容器布局 ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===== 头部导航 ===== */
.site-header {
    background: rgba(15, 10, 30, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    /* 非sticky导航 */
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.site-logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--accent-gold);
    font-weight: 700;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 1.25rem;
}

.nav-menu {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--accent-purple);
    color: var(--text-white);
}

/* ===== 英雄区域 ===== */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 3rem 1rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--accent-gold);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
    color: var(--primary-dark);
}

.btn-secondary {
    background: var(--gradient-button);
    color: var(--text-white);
    box-shadow: var(--shadow-purple);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(107, 63, 160, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* ===== 卡片组件 ===== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-purple);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== 游戏网格 ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.game-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.game-card:hover .game-card-image {
    transform: scale(1.05);
}

.game-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 10, 30, 0.95));
    padding: 2rem 1rem 1rem;
}

.game-card-title {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.game-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== 特色区块 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    border-radius: 50%;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

/* ===== 评论区 ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-button);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-white);
}

.review-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.review-location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-stars {
    color: var(--accent-gold);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.review-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* ===== FAQ区域 ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    font-weight: 600;
    color: var(--accent-gold);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== 支付方式 ===== */
.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.payment-icon {
    background: rgba(255,255,255,0.1);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item::after {
    content: '›';
    color: var(--text-muted);
}

.breadcrumb-item:last-child::after {
    display: none;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item a:hover {
    color: var(--accent-gold);
}

.breadcrumb-item.active {
    color: var(--accent-gold);
}

/* ===== 页脚 ===== */
.site-footer {
    background: rgba(10, 5, 20, 0.98);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-purple);
    border-radius: 50%;
    color: var(--text-white);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-badge {
    height: 40px;
    opacity: 0.8;
}

.age-restriction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--danger-red);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-white);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ===== 标签页面 ===== */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tag-item {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.tag-item:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* ===== 内容页面 ===== */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.main-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}

.content-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.article-content {
    font-size: 1rem;
    line-height: 1.9;
}

.article-content h2 {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.article-content h3 {
    margin-top: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    position: relative;
}

.article-content ul li::before {
    content: '•';
    color: var(--accent-gold);
    position: absolute;
    left: -1rem;
}

.article-content blockquote {
    background: rgba(107, 63, 160, 0.2);
    border-left: 4px solid var(--accent-gold);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.article-image {
    margin: 1.5rem 0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.article-image img {
    width: 100%;
}

.article-image figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.75rem;
    background: rgba(0,0,0,0.3);
}

/* ===== 信息表格 ===== */
.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 var(--border-color);
}

.info-table th {
    background: rgba(107, 63, 160, 0.3);
    color: var(--accent-gold);
    font-weight: 600;
}

.info-table tr:hover {
    background: rgba(107, 63, 160, 0.1);
}

/* ===== 作者信息 ===== */
.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(107, 63, 160, 0.15);
    border-radius: var(--border-radius-lg);
    margin: 2rem 0;
    align-items: flex-start;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
    flex-shrink: 0;
}

.author-info h4 {
    color: var(--accent-gold);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== APP下载页面 ===== */
.app-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
}

.app-info h1 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.app-features {
    margin: 1.5rem 0;
}

.app-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.app-feature-icon {
    width: 24px;
    height: 24px;
    background: var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.app-mockup {
    text-align: center;
}

.app-mockup img {
    max-width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-purple);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 10, 30, 0.98);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 0.75rem 1rem;
    }
    
    .header-inner {
        position: relative;
    }
    
    .hero-section {
        min-height: 50vh;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .main-content {
        padding: 1.25rem;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr 300px;
    }
    
    .app-hero {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* ===== 打印样式 ===== */
@media print {
    .site-header,
    .site-footer,
    .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
