/* ========================================
   问鼎娱乐官方APP下载 - style.css
   版本: 1.0
   说明: 完整内联CSS，包含所有样式定义。
   ======================================== */

/* 全局重置与变量 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0b1a2e;
    --accent: #f0b429;
    --accent2: #d99f1c;
    --glass: rgba(255, 255, 255, 0.08);
    --radius: 24px;
    --shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.3);
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --header-bg: rgba(11, 26, 46, 0.85);
    --header-border: rgba(240, 180, 41, 0.2);
    --nav-color: #e2e8f0;
    --hero-bg-start: #0b1a2e;
    --hero-bg-end: #1a2f4a;
    --hero-text: white;
    --hero-subtext: #cbd5e1;
    --btn-primary-color: #0b1a2e;
    --footer-bg: #0b1a2e;
    --footer-text: #cbd5e1;
    --footer-link: #94a3b8;
    --footer-border: #1e293b;
    --carousel-btn-bg: rgba(0, 0, 0, 0.3);
    --backtop-bg: var(--accent);
    --backtop-color: #0b1a2e;
    --search-bg: var(--card);
    --search-border: var(--border);
}

body.dark {
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #334155;
    --primary: #0b1a2e;
    --header-bg: rgba(15, 23, 42, 0.9);
    --header-border: rgba(240, 180, 41, 0.2);
    --nav-color: #e2e8f0;
    --hero-bg-start: #0b1a2e;
    --hero-bg-end: #1a2f4a;
    --hero-text: white;
    --hero-subtext: #cbd5e1;
    --btn-primary-color: #0b1a2e;
    --footer-bg: #0b1a2e;
    --footer-text: #cbd5e1;
    --footer-link: #94a3b8;
    --footer-border: #1e293b;
    --carousel-btn-bg: rgba(0, 0, 0, 0.3);
    --backtop-bg: var(--accent);
    --backtop-color: #0b1a2e;
    --search-bg: var(--card);
    --search-border: var(--border);
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

/* 容器 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 毛玻璃效果 */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

/* ===== 头部 ===== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--header-border);
    padding: 0 24px;
    transition: background 0.3s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo svg {
    height: 38px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-menu li a {
    color: var(--nav-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--nav-color);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 40px;
    transition: 0.2s;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 900px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(11, 26, 46, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        backdrop-filter: blur(12px);
    }
    .nav-menu.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 100%);
    overflow: hidden;
    padding: 60px 24px;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(240, 180, 41, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    font-weight: 800;
    color: var(--hero-text);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    color: var(--hero-subtext);
    max-width: 700px;
    margin: 0 auto 36px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--btn-primary-color);
    box-shadow: 0 8px 24px rgba(240, 180, 41, 0.3);
}

.btn-primary:hover {
    background: var(--accent2);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(240, 180, 41, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--hero-text);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== 通用section ===== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-sub {
    color: var(--muted);
    max-width: 680px;
    margin-bottom: 48px;
    font-size: 1.1rem;
}

/* ===== 网格布局 ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

/* ===== 卡片 ===== */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    transition: 0.25s;
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.2);
}

.card-icon svg {
    width: 48px;
    height: 48px;
    fill: var(--accent);
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--muted);
}

/* ===== 数字展示 ===== */
.number-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
    text-align: center;
    margin: 40px 0;
}

.number-item .num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
}

.number-item p {
    color: var(--muted);
}

/* ===== 时间线 ===== */
.timeline {
    position: relative;
    padding-left: 32px;
    border-left: 3px solid var(--accent);
}

.timeline-item {
    margin-bottom: 32px;
}

.timeline-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.timeline-item p {
    color: var(--muted);
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.35s;
    color: var(--muted);
    padding-top: 8px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ===== 页脚 ===== */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 48px 24px 24px;
}

footer a {
    color: var(--footer-link);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* ===== 滚动动画 ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.6s ease-out;
}

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

/* ===== 轮播 ===== */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    max-height: 500px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.6s ease;
}

.carousel-item {
    min-width: 100%;
}

.carousel-item img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.carousel-controls {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.carousel-btn {
    background: var(--carousel-btn-bg);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    font-size: 1.4rem;
    cursor: pointer;
}

/* ===== 返回顶部 ===== */
#backTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--backtop-bg);
    color: var(--backtop-color);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 48px;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 99;
}

#backTop.show {
    display: block;
}

/* ===== 搜索模拟 ===== */
.search-mock {
    display: flex;
    max-width: 400px;
    margin: 20px auto;
    background: var(--search-bg);
    border-radius: 60px;
    padding: 6px 6px 6px 20px;
    border: 1px solid var(--search-border);
}

.search-mock input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    outline: none;
    color: var(--text);
}

.search-mock button {
    background: var(--accent);
    border: none;
    border-radius: 40px;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== 响应式微调 ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .number-grid {
        gap: 24px;
    }
    .number-item .num {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
    .card {
        padding: 24px 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}