/* Pane 官网和账号中心的样式（设计，2026-11-23）。
 * 令牌来自 tokens.css（从 prototype/tokens.css 复制，改令牌时两边同步）。
 * 网页里不用 MiSans（许可未确认），字体换成系统的 Segoe UI / 微软雅黑。
 * 玻璃、按钮、输入框的做法照 prototype/components.css 和 ui/*.css，只是不依赖原型的组件脚本。 */

:root {
  --font-ui: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  --page-max: 1080px;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  /* 细滚动条：和磨砂背景融在一起，不要系统那条粗灰条 */
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--text-3) 45%, transparent) transparent;
}
/* 页面是一整列：顶栏、内容（撑满剩余高度）、页脚。内容放得下时正好一屏，不出滚动条 */
body {
  margin: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  font-family: var(--font-ui);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text-1);
  background: var(--tint);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- 背景：纯 CSS 画的柔和光斑（不用图片，不占流量），慢慢漂移 ----------
 * 颜色都取自主题色雾蓝和标签色，浓度压低；深色是深蓝夜色底上的暗光斑。玻璃面板透出的就是它 */
.wall { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg-base); }
.wall i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--orb-opacity); will-change: transform; animation: orb 46s var(--ease-smooth) infinite alternate; }
.wall i:nth-child(1) { width: 62vmax; height: 62vmax; left: -18vmax; top: -24vmax; background: radial-gradient(circle at 40% 40%, #7f97e0, transparent 68%); }
.wall i:nth-child(2) { width: 52vmax; height: 52vmax; right: -16vmax; top: -10vmax; background: radial-gradient(circle at 50% 50%, #c98aa6, transparent 66%); animation-duration: 58s; animation-delay: -12s; }
.wall i:nth-child(3) { width: 58vmax; height: 58vmax; left: 18vmax; bottom: -34vmax; background: radial-gradient(circle at 50% 50%, #6fc2b8, transparent 64%); animation-duration: 64s; animation-delay: -30s; }
.wall i:nth-child(4) { width: 34vmax; height: 34vmax; right: 8vmax; bottom: 6vmax; background: radial-gradient(circle at 50% 50%, #e7b57a, transparent 66%); animation-duration: 52s; animation-delay: -20s; opacity: calc(var(--orb-opacity) * 0.7); }
.wall::after { content: ""; position: absolute; inset: 0; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes orb { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .wall i { animation: none; } }
:root { --bg-base: #eef0f6; --orb-opacity: 0.55; --grain: 0.05; }
:root[data-theme="dark"] { --bg-base: #0d1020; --orb-opacity: 0.32; --grain: 0.07; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg-base: #0d1020; --orb-opacity: 0.32; --grain: 0.07; } }

/* ---------- 玻璃 ---------- */
.glass {
  position: relative;
  border-radius: var(--radius-panel);
  background-color: color-mix(in srgb, var(--luminosity) calc(var(--glass-lum-opacity) * 100%), transparent);
  background-image: linear-gradient(
    color-mix(in srgb, var(--tint) calc(var(--glass-tint-opacity) * 100%), transparent),
    color-mix(in srgb, var(--tint) calc(var(--glass-tint-opacity) * 100%), transparent));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  box-shadow:
    0 0 0 1px var(--edge-outer),
    0 calc(24px * var(--glass-shadow)) calc(64px * var(--glass-shadow)) rgb(var(--shadow-color) / calc(0.32 * var(--glass-shadow))),
    0 2px 8px rgb(var(--shadow-color) / calc(0.12 * var(--glass-shadow)));
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg,
    var(--edge-light) 0%,
    color-mix(in srgb, var(--edge-light) var(--edge-mid), transparent) 30%,
    color-mix(in srgb, var(--edge-light) var(--edge-low), transparent) 70%,
    color-mix(in srgb, var(--edge-light) var(--edge-bottom), transparent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* 光斑跟随：带 data-lit 的玻璃，指针移上去时表面有一团柔光跟着走，边框也跟着亮（common.js 写 --mx / --my） */
.glass[data-lit]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background:
    radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--edge-light) 22%, transparent), transparent 70%),
    radial-gradient(160px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  transition: opacity var(--dur-normal) var(--ease-smooth);
}
.glass[data-lit]:hover::after { opacity: 1; }
/* 光斑垫在内容下面，不盖住文字 */
.glass[data-lit] > * { position: relative; z-index: 1; }

/* 入场：进入视口时上浮、去模糊，同组依次出现（--i 是组内序号）。没有脚本时直接显示 */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px); filter: blur(6px);
  transition: opacity 700ms var(--ease-smooth), transform 900ms var(--ease-spring), filter 700ms var(--ease-smooth);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; } }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 12px; z-index: 10;
  width: 100%; max-width: var(--page-max); margin: 12px auto 0; padding: 0 var(--space-4);
}
.topbar-inner {
  display: flex; align-items: center; gap: var(--space-4);
  height: 52px; padding: 0 var(--space-3) 0 var(--space-4);
  border-radius: 16px;
  transition: box-shadow var(--dur-normal) var(--ease-smooth);
}
/* 滚动进度：顶栏底边一道细线，跟着读到哪里伸长 */
.topbar-progress {
  position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, #4a63b8, var(--accent), #c98aa6);
  transform-origin: left; transform: scaleX(var(--read, 0)); opacity: 0.85;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 650; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 2px; margin-left: var(--space-2); }
.nav a {
  padding: 4px 12px; border-radius: var(--radius-control); text-decoration: none; color: var(--text-2); font-size: var(--text-sm);
  transition: background var(--dur-fast) var(--ease-smooth), color var(--dur-fast) var(--ease-smooth);
}
.nav a:hover { background: var(--fill-hover); color: var(--text-1); }
.nav a[aria-current="page"] { color: var(--text-1); background: var(--fill-selected); box-shadow: inset 0 0 0 1px var(--stroke); }
.topbar .spacer { flex: 1; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--control-md); padding: 0 14px; border: 0; border-radius: calc(var(--control-md) / 2);
  background: var(--fill-control); box-shadow: inset 0 0 0 1px var(--stroke);
  font-size: var(--text-sm); color: var(--text-1); text-decoration: none; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-smooth), transform var(--dur-fast) var(--ease-smooth), opacity var(--dur-fast);
}
.btn:hover { background: var(--fill-hover); }
.btn:active { transform: scale(var(--press-scale-button)); }
.btn svg { width: 15px; height: 15px; }
/* 按钮里用 <span data-icon> 包着的图标：包裹层不按文字基线排，免得图标比文字高出一截 */
.btn > [data-icon] { display: grid; place-items: center; }
.btn.primary { background: var(--text-1); color: var(--tint); box-shadow: none; font-weight: 600; }
.btn.primary:hover { background: color-mix(in srgb, var(--text-1) 85%, transparent); }
.btn.accent { background: var(--accent); color: #fff; box-shadow: none; font-weight: 600; }
.btn.accent:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.btn.lg { height: var(--control-lg); padding: 0 22px; border-radius: calc(var(--control-lg) / 2); font-size: var(--text-md); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--fill-hover); color: var(--text-1); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.5; pointer-events: none; }
.link { background: none; border: 0; padding: 0; color: var(--text-2); font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--stroke); }
.link:hover { color: var(--text-1); text-decoration-color: currentColor; }

/* ---------- 输入框 ---------- */
.field {
  width: 100%; height: var(--control-md); padding: 0 10px; border: 0; border-radius: var(--radius-control);
  background: var(--fill-control); box-shadow: inset 0 0 0 1px var(--stroke);
  font-size: var(--text-sm); color: var(--text-1); outline: 0;
  transition: box-shadow var(--dur-fast) var(--ease-smooth);
}
.field::placeholder { color: var(--text-3); }
.field:focus { box-shadow: inset 0 0 0 1px var(--stroke), 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.field[aria-invalid="true"] { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 60%, transparent); }
.field.code { font-family: var(--font-mono); letter-spacing: 6px; text-align: center; font-size: var(--text-lg); }
.field.mono { font-family: var(--font-mono); letter-spacing: 1px; text-transform: uppercase; }
.field.mono::placeholder { text-transform: none; letter-spacing: 0; font-family: inherit; }
/* 恢复码只显示一次：等宽、大字、整串可选 */
.recovery-code {
  padding: 14px 12px; border-radius: var(--radius-item); background: var(--fill-control); box-shadow: inset 0 0 0 1px var(--stroke);
  font-family: var(--font-mono); font-size: var(--text-lg); letter-spacing: 1px; line-height: 1.7; text-align: center;
  color: var(--text-1); user-select: all;
}
/* 前后各 4 组，窄屏时整齐地折成两行 */
.recovery-code span { display: inline-block; white-space: nowrap; }
.pw { position: relative; }
.pw .field { padding-right: 36px; }
.pw .eye { position: absolute; right: 2px; top: 2px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); display: grid; place-items: center; }
.pw .eye:hover { color: var(--text-1); background: var(--fill-hover); }
.pw .eye svg { width: 15px; height: 15px; }
.row-field { display: flex; gap: var(--space-2); }
.row-field .field { flex: 1; }

.form { display: grid; gap: var(--space-3); }
.label { display: grid; gap: 6px; font-size: var(--text-sm); color: var(--text-2); }
.hint { font-size: var(--text-xs); color: var(--text-3); line-height: 1.5; }
.error { font-size: var(--text-sm); color: var(--danger); min-height: 0; }
.error:empty { display: none; }
.ok { font-size: var(--text-sm); color: var(--success); }
.ok:empty { display: none; }

.check { display: flex; align-items: flex-start; gap: 8px; font-size: var(--text-sm); color: var(--text-2); cursor: pointer; }
.check input { flex: none; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--accent); }
.check a { color: var(--text-1); }

.note {
  padding: 10px 12px; border-radius: var(--radius-item); font-size: var(--text-sm); line-height: 1.6;
  background: var(--fill-control); box-shadow: inset 0 0 0 1px var(--stroke); color: var(--text-2);
}
.note.warn { background: color-mix(in srgb, var(--warning) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warning) 35%, transparent); color: var(--text-1); }
.note.danger { background: color-mix(in srgb, var(--danger) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 30%, transparent); color: var(--text-1); }

/* ---------- 分段 ---------- */
.seg { display: inline-flex; padding: 2px; border-radius: calc(var(--control-sm) / 2 + 2px); background: var(--fill-control); box-shadow: inset 0 0 0 1px var(--stroke); }
.seg button {
  height: var(--control-xs); padding: 0 14px; border: 0; border-radius: calc(var(--control-xs) / 2); background: transparent;
  font-size: var(--text-sm); color: var(--text-2); transition: background var(--dur-fast) var(--ease-smooth), color var(--dur-fast);
}
.seg button[aria-selected="true"] { background: var(--fill-selected); color: var(--text-1); box-shadow: inset 0 0 0 1px var(--stroke), 0 1px 3px rgb(var(--shadow-color) / 0.08); }

/* ---------- 页面通用 ---------- */
main { flex: 1 0 auto; width: 100%; max-width: var(--page-max); margin: 0 auto; padding: var(--space-6) var(--space-4) 64px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; margin: 0; }
.section { margin-top: 56px; }
.section > h2 { font-size: 24px; font-weight: 650; }
.section > .lead { margin: 6px 0 0; color: var(--text-2); }
.card { padding: var(--space-5); }
.muted { color: var(--text-2); }
.small { font-size: var(--text-sm); }
.xs { font-size: var(--text-xs); }

.footer { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--space-4) 20px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); align-items: center; padding: 12px var(--space-5); border-radius: 16px; font-size: var(--text-sm); color: var(--text-2); }
.footer a { text-decoration: none; color: var(--text-2); }
.footer a:hover { color: var(--text-1); }
.footer .spacer { flex: 1; }

/* ---------- 价格 ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-4); }
.plan { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6) var(--space-5); border-radius: 22px; }
.plan.featured { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent), 0 24px 64px rgb(var(--shadow-color) / 0.25); }
.plan .tag { align-self: flex-start; padding: 1px 10px; border-radius: 999px; font-size: var(--text-xs); background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-weight: 600; }
.plan h3 { font-size: var(--text-lg); font-weight: 600; }
.plan .price { font-family: var(--font-display); font-size: 36px; font-weight: 650; line-height: 1.1; }
.plan .price small { font-size: var(--text-md); font-weight: 400; color: var(--text-2); }
.plan .per { font-size: var(--text-sm); color: var(--text-2); min-height: 1.6em; }
.plan ul { margin: var(--space-2) 0 var(--space-4); padding: 0; list-style: none; display: grid; gap: 6px; font-size: var(--text-sm); color: var(--text-2); }
.plan li { display: flex; gap: 8px; }
.plan li svg { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--accent); }
.plan .btn { margin-top: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.compare th, .compare td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--stroke); }
.compare th { color: var(--text-2); font-weight: 500; }
.compare tr:last-child td { border-bottom: 0; }
.faq { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
.faq details { padding: 12px var(--space-4); border-radius: 14px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 8px 0 0; color: var(--text-2); font-size: var(--text-sm); }

/* ---------- 协议 ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 36px 44px; border-radius: 22px; }
.doc h1 { font-size: 28px; margin-bottom: 8px; }
.doc h2 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-1); font-size: var(--text-md); }
.doc blockquote { margin: 12px 0; padding: 8px 14px; border-left: 3px solid var(--stroke); color: var(--text-2); }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: var(--text-sm); }
.doc th, .doc td { padding: 8px 10px; border: 1px solid var(--stroke); text-align: left; vertical-align: top; }
.doc th { color: var(--text-2); font-weight: 500; }

/* ---------- 账号中心 ---------- */
/* 登录 / 注册 / 忘记密码：左边介绍和同步演示，右边表单卡片；整页正好一屏，内容区上下居中 */
body[data-page="account"] main { display: flex; flex-direction: column; padding-top: var(--space-4); padding-bottom: var(--space-4); }
.auth-wrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: center; padding: var(--space-3) var(--space-4); }
.auth { width: 100%; max-width: 400px; padding: 28px 30px 24px; border-radius: 24px; justify-self: end; }
.auth-body { animation: auth-in 520ms var(--ease-spring) both; }
.auth .form { gap: 10px; }
@keyframes auth-in { from { opacity: 0; transform: translateY(10px) scale(0.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.auth-head { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; text-align: center; }
.auth-head img { width: 44px; height: 44px; border-radius: 12px; }

.auth-side { max-width: 460px; }
.auth-side .eyebrow { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.auth-side h2 { margin-top: 18px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.5px; line-height: 1.12; }
.auth-side h2 em { font-style: normal; background: linear-gradient(100deg, #4a63b8, var(--accent) 45%, #a56fb5 80%, #c2607a); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .auth-side h2 em { background-image: linear-gradient(100deg, #9fb2ec, #b6c3ea 45%, #d2a6d8 80%, #e69aaf); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-side h2 em { background-image: linear-gradient(100deg, #9fb2ec, #b6c3ea 45%, #d2a6d8 80%, #e69aaf); } }
.auth-side > p { margin: 14px 0 26px; color: var(--text-2); max-width: 420px; }
/* 同步演示：上面一台复制，锁一亮，下面一台出现同一条 */
.sd { display: grid; gap: 10px; }
.sd-card { padding: 12px 14px; border-radius: 16px; transition: transform var(--dur-slow) var(--ease-spring), box-shadow var(--dur-normal); }
.sd-card.b { margin-left: 48px; }
.sd-h { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: var(--text-xs); color: var(--text-3); }
.sd-h svg { width: 13px; height: 13px; }
.sd-h .grow { flex: 1; }
.sd-state { color: var(--accent); font-weight: 600; }
.sd-row { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 8px; border-radius: var(--radius-item); background: var(--fill-selected); box-shadow: inset 0 0 0 1px var(--stroke); }
.sd-row .k { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--fill-control); box-shadow: inset 0 0 0 1px var(--stroke); color: var(--text-2); }
.sd-row .k svg { width: 14px; height: 14px; }
.sd-row .t { flex: 1; min-width: 0; font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-card.a .t::after { content: ""; display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--text-1); animation: caret 1s steps(1) infinite; }
.sd-card.a.done .t::after { display: none; }
.sd-row .kbd { flex: none; padding: 0 6px; border-radius: 5px; font-size: 11px; line-height: 18px; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--stroke); }
.sd-card.b .sd-row { opacity: 0; transform: translateY(-6px) scale(0.98); transition: opacity 360ms var(--ease-smooth), transform 520ms var(--ease-spring); }
.sd-card.b.got .sd-row { opacity: 1; transform: none; }
.sd-card.b.got { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 18px 48px color-mix(in srgb, var(--accent) 18%, transparent); }
.sd-link { display: flex; align-items: center; gap: 8px; margin-left: 24px; height: 26px; }
.sd-link i { width: 44px; height: 2px; border-radius: 2px; background: var(--stroke); position: relative; overflow: hidden; }
.sd-link i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--accent), transparent); transform: translateX(-100%); }
.auth-side.flow .sd-link i::after { animation: sd-flow 900ms var(--ease-smooth); }
.auth-side.flow .sd-link i + .lock + i::after { animation-delay: 300ms; }
@keyframes sd-flow { to { transform: translateX(100%); } }
.sd-link .lock { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); background: var(--fill-control); box-shadow: inset 0 0 0 1px var(--stroke);
  transition: background var(--dur-normal), color var(--dur-normal), transform var(--dur-normal) var(--ease-spring); }
.sd-link .lock svg { width: 13px; height: 13px; }
.auth-side.flow .sd-link .lock { background: var(--accent); color: #fff; transform: scale(1.12); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 40%, transparent); }
.sd-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--text-2); }
.sd-points li { display: inline-flex; align-items: center; gap: 6px; }
.sd-points svg { width: 14px; height: 14px; color: var(--accent); }
@keyframes caret { 50% { opacity: 0; } }
@media (max-width: 960px) {
  .auth-wrap { grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .auth-side { display: none; }
  .auth { justify-self: center; }
}
.auth-head h1 { font-size: var(--text-title); font-weight: 650; }
.auth-head p { margin: 0; font-size: var(--text-sm); color: var(--text-2); }
.auth .seg { width: 100%; margin-bottom: var(--space-4); }
.auth .seg button { flex: 1; }
.auth-foot { display: flex; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-3); }
.step { font-size: var(--text-xs); color: var(--text-3); }
.turnstile { min-height: 65px; display: flex; justify-content: center; }
.turnstile:empty { display: none; }

.dash { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-4); align-items: start; }
.side { position: sticky; top: 80px; padding: var(--space-3); border-radius: 20px; }
.side-me { display: flex; align-items: center; gap: 10px; padding: 8px 8px 14px; border-bottom: 1px solid var(--stroke); margin-bottom: 8px; }
.side-me .who { min-width: 0; }
.side-me .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-me .mail { font-size: var(--text-xs); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side nav { display: grid; gap: 2px; }
.side nav a {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--radius-item);
  text-decoration: none; font-size: var(--text-sm); color: var(--text-2);
  transition: background var(--dur-fast) var(--ease-smooth), color var(--dur-fast);
}
.side nav a svg { width: 16px; height: 16px; }
.side nav a:hover { background: var(--fill-hover); color: var(--text-1); }
.side nav a[aria-current="page"] { background: var(--fill-selected); color: var(--text-1); box-shadow: inset 0 0 0 1px var(--stroke); }
.side .btn { margin-top: 10px; }

.pane-view { display: grid; gap: var(--space-4); }
.pane-view > h1 { font-size: var(--text-title); font-weight: 650; padding: 4px 4px 0; }
.group { padding: var(--space-5); border-radius: 20px; }
.group > h2 { font-size: var(--text-md); font-weight: 600; margin-bottom: var(--space-3); }
.group > .desc { margin: -6px 0 var(--space-3); font-size: var(--text-sm); color: var(--text-2); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px var(--space-4); font-size: var(--text-sm); }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }
.rows { display: grid; }
.rowi { display: flex; align-items: center; gap: var(--space-3); padding: 12px 0; border-bottom: 1px solid var(--stroke); font-size: var(--text-sm); }
.rowi:last-child { border-bottom: 0; }
.rowi .grow { flex: 1; min-width: 0; }
.rowi .t { font-weight: 500; }
.rowi .s { font-size: var(--text-xs); color: var(--text-3); }
.rowi .ico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--fill-control); box-shadow: inset 0 0 0 1px var(--stroke); color: var(--text-2); }
.rowi .ico svg { width: 16px; height: 16px; }
.empty { padding: 20px 0; text-align: center; color: var(--text-3); font-size: var(--text-sm); }

/* 头像：没上传时画昵称首字 + 主题色底 */
.avatar {
  flex: none; position: relative; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 88px; height: 88px; font-size: 34px; }
.avatar.founder { box-shadow: 0 0 0 2px var(--tint), 0 0 0 3.5px var(--accent); }

/* 铭牌 */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.2px;
  color: #fff; background: linear-gradient(135deg, #3d56a8, var(--accent) 55%, #8fa3e0);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25), 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent);
}
.badge svg { width: 13px; height: 13px; }
.badge .no { font-family: var(--font-mono); font-weight: 500; opacity: 0.9; }

.profile-head { display: flex; align-items: center; gap: var(--space-5); }
.profile-head .info { display: grid; gap: 6px; justify-items: start; }
.profile-head .nick { font-family: var(--font-display); font-size: 24px; font-weight: 650; }

/* 订阅状态 */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.status.on::before { background: var(--success); }
.status.warn::before { background: var(--warning); }
.meter { height: 6px; border-radius: 999px; background: var(--fill-control); box-shadow: inset 0 0 0 1px var(--stroke); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width var(--dur-slow) var(--ease-smooth); }
.buy { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.buy-item { display: flex; flex-direction: column; gap: 4px; padding: var(--space-4); border-radius: 16px; background: var(--fill-control); box-shadow: inset 0 0 0 1px var(--stroke); }
.buy-item .p { font-family: var(--font-display); font-size: 22px; font-weight: 650; }
.buy-item .btn { margin-top: 8px; }

table.list { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
table.list th, table.list td { padding: 9px 4px; text-align: left; border-bottom: 1px solid var(--stroke); }
table.list th { color: var(--text-2); font-weight: 500; }
table.list tr:last-child td { border-bottom: 0; }

/* 头像裁剪 */
.crop { display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: center; }
.crop-box { position: relative; width: 220px; height: 220px; border-radius: 16px; overflow: hidden; background: var(--fill-control); box-shadow: inset 0 0 0 1px var(--stroke); touch-action: none; cursor: grab; }
.crop-box canvas { display: block; width: 100%; height: 100%; }
.crop-box::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgb(0 0 0 / 0.35); pointer-events: none; }
.crop .ctl { display: grid; gap: var(--space-3); }
input[type="range"] { width: 100%; accent-color: var(--accent); }

/* 提示条 */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 12px); opacity: 0;
  padding: 10px 16px; border-radius: 14px; font-size: var(--text-sm); pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-smooth), transform var(--dur-normal) var(--ease-spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 对话框 */
.dialog-mask { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: var(--space-4); background: rgb(0 0 0 / 0.25); }
.dialog { width: 100%; max-width: 420px; padding: var(--space-6); border-radius: 22px; }
.dialog h2 { font-size: var(--text-lg); font-weight: 650; margin-bottom: 8px; }
.dialog .actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-5); }

/* 开发提示 */
.mock-flag { position: fixed; right: 12px; bottom: 12px; z-index: 60; padding: 4px 10px; border-radius: 999px; font-size: var(--text-xs); background: var(--warning); color: #000; }

/* ---------- 窄屏 ---------- */
@media (max-width: 860px) {
  .plans, .buy { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .side { position: static; }
  .nav { display: none; }
  .doc { padding: 24px 20px; }
  .crop { grid-template-columns: 1fr; justify-items: center; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}
