/*
 * 人文帮用户中心 · 样式表
 *
 * 只给新外壳（app/templates/uc/）用：类名一律以 uc- 开头，不依赖 Bootstrap，也不和旧样式重名。
 * 旧页面不加载这一份，新旧页面在过渡期内并存。
 * 来历：由设计稿 .specs/20261120-renwenbang-usercenter-foundation/ui/uc.css 整理而来，
 * 规矩和取值的理由见同目录的 ui-design.md。
 *
 * 色调跟官网的暖色走：颜色、字体、阴影的变量名和取值照搬官网的暖色单源
 *   ditubang/dev-theme-reco/.vuepress/public/warm-tokens.css
 * 只有底色不跟（2026-11-22 定）：官网的纸色铺满整页，看着像蒙了一层雾。亮色下页面和卡片是纯白，
 * 侧栏、柔底、线是不带颜色倾向的灰，取值写在 1.2；字、品牌色、状态色、阴影还照官网。
 * 版式不照搬。官网是给人读的，标题大、留白多；用户中心是用户查账户、付钱的地方，
 * 要让人一眼看到「我现在是什么状态、要付多少、点哪里」。所以：
 *   1. 关键数字用 28：应付金额、余额、剩余天数；页面标题用 20，公开首页首屏标题用 32；
 *   2. 实心按钮只有一种：墨底白字，一屏最多一个，花钱不花钱都用它；
 *      橙色不做按钮，只做点缀：标签、链接、小图标、省下的钱数；
 *   3. 正文 14 号字（官网 16），控件高 32 / 40 / 48；
 *   4. 宋体只用在 20 号以上的标题，表格、表单、按钮、小标题、数字都用黑体；
 *   5. 方格纹只放在门面页（登录、授权、公开首页）的顶部。
 * 官网没有、这里按同一色调补的，都标了【补】：成功 / 进行中两组状态色、偏黄的警示色、
 * 危险的描边色、禁用字色、输入框圆角、主按钮悬停和按下的深浅。
 *
 * 改这份样式要守的规矩（tests/test_uc_css_contract.py 会拦）：
 *   - 颜色只写在第 1 节的令牌里，规则里只引用；
 *   - 字号、圆角、叠放次序只引用令牌；间距落在档位上的（4 / 8 / 12 / 16 / 20 / 24 / 32 / 40 / 48）引用令牌；
 *   - 不写 !important；类名以 uc- 开头，状态用 is-*；
 *   - 断点只用 768 / 992 / 1200；此外只按「减少动态效果」和打印（第 8 节）分情况。
 * 不用的写法：单边加粗的色条（提示条、卡片、导航都不用）、彩色的实心按钮、成块的彩色底、
 * 悬停时的光环、毛玻璃、渐变色。
 * 深色模式的令牌留着（.dark），第一期只上亮色，外壳不提供切换。
 */

/* ---------- 1. 令牌 ---------- */
/* 1.1 官网暖色单源：名称和取值与 warm-tokens.css 一致，不在这里改 */
:root {
  --warm-paper: #faf7f2;
  --warm-surface: #fffcf7;
  --warm-soft: #f3ede3;
  --warm-ink: #1c1917;
  --warm-body: #4a443f;
  --warm-muted: #6b635c;
  --warm-line: #e3d9cc;
  --warm-line-soft: #eee7dc;
  --warm-brand: #fa8c16;
  --warm-brand-deep: #9a4a06;
  --warm-brand-soft: #fbead5;
  --warm-sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --warm-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --border-strong: #cdbfae;
  --brand-line: #e9c394;
  --shadow-sm: 0 2px 8px rgba(77, 53, 29, .035);
  --shadow-md: 0 10px 28px -12px rgba(77, 53, 29, .18);
  --shadow-lg: 0 20px 48px -24px rgba(77, 53, 29, .25);
  color-scheme: light;
}
/* 深色：只覆盖上面这组，组件样式不写第二遍 */
.dark {
  --warm-paper: #211d19;
  --warm-surface: #2b2520;
  --warm-soft: #342c25;
  --warm-ink: #f5ebde;
  --warm-body: #ded0bf;
  --warm-muted: #b9a995;
  --warm-line: #4a3e32;
  --warm-line-soft: #302820;
  --warm-brand-deep: #ffb66b;
  --warm-brand-soft: #49311d;
  --border-strong: #695744;
  --brand-line: #705033;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .12);
  --shadow-md: 0 10px 28px -12px rgba(0, 0, 0, .4);
  --shadow-lg: 0 20px 48px -24px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* 1.2 用户中心的语义名：组件只用这一组，取值指向上面。人文帮以后定了自己的品牌色，只改 1.1 */
:root, .dark {
  --brand: var(--warm-brand);
  --brand-rgb: 250, 140, 22;
  --brand-heavy: var(--warm-brand-deep);
  --brand-soft: var(--warm-brand-soft);

  /* 动作色：实心按钮只有墨底白字一种（对比度 17.5:1），花钱不花钱都用它，一屏最多一个。
     橙色不做按钮底：品牌橙压白字只有 2.4:1，看不清。链接用深橙（白底上 6.3:1）。
     焦点用墨色，和选中态一致，也和出错时的红色边线分得开 */
  --action-primary-bg: var(--warm-ink);
  --action-primary-hover: #3a322b;    /* 【补】悬停、按下只变深浅 */
  --action-primary-pressed: #4d433a;  /* 【补】 */
  --action-primary-ink: #fff;
  --link-text: var(--warm-brand-deep);
  --focus-color: var(--warm-ink);

  /* 中性色 */
  --ink: var(--warm-ink);
  --ink-secondary: var(--warm-body);
  --muted: var(--warm-muted);
  --ink-disabled: #a69b8f;            /* 【补】只用在禁用态 */
  --ink-solid: var(--warm-ink);
  /* 底色和线：亮色不用官网给纸色底配的那一组（见文件头）。页面和卡片纯白，卡片靠一圈细线分开；
     灰从浅到深一档是一档：悬停的行 > 侧栏 > 柔底 > 悬停底 > 线 > 控件边线。灰里留了一点点暖
     （红、绿比蓝多 1 到 4），和墨色的字搭。深色的取值在本节最后的 .dark 里，和原来一样 */
  --border: #c4c4c0;
  --line: #e2e2df;
  --line-soft: #ececea;
  --surface: #fff;
  --surface-soft: #fafaf9;
  --layout-bg: #fff;
  --side-bg: #f7f7f5;
  --fill-soft: #f0f0ee;
  --fill-hover: #e9e9e6;
  --fill-pressed: #dcdcd9;

  /* 状态色：主色 / 文字色 / 底色 / 线色。危险的底色、文字色来自官网；其余是【补】。警示色比官网往黄偏了一档：官网的警示底色和品牌浅橙几乎一样，放在这里会把「需留意」和「推荐」认混 */
  --success: #5f8a2a; --success-ink: #46651c; --success-bg: #eaf1dc; --success-line: #c9d8ab;
  --warning: #a07f14; --warning-ink: #6b5413; --warning-bg: #f6efd4; --warning-line: #e4d8a9;
  --danger: #b8503f;  --danger-ink: #9c4032;  --danger-bg: #fae7e0;  --danger-line: #e9bdb0;
  --info: #3f779f;    --info-ink: #2c5878;    --info-bg: #e4edf3;    --info-line: #b9cfde;
  /* 不跟深色模式变的两个颜色：二维码的白底和它上面的字 */
  --qr-paper: #fff;
  --qr-ink: #1c1917;

  /* 形状：圆角只有 4 / 8 / 10 / 12 / 14 / 全圆 六档。按钮和标签全圆，卡片 14，内嵌块 12，输入框 10【补】，菜单项 8 */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-control: 10px;
  --radius-lg: 12px;
  --radius-card: 14px;
  --radius-pill: 999px;
  --control-h-sm: 32px;
  --control-h: 40px;
  --control-h-lg: 48px;

  /* 文字：只用 12 / 13 / 14 / 16 / 20 / 24 / 28 / 32 八档，字重只用 400 / 500 / 600。32 用于公开首页首屏标题，28 用于关键数字 */
  --font-sans: var(--warm-sans);
  --font-serif: var(--warm-serif);
  --font-mono: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --fs-hero: 32px;
  --fs-num: 28px;      /* 关键数字：应付金额、余额、剩余天数；手机上公开首页的首屏标题也用这一档 */
  --fs-title: 24px;    /* 登录页、结果页的标题（宋体） */
  --fs-h1: 20px;       /* 页面标题、对话框标题（宋体） */
  --fs-h2: 16px;       /* 卡片标题、产品名（黑体） */
  --fs-body: 14px;
  --fs-sm: 13px;
  --fs-caption: 12px;

  /* 间距：4 的倍数 */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px;

  /* 层次：卡片靠描边，不用阴影；只有浮在页面上的东西（菜单、轻提示、对话框）才有阴影 */
  --shadow-pop: var(--shadow-md);
  --shadow-float: var(--shadow-lg);
  --focus-ring: 0 0 0 3px var(--fill-pressed);
  --grid-line: var(--line-soft);
  --grid: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* 布局 */
  --topbar-h: 60px;
  --sidebar-w: 240px;
  --content-max: 1120px;

  /* 叠放次序：从下到上，只用这一组 */
  --z-side: 1;
  --z-paybar: 300;
  --z-topbar: 400;
  --z-overlay: 450;
  --z-drawer: 500;
  --z-pop: 600;
  --z-toast: 700;

  /* 规则里不直接写颜色，这三个原来写在规则里，收到这儿 */
  --overlay: rgba(28, 25, 23, .45);      /* 抽屉和对话框后面的遮罩 */
  --qr-mask: rgba(255, 255, 255, .94);   /* 二维码失效时盖在上面的一层，和二维码一样不跟深色模式变 */
  --grid-mask: radial-gradient(110% 95% at 72% 0%, #000 0%, transparent 70%);  /* 门面方格纹向下淡出 */
}
.dark {
  --action-primary-hover: #e3d6c5;
  --action-primary-pressed: #d2c3af;
  --ink-disabled: #7d7063;
  /* 底色和线：亮色在 1.2 里写成了白和中性灰，深色还按官网暖色那一组走，取值和原来一样 */
  --action-primary-ink: var(--warm-paper);
  --border: var(--border-strong);
  --line: var(--warm-line);
  --surface: var(--warm-surface);
  --layout-bg: var(--warm-paper);
  --fill-soft: var(--warm-soft);
  --fill-pressed: var(--warm-line);
  --grid-line: var(--warm-line-soft);
  --surface-soft: #302923;
  --side-bg: #1e1a16;
  /* 【补】深色下官网的浅线是给纸色底配的，放在卡片上看不见，卡片里的行线和占位条提亮一档 */
  --line-soft: #3b3129;
  --fill-hover: #3d342b;
  --success: #8fb35a; --success-ink: #b9d28f; --success-bg: #2b3320; --success-line: #47552f;
  --warning: #d6b23a; --warning-ink: #e8cf6a; --warning-bg: #3a3214; --warning-line: #5f5222;
  --danger: #d47a65;  --danger-ink: #e69a82;  --danger-bg: #412620;  --danger-line: #6e3d31;
  --info: #7fb0d1;    --info-ink: #a3c8e0;    --info-bg: #22303a;    --info-line: #3a5266;
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 var(--fs-body)/1.6 var(--font-sans);
  color: var(--ink);
  background: var(--layout-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--link-text); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; text-decoration-color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
/* 表单分组：浏览器默认给 fieldset 画一圈边框、留内边距，最小宽度按里面的内容算（窄屏会被撑宽）。全去掉：
   分组只管「里面的控件一起停用」和读屏时的归属，长什么样由里面的东西决定 */
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--action-primary-bg); }
img, svg { display: block; }
b, strong { font-weight: 600; }
::selection { background: rgba(var(--brand-rgb), .24); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 3px; }
.uc-ico { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.uc-ico-lg { width: 20px; height: 20px; }
.uc-num { font-variant-numeric: tabular-nums; }
.uc-mono { font-family: var(--font-mono); font-size: var(--fs-sm); }
.uc-muted { color: var(--muted); }
.uc-secondary { color: var(--ink-secondary); }
.uc-sm { font-size: var(--fs-sm); }
.uc-caption { font-size: var(--fs-caption); }
.uc-strong { font-weight: 600; }
.uc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 公开首页首屏用的几个写法。官网把首屏标题做到 52 号，这里用 32：用户中心的首屏要把位置让给「登录」和「开通会员」 */
/* 小标签：前面一道橙色短线。只在公开首页首屏用一次 */
.uc-kicker { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; line-height: 1.6; }
.uc-kicker::before { content: ""; flex: none; width: 20px; height: 2px; background: var(--brand); }
/* 首屏标题：宋体 32（手机 28），全站最大的标题 */
.uc-hero-title { font-family: var(--font-serif); font-weight: 600; font-size: var(--fs-hero); line-height: 1.35; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
/* 单独成行的去向链接：墨色字、橙色细下划线 */
.uc-go { display: inline-flex; align-items: center; align-self: flex-start; width: fit-content; gap: 6px; min-height: 32px; color: var(--ink); font-weight: 500; background: linear-gradient(var(--brand), var(--brand)) 0 calc(100% - 5px) / 100% 1px no-repeat; }
.uc-go:hover { color: var(--brand-heavy); text-decoration: none; }
/* 导语：只用在公开首页首屏。最宽 560，一行太长不好读 */
.uc-lead { max-width: 560px; font-size: var(--fs-h2); line-height: 2; color: var(--ink-secondary); }

/* 排布小工具。每个工具自己带默认间距，不沿用外层的；要改就在同一个元素上加 uc-gap-N（uc-grid 的列数同理，加 uc-cols-N） */
.uc-stack { --gap: var(--space-4); display: grid; gap: var(--gap); align-content: start; }
.uc-cluster { --gap: var(--space-2); display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap); }
.uc-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.uc-grid { --gap: var(--space-4); --cols: 3; display: grid; gap: var(--gap); grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.uc-split { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr) var(--aside, 340px); align-items: start; }
/* 窄的一栏在左：左边标题、右边内容 */
.uc-split-lead { gap: var(--space-6) var(--space-12); grid-template-columns: var(--aside, 340px) minmax(0, 1fr); }
/* 两块上下居中（默认顶对齐）：公开首页首屏左边是标题和按钮，右边是一张矮卡片。和 .uc-split 一样重，要写在它后面 */
.uc-split-center { align-items: center; }
/* 左边上下两块、右边一块：三块按「左上 → 右 → 左下」的顺序写，窄屏排成一列时右边那块就在中间（充值页：选项 → 支付面板 → 说明）。
   第二行写 1fr：右边比左边两块加起来还高时，多出来的高度都算在左下那块下面，左边两块不会被撑开 */
@media (min-width: 1200px) {
  .uc-split-3 { grid-template-rows: auto 1fr; }
  .uc-split-3 > :nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
}
/* 上面左右两块、下面一块通栏：三块按「左上 → 通栏 → 右上」的顺序写，窄屏排成一列时右上那块排在最后（用户详情：资料 → 订单和设备 → 操作）。
   列多的表放在通栏那块里：留在左栏的话，屏幕不够宽时要在卡片里横向滚动才看得全 */
@media (min-width: 1200px) {
  .uc-split-band > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .uc-split-band > :nth-child(3) { grid-column: 2; grid-row: 1; }
}
.uc-grow { flex: 1; min-width: 0; }
/* 等高卡片：内容纵向排，带 uc-push 的那一行贴底 */
.uc-fill { --gap: var(--space-3); display: flex; flex-direction: column; gap: var(--gap); height: 100%; }
.uc-fill > .uc-push { margin-top: auto; }

.uc-gap-1 { --gap: var(--space-1); } .uc-gap-2 { --gap: var(--space-2); } .uc-gap-3 { --gap: var(--space-3); } .uc-gap-4 { --gap: var(--space-4); } .uc-gap-5 { --gap: var(--space-5); } .uc-gap-6 { --gap: var(--space-6); } .uc-gap-8 { --gap: var(--space-8); }
.uc-cols-2 { --cols: 2; } .uc-cols-3 { --cols: 3; } .uc-cols-4 { --cols: 4; } .uc-cols-5 { --cols: 5; } .uc-cols-6 { --cols: 6; }
.uc-center { text-align: center; justify-content: center; }
.uc-top { align-items: flex-start; }
.uc-bottom { align-items: flex-end; }
.uc-end { justify-content: flex-end; }
/* 一行放不下时折到下一行，和 uc-between 一起用：窄屏上右边那块掉到左边那块下面，两块都不被挤窄 */
.uc-wrap { flex-wrap: wrap; }
.uc-nowrap { white-space: nowrap; }
/* 邮箱、用户名这类中间没有空格的长串：一行放不下时允许从任意位置折行，不把容器撑宽 */
.uc-break { overflow-wrap: anywhere; }
/* 照原样显示换行的一段字（预览「更新说明」）：换行和连着的空格都留着，一行太长照样折 */
.uc-prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- 3. 外壳 ---------- */
/* 顶栏：和页面一样的底色、底下一条细线；标识右边用竖线隔开「用户中心」，和官网「地图帮｜帮助中心」同一个写法 */
.uc-topbar {
  position: sticky; top: 0; z-index: var(--z-topbar);
  height: var(--topbar-h);
  display: flex; align-items: center; gap: var(--space-3);
  padding: 0 var(--space-6);
  background: var(--layout-bg);
  border-bottom: 1px solid var(--line);
}
.uc-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: var(--fs-h2); font-weight: 600; letter-spacing: .01em; }
.uc-brand:hover { text-decoration: none; }
.uc-brand-mark { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--ink-solid); color: var(--layout-bg); display: grid; place-items: center; }
.uc-brand-mark .uc-ico { width: 18px; height: 18px; stroke-width: 2; }
.uc-brand-sub { padding-left: 10px; border-left: 1px solid var(--border); font-size: var(--fs-body); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.uc-topbar-spacer { flex: 1; }
.uc-topbar-link { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-pill); color: var(--ink-secondary); font-size: var(--fs-body); }
.uc-topbar-link:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.uc-topbar .uc-menu-btn { display: none; }
.uc-env { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--ink-solid); color: var(--layout-bg); font-size: var(--fs-caption); font-weight: 500; }

.uc-shell { position: relative; display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: calc(100vh - var(--topbar-h)); }
/* 侧栏的底色和右边线画在外壳上，页面再长也通到底 */
.uc-shell::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--side-bg); border-right: 1px solid var(--line); }
/* 侧栏：比页面略深一点的浅灰，右边一条细线；当前项柔底、墨色字 */
.uc-side {
  position: sticky; top: var(--topbar-h); z-index: var(--z-side);
  height: calc(100vh - var(--topbar-h));
  display: flex; flex-direction: column;
  padding: var(--space-4) var(--space-3) var(--space-3);
  overflow-y: auto;
}
.uc-nav-group + .uc-nav-group { margin-top: var(--space-5); }
.uc-nav-label { padding: 0 var(--space-3); margin-bottom: var(--space-1); font-size: var(--fs-caption); letter-spacing: .05em; color: var(--muted); }
.uc-nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
}
.uc-nav-item:hover { background: var(--fill-soft); color: var(--ink); text-decoration: none; }
.uc-nav-item[aria-current="page"] { background: var(--fill-hover); color: var(--ink); font-weight: 600; }
.uc-nav-item .uc-tag { margin-left: auto; }
.uc-side-foot { margin-top: auto; padding-top: var(--space-4); }
.uc-account {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin-top: var(--space-2); padding: var(--space-2) var(--space-3);
  border: 0; border-radius: var(--radius-lg); background: none; text-align: left; cursor: pointer;
}
.uc-account:hover { background: var(--fill-soft); }
.uc-account-name { font-weight: 500; line-height: 1.3; }
.uc-account-meta { font-size: var(--fs-caption); color: var(--muted); line-height: 1.3; }

.uc-main { min-width: 0; padding: 28px var(--space-8) 56px; }
.uc-page { max-width: var(--content-max); margin: 0 auto; }
.uc-page-wide { max-width: 1360px; }
.uc-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
/* 页面标题：宋体 20。一页只有一个 */
.uc-page-title, .uc-section-title { font-family: var(--font-serif); font-size: var(--fs-h1); line-height: 1.4; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
/* 短说明（页头说明、卡片小标题、空状态的两段字）只在标点和空格后面折行（word-break: keep-all）：
   每一行都是完整的半句，窄屏上不会把一个词拆在两行，最后一行也不会只剩一两个字。
   哪半句比一整行还长时照常从中间折（overflow-wrap: anywhere），不会撑出横向滚动；两样要成对写。
   数字两边的空格也是折行点，「3 台」这样不能拆的用 .uc-nowrap 包住 */
.uc-page-desc { margin-top: var(--space-1); color: var(--ink-secondary); word-break: keep-all; overflow-wrap: anywhere; }
.uc-crumb { display: flex; align-items: center; gap: 6px; margin-bottom: var(--space-2); font-size: var(--fs-sm); color: var(--muted); }
.uc-crumb a { color: var(--ink-secondary); }

/* 门面外壳：登录、注册、授权、结果页、公开页。顶部有淡方格纹，向下淡出 */
.uc-door { position: relative; isolation: isolate; min-height: 100vh; display: flex; flex-direction: column; }
.uc-door::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: min(100%, 720px); z-index: -1; pointer-events: none;
  background-image: var(--grid); background-size: 56px 56px;
  -webkit-mask-image: var(--grid-mask); mask-image: var(--grid-mask);
}
.uc-door-head { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 0 var(--space-8); border-bottom: 1px solid var(--line); }
.uc-door-main { flex: 1; display: grid; place-items: center; padding: var(--space-8) var(--space-4) 64px; }
.uc-door-main.is-plain { display: block; padding: 0; }
/* 长页面（公开首页）：正文两边的留白由外壳给，页面不用自己写；手机上收到 16，和顶栏对齐 */
.uc-door-main.is-plain > .uc-page { padding: 0 var(--space-6) var(--space-6); }
.uc-door-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1) var(--space-5); padding: var(--space-5) var(--space-6) var(--space-6); border-top: 1px solid var(--line-soft); font-size: var(--fs-caption); color: var(--muted); }
.uc-door-foot a { color: var(--ink-secondary); }
.uc-auth { width: min(420px, 100%); }
.uc-auth-card { padding: var(--space-8); box-shadow: var(--shadow-md); }
.uc-auth-title, .uc-result-title, .uc-doc-title { font-family: var(--font-serif); font-size: var(--fs-title); line-height: 1.35; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.uc-auth-sub { margin-top: 6px; color: var(--ink-secondary); }
.uc-auth-foot { min-width: 0; }
.uc-auth-foot.is-qr { padding-inline-start: max(0px, calc((100% - 264px) / 2)); }
.uc-auth-foot .uc-check { font-size: var(--fs-caption); }
.uc-auth-foot .uc-check a { white-space: nowrap; }

/* 两栏的门面（split，只有登录页用）：宽屏上正文靠右，左边一幅画；992 以下不显示画，和居中的样子一样。
   画是内嵌的矢量图（uc/_scene.html）：一只老式的铜壳指南针压在一张旧地图上。画里只有形状和类名，
   颜色、线的粗细、字都在这里按令牌定。铜壳用品牌色的两档浅色铺色：这是一幅图，不是界面，
   「不铺成块的彩色底」那一条不管它；渐变照样不用 */
.uc-scene { display: none; }
.uc-door-scene { display: none; }
@media (min-width: 992px) {
  /* 右边一栏和登录卡片（.uc-auth）一样宽，左边的画占剩下的；整块最宽 1200，在页面正中 */
  .uc-door-main.is-split { grid-template-columns: minmax(0, 1fr) 420px; column-gap: var(--space-12); align-self: center; width: min(1200px, 100%); padding-left: var(--space-8); padding-right: var(--space-8); }
  .uc-door-scene { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: stretch; gap: var(--space-3); min-width: 0; width: 100%; }
  .uc-scene { display: block; justify-self: center; width: min(100%, 620px); pointer-events: none; user-select: none; }
  .uc-door-scene .uc-scene { width: min(100%, 560px); }
  .uc-door-scene .uc-visual-caption { width: min(100%, 560px); justify-self: center; }
}
.uc-scene-art { display: block; width: 100%; height: auto; overflow: visible; fill: none; stroke: var(--line); stroke-linecap: round; stroke-linejoin: round; }
.uc-scene-art text { fill: var(--ink); stroke: none; font-family: var(--font-serif); font-size: var(--fs-h1); font-weight: 600; text-anchor: middle; }
.uc-home-hero { padding-block: var(--space-4); }
@media (min-width: 1200px) {
  .uc-home-hero > .uc-stack { padding-top: var(--space-6); }
}
.uc-home-visual { display: grid; align-content: center; justify-items: end; gap: var(--space-3); min-width: 0; }
.uc-home-scene { display: block; justify-self: end; width: min(100%, 560px); pointer-events: none; user-select: none; }
.uc-visual-caption { width: min(100%, 560px); color: var(--muted); font-size: var(--fs-sm); line-height: 1.7; text-align: center; }
/* 底下的地图：纸、经纬网、等高线（计曲线深一点）、图廓（两道细线夹一道黑白相间的边）；纸和指南针各有一块影子 */
.uc-scene-sheet { fill: var(--surface); stroke: var(--border); }
.uc-scene-grid { stroke: var(--line-soft); }
.uc-scene-contour { stroke: var(--line); }
.uc-scene-index { stroke: var(--border); }
.uc-scene-neat { stroke: var(--border); stroke-width: .8; }
.uc-scene-scale { stroke: var(--border); stroke-width: 3; stroke-linecap: butt; stroke-linejoin: miter; stroke-dasharray: 22 22; }
.uc-scene-shadow { fill: var(--ink); stroke: none; opacity: .07; }
/* 铜壳、表冠、提环：铜色 --brand-line，亮面 --brand-soft，线 --brand-heavy。外沿的齿纹是一个按 360 计长的圆画成虚线，每 2 度一道 */
.uc-scene-brass { fill: var(--brand-line); stroke: var(--brand-heavy); stroke-width: 1.4; }
.uc-scene-bow-band { stroke: var(--brand-line); stroke-width: 6; }
.uc-scene-bow { stroke: var(--brand-heavy); stroke-width: 1.2; }
.uc-scene-groove { stroke: var(--brand-heavy); stroke-width: .8; }
.uc-scene-knurl { stroke: var(--brand-soft); stroke-width: 7; stroke-linecap: butt; stroke-dasharray: .6 1.4; }
.uc-scene-shine { stroke: var(--brand-soft); stroke-width: 6; }
.uc-scene-shade { stroke: var(--brand-heavy); stroke-width: 6; opacity: .22; }
.uc-scene-lip { fill: var(--brand-soft); stroke: var(--brand-heavy); stroke-width: .8; }
/* 盘面：比铜壳低一层，左上的盘边在盘面上落一道影子。刻度也是按 360 计长的圆：每 5 度一短划、每 15 度一长划，
   起点往回挪半划，让每一划骑在整度数上 */
.uc-scene-dial { fill: var(--surface); stroke: var(--brand-heavy); stroke-width: 1.2; }
.uc-scene-recess { fill: var(--ink); stroke: none; opacity: .08; }
.uc-scene-ring { stroke: var(--muted); stroke-width: .8; }
.uc-scene-ticks, .uc-scene-ticks-long { stroke: var(--muted); stroke-linecap: butt; }
.uc-scene-ticks { stroke-dasharray: .3 4.7; stroke-dashoffset: .15; stroke-width: 6; }
.uc-scene-ticks-long { stroke-dasharray: .45 14.55; stroke-dashoffset: .225; stroke-width: 10; }
.uc-scene-minor { fill: var(--muted); stroke: none; }
.uc-scene-rose { fill: var(--brand-soft); stroke: var(--brand-heavy); stroke-width: .8; }
.uc-scene-rose-shade { fill: var(--brand-line); stroke: var(--brand-heavy); stroke-width: .8; }
.uc-scene-lubber { fill: var(--brand-heavy); stroke: none; }
/* 指针：橙色的一头指北。绕着画的正中（也就是盘心）摆；影子和指针是两层，摆法一样 */
.uc-scene-needle { transform-box: view-box; transform-origin: center; animation: uc-scene-swing 14s ease-in-out infinite; }
.uc-scene-needle-shadow { fill: var(--ink); stroke: none; opacity: .14; }
.uc-scene-needle-edge { fill: var(--surface); stroke: var(--surface); stroke-width: 2; }
.uc-scene-north { fill: var(--brand); stroke: none; }
.uc-scene-north-shade { fill: var(--brand-heavy); stroke: none; }
.uc-scene-south { fill: var(--ink-secondary); stroke: none; }
.uc-scene-south-shade { fill: var(--ink); stroke: none; }
.uc-scene-cap { fill: var(--brand-line); stroke: var(--brand-heavy); stroke-width: 1.2; }
.uc-scene-cap-shine { fill: var(--brand-soft); stroke: none; }
/* 铜壳上的一点反光：隔几秒亮一下 */
.uc-scene-glint { fill: var(--surface); stroke: none; transform-box: fill-box; transform-origin: center; animation: uc-scene-glint 7s ease-in-out infinite; }
/* 指针像被碰了一下：来回摆着慢慢停回正北，歇几秒再来。一秒摆半个来回，每次幅度缩到上一次的六成多 */
@keyframes uc-scene-swing {
  0% { transform: rotate(0deg); }
  7.14% { transform: rotate(-30deg); }
  14.29% { transform: rotate(19deg); }
  21.43% { transform: rotate(-12deg); }
  28.57% { transform: rotate(7.5deg); }
  35.71% { transform: rotate(-4.7deg); }
  42.86% { transform: rotate(3deg); }
  50% { transform: rotate(-1.9deg); }
  57.14% { transform: rotate(1.2deg); }
  64.29% { transform: rotate(-.7deg); }
  71.43%, 100% { transform: rotate(0deg); }
}
@keyframes uc-scene-glint {
  0%, 40%, 100% { transform: scale(.3); opacity: 0; }
  70% { transform: scale(1); opacity: 1; }
}
.uc-from {
  display: flex; align-items: center; gap: 10px;
  margin-top: var(--space-5); padding: 10px var(--space-3);
  border-radius: var(--radius-control); background: var(--fill-soft);
  font-size: var(--fs-sm); color: var(--ink-secondary);
}
.uc-from b { color: var(--ink); font-weight: 600; }
.uc-divider { display: flex; align-items: center; gap: var(--space-3); color: var(--muted); font-size: var(--fs-caption); }
.uc-divider::before, .uc-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* 二维码必须是白底黑码，深色模式也不变 */
.uc-qr { width: 196px; height: 196px; margin: 0 auto; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--qr-paper); position: relative; }
.uc-qr > svg, .uc-qr > img { display: block; width: 100%; height: 100%; }
.uc-qr-mask { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: var(--space-2); border-radius: var(--radius-lg); background: var(--qr-mask); color: var(--qr-ink); text-align: center; font-size: var(--fs-sm); }
/* 二维码还没出来时，框里铺一块灰底 */
.uc-qr > .uc-skel { width: 100%; height: 100%; border-radius: var(--radius-sm); }
/* 微信网页扫码登录：二维码是微信给的一个内嵌页面，里面按 250×252 排好了版。不改它里面的排版，也不缩放，
   原样大小放在框的正中（码的边长 240，四边各留 11）；框因此比普通的二维码框大，和登录卡片顶上的分段切换一样宽。
   内嵌页面自己写的宽高属性优先级低，这里直接盖掉 */
.uc-qr-embed { width: 264px; height: 264px; overflow: hidden; }
.uc-qr-embed iframe { position: absolute; top: 11px; left: 6px; width: 250px; height: 252px; border: 0; }

/* 公开首页的区块：用细线分隔，不用卡片套卡片 */
.uc-section { padding-block: var(--space-8); border-top: 1px solid var(--line-soft); }
.uc-section:first-child { border-top: 0; }
/* 顶上一条线的列：官网首页「三端怎么选」的写法 */
.uc-linecol { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); min-width: 0; height: 100%; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.uc-linecol > .uc-push { margin-top: auto; }
.uc-linecol-ico { display: flex; align-items: center; height: 30px; color: var(--brand-heavy); }
.uc-linecol-ico .uc-ico { width: 24px; height: 24px; }
.uc-linecol-tag { font-size: var(--fs-sm); font-weight: 500; color: var(--brand-heavy); }
.uc-linecol-name { font-size: var(--fs-h2); line-height: 1.5; font-weight: 600; color: var(--ink); }
/* 柔底的横幅：一页最多一条，放一句话和一个主按钮 */
.uc-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-6); padding: var(--space-5) var(--space-6); border-radius: var(--radius-card); background: var(--fill-soft); }
/* 横幅里文字一列至少 260 宽，再窄就让按钮折到下一行；里面的段落最宽 640 */
.uc-band > .uc-grow { min-width: 260px; }
.uc-band p { max-width: 640px; }
/* 页脚的链接列：次要色，悬停才变深橙 */
.uc-quietlinks a { color: var(--ink-secondary); }
.uc-quietlinks a:hover { color: var(--brand-heavy); }
/* 问答条目（公开首页的常见问题）：一行问题，点开看回答。用原生 details，不靠脚本，收起的回答也在页面里（搜索引擎读得到）。
   样子和不套卡片的行列表（.uc-rows-line）一样：顶上一条墨线，每条底下一条细线。箭头只画朝下的一个，收起时转成朝右 */
.uc-qa-list { border-top: 1px solid var(--ink); }
.uc-qa { border-bottom: 1px solid var(--line); }
.uc-qa > summary { display: flex; align-items: center; gap: var(--space-3); padding: 18px 0; font-size: var(--fs-h2); font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.uc-qa > summary::-webkit-details-marker { display: none; }
.uc-qa > summary:hover { color: var(--link-text); }
.uc-qa > summary > .uc-ico { flex: none; color: var(--muted); transform: rotate(-90deg); transition: transform .15s ease; }
.uc-qa[open] > summary > .uc-ico { transform: none; }
.uc-qa[open] > summary { padding-bottom: 6px; }
.uc-qa-body { padding-bottom: 18px; line-height: 1.8; color: var(--ink-secondary); }

/* ---------- 4. 组件 ---------- */
/* 卡片：亮色下和页面一样是白底，靠一条细线描边分开（深色下才比底色略亮）；14 圆角，不用阴影 */
.uc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-6); }
.uc-card-compact { padding: var(--space-4); }
.uc-card-flush { padding: 0; overflow: hidden; }
/* 整张卡片只放一句结果和按钮时（支付结果页）：上下多留一档 */
.uc-card-roomy { padding-block: var(--space-8); }
.uc-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); margin-bottom: var(--space-4); }
.uc-card-flush > .uc-card-head { margin: 0; padding: var(--space-5) var(--space-6) var(--space-3); }
.uc-card-title { font-size: var(--fs-h2); line-height: 1.5; font-weight: 600; color: var(--ink); }
.uc-card-sub { font-size: var(--fs-sm); color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.uc-inset { padding: var(--space-4); border-radius: var(--radius-lg); background: var(--fill-soft); }

/* 按钮：胶囊形。实心按钮只有墨底白字一种，一屏只有一个，花钱不花钱都用它；次按钮墨色细线；危险操作不用实心。
   悬停只变深浅，不加光环；没有彩色的实心按钮 */
.uc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--control-h); padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-size: var(--fs-body); font-weight: 600; line-height: 1.2; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.uc-btn:hover { text-decoration: none; }
.uc-btn-primary { background: var(--action-primary-bg); border-color: var(--action-primary-bg); color: var(--action-primary-ink); }
.uc-btn-primary:hover { background: var(--action-primary-hover); border-color: var(--action-primary-hover); color: var(--action-primary-ink); }
.uc-btn-primary:active { background: var(--action-primary-pressed); border-color: var(--action-primary-pressed); }
.uc-btn-default { background: transparent; border-color: var(--ink); color: var(--ink); }
.uc-btn-default:hover { background: var(--fill-hover); color: var(--ink); }
.uc-btn-quiet { background: var(--fill-soft); color: var(--ink); }
.uc-btn-quiet:hover { background: var(--fill-hover); color: var(--ink); }
.uc-btn-danger { background: transparent; border-color: var(--danger-line); color: var(--danger-ink); }
.uc-btn-danger:hover { background: var(--danger-bg); border-color: var(--danger-ink); }
.uc-btn-text { height: auto; padding: 0; border: 0; border-radius: var(--radius-xs); background: none; color: var(--link-text); font-weight: 500; }
.uc-btn-text:hover { text-decoration: underline; text-decoration-color: var(--brand); }
.uc-btn-sm { height: var(--control-h-sm); padding: 0 14px; font-size: var(--fs-sm); }
.uc-btn-lg { height: var(--control-h-lg); padding: 0 var(--space-6); font-size: var(--fs-h2); }
.uc-btn-block { display: flex; width: 100%; }
/* 停用认 :disabled，不认 [disabled] 属性：控件自己写了 disabled，或者放在停用的 fieldset 里，都算（输入框、下拉框、勾选框同理） */
.uc-btn:disabled:not(.is-loading), .uc-btn.is-disabled { background: var(--fill-soft); border-color: var(--line); color: var(--ink-disabled); cursor: not-allowed; box-shadow: none; }
.uc-btn.is-loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
.uc-iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--ink-secondary); cursor: pointer; }
.uc-iconbtn:hover { background: var(--fill-soft); color: var(--ink); }

/* 表单：输入框 10 圆角、深一档的线；搜索框胶囊形 */
.uc-form { display: grid; gap: var(--space-4); }
.uc-field { display: grid; gap: 6px; align-content: start; }
.uc-label { font-size: var(--fs-body); font-weight: 500; }
.uc-label .opt { font-weight: 400; color: var(--muted); }
.uc-input, .uc-select {
  width: 100%; height: var(--control-h); padding: 0 var(--space-3);
  border: 1px solid var(--border); border-radius: var(--radius-control);
  background: var(--surface); color: var(--ink);
}
.uc-input::placeholder { color: var(--muted); opacity: .75; }
.uc-input:hover, .uc-select:hover { border-color: var(--ink); }
.uc-input:focus, .uc-select:focus, .uc-input.is-focus { outline: 0; border-color: var(--focus-color); box-shadow: var(--focus-ring); }
.uc-input.is-error { border-color: var(--danger); }
.uc-input:disabled, .uc-select:disabled { background: var(--fill-soft); border-color: var(--line); color: var(--ink-disabled); }
.uc-input-lg { height: var(--control-h-lg); }
/* 多行输入框：写成 class="uc-input uc-textarea"，边框、圆角、聚焦、停用都跟单行的一样，只把高度放开——
   按 rows 的行数来；只许上下拖大，左右拖会把卡片撑出屏幕。要写在上面两条后面才盖得住固定高度 */
.uc-textarea { height: auto; min-height: calc(var(--control-h) * 2); padding: var(--space-2) var(--space-3); line-height: 1.6; resize: vertical; }
.uc-select { appearance: none; padding-right: var(--space-8); }
.uc-selectwrap { position: relative; }
.uc-selectwrap > .uc-ico { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.uc-help { font-size: var(--fs-caption); color: var(--muted); }
.uc-error { display: flex; align-items: center; gap: var(--space-1); font-size: var(--fs-caption); color: var(--danger-ink); }
/* 支付按钮旁边的报错只用红字，不铺红底 */
.uc-error-inline { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 500; color: var(--danger-ink); }
.uc-inputgroup { position: relative; }
.uc-inputgroup > .uc-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.uc-inputgroup > .uc-input { padding-left: 36px; }
.uc-inputrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); }
.uc-check { display: inline-flex; align-items: flex-start; gap: var(--space-2); font-size: var(--fs-sm); color: var(--ink-secondary); }
.uc-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--action-primary-bg); }
.uc-check:has(:disabled) { color: var(--ink-disabled); }
/* 密码框右边的「显示 / 隐藏」按钮：输入框右侧留出按钮的位置。可以和 uc-inputgroup 写在同一个元素上 */
.uc-reveal { position: relative; }
.uc-reveal > .uc-input { padding-right: 44px; }
.uc-reveal > .uc-iconbtn { position: absolute; top: 2px; right: 2px; }
.uc-reveal > .uc-iconbtn[aria-pressed="true"] { color: var(--ink); }
/* 图形验证码：和输入框一样高，点图换一张；图出不来时框里显示一句话。
   图的高度要写成具体的数（框高减去上下边框）：写成 100% 时浏览器按原图高度排，图会被框裁掉一截，字认不全。
   原图是 160×60，缩到这个高度后宽约 101，框的最小宽度按它定，图换上来时框不跳动 */
.uc-captcha { display: grid; place-items: center; min-width: 104px; height: var(--control-h); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; font-size: var(--fs-caption); color: var(--muted); }
.uc-captcha > img { width: auto; height: calc(var(--control-h) - 2px); cursor: pointer; }
.uc-captcha > span { padding: 0 var(--space-2); }
/* 说明文字里的文字按钮（换一张、听语音码）：字号跟着这行说明走 */
.uc-help .uc-btn-text { font-size: inherit; }
.uc-search { position: relative; }
.uc-search > .uc-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.uc-search > .uc-input { padding-left: 38px; border-radius: var(--radius-pill); }

/* 分段切换：2–6 个互斥选项。轨道是柔底，选中项是卡片色加一圈线。不再使用下划线 Tab。
   在页面里就地切换的用 button（aria-checked / aria-selected）；换一个选项要重新取数的（服务端筛选、带分页）用链接，当前项标 aria-current="true" */
.uc-seg { display: inline-flex; justify-self: start; gap: var(--space-1); max-width: 100%; padding: var(--space-1); border-radius: var(--radius-pill); background: var(--fill-soft); overflow-x: auto; }
.uc-seg-item {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: var(--space-2) var(--space-4);
  border: 0; border-radius: var(--radius-pill); background: none;
  color: var(--ink-secondary); font-size: var(--fs-body); font-weight: 500; white-space: nowrap; cursor: pointer;
}
.uc-seg-item:hover { color: var(--ink); text-decoration: none; }
.uc-seg-item[aria-checked="true"], .uc-seg-item[aria-selected="true"], .uc-seg-item[aria-current="true"], .uc-seg-item:has(> input:checked) { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--border); }
.uc-seg-sm .uc-seg-item { min-height: 32px; padding: var(--space-1) var(--space-3); font-size: var(--fs-sm); }
.uc-seg-block { display: flex; justify-self: stretch; }
.uc-seg-block .uc-seg-item { flex: 1; }
/* 各项等宽，宽度跟着最宽的一项走，整条居中：选项少、字也少的时候用，不必拉满一行 */
.uc-seg-even { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; justify-self: center; }
/* 登录卡片顶上的那一条：和下面微信登录的方框（.uc-qr-embed）一样宽 */
.uc-auth-card > .uc-seg-even { min-width: min(264px, 100%); }

/* 文字筛选：细线胶囊；选中是柔底、墨色字（选中态都用中性色，浅橙留给会员和优惠）。
   和分段切换一样有两种：就地切换用 button（aria-pressed），要重新取数的用链接（aria-current="true"） */
.uc-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.uc-chipbtn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-secondary); font-size: var(--fs-sm); white-space: nowrap; cursor: pointer; }
.uc-chipbtn:hover { border-color: var(--border); color: var(--ink); text-decoration: none; }
.uc-chipbtn[aria-pressed="true"], .uc-chipbtn[aria-current="true"] { border-color: var(--fill-pressed); background: var(--fill-pressed); color: var(--ink); font-weight: 600; }

/* 标签：行内状态，24 高，胶囊形，底色加同色细线 */
.uc-tag { display: inline-flex; align-items: center; gap: var(--space-1); height: 24px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--fill-soft); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-secondary); font-size: var(--fs-caption); font-weight: 500; line-height: 1; white-space: nowrap; }
.uc-tag-success { background: var(--success-bg); box-shadow: inset 0 0 0 1px var(--success-line); color: var(--success-ink); }
.uc-tag-warning { background: var(--warning-bg); box-shadow: inset 0 0 0 1px var(--warning-line); color: var(--warning-ink); }
.uc-tag-danger { background: var(--danger-bg); box-shadow: inset 0 0 0 1px var(--danger-line); color: var(--danger-ink); }
.uc-tag-info { background: var(--info-bg); box-shadow: inset 0 0 0 1px var(--info-line); color: var(--info-ink); }
.uc-tag-brand { background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand-line); color: var(--brand-heavy); }
.uc-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* 可移除的标签（当前筛选条件）：右边带一个关闭键 */
.uc-tag-x { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: -4px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.uc-tag-x:hover { background: var(--fill-pressed); }
.uc-tag-x .uc-ico { width: 12px; height: 12px; }
/* 事实标签：页头里的关键事实，32 高，卡片色描边 */
.uc-fact { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }

/* 提示条：白底、四边一样的细线，状态只看左边小图标的颜色；报错的那一种字也是红的，和表单里的报错一致。
   不用「单边一道粗色条」的写法，也不铺彩色底 */
.uc-alert { display: flex; align-items: flex-start; gap: 10px; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); font-size: var(--fs-body); }
.uc-alert > .uc-ico { margin-top: 3px; color: var(--info); }
.uc-alert-body { flex: 1; min-width: 0; }
.uc-alert-title { font-weight: 600; color: var(--ink); }
.uc-alert-warning > .uc-ico { color: var(--warning); }
.uc-alert-danger > .uc-ico { color: var(--danger); }
.uc-alert-danger, .uc-alert-danger .uc-alert-title { color: var(--danger-ink); }
.uc-alert-success > .uc-ico { color: var(--success); }
.uc-alert-neutral > .uc-ico { color: var(--ink-secondary); }

/* 行列表：设置项、设备、登录方式。行与行之间一条浅线 */
.uc-rows > li { display: flex; align-items: center; gap: var(--space-4); padding: 14px 0; border-top: 1px solid var(--line-soft); }
.uc-rows > li:first-child { border-top: 0; padding-top: 0; }
.uc-rows > li:last-child { padding-bottom: 0; }
/* 不套卡片的行列表：顶上一条墨线，每行底下一条细线（官网首页「定制服务」列表的写法） */
.uc-rows-line { border-top: 1px solid var(--ink); }
.uc-rows-line > li, .uc-rows-line > li:first-child, .uc-rows-line > li:last-child { padding: 18px 0; border-top: 0; border-bottom: 1px solid var(--line); }
.uc-rows-line .uc-row-title { font-size: var(--fs-h2); font-weight: 600; }
.uc-rows-line .uc-row-desc { margin-top: 6px; font-size: var(--fs-body); line-height: 1.8; }
.uc-row-ico { width: 40px; height: 40px; flex: none; border-radius: var(--radius-lg); background: var(--fill-soft); color: var(--brand-heavy); display: grid; place-items: center; }
.uc-row-main { flex: 1; min-width: 0; }
.uc-row-title { font-weight: 500; color: var(--ink); }
.uc-row-desc { font-size: var(--fs-sm); color: var(--ink-secondary); }
.uc-row-value { color: var(--ink-secondary); text-align: right; }

/* 整行可点的链接行、产品入口块 */
.uc-rowlink { display: flex; align-items: center; gap: var(--space-3); width: 100%; border-radius: var(--radius-sm); color: var(--ink); }
.uc-rowlink:hover { text-decoration: none; color: var(--link-text); }
.uc-rowlink > .uc-ico:last-child { color: var(--muted); }
/* 行是动作（弹出对话框）时用 button：去掉按钮自带的边框、底色和居中 */
button.uc-rowlink { padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
button.uc-rowlink[disabled] { color: var(--muted); cursor: not-allowed; }
button.uc-rowlink[disabled]:hover { color: var(--muted); }
.uc-tile { display: flex; align-items: center; gap: var(--space-3); height: 100%; padding: var(--space-3); border-radius: var(--radius-lg); background: var(--fill-soft); color: var(--ink); }
.uc-tile:hover { background: var(--fill-hover); color: var(--brand-heavy); text-decoration: none; }
.uc-tile-ico { width: 36px; height: 36px; flex: none; border-radius: var(--radius-control); background: var(--surface); color: var(--brand-heavy); display: grid; place-items: center; }
.uc-tile-name { font-weight: 500; line-height: 1.4; }
.uc-tile-meta { font-size: var(--fs-caption); color: var(--ink-secondary); line-height: 1.4; }

/* 说明列表：标签 + 值 */
/* 列数写在同一个元素上：uc-desc uc-cols-N */
.uc-desc { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: var(--space-4) var(--space-6); }
.uc-desc dt { font-size: var(--fs-sm); color: var(--muted); }
.uc-desc dd { margin-top: 2px; font-weight: 500; overflow-wrap: anywhere; }
/* 值是一整句话的（规则、说明）：不加粗，字号和上面的名称一样。写在同一个元素上：uc-desc uc-desc-text */
.uc-desc-text dd { font-size: var(--fs-sm); font-weight: 400; }
/* 列数跟着列表自己的宽度走：uc-desc uc-cols-N uc-desc-fit。最多 N 列，每列不窄于 150px，放不下就少排一列。
   分栏左边的卡片用：窗口一样宽，分栏里的卡片比通栏的窄一大截，列数写死的话日期、邮箱会挤成两三行。
   排在窄屏那条「只排一列」的规则前面，权重一样，窄屏照样只排一列 */
.uc-desc-fit { grid-template-columns: repeat(auto-fit, minmax(max(150px, (100% - (var(--cols, 2) - 1) * var(--space-6)) / var(--cols, 2)), 1fr)); }

/* 表格：表头 42 高、13 号次要色字，表头下一条线，行与行之间一条浅线；窄屏改成一行一张卡 */
.uc-table-wrap { overflow-x: auto; }
.uc-table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.uc-table th { height: 42px; padding: 0 var(--space-3); border-bottom: 1px solid var(--line); text-align: left; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); white-space: nowrap; }
.uc-table td { height: 52px; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.uc-table tbody tr:last-child td { border-bottom: 0; }
.uc-table tbody tr:hover td { background: var(--surface-soft); }
.uc-table th:first-child, .uc-table td:first-child { padding-left: var(--space-6); }
.uc-table th:last-child, .uc-table td:last-child { padding-right: var(--space-6); }
.uc-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.uc-table .is-actions { text-align: right; white-space: nowrap; }
/* 操作列里并排放几个入口（uc-cluster）时同样不折行：这一列被别的列挤窄时，入口不会叠成上下两行 */
.uc-table .is-actions > .uc-cluster { flex-wrap: nowrap; }
/* 列多的表（后台的支付记录）：列间距收紧一档，首尾两列的外侧边距不变 */
.uc-table-dense th, .uc-table-dense td { padding-left: var(--space-2); padding-right: var(--space-2); }
.uc-cell-user { display: flex; align-items: center; gap: 10px; }
/* 表格里的用户格有个宽度下限：列多的表在 1200 出头的宽度放不下时，表格在卡片内横向滚动，不把名字挤成两三个字一行 */
.uc-table .uc-cell-user { min-width: 140px; }
/* 单元格第二行：日期下面的时间、数字下面的说明 */
.uc-cell-sub { display: block; font-size: var(--fs-caption); line-height: 1.4; font-weight: 400; color: var(--muted); }
/* 列多的表在中等宽度（768–1199：平板，或带侧栏的小屏电脑）放不下：标了 is-optional 的列在这个宽度收起来，
   它们的内容由标题格里标了 is-compact 的补充说明顶上——这一行说明只在这个宽度出现（见「响应式」一节）。
   再窄是一行一张卡（uc-table-stack），每一列都在，用不着这一行说明 */
.uc-table .uc-cell-sub.is-compact { display: none; }
.uc-pager { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-6); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-secondary); }
/* 分页条里的「每页条数」下拉框：和旁边的小号按钮一样高（字号跟着分页条走），宽度至少放得下「50 条 / 页」 */
.uc-pager .uc-selectwrap { min-width: 112px; }
.uc-pager .uc-select { height: var(--control-h-sm); }
/* 表格分成两段（先露前几行，其余点「展开全部」再出来）时，两段之间补上分隔线；展开以后按钮上的箭头朝上 */
.uc-pager .uc-btn[aria-expanded="true"] > .uc-ico { transform: rotate(180deg); }
.uc-table tbody + tbody tr:first-child td { border-top: 1px solid var(--line-soft); }

/* 折叠条目：一行标题，点开看正文。放「要有、但不必一直摊开」的长内容（购买须知）。用原生 details，不靠脚本 */
.uc-fold { border-top: 1px solid var(--line-soft); }
/* 折叠条目是无内边距卡片里的第一项时不画顶线：卡片自己有边 */
.uc-card-flush > .uc-fold:first-child { border-top: 0; }
.uc-fold > summary { display: flex; align-items: center; gap: var(--space-3); min-height: 48px; padding: var(--space-2) var(--space-6); cursor: pointer; list-style: none; font-weight: 500; color: var(--ink); }
.uc-fold > summary::-webkit-details-marker { display: none; }
.uc-fold > summary:hover { background: var(--surface-soft); }
.uc-fold > summary:focus-visible { outline-offset: -2px; }
.uc-fold > summary > .uc-ico { flex: none; color: var(--muted); transition: transform .15s ease; }
.uc-fold[open] > summary > .uc-ico { transform: rotate(180deg); }
.uc-fold-meta { margin-left: auto; font-size: var(--fs-sm); font-weight: 400; color: var(--muted); white-space: nowrap; }
.uc-fold-body { padding: var(--space-1) var(--space-6) var(--space-5); }
/* 一组折叠条目下面的说明 */
.uc-fold-foot { display: grid; gap: var(--space-1); padding: var(--space-4) var(--space-6); border-top: 1px solid var(--line-soft); font-size: var(--fs-sm); color: var(--muted); }

/* 条款：长文字，行距放宽。编号是条款自己的号（跨小节连着数），所以写在内容里，不用列表自动编号 */
.uc-clauses { display: grid; gap: var(--space-2); font-size: var(--fs-sm); line-height: 1.75; color: var(--ink-secondary); }
.uc-clauses > li { display: flex; gap: var(--space-2); }
.uc-clause-no { flex: none; min-width: 1.75em; color: var(--muted); font-variant-numeric: tabular-nums; }
.uc-clauses b { font-weight: 600; color: var(--ink); }
/* 地址里的 # 指到的那一条（别处的「条款 N」链接点过来）：淡底标出来，让人一眼找到。底色往外多铺一圈，不挤动排版 */
.uc-clauses > li:target { border-radius: var(--radius-xs); background: var(--fill-soft); box-shadow: 0 0 0 6px var(--fill-soft); }

/* 文字页：整页是一篇要从头读、还要能打印的长文（购买须知、豆子说明、服务条款和隐私政策）。
   行宽收到 760（一行 50 个字上下），正文 14 号。里面按文档流从上往下排、不用网格：打印分页时一条一条地断，不会整节挪到下一页 */
.uc-page-text { max-width: 760px; }
.uc-doc { padding: var(--space-8); }
.uc-doc > * + * { margin-top: var(--space-6); }
.uc-doc > .uc-doc-sec { margin-top: var(--space-8); }
.uc-doc-intro { line-height: 1.75; color: var(--ink-secondary); }
/* 目录：两栏，先排满左边一栏再排右边。条目是墨色字，悬停才变深橙 */
.uc-doc-toc { columns: 2; column-gap: var(--space-8); line-height: 2; }
.uc-doc-toc > li { break-inside: avoid; }
.uc-doc-toc a { color: var(--ink); }
.uc-doc-toc a:hover { color: var(--brand-heavy); }
.uc-doc-sec > h2 { margin-bottom: var(--space-3); padding-bottom: var(--space-2); border-bottom: 1px solid var(--line-soft); font-size: var(--fs-h2); line-height: 1.5; font-weight: 600; color: var(--ink); }
.uc-doc .uc-clauses { display: block; font-size: var(--fs-body); }
.uc-doc .uc-clauses > li + li { margin-top: var(--space-3); }
.uc-doc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line-soft); font-size: var(--fs-sm); color: var(--muted); }
/* 协议正文来自审核后的 Markdown，沿用文字页分节；列表和表格保留长文阅读所需的换行与间距。 */
.uc-legal { overflow-wrap: anywhere; line-height: 1.8; }
.uc-legal .uc-doc-sec > * + * { margin-top: var(--space-3); }
.uc-legal ul { padding-left: var(--space-6); list-style: disc; }
.uc-legal li + li { margin-top: var(--space-2); }
.uc-legal .uc-table th, .uc-legal .uc-table td { white-space: normal; vertical-align: top; }

/* 数字：黑体、等宽数字。数字不用宋体 */
.uc-stat-label { font-size: var(--fs-sm); color: var(--muted); }
.uc-stat-value { font-size: var(--fs-num); line-height: 1.25; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--ink); }
.uc-stat-value small { font-size: var(--fs-body); font-weight: 400; color: var(--ink-secondary); }
.uc-stat-hint { font-size: var(--fs-caption); color: var(--muted); }
.uc-meter { height: 6px; border-radius: var(--radius-pill); background: var(--fill-hover); overflow: hidden; }
.uc-meter > i { display: block; height: 100%; border-radius: inherit; background: var(--ink-solid); }
.uc-meter-warn > i { background: var(--warning); }

/* 头像 */
.uc-avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--fill-hover); color: var(--ink-secondary); font-size: var(--fs-body); font-weight: 600; }
.uc-avatar-lg { width: 56px; height: 56px; font-size: var(--fs-h1); }
/* 头像默认中性；开通了会员的账号用浅橙底，和会员等级标签同色 */
.uc-avatar-member { background: var(--brand-soft); color: var(--brand-heavy); }

/* 空、加载、出错 */
.uc-empty { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-10) var(--space-4); text-align: center; color: var(--ink-secondary); }
.uc-empty-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--fill-soft); color: var(--brand-heavy); display: grid; place-items: center; }
.uc-empty-title { color: var(--ink); font-weight: 600; }
.uc-empty > p { word-break: keep-all; overflow-wrap: anywhere; }
.uc-skel { height: 14px; border-radius: var(--radius-xs); background: var(--fill-hover); }

/* 弹窗、轻提示、气泡菜单：浮在页面上的才有阴影。此外有阴影的只有窄屏的侧栏抽屉，和一屏里的主卡片（登录卡片、支付面板） */
.uc-dialog { width: min(420px, 100%); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-float); }
.uc-dialog-title { font-family: var(--font-serif); font-size: var(--fs-h1); line-height: 1.4; font-weight: 600; color: var(--ink); }
.uc-dialog-body { margin-top: var(--space-2); color: var(--ink-secondary); }
.uc-dialog-foot { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-6); }
.uc-toast { display: inline-flex; align-items: center; gap: var(--space-2); padding: 10px var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-pop); font-size: var(--fs-body); }
.uc-toast .uc-ico { color: var(--success-ink); }
.uc-popover { width: 240px; padding: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-pop); }
.uc-popover a, .uc-popover button { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink); text-align: left; cursor: pointer; }
.uc-popover a:hover, .uc-popover button:hover { background: var(--fill-soft); color: var(--brand-heavy); text-decoration: none; }
.uc-popover .is-danger { color: var(--danger-ink); }
.uc-popover hr { height: 1px; margin: 6px var(--space-2); border: 0; background: var(--line); }

/* 可选卡片：套餐、支付方式。选中是墨色粗线 */
.uc-option { position: relative; display: block; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; }
.uc-option:hover { border-color: var(--ink-secondary); }
.uc-option.is-selected { border-color: var(--ink-solid); box-shadow: 0 0 0 1px var(--ink-solid); }
.uc-option.is-disabled { background: var(--fill-soft); border-color: var(--line); color: var(--ink-disabled); cursor: not-allowed; }
.uc-option-check { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border: 1.5px solid var(--border); border-radius: 50%; display: grid; place-items: center; color: transparent; }
.uc-option.is-selected .uc-option-check { border-color: var(--ink-solid); background: var(--ink-solid); color: var(--layout-bg); }
.uc-option-check .uc-ico { width: 12px; height: 12px; stroke-width: 2.4; }
.uc-price { font-size: var(--fs-h1); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.uc-price small { font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }
.uc-price s { font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }
/* 可选卡片用原生单选做（label 里包一个看不见的 input）时：键盘走到它，焦点圈画在整张卡片上；置灰的卡片价格跟着变浅，里面的链接照常能点 */
.uc-option:has(input:focus-visible) { outline: 2px solid var(--focus-color); outline-offset: 3px; }
/* label 里只能放行内元素：标题和价格用 span 写时也各占一行 */
.uc-option > .uc-option-title, .uc-option > .uc-price { display: block; }
.uc-option.is-disabled:hover { border-color: var(--line); }
.uc-option.is-disabled .uc-price, .uc-option.is-disabled .uc-price small, .uc-option.is-disabled .uc-price s { color: var(--ink-disabled); }
.uc-option.is-disabled a { cursor: pointer; }

/* 产品块：产品名用黑体 16，和卡片标题一样 */
.uc-product { display: flex; flex-direction: column; gap: var(--space-3); height: 100%; }
.uc-product-head { display: flex; align-items: center; gap: var(--space-3); }
.uc-product-ico { width: 44px; height: 44px; flex: none; border-radius: var(--radius-lg); background: var(--fill-soft); color: var(--brand-heavy); display: grid; place-items: center; }
.uc-product-name { font-size: var(--fs-h2); font-weight: 600; line-height: 1.5; color: var(--ink); }
.uc-product-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--line-soft); }
/* 入口小链接：产品卡片里的常用入口（开始制图、地址解析…），点了跳到对应产品 */
.uc-linkchips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.uc-linkchip { display: inline-flex; align-items: center; gap: var(--space-1); height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-size: var(--fs-sm); text-decoration: none; }
.uc-linkchip:hover { border-color: var(--brand-heavy); color: var(--brand-heavy); text-decoration: none; }

/* 底部付款条：付款页用。支付面板停在右侧时（宽于 1200）不出现；面板排到套餐下面以后才出现，见响应式一节 */
.uc-paybar { display: none; }

/* ---------- 4b. 付费与运营：只出现在要用户花钱或做下一步的位置 ---------- */

/* 「下一步」：总览最上面只放一条，按优先级取最要紧的那件事；右边一个按钮 */
.uc-next { display: flex; align-items: center; gap: var(--space-3) var(--space-4); padding: 14px var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.uc-next-ico { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--fill-soft); color: var(--ink-secondary); }
.uc-next-body { flex: 1; min-width: 0; }
.uc-next-title { font-weight: 600; line-height: 1.5; color: var(--ink); }
.uc-next-desc { font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-secondary); }
/* 整条一直是白底：状态只用左边小图标的颜色表示，右边的按钮是这一屏唯一的实心按钮 */
.uc-next-warning .uc-next-ico { background: var(--warning-bg); color: var(--warning); }
.uc-next-danger .uc-next-ico { background: var(--danger-bg); color: var(--danger); }
.uc-next-offer .uc-next-ico { background: var(--brand-soft); color: var(--brand-heavy); }
/* 可以关掉的提醒（只有「流量豆快到期」这一种）才带关闭按钮：关掉后这次登录不再出现 */
.uc-next.is-dismissible { position: relative; }
.uc-next-close { flex: none; margin-right: -8px; }

/* 优惠条：后台配的折扣对当前用户生效时才出现，一页一条，放在套餐上面；文字跟着配置走，不写没有的截止时间。
   白底细线，橙色只在开头的标签上 */
.uc-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--space-3); padding: 10px var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); }

/* 套餐选项里的几行字：名称 16、说明 12；推荐角标压在卡片上沿，浅橙底、深橙字、细线，和会员标签一个样子 */
.uc-option-title { font-size: var(--fs-h2); line-height: 1.5; font-weight: 600; color: var(--ink); }
.uc-option-note { display: flex; flex-wrap: wrap; column-gap: var(--space-2); font-size: var(--fs-caption); line-height: 1.5; color: var(--ink-secondary); }
.uc-option.is-disabled .uc-option-title, .uc-option.is-disabled .uc-option-note { color: var(--ink-disabled); }
.uc-option-flag { position: absolute; top: -11px; left: 14px; display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand-line); color: var(--brand-heavy); font-size: var(--fs-caption); font-weight: 600; white-space: nowrap; }
.uc-save { color: var(--brand-heavy); font-weight: 500; white-space: nowrap; }

/* 打勾的权益清单：放在套餐旁边，说清「付了钱能得到什么」 */
.uc-ticks { display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--ink-secondary); }
.uc-ticks > li { display: flex; align-items: flex-start; gap: 6px; line-height: 1.55; }
.uc-ticks .uc-ico { width: 14px; height: 14px; margin-top: 3px; flex: none; color: var(--success-ink); stroke-width: 2.2; }
.uc-home-hero .uc-ticks { gap: var(--space-2); }
.uc-home-hero .uc-ticks > li { line-height: 1.75; }
.uc-ticks-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px var(--space-6); }

/* 支付面板：会员和充值共用。和普通卡片一样白底细线、不加阴影（2026-11-23 定：深线加扩散阴影在白底上发虚，
   面板里的分量只给 28 号的应付金额和墨色支付按钮）；宽屏跟着滚动停在视口里。
   从上到下按付款顺序：买什么、付完得到什么 → 赠送 → 明细 → 应付 → 怎么付 → 支付按钮 → 让人放心的几句话。
   摘要不铺灰底（不用 uc-inset），块与块之间一条浅线 */
.uc-paypanel { border-color: var(--line); box-shadow: none; }
@media (min-width: 1200px) { .uc-paypanel { position: sticky; top: calc(var(--topbar-h) + 16px); } }
.uc-sum { display: grid; gap: var(--space-2); }
.uc-sum > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.uc-sum dt { flex: none; color: var(--ink-secondary); }
.uc-sum dd { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.uc-sum .is-off dd { color: var(--brand-heavy); font-weight: 500; }
.uc-total { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.uc-total-label { padding-bottom: 5px; font-weight: 500; color: var(--ink); }
.uc-total-value { text-align: right; }
.uc-total-num { font-size: var(--fs-num); line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--ink); }
.uc-total-note { font-size: var(--fs-caption); color: var(--ink-secondary); }
.uc-assure { display: grid; gap: var(--space-2); font-size: var(--fs-sm); color: var(--ink-secondary); }
.uc-assure > li { display: flex; align-items: flex-start; gap: var(--space-2); line-height: 1.55; }
.uc-assure .uc-ico { margin-top: 3px; flex: none; color: var(--muted); }
.uc-assure .is-good .uc-ico { color: var(--success-ink); }
.uc-assure .is-warn .uc-ico { color: var(--warning); }

/* 结果页：付完款的这一屏先说结果，再给「去用」的按钮 */
.uc-result { display: grid; justify-items: center; gap: var(--space-2); text-align: center; }
.uc-result-title, .uc-result > p { text-wrap: balance; }
.uc-result-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--success-bg); color: var(--success-ink); }
.uc-result-ico .uc-ico { width: 28px; height: 28px; stroke-width: 2.2; }
.uc-result-ico.is-fail { background: var(--danger-bg); color: var(--danger-ink); }
.uc-result-ico.is-wait { background: var(--warning-bg); color: var(--warning-ink); }
.uc-result-ico.is-idle { background: var(--fill-soft); color: var(--ink-secondary); }
.uc-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-2); }
/* 宽卡片里说明文字不拉满整行；按钮下面的补充说明和按钮隔开一档 */
.uc-result > p { max-width: 600px; }
.uc-result-actions + p { margin-top: var(--space-2); }

/* 三步说明：邀请页用，横排三列 */
.uc-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); counter-reset: flow; }
.uc-flow > li { position: relative; padding-left: 36px; counter-increment: flow; }
.uc-flow > li::before { content: counter(flow); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-solid); color: var(--layout-bg); font-size: var(--fs-caption); font-weight: 600; }
.uc-flow-title { font-weight: 600; line-height: 24px; color: var(--ink); }
.uc-flow-desc { margin-top: 2px; font-size: var(--fs-sm); color: var(--ink-secondary); }
/* 竖排的步骤：窄卡片里放不下三列时用（桌面端授权完成页） */
.uc-flow-col { grid-template-columns: minmax(0, 1fr); }
/* 说明图：步骤里配的截图，细线描边。横长条的图（任务栏）用 uc-shot-strip：固定高度，只看靠右的一段 */
.uc-shot { width: 100%; height: auto; margin-top: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.uc-shot-strip { height: 64px; object-fit: cover; object-position: right center; }

@media (max-width: 767.98px) {
  .uc-next { flex-wrap: wrap; padding: 14px var(--space-4); }
  .uc-next-body { flex-basis: calc(100% - 52px); }
  .uc-next > .uc-btn { width: 100%; }
  .uc-next.is-dismissible .uc-next-body { flex-basis: calc(100% - 52px - 32px); margin-right: var(--space-8); }
  .uc-next-close { position: absolute; top: 6px; right: 6px; margin-right: 0; }
  .uc-result-actions { width: 100%; }
  .uc-result-actions > .uc-btn { width: 100%; }
  .uc-flow { grid-template-columns: minmax(0, 1fr); }
  .uc-ticks-2 { grid-template-columns: minmax(0, 1fr); }
  .uc-hero-title { font-size: var(--fs-num); }
  .uc-section { padding-block: var(--space-6); }
}

/* ---------- 4c. 付费页的选项和支付面板（spec 20261123-membership-page-ui-optimize） ---------- */

/* 分段切换写成 label + 原生单选（会员的选等级、充值的选类型）：单选框用 uc-sr 藏起来，
   选中的样子和 aria-checked 写在同一条规则里（见上面分段切换）；键盘焦点画在整个分段项上，往里画，不被轨道裁掉 */
.uc-seg-item:has(> input:focus-visible) { outline: 2px solid var(--focus-color); outline-offset: -2px; }
/* 分段项里的小记号：「当前」用深橙小字；这个账号现在整档不能买的那一档带一把锁 */
.uc-seg-mark { font-size: var(--fs-caption); font-weight: 500; color: var(--brand-heavy); }
.uc-seg-lock { display: inline-flex; color: var(--muted); }
.uc-seg-lock .uc-ico { width: 14px; height: 14px; }

/* 时长卡底部的赠送：上面一条浅线，12 号辅助色，每样一行 */
.uc-option-gift { display: block; margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--line-soft); font-size: var(--fs-caption); line-height: 1.5; color: var(--muted); }
.uc-option-gift > span { display: block; }
.uc-option.is-disabled .uc-option-gift { color: var(--ink-disabled); }

/* 支付面板里的「随单赠送」：一小块，左对齐；小标题右边写多久到账 */
.uc-giftbox { display: grid; gap: 6px; padding-top: var(--space-4); border-top: 1px solid var(--line-soft); font-size: var(--fs-sm); }
.uc-giftbox-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); font-weight: 500; color: var(--ink); }
.uc-giftbox-head > span { display: inline-flex; align-items: center; gap: 6px; }
.uc-giftbox-head .uc-ico { color: var(--brand-heavy); }
.uc-giftbox-head small { font-size: var(--fs-caption); font-weight: 400; color: var(--muted); }
.uc-giftbox li { display: flex; justify-content: space-between; gap: var(--space-3); color: var(--ink-secondary); font-variant-numeric: tabular-nums; }
/* 明细（原价 / 折扣、其中加赠 / 充值后余额）：不铺灰底，名字辅助色、数字墨色，上面一条浅线 */
.uc-sum-lines { padding-top: var(--space-4); border-top: 1px solid var(--line-soft); }
.uc-sum-lines dt { color: var(--muted); }
/* 「应付」和金额按文字基线对齐，上面一条浅线 */
.uc-total.is-line { align-items: baseline; padding-top: var(--space-4); border-top: 1px solid var(--line-soft); }
.uc-total.is-line .uc-total-label { padding-bottom: 0; }
/* 面板最下面让人放心的几句话：辅助色，行距收一点；条款链接合成最后一行 */
.uc-paypanel .uc-assure { gap: 6px; color: var(--muted); }
.uc-assure-foot { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- 5. 响应式 ---------- */
.uc-overlay { display: none; }
@media (max-width: 1199.98px) {
  .uc-split { grid-template-columns: minmax(0, 1fr); }
  .uc-grid[data-md] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-home-visual { justify-items: center; }
  .uc-home-scene { justify-self: center; width: min(100%, 520px); }
  /* 付款页：支付面板排到套餐下面以后，屏幕底部固定一条「买什么 + 金额 + 去支付」，不用翻到下面才能付款。外边距抵掉内容区的内边距，让它横向铺满 */
  .uc-paybar { position: sticky; bottom: 0; z-index: var(--z-paybar); display: flex; align-items: center; gap: var(--space-3); margin: var(--space-4) -32px -56px; padding: var(--space-3) var(--space-8); background: var(--surface); border-top: 1px solid var(--line); }
  /* 这一条会盖住屏幕最下面一截：键盘焦点、脚本滚到某一块时让出这一截，不落在它后面 */
  html:has(.uc-paybar:not([hidden])) { scroll-padding-bottom: 96px; }
  /* 列多的表：次要的列收起来，标题格里那行说明顶上 */
  .uc-table th.is-optional, .uc-table td.is-optional { display: none; }
  .uc-table .uc-cell-sub.is-compact { display: block; }
}
@media (max-width: 991.98px) {
  .uc-shell { grid-template-columns: minmax(0, 1fr); }
  .uc-side, .uc-shell::before { display: none; }
  .uc-topbar .uc-menu-btn { display: inline-grid; }
  .uc-topbar { padding: 0 var(--space-3); }
  .uc-topbar-link.is-wide { display: none; }
  .uc-main { padding: var(--space-5) var(--space-4) var(--space-10); }
  .uc-paybar { margin: var(--space-4) -16px -40px; padding: var(--space-3) var(--space-4); }
  /* 侧栏在窄屏变成抽屉 */
  .drawer-open .uc-side { display: flex; position: fixed; top: 0; left: 0; bottom: 0; z-index: var(--z-drawer); width: 280px; height: auto; background: var(--layout-bg); box-shadow: var(--shadow-float); }
  .drawer-open .uc-overlay { display: block; position: fixed; inset: 0; z-index: var(--z-overlay); background: var(--overlay); }
}
@media (max-width: 767.98px) {
  .uc-brand-sub { display: none; }
  .uc-grid, .uc-grid[data-md] { grid-template-columns: minmax(0, 1fr); }
  .uc-grid[data-sm="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-desc { grid-template-columns: minmax(0, 1fr); }
  .uc-card { padding: var(--space-4); }
  .uc-card-flush { padding: 0; }
  .uc-card-roomy { padding-block: var(--space-6); }
  .uc-card-flush > .uc-card-head { padding: var(--space-4) var(--space-4) var(--space-2); }
  .uc-page-head { flex-direction: column; align-items: stretch; margin-bottom: var(--space-5); }
  .uc-page-head > .uc-fact { align-self: flex-start; }
  /* 长内容的输入框 + 按钮（邀请链接）：手机上上下排，按钮占满一行 */
  .uc-inputrow-stack { grid-template-columns: minmax(0, 1fr); }
  .uc-door-head { height: 60px; padding: 0 var(--space-4); }
  .uc-door-main.is-plain > .uc-page { padding: 0 var(--space-4) var(--space-6); }
  .uc-home-hero { padding-block: var(--space-6); }
  .uc-home-scene { width: min(100%, 420px); }
  .uc-auth-card { padding: var(--space-6) var(--space-5); }
  .uc-rows > li { flex-wrap: wrap; }
  .uc-rows > li > .uc-row-main { flex-basis: calc(100% - 56px); }
  /* 表格在窄屏一行一张卡：每格前面带上列名 */
  .uc-table-stack thead { display: none; }
  .uc-table-stack, .uc-table-stack tbody, .uc-table-stack tr, .uc-table-stack td { display: block; width: 100%; }
  .uc-table-stack tr { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line-soft); }
  .uc-table-stack tbody tr:last-child { border-bottom: 0; }
  .uc-table-stack td, .uc-table-stack td:first-child, .uc-table-stack td:last-child { height: auto; padding: 3px 0; border: 0; display: flex; justify-content: space-between; gap: var(--space-4); text-align: right; }
  .uc-table-stack td::before { content: attr(data-label); flex: none; color: var(--muted); font-weight: 400; }
  .uc-table-stack td[data-label=""]::before { display: none; }
  .uc-table-stack td.is-lead { justify-content: flex-start; text-align: left; font-weight: 600; padding-bottom: 6px; }
  .uc-table-stack td.is-lead::before { display: none; }
  .uc-table-stack td.is-actions { justify-content: flex-start; align-items: center; gap: var(--space-3); padding-top: var(--space-2); }
  .uc-table-stack .uc-cell-sub { display: inline; margin-left: 6px; }
  /* 标题格靠左，里面的补充说明是整句话：另起一行（别的格子靠右，说明跟在值后面） */
  .uc-table-stack td.is-lead .uc-cell-sub:not(.is-compact) { display: block; margin-left: 0; }
  /* 别的格子里的说明也是整句话的（奖励没发放的原因）：标 is-line，同样另起一行，跟着值靠右。
     不标的跟在值后面，长一点就会从句子中间折到下一行 */
  .uc-table-stack .uc-cell-sub.is-line { display: block; margin-left: 0; }
  /* 一行一张卡的时候每一列都在：中等宽度收起来的列放回来，顶替它们的那行说明不显示 */
  .uc-table-stack td.is-optional { display: flex; }
  .uc-table-stack .uc-cell-sub.is-compact { display: none; }
  /* 空格子不占位置（比如这一行没有可点的操作） */
  .uc-table-stack td:empty { display: none; }
  .uc-pager { padding: var(--space-3) var(--space-4); }
  .uc-table-stack tbody + tbody tr:first-child { border-top: 1px solid var(--line-soft); }
  .uc-table-stack tbody + tbody tr:first-child td { border-top: 0; }
  .uc-fold > summary { padding-left: var(--space-4); padding-right: var(--space-4); }
  .uc-fold-body { padding-left: var(--space-4); padding-right: var(--space-4); }
  .uc-fold-foot { padding-left: var(--space-4); padding-right: var(--space-4); }
  .uc-doc-toc { columns: 1; }
  .uc-ticks-2 { grid-template-columns: minmax(0, 1fr); }
  .uc-hide-sm { display: none; }
}
@media (min-width: 768px) {
  .uc-show-sm { display: none; }
}

/* ---------- 6. 筛选条 ---------- */
/* 电脑宽度一行；窄了折成两列，再窄一列。按钮组始终在最后 */
.uc-filterbar { display: grid; gap: var(--space-3); align-items: end; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr) auto; }
.uc-inputpair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--space-2); align-items: center; }
/* 筛选条里的搜索框和旁边的下拉框、日期框用同一个形状 */
.uc-filterbar .uc-search > .uc-input { border-radius: var(--radius-control); }
@media (max-width: 1199.98px) { .uc-filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .uc-filterbar { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 7. 行为 ---------- */
/* 设计稿是静态的，这一节补会动的部分。什么时候开、什么时候关由 uc.js 管，这里只写开着和关着各是什么样 */

/* hidden 属性要压得过组件自己写的 display：优先级比单个类高一档，又排在后面 */
:root [hidden] { display: none; }

/* 图标底图：外壳在页面开头放一次，只供引用，不占地方 */
.uc-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 跳到正文：键盘用户按第一下 Tab 才出现 */
.uc-skip { position: absolute; top: var(--space-2); left: var(--space-2); z-index: var(--z-toast); display: inline-flex; align-items: center; height: var(--control-h); padding: 0 var(--space-4); border-radius: var(--radius-pill); background: var(--action-primary-bg); color: var(--action-primary-ink); font-weight: 600; transform: translateY(-200%); }
.uc-skip:focus { transform: none; text-decoration: none; }

/* 头像是图片时（微信头像）：裁成圆的 */
img.uc-avatar { object-fit: cover; }

/* 按钮加载中：圈转起来。期间按钮是禁用的，但保留原来的颜色，不变灰 */
@keyframes uc-spin { to { transform: rotate(360deg); } }
.uc-btn.is-loading { cursor: progress; }
.uc-btn.is-loading::before { animation: uc-spin .8s linear infinite; }

/* 去别的产品的入口点过以后的几秒（脚本加 is-launching，到时间拿掉）：变灰，悬停也不变回来，免得连点开出好几个窗口。
   只管链接形的入口（入口小链接、文字链接）；按钮形的入口用上面的加载中。
   前面带元素名，权重比 .uc-linkchip 高一档；悬停那一项比 .uc-linkchip:hover 高一档，所以不靠先后顺序 */
a.is-launching, a.is-launching:hover { border-color: var(--line); color: var(--ink-disabled); text-decoration: none; cursor: progress; }

/* 下拉菜单：容器 uc-dropdown 里放一个触发按钮和一个 uc-popover。菜单默认在按钮下方、右边对齐 */
.uc-dropdown { position: relative; display: inline-flex; }
.uc-dropdown > .uc-popover { position: absolute; top: calc(100% + var(--space-2)); right: 0; z-index: var(--z-pop); }
.uc-dropdown.is-start > .uc-popover { right: auto; left: 0; }
/* 顶栏链接和侧栏导航项写成 button 时（点了是开菜单或做一件事，不是去另一页）：去掉浏览器自带的边框和底色 */
button.uc-topbar-link, button.uc-nav-item { border: 0; background: none; cursor: pointer; }
button.uc-nav-item { width: 100%; text-align: left; }
/* 菜单开着时，触发按钮保持悬停的样子 */
.uc-topbar-link[aria-expanded="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.uc-iconbtn[aria-expanded="true"], .uc-account[aria-expanded="true"] { background: var(--fill-soft); }
/* 侧栏底部的账号块：菜单向上开，和账号块一样宽 */
.uc-dropdown.is-up { display: block; }
.uc-dropdown.is-up > .uc-popover { top: auto; bottom: calc(100% + var(--space-2)); left: 0; right: 0; width: auto; }
/* 菜单顶上的一行：名字和会员等级 */
.uc-popover-head { padding: var(--space-2) var(--space-3); color: var(--muted); font-size: var(--fs-caption); line-height: 1.5; }
.uc-popover-head b { display: block; overflow: hidden; color: var(--ink); font-size: var(--fs-body); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

/* 对话框：用浏览器自带的 dialog 元素，后面的遮罩是它的 ::backdrop */
dialog.uc-dialog { max-width: calc(100vw - var(--space-8)); color: var(--ink); }
dialog.uc-dialog::backdrop { background: var(--overlay); }
/* 输入框直接放在框里时（dtbPrompt）和上面的文字隔开；放在表单里的由表单自己排 */
.uc-dialog > .uc-input { margin-top: var(--space-3); }
/* 三个按钮时竖着排：主按钮在上，取消在最下 */
.uc-dialog-foot.is-stack { flex-direction: column; align-items: stretch; }
/* 写在页面里的对话框（带 data-uc-dialog，由 uc.js 开关）：没打开时不占地方。很老的浏览器不认识 dialog 元素，要靠这一条藏起来 */
dialog.uc-dialog:not([open]) { display: none; }
/* 框里放表单：和标题（或说明）隔开；按钮那一行是表单的最后一项，表单自己的间距已经算进去了，只补差的那一点 */
.uc-dialog > .uc-form { margin-top: var(--space-4); }
.uc-dialog > .uc-form > .uc-dialog-foot { margin-top: var(--space-2); }

/* 轻提示出现的位置：顶栏下方正中，新的排在下面；容器本身不挡点击 */
.uc-toasts { position: fixed; top: calc(var(--topbar-h) + var(--space-3)); left: 50%; z-index: var(--z-toast); display: grid; justify-items: center; gap: var(--space-2); width: max-content; max-width: calc(100vw - var(--space-8)); transform: translateX(-50%); pointer-events: none; }
.uc-toasts > .uc-toast { pointer-events: auto; }
.uc-toast.is-danger .uc-ico { color: var(--danger); }
.uc-toast.is-info .uc-ico { color: var(--info); }

/* 服务器带回来的整页提示：排在正文上面，一条一行 */
.uc-flash { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
/* 门面外壳里排在顶栏下面、居中；一张卡片的页面上和卡片（.uc-auth）一样宽，上下对齐 */
.uc-door > .uc-flash { width: min(560px, calc(100% - var(--space-8))); margin: var(--space-4) auto 0; }
.uc-door > .uc-flash.is-narrow { width: min(420px, calc(100% - var(--space-8))); }
/* 两栏的门面（登录页）：宽屏上提示条的外框和正文一样宽、两边留白一样，提示条靠右、和卡片一样宽，正好在卡片的正上方。
   排在 is-narrow 那条后面：两条一样重，靠先后盖过去 */
@media (min-width: 992px) {
  .uc-door > .uc-flash.is-split { width: min(1200px, 100%); padding: 0 var(--space-8); justify-items: end; }
  .uc-door > .uc-flash.is-split > .uc-alert { width: min(420px, 100%); }
}
/* 提示条右边的关闭键：小一号，不把提示条撑高 */
.uc-alert > .uc-iconbtn { flex: none; width: 24px; height: 24px; margin: -1px -4px -1px 0; }

/* 顶栏是粘在上面的：跳到页面里的某一块（地址带 # 的链接、脚本滚过去、键盘焦点移过去）时，停在顶栏下面，不被顶栏盖住 */
html { scroll-padding-top: calc(var(--topbar-h) + var(--space-4)); }

/* 页面标题区放在 uc-stack 里时，和下一块的距离由 stack 给，自己不再留下边距 */
.uc-stack > .uc-page-head { margin-bottom: 0; }

/* 抽屉里的关闭键：只在窄屏、抽屉打开时出现 */
.uc-side-close { display: none; }
@media (max-width: 991.98px) {
  /* 顶栏的「产品中心」在窄屏不显示，连外面的容器一起收掉，不留空隙 */
  .uc-dropdown.is-wide { display: none; }
  .drawer-open .uc-side-close { display: inline-grid; flex: none; align-self: flex-end; margin-bottom: var(--space-2); }
  /* 抽屉开着时，后面的页面不跟着滚 */
  .drawer-open body { overflow: hidden; }
}

/* 系统设了「减少动态效果」：圈不转，颜色不做过渡，登录页那幅画不动（指针停在正北）。
   画的那一条靠「两个类、又排在后面」盖过前面会动的规则，所以会动的规则只写一个类、写在这一块前面 */
@media (prefers-reduced-motion: reduce) {
  .uc-btn { transition: none; }
  .uc-btn.is-loading::before { animation: none; }
  .uc-fold > summary > .uc-ico, .uc-qa > summary > .uc-ico { transition: none; }
  .uc-scene .uc-scene-art * { animation: none; }
}

/* ---------- 8. 打印 ---------- */
/* 只印正文。外壳上的东西（顶栏、侧栏、整页提示、轻提示）和标了 uc-noprint 的不印；正文占满纸宽，文字页的卡片去掉边框和底色。
   纸比 768 窄，打印时手机那一档的规则也在生效，所以目录要在这里改回两栏。
   这一节必须排在最后：样式表不写 !important，靠先后顺序盖过前面的规则，选择器也要写得和被盖的那条一样重
   （抽屉开着时的那几条因此单独列出来） */
@media print {
  body { background: none; }
  .drawer-open body { overflow: visible; }
  .uc-topbar, .uc-side, .drawer-open .uc-side, .uc-shell::before, .uc-overlay, .drawer-open .uc-overlay, .uc-skip, .uc-toasts, .uc-flash, .uc-noprint { display: none; }
  .uc-shell { display: block; min-height: 0; }
  .uc-main { padding: 0; }
  .uc-page, .uc-page-wide, .uc-page-text { max-width: none; }
  .uc-doc { padding: 0; border: 0; background: none; }
  .uc-doc-toc { columns: 2; }
  .uc-doc-sec > h2 { break-after: avoid; }
  .uc-clauses > li { break-inside: avoid; }
}
