/* ============================================================
   夏鸣前个人宣传页 样式
   风格：暗黑视频平台风（红紫渐变 + 电光蓝高亮）
   ============================================================ */

/* ---------- 变量与基础 ---------- */
:root {
    --bg: #0b0b12;
    --bg-soft: #12121d;
    --card: #171726;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f5f5fa;
    --text-dim: #a9a9bf;
    --primary: #7a5cff;
    --primary-2: #ff3d81;
    --accent: #38b4ff;
    --grad: linear-gradient(120deg, #7a5cff 0%, #ff3d81 60%, #ff6a3d 100%);
    --radius: 14px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent); }
strong { color: #fff; }

section { position: relative; }

/* ---------- 导航 ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: rgba(11, 11, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom: 1px solid var(--line); background: rgba(11, 11, 18, 0.95); }
.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    background: var(--grad);
    border-radius: 9px;
    font-weight: 800; color: #fff;
}
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.brand-sub { font-size: 11px; color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase; }

.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-dim); font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }

.nav-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }

/* ============================================================
   按钮系统
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    border: 0;
    white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 61, 129, 0.4); }
.btn-outline { border: 1px solid var(--line); color: var(--text-dim); background: rgba(255,255,255,0.02); }
.btn-outline:hover { color: #fff; border-color: var(--accent); }
.btn-ghost { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-xl { padding: 18px 38px; font-size: 18px; }

/* ============================================================
   Hero 首屏
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 24px 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    z-index: -1;
    background:
        radial-gradient(600px 400px at 15% 20%, rgba(122, 92, 255, 0.22), transparent 60%),
        radial-gradient(600px 400px at 85% 15%, rgba(56, 180, 255, 0.16), transparent 60%),
        radial-gradient(700px 500px at 70% 90%, rgba(255, 61, 129, 0.15), transparent 60%);
}
.hero-bg::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black, transparent 75%);
}
.hero-inner { max-width: 1180px; margin: 0 auto; text-align: center; }
.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    color: var(--accent);
    border: 1px solid rgba(56, 180, 255, 0.35);
    border-radius: 999px;
    background: rgba(56, 180, 255, 0.08);
    margin-bottom: 26px;
    letter-spacing: 1px;
}
.hero-title {
    font-size: clamp(34px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 1px;
    margin-bottom: 22px;
}
.hero-sub {
    max-width: 660px;
    margin: 0 auto 36px;
    color: var(--text-dim);
    font-size: 17px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    list-style: none;
    display: flex; gap: 40px; justify-content: center;
    margin-top: 60px; flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 32px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--text-dim); font-size: 13px; margin-top: 2px; }

/* ---------- Hero 资源展示区 ---------- */
.hero-gallery {
    margin: 56px auto 0;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--card);
    aspect-ratio: 3 / 4;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.gallery-item:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item.main { grid-row: span 2; aspect-ratio: auto; }

/* ============================================================
   通用区块
   ============================================================ */
.benefit, .services, .faq, .cta { padding: 96px 24px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--text-dim); font-size: 16px; }

/* ---------- 价值卡片 ---------- */
.benefit-grid {
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.benefit-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform 0.3s, border-color 0.3s;
}
.benefit-card:hover { transform: translateY(-6px); border-color: var(--primary); }
.benefit-card .icon { font-size: 30px; display: block; margin-bottom: 16px; }
.benefit-card h3 { font-size: 18px; margin-bottom: 10px; }
.benefit-card p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- 分类卡片 ---------- */
.services { background: var(--bg-soft); }
.services-grid {
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.service-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 26px 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card .badge {
    position: absolute; top: 20px; right: 20px;
    font-size: 12px; padding: 3px 10px;
    border-radius: 999px;
    color: #fff;
    background: var(--grad);
}
.service-card h3 { font-size: 20px; margin: 8px 0 12px; }
.service-card p { color: var(--text-dim); font-size: 14.5px; }
.services-cta { text-align: center; margin-top: 50px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-list details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px;
    cursor: pointer;
}
.faq-list summary { font-weight: 700; font-size: 16px; list-style: none; position: relative; padding-right: 24px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    position: absolute; right: 0; top: 0;
    color: var(--accent); font-size: 20px; font-weight: 700;
    transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { color: var(--text-dim); margin-top: 12px; font-size: 15px; }

/* ---------- CTA ---------- */
.cta {
    background: var(--grad);
    text-align: center;
}
.cta h2 { font-size: clamp(28px, 5vw, 44px); font-weight: 900; margin-bottom: 10px; color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.9); margin-bottom: 30px; font-size: 17px; }
.cta .btn { background: #fff; color: var(--primary); }
.cta .btn:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); }

/* ---------- 页脚 ---------- */
.site-footer {
    background: var(--bg);
    text-align: center;
    padding: 36px 24px;
    color: var(--text-dim);
    font-size: 14px;
    border-top: 1px solid var(--line);
}
.site-footer a { color: var(--accent); }
.site-footer p { margin: 4px 0; }

/* ---------- 浮动领取按钮 ---------- */
.float-cta {
    position: fixed;
    bottom: 30px; right: 30px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: var(--grad);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(255, 61, 129, 0.5);
    animation: floatMove 3s ease-in-out infinite;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s;
}
.float-cta.show { opacity: 1; transform: translateY(0); }
.float-cta .pulse {
    position: absolute; inset: 0; border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(255, 61, 129, 0.6);
    animation: pulse 2s infinite;
    pointer-events: none;
}
@keyframes floatMove { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 129, 0.6); } 100% { box-shadow: 0 0 0 18px rgba(255, 61, 129, 0); } }

/* ============================================================
   入场动画
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
    .benefit-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-gallery { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
    .gallery-item.main { grid-row: auto; aspect-ratio: 3 / 4; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
    .benefit-grid, .services-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .hero-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; }
    .float-cta { bottom: 20px; right: 20px; }
    .nav-inner { padding: 14px 16px; }
    .brand-sub { display: none; }
}