/*
 * 公开站样式：首页、产品功能、数据安全、常见问题、隐私、条款、联系我们、登录。
 * 配 tokens.css 使用，字体、钴蓝、圆角和产品同一套。
 *
 * 版式：内容宽 1120，顶栏和页脚每页相同；顶栏第一项是「首页」，每页都有一项标为当前。
 * 二级页的页首都是 .s-head（浅蓝渐变、居中标题和一句话），深蓝只用在首页的数据安全一栏。
 * 首屏一句标题、一句说明、两个按钮，下面是大幅产品图。
 * 卖点是一块一块的：图标、标题、一两句话、一张真实截图。截图放在带颜色的底板（.s-stage）上，
 * 统一圆角和柔和阴影（.s-shot）。底板的颜色按主题分：蓝是总数和收益，青是比例，紫是退休，橙是记账。
 * 手机单列，配图换成手机界面的截图。
 */

:root {
  --p-gutter: 32px;
  --p-max: 1120px;
  --p-nav-h: 64px;

  --s-navy: #0f1c40;
  --s-navy-2: #1a2b5c;
  --s-blue-50: #eef3ff;
  --s-blue-100: #dbe5fd;
  --s-teal-50: #e7f5f2;
  --s-teal-100: #cdebe5;
  --s-violet-50: #f2edfb;
  --s-violet-100: #e1d6f6;
  --s-amber-50: #fcf2e6;
  --s-amber-100: #f6dfc2;
  --s-rose-50: #fcedf3;
  --s-rose-100: #f5d3e1;
  --s-olive-50: #f1f4e6;
  --s-olive-100: #dfe6c4;

  --s-h1: 60px;
  --s-h2: 40px;
  --s-h3: 22px;
  --s-lead: 20px;
  --s-body: 17px;
  --s-section: 120px;
  --s-shadow: 0 1px 2px rgba(15, 28, 64, 0.06), 0 12px 32px -8px rgba(15, 28, 64, 0.18), 0 0 0 0.5px rgba(15, 28, 64, 0.08);
  --s-shadow-lg: 0 2px 4px rgba(15, 28, 64, 0.05), 0 32px 64px -16px rgba(15, 28, 64, 0.28), 0 0 0 0.5px rgba(15, 28, 64, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--p-nav-h) + 16px); }
body {
  background: #fff; color: var(--text-1);
  font-family: var(--font-body); font-size: var(--s-body); line-height: var(--lh-text);
  text-wrap: pretty; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; text-wrap: balance; letter-spacing: -0.015em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.p-wrap { max-width: calc(var(--p-max) + var(--p-gutter) * 2); margin: 0 auto; padding: 0 var(--p-gutter); }
/* 退休测算的结果页有三栏的条件清单和图表，比文字页宽一些 */
.p-wrap--wide { max-width: calc(1280px + var(--p-gutter) * 2); }

/* ─── 顶栏：每页相同，当前页 aria-current ─── */
.p-nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 0.5px solid var(--line-strong); }
.p-nav__row { position: relative; display: flex; align-items: center; gap: 40px; height: var(--p-nav-h); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; color: var(--text-1); }
.brand svg { display: block; }
.p-nav__links { display: flex; gap: 32px; }
.p-nav__links a { position: relative; display: inline-flex; align-items: center; height: var(--p-nav-h); font-size: 15px; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.p-nav__links a:hover { color: var(--text-1); }
.p-nav__links a[aria-current="page"] { color: var(--text-1); font-weight: 600; }
.p-nav__links a[aria-current="page"]::before { content: ""; position: absolute; left: 0; right: 0; bottom: -0.5px; height: 2px; border-radius: 2px; background: var(--accent); }
.p-nav__right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.p-nav__login { font-size: 15px; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.p-nav__login:hover { color: var(--text-1); }
.p-nav__login[aria-current="page"] { color: var(--accent); font-weight: 600; }
.p-nav__menu { display: none; position: relative; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -8px; border: 0; border-radius: 10px; background: none; color: var(--text-1); cursor: pointer; }
.p-nav__menu:hover { background: var(--fill-1); }
.p-nav__menu svg { display: block; }
.p-nav__menu .is-x { display: none; }
.p-nav.is-open .p-nav__menu .is-x { display: block; }
.p-nav.is-open .p-nav__menu .is-bars { display: none; }

/* ─── 按钮与链接 ─── */
.p-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 999px; font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; transition: background var(--motion) var(--ease), box-shadow var(--motion) var(--ease); }
.p-btn--primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(33, 72, 181, 0.3), 0 6px 16px -6px rgba(43, 87, 212, 0.6); }
.p-btn--primary:hover { background: var(--accent-deep); }
.p-btn--secondary { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1px rgba(43, 87, 212, 0.28); }
.p-btn--secondary:hover { background: var(--s-blue-50); }
.p-btn--sm { height: 36px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.p-btn--light { background: #fff; color: var(--s-navy); }
.p-btn--light:hover { background: var(--s-blue-50); }
.p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.p-link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 500; text-decoration: none; }
.p-link::after { content: "›"; font-size: 1.2em; line-height: 1; transform: translateY(-0.04em); transition: transform var(--motion) var(--ease); }
.p-link:hover::after { transform: translate(2px, -0.04em); }
.p-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ─── 首屏 ─── */
.s-hero { position: relative; padding: 88px 0 0; background: linear-gradient(180deg, var(--s-blue-50) 0%, #f6f8ff 46%, #fff 100%); overflow: hidden; }
.s-hero::before { content: ""; position: absolute; inset: auto 0 0 0; height: 220px; background: #fff; }
.s-hero__text { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.s-hero h1 { font-size: var(--s-h1); line-height: 1.12; letter-spacing: -0.025em; }
.s-hero__lead { max-width: 32em; margin: 20px auto 0; font-size: var(--s-lead); line-height: 1.6; color: var(--text-2); }
.s-hero .p-actions { justify-content: center; margin-top: 36px; }
.s-hero__media { position: relative; margin: 64px auto 0; max-width: 1120px; padding-bottom: 32px; }
.s-hero__desk { border-radius: 16px; box-shadow: var(--s-shadow-lg); background: var(--bg-page); }
/* 手机样机只在手机宽度代替桌面大图；宽屏不叠在大图上，叠上去会挡住右栏 */
.s-hero__phone { display: none; padding: 7px; border-radius: 40px; background: #16181d; box-shadow: var(--s-shadow-lg); }
.s-hero__phone img { border-radius: 33px; }

/* ─── 页面标题（产品功能、数据安全、常见问题、文档页） ─── */
.s-head { padding: 80px 0 40px; background: linear-gradient(180deg, var(--s-blue-50) 0%, #fff 100%); text-align: center; }
.s-head h1 { font-size: 52px; line-height: 1.15; letter-spacing: -0.025em; }
.s-head p { max-width: 34em; margin: 16px auto 0; font-size: var(--s-lead); line-height: 1.6; color: var(--text-2); text-wrap: balance; }
.s-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.s-jump a { position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.s-jump a:hover { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(43, 87, 212, 0.4); }

/* 页内的分区导航（产品功能）：吸在顶栏下面，滚到哪一节就标出哪一节。
   从首页的「了解……」跳过来时，读者靠它知道自己落在哪一节、还有哪些节。形态和顶栏一样是下划线页签（开发指南 6.1「页面内的分区」） */
.s-local { --s-local-h: 48px; position: sticky; top: var(--p-nav-h); z-index: 40; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 0.5px solid var(--line-strong); }
.s-local__row { display: flex; justify-content: center; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.s-local__row::-webkit-scrollbar { display: none; }
.s-local a { position: relative; flex: none; display: inline-flex; align-items: center; height: var(--s-local-h); font-size: 15px; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.s-local a:hover { color: var(--text-1); }
.s-local a[aria-current] { color: var(--text-1); font-weight: 600; }
.s-local a[aria-current]::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); }
html:has(.s-local) { scroll-padding-top: calc(var(--p-nav-h) + 48px); }

/* ─── 卖点块 ─── */
.s-features { padding: 24px 0 var(--s-section); }
.s-head + .s-features, .s-local + .s-features { padding-top: 0; }
/* 锚点落点由 html 的 scroll-padding-top 让出顶栏（有页内导航时再加它的高度），这里不再另加，否则落点会多出一截上一节的内容 */
.s-feature { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 15fr); gap: 64px; align-items: center; padding: 56px 0; }
.s-feature.is-flip { grid-template-columns: minmax(0, 15fr) minmax(0, 9fr); }
.s-feature.is-flip > .s-feature__text { order: 2; }
.s-feature.is-wide { grid-template-columns: minmax(0, 1fr); gap: 40px; }
/* 标题和说明顶端对齐：说明有三四行时，底端对齐会让标题离图标很远、悬在半空 */
.s-feature.is-wide > .s-feature__text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 72px; align-items: start; }
.s-feature.is-wide > .s-feature__text > .s-icon { grid-column: 1; }
.s-feature.is-wide > .s-feature__text > h2 { grid-column: 1; }
.s-feature.is-wide > .s-feature__text > p, .s-feature.is-wide > .s-feature__text > .p-link { grid-column: 2; }
.s-feature.is-wide > .s-feature__text > p:first-of-type { margin-top: 0; padding-top: 6px; }
.s-feature.is-wide > .s-feature__text > p + p { margin-top: 12px; }
.s-feature h2 { font-size: var(--s-h2); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.s-feature__text p { max-width: 26em; margin-top: 16px; font-size: 18px; line-height: 1.65; color: var(--text-2); }
.s-feature__text > .p-link { margin-top: 20px; font-size: 16px; }
.s-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 12px; background: var(--tint, var(--s-blue-50)); color: var(--ink, var(--accent)); }
.s-icon svg { display: block; }

/* 底板和截图：同一种框，颜色跟主题走 */
.s-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 32px; padding: 40px; border-radius: 28px; background: linear-gradient(140deg, var(--tint, var(--s-blue-50)) 0%, var(--tint-2, var(--s-blue-100)) 100%); overflow: hidden; }
.s-stage--top { align-items: flex-start; }
.s-shot { display: block; max-width: 100%; height: auto; border-radius: 14px; box-shadow: var(--s-shadow); background: var(--bg-page); }
.s-shot--phone { border-radius: 22px; }
.s-shot--card { border-radius: var(--r-card); }
/* 截图下边是从长页面里截断的：渐隐，表示后面还有 */
.s-shot--fade { -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); box-shadow: none; }
.s-stage picture { display: block; min-width: 0; }
.s-pair { display: flex; align-items: flex-start; gap: 28px; }
.s-pair > :first-child { flex: 0 0 34%; }
.s-pair > :last-child { flex: 1 1 auto; }

.t-blue { --tint: var(--s-blue-50); --tint-2: var(--s-blue-100); --ink: var(--accent); }
.t-teal { --tint: var(--s-teal-50); --tint-2: var(--s-teal-100); --ink: #157a6e; }
.t-violet { --tint: var(--s-violet-50); --tint-2: var(--s-violet-100); --ink: #6b45b8; }
.t-amber { --tint: var(--s-amber-50); --tint-2: var(--s-amber-100); --ink: #a85a12; }
.t-rose { --tint: var(--s-rose-50); --tint-2: var(--s-rose-100); --ink: #b03a6c; }
.t-olive { --tint: var(--s-olive-50); --tint-2: var(--s-olive-100); --ink: #5c6d1f; }

.s-more { margin-top: 24px; text-align: center; font-size: 17px; }

/* ─── 数据安全一栏（首页） ─── */
.s-secure { padding: 96px 0; background: radial-gradient(120% 140% at 85% 0%, var(--s-navy-2) 0%, var(--s-navy) 60%); color: #fff; }
.s-secure__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: center; }
.s-secure h2 { font-size: var(--s-h2); line-height: 1.2; letter-spacing: -0.02em; }
.s-secure__lead { margin-top: 16px; max-width: 26em; font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, 0.78); }
.s-secure .p-link { margin-top: 24px; color: #9db8ff; font-size: 16px; }
.s-secure__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.s-secure__item { padding: 24px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14); }
.s-secure__item svg { display: block; margin-bottom: 16px; color: #9db8ff; }
.s-secure__item h3 { font-size: 17px; line-height: 1.4; }
.s-secure__item p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }

/* ─── 收尾行动区 ─── */
/* 和首页的深蓝一栏同一个上下留白（96），不比内容块更占地方 */
.s-cta { padding: 96px 0; text-align: center; background: linear-gradient(180deg, #fff 0%, var(--s-blue-50) 100%); }
.s-cta h2 { font-size: 44px; line-height: 1.2; letter-spacing: -0.02em; }
.s-cta p { margin-top: 16px; font-size: var(--s-lead); color: var(--text-2); }
.s-cta .p-actions { justify-content: center; margin-top: 32px; }

/* ─── 数据安全页 ───
   页首和产品功能、常见问题同一个 .s-head。账本从浏览器到服务器的示意图是页首那句话的图解，
   紧跟在页首下面，放在和首页卖点截图同一种带颜色的底板上 */
.s-flow-sec { padding: 8px 0 0; }
.s-flow-sec + .s-block { padding-top: 72px; }
.s-flow-stage { max-width: 960px; margin: 0 auto; padding: 36px 40px; border-radius: 28px; background: linear-gradient(140deg, var(--s-blue-50) 0%, var(--s-blue-100) 100%); }
.s-flow { display: grid; grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr); align-items: center; text-align: left; }
.s-flow__box { height: 100%; padding: 22px 24px; border-radius: 18px; background: #fff; box-shadow: var(--s-shadow); }
.s-flow__box h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; line-height: 1.4; letter-spacing: 0; }
.s-flow__box h2 svg { flex: none; color: var(--accent); }
.s-flow__box ul { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.s-flow__box li { display: flex; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.s-flow__box li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.6em; border-radius: 50%; background: var(--accent); opacity: 0.7; }
.s-flow__pipe { position: relative; height: 2px; margin: 0 10px; background: repeating-linear-gradient(90deg, rgba(43, 87, 212, 0.55) 0 6px, transparent 6px 12px); }
.s-flow__pipe span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 4px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(43, 87, 212, 0.35); font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.s-flow__pipe::after { content: ""; position: absolute; right: -2px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translateY(-50%) rotate(45deg); }

.s-block { padding: 88px 0; }
.s-block + .s-block { border-top: 0.5px solid var(--line-strong); }
.s-block__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 72px; align-items: end; margin-bottom: 40px; }
.s-block__head h2 { font-size: 36px; line-height: 1.2; letter-spacing: -0.02em; }
.s-block__head p { font-size: 18px; line-height: 1.65; color: var(--text-2); }
.s-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.s-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-card { padding: 28px; border-radius: 20px; background: var(--tint, #f7f8fb); }
.s-card .s-icon { margin-bottom: 16px; background: #fff; }
.s-card h3 { font-size: 18px; line-height: 1.4; }
.s-card p { margin-top: 8px; font-size: 16px; line-height: 1.65; color: var(--text-2); }
.s-card code { font-family: var(--mono); font-size: 0.92em; }
.s-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.s-chips li { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--s-blue-50); font-size: 15px; color: var(--s-navy); }
.s-chips li::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 7V5a3.5 3.5 0 0 1 7 0v2h.5A1.5 1.5 0 0 1 13.5 8.5v5A1.5 1.5 0 0 1 12 15H4a1.5 1.5 0 0 1-1.5-1.5v-5A1.5 1.5 0 0 1 4 7h.5Zm1.5 0h4V5a2 2 0 1 0-4 0v2Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 7V5a3.5 3.5 0 0 1 7 0v2h.5A1.5 1.5 0 0 1 13.5 8.5v5A1.5 1.5 0 0 1 12 15H4a1.5 1.5 0 0 1-1.5-1.5v-5A1.5 1.5 0 0 1 4 7h.5Zm1.5 0h4V5a2 2 0 1 0-4 0v2Z'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0.7; }
.s-chips + .s-cards { margin-top: 40px; }
.s-table { width: 100%; border-collapse: collapse; }
.s-table th, .s-table td { padding: 20px 0; border-top: 0.5px solid var(--line-strong); text-align: left; vertical-align: top; }
.s-table tr:last-child th, .s-table tr:last-child td { border-bottom: 0.5px solid var(--line-strong); }
.s-table th { width: 30%; padding-right: 32px; font-size: 18px; font-weight: 650; line-height: 1.5; }
.s-table td { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.s-note { margin-top: 24px; font-size: 16px; color: var(--text-2); }
.s-note a { color: var(--accent); }

/* ─── 常见问题 ─── */
.s-faq { max-width: 800px; margin: 0 auto; padding: 24px var(--p-gutter) 96px; }
.s-faq__group + .s-faq__group { margin-top: 56px; }
.s-faq__group > h2 { font-size: 26px; line-height: 1.3; letter-spacing: -0.015em; margin-bottom: 8px; }
.s-faq__item { padding: 24px 0; border-bottom: 0.5px solid var(--line-strong); }
.s-faq__item h3 { font-size: 19px; font-weight: 650; line-height: 1.45; letter-spacing: -0.005em; }
.s-faq__item p { margin-top: 8px; font-size: 16px; line-height: 1.75; color: var(--text-2); }
.s-faq__item p + p { margin-top: 8px; }
.s-faq__item a { color: var(--accent); }
.s-faq__ask { margin-top: 56px; padding: 32px; border-radius: 20px; background: var(--s-blue-50); text-align: center; }
.s-faq__ask h2 { font-size: 22px; }
.s-faq__ask p { margin-top: 8px; color: var(--text-2); }
.s-faq__ask .p-btn { margin-top: 20px; }

/* ─── 页脚：每页相同 ─── */
.p-foot { padding: 64px 0 40px; background: #fafaf8; border-top: 0.5px solid var(--line-strong); }
.p-foot__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.p-foot__brand p { margin-top: 8px; font-size: 14px; color: var(--text-3); }
.p-foot__brand .p-foot__tag { max-width: 18em; margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.p-foot__col h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-3); }
.p-foot__col ul { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.p-foot__col a { position: relative; display: inline-flex; align-items: center; min-height: 30px; font-size: 15px; color: var(--text-2); text-decoration: none; }
.p-foot__col a:hover { color: var(--accent); }

/* ─── 隐私 / 条款 / 联系我们 ─── */
.doc { max-width: 760px; margin: 0 auto; padding: 72px var(--p-gutter) 96px; }
.doc h1 { font-size: 44px; line-height: 1.2; letter-spacing: -0.02em; }
.doc .muted { margin-top: 12px; font-size: 15px; color: var(--text-3); }
.doc h2 { margin: 44px 0 12px; font-size: 22px; font-weight: 650; line-height: 1.35; letter-spacing: -0.01em; }
.doc h1 + .muted + p, .doc h1 + p { margin-top: 28px; }
.doc p, .doc li { font-size: 16px; line-height: 1.8; color: var(--text-2); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; padding-left: 22px; list-style: disc; }
.doc ol { list-style: decimal; }
.doc strong { font-weight: 600; color: var(--text-1); }
.doc a { color: var(--accent); text-decoration: none; }
.doc a:hover { text-decoration: underline; text-underline-offset: 2px; }
.doc .support-mail { display: inline-flex; align-items: center; height: 48px; margin: 8px 0; padding: 0 24px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; }
.doc .support-mail:hover { background: var(--accent-deep); text-decoration: none; }

/* ─── 关于我们：页首用 .s-head，正文沿用 .doc 的排版 ─── */
.doc.s-about { padding-top: 24px; }
.s-about > h2:first-child { margin-top: 0; }
.doc .s-about__list { gap: 14px; margin: 16px 0 0; padding-left: 0; list-style: none; }
.s-about__list li { padding-left: 16px; border-left: 2px solid var(--s-blue-100); }
.s-about__list strong { display: block; margin-bottom: 2px; }

/* ─── 登录页 ─── */
body.auth-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: linear-gradient(180deg, var(--s-blue-50) 0%, #f7f8fc 60%); }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 64px 16px 80px; }
#auth-root { width: 100%; max-width: 420px; }
.auth-card { padding: 32px; background: var(--surface); border-radius: 20px; box-shadow: var(--s-shadow); }
.auth-title { margin: 0 0 20px; font-size: var(--t-title); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.auth-hint { margin: 0 0 16px; font-size: var(--t-md); line-height: var(--lh-text); color: var(--text-2); }
.auth-hint strong { font-weight: 600; color: var(--text-1); }
/* 从试用账本过来注册：会带什么进账号。是这次注册的事实，不是提示，所以用正文色 */
.auth-carry { margin: 0 0 16px; padding: 10px 12px; border-radius: var(--r-field); background: var(--surface-2); border: 1px solid var(--line, rgba(0, 0, 0, 0.08)); font-size: var(--t-md); line-height: var(--lh-text); color: var(--text-1); }
.auth-carry a { white-space: nowrap; }

.auth-progress { display: flex; align-items: center; gap: 8px; margin: 4px 0 24px; }
.auth-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.auth-step__dot { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--fill-2); color: var(--text-3); font-size: 12px; font-weight: 600; transition: background var(--motion) var(--ease), color var(--motion) var(--ease); }
.auth-step__label { font-size: var(--t-xs); line-height: 1.3; color: var(--text-3); text-align: center; white-space: nowrap; }
.auth-step.is-current .auth-step__dot, .auth-step.is-done .auth-step__dot { background: var(--accent); color: #fff; }
.auth-step.is-current .auth-step__label { font-weight: 600; color: var(--text-1); }
.auth-step.is-done .auth-step__label { color: var(--text-2); }
.auth-step-sep { flex: 0 0 20px; height: 1px; margin-bottom: 22px; background: var(--line-strong); }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field__label { font-size: var(--t-sm); font-weight: 500; color: var(--text-2); }
/* 输入文字 16px，防 iOS 聚焦放大；高度 44，电脑和手机一致 */
.auth-field input { width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-field); background: var(--fill-1); font-family: inherit; font-size: 16px; line-height: 1.4; color: var(--text-1); outline: 0; appearance: none; -webkit-appearance: none; transition: box-shadow var(--motion) var(--ease), background var(--motion) var(--ease); }
.auth-field input:focus { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent); }
.auth-field input:disabled { opacity: 0.6; }
.auth-field__note { font-size: var(--t-xs); line-height: var(--lh-text); color: var(--text-3); }
.auth-pw { position: relative; display: flex; }
.auth-pw input { flex: 1; min-width: 0; padding-right: 72px; }
.auth-pw__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-family: inherit; font-size: var(--t-sm); font-weight: 500; color: var(--accent); cursor: pointer; }
.auth-pw__toggle:hover { background: var(--fill-2); }
.auth-consent { font-size: var(--t-xs); line-height: var(--lh-text); color: var(--text-3); text-align: center; }
.auth-consent a { color: var(--text-2); }
.auth-resend-status:empty { display: none; }
.auth-field--readonly .auth-field__readonly { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-field); background: var(--fill-1); font-size: 16px; color: var(--text-1); overflow-wrap: anywhere; }

.auth-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; appearance: none; -webkit-appearance: none; transition: background var(--motion) var(--ease), opacity var(--motion) var(--ease); }
.auth-btn--primary { background: var(--accent); color: #fff; }
.auth-btn--primary:hover:not(:disabled) { background: var(--accent-deep); }
.auth-btn--primary:disabled { opacity: 0.4; cursor: default; }
.auth-btn--ghost { background: var(--accent-lt); color: var(--accent); white-space: nowrap; }
.auth-btn--ghost:hover { background: var(--accent-lt-2); }

.auth-error, .auth-warn, .auth-notice { margin-bottom: 16px; padding: 12px 14px; border-radius: var(--r-item); font-size: var(--t-md); line-height: var(--lh-text); }
.auth-error { background: var(--danger-bg); color: var(--danger); }
.auth-warn { background: var(--warn-bg); color: var(--warn); }
.auth-notice { background: var(--accent-lt); color: var(--accent-deep); }

.auth-recovery { display: flex; align-items: center; gap: 8px; margin: 12px 0; padding: 12px 14px; border-radius: var(--r-item); background: var(--fill-1); }
.auth-recovery__code { flex: 1; font-family: var(--mono); font-size: 16px; letter-spacing: 0.04em; word-break: break-all; }
.auth-check { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 20px; font-size: var(--t-md); line-height: var(--lh-text); }
.auth-check input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin-top: 0.2em; accent-color: var(--accent); }
.auth-card > .auth-btn--primary { width: 100%; }

.auth-links { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 20px; font-size: var(--t-md); color: var(--text-2); text-align: center; }
.auth-links a { position: relative; display: inline-flex; align-items: center; min-height: 32px; padding: 0 8px; border-radius: 999px; color: var(--accent); text-decoration: none; }
.auth-links a:hover { background: var(--fill-1); }
.auth-links__sep { display: none; }
.auth-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--text-mute); }
.auth-legal-links a { position: relative; display: inline-flex; align-items: center; min-height: 24px; color: var(--text-3); text-decoration: none; }
.auth-legal-links a:hover { color: var(--accent); }

.auth-success { padding: 20px 0; text-align: center; }
.auth-success__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 24px; font-weight: 600; }
.auth-success__text { font-size: 16px; }
.auth-loading { padding: 40px 0; font-size: var(--t-md); color: var(--text-3); text-align: center; }

/* 预览版关闭注册时的静态预览 */
.auth-preview-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.auth-preview-actions .auth-btn { width: 100%; }

/* ─── 点击区：鼠标 24、手指 44（见 tokens 的 --hit），透明伪元素补足，不改可见尺寸 ─── */
:is(.brand, .p-nav__login, .p-btn--sm, .p-foot__col a, .doc a, .s-faq__item a, .s-note a, .auth-links a, .auth-legal-links a, .auth-consent a) { position: relative; }
:is(.brand, .p-nav__login, .p-btn--sm, .p-foot__col a, .doc a, .s-faq__item a, .s-note a, .auth-links a, .auth-legal-links a, .auth-consent a, .s-local a, .p-nav__links a)::after,
.auth-pw__toggle::before, .p-nav__menu::before, .s-jump a::before {
  content: ""; position: absolute;
  top: 50%; left: 50%; width: max(100%, var(--hit)); height: max(100%, var(--hit));
  transform: translate(-50%, -50%);
}
.p-link { position: relative; }
.p-link::before { content: ""; position: absolute; inset: 50% auto auto 50%; width: max(100%, var(--hit)); height: max(100%, var(--hit)); transform: translate(-50%, -50%); }
@media (pointer: coarse) {
  .p-foot__col a { min-height: 44px; }
  .auth-links { gap: 0; }
  .auth-links a { min-height: 44px; }
}

/* ─── 响应式 ─── */
@media (max-width: 1199px) {
  :root { --s-h1: 52px; --s-h2: 34px; --s-section: 96px; }
  .p-nav__links { gap: 24px; }
  .s-feature { gap: 48px; }
  .s-feature.is-wide > .s-feature__text, .s-secure__grid, .s-block__head { gap: 0 48px; }
  .s-stage { padding: 36px; }
}

@media (max-width: 1023px) {
  :root { --p-gutter: 24px; --s-h1: 46px; --s-h2: 32px; --s-section: 80px; }
  .s-feature, .s-feature.is-flip { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0; }
  .s-feature.is-flip > .s-feature__text { order: 0; }
  .s-feature.is-wide > .s-feature__text, .s-block__head { grid-template-columns: minmax(0, 1fr); }
  .s-feature.is-wide > .s-feature__text > p, .s-feature.is-wide > .s-feature__text > .p-link, .s-block__head p { grid-column: 1; }
  .s-feature.is-wide > .s-feature__text > p:first-of-type { margin-top: 16px; padding-top: 0; }
  .s-block__head p { margin-top: 16px; }
  .s-secure__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .s-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-flow { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 480px; margin: 0 auto; }
  .s-flow__pipe { width: 2px; height: 48px; margin: 0 auto; background: repeating-linear-gradient(180deg, rgba(43, 87, 212, 0.55) 0 6px, transparent 6px 12px); }
  .s-flow__pipe::after { right: auto; left: 50%; top: auto; bottom: -2px; transform: translateX(-50%) rotate(135deg); }
}

/* 顶栏有六个链接：899 以下放不下，收进菜单按钮 */
@media (max-width: 899px) {
  .p-nav__menu { display: inline-flex; }
  .p-nav__links { display: none; position: absolute; top: var(--p-nav-h); left: 0; right: 0; /* 定位参照是 .p-nav__row 的内边距盒，899 以下它就是整屏宽；再减一个边距会伸出屏幕 */ flex-direction: column; gap: 0; padding: 8px var(--p-gutter) 16px; background: #fff; border-bottom: 0.5px solid var(--line-strong); box-shadow: 0 16px 32px -16px rgba(15, 28, 64, 0.24); }
  .p-nav.is-open .p-nav__links { display: flex; }
  .p-nav__links a { height: 52px; font-size: 17px; border-bottom: 0.5px solid var(--line); }
  .p-nav__links a:last-child { border-bottom: 0; }
  .p-nav__links a[aria-current="page"] { color: var(--accent); }
  .p-nav__links a[aria-current="page"]::before { display: none; }
}
@media (max-width: 699px) {
  :root { --p-gutter: 16px; --p-nav-h: 56px; --s-h1: 34px; --s-h2: 26px; --s-lead: 17px; --s-section: 64px; }
  .p-nav__row { gap: 12px; }
  .p-nav__right { gap: 12px; }

  .s-hero { padding-top: 48px; }
  .s-hero__lead { margin-top: 16px; }
  .s-hero .p-actions { margin-top: 28px; }
  .s-hero .p-actions .p-btn { flex: 1 1 0; padding: 0 12px; }
  .s-hero__media { margin-top: 40px; padding-bottom: 0; }
  .s-hero__desk { display: none; }
  .s-hero__phone { display: block; width: min(300px, 82%); margin: 0 auto; }
  .s-hero::before { height: 120px; }

  .s-head { padding: 40px 0 32px; }
  .s-head h1 { font-size: 34px; }
  .s-head p { margin-top: 12px; }
  /* 页内导航：一行横向滚动，右边渐隐，看得出后面还有；当前项由 js/landing.js 滚进视野 */
  .s-local { --s-local-h: 44px; }
  html:has(.s-local) { scroll-padding-top: calc(var(--p-nav-h) + 44px); }
  .s-local .p-wrap { padding: 0; }
  .s-local__row { justify-content: flex-start; gap: 22px; padding: 0 40px 0 var(--p-gutter); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .s-local a { font-size: 15px; }
  .s-flow-sec + .s-block { padding-top: 48px; }
  .s-flow-stage { padding: 20px; border-radius: 20px; }
  .s-flow__box { padding: 18px 20px; }
  .s-flow__pipe { height: 36px; }
  /* 一行横向滚动：右边渐隐，看得出后面还有；末尾多留一段，滚到头时最后一项不被渐隐盖住 */
  .s-jump { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 28px calc(var(--p-gutter) * -1) 0; padding: 0 48px 4px var(--p-gutter); scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
  .s-jump::-webkit-scrollbar { display: none; }

  .s-feature, .s-feature.is-flip { gap: 24px; padding: 32px 0; }
  .s-feature__text p { font-size: 16px; margin-top: 12px; }
  .s-icon { width: 40px; height: 40px; margin-bottom: 16px; }
  .s-stage { padding: 20px; border-radius: 20px; }
  .s-stage .s-shot { border-radius: 12px; }
  .s-stage .s-shot--phone { border-radius: 16px; }
  .s-pair { flex-direction: column; gap: 16px; }
  .s-pair > :first-child { flex: none; }

  .s-secure { padding: 64px 0; }
  /* 三条并列的要点是一组行：一张卡、行间细线，不是三张卡 */
  .s-secure__list { grid-template-columns: minmax(0, 1fr); gap: 0; border-radius: 18px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14); }
  .s-secure__item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 14px; padding: 16px 18px; background: none; border-radius: 0; box-shadow: none; }
  .s-secure__item + .s-secure__item { box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.14); }
  .s-secure__item svg { grid-row: span 2; margin: 2px 0 0; }
  .s-secure__lead { font-size: 16px; }
  .s-cta { padding: 56px 0; }
  .s-cta h2 { font-size: 30px; }
  .s-cta p { font-size: 17px; }
  .s-cta .p-actions .p-btn { flex: 1 1 0; padding: 0 12px; }

  .s-block { padding: 56px 0; }
  .s-block__head { margin-bottom: 28px; }
  .s-block__head h2 { font-size: 28px; }
  .s-block__head p { font-size: 16px; }
  .s-cards, .s-cards--3 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .s-card { padding: 20px; }
  /* 手机上屏幕本身就是容器（开发指南 6.1「页面的容器」）：一个小标题加一段话的卡片去掉底色，
     和「服务器上保存了什么」那张表一样，一条一条用细线隔开。带颜色的两张（恢复码能救回来 / 救不回来）颜色本身是信息，留着 */
  .s-cards:not(:has(.t-teal, .t-rose)) { gap: 0; border-top: 0.5px solid var(--line-strong); border-bottom: 0.5px solid var(--line-strong); }
  .s-cards:not(:has(.t-teal, .t-rose)) > .s-card { padding: 18px 0; background: none; border-radius: 0; }
  .s-cards:not(:has(.t-teal, .t-rose)) > .s-card + .s-card { border-top: 0.5px solid var(--line-strong); }
  .s-cards:not(:has(.t-teal, .t-rose)) .s-card .s-icon { width: 32px; height: 32px; margin-bottom: 10px; background: var(--tint, var(--s-blue-50)); }
  .s-cards:not(:has(.t-teal, .t-rose)) .s-card h3 { font-size: 17px; }
  .s-cards:not(:has(.t-teal, .t-rose)) .s-card p { margin-top: 4px; font-size: 15px; }
  .s-faq__ask { padding: 24px 0 0; background: none; border-radius: 0; text-align: left; }
  .s-table th, .s-table td { display: block; width: auto; padding: 0; border: 0; }
  .s-table tr { display: block; padding: 18px 0; border-top: 0.5px solid var(--line-strong); }
  .s-table tr:last-child { border-bottom: 0.5px solid var(--line-strong); }
  .s-table tr:last-child th, .s-table tr:last-child td { border: 0; }
  .s-table th { font-size: 17px; margin-bottom: 4px; }
  .s-table td { font-size: 15px; }

  .s-faq { padding-bottom: 64px; }
  .s-faq__group > h2 { font-size: 22px; }
  .s-faq__item { padding: 20px 0; }
  .s-faq__item h3 { font-size: 17px; }
  .s-faq__item p { font-size: 15px; }

  .p-foot { padding: 48px 0 32px; }
  .p-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .p-foot__brand { grid-column: 1 / -1; }

  .doc { padding: 40px var(--p-gutter) 64px; }
  .doc h1 { font-size: 32px; }
  .doc h2 { margin-top: 32px; font-size: 20px; }
  .doc p, .doc li { font-size: 15px; }

  /* 手机上屏幕本身就是那张卡片：表单直接铺在页面上，不再套一个带阴影的浮框，输入框用满宽度 */
  body.auth-page { background: var(--surface); }
  .auth-main { padding: 16px 20px 48px; }
  .auth-card { padding: 8px 0 0; background: none; border-radius: 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* 产品介绍页：投资理念的引子。一段话加一个链接，不配图 */
.s-idea { padding: 72px 0; border-top: 0.5px solid var(--line); }
.s-idea__row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 24px 64px; align-items: end; }
.s-idea h2 { font-size: var(--s-h2); line-height: 1.2; letter-spacing: -0.02em; }
.s-idea p { margin-top: 16px; color: var(--text-2); font-size: var(--t-lg); max-width: 40em; }
.s-idea .p-link { justify-self: start; }
@media (max-width: 899px) { .s-idea { padding: 56px 0; } .s-idea__row { grid-template-columns: minmax(0, 1fr); } }

/* 标题里的一个分句不从中间断开：窄屏上在逗号后面换行 */
.s-nobr { display: inline-block; }
