/* ============================================================
   PactMe 官网首页
   只给 index.html 用。隐私政策 / 服务条款还走 style.css，两边不共享。

   配色照搬 design/ui_v2/shared/pact-theme.css 的语义层：
   浅底 + 一块黑 + 一点亮绿。手机 mock 里的屏幕读同一套令牌，
   所以切亮暗时 mock 跟着换，和 app 里切主题是同一个效果。

   手机 mock 的屏幕按 360 × 800 设计（= 1116 × 2480 同比例），
   整块用 transform 缩放：屏幕里一律写设计稿上的 px，不用换算。
   ============================================================ */

/* ── 调色板（只在这里出现绝对色值）──────────────── */
:root {
    --p-brand-50:  #F7FCE8;
    --p-brand-100: #EFF9CC;
    --p-brand-200: #E2F4A4;
    --p-brand-300: #D3EF72;
    --p-brand-400: #C8F04A;
    --p-brand-500: #A6D92B;
    --p-brand-600: #7DAE1B;
    --p-brand-700: #567C15;

    --p-n-900: #14170E;
    --p-n-800: #232719;
    --p-n-700: #414736;
    --p-n-600: #5E6551;
    --p-n-500: #888F7A;
    --p-n-400: #B6BCA8;
    --p-n-300: #CCD1BF;
    --p-n-200: #DFE3D5;
    --p-n-100: #EAEDE2;
    --p-n-50:  #F7F9F2;
    --p-n-bg:  #F1F3EA;

    --p-calm-50:  #EEF5FA;
    --p-calm-300: #9BC8E3;
    --p-calm-400: #6FAED6;
    --p-calm-600: #2D77A3;
    --p-calm-700: #235D7E;

    --p-bad-50:  #FCEEEB;
    --p-bad-300: #EFA79E;
    --p-bad-400: #E7796F;
    --p-bad-500: #DD554B;
    --p-bad-700: #A23027;

    --p-d-inset:   #0A0B06;
    --p-d-bg:      #101208;
    --p-d-surface: #1B1E15;
    --p-d-fill:    #21251A;
    --p-d-raised:  #262A1F;
    --p-d-line:    #353A2C;
    --p-d-stroke:  #464C3C;
    --p-d-t1: #EDF0E5;
    --p-d-t2: #A9AF9C;
    --p-d-t3: #8C9281;
    --p-d-t4: #565C4C;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
    --font-num: "SF Pro Display", "Segoe UI", -apple-system, system-ui, sans-serif;

    --wrap: 1180px;
}

/* ── 语义层 · 亮色 ─────────────────────────────── */
:root[data-theme="light"] {
    color-scheme: light;
    --bg-page:   var(--p-n-bg);
    --bg-card:   #FFFFFF;
    --bg-fill:   var(--p-n-50);
    --bg-inset:  var(--p-n-100);
    --text-1: var(--p-n-900);
    --text-2: var(--p-n-700);
    --text-3: var(--p-n-600);
    --text-4: var(--p-n-500);
    --line:   rgba(20,23,14,.08);
    --line-2: var(--p-n-300);
    --track:  var(--p-n-300);

    --brand-text:    var(--p-brand-700);
    --brand-solid:   var(--p-brand-600);
    --brand-surface: var(--p-brand-50);
    --brand-line:    var(--p-brand-300);
    --brand-ground:  var(--p-brand-400);
    --brand-graph:   var(--p-brand-500);
    --calm-text:     var(--p-calm-700);
    --calm-solid:    var(--p-calm-600);
    --calm-surface:  var(--p-calm-50);
    --bad-text:      var(--p-bad-700);
    --bad-solid:     var(--p-bad-500);
    --bad-surface:   var(--p-bad-50);
    --bad-line:      var(--p-bad-300);

    /* 主角卡两套主题下都是一块黑 */
    --hero-a: #1E2216;
    --hero-b: #101309;
    --hero-ring: transparent;

    --shadow-sm: 0 1px 2px rgba(20,23,14,.04), 0 0 0 1px rgba(20,23,14,.055);
    --shadow-lg: 0 30px 60px -20px rgba(20,23,14,.28), 0 0 0 1px rgba(20,23,14,.06);
    --bezel: #1A1D13;
    --scrim: rgba(20,23,14,.45);
}

/* ── 语义层 · 暗色（默认）─────────────────────── */
:root,
[data-theme="dark"] {
    color-scheme: dark;
    --bg-page:   var(--p-d-bg);
    --bg-card:   var(--p-d-surface);
    --bg-fill:   var(--p-d-fill);
    --bg-inset:  var(--p-d-inset);
    --text-1: var(--p-d-t1);
    --text-2: var(--p-d-t2);
    --text-3: var(--p-d-t3);
    --text-4: var(--p-d-t4);
    --line:   rgba(237,240,229,.08);
    --line-2: var(--p-d-stroke);
    --track:  var(--p-d-line);

    --brand-text:    var(--p-brand-300);
    --brand-solid:   var(--p-brand-400);
    --brand-surface: #1F2D12;
    --brand-line:    var(--p-brand-600);
    --brand-ground:  var(--p-brand-400);
    --brand-graph:   var(--p-brand-600);
    --calm-text:     var(--p-calm-300);
    --calm-solid:    var(--p-calm-400);
    --calm-surface:  #142B38;
    --bad-text:      var(--p-bad-300);
    --bad-solid:     var(--p-bad-500);
    --bad-surface:   #2B1A17;
    --bad-line:      #C9736A;

    --hero-a: #0B0D05;
    --hero-b: #060803;
    --hero-ring: rgba(200,240,74,.22);

    --shadow-sm: 0 0 0 1px rgba(237,240,229,.06);
    --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(237,240,229,.08);
    --bezel: #050603;
    --scrim: rgba(4,5,3,.62);
}

/* ── 语言：成对文案只显示一份 ─────────────────── */
[data-locale="en"] [data-lang="zh"],
[data-locale="zh"] [data-lang="en"] { display: none !important; }

/* ── 基础 ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-1);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
button { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor;
     stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i.fill { fill: currentColor; stroke: none; }

.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 100; background: var(--brand-ground); color: var(--p-n-900);
              padding: 8px 14px; border-radius: 10px; }

/* ── 顶栏 ──────────────────────────────────────── */
.top {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg-page) 82%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none;
         font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a { text-decoration: none; font-size: 14px; color: var(--text-2);
             padding: 6px 10px; border-radius: 999px; }
.top nav a:hover { color: var(--text-1); background: var(--bg-card); }
.tools { display: flex; align-items: center; gap: 8px; }

.lang-toggle { display: flex; padding: 3px; border-radius: 999px; background: var(--bg-card);
               box-shadow: var(--shadow-sm); }
.lang-toggle button { border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 600;
                      padding: 4px 11px; border-radius: 999px; color: var(--text-3); }
.lang-toggle button[aria-pressed="true"] { background: var(--brand-ground); color: var(--p-n-900); }

.theme-toggle { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
                display: grid; place-items: center; background: var(--bg-card);
                box-shadow: var(--shadow-sm); color: var(--text-2); }
.theme-toggle:hover { color: var(--text-1); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .theme-toggle .ico-moon,
[data-theme="light"] .theme-toggle .ico-sun { display: none; }

/* ── 通用段落 ──────────────────────────────────── */
section { padding: 112px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
           letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; }
[data-locale="zh"] .h2 { letter-spacing: -.01em; line-height: 1.25; }
.lead { margin-top: 18px; font-size: 18px; color: var(--text-2); max-width: 620px; }
.hl { color: var(--brand-text); }
.head { margin-bottom: 56px; }

.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700;
       font-size: 15px; padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer; }
.btn-primary { background: var(--brand-ground); color: var(--p-n-900); }
.btn-primary:hover { filter: brightness(1.04); }
.btn-ghost { background: var(--bg-card); box-shadow: var(--shadow-sm); color: var(--text-1); }
.btn .i { font-size: 18px; }

/* ── 首屏 ──────────────────────────────────────── */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-ground) 16%, transparent), transparent);
    pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; font-weight: 850; letter-spacing: -.045em; }
[data-locale="zh"] .hero h1 { letter-spacing: -.02em; line-height: 1.15; }
.hero h1 em { font-style: normal; color: var(--brand-text); }
.hero .lead { font-size: 19px; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; font-size: 14px; color: var(--text-3); }
.badges span { display: inline-flex; align-items: center; gap: 7px; }
.badges .i { color: var(--brand-text); font-size: 16px; }
.hero-stage { display: flex; justify-content: center; position: relative; }

/* ── 作用：一圈流程 ────────────────────────────── */
.loop { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: loop; }
.loop li { list-style: none; position: relative; background: var(--bg-card); border-radius: 22px;
           padding: 22px 20px 24px; box-shadow: var(--shadow-sm); counter-increment: loop; }
.loop li::before { content: counter(loop, decimal-leading-zero); font-family: var(--font-num);
                   font-size: 13px; font-weight: 700; color: var(--text-4); }
.loop li:not(:last-child)::after {
    content: ""; position: absolute; right: -11px; top: 50%; width: 8px; height: 8px;
    border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2);
    transform: translateY(-50%) rotate(45deg); z-index: 1;
}
.loop .ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
            background: var(--brand-surface); color: var(--brand-text); margin: 14px 0 16px; font-size: 21px; }
.loop h3 { font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.loop p { font-size: 14px; color: var(--text-3); margin-top: 6px; line-height: 1.55; }
.loop li.dark { background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: #EDF0E5;
                box-shadow: inset 0 0 0 1px var(--hero-ring); }
.loop li.dark p { color: #A9AF9C; }
.loop li.dark::before { color: #565C4C; }
.loop li.dark .ic { background: var(--brand-ground); color: var(--p-n-900); }
.loop-note { margin-top: 26px; font-size: 15px; color: var(--text-3); max-width: 760px; }
.loop-note b { color: var(--text-1); }

/* ── 使用场景 ──────────────────────────────────── */
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scene { background: var(--bg-card); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-sm);
         display: flex; flex-direction: column; }
.scene .when { font-family: var(--font-num); font-size: 13px; font-weight: 700; color: var(--text-4);
               display: flex; align-items: center; gap: 8px; }
.scene .when .i { color: var(--brand-text); font-size: 16px; }
.scene h3 { font-size: 20px; font-weight: 750; letter-spacing: -.015em; margin: 14px 0 8px; }
.scene p { font-size: 15px; color: var(--text-2); }
.scene .recipe { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650;
        padding: 4px 10px; border-radius: 999px; background: var(--bg-fill); color: var(--text-2);
        box-shadow: inset 0 0 0 1px var(--line); }
.chip.g { background: var(--brand-surface); color: var(--brand-text); box-shadow: none; }
.chip.b { background: var(--calm-surface); color: var(--calm-text); box-shadow: none; }
.chip.r { background: var(--bad-surface); color: var(--bad-text); box-shadow: none; }

/* ── 图文分栏：说明 + 手机 ─────────────────────── */
.split { display: grid; grid-template-columns: 1fr auto; gap: 72px; align-items: center; }
.split.flip { grid-template-columns: auto 1fr; }
.split.flip .copy { order: 2; }
.copy .lead { max-width: 560px; }
.phones { display: flex; gap: 28px; justify-content: center; align-items: flex-start; }
.phones .phone:nth-child(2) { margin-top: 64px; }

.steps { margin: 34px 0 0; padding: 0; counter-reset: st; display: grid; gap: 4px; }
.steps li { list-style: none; counter-increment: st; display: grid; grid-template-columns: 40px 1fr;
            gap: 4px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(st); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%;
                    display: grid; place-items: center; font-family: var(--font-num); font-size: 14px;
                    font-weight: 800; background: var(--brand-ground); color: var(--p-n-900); margin-top: 1px; }
.steps b { font-size: 16.5px; font-weight: 750; }
.steps span { font-size: 15px; color: var(--text-3); }

.modes { display: grid; gap: 12px; margin-top: 34px; }
.mode { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: start;
        padding: 18px 20px; border-radius: 20px; background: var(--bg-card); box-shadow: var(--shadow-sm); }
.mode .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; }
.mode h3 { font-size: 17px; font-weight: 750; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mode p { font-size: 14.5px; color: var(--text-3); margin-top: 3px; }
.mode .tag { font-size: 12px; font-weight: 700; color: var(--text-3); white-space: nowrap; padding-top: 3px; }
.mode.g .ic { background: var(--brand-surface); color: var(--brand-text); }
.mode.b .ic { background: var(--calm-surface); color: var(--calm-text); }
.mode.r .ic { background: var(--bad-surface); color: var(--bad-text); }

.howto { margin-top: 28px; padding: 18px 20px; border-radius: 18px; background: var(--bg-fill);
         box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; color: var(--text-2); }
.howto strong { display: flex; align-items: center; gap: 8px; color: var(--text-1); font-size: 15px; margin-bottom: 6px; }
.howto strong .i { color: var(--brand-text); }
.path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-weight: 650; color: var(--text-1); }
.path .i { font-size: 13px; color: var(--text-4); }

.ranges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; }
.range { border-radius: 18px; padding: 16px 16px 18px; background: var(--bg-card); box-shadow: var(--shadow-sm); }
.range b { display: block; font-family: var(--font-num); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.range span { font-size: 13.5px; color: var(--text-3); display: block; margin-top: 4px; line-height: 1.5; }
.range em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--text-4); }

.notes { margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.notes li { list-style: none; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.notes li > i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
                font-family: var(--font-num); font-size: 13px; font-weight: 800;
                background: var(--brand-ground); color: var(--p-n-900); margin-top: 1px; }
.notes b { display: block; font-size: 16px; font-weight: 750; }
.notes span { font-size: 14.5px; color: var(--text-3); }

/* ── 免费 / PRO ────────────────────────────────── */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { border-radius: 28px; padding: 32px; background: var(--bg-card); box-shadow: var(--shadow-sm); }
.plan.pro { background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: #EDF0E5;
            box-shadow: inset 0 0 0 1px var(--hero-ring); }
.plan h3 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.plan .sub { font-size: 14.5px; color: var(--text-3); margin-top: 4px; }
.plan.pro .sub { color: #A9AF9C; }
.plan ul { margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.plan li { list-style: none; display: flex; gap: 10px; font-size: 15px; align-items: flex-start; }
.plan li .i { font-size: 18px; margin-top: 3px; color: var(--brand-text); }
.plan.pro li .i { color: var(--p-brand-400); }
.plan li b { font-weight: 700; }
.pro-pill { font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px;
            background: var(--p-brand-400); color: var(--p-n-900); }

/* ── 隐私 ──────────────────────────────────────── */
.privacy-card { border-radius: 32px; padding: 48px; background: linear-gradient(160deg, var(--hero-a), var(--hero-b));
                color: #EDF0E5; box-shadow: inset 0 0 0 1px var(--hero-ring);
                display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.privacy-card .h2 { color: #EDF0E5; }
.privacy-card .lead { color: #A9AF9C; }
.privacy-card .eyebrow { color: var(--p-brand-300); }
.pv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pv div { border-radius: 20px; padding: 18px; background: rgba(237,240,229,.05);
          box-shadow: inset 0 0 0 1px rgba(237,240,229,.08); }
.pv .i { color: var(--p-brand-400); font-size: 22px; }
.pv b { display: block; margin-top: 12px; font-size: 15.5px; }
.pv span { display: block; font-size: 13.5px; color: #A9AF9C; margin-top: 4px; line-height: 1.55; }
.privacy-card a.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; color: var(--p-brand-300);
                       font-weight: 700; text-decoration: none; font-size: 15px; }
.privacy-card a.more:hover { text-decoration: underline; }

/* ── FAQ ───────────────────────────────────────── */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--bg-card); border-radius: 20px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; font-size: 16.5px;
               display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--text-4); transition: transform .2s; font-size: 18px; }
.faq details[open] summary .i { transform: rotate(45deg); color: var(--brand-text); }
.faq details > div { padding: 0 24px 22px; color: var(--text-2); font-size: 15px; }
.faq details > div p + p { margin-top: 10px; }

/* ── 页脚 ──────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--text-3); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text-1); }

/* ══════════════════════════════════════════════════
   手机 mock
   ══════════════════════════════════════════════════ */
.phone {
    --k: .8;
    position: relative; flex: none;
    width: calc(360px * var(--k) + 20px);
    padding: 10px; border-radius: calc(46px * var(--k) + 10px);
    background: var(--bezel);
    box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.06);
}
.phone.lg { --k: .9; }
.phone .vp { width: calc(360px * var(--k)); height: calc(800px * var(--k));
             border-radius: calc(46px * var(--k)); overflow: hidden; position: relative; }
.phone .cap { position: absolute; left: 50%; top: calc(14px * var(--k) + 10px); width: calc(11px * var(--k));
              height: calc(11px * var(--k)); border-radius: 50%; background: #000; transform: translateX(-50%); z-index: 5; }
.phone figcaption { position: absolute; left: 0; right: 0; bottom: -40px; text-align: center;
                    font-size: 13px; color: var(--text-4); font-weight: 600; }

/* 屏幕本体：一律按 360 × 800 的设计稿写 */
.scr {
    width: 360px; height: 800px; transform: scale(var(--k)); transform-origin: 0 0;
    background: var(--bg-page); color: var(--text-1); position: relative; overflow: hidden;
    font-size: 13px; line-height: 1.45; text-align: left;
}
.scr * { min-width: 0; }
.sb { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 6px 24px 0;
      font-family: var(--font-num); font-size: 13px; font-weight: 650; }
.sb .r { display: flex; gap: 5px; align-items: center; }
.sb .r .i { font-size: 14px; }
.body { padding: 6px 16px 0; display: grid; gap: 12px; }

.t-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px 10px; }
.t-back { width: 40px; height: 40px; border-radius: 13px; background: var(--bg-card); box-shadow: var(--shadow-sm);
          display: grid; place-items: center; color: var(--text-2); font-size: 18px; flex: none; }
.t-bar h4 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.t-bar small { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }

.card { background: var(--bg-card); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 16px; position: relative; }
.card h5 { font-size: 14.5px; font-weight: 750; display: flex; align-items: center; gap: 7px; }
.card h5 .i { color: var(--brand-text); font-size: 16px; }
.card .row-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.muted { color: var(--text-3); }
.small { font-size: 11.5px; }

/* 标注序号：挂在卡片右上角，和页面上的说明一一对应 */
[data-n]::after {
    content: attr(data-n); position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center; font-family: var(--font-num); font-size: 12px; font-weight: 800;
    background: var(--p-brand-400); color: var(--p-n-900); box-shadow: 0 0 0 3px var(--bg-page); z-index: 3;
}

.av { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
      font-size: 12px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.av.s { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.av.o { background: linear-gradient(140deg, #E8A24F, #C8772A); }
.av.u { background: linear-gradient(140deg, #5B9BEF, #2F6FD1); }
.av.k { background: linear-gradient(140deg, #2B2B2B, #0E0E0E); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.av.p { background: linear-gradient(140deg, #F2566E, #D8304C); }
.av.t { background: linear-gradient(140deg, #36C1A8, #17917C); }

.btn-m { height: 50px; border-radius: 999px; background: var(--brand-ground); color: var(--p-n-900);
         display: grid; place-items: center; font-weight: 800; font-size: 14.5px; }
.dock { position: absolute; left: 16px; right: 16px; bottom: 22px; }

.pro-b { font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 1px 7px; border-radius: 999px;
       color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ── 守约弹层（首屏）── */
.feed { position: absolute; inset: 0; background: #0B0B0E; }
.feed .vid { position: absolute; inset: 0;
             background:
               radial-gradient(60% 40% at 30% 30%, rgba(255,120,150,.55), transparent 70%),
               radial-gradient(50% 40% at 75% 55%, rgba(90,170,255,.5), transparent 70%),
               radial-gradient(70% 50% at 50% 90%, rgba(255,200,90,.35), transparent 70%),
               linear-gradient(180deg, #1A1325, #0E0E14); }
.feed .tabs { position: absolute; top: 46px; left: 0; right: 0; display: flex; justify-content: center; gap: 22px;
              color: rgba(255,255,255,.65); font-size: 15px; font-weight: 700; }
.feed .tabs b { color: #fff; }
.feed .side { position: absolute; right: 14px; top: 290px; display: grid; gap: 18px; color: #fff; justify-items: center; font-size: 11px; }
.feed .side .i { font-size: 30px; }
.feed .cap-t { position: absolute; left: 16px; bottom: 120px; color: #fff; width: 250px; font-size: 13px; }
.feed .cap-t b { display: block; font-size: 15px; margin-bottom: 4px; }
.scrim { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet { position: absolute; left: 10px; right: 10px; bottom: 12px; background: var(--bg-card); border-radius: 30px;
         padding: 20px 18px 20px; box-shadow: 0 -10px 40px rgba(0,0,0,.35), inset 0 0 0 1px var(--line); }
.sheet .who { display: flex; align-items: center; gap: 10px; }
.sheet .who span { font-size: 12.5px; color: var(--text-3); }
.sheet .who b { display: block; font-size: 13px; color: var(--text-1); }
.sheet h4 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 16px 0 4px; line-height: 1.25; }
.sheet .tally { font-size: 12px; color: var(--text-3); }
.durs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 18px; }
.durs span { height: 44px; border-radius: 14px; background: var(--bg-fill); display: grid; place-items: center;
             font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.durs span.on { background: var(--brand-surface); color: var(--brand-text); box-shadow: inset 0 0 0 1.5px var(--brand-line); }

/* ── 到点卡 ── */
.done-card { position: absolute; left: 14px; right: 14px; top: 150px; background: var(--bg-card); border-radius: 30px;
             overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35), inset 0 0 0 1px var(--line); }
.done-bar { background: var(--brand-surface); color: var(--brand-text); font-weight: 750; font-size: 12.5px;
            padding: 11px 18px; display: flex; align-items: center; gap: 7px; }
.done-bar .i { font-size: 16px; }
.done-in { padding: 18px 20px 20px; text-align: center; }
.mode-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--brand-text);
            background: var(--brand-surface); padding: 4px 10px; border-radius: 999px; }
.done-in h4 { font-size: 22px; font-weight: 800; margin: 12px 0 14px; }
.ring { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .lbl b { font-family: var(--font-num); font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.ring .lbl small { font-size: 11px; color: var(--text-3); }
.done-in p { font-size: 13px; color: var(--text-2); margin: 16px 0 18px; }
.done-in p b { display: block; color: var(--text-1); font-size: 14.5px; margin-bottom: 2px; }
.done-in .alt { margin-top: 12px; font-size: 12.5px; color: var(--bad-text); display: flex; gap: 5px; justify-content: center; align-items: center; }

/* ── 模式选择 ── */
.m-mode { border-radius: 20px; padding: 14px 16px; background: var(--bg-card); box-shadow: var(--shadow-sm); position: relative; }
.m-mode.on { background: var(--brand-surface); box-shadow: inset 0 0 0 1.5px var(--brand-line); }
.m-mode .top-r { display: flex; align-items: center; gap: 12px; }
.m-mode .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; flex: none; }
.m-mode.g .ic { color: var(--brand-text); background: color-mix(in srgb, var(--brand-ground) 14%, transparent); }
.m-mode.b .ic { color: var(--calm-text); background: var(--calm-surface); }
.m-mode.r .ic { color: var(--bad-text); background: var(--bad-surface); }
.m-mode b { font-size: 15.5px; font-weight: 800; display: flex; gap: 6px; align-items: center; }
.m-mode small { font-size: 11.5px; color: var(--text-3); display: block; }
.m-mode .chk { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-ground);
               color: var(--p-n-900); display: grid; place-items: center; font-size: 14px; }
.m-mode p { font-size: 12.5px; color: var(--text-2); margin-top: 10px; line-height: 1.55; }

/* ── 冷静期 ── */
.tags3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.tags3 div { border-radius: 14px; padding: 9px 4px; text-align: center; font-size: 11px; line-height: 1.4; color: var(--text-2); }
.tags3 b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.tags3 .g { background: var(--brand-surface); } .tags3 .g b { color: var(--brand-text); }
.tags3 .b { background: var(--calm-surface); } .tags3 .b b { color: var(--calm-text); }
.tags3 .r { background: var(--bad-surface); }  .tags3 .r b { color: var(--bad-text); }
.lbl-s { font-size: 12px; font-weight: 700; color: var(--text-3); margin-bottom: 9px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick span { height: 40px; border-radius: 13px; background: var(--bg-fill); display: grid; place-items: center;
              font-size: 13px; font-weight: 750; color: var(--text-2); }
.quick span.on { background: var(--brand-surface); color: var(--brand-text); box-shadow: inset 0 0 0 1.5px var(--brand-line); }
.wheel { margin-top: 2px; border-radius: 16px; background: var(--bg-fill); padding: 8px 14px; position: relative;
         display: grid; grid-template-columns: 1fr 1fr; text-align: center; font-family: var(--font-num); }
.wheel::before { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 40px; transform: translateY(-50%);
                 border-radius: 12px; background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); }
.wheel div { position: relative; display: grid; gap: 2px; }
.wheel span { height: 26px; line-height: 26px; color: var(--text-4); font-size: 15px; font-weight: 600; }
.wheel span.c { height: 40px; line-height: 40px; color: var(--text-1); font-size: 24px; font-weight: 800; }
.wheel span.c small { font-size: 12px; color: var(--text-3); font-weight: 600; margin-left: 3px; font-family: var(--font); }

/* ── 看板 ── */
.d-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 10px 20px 4px; }
.d-head h4 { font-size: 28px; font-weight: 850; letter-spacing: -.02em; line-height: 1.1; }
.d-head .date { text-align: right; font-size: 14px; font-weight: 700; line-height: 1.3; }
.d-head .date small { display: block; font-size: 12px; color: var(--text-3); font-weight: 500; }
.hero-c { border-radius: 28px; padding: 16px 18px; color: #EDF0E5; position: relative; overflow: visible;
          background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); box-shadow: inset 0 0 0 1px var(--hero-ring); }
[data-theme="light"] .hero-c { background: linear-gradient(160deg, #1E2216, #101309); }
.hero-c .st { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; }
.hero-c .st i { width: 7px; height: 7px; border-radius: 50%; background: var(--p-brand-400); display: inline-block; margin-right: 7px; }
.hero-c .md { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: rgba(237,240,229,.1); }
.hero-c .in { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.hero-c .ring { width: 92px; height: 92px; margin: 0; }
.hero-c .ring .lbl b { font-size: 20px; color: #fff; }
.hero-c .ring .lbl small { color: #A9AF9C; font-size: 10.5px; }
.hero-c .app { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.hero-c .meta { font-size: 11.5px; color: #A9AF9C; margin-top: 6px; line-height: 1.55; }
.rate { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.rate .ring { width: 96px; height: 96px; margin: 0; }
.rate .ring .lbl b { font-size: 28px; }
.rate .ring .lbl b small { font-size: 12px; color: var(--text-3); }
.kv { flex: 1; display: grid; gap: 8px; }
.kv div { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-3); }
.kv div .i { font-size: 14px; }
.kv div b { margin-left: auto; color: var(--text-1); font-family: var(--font-num); font-size: 13px; }
.up { font-size: 11px; font-weight: 750; color: var(--brand-text); background: var(--brand-surface); padding: 3px 9px;
      border-radius: 999px; display: inline-flex; gap: 4px; align-items: center; }
.up .i { font-size: 12px; }
.down { color: var(--bad-text); background: var(--bad-surface); }
.vio { border-left: 3px solid var(--bad-line); }
.vio-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 14px; background: var(--bad-surface); }
.vio-row b { font-size: 13px; display: block; }
.vio-row small { font-size: 11px; color: var(--text-3); }
.vio-row em { margin-left: auto; font-style: normal; font-weight: 800; color: var(--bad-text); font-family: var(--font-num); }
.apps-l { display: grid; gap: 8px; margin-top: 10px; }
.apps-l > div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--bg-fill); }
.apps-l b { font-size: 12.5px; display: block; }
.apps-l small { font-size: 11px; color: var(--text-3); }
.pill { margin-left: auto; font-size: 10.5px; font-weight: 750; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill.g { background: var(--brand-surface); color: var(--brand-text); }
.pill.b { background: var(--calm-surface); color: var(--calm-text); }
.pill.r { background: var(--bad-surface); color: var(--bad-text); }
.nav-b { position: absolute; left: 0; right: 0; bottom: 0; height: 66px; background: var(--bg-card);
         box-shadow: 0 -1px 0 var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 9px; }
.nav-b span { display: grid; justify-items: center; gap: 2px; font-size: 10.5px; color: var(--text-4); font-weight: 600; }
.nav-b span .i { font-size: 20px; }
.nav-b span.on { color: var(--brand-text); }

/* ── 今日统计 ── */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg-card); border-radius: 999px; padding: 4px;
       box-shadow: var(--shadow-sm); margin: 0 16px; }
.seg span { text-align: center; font-size: 12.5px; font-weight: 700; padding: 6px 0; border-radius: 999px; color: var(--text-3); }
.seg span.on { background: var(--brand-ground); color: var(--p-n-900); }
.verdict { display: flex; gap: 14px; align-items: center; }
.verdict .big { font-family: var(--font-num); font-size: 44px; font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.verdict .big small { font-size: 16px; color: var(--text-3); }
.verdict .cap2 { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.verdict h6 { font-size: 15px; font-weight: 800; margin: 0; }
.verdict p { font-size: 11.5px; color: var(--text-3); margin-top: 3px; line-height: 1.5; }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.tri div { background: var(--bg-fill); border-radius: 13px; padding: 8px 10px; }
.tri b { font-family: var(--font-num); font-size: 17px; font-weight: 800; display: block; }
.tri small { font-size: 10.5px; color: var(--text-3); }
.tri .bad b { color: var(--bad-text); }
.tbl { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 11.5px; }
.tbl th { text-align: left; font-weight: 600; color: var(--text-4); font-size: 10.5px; padding: 4px 0; }
.tbl td { padding: 4px 0; border-top: 1px solid var(--line); font-family: var(--font-num); }
.tbl td:first-child { font-family: var(--font); font-weight: 700; }
.tbl td:first-child small { color: var(--text-4); font-weight: 500; margin-left: 4px; font-family: var(--font-num); }
.tbl .bar { display: block; height: 6px; border-radius: 3px; background: var(--track); width: 64px; overflow: hidden; }
.tbl .bar i { display: block; height: 100%; background: var(--brand-graph); border-radius: 3px; }
.tbl .bad { color: var(--bad-text); font-weight: 700; }
.hours { display: flex; align-items: flex-end; gap: 3px; height: 44px; margin-top: 10px; }
.hours i { flex: 1; background: var(--brand-graph); border-radius: 2px 2px 1px 1px; min-height: 2px; opacity: .9; }
.hours i.z { background: var(--track); }
.hours i.x { background: var(--bad-solid); }
.axis { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--text-4); margin-top: 4px; font-family: var(--font-num); }
.cmp { display: grid; gap: 0; margin-top: 6px; }
.cmp div { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 12px; }
.cmp div:first-child { border-top: 0; }
.cmp small { color: var(--text-4); font-size: 10.5px; }
.cmp b { margin-left: auto; font-family: var(--font-num); }
.cmp em { font-style: normal; font-size: 10.5px; font-weight: 750; min-width: 46px; text-align: right; font-family: var(--font-num); }
.cmp em.g { color: var(--brand-text); }
.cmp em.r { color: var(--bad-text); }

/* ══════════════════════════════════════════════════
   响应式
   ══════════════════════════════════════════════════ */
@media (max-width: 1080px) {
    .top nav { display: none; }
    .tools { margin-left: auto; }
    .loop { grid-template-columns: repeat(2, 1fr); }
    .loop li:not(:last-child)::after { display: none; }
    .loop li.dark { grid-column: span 2; }
    .scenes { grid-template-columns: repeat(2, 1fr); }
    .split, .split.flip { grid-template-columns: 1fr; gap: 56px; }
    .split.flip .copy { order: 0; }
    .privacy-card { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-stage { margin-top: 12px; }
}
@media (max-width: 640px) {
    section { padding: 80px 0; }
    .wrap { padding: 0 18px; }
    .hero { padding: 40px 0 72px; }
    .lead, .hero .lead { font-size: 16.5px; }
    .scenes, .plans, .ranges, .pv { grid-template-columns: 1fr; }
    .loop { grid-template-columns: 1fr; }
    .loop li.dark { grid-column: auto; }
    .phone { --k: .74; }
    .phone.lg { --k: .8; }
    .phones { flex-direction: column; align-items: center; gap: 72px; }
    .phones .phone:nth-child(2) { margin-top: 0; }
    .privacy-card, .plan { padding: 28px 22px; border-radius: 26px; }
    .brand span[data-lang] { display: none; }
}
@media (max-width: 380px) {
    .phone, .phone.lg { --k: .68; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
