/* ============================================
   C7 Entertainment - 主样式表 (style.css)
   版本: 1.0
   说明: 全局样式、组件、布局、动画、暗色模式
   ============================================ */

/* ---------- 1. CSS 变量与基础重置 ---------- */
:root {
    --primary: #e94560;
    --primary-dark: #c23152;
    --secondary: #16213e;
    --accent: #0f3460;
    --bg-dark: #0f0f23;
    --bg-card: #1a1a2e;
    --text-light: #e0e0e0;
    --text-muted: #8899aa;
    --glass-bg: rgba(26, 26, 46, 0.8);
    --glass-border: rgba(233, 69, 96, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --transition: all 0.3s ease;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --gradient-primary: linear-gradient(135deg, #e94560, #c23152);
    --gradient-accent: linear-gradient(135deg, #0f3460, #16213e);
    --gradient-text: linear-gradient(135deg, #e94560, #ff6b81);
}

/* 暗色模式变量覆盖 */
.dark-mode {
    --bg-dark: #e8e8f0;
    --bg-card: #ffffff;
    --text-light: #1a1a2e;
    --text-muted: #555555;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(233, 69, 96, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --secondary: #e0e0f0;
}

/* ---------- 2. 全局样式 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ---------- 3. 容器与布局 ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid {
    display: grid;
    gap: 30px;
}

/* ---------- 4. 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    background: var(--gradient-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ---------- 5. 标题 ---------- */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* ---------- 6. 卡片与毛玻璃 ---------- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card {
    padding: 30px;
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: #fff;
}

/* ---------- 7. 视差效果 ---------- */
.parallax {
    position: relative;
    overflow: hidden;
}

.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9), rgba(26, 26, 46, 0.7));
    z-index: 1;
}

.parallax > * {
    position: relative;
    z-index: 2;
}

/* ---------- 8. 导航栏 ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
}

/* ---------- 9. Hero 区域 ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 70px;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 40%, rgba(233, 69, 96, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(15, 52, 96, 0.2) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-5%, -5%) scale(1.05);
    }
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* ---------- 10. 页脚 ---------- */
footer {
    background: var(--bg-card);
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
}

/* ---------- 11. 返回顶部按钮 ---------- */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
    display: none;
    z-index: 999;
    transition: var(--transition);
}

#backToTop:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.6);
}

/* ---------- 12. 搜索模态框 ---------- */
#searchModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 120px;
}

#searchModal > div {
    max-width: 600px;
    width: 90%;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#searchInput {
    flex: 1;
    padding: 15px 20px;
    border-radius: 50px;
    border: 2px solid var(--glass-border);
    background: var(--bg-dark);
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

#searchInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

/* ---------- 13. FAQ 手风琴 ---------- */
.faq-item {
    margin-bottom: 15px;
    padding: 20px 25px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-weight: 600;
}

.faq-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-muted);
}

/* ---------- 14. 面包屑导航 ---------- */
.breadcrumb ol {
    display: flex;
    gap: 10px;
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ---------- 15. 滚动条美化 ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ---------- 16. 选中文本样式 ---------- */
::selection {
    background: var(--primary);
    color: #fff;
}

/* ---------- 17. 动画工具 ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 18. 响应式设计 ---------- */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 16px;
    }

    .grid {
        grid-template-columns: 1fr !important;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block !important;
    }

    .hero h1 {
        font-size: 2.5rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    #about .grid {
        grid-template-columns: 1fr !important;
    }

    #backToTop {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem !important;
    }

    .hero .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .card {
        padding: 20px;
    }
}

/* ---------- 19. 打印样式 ---------- */
@media print {
    .navbar,
    #backToTop,
    #searchModal,
    .menu-toggle {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}