/* ============================================================
   漫影空间 - 官网样式
   Theme: 暖橙 / 明黄 漫画风
   ============================================================ */

:root {
    --primary: #FF8C00;
    --primary-2: #FFB800;
    --primary-3: #FF6B35;
    --coral: #FF5A5F;
    --amber: #FFC107;
    --deep: #2B1B0E;
    --dark: #3A2413;
    --bg: #FFF9F0;
    --bg-alt: #FFF3E0;
    --text: #2B1B0E;
    --text-muted: #8A6E54;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(255, 140, 0, 0.12);
    --shadow-lg: 0 20px 50px rgba(255, 140, 0, 0.22);
    --grad: linear-gradient(135deg, #FF8C00 0%, #FFB800 100%);
    --grad-dark: linear-gradient(135deg, #3A2413 0%, #5C3A1E 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow { max-width: 820px; }

/* ============ 导航栏 ============ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: all .3s ease;
    padding: 14px 0;
}
.navbar.scrolled {
    background: rgba(255, 249, 240, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
    padding: 8px 0;
}
.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
    width: 38px; height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(255,140,0,.3);
}
.brand-name {
    font-size: 20px;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
    transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-download {
    padding: 9px 22px;
    background: var(--grad);
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(255,140,0,.35);
    transition: transform .2s, box-shadow .2s;
}
.nav-download:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,140,0,.45); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ============ Hero ============ */
.hero {
    position: relative;
    padding: 130px 0 0;
    background: var(--grad-dark);
    color: #fff;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(255,184,0,.25), transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(255,107,53,.2), transparent 45%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    padding-bottom: 60px;
}
.hero-badge {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--primary-2);
    border: 1px solid rgba(255,184,0,.4);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 60px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #FFD54F 0%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #FFE9C7;
}
.hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,.78);
    max-width: 520px;
    margin-bottom: 22px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero-tags span {
    font-size: 13px;
    padding: 6px 14px;
    background: rgba(255,184,0,.12);
    border: 1px solid rgba(255,184,0,.3);
    border-radius: 999px;
    color: #FFD54F;
}
.hero-meta { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s;
}
.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 10px 28px rgba(255,140,0,.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(255,140,0,.55); }
.btn-ghost {
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: 18px 40px; font-size: 17px; }

.hero-phone {
    position: relative;
    display: flex;
    justify-content: center;
}
.phone-frame {
    width: 280px;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
    border: 8px solid #1a1008;
    transform: rotate(-3deg);
    transition: transform .4s;
}
.phone-frame:hover { transform: rotate(0) scale(1.03); }
.phone-img { width: 100%; display: block; }
.float-card {
    position: absolute;
    background: rgba(255,255,255,.95);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    display: flex; align-items: center; gap: 8px;
}
.float-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.float-card .dot-green { background: #4CAF50; }
.float-1 { top: 10%; left: 0; animation: floatY 4s ease-in-out infinite; }
.float-2 { bottom: 12%; right: 0; animation: floatY 4s ease-in-out 1s infinite; }
@keyframes floatY {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* 统计条 */
.hero-stats {
    position: relative;
    background: rgba(0,0,0,.2);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 30px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stat .num, .stat .unit {
    font-size: 34px;
    font-weight: 800;
    color: #FFD54F;
}
.stat p { font-size: 14px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ============ 通用 Section ============ */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 14px;
}
.section-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.25;
}
.section-sub {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 50px;
}

/* ============ 功能卡片 ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; }
.icon-orange { background: linear-gradient(135deg, #FF8C00, #FF6B35); }
.icon-yellow { background: linear-gradient(135deg, #FFB800, #FF9800); }
.icon-coral { background: linear-gradient(135deg, #FF5A5F, #FF8A65); }
.icon-amber { background: linear-gradient(135deg, #FFC107, #FFB300); }
.icon-deep { background: linear-gradient(135deg, #E65100, #BF360C); }
.icon-warm { background: linear-gradient(135deg, #FF7043, #FFA726); }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ============ 分类 ============ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.category-card {
    padding: 36px 28px;
    border-radius: var(--radius);
    color: #fff;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: transform .3s;
    position: relative;
    overflow: hidden;
}
.category-card:hover { transform: translateY(-4px); }
.category-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.category-card p { font-size: 13px; opacity: .9; }
.cat-1 { background: linear-gradient(135deg, #FF6B35, #FF8C00); }
.cat-2 { background: linear-gradient(135deg, #FF5A8A, #FF8C69); }
.cat-3 { background: linear-gradient(135deg, #FF9800, #FFC107); }
.cat-4 { background: linear-gradient(135deg, #5C3A1E, #8B5A2B); }
.cat-5 { background: linear-gradient(135deg, #FF8A65, #FFB74D); }
.cat-6 { background: linear-gradient(135deg, #BF360C, #FF7043); }

/* ============ 榜单 ============ */
.rank-tabs {
    display: inline-flex;
    background: #fff;
    padding: 6px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}
.rank-tab {
    padding: 10px 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all .25s;
}
.rank-tab.active {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255,140,0,.35);
}
.rank-panel { display: none; }
.rank-panel.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.rank-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 18px 24px;
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    transition: transform .2s;
}
.rank-item:hover { transform: translateX(6px); }
.rank-no {
    font-size: 22px;
    font-weight: 800;
    color: #D7CCC8;
    min-width: 40px;
    text-align: center;
}
.rank-no.no-1 { color: #FF6B35; }
.rank-no.no-2 { color: #FF9800; }
.rank-no.no-3 { color: #FFB800; }
.rank-info { flex: 1; }
.rank-info h4 { font-size: 16px; margin-bottom: 2px; }
.rank-info p { font-size: 13px; color: var(--text-muted); }
.rank-tag {
    font-size: 12px;
    padding: 5px 12px;
    background: var(--bg-alt);
    color: var(--primary);
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}

/* ============ 界面预览 ============ */
.preview-stage {
    text-align: center;
}
.preview-phone {
    width: 280px;
    margin: 0 auto;
    border-radius: 36px;
    overflow: hidden;
    border: 8px solid #1a1008;
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
    position: relative;
    height: 560px;
    background: #000;
}
.preview-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .5s ease;
}
.preview-img.active { opacity: 1; }
.preview-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}
.preview-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #E0C9A6;
    transition: all .3s;
}
.preview-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 999px;
}
.preview-captions { margin-top: 14px; min-height: 24px; }
.caption { display: none; font-size: 14px; color: var(--text-muted); }
.caption.active { display: block; animation: fadeIn .4s; }

/* ============ 下载 CTA ============ */
.download {
    background: var(--grad);
    padding: 90px 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.15), transparent 50%);
}
.download-inner { position: relative; }
.download-logo {
    width: 90px; height: 90px;
    border-radius: 22px;
    margin: 0 auto 24px;
    box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.download h2 { font-size: 38px; font-weight: 800; margin-bottom: 16px; }
.download p { font-size: 16px; opacity: .92; margin-bottom: 32px; line-height: 1.8; }
.download .btn-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 14px 36px rgba(0,0,0,.2);
}
.download .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0,0,0,.3); }
.download-meta { font-size: 13px; opacity: .8; margin-top: 20px; }

/* ============ FAQ ============ */
.faq-list { margin-top: 10px; }
.faq-item {
    background: #fff;
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    overflow: hidden;
}
.faq-q {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-arrow {
    font-size: 24px;
    color: var(--primary);
    transition: transform .3s;
    font-weight: 400;
}
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.faq-a p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============ 页脚 ============ */
.footer {
    background: var(--deep);
    color: rgba(255,255,255,.6);
    padding: 36px 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.footer-logo { width: 32px; height: 32px; border-radius: 8px; }
.footer-copy { font-size: 13px; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; padding-bottom: 40px; }
    .hero-text { order: 1; }
    .hero-phone { order: 0; margin-bottom: 20px; }
    .hero h1 { font-size: 44px; }
    .hero-tags, .hero-actions { justify-content: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .nav-links { display: none; }
    .nav-download { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: #fff;
        padding: 20px 24px;
        gap: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,.1);
    }
    .section-title { font-size: 28px; }
    .download h2 { font-size: 28px; }
}
@media (max-width: 560px) {
    .features-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 36px; }
    .rank-item { flex-wrap: wrap; gap: 10px; }
    .rank-tag { margin-left: auto; }
    .footer-inner { flex-direction: column; text-align: center; }
}
