/* ============================================================
   520.today 官网 样式表
   设计风格：浪漫 / 温馨 / 玻璃拟态 / 柔和渐变
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
    /* 主色调：粉色 / 珊瑚 / 浅紫 */
    --pink: #FF6B9D;
    --pink-soft: #FFB6C8;
    --pink-light: #FFE4EC;
    --coral: #FF8E7F;
    --coral-soft: #FFC2B8;
    --purple: #A78BFA;
    --purple-soft: #C4B5FD;
    --purple-light: #EDE4FF;
    --lilac: #D8B4FE;

    /* 中性色 */
    --white: #FFFFFF;
    --cream: #FFF8FA;
    --ink: #3D2B4E;
    --ink-soft: #6B5B7A;
    --ink-muted: #9A8AA5;
    --line: rgba(255, 107, 157, 0.14);

    /* 渐变 */
    --grad-main: linear-gradient(135deg, #FF6B9D 0%, #FF8E7F 50%, #A78BFA 100%);
    --grad-soft: linear-gradient(135deg, #FFE4EC 0%, #FFF0E8 50%, #EDE4FF 100%);
    --grad-text: linear-gradient(120deg, #FF6B9D 0%, #FF8E7F 60%, #A78BFA 100%);
    --grad-pink-purple: linear-gradient(135deg, #FF6B9D 0%, #A78BFA 100%);

    /* 玻璃拟态 */
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-shadow: 0 20px 50px -20px rgba(255, 107, 157, 0.35);
    --glass-blur: 18px;

    /* 阴影 */
    --shadow-sm: 0 4px 14px rgba(255, 107, 157, 0.12);
    --shadow-md: 0 12px 32px rgba(255, 107, 157, 0.18);
    --shadow-lg: 0 30px 80px -20px rgba(167, 139, 250, 0.35);

    /* 圆角 */
    --r-sm: 14px;
    --r-md: 22px;
    --r-lg: 32px;
    --r-xl: 42px;

    /* 字体 */
    --font-display: 'Comfortaa', 'Noto Sans SC', system-ui, sans-serif;
    --font-body: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* 柔和的背景渐变层 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 60% at 15% 5%, rgba(255, 182, 200, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 0%, rgba(196, 181, 253, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255, 194, 184, 0.25) 0%, transparent 60%),
        linear-gradient(180deg, #FFF8FA 0%, #FFF5F8 40%, #F8F4FF 100%);
}

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

/* ---------- 通用工具 ---------- */
.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.grad-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hide-mobile { display: inline; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    white-space: nowrap;
}
.btn svg { fill: currentColor; }

.btn-primary {
    background: var(--grad-main);
    color: var(--white);
    box-shadow: 0 10px 26px -8px rgba(255, 107, 157, 0.6);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px -8px rgba(255, 107, 157, 0.7);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.6);
    color: var(--ink);
    border: 1.5px solid rgba(255, 107, 157, 0.25);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: var(--white);
    border-color: var(--pink);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 15px 32px;
    font-size: 16px;
    font-weight: 600;
}

/* ---------- 漂浮装饰背景 ---------- */
.floating-decorations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.float-item {
    position: absolute;
    font-size: 18px;
    opacity: 0;
    animation: floatUp linear infinite;
    will-change: transform, opacity;
}
.float-item.heart   { color: rgba(255, 107, 157, 0.55); }
.float-item.sparkle { color: rgba(167, 139, 250, 0.6); }
.float-item.petal   { color: rgba(255, 142, 127, 0.5); }

@keyframes floatUp {
    0%   { transform: translateY(110vh) rotate(0deg)   scale(0.6); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-15vh)  rotate(360deg) scale(1.1); opacity: 0; }
}

/* ============================================================
   导航栏
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: all .35s ease;
}
.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 248, 250, 0.85);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    box-shadow: 0 6px 24px rgba(255, 107, 157, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--ink);
}
.logo-icon {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 12px;
    background: var(--grad-main);
    box-shadow: 0 6px 16px -4px rgba(255, 107, 157, 0.6);
}
.logo-icon svg { fill: var(--white); }
.logo-text { letter-spacing: -0.5px; }
.logo-dot { color: var(--pink); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link {
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: all .25s ease;
}
.nav-link:hover {
    color: var(--pink);
    background: rgba(255, 107, 157, 0.08);
}
.nav-cta {
    margin-left: 8px;
    padding: 10px 22px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    width: 24px; height: 2.5px;
    background: var(--ink);
    border-radius: 4px;
    transition: all .3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   Hero 首屏
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    z-index: -1;
    animation: pulse 8s ease-in-out infinite;
}
.glow-1 { width: 480px; height: 480px; background: var(--pink-soft); top: -80px; left: -100px; }
.glow-2 { width: 420px; height: 420px; background: var(--purple-soft); top: 30%; right: -120px; animation-delay: 2s; }
.glow-3 { width: 360px; height: 360px; background: var(--coral-soft); bottom: -120px; left: 30%; animation-delay: 4s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%      { transform: scale(1.15); opacity: 0.7; }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 157, 0.2);
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 26px;
}
.badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.2);
    animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5.6vw, 68px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.title-highlight {
    position: relative;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(15px, 1.4vw, 18px);
    color: var(--ink-soft);
    line-height: 1.85;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1;
}
.stat-num sup { font-size: 16px; vertical-align: super; }
.stat-unit   { font-size: 16px; font-weight: 500; }
.stat-label {
    font-size: 13px;
    color: var(--ink-muted);
    margin-top: 6px;
}
.stat-divider {
    width: 1px; height: 36px;
    background: linear-gradient(to bottom, transparent, var(--line), transparent);
}

/* ---------- Hero 视觉：手机模型 ---------- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 560px;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: linear-gradient(160deg, #2A1F33 0%, #1A1322 100%);
    border-radius: 44px;
    padding: 12px;
    box-shadow:
        0 40px 80px -20px rgba(167, 139, 250, 0.4),
        0 20px 50px -10px rgba(255, 107, 157, 0.3),
        inset 0 0 0 2px rgba(255, 255, 255, 0.08);
    animation: phoneFloat 6s ease-in-out infinite;
    z-index: 2;
}
@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%      { transform: translateY(-14px) rotate(1deg); }
}

.phone-notch {
    position: absolute;
    top: 14px; left: 50%;
    transform: translateX(-50%);
    width: 100px; height: 22px;
    background: #1A1322;
    border-radius: 0 0 16px 16px;
    z-index: 3;
}

.phone-screen {
    width: 100%; height: 100%;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(165deg, #FFE4EC 0%, #FFF0E8 40%, #EDE4FF 100%);
    position: relative;
}

/* ---------- 小程序界面 ---------- */
.mini-app {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 8px 0 0;
}
.app-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 22px 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
}
.status-icons { letter-spacing: 2px; font-size: 8px; color: var(--pink); }

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 18px 12px;
    border-bottom: 1px solid rgba(255, 107, 157, 0.1);
}
.app-dots, .app-close {
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1;
}
.app-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.app-card {
    flex: 1;
    margin: 16px 14px;
    padding: 20px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px -10px rgba(255, 107, 157, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.card-hearts {
    font-size: 14px;
    color: var(--pink);
    letter-spacing: 6px;
}
.card-greeting {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    font-family: var(--font-display);
}
.card-body {
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.8;
}
.card-photo { margin: 4px 0; }
.photo-frame {
    width: 90px; height: 70px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--purple-light) 100%);
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 16px -4px rgba(255, 107, 157, 0.3);
}
.photo-emoji { font-size: 32px; }

.card-music {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 107, 157, 0.08);
    font-size: 10px;
    color: var(--pink);
}
.music-icon { font-size: 12px; }
.music-bar { display: flex; gap: 2px; align-items: flex-end; height: 10px; }
.music-bar i {
    width: 2px; height: 60%;
    background: var(--pink);
    border-radius: 2px;
    animation: musicBar 0.8s ease-in-out infinite;
}
.music-bar i:nth-child(2) { animation-delay: .15s; height: 90%; }
.music-bar i:nth-child(3) { animation-delay: .3s;  height: 50%; }
.music-bar i:nth-child(4) { animation-delay: .45s; height: 75%; }
@keyframes musicBar {
    0%, 100% { transform: scaleY(0.5); }
    50%      { transform: scaleY(1); }
}

.card-btn {
    margin-top: 4px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--grad-main);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 6px 14px -4px rgba(255, 107, 157, 0.5);
}

.app-tabbar {
    display: flex;
    justify-content: space-around;
    padding: 10px 0 14px;
    font-size: 10px;
    color: var(--ink-muted);
    border-top: 1px solid rgba(255, 107, 157, 0.08);
}
.app-tabbar .active { color: var(--pink); font-weight: 600; }

/* ---------- 漂浮小卡片 ---------- */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
    z-index: 3;
    animation: cardFloat 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 13px; color: var(--ink); }
.float-card small { font-size: 11px; color: var(--ink-muted); }
.fc-icon { font-size: 22px; }
.float-card-1 { top: 12%; left: -8%; animation-delay: 0s; }
.float-card-2 { bottom: 18%; right: -6%; animation-delay: 1.5s; }
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ---------- 小程序码 ---------- */
.mini-code {
    position: absolute;
    bottom: -10px; right: -2%;
    text-align: center;
    z-index: 3;
    animation: cardFloat 4s ease-in-out infinite;
    animation-delay: 0.8s;
}
.mini-code-inner {
    padding: 10px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}
.qr-placeholder {
    width: 90px; height: 90px;
    border-radius: 12px;
    position: relative;
    background: var(--white);
    display: grid;
    place-items: center;
    overflow: hidden;
}
/* 用伪元素绘制伪二维码点阵 */
.qr-placeholder::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 6px;
    background-image:
        radial-gradient(circle, var(--ink) 28%, transparent 30%);
    background-size: 9px 9px;
    background-position: 0 0;
    opacity: 0.85;
}
/* 中心 logo 遮挡 */
.qr-placeholder::after {
    content: "💖";
    position: absolute;
    width: 26px; height: 26px;
    background: var(--white);
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-size: 15px;
    z-index: 2;
    box-shadow: 0 0 0 3px var(--white);
}
.qr-text { display: none; }
.mini-code-tip {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: var(--ink-soft);
    font-weight: 500;
}

/* ---------- 滚动提示 ---------- */
.scroll-hint {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--ink-muted);
    font-size: 12px;
}
.mouse {
    width: 24px; height: 38px;
    border: 2px solid var(--ink-muted);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.wheel {
    width: 3px; height: 8px;
    background: var(--ink-muted);
    border-radius: 3px;
    animation: scrollWheel 1.6s ease-in-out infinite;
}
@keyframes scrollWheel {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* ============================================================
   通用 Section
   ============================================================ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}
.section-head.sub { margin-top: 80px; margin-bottom: 40px; }

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 107, 157, 0.1);
    color: var(--pink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.8vw, 44px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.section-desc {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.8;
}
.subsection-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--ink);
}

/* ============================================================
   核心功能区
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    padding: 32px 26px;
    border-radius: var(--r-lg);
    transition: transform .35s ease, box-shadow .35s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-soft);
    opacity: 0;
    transition: opacity .35s ease;
    z-index: -1;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { opacity: 0.5; }

.feature-icon {
    width: 60px; height: 60px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--white);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.icon-pink   { background: linear-gradient(135deg, #FF6B9D, #FF8FA8); }
.icon-purple { background: linear-gradient(135deg, #A78BFA, #C4B5FD); }
.icon-coral  { background: linear-gradient(135deg, #FF8E7F, #FFB098); }
.icon-lilac  { background: linear-gradient(135deg, #D8B4FE, #E9D5FF); }
.feature-icon svg { fill: currentColor; }

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}
.feature-card p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.75;
    margin-bottom: 18px;
}
.feature-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 107, 157, 0.08);
    color: var(--pink);
    font-size: 12px;
    font-weight: 500;
}

/* ============================================================
   模板展示区
   ============================================================ */
.templates { overflow: hidden; }

.templates-track-wrap {
    overflow-x: auto;
    overflow-y: visible;
    padding: 30px 0 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.templates-track-wrap::-webkit-scrollbar { display: none; }

.templates-track {
    display: flex;
    gap: 24px;
    padding: 0 max(4%, calc((100vw - 1200px) / 2 + 4%));
    width: max-content;
}

.tpl-card {
    flex: 0 0 260px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform .35s ease, box-shadow .35s ease;
    cursor: pointer;
}
.tpl-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.tpl-preview {
    height: 340px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tpl-emoji {
    font-size: 48px;
    margin-bottom: 14px;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
}
.tpl-preview h4 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
}
.tpl-preview p {
    font-size: 14px;
    line-height: 1.9;
    opacity: 0.85;
}

/* 模板配色 */
.tpl-1 .tpl-preview { background: linear-gradient(160deg, #FFE4EC 0%, #FFC2D6 100%); color: #8B2C50; }
.tpl-2 .tpl-preview { background: linear-gradient(160deg, #2D2456 0%, #4A3B7A 100%); color: #FFF; }
.tpl-2 .tpl-preview p { opacity: 0.9; }
.tpl-3 .tpl-preview { background: linear-gradient(160deg, #FFF0F5 0%, #FFE0EC 100%); color: #B04068; }
.tpl-4 .tpl-preview { background: linear-gradient(160deg, #F0FAF5 0%, #DFF5EB 100%); color: #2D6B4F; }
.tpl-5 .tpl-preview { background: linear-gradient(160deg, #F5E6D3 0%, #E8D2B5 100%); color: #6B4423; }
.tpl-6 .tpl-preview { background: linear-gradient(160deg, #4A1F2F 0%, #7A3147 100%); color: #FFD4B8; }
.tpl-7 .tpl-preview { background: linear-gradient(160deg, #FFF9E6 0%, #FFF0C2 100%); color: #8B6914; }

.tpl-meta {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
}
.tpl-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}
.tpl-style {
    font-size: 12px;
    color: var(--ink-muted);
}

.templates-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}
.tpl-arrow {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 157, 0.2);
    color: var(--pink);
    display: grid;
    place-items: center;
    transition: all .25s ease;
}
.tpl-arrow:hover {
    background: var(--grad-main);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 8px 20px -4px rgba(255, 107, 157, 0.5);
}

/* ============================================================
   使用流程
   ============================================================ */
.how {
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 182, 200, 0.25) 0%, transparent 60%);
}

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}
.step-line {
    position: absolute;
    top: 70px; left: 16%;
    right: 16%;
    height: 3px;
    background: rgba(255, 107, 157, 0.15);
    border-radius: 3px;
    z-index: 0;
}
.step-line-fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--grad-main);
    border-radius: 3px;
    transition: width 1.6s ease;
}
.step-line.fill .step-line-fill { width: 100%; }

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}
.step-num {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1;
    margin-bottom: 8px;
    opacity: 0.5;
}
.step-icon {
    width: 86px; height: 86px;
    border-radius: 50%;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    color: var(--pink);
    transition: transform .35s ease;
}
.step:hover .step-icon {
    transform: translateY(-6px) rotate(-6deg);
}
.step-icon svg { fill: currentColor; }
.step h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}
.step p {
    font-size: 15px;
    color: var(--ink-soft);
    max-width: 240px;
    margin: 0 auto;
}

/* ============================================================
   场景 + 口碑
   ============================================================ */
.scenes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 20px;
}
.scene-card {
    padding: 36px 28px;
    border-radius: var(--r-lg);
    text-align: center;
    transition: transform .35s ease, box-shadow .35s ease;
    position: relative;
    overflow: hidden;
}
.scene-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.scene-emoji {
    font-size: 52px;
    margin-bottom: 18px;
    display: inline-block;
    animation: emojiBeat 2.4s ease-in-out infinite;
}
@keyframes emojiBeat {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}
.scene-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}
.scene-card p {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.8;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.testimonial {
    padding: 32px 28px 26px;
    border-radius: var(--r-lg);
    position: relative;
    transition: transform .35s ease;
}
.testimonial:hover { transform: translateY(-6px); }
.quote-mark {
    font-size: 56px;
    line-height: 0.5;
    color: var(--pink-soft);
    font-family: serif;
    margin-bottom: 18px;
}
.testimonial blockquote {
    font-size: 15px;
    line-height: 1.85;
    color: var(--ink);
    margin-bottom: 22px;
}
.testimonial figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
}
.avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}
.avatar-1 { background: linear-gradient(135deg, #FF6B9D, #FF8FA8); }
.avatar-2 { background: linear-gradient(135deg, #A78BFA, #C4B5FD); }
.avatar-3 { background: linear-gradient(135deg, #FF8E7F, #FFB098); }
.t-name {
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 500;
}

/* ============================================================
   最终 CTA
   ============================================================ */
.cta-final { padding-top: 60px; }
.cta-card {
    position: relative;
    padding: 70px 60px;
    border-radius: var(--r-xl);
    overflow: hidden;
    text-align: center;
}
.cta-glow {
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: var(--pink-soft);
    filter: blur(100px);
    opacity: 0.4;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}
.cta-hearts {
    font-size: 28px;
    color: var(--pink);
    letter-spacing: 10px;
    margin-bottom: 16px;
}
.cta-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 16px;
}
.cta-desc {
    font-size: 17px;
    color: var(--ink-soft);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    text-align: left;
}
.cta-code { text-align: center; }
.qr-lg {
    width: 140px; height: 140px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FF6B9D 0%, #A78BFA 100%);
}
/* 大码不显示点阵和爱心，改为纯渐变背景 + 文字 */
.qr-lg::before,
.qr-lg::after { display: none; }
.qr-lg .qr-text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.7;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 10px;
}
.qr-lg::after { display: none; }
.cta-code-tip {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 500;
}
.cta-features ul { display: flex; flex-direction: column; gap: 12px; }
.cta-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--ink);
}
.check {
    display: grid;
    place-items: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--grad-main);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 228, 236, 0.4) 100%);
    padding: 80px 0 30px;
    border-top: 1px solid var(--line);
    position: relative;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}
.footer-tagline {
    margin-top: 16px;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.8;
}
.logo-footer { font-size: 20px; }

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--ink-soft);
    padding: 5px 0;
    transition: color .2s ease;
}
.footer-col a:hover { color: var(--pink); }

.footer-code { text-align: center; }
.footer-code .qr-placeholder { margin: 0 auto; }
.footer-code small {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--ink-muted);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-muted);
}
.footer-bottom a { color: var(--ink-muted); transition: color .2s ease; }
.footer-bottom a:hover { color: var(--pink); }
.sep { margin: 0 6px; }

/* 备案信息：ICP 号、分隔符、公安号全部水平垂直居中对齐 */
.icp {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    line-height: 1;
}
.beian-ga {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}
.beian-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    flex-shrink: 0;
}

/* ---------- 回到顶部按钮 ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--grad-main);
    color: var(--white);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 26px -6px rgba(255, 107, 157, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .3s ease;
    z-index: 90;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-4px) scale(1.05); }

/* ============================================================
   滚动渐显动画
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s cubic-bezier(.16,.84,.44,1), transform .8s cubic-bezier(.16,.84,.44,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { gap: 40px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-code { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .hide-mobile { display: none; }

    /* 导航 */
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 100px 30px 40px;
        gap: 8px;
        background: rgba(255, 248, 250, 0.97);
        backdrop-filter: blur(20px);
        box-shadow: -10px 0 40px rgba(167, 139, 250, 0.2);
        transition: right .35s ease;
    }
    .nav-links.open { right: 0; }
    .nav-link { padding: 14px 18px; font-size: 16px; }
    .nav-cta { margin: 12px 0 0; }
    .nav-toggle { display: flex; z-index: 101; }

    /* Hero */
    .hero { padding: 110px 0 60px; min-height: auto; }
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    .hero-subtitle { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; }
    .phone-mockup { width: 240px; height: 480px; }
    .scroll-hint { display: none; }

    .float-card-1 { left: 0; }
    .float-card-2 { right: 0; }
    .mini-code { right: 5%; }

    /* Section */
    .section { padding: 70px 0; }
    .features-grid { grid-template-columns: 1fr; }
    .scenes-grid { grid-template-columns: 1fr; }
    .testimonials { grid-template-columns: 1fr; }
    .steps {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .step-line { display: none; }

    /* CTA */
    .cta-card { padding: 50px 24px; }
    .cta-actions { gap: 30px; flex-direction: column; }
    .cta-features ul { align-items: flex-start; }

    /* Footer */
    .footer-inner { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 36px; }
    .hero-stats { gap: 14px; }
    .stat-num { font-size: 24px; }
    .templates-track { padding: 0 4%; }
    .tpl-card { flex: 0 0 230px; }
    .tpl-preview { height: 300px; }
}

/* ---------- 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}
