/* ============================================
   Rimi - 情绪陪伴工具官网
   全局样式
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter+Tight:wght@400;500;600&display=swap');

:root {
    /* 主色 */
    --c-purple-deep: #2D1B4E;       /* 深夜紫 - 主要背景 */
    --c-purple-mid: #5B4A8C;        /* 中紫 - 渐变中段 */
    --c-purple-light: #B8A4E8;      /* 淡紫 - 强调/链接 */
    --c-purple-soft: #D4C5F0;       /* 柔紫 - 装饰 */

    /* 暖色点缀 */
    --c-gold: #F5C66B;              /* 暖黄 - 主CTA / 灯光感 */
    --c-gold-soft: #FCE8B2;         /* 浅金 - 高光 */
    --c-coral: #E8A0A0;             /* 粉珊瑚 - 情感色 */

    /* 中性色 */
    --c-bg-light: #F8F7FA;          /* 浅灰背景 */
    --c-bg-cream: #FAF7F2;          /* 米白背景 */
    --c-text-dark: #2A2738;         /* 主文字 */
    --c-text-mid: #4B4B5C;          /* 次要文字 */
    --c-text-soft: #7A7888;         /* 辅助文字 */
    --c-border: rgba(91, 74, 140, 0.08);

    /* 阴影 */
    --shadow-soft: 0 4px 24px rgba(45, 27, 78, 0.08);
    --shadow-card: 0 12px 40px rgba(45, 27, 78, 0.12);
    --shadow-glow: 0 0 40px rgba(245, 198, 107, 0.3);

    /* 字体 */
    --font-display: 'Noto Serif SC', 'Fraunces', Georgia, serif;
    --font-body: 'Noto Sans SC', 'Inter Tight', sans-serif;

    /* 容器 */
    --container-max: 1240px;
    --container-pad: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--c-text-dark);
    background: var(--c-bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ============================================
   导航栏
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid var(--c-border);
    transition: background 0.3s ease;
}

.nav.on-dark {
    background: rgba(45, 27, 78, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 18px var(--container-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--c-text-dark);
    transition: color 0.3s;
}

.on-dark .nav-logo { color: #fff; }

.nav-logo span {
    background: linear-gradient(135deg, var(--c-purple-light) 0%, var(--c-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--c-text-mid);
    transition: color 0.2s;
    position: relative;
}

.on-dark .nav-links a { color: rgba(255, 255, 255, 0.85); }

.nav-links a:hover {
    color: var(--c-purple-deep);
}

.on-dark .nav-links a:hover { color: #fff; }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--c-purple-light);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
    padding: 11px 22px;
    background: var(--c-gold);
    color: var(--c-purple-deep);
    border: none;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(245, 198, 107, 0.3);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(245, 198, 107, 0.5);
}

.nav-cta::after {
    content: ' →';
    margin-left: 2px;
}

/* ============================================
   Hero - 首页头图
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(184, 164, 232, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 80%, rgba(245, 198, 107, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #1A0F30 0%, #2D1B4E 40%, #4A3A7A 100%);
    color: #fff;
    padding-top: 80px;
}

.hero::before {
    /* 星空层 */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 50% 20%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 80% 50%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 90% 80%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 15% 80%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 40% 40%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 75% 25%, rgba(255, 255, 255, 0.6), transparent);
    background-size: 100% 100%;
    pointer-events: none;
    opacity: 0.7;
    animation: twinkle 6s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

.hero::after {
    /* 月亮/暖光氛围 */
    content: '';
    position: absolute;
    top: 12%;
    right: 10%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 198, 107, 0.5) 0%, rgba(245, 198, 107, 0.15) 40%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    width: 100%;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-gold);
    box-shadow: 0 0 10px var(--c-gold);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 92px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 28px;
    max-width: 900px;
}

.hero-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--c-gold-soft) 0%, var(--c-gold) 50%, var(--c-coral) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.hero-sub {
    font-size: 19px;
    line-height: 1.7;
    max-width: 580px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 48px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--c-gold);
    color: var(--c-purple-deep);
    box-shadow: 0 4px 20px rgba(245, 198, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 198, 107, 0.6);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-arrow::after {
    content: '→';
    transition: transform 0.2s;
}

.btn-arrow:hover::after {
    transform: translateX(3px);
}

/* hero 底部装饰渐变 */
.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, var(--c-bg-light) 100%);
    z-index: 1;
    pointer-events: none;
}

/* ============================================
   章节通用样式
   ============================================ */

.section {
    padding: 120px var(--container-pad);
    position: relative;
}

.section-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 16px;
    color: var(--c-purple-light);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--c-text-dark);
    margin-bottom: 24px;
    max-width: 800px;
    letter-spacing: -0.5px;
}

.section-sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--c-text-mid);
    max-width: 640px;
    margin-bottom: 64px;
    font-weight: 300;
}

/* ============================================
   关系探索 - 5 个入口
   ============================================ */

.relations {
    background: linear-gradient(180deg, var(--c-bg-light) 0%, #F2EEFA 100%);
}

.relations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.relation-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    padding: 28px 24px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.relation-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-bg, linear-gradient(180deg, #2D1B4E 0%, #5B4A8C 100%));
    z-index: 0;
}

.relation-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

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

.relation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(45, 27, 78, 0.3);
}

.relation-card .lantern {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.85;
    pointer-events: none;
}

.relation-card .lantern::before,
.relation-card .lantern::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
}

.relation-card .lantern::before {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--c-gold) 0%, rgba(245, 198, 107, 0.3) 50%, transparent 80%);
    top: 30%;
    left: 60%;
}

.relation-card .lantern::after {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, var(--c-coral) 0%, rgba(232, 160, 160, 0.2) 50%, transparent 80%);
    top: 55%;
    left: 20%;
}

.relation-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--c-gold-soft);
    margin-bottom: 12px;
    letter-spacing: 1px;
    opacity: 0.85;
}

.relation-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.relation-desc {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin-bottom: 16px;
}

.relation-link {
    font-size: 13px;
    color: var(--c-gold);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.relation-card:hover .relation-link {
    gap: 8px;
}

/* 五个卡片各自不同色调 */
.rc-self  { --card-bg: linear-gradient(160deg, #1F1438 0%, #4A2D6B 100%); }
.rc-intim { --card-bg: linear-gradient(160deg, #3A1F4D 0%, #6B3D5C 100%); }
.rc-paren { --card-bg: linear-gradient(160deg, #2D1F4E 0%, #4D5C8C 100%); }
.rc-work  { --card-bg: linear-gradient(160deg, #1F2D4E 0%, #3D4C6B 100%); }
.rc-orig  { --card-bg: linear-gradient(160deg, #2D1B4E 0%, #5B3A6B 100%); }

/* ============================================
   孩子版区块
   ============================================ */

.child-section {
    background: linear-gradient(180deg, #F2EEFA 0%, #FFF6F0 100%);
}

.child-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.child-card {
    position: relative;
    background: #fff;
    border-radius: 28px;
    padding: 56px 44px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--c-border);
    transition: all 0.4s ease;
    overflow: hidden;
}

.child-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--card-glow, rgba(184, 164, 232, 0.3)) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.child-card.cc-growth { --card-glow: rgba(245, 198, 107, 0.3); }
.child-card.cc-test   { --card-glow: rgba(184, 164, 232, 0.4); }

.child-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.child-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--c-purple-light) 0%, var(--c-purple-soft) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    font-size: 26px;
}

.cc-growth .child-card-icon {
    background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-gold-soft) 100%);
}

.child-card-name {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--c-text-dark);
}

.child-card-desc {
    font-size: 15px;
    line-height: 1.75;
    color: var(--c-text-mid);
    margin-bottom: 24px;
    font-weight: 300;
}

.child-card-link {
    font-size: 14px;
    color: var(--c-purple-deep);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.child-card:hover .child-card-link {
    gap: 8px;
}

/* ============================================
   品牌主张 / Manifesto
   ============================================ */

.manifesto {
    background: var(--c-bg-cream);
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.manifesto-tag {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--c-purple-light);
    margin-bottom: 24px;
}

.manifesto-statement {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.3;
    color: var(--c-text-dark);
    letter-spacing: -0.5px;
}

.manifesto-statement em {
    font-style: italic;
    color: var(--c-purple-deep);
    background: linear-gradient(120deg, transparent 0%, transparent 30%, rgba(245, 198, 107, 0.4) 30%, rgba(245, 198, 107, 0.4) 90%, transparent 90%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 0 4px;
}

.manifesto-points {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mfst-item {
    padding-left: 24px;
    border-left: 2px solid var(--c-gold);
}

.mfst-item h4 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--c-text-dark);
}

.mfst-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--c-text-mid);
    font-weight: 300;
}

/* ============================================
   使用场景
   ============================================ */

.scenes {
    background: var(--c-bg-light);
}

.scenes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--c-border);
    border-radius: 24px;
    overflow: hidden;
    margin-top: 24px;
}

.scene {
    background: #fff;
    padding: 48px;
    transition: background 0.3s;
}

.scene:hover {
    background: #FCFAFE;
}

.scene-time {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--c-purple-light);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.scene-quote {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--c-text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.scene-rimi {
    font-size: 14px;
    line-height: 1.7;
    color: var(--c-text-mid);
    font-weight: 300;
    border-top: 1px solid var(--c-border);
    padding-top: 16px;
}

.scene-rimi strong {
    color: var(--c-purple-deep);
    font-weight: 500;
}

/* ============================================
   下载 CTA
   ============================================ */

.download-section {
    position: relative;
    padding: 140px var(--container-pad);
    background:
        radial-gradient(ellipse at 30% 50%, rgba(184, 164, 232, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(245, 198, 107, 0.15) 0%, transparent 60%),
        linear-gradient(180deg, #1F1338 0%, #2D1B4E 100%);
    color: #fff;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 80% 40%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 40% 60%, rgba(255, 255, 255, 0.7), transparent);
    pointer-events: none;
}

.download-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.download-text .section-tag {
    color: var(--c-gold);
}

.download-text .section-title {
    color: #fff;
}

.download-text .section-sub {
    color: rgba(255, 255, 255, 0.75);
}

.qr-frame {
    background: #fff;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 30px 80px rgba(245, 198, 107, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 380px;
    margin: 0 auto;
    position: relative;
}

.qr-frame::before {
    /* 灯光晕染 */
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 198, 107, 0.4) 0%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
    z-index: -1;
}

.qr-img {
    width: 280px;
    height: 280px;
    margin: 0 auto 24px;
    background:
        repeating-linear-gradient(0deg, var(--c-text-dark) 0 8px, transparent 8px 16px),
        repeating-linear-gradient(90deg, var(--c-text-dark) 0 8px, transparent 8px 16px);
    background-color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-soft);
    font-size: 13px;
    /* 占位:实际换成你的小程序码图片即可 */
}

.qr-tip {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--c-text-dark);
    margin-bottom: 6px;
}

.qr-sub {
    font-size: 13px;
    color: var(--c-text-soft);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: #15102A;
    color: rgba(255, 255, 255, 0.6);
    padding: 80px var(--container-pad) 32px;
    font-size: 14px;
}

.footer-disclaimer {
    max-width: var(--container-max);
    margin: 0 auto 56px;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.footer-disclaimer strong {
    color: var(--c-gold);
    font-weight: 500;
    margin-right: 8px;
}

.footer-grid {
    max-width: var(--container-max);
    margin: 0 auto 48px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 260px;
}

.footer-col h5 {
    font-family: var(--font-body);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--c-gold);
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   开通会员弹窗
   ============================================ */

.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(20, 14, 38, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}

.modal-mask.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: #fff;
    border-radius: 28px;
    width: 100%;
    max-width: 1080px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-bg-light);
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}

.modal-close:hover {
    background: var(--c-purple-soft);
}

.modal-header {
    padding: 56px 56px 24px;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 500;
    color: var(--c-text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.modal-sub {
    color: var(--c-text-mid);
    font-size: 15px;
    line-height: 1.6;
}

.modal-tabs {
    display: flex;
    gap: 4px;
    padding: 0 56px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--c-border);
}

.modal-tab {
    padding: 14px 24px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--c-text-soft);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.modal-tab.active {
    color: var(--c-purple-deep);
}

.modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--c-gold);
}

.modal-tab:hover {
    color: var(--c-purple-deep);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 56px 32px;
}

.plan {
    background: var(--c-bg-light);
    border: 1.5px solid transparent;
    border-radius: 20px;
    padding: 28px 22px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    position: relative;
}

.plan:hover {
    border-color: var(--c-purple-light);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.plan.featured {
    border-color: var(--c-gold);
    background: linear-gradient(180deg, #FEF8E8 0%, #FFFCF6 100%);
}

.plan.featured::before {
    content: '推荐';
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--c-gold);
    color: var(--c-purple-deep);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}

.plan-tag {
    font-size: 12px;
    color: var(--c-text-soft);
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.plan-name {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 500;
    color: var(--c-text-dark);
    margin-bottom: 18px;
}

.plan-price {
    font-family: var(--font-display);
    margin-bottom: 14px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price .currency {
    font-size: 16px;
    color: var(--c-text-mid);
    font-weight: 400;
}

.plan-price .num {
    font-size: 38px;
    font-weight: 600;
    color: var(--c-purple-deep);
    line-height: 1;
}

.plan-price .unit {
    font-size: 14px;
    color: var(--c-text-soft);
    margin-left: 2px;
}

.plan-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--c-text-mid);
    font-weight: 300;
}

.modal-footer {
    padding: 24px 56px 40px;
    border-top: 1px solid var(--c-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.modal-footer .btn {
    flex-shrink: 0;
}

.modal-note {
    font-size: 13px;
    color: var(--c-text-soft);
    line-height: 1.6;
    flex: 1;
    min-width: 280px;
}

/* ============================================
   响应式
   ============================================ */

@media (max-width: 960px) {
    .nav-links { display: none; }

    .relations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .child-grid,
    .scenes-grid,
    .manifesto-grid,
    .download-inner,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 24px 24px;
    }

    .modal-header,
    .modal-tabs,
    .modal-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .section { padding: 80px var(--container-pad); }
}

@media (max-width: 600px) {
    .relations-grid {
        grid-template-columns: 1fr;
    }
    .relation-card {
        aspect-ratio: 5 / 3;
    }
    .scene { padding: 32px 24px; }
}
