/* =========================================================
   羽笔 YuBi × 复源七号站 — 前台样式
   视觉方向：macOS / Apple 风。系统字体、毛玻璃、大圆角、克制的蓝。
   ========================================================= */

:root {
  --paper: #f5f5f7;          /* 页面底色 */
  --paper-2: #ffffff;        /* 卡片 / 面板 */
  --paper-3: #f0f0f3;        /* 次级填充 */
  --fill: rgba(120, 120, 128, .12);   /* 控件填充（Apple systemFill） */
  --fill-2: rgba(120, 120, 128, .08);
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .14);
  --accent: #0071e3;
  --accent-2: #0077ed;
  --accent-soft: rgba(0, 113, 227, .09);
  --indigo: #5e5ce6;
  --seal: #f56300;
  --gold: #b07d1c;
  --ok: #248a3d;
  --warn: #b25000;
  --err: #d70015;
  --ins: rgba(52, 199, 89, .2);
  --del: rgba(255, 59, 48, .14);
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(0, 0, 0, .06);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 24px rgba(0, 0, 0, .06);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .04), 0 24px 64px rgba(0, 0, 0, .12);
  --radius: 14px;
  --radius-lg: 22px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --serif: var(--display);   /* 旧模板里的 serif 一律改为系统无衬线 */
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.25, .1, .25, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #000000; --paper-2: #1c1c1e; --paper-3: #2c2c2e;
    --fill: rgba(120, 120, 128, .24); --fill-2: rgba(120, 120, 128, .16);
    --ink: #f5f5f7; --ink-2: #d2d2d7; --ink-3: #8e8e93;
    --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .18);
    --accent: #0a84ff; --accent-2: #409cff; --accent-soft: rgba(10, 132, 255, .16);
    --indigo: #7d7aff; --seal: #ff9f0a; --gold: #e0b052;
    --ok: #30d158; --warn: #ff9f0a; --err: #ff453a;
    --ins: rgba(48, 209, 88, .22); --del: rgba(255, 69, 58, .2);
    --glass: rgba(28, 28, 30, .72); --glass-line: rgba(255, 255, 255, .08);
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 28px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #000000; --paper-2: #1c1c1e; --paper-3: #2c2c2e;
  --fill: rgba(120, 120, 128, .24); --fill-2: rgba(120, 120, 128, .16);
  --ink: #f5f5f7; --ink-2: #d2d2d7; --ink-3: #8e8e93;
  --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .18);
  --accent: #0a84ff; --accent-2: #409cff; --accent-soft: rgba(10, 132, 255, .16);
  --indigo: #7d7aff; --seal: #ff9f0a; --gold: #e0b052;
  --ok: #30d158; --warn: #ff9f0a; --err: #ff453a;
  --ins: rgba(48, 209, 88, .22); --del: rgba(255, 69, 58, .2);
  --glass: rgba(28, 28, 30, .72); --glass-line: rgba(255, 255, 255, .08);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 28px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.65 var(--sans);
  letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.btn:hover, .nav a:hover, .brand:hover, .menu-pop a:hover, .uc-nav a:hover, .feather-chip:hover, .footer-links a:hover, .tabs a:hover, .adm-side a:hover, .cmp a:hover { text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
small, .muted { color: var(--ink-3); }
.serif { font-family: var(--display); }
.num { font-variant-numeric: tabular-nums; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 820px; }
.hide, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- 顶栏（毛玻璃） ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid var(--glass-line);
}
.topbar .container { display: flex; align-items: center; height: 56px; gap: 22px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; align-items: center; }
.nav a { white-space: nowrap; flex: none; }
.nav-more { position: relative; flex: none; }
.nav-more-btn { border: 0; background: none; font: inherit; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.nav-more-btn:hover, .nav-more.open .nav-more-btn { color: var(--ink); background: var(--fill-2); }
.nav-more.has-active .nav-more-btn { color: var(--ink); font-weight: 500; }
.nav-more-pop { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 150px; background: var(--glass); backdrop-filter: saturate(1.8) blur(24px); -webkit-backdrop-filter: saturate(1.8) blur(24px); border-radius: 14px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); padding: 6px; flex-direction: column; z-index: 60; }
.nav-more.open .nav-more-pop { display: flex; }
.nav-more-pop a { border-radius: 9px; padding: 8px 12px; }
.nav a { color: var(--ink-2); padding: 6px 12px; border-radius: 999px; font-size: 14px; transition: background .2s, color .2s; display: inline-flex; align-items: center; gap: 6px; }
.nav a:hover { color: var(--ink); background: var(--fill-2); }
.nav a.active { color: var(--ink); background: var(--fill); font-weight: 500; }
.nav a .new { font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 5px; background: linear-gradient(135deg, var(--accent), var(--indigo)); color: #fff; font-weight: 600; letter-spacing: .02em; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.feather-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 9px; border-radius: 999px;
  background: var(--fill-2); color: var(--ink); font-size: 13px; font-weight: 500;
}
.feather-chip svg { width: 15px; height: 15px; color: var(--accent); }
.feather-chip:hover { background: var(--fill); color: var(--ink); }
.vip-badge {
  display: inline-block; font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: 6px; font-weight: 600;
  background: linear-gradient(135deg, #e3b55b, #b07d1c); color: #fff; vertical-align: middle;
}
.menu { position: relative; }
.menu-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; color: var(--ink-2); font: inherit; padding: 2px; border-radius: 50%; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #6e8efb, #5e5ce6); color: #fff; font-size: 13px; font-weight: 600;
}
.avatar-preset { color: #fff; }
.avatar-preset svg { width: 55%; height: 55%; stroke: currentColor; fill: none; stroke-width: 1.8; }
.avatar-img { overflow: hidden; background: var(--fill); }
.avatar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-lg { width: 52px; height: 52px; font-size: 20px; margin-bottom: 10px; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 6px;
  background: var(--glass); backdrop-filter: saturate(1.8) blur(24px); -webkit-backdrop-filter: saturate(1.8) blur(24px);
  border: 1px solid var(--glass-line); border-radius: 14px; box-shadow: var(--shadow-lg);
  display: none; transform-origin: top right; animation: popIn .16s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: scale(.96); } }
.menu.open .menu-pop { display: block; }
.menu-pop a, .menu-pop button {
  display: block; width: 100%; text-align: left; padding: 7px 12px; border-radius: 8px; color: var(--ink);
  font: inherit; font-size: 14px; background: none; border: 0; cursor: pointer;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--accent); color: #fff; }
.menu-pop .menu-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 12.5px; color: var(--ink-3); word-break: break-all; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 6px; cursor: pointer; border-radius: 8px; }
.theme-toggle { background: none; border: 0; color: var(--ink-2); cursor: pointer; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.theme-toggle:hover { color: var(--ink); background: var(--fill-2); }
.theme-toggle svg { width: 17px; height: 17px; }

/* ---------- 按钮 & 表单 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--fill); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .2s var(--ease), color .2s, transform .1s, box-shadow .2s, opacity .2s; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: color-mix(in srgb, var(--fill) 100%, var(--ink) 6%); color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-seal { background: linear-gradient(135deg, var(--accent), var(--indigo)); color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-seal:hover { color: #fff; filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn-dark { background: var(--ink); color: var(--paper-2); }
.btn-dark:hover { background: color-mix(in srgb, var(--ink) 85%, var(--paper)); color: var(--paper-2); }
.btn-sm { height: 28px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 46px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

.field { margin-bottom: 16px; }
.field > label, .label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--paper-2); color: var(--ink); font: inherit; font-size: 14.5px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.select { appearance: none; -webkit-appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.textarea { height: auto; padding: 9px 12px; resize: vertical; line-height: 1.65; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; min-width: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.help { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

/* ---------- 卡片 & 通用 ---------- */
.card {
  background: var(--paper-2); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow);
}
.card-title { font-size: 17px; margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title small { font-family: var(--sans); font-size: 13px; font-weight: normal; }
.badge { display: inline-block; font-size: 11.5px; line-height: 1; padding: 4px 8px; border-radius: 6px; background: var(--fill); color: var(--ink-2); font-weight: 500; }
.badge-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.badge-warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.badge-err { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.empty { text-align: center; color: var(--ink-3); padding: 48px 12px; font-size: 14px; }
.empty svg { width: 40px; height: 40px; opacity: .5; display: block; margin: 0 auto 10px; }
.notice-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px;
  background: var(--accent-soft); color: var(--ink-2); font-size: 14px;
}
.notice-bar strong { color: var(--accent); font-weight: 600; }
.notice-bar a { margin-left: auto; white-space: nowrap; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--ink-3); font-weight: 500; font-size: 12.5px; }
.table td.wrap { white-space: normal; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--fill-2); }
.plus { color: var(--ok); }
.minus { color: var(--err); }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 32px; height: 32px; display: grid; place-items: center; padding: 0 10px; border-radius: 999px; background: var(--fill-2); color: var(--ink-2); font-size: 13px; }
.pager .cur { background: var(--accent); color: #fff; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 28px 0 32px; color: var(--ink-3); font-size: 12.5px; }
.footer .container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.footer .beian a { color: var(--ink-3); }
.footer .colophon { color: var(--ink-2); font-weight: 500; }

/* ---------- 首页 ---------- */
.hero { padding: 88px 0 36px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -260px; width: 1100px; height: 700px; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
              radial-gradient(closest-side at 70% 60%, color-mix(in srgb, var(--indigo) 14%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero .container { display: block; }
/* 网站声明（首页首屏）：一行胶囊 + 点开小弹层 */
.site-notice { position: relative; display: flex; justify-content: center; margin: 0 auto 18px; z-index: 5; }
/* 开启声明时替换眉标：沿用眉标的淡蓝胶囊样式 */
.site-notice-pill { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 4px 5px 10px; border-radius: 999px; border: 0; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--accent); background: var(--accent-soft); transition: box-shadow .15s, background .15s; }
.site-notice-pill:hover, .site-notice-pill[aria-expanded="true"] { background: color-mix(in srgb, var(--accent-soft) 100%, var(--accent) 8%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.site-notice-ic { flex: none; width: 18px; height: 18px; display: grid; place-items: center; color: var(--accent); }
.site-notice-ic svg { width: 15px; height: 15px; }
.site-notice-txt { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-notice-more { flex: none; color: var(--accent); font-weight: 700; padding: 0 8px 0 10px; border-left: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.site-notice-pop { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: min(440px, calc(100vw - 32px)); text-align: left;
  background: var(--paper-2); border-radius: 16px; padding: 16px 18px 18px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); animation: noticeIn .18s var(--ease); }
@keyframes noticeIn { from { opacity: 0; transform: translateX(-50%) translateY(-4px); } }
.site-notice-pop-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.site-notice-pop-hd .site-notice-ic { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); }
.site-notice-pop-hd b { flex: 1; font-size: 15px; color: var(--ink); }
.site-notice-x { background: var(--fill); border: 0; width: 24px; height: 24px; border-radius: 50%; font-size: 16px; line-height: 1; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.site-notice-pop p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
@media (max-width: 600px) { .site-notice-pill { font-size: 12.5px; } .site-notice-more span { display: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 18px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); }
.eyebrow::before { content: none; }
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); line-height: 1.06; letter-spacing: -.03em; margin: 0 auto 22px; font-weight: 700; max-width: 14em; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent) 10%, var(--indigo) 60%, #bf5af2 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); max-width: 34em; margin: 0 auto 30px; line-height: 1.55; letter-spacing: -.01em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--ink-3); display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-note span::before { content: "✓"; color: var(--ok); margin-right: 5px; font-weight: 700; }
.hero-svc { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 18px; padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--lv) 10%, transparent); font-size: 13px; color: var(--ink-2); }
.hero-svc i { margin-right: 2px; }
.hero-svc b { color: var(--lv); font-weight: 600; }

/* 窗口（macOS 窗口外框） */
.win { background: var(--paper-2); border-radius: 14px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); overflow: hidden; text-align: left; }
.win-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: color-mix(in srgb, var(--paper-3) 70%, var(--paper-2)); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); position: relative; }
.win-bar .tl { display: flex; gap: 8px; }
.win-bar .tl i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); }
.win-bar .tl i:nth-child(2) { background: #febc2e; }
.win-bar .tl i:nth-child(3) { background: #28c840; }
.win-bar .ttl { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.hero-win { max-width: 1000px; margin: 56px auto 0; }
.demo { display: grid; grid-template-columns: 210px 1fr 260px; min-height: 380px; font-size: 13.5px; }
.demo-side { background: var(--paper-3); border-right: 1px solid var(--line); padding: 14px 10px; }
.demo-side .it { padding: 7px 10px; border-radius: 8px; color: var(--ink-2); margin-bottom: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.demo-side .it.on { background: var(--accent); color: #fff; }
.demo-side .cap { font-size: 11px; color: var(--ink-3); font-weight: 600; padding: 8px 10px 4px; letter-spacing: .02em; }
.demo-main { padding: 26px 34px; line-height: 1.85; }
.demo-main h4 { font-size: 22px; margin-bottom: 14px; letter-spacing: -.02em; }
.demo-main h5 { font-size: 15px; margin: 16px 0 6px; }
.demo-main p { color: var(--ink-2); margin: 0 0 8px; }
.demo-main mark { background: color-mix(in srgb, var(--accent) 18%, transparent); color: inherit; border-radius: 3px; padding: 1px 0; }
.demo-pop { display: inline-flex; gap: 2px; padding: 4px; border-radius: 10px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); margin: 6px 0 10px; }
.demo-pop span { padding: 3px 9px; border-radius: 7px; font-size: 12.5px; color: var(--ink); }
.demo-pop span:first-child { background: var(--accent); color: #fff; }
.demo-right { border-left: 1px solid var(--line); padding: 16px 14px; background: color-mix(in srgb, var(--paper-3) 40%, var(--paper-2)); }
.demo-right .seg-mini { display: flex; background: var(--fill); border-radius: 8px; padding: 2px; margin-bottom: 14px; }
.demo-right .seg-mini span { flex: 1; text-align: center; font-size: 12px; padding: 4px 0; border-radius: 6px; color: var(--ink-2); }
.demo-right .seg-mini span.on { background: var(--paper-2); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-weight: 500; }
.demo-sec { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); margin-bottom: 6px; font-size: 12.5px; }
.demo-sec b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; background: var(--fill); color: var(--ink-2); flex: none; }
.demo-sec.done b { background: var(--ok); color: #fff; }
.demo-sec.run b { background: var(--accent); color: #fff; }
.demo-sec em { margin-left: auto; font-style: normal; color: var(--ink-3); font-size: 11.5px; }

.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.025em; line-height: 1.1; }
.section-head p { color: var(--ink-2); font-size: 17px; }
.section-alt { background: var(--paper-2); }

/* Bento 双产品卡 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-card { position: relative; border-radius: 28px; padding: 40px 36px 0; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); min-height: 420px; display: flex; flex-direction: column; }
.section-alt .duo-card { background: var(--paper); }
.duo-card .kick { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.duo-card.alt .kick { color: var(--indigo); }
.duo-card h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em; line-height: 1.12; margin-bottom: 12px; }
.duo-card p { color: var(--ink-2); font-size: 15.5px; max-width: 26em; }
.duo-card .go { display: inline-flex; gap: 14px; align-items: center; margin: 6px 0 26px; font-size: 15px; }
.duo-card .go a:not(.btn) { font-weight: 500; }
.duo-art { margin-top: auto; margin-left: -6px; margin-right: -6px; }
.duo-art .win { border-radius: 12px 12px 0 0; }
.mini-body { padding: 16px 18px 20px; font-size: 13px; line-height: 1.8; color: var(--ink-2); min-height: 140px; }
.mini-body del { color: var(--err); background: var(--del); text-decoration-color: var(--err); border-radius: 3px; }
.mini-body ins { color: inherit; background: var(--ins); text-decoration: none; border-radius: 3px; }
.mini-body .li { display: flex; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); }
.mini-body .li:last-child { border-bottom: 0; }
.mini-body .li i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.mini-body .li i.run { background: var(--accent); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* 模板墙 */
.tpl-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tpl-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: var(--paper-2); box-shadow: var(--shadow); color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s; }
.section-alt .tpl-tile { background: var(--paper); }
.tpl-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.tpl-tile .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--indigo)); color: #fff; margin-bottom: 6px; }
.tpl-tile .ic svg { width: 19px; height: 19px; }
.tpl-tile b { font-size: 15px; font-weight: 600; }
.tpl-tile span { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: 22px; background: var(--paper-2); box-shadow: var(--shadow); }
.section-alt .step { background: var(--paper); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper-2); font-size: 13px; font-weight: 700; }
.step h3 { margin: 14px 0 6px; font-size: 18px; }
.step p { color: var(--ink-2); margin: 0; font-size: 14.5px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--paper-2); padding: 26px 24px; border-radius: 22px; box-shadow: var(--shadow); }
.section-alt .feature { background: var(--paper); }
.feature .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); margin-bottom: 14px; }
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: 14px; margin: 0; }

.stats-row { display: flex; justify-content: center; gap: 72px; margin-top: 48px; flex-wrap: wrap; }
.stat-big { text-align: center; }
.stat-big b { display: block; font-size: 44px; font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.stat-big span { font-size: 13px; color: var(--ink-3); }

/* ---------- 价格 ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.plan {
  position: relative; background: var(--paper-2); border-radius: 24px; padding: 30px 26px 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.section-alt .plan { background: var(--paper); }
.plan.featured { box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg); }
.plan .tag {
  position: absolute; top: 18px; right: 18px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
}
.plan h3 { font-size: 21px; margin-bottom: 4px; }
.plan .sub { color: var(--ink-3); font-size: 13.5px; }
.price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 3px; }
.price .cur { font-size: 18px; color: var(--ink-2); font-weight: 600; }
.price b { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.price .per { color: var(--ink-3); font-size: 14px; margin-left: 4px; }
.price-note { font-size: 13px; color: var(--ink-3); min-height: 20px; }
.price-note s { margin-right: 6px; }
.perks { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.perks li { padding: 7px 0 7px 26px; position: relative; font-size: 14.5px; color: var(--ink-2); }
.perks li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 10px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pack { background: var(--paper-2); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; position: relative; box-shadow: var(--shadow); }
.section-alt .pack { background: var(--paper); }
.pack .tag { position: absolute; top: 16px; right: 16px; font-size: 11.5px; font-weight: 600; color: var(--seal); background: color-mix(in srgb, var(--seal) 12%, transparent); padding: 3px 8px; border-radius: 999px; }
.pack h4 { font-size: 16px; margin: 0; }
.pack .amt { font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.pack .amt small { font-size: 13px; color: var(--ink-3); font-family: var(--sans); font-weight: 400; }
.pack .unit { font-size: 12.5px; color: var(--ink-3); }
.pack .btn { margin-top: 10px; }

.faq { max-width: 780px; margin: 0 auto; background: var(--paper-2); border-radius: 22px; box-shadow: var(--shadow); padding: 6px 24px; }
.section-alt .faq { background: var(--paper); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-size: 16px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 24px; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq .ans { padding: 0 0 18px; color: var(--ink-2); font-size: 14.5px; white-space: pre-line; }

.cta-band { text-align: center; padding: 96px 20px 40px; }
.cta-band h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.025em; }

/* ---------- 润色工作台 ---------- */
.workbench { padding: 24px 0 0; }
.wb-toolbar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 18px; margin: 14px 0;
  background: var(--paper-2); border-radius: 16px; box-shadow: var(--shadow);
}
.level-box { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 300px; }
.level-box .lbl { font-size: 13px; color: var(--ink-2); white-space: nowrap; font-weight: 500; }
.level-slider { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 160px; max-width: 360px; }
.level-slider input[type=range] { width: 100%; accent-color: var(--accent); }
.level-ticks { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); padding: 0 2px; }
.level-val { min-width: 112px; }
.level-val b { font-size: 22px; color: var(--accent); margin-right: 4px; font-weight: 700; }
.level-val span { font-size: 13px; color: var(--ink-2); }
.presets { display: flex; gap: 2px; padding: 2px; background: var(--fill); border-radius: 9px; }
.chip { height: 28px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--fill-2); color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; transition: background .2s, color .2s; }
.chip:hover { color: var(--ink); background: var(--fill); }
.chip.on { background: var(--accent); color: #fff; }
.presets .chip { border-radius: 7px; background: transparent; height: 26px; }
.presets .chip.on { background: var(--paper-2); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); font-weight: 500; }
.wb-meta { display: flex; gap: 18px; align-items: center; font-size: 13px; color: var(--ink-2); margin-left: auto; flex-wrap: wrap; }
.wb-meta b { color: var(--ink); font-weight: 600; }
.wb-meta .over { color: var(--err); }

.panes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pane { background: var(--paper-2); border-radius: 14px; display: flex; flex-direction: column; min-height: 560px; overflow: hidden; overflow: clip; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.pane-head { display: flex; align-items: center; gap: 6px; padding: 0 10px 0 14px; border-bottom: 1px solid var(--line); min-height: 44px; background: color-mix(in srgb, var(--paper-3) 60%, var(--paper-2)); }
.pane-head::before { content: ""; width: 52px; height: 12px; flex: none; margin-right: 8px; background: radial-gradient(circle at 6px 6px, #ff5f57 5.5px, transparent 6px), radial-gradient(circle at 26px 6px, #febc2e 5.5px, transparent 6px), radial-gradient(circle at 46px 6px, #28c840 5.5px, transparent 6px); }
.pane-head h3 { font-size: 13.5px; margin: 0; font-weight: 600; color: var(--ink-2); }
.pane-head .sp { flex: 1; }
.pane-body { position: relative; flex: 1; display: flex; }
.editor, .result {
  flex: 1; width: 100%; border: 0; outline: none; resize: none; background: transparent; color: var(--ink);
  padding: 20px 24px; font-family: var(--sans); font-size: 16px; line-height: 1.9; min-height: 480px;
}
.editor::placeholder { color: var(--ink-3); }
.result { overflow-y: auto; white-space: pre-wrap; word-break: break-word; max-height: 72vh; }
.result:empty::before { content: attr(data-empty); color: var(--ink-3); }
.result ins { text-decoration: none; background: var(--ins); color: inherit; border-radius: 3px; }
.result del { background: var(--del); color: var(--err); text-decoration-color: var(--err); border-radius: 3px; }
.result .cursor, .cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(2) infinite; margin-left: 1px; border-radius: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.pane-foot { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pane-foot .sp { flex: 1; }
.counter { font-size: 12px; color: var(--ink-3); }
.tabs-mini { display: inline-flex; background: var(--fill); border-radius: 8px; padding: 2px; }
.tabs-mini button { background: transparent; border: 0; padding: 3px 12px; font: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer; border-radius: 6px; }
.tabs-mini button.on { background: var(--paper-2); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); font-weight: 500; }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .15s; }
.icon-btn:hover { background: var(--fill); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }
.run-row { display: flex; justify-content: center; gap: 12px; margin: 24px 0 6px; align-items: center; flex-wrap: wrap; }
.run-row .btn-lg { min-width: 220px; }
.progress { height: 3px; background: transparent; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--indigo)); transition: width .4s; border-radius: 3px; }
.progress.indeterminate i { width: 30%; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } }
.status-line { font-size: 13px; color: var(--ink-3); text-align: center; min-height: 20px; }
.drop-hint {
  position: absolute; inset: 10px; border: 2px dashed var(--accent); border-radius: 12px; display: none; place-items: center;
  background: color-mix(in srgb, var(--paper-2) 90%, transparent); color: var(--accent); font-size: 17px; font-weight: 600; z-index: 3;
}
.pane.dragover .drop-hint, .dragover > .drop-hint { display: grid; }
.diff-legend { font-size: 12px; color: var(--ink-3); display: flex; gap: 12px; }
.diff-legend ins, .diff-legend del { padding: 0 4px; border-radius: 3px; text-decoration: none; }
.diff-legend ins { background: var(--ins); }
.diff-legend del { background: var(--del); text-decoration: line-through; }
.result-stats { font-size: 12px; color: var(--ink-3); }

/* 抽屉 */
.drawer-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .28); z-index: 80; display: none; backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(420px, calc(100vw - 20px)); background: var(--glass); backdrop-filter: saturate(1.8) blur(30px); -webkit-backdrop-filter: saturate(1.8) blur(30px); border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--glass-line); z-index: 81; transform: translateX(calc(100% + 20px)); transition: transform .32s var(--ease); display: flex; flex-direction: column; overflow: hidden; }
.drawer.open { transform: none; }
.drawer.open + .drawer-mask, .drawer-mask.open { display: block; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; flex: 1; font-size: 16px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px; }
.hist-item { padding: 10px 12px; cursor: pointer; border-radius: 10px; }
.hist-item:hover { background: var(--fill-2); }
.hist-item .t { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.hist-item .m { font-size: 12px; color: var(--ink-3); display: flex; gap: 10px; margin-top: 2px; }

/* ---------- 弹窗 & 提示 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .32); z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-mask.open { display: flex; }
.modal { background: var(--paper-2); border-radius: 20px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); overflow: hidden; animation: modalIn .22s var(--ease); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(6px); } }
.modal-head { padding: 18px 22px 0; display: flex; align-items: center; }
.modal-head h3 { margin: 0; flex: 1; font-size: 18px; }
.modal-body { padding: 16px 22px 22px; overflow-y: auto; }
.modal-close { background: var(--fill); border: 0; width: 26px; height: 26px; border-radius: 50%; font-size: 17px; color: var(--ink-2); cursor: pointer; line-height: 1; display: grid; place-items: center; }
.modal-close:hover { background: color-mix(in srgb, var(--fill) 100%, var(--ink) 8%); }
.toast-wrap { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--glass); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  backdrop-filter: saturate(1.8) blur(24px); -webkit-backdrop-filter: saturate(1.8) blur(24px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--glass-line);
  animation: toastIn .25s var(--ease); max-width: 90vw;
}
.toast.err { color: var(--err); }
.toast.ok { color: var(--ok); }
.toast.err::before { content: "● "; }
.toast.ok::before { content: "✓ "; font-weight: 700; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* ---------- 登录 ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  position: relative; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 0% 0%, #2b6cf6 0%, transparent 60%), radial-gradient(90% 80% at 100% 100%, #7a4cf5 0%, transparent 60%), #0b1530;
}
.auth-side .brand { color: #fff; }
.auth-side .muted { color: rgba(255, 255, 255, .7); }
.auth-side::after { content: none; }
.auth-quote { font-size: 30px; line-height: 1.5; max-width: 14em; color: #fff; font-weight: 600; letter-spacing: -.02em; }
.auth-quote cite { display: block; font-size: 14px; color: rgba(255, 255, 255, .7); font-style: normal; margin-top: 14px; font-weight: 400; letter-spacing: 0; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h1 { font-size: 30px; margin-bottom: 6px; letter-spacing: -.025em; }
.auth-box .sub { color: var(--ink-3); margin-bottom: 26px; font-size: 14px; }
.auth-tabs { display: flex; background: var(--fill); border-radius: 10px; padding: 2px; margin-bottom: 22px; }
.auth-tabs button { flex: 1; background: none; border: 0; padding: 6px 0; font: inherit; font-size: 13.5px; color: var(--ink-2); cursor: pointer; border-radius: 8px; }
.auth-tabs button.on { background: var(--paper-2); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); font-weight: 500; }
.captcha-img { height: 38px; border-radius: 10px; border: 1px solid var(--line-2); cursor: pointer; background: #f7f7f9; }
.auth-foot { font-size: 12.5px; color: var(--ink-3); margin-top: 18px; line-height: 1.8; }

/* ---------- 用户中心 ---------- */
.uc { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding-top: 32px; align-items: start; }
.uc-nav { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; background: var(--paper-2); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); }
.uc-nav .who { padding: 10px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.uc-nav .who b { display: block; font-size: 16px; }
.uc-nav .who > span:not(.avatar) { font-size: 12px; color: var(--ink-3); word-break: break-all; }
.uc-nav a { padding: 8px 10px; border-radius: 9px; color: var(--ink); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.uc-nav a svg { width: 17px; height: 17px; color: var(--accent); }
.uc-nav a:hover { background: var(--fill-2); color: var(--ink); }
.uc-nav a.on { background: var(--accent); color: #fff; }
.uc-nav a.on svg { color: #fff; }
.uc-main h1 { font-size: 28px; margin-bottom: 20px; letter-spacing: -.025em; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.stat { padding: 20px 22px; }
.stat .k { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 32px; font-weight: 700; margin: 4px 0 2px; color: var(--ink); letter-spacing: -.03em; }
.stat .d { font-size: 12.5px; color: var(--ink-3); }
.stat-feather .v { color: var(--accent); }
.checkin-box { display: flex; align-items: center; gap: 16px; }
.checkin-box .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.checkin-box .ic svg { width: 22px; height: 22px; }
.invite-link { display: flex; gap: 8px; }
.invite-link .input { font-family: var(--mono); font-size: 13px; }

/* ---------- 支付 ---------- */
.checkout { max-width: 640px; margin: 40px auto 0; }
.order-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.order-sum .amt { font-size: 34px; font-weight: 700; color: var(--ink); letter-spacing: -.03em; }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 20px 0; }
.method { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; cursor: pointer; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow .2s; }
.method input { position: absolute; opacity: 0; }
.method:has(input:checked) { box-shadow: 0 0 0 2px var(--accent); }
.method svg { width: 26px; height: 26px; flex: none; }
.method .tip { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
.qr-box { text-align: center; }
.qr-box .qr { width: 220px; height: 220px; margin: 6px auto 12px; padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; }
.qr-box .qr img, .qr-box .qr canvas, .qr-box .qr svg { width: 100%; height: 100%; }
.qr-box .amt { font-size: 28px; font-weight: 700; color: var(--ink); }
.result-card { text-align: center; padding: 48px 24px; }
.result-card .big-ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; }
.result-card .big-ic svg { width: 32px; height: 32px; }
.result-card .ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.result-card .wait { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }

/* ---------- 文章页 ---------- */
.article { max-width: 760px; margin: 48px auto 0; }
.article h1 { font-size: 38px; margin-bottom: 8px; letter-spacing: -.03em; }
.article .meta { color: var(--ink-3); font-size: 13px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.prose { font-size: 16.5px; line-height: 1.9; }
.prose h1 { font-size: 30px; margin-top: .4em; }
.prose h2 { font-size: 23px; margin-top: 1.6em; }
.prose h3 { font-size: 18.5px; margin-top: 1.4em; }
.prose p { margin: 0 0 1.05em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin: .2em 0; }
.prose blockquote { margin: 1em 0; padding: 10px 18px; border-radius: 12px; background: var(--fill-2); color: var(--ink-2); }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 7px 10px; text-align: left; }
.prose th { background: var(--fill-2); font-weight: 600; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--fill-2); padding: 1px 5px; border-radius: 5px; }
.prose pre { background: var(--paper-3); padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; }
.prose sup.ref { color: var(--accent); font-size: .72em; font-weight: 600; }

.err-page { text-align: center; padding: 110px 20px; }
.err-page .code { font-size: 96px; font-weight: 700; color: var(--ink-3); opacity: .35; line-height: 1; margin-bottom: 18px; letter-spacing: -.04em; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero { padding: 56px 0 24px; }
  .demo { grid-template-columns: 1fr; }
  .demo-side, .demo-right { display: none; }
  .duo { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .panes { grid-template-columns: 1fr; }
  .pane { min-height: 340px; }
  .editor, .result { min-height: 280px; }
  .uc { grid-template-columns: 1fr; padding-top: 18px; }
  .uc-nav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding: 6px; }
  .uc-nav .who { display: none; }
  .uc-nav a { white-space: nowrap; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  .topbar .container { gap: 10px; height: 52px; }
  .nav { display: none; position: absolute; top: 52px; left: 8px; right: 8px; flex-direction: column; background: var(--glass); backdrop-filter: saturate(1.8) blur(24px); -webkit-backdrop-filter: saturate(1.8) blur(24px); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; }
  .nav a { border-radius: 10px; padding: 10px 12px; }
  .nav.open { display: flex; }
  .nav a { white-space: normal; }
  .nav-more { display: none !important; }
  .nav-toggle { display: grid; }
  .nav-right { margin-left: auto; }
  .feather-chip .lbl { display: none; }
  .steps, .features { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .wb-toolbar { padding: 12px; gap: 12px; }
  .level-box { min-width: 100%; flex-wrap: wrap; }
  .wb-meta { margin-left: 0; }
  .stats-row { gap: 32px; }
  .section { padding: 60px 0; }
  .duo-card { padding: 30px 22px 0; min-height: 0; }
  .footer .container { flex-direction: column; }
  .hero-win { margin-top: 36px; }
  .demo-main { padding: 18px; }
}

/* 内联图标尺寸兜底 */
.notice-bar svg, .stat .k svg, .card-title svg, .help svg { width: 18px; height: 18px; flex: none; }
.stat .k svg { width: 15px; height: 15px; }
.hero-cta .btn svg { width: 18px; height: 18px; }
.nav-toggle svg { width: 22px; height: 22px; }

/* =========================================================
   服务状态 · 排队 · 活动
   ========================================================= */
.lv-ok.lv-ok { --lv: var(--ok); }
.lv-warn.lv-warn { --lv: var(--warn); }
.lv-err.lv-err { --lv: var(--err); }

.promo-bar { background: linear-gradient(90deg, var(--accent), var(--indigo)); color: #fff; font-size: 13px; position: relative; z-index: 51; }
.promo-bar .container { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.promo-text { min-width: 0; text-align: center; }
.promo-text em { font-style: normal; margin-left: 10px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 12px; white-space: nowrap; }
.promo-go { color: #fff; font-weight: 600; white-space: nowrap; }
.promo-go:hover { color: #fff; }
.promo-x { background: none; border: 0; color: rgba(255, 255, 255, .75); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; margin-left: auto; }
.promo-x:hover { color: #fff; }

.svc-wrap { position: relative; }
.svc-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; border: 0;
  background: color-mix(in srgb, var(--lv) 12%, transparent); color: var(--lv); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.svc-pill i, .svc-pop-head i, .hero-svc i, .svc-panel-ic i { width: 8px; height: 8px; border-radius: 50%; background: var(--lv); flex: none; position: relative; }
.svc-pill i::after, .hero-svc i::after, .svc-panel-ic i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--lv); opacity: .35; animation: svcPing 1.8s ease-out infinite; }
.svc-pill.lv-err i::after, .svc-panel.lv-err .svc-panel-ic i::after { animation-duration: 1s; }
@keyframes svcPing { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.9); opacity: 0; } }
.svc-pop {
  position: absolute; top: calc(100% + 10px); right: 0; width: 300px; background: var(--glass); backdrop-filter: saturate(1.8) blur(24px); -webkit-backdrop-filter: saturate(1.8) blur(24px);
  border-radius: 16px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--glass-line); padding: 14px 16px; display: none; z-index: 60; font-size: 13.5px; animation: popIn .16s var(--ease);
}
.svc-wrap.open .svc-pop { display: block; }
.svc-pop-head { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 6px; }
.svc-pop-head b { color: var(--lv); }
.svc-pop p { margin: 0 0 6px; color: var(--ink-2); }
.svc-pop-reopen { color: var(--ink) !important; font-weight: 600; }
.svc-pop-load { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.svc-pop-load:empty { display: none; }
.svc-pop-foot { font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 8px; }

.svc-alert { background: color-mix(in srgb, var(--lv) 9%, var(--paper)); color: var(--ink); font-size: 13.5px; }
.svc-alert .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; padding-top: 9px; padding-bottom: 9px; }
.svc-alert b { color: var(--lv); font-size: 14px; }
.svc-alert b::before { content: "●"; margin-right: 6px; font-size: 10px; vertical-align: 2px; }
.svc-alert-reopen { font-weight: 600; }

.svc-panel {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--lv) 8%, var(--paper-2)); box-shadow: var(--shadow);
}
.svc-panel-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--lv) 15%, transparent); flex: none; }
.svc-panel-ic i { width: 12px; height: 12px; }
.svc-panel-body { flex: 1; min-width: 0; }
.svc-panel-title { font-size: 18px; font-weight: 700; color: var(--lv); line-height: 1.3; }
.svc-panel-msg { color: var(--ink-2); font-size: 14px; }
.svc-panel-reopen { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.svc-panel-side { font-size: 13px; color: var(--ink-3); text-align: right; max-width: 260px; }
.svc-panel.lv-err { padding: 22px 24px; }
.svc-panel.lv-err .svc-panel-title { font-size: 21px; }
.btn.is-blocked { background: var(--fill); color: var(--ink-3); cursor: not-allowed; }
.free-tag { color: var(--ok) !important; font-weight: 600; }
.free-tag::before { content: "✓ "; }
.pass-badge { display: inline-block; font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: 6px; background: var(--seal); color: #fff; font-weight: 600; vertical-align: middle; }

.queue-box {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; background: color-mix(in srgb, var(--paper-2) 94%, transparent);
}
.queue-box[hidden] { display: none; }
.queue-flame { font-size: 34px; line-height: 1; animation: qBob 1.4s ease-in-out infinite; }
@keyframes qBob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.06); } }
.queue-title { font-size: 21px; font-weight: 700; color: var(--warn); margin: 10px 0 4px; }
.queue-ahead { font-size: 15px; color: var(--ink-2); }
.queue-ahead b { font-size: 40px; color: var(--ink); margin: 0 4px; vertical-align: -5px; font-variant-numeric: tabular-nums; font-weight: 700; }
.queue-eta { font-size: 14px; color: var(--ink-2); margin-top: 4px; min-height: 22px; }
.queue-bar { width: min(280px, 80%); height: 6px; border-radius: 6px; background: var(--fill); overflow: hidden; margin: 14px 0 12px; }
.queue-bar i { display: block; height: 100%; width: 4%; background: linear-gradient(90deg, var(--warn), var(--seal)); border-radius: 6px; transition: width 1s linear; }
.queue-tip { font-size: 12.5px; color: var(--ink-3); line-height: 1.8; }

.promo-hero, .pass-section { text-align: center; margin-bottom: 44px; }
.promo-hero { padding: 40px 24px; border-radius: 28px; background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--accent) 14%, var(--paper-2)), var(--paper-2)); box-shadow: var(--shadow); }
.promo-hero-tag { display: inline-block; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(90deg, var(--accent), var(--indigo)); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.promo-hero h3, .pass-head h3 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 10px; letter-spacing: -.025em; }
.promo-hero h3 em, .pass-head h3 em { font-style: normal; color: var(--accent); }
.promo-hero p, .pass-head p { max-width: 36em; margin: 0 auto 18px; color: var(--ink-2); }
.promo-hero-cta { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 13.5px; }
.pass-head .notice-bar { max-width: 560px; margin-left: auto; margin-right: auto; text-align: left; }
.passes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 26px; text-align: left; }
.pass { position: relative; background: var(--paper-2); border-radius: 22px; padding: 26px 22px 20px; display: flex; flex-direction: column; gap: 4px; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: var(--shadow); }
.section-alt .pass { background: var(--paper); }
.pass:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pass.featured { box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg); }
.pass .tag { position: absolute; top: 16px; right: 16px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.pass h4 { font-size: 17px; margin: 0; }
.pass-price { display: flex; align-items: baseline; gap: 3px; margin: 10px 0 2px; }
.pass-price .cur { font-size: 18px; color: var(--ink); font-weight: 600; }
.pass-price b { font-size: 46px; font-weight: 700; line-height: 1; color: var(--ink); letter-spacing: -.03em; }
.pass-price .per { color: var(--ink-3); font-size: 14px; margin-left: 4px; }
.pass-note { font-size: 13px; color: var(--ink-3); min-height: 20px; margin-bottom: 14px; }
.pass-note s { margin-right: 6px; }
.pass .btn { margin-top: auto; }
.paid-divider { text-align: center; font-size: 20px; margin: 8px 0 22px; color: var(--ink-2); }

@media (max-width: 760px) {
  .topbar .brand { gap: 7px; font-size: 15.5px; min-width: 0; }
  .topbar .brand svg, .topbar .brand img { width: 26px; height: 26px; }
  .topbar .brand span { overflow: hidden; text-overflow: ellipsis; }
  .nav-right { gap: 6px; }
  .win-bar .ttl { position: static; transform: none; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: center; margin-right: 44px; }
  .svc-pill { padding: 0 9px; }
  .svc-pill span { display: none; }
  .svc-pill.lv-err span, .svc-pill.lv-warn span { display: inline; }
  .svc-pop { right: -60px; width: min(300px, calc(100vw - 32px)); }
  .svc-panel { flex-wrap: wrap; padding: 14px 16px; }
  .svc-panel-side { text-align: left; max-width: none; flex-basis: 100%; }
  .promo-text em { display: inline-block; margin: 2px 0 0; }
}
.show-m { display: none; }
@media (max-width: 760px) { .topbar .hide-m { display: none; } .topbar .show-m { display: inline; } }
@media (max-width: 330px) { .topbar .brand span { display: none; } }

/* =========================================================
   复源七号站 · AI 写作工作区（三栏：文稿 / 正文 / 助手）
   ========================================================= */
.cmp-page main { min-height: calc(100vh - 56px); }
.cmp-page .footer { display: none; }
.cmp { display: grid; grid-template-columns: 248px minmax(0, 1fr) 360px; height: calc(100vh - 56px); }
.cmp-side, .cmp-panel { background: color-mix(in srgb, var(--paper) 55%, var(--paper-2)); overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.cmp-side { border-right: 1px solid var(--line); }
.cmp-panel { border-left: 1px solid var(--line); }
.cmp-side-head { padding: 14px 12px 8px; display: flex; gap: 8px; align-items: center; }
.cmp-side-head .btn { flex: 1; }
.cmp-search { margin: 0 12px 8px; height: 32px; border-radius: 9px; background: var(--fill-2); border: 0; padding: 0 10px 0 30px; font: inherit; font-size: 13px; color: var(--ink); outline: none; width: calc(100% - 24px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 10px center; }
.cmp-search:focus { box-shadow: 0 0 0 3px var(--accent-soft); }
.cmp-list { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
.cmp-list .cap { font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 10px 8px 4px; }
.doc-it { display: block; padding: 8px 10px; border-radius: 9px; cursor: pointer; color: var(--ink); margin-bottom: 1px; position: relative; }
.doc-it:hover { background: var(--fill-2); }
.doc-it.on { background: var(--accent); color: #fff; }
.doc-it .t { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 18px; }
.doc-it .m { font-size: 11.5px; color: var(--ink-3); display: flex; gap: 8px; }
.doc-it.on .m { color: rgba(255, 255, 255, .8); }
.doc-it .x { position: absolute; right: 6px; top: 8px; width: 20px; height: 20px; border-radius: 6px; border: 0; background: transparent; color: inherit; opacity: 0; cursor: pointer; font-size: 15px; line-height: 1; }
.doc-it:hover .x { opacity: .6; }
.doc-it .x:hover { opacity: 1; background: rgba(0, 0, 0, .08); }
.cmp-side-foot { padding: 10px 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.cmp-side-foot a { color: var(--ink-2); }

.cmp-main { overflow-y: auto; min-height: 0; background: var(--paper-2); position: relative; }
.cmp-bar { position: sticky; top: 0; z-index: 5; height: 48px; display: flex; align-items: center; gap: 4px; padding: 0 14px; background: var(--glass); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid var(--glass-line); }
.cmp-bar .sp { flex: 1; }
.cmp-bar .meta { font-size: 12px; color: var(--ink-3); margin: 0 8px; white-space: nowrap; }
.cmp-bar .save-st { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.cmp-bar .save-st.dirty { color: var(--warn); }
.cmp-doc { max-width: 780px; margin: 0 auto; padding: 40px 48px 160px; }
.cmp-title { width: 100%; border: 0; outline: none; background: transparent; color: var(--ink); font: 700 32px/1.25 var(--display); letter-spacing: -.025em; padding: 0; margin-bottom: 6px; resize: none; overflow: hidden; }
.cmp-title::placeholder { color: var(--ink-3); opacity: .6; }
.cmp-sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 28px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.blk { position: relative; margin-bottom: 26px; }
.blk-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.blk-head input { flex: 1; border: 0; outline: none; background: transparent; color: var(--ink); font: 600 21px/1.35 var(--display); letter-spacing: -.015em; padding: 2px 0; }
.blk-head .no { font-size: 12px; font-weight: 600; color: var(--ink-3); min-width: 18px; }
.blk-tools { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.blk:hover .blk-tools, .blk.running .blk-tools, .blk:focus-within .blk-tools { opacity: 1; }
.blk-tools button { height: 26px; padding: 0 9px; border-radius: 7px; border: 0; background: var(--fill-2); color: var(--ink-2); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.blk-tools button:hover { background: var(--fill); color: var(--ink); }
.blk-tools button.pri { background: var(--accent); color: #fff; }
.blk-body { width: 100%; border: 0; outline: none; resize: none; background: transparent; color: var(--ink); font: 16.5px/1.95 var(--sans); padding: 2px 0; overflow: hidden; min-height: 2em; }
.blk-body::placeholder { color: var(--ink-3); opacity: .7; }
.blk.empty .blk-body { color: var(--ink-3); }
.blk.running::before { content: ""; position: absolute; left: -18px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--accent), var(--indigo)); animation: pulse 1.2s infinite; }
.blk.partial::before { content: ""; position: absolute; left: -18px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--warn); }
.blk-pts { font-size: 13px; color: var(--ink-3); background: var(--fill-2); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; white-space: pre-wrap; }
.blk-stream { white-space: pre-wrap; font: 16.5px/1.95 var(--sans); color: var(--ink); }
.cmp-preview { display: none; }
.cmp.preview .cmp-preview { display: block; }
.cmp.preview .cmp-edit { display: none; }

/* 欢迎 / 模板选择 */
.cmp-welcome { max-width: 860px; margin: 0 auto; padding: 56px 40px 120px; }
.cmp-welcome h1 { font-size: 40px; letter-spacing: -.03em; margin-bottom: 8px; }
.cmp-welcome h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent), var(--indigo) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cmp-welcome > p { color: var(--ink-2); font-size: 16px; margin-bottom: 30px; }
.cmp-welcome .grp { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 22px 0 10px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tpl-card { text-align: left; border: 0; cursor: pointer; font: inherit; color: var(--ink); background: var(--paper); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 4px; transition: transform .2s var(--ease), box-shadow .2s, background .2s; box-shadow: 0 0 0 1px var(--line); }
.tpl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); background: var(--paper-2); }
.tpl-card .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--indigo)); color: #fff; margin-bottom: 6px; }
.tpl-card .ic svg { width: 17px; height: 17px; }
.tpl-card b { font-size: 14.5px; }
.tpl-card span { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.tpl-card .mode { font-size: 11px; color: var(--accent); font-weight: 600; margin-top: 2px; }

/* 右侧助手面板 */
.cmp-panel-head { padding: 12px 14px 0; }
.segc { display: flex; background: var(--fill); border-radius: 9px; padding: 2px; }
.segc button { flex: 1; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink-2); padding: 5px 0; border-radius: 7px; cursor: pointer; }
.segc button.on { background: var(--paper-2); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); font-weight: 500; }
.cmp-panel-body { flex: 1; overflow-y: auto; padding: 14px; }
.pnl { display: none; }
.pnl.on { display: block; }
.grp-box { background: var(--paper-2); border-radius: 14px; padding: 14px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 12px; }
.grp-box h4 { font-size: 13px; margin: 0 0 10px; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.grp-box h4 small { margin-left: auto; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.grp-box .field { margin-bottom: 12px; }
.grp-box .field:last-child { margin-bottom: 0; }
.grp-box .field > label { font-size: 12px; margin-bottom: 4px; }
.grp-box .input, .grp-box .select { height: 34px; font-size: 13.5px; border-radius: 9px; }
.grp-box .textarea { font-size: 13.5px; border-radius: 9px; padding: 7px 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ol-list { display: flex; flex-direction: column; gap: 6px; }
.ol-it { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; border-radius: 10px; background: var(--paper); font-size: 13px; cursor: pointer; }
.ol-it:hover { background: var(--fill-2); }
.ol-it b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--fill); color: var(--ink-2); flex: none; }
.ol-it.done b { background: var(--ok); color: #fff; }
.ol-it.partial b { background: var(--warn); color: #fff; }
.ol-it.run b { background: var(--accent); color: #fff; animation: pulse 1.2s infinite; }
.ol-it .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-it .w { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }
.ol-it .ops { display: none; gap: 2px; }
.ol-it:hover .ops { display: flex; }
.ol-it .ops button { width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 12px; display: grid; place-items: center; }
.ol-it .ops button:hover { background: var(--fill); }
.run-box { display: flex; flex-direction: column; gap: 8px; }
.run-box .btn { width: 100%; }
.run-st { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; min-height: 18px; }
.run-st .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.cost-tip { font-size: 12px; color: var(--ink-3); }
.ref-it { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.ref-it:last-child { border-bottom: 0; }
.ref-it a { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-it p { margin: 2px 0 0; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ref-it .hd { display: flex; gap: 6px; align-items: center; }
.ref-it .hd i { font-style: normal; color: var(--accent); font-weight: 700; }
.ref-it .hd button { margin-left: auto; border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 14px; }
.drop-zone { position: relative; border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 16px; text-align: center; font-size: 12.5px; color: var(--ink-3); cursor: pointer; transition: border-color .2s, background .2s; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.drop-zone b { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 2px; }
.mat-file { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--paper); margin-top: 8px; }
.mat-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.act-grid button { height: 34px; border: 0; border-radius: 9px; background: var(--paper); font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.act-grid button:hover { background: var(--accent); color: #fff; box-shadow: none; }
.act-out { margin-top: 10px; font-size: 14px; line-height: 1.8; white-space: pre-wrap; background: var(--paper); border-radius: 10px; padding: 10px 12px; max-height: 320px; overflow-y: auto; }
.act-out:empty { display: none; }

/* 选中文字后的浮动工具条 */
.sel-bar { position: absolute; z-index: 20; display: none; gap: 1px; padding: 4px; border-radius: 12px; background: var(--glass); backdrop-filter: saturate(1.8) blur(24px); -webkit-backdrop-filter: saturate(1.8) blur(24px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--glass-line); animation: popIn .14s var(--ease); }
.sel-bar.on { display: flex; }
.sel-bar button { height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.sel-bar button:hover { background: var(--accent); color: #fff; }
.sel-bar .sep { width: 1px; background: var(--line-2); margin: 4px 2px; }
.sel-bar .ai { color: var(--accent); font-weight: 600; }

/* 改写建议浮层 */
.suggest { position: fixed; z-index: 90; width: min(520px, calc(100vw - 32px)); left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--glass); backdrop-filter: saturate(1.8) blur(30px); -webkit-backdrop-filter: saturate(1.8) blur(30px); border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--glass-line); padding: 14px 16px; display: none; animation: modalIn .2s var(--ease); }
.suggest.on { display: block; }
.suggest-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.suggest-head b { color: var(--ink); }
.suggest-head .sp { flex: 1; }
.suggest-body { max-height: 38vh; overflow-y: auto; font-size: 15px; line-height: 1.85; white-space: pre-wrap; color: var(--ink); }
.suggest-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

.cmp-empty { display: grid; place-items: center; height: 100%; color: var(--ink-3); font-size: 14px; text-align: center; padding: 30px; }
.cmp-mob-tabs { display: none; }
.kbd { font-family: var(--mono); font-size: 11px; padding: 1px 5px; border-radius: 5px; background: var(--fill); color: var(--ink-2); }

@media (max-width: 1180px) {
  .cmp { grid-template-columns: 220px minmax(0, 1fr) 320px; }
  .cmp-doc { padding: 32px 32px 140px; }
}
@media (max-width: 900px) {
  .cmp { grid-template-columns: 1fr; height: auto; min-height: calc(100vh - 52px); }
  .cmp-side, .cmp-panel { display: none; border: 0; }
  .cmp[data-mob="docs"] .cmp-side, .cmp[data-mob="panel"] .cmp-panel { display: flex; min-height: calc(100vh - 104px); }
  .cmp[data-mob="docs"] .cmp-main, .cmp[data-mob="panel"] .cmp-main { display: none; }
  .cmp-main { min-height: calc(100vh - 104px); }
  .cmp-doc { padding: 24px 18px 120px; }
  .cmp-title { font-size: 26px; }
  .cmp-welcome { padding: 32px 18px 100px; }
  .cmp-welcome h1 { font-size: 30px; }
  .cmp-mob-tabs { display: flex; position: sticky; bottom: 0; z-index: 30; background: var(--glass); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-top: 1px solid var(--glass-line); padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); gap: 6px; }
  .cmp-mob-tabs button { flex: 1; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink-2); padding: 8px 0; border-radius: 9px; }
  .cmp-mob-tabs button.on { background: var(--fill); color: var(--ink); font-weight: 600; }
  .blk-tools { opacity: 1; }
  .blk.running::before, .blk.partial::before { left: -10px; }
}
.grp-box h4 svg, .cmp-side-foot svg, .mat-file svg, .run-box .btn svg, .cmp-panel .btn svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.run-box .btn-primary svg { color: #fff; }
.grp-box summary::-webkit-details-marker { display: none; }
@media (max-width: 900px) {
  .cmp-bar .meta, .cmp-bar .save-st { display: none; }
  .cmp-bar { padding: 0 8px; }
}

/* =========================================================
   公众号一键排版（左原文 / 中手机预览 / 右模板库）
   ========================================================= */
.lay-page .footer { display: none; }
.lay { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr) 380px; gap: 0; height: calc(100vh - 56px); }
.lay-col { min-height: 0; overflow-y: auto; padding: 18px; }
.lay-src { display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 55%, var(--paper-2)); }
.lay-card { background: var(--paper-2); border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.lay-src > .lay-card:first-child { flex: 1; min-height: 320px; }
.lay-head { display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 16px; }
.lay-head h3 { font-size: 14px; margin: 0; }
.lay-head .sp { flex: 1; }
.lay-head .btn svg { width: 15px; height: 15px; }
.lay-text { flex: 1; width: 100%; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); outline: none; resize: none; background: transparent; color: var(--ink); padding: 14px 16px; font: 14px/1.85 var(--sans); min-height: 260px; }
.lay-text::placeholder { color: var(--ink-3); }
.lay-text[readonly] { color: var(--ink-2); }
.lay-foot { display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 16px; }
.lay-ai { padding: 14px; gap: 10px; }
.lay-ai .input { height: 34px; font-size: 13px; }
.lay-ai .btn svg { width: 16px; height: 16px; }
.lay-st { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.lay-st b { color: var(--ink-2); }
.lay-st .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; margin-right: 6px; display: inline-block; vertical-align: -2px; }
.lay-mid { display: flex; flex-direction: column; align-items: center; padding-top: 22px; background: radial-gradient(80% 60% at 50% 30%, color-mix(in srgb, var(--accent) 7%, transparent), transparent); }
.phone { width: 390px; max-width: 100%; height: min(760px, calc(100vh - 230px)); min-height: 460px; border-radius: 48px; background: #fff; border: 11px solid #1d1d1f; box-shadow: var(--shadow-lg), 0 0 0 1px #3a3a3c; display: flex; flex-direction: column; overflow: hidden; flex: none; }
.phone-top { height: 26px; display: grid; place-items: center; background: #fff; }
.phone-notch { width: 110px; height: 22px; border-radius: 0 0 14px 14px; background: #1d1d1f; margin-top: -6px; }
.phone-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; font-size: 13px; color: #111; border-bottom: 1px solid #eee; background: #fff; }
.phone-bar span { color: #555; font-size: 16px; width: 20px; }
.phone-body { flex: 1; overflow-y: auto; padding: 18px 16px 40px; background: #fff; color: #333; color-scheme: light; }
.lay-empty { height: 100%; display: grid; place-items: center; text-align: center; color: #aaa; font-size: 13px; }
.lay-empty svg { width: 40px; height: 40px; opacity: .4; display: block; margin: 0 auto 8px; }
.lay-actions { display: flex; gap: 10px; margin-top: 18px; align-items: center; }
.lay-actions .btn-primary { min-width: 220px; }
.lay-actions .btn svg { width: 18px; height: 18px; }
.lay-label-opt { margin-top: 10px; font-size: 12.5px; }
.lay-themes { border-left: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 55%, var(--paper-2)); }

.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.theme-card { border: 0; padding: 0; background: var(--paper-2); border-radius: 14px; cursor: pointer; text-align: left; box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .2s, transform .2s var(--ease); font: inherit; color: var(--ink); }
.theme-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.theme-card.on { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.theme-thumb { display: block; height: 196px; overflow: hidden; background: #fff; position: relative; border-bottom: 1px solid var(--line); }
.theme-mini { display: block; width: 375px; padding: 14px 14px 0; transform: scale(.43); transform-origin: 0 0; pointer-events: none; color-scheme: light; }
.theme-name { display: flex; align-items: center; gap: 7px; padding: 9px 11px; font-size: 13px; font-weight: 500; }
.theme-name i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.theme-name em { margin-left: auto; font-style: normal; font-size: 11px; color: #fff; background: var(--ok); padding: 1px 7px; border-radius: 999px; }
.lay-mob { display: none; }
@media (max-width: 1180px) { .lay { grid-template-columns: 340px minmax(0, 1fr) 300px; } .theme-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .lay { grid-template-columns: 1fr; height: auto; }
  .lay-col { display: none; border: 0; min-height: calc(100vh - 110px); }
  .lay[data-mob="src"] .lay-src, .lay[data-mob="mid"] .lay-mid, .lay[data-mob="themes"] .lay-themes { display: flex; flex-direction: column; }
  .lay[data-mob="themes"] .lay-themes { display: block; }
  .theme-grid { grid-template-columns: 1fr 1fr; }
  .phone { height: calc(100vh - 250px); border-width: 8px; border-radius: 36px; }
  .lay-mob { display: flex; }
}
.lay-tags { margin: 0 0 12px; overflow-x: auto; }
.lay-tags button { white-space: nowrap; padding: 4px 10px; font-size: 12.5px; }

/* 写完之后的「下一步」引导 */
.btn-dewater { background: linear-gradient(135deg, var(--accent), var(--indigo)); color: #fff; }
.btn-dewater:hover { color: #fff; filter: brightness(1.06); background: linear-gradient(135deg, var(--accent), var(--indigo)); }
.btn-dewater svg { color: #fff; }
.coach { animation: coach 1.4s ease-in-out infinite; }
@keyframes coach { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); transform: scale(1.02); } }
.next-box { display: flex; flex-direction: column; gap: 10px; }
.next-box h4 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--ok); }
.next-box h4 svg { width: 17px; height: 17px; color: var(--ok); }
.next-tip { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.next-tip b { color: var(--ink); }
.next-lv { align-self: flex-start; }
.next-row { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.next-row .btn { flex: 1; padding: 0 8px; }
.next-row .btn svg { width: 14px; height: 14px; }
.run-box .next-box + .btn, .next-box .btn-ghost { align-self: center; }

/* ===================== v1.6 · 原创度 / 配图 / 分发 / 选题雷达 ===================== */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-head .sp { flex: 1; }

/* 真人素材 */
.story-field > label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.story-field .opt { font-size: 11px; font-weight: 500; color: var(--ink-3); background: var(--fill); padding: 2px 6px; border-radius: 5px; }
.story-tip { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--seal); background: color-mix(in srgb, var(--seal) 10%, transparent); padding: 2px 8px; border-radius: 999px; }
.story-tip svg { width: 12px; height: 12px; }
.story-field textarea { border-color: color-mix(in srgb, var(--seal) 30%, var(--line-2)); }
.story-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.story-act .btn svg { width: 14px; height: 14px; }
.story-qs { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.story-q { text-align: left; border: 0; background: var(--fill-2); border-radius: 9px; padding: 7px 10px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; line-height: 1.5; }
.story-q:hover { background: var(--accent-soft); color: var(--accent); }
.story-q.used { opacity: .5; }
.story-nudge { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); background: color-mix(in srgb, var(--seal) 8%, var(--paper-2)); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--seal) 18%, transparent); }
.story-nudge svg { width: 15px; height: 15px; color: var(--seal); flex: none; margin-top: 2px; }

/* 欢迎页 · 选题雷达入口 */
.radar-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); color: var(--ink-2); text-decoration: none; margin: 0 0 22px; font-size: 13.5px; transition: box-shadow .2s; }
.radar-link:hover { box-shadow: 0 0 0 1px var(--accent), var(--shadow); text-decoration: none; }
.radar-link svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.radar-link b { color: var(--ink); margin-right: 6px; }
.radar-link em { margin-left: auto; font-style: normal; color: var(--accent); font-size: 18px; }

/* 相似句自查 */
.ck-sum { display: flex; gap: 14px; align-items: center; font-size: 13px; }
.ck-score { flex: none; width: 76px; height: 76px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 0 5px var(--c, var(--ok)); }
.ck-score b { font-size: 24px; line-height: 1; color: var(--c, var(--ok)); }
.ck-score span { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.ck-score.ok { --c: var(--ok); } .ck-score.warn { --c: var(--warn); } .ck-score.err { --c: var(--err); }
.ck-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ck-it { background: var(--paper-2); border-radius: 12px; padding: 10px 12px; box-shadow: 0 0 0 1px var(--line); }
.ck-it.fixed { opacity: .6; }
.ck-hd { display: flex; gap: 6px; align-items: center; font-size: 11.5px; margin-bottom: 6px; }
.ck-it p { margin: 0 0 6px; font-size: 13px; line-height: 1.6; }
.ck-src { font-size: 11.5px; color: var(--ink-3); word-break: break-all; margin-bottom: 6px; }
.ck-act { display: flex; gap: 6px; justify-content: flex-end; }
.ck-act .btn svg { width: 13px; height: 13px; }
.badge-muted { background: var(--fill); color: var(--ink-3); }

/* 配图 */
.img-modal { max-width: 980px; }
.img-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 18px; }
.img-search { display: flex; gap: 6px; margin-bottom: 8px; }
.img-search .input { flex: 1; min-width: 0; }
.img-search .select { width: auto; }
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 52vh; overflow-y: auto; }
.stock-it { position: relative; border: 0; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--fill-2); aspect-ratio: 4 / 3; }
.stock-it img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.stock-it:hover img { transform: scale(1.04); }
.stock-it span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-it.picking::after { content: '转存中…'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 13px; }
.img-side { border-left: 1px solid var(--line); padding-left: 16px; max-height: 64vh; overflow-y: auto; }
.img-side h4 { margin: 0 0 10px; font-size: 13px; }
.gal-it { margin-bottom: 12px; }
.gal-it img { width: 100%; border-radius: 10px; display: block; background: var(--fill-2); }
.gal-ph { aspect-ratio: 16 / 9; border-radius: 10px; background: var(--fill-2); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--ink-3); padding: 8px; text-align: center; }
.gal-ph.err { color: var(--err); font-size: 11.5px; }
.gal-meta { display: flex; gap: 5px; align-items: center; font-size: 11.5px; color: var(--ink-3); margin: 6px 0 4px; flex-wrap: wrap; }
.gal-act { display: flex; gap: 4px; flex-wrap: wrap; }
.gal-act button { border: 0; background: var(--fill-2); border-radius: 7px; font: inherit; font-size: 11.5px; padding: 4px 8px; cursor: pointer; color: var(--ink-2); }
.gal-act button:hover { background: var(--accent-soft); color: var(--accent); }
.gal-credit { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.prose figure, .cmp-preview figure { margin: 18px 0; text-align: center; }
.prose figure img, .cmp-preview figure img { max-width: 100%; border-radius: 12px; }
.prose figcaption { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
@media (max-width: 760px) { .img-search .input { flex-basis: 100%; } .img-search .select { flex: 1; } .img-wrap { grid-template-columns: 1fr; } .img-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; max-height: none; } .img-search { flex-wrap: wrap; } }

/* 一键分发 */
.pub-title { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: var(--fill-2); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.pub-title b { font-size: 15px; }
.pub-tip { font-size: 12.5px; color: var(--warn); background: color-mix(in srgb, var(--warn) 9%, transparent); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }
.pub-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.pub-it { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.pub-it.done { background: color-mix(in srgb, var(--ok) 5%, transparent); }
.pub-info { flex: 1; min-width: 0; }
.pub-info b { font-size: 14px; margin-right: 6px; }
.pub-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.pub-sub .bad { color: var(--err); } .pub-sub .good { color: var(--ok); }
.pub-note { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.pub-act { display: flex; gap: 6px; flex: none; }
.pub-act .btn svg { width: 13px; height: 13px; }
@media (max-width: 640px) { .pub-it { flex-direction: column; align-items: stretch; } .pub-act { flex-wrap: wrap; } }

/* 选题雷达 */
.rd { padding-top: 34px; padding-bottom: 60px; }
.rd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.rd-head h1 { font-size: 34px; margin: 0 0 6px; letter-spacing: -.02em; }
.rd-head p { margin: 0; max-width: 620px; }
.rd-head .segc { min-width: 260px; }
.rd-head .segc button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 14px; }
.rd-head .segc svg { width: 15px; height: 15px; }
.rd-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.rd-card { background: var(--paper-2); border-radius: var(--radius-lg); box-shadow: var(--shadow), 0 0 0 1px var(--line); padding: 18px; }
.rd-card h3 { margin: 0 0 14px; font-size: 16px; }
.rd-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rd-card-head .sp { flex: 1; }
.rd-src { flex-wrap: wrap; }
.rd-src button { flex: none; padding: 5px 10px; }
.rd-list { max-height: 68vh; overflow-y: auto; margin: 0 -6px; }
.rd-it { display: flex; align-items: flex-start; gap: 10px; padding: 8px 6px; border-radius: 10px; }
.rd-it:hover, .rd-it.on { background: var(--fill-2); }
.rd-it .rk { width: 22px; flex: none; text-align: center; font-size: 13px; color: var(--ink-3); padding-top: 2px; }
.rd-it .rk.top { color: var(--seal); }
.rd-tt { flex: 1; min-width: 0; }
.rd-tt button { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; line-height: 1.5; }
.rd-tt button:hover { color: var(--accent); }
.rd-tt p { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-hot { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; padding-top: 3px; }
.rd-it a { color: var(--ink-3); text-decoration: none; padding: 2px 4px; }
.rd-work { position: sticky; top: 76px; }
.ang { border-radius: 14px; box-shadow: 0 0 0 1px var(--line); padding: 12px 14px; margin-top: 10px; }
.ang-t { font-weight: 600; font-size: 15px; margin-bottom: 6px; line-height: 1.5; }
.ang-row { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-bottom: 3px; }
.ang-row b { display: inline-block; font-size: 11px; color: var(--accent); background: var(--accent-soft); border-radius: 5px; padding: 1px 6px; margin-right: 6px; font-weight: 500; }
.ang-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.ang-foot .sp { flex: 1; }
.rd-news { margin-top: 12px; font-size: 12.5px; }
.rd-news summary { cursor: pointer; color: var(--ink-3); }
.rd-news a { display: block; padding: 5px 0; color: var(--ink-2); }
.rd-news a span { display: block; font-size: 11px; color: var(--ink-3); }
.rd-foot { text-align: center; margin-top: 18px; }
.viral-out h4 { font-size: 15px; margin: 18px 0 6px; }
.viral-out h4:first-child { margin-top: 0; }
.viral-out p, .viral-out li { font-size: 13.5px; line-height: 1.7; }
.viral-act { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; position: sticky; bottom: 0; background: var(--paper-2); padding-top: 10px; }
@media (max-width: 900px) { .rd-grid { grid-template-columns: 1fr; } .rd-work { position: static; } .rd-head h1 { font-size: 28px; } }
.img-modal .modal-head h3 { flex: none; }
.rd-src button.off { color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 60%, transparent); }
@media (max-width: 1400px) { .cmp-bar .meta { display: none; } .cmp-bar { gap: 6px; } }
@media (max-width: 1100px) { .cmp-bar .bl { display: none; } }
.dw-lv { display: flex; flex-direction: column; gap: 6px; }
.dw-lv-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--ink-3); }
.dw-lv-head b { font-size: 13px; color: var(--accent); font-weight: 600; }
.dw-lv-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; padding: 2px; background: var(--fill); border-radius: 9px; }
.dw-lv-row button { border: 0; background: transparent; font: inherit; font-size: 12.5px; height: 26px; border-radius: 7px; color: var(--ink-2); cursor: pointer; font-variant-numeric: tabular-nums; padding: 0; }
.dw-lv-row button:hover { color: var(--ink); }
.dw-lv-row button.on { background: var(--paper-2); color: var(--accent); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.dw-lv-tip { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); }
.ck-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ck-counts > div { border-radius: 12px; padding: 10px 6px; text-align: center; background: var(--fill-2); }
.ck-counts b { display: block; font-size: 22px; line-height: 1.1; }
.ck-counts span { font-size: 11.5px; color: var(--ink-3); }
.ck-counts .err b { color: var(--err); } .ck-counts .warn b { color: var(--warn); } .ck-counts .muted b { color: var(--ink-3); }
.story-gate { border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; background: color-mix(in srgb, var(--seal) 8%, var(--paper-2)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--seal) 22%, transparent); }
.story-gate-t { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--seal); }
.story-gate-t svg { width: 15px; height: 15px; }
.story-gate p { margin: 6px 0 10px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.story-gate-act { display: flex; gap: 8px; flex-wrap: wrap; }
.story-gate-act .btn svg { width: 14px; height: 14px; }
.story-field.coach textarea { box-shadow: 0 0 0 3px color-mix(in srgb, var(--seal) 30%, transparent); }

/* 一键分发 v2 */
.pub-modal { max-width: 780px; }
.pub-modal .modal-head h3 small { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-3); margin-top: 3px; }
.pub-hero { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--indigo) 8%, transparent)); margin-bottom: 12px; }
.pub-hero-main { flex: 1; min-width: 0; }
.pub-k { font-size: 12px; color: var(--ink-3); }
.pub-t { font-size: 17px; font-weight: 600; line-height: 1.4; margin-top: 2px; letter-spacing: -.01em; }
.pub-hero-act { display: flex; flex-direction: column; gap: 6px; flex: none; }
.pub-hero-act .btn { justify-content: flex-start; background: var(--paper-2); }
.pub-hero-act .btn svg { width: 14px; height: 14px; }
.pub-steps { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); margin: 0 2px 12px; }
.pub-steps span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pub-steps b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--fill); color: var(--ink-2); }
.pub-steps i { flex: 1; height: 1px; background: var(--line-2); min-width: 12px; max-width: 60px; }
.pub-steps em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; overflow: hidden; }
.pcard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--b); opacity: .85; }
.pcard:hover { box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.pcard.copied { box-shadow: 0 0 0 1.5px var(--accent); }
.pcard.done { background: color-mix(in srgb, var(--ok) 4%, var(--paper-2)); }
.pcard-hd { display: flex; align-items: center; gap: 10px; }
.pav { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 14px; background: var(--b); }
.pcard-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pcard-name b { font-size: 14.5px; }
.pdone { font-size: 11.5px; color: var(--ok); }
.pmark { border: 0; background: transparent; font: inherit; font-size: 12px; color: var(--ink-3); cursor: pointer; padding: 4px 6px; border-radius: 7px; white-space: nowrap; }
.pmark:hover { background: var(--fill-2); color: var(--accent); }
.pcard.done .pmark { color: var(--ok); font-weight: 600; }
.pchips { display: flex; gap: 5px; flex-wrap: wrap; }
.pchip { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--fill-2); color: var(--ink-3); }
.pchip.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.pchip.bad { color: var(--err); background: color-mix(in srgb, var(--err) 9%, transparent); }
.pnote { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.pcard-act { display: flex; gap: 6px; margin-top: auto; }
.pcard-act .btn { flex: 1; justify-content: center; }
.pcard-act .btn svg { width: 13px; height: 13px; }
.pub-foot { margin: 14px 2px 0; text-align: center; }
@media (max-width: 640px) { .pub-grid { grid-template-columns: 1fr; } .pub-hero { flex-direction: column; align-items: stretch; } .pub-hero-act { flex-direction: row; } .pub-steps span:not(:first-child) { display: none; } .pub-steps i { display: none; } }
@media (max-width: 420px) { .topbar .feather-chip { display: none; } }
.menu-pop .show-m-menu { display: none; align-items: center; gap: 6px; }
.menu-pop .show-m-menu svg { width: 15px; height: 15px; color: var(--accent); }
@media (max-width: 420px) { .menu-pop .show-m-menu { display: flex; } }
.btn-outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent); }
.btn-outline .ext { font-size: .85em; opacity: .7; margin-left: -2px; }

/* ===================== 客服浮窗 ===================== */
.cs-pill { position: fixed; right: 0; transform: translateY(-50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 7px 12px 8px; border: 0; border-radius: 14px 0 0 14px; cursor: pointer; color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: 1px; line-height: 1.15;
  background: linear-gradient(180deg, var(--accent), var(--indigo)); box-shadow: -6px 6px 22px color-mix(in srgb, var(--accent) 28%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.cs-pill:hover { transform: translateY(-50%) translateX(-3px); box-shadow: -10px 8px 28px color-mix(in srgb, var(--accent) 36%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25); }
.cs-pill:active { transform: translateY(-50%) scale(.96); }
.cs-pill svg { width: 17px; height: 17px; }
.cs-pill-t { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 761px) { .cs-pill.cs-hide-pc { display: none; } }
@media (max-width: 760px) { .cs-pill.cs-hide-m { display: none; } .cs-pill { padding: 9px 6px 10px 7px; font-size: 12px; } .cs-pill svg { width: 15px; height: 15px; } }
.cs-modal { max-width: 380px; }
.cs-modal .modal-body { display: flex; flex-direction: column; gap: 14px; }
.cs-lbl { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.cs-copy { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line); }
.cs-copy input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-family: var(--mono); font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: .3px; text-overflow: ellipsis; }
.cs-copy button { flex: none; border: 0; border-radius: 8px; padding: 6px 13px; font: inherit; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--accent); cursor: pointer; transition: background .15s; }
.cs-copy button:hover { background: var(--accent-2); }
.cs-copy button.ok { background: var(--ok); }
.cs-qr { display: flex; flex-direction: column; align-items: center; padding: 16px 14px 14px; border-radius: 16px; background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line); }
.cs-qr img { width: 176px; height: 176px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px; box-sizing: content-box; box-shadow: 0 2px 12px rgba(0, 0, 0, .12); }
.cs-qr-hint { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); text-align: center; }
.cs-mail { text-align: center; padding: 22px 16px 16px; border-radius: 16px; background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line); }
.cs-mail-ic { width: 50px; height: 50px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--indigo)); }
.cs-mail-ic svg { width: 22px; height: 22px; }
.cs-mail h4 { margin: 0 0 6px; font-size: 16px; }
.cs-mail p { margin: 0 0 14px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.cs-mail .cs-copy { background: var(--paper-2); text-align: left; }
.cs-mail-foot { display: flex; gap: 6px; align-items: flex-start; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 12px; line-height: 1.6; color: var(--ink-3); text-align: left; }
.cs-mail-foot svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.cs-notice { padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.6; color: var(--warn); background: color-mix(in srgb, var(--warn) 9%, transparent); }
@media (max-width: 760px) { .cs-qr img { width: 140px; height: 140px; } }

/* ===================== 卡密兑换 ===================== */
.rdm-card { background: var(--paper-2); border-radius: var(--radius-lg); box-shadow: var(--shadow), 0 0 0 1px var(--line); padding: 26px; position: relative; overflow: hidden; }
.rdm-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 120px; background: radial-gradient(120% 100% at 0% 0%, var(--accent-soft), transparent 70%); pointer-events: none; }
.rdm-hero { position: relative; display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.rdm-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--indigo)); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); flex: none; }
.rdm-ic svg { width: 24px; height: 24px; }
.rdm-hero b { font-size: 17px; }
.rdm-hero p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-3); }
.rdm-form { position: relative; display: flex; gap: 10px; }
.rdm-input { flex: 1; min-height: 52px; height: 52px; font-family: var(--mono); font-size: 19px; letter-spacing: 2px; text-transform: uppercase; text-align: center; border-radius: 14px; }
.rdm-input::placeholder { letter-spacing: 2px; color: var(--ink-3); opacity: .55; }
.rdm-form .btn-lg { height: 52px; border-radius: 14px; padding: 0 26px; }
.rdm-tools { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.rdm-tools .btn svg { width: 14px; height: 14px; }
.rdm-ok { display: flex; gap: 14px; margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--ok) 8%, var(--paper-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 25%, transparent); }
.rdm-ok.pop { animation: rdmPop .45s var(--ease); }
@keyframes rdmPop { 0% { transform: scale(.96); opacity: 0; } 60% { transform: scale(1.01); opacity: 1; } 100% { transform: scale(1); } }
.rdm-ok-ic { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; background: var(--ok); }
.rdm-ok-ic svg { width: 20px; height: 20px; }
.rdm-ok-main { flex: 1; min-width: 0; }
.rdm-ok-main b { font-size: 16px; color: var(--ok); }
.rdm-ok-main ul { margin: 6px 0 4px; padding-left: 18px; font-size: 14.5px; font-weight: 600; }
.rdm-ok-sub { font-size: 12.5px; color: var(--ink-3); }
.rdm-ok-act { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rdm-notice { margin: 18px 0 0; padding: 14px 16px 14px 32px; border-radius: 14px; background: var(--fill-2); font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 640px) { .rdm-card { padding: 18px; } .rdm-form { flex-direction: column; } .rdm-input { flex: none; width: 100%; font-size: 16px; letter-spacing: 1px; } }
.rdm-strip { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 0 28px; border-radius: 16px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.rdm-strip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--indigo)); flex: none; }
.rdm-strip .ic svg { width: 18px; height: 18px; }
.rdm-strip b { color: var(--ink); margin-right: 6px; }
.rdm-strip .sp { flex: 1; }
.uc-main { min-width: 0; }

/* ── 推广人查看页 ── */
.ps { max-width: 880px; margin: 0 auto; padding: 32px 16px 48px; }
.ps-hd { margin-bottom: 22px; }
.ps-site { font-size: 13px; color: var(--ink-3); letter-spacing: .02em; }
.ps-hd h1 { margin: 4px 0 16px; font-size: 28px; overflow-wrap: anywhere; }
.ps-warn { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); padding: 10px 14px; border-radius: 12px; font-size: 13.5px; }
.ps-link { display: flex; gap: 8px; }
.ps-link .input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; }
.ps-link .btn { flex: none; }
.ps-tip { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 0; line-height: 1.6; }
.ps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.ps-card { background: var(--paper-2); border-radius: 18px; padding: 16px; box-shadow: 0 0 0 1px var(--line); }
.ps-card-all { background: color-mix(in srgb, var(--accent) 6%, var(--paper-2)); }
.ps-card-t { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.ps-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; }
.ps-nums b { display: block; font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.ps-nums span { font-size: 12px; color: var(--ink-3); }
.ps-card-f { font-size: 12px; color: var(--ink-3); margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.ps-box { background: var(--paper-2); border-radius: 18px; padding: 18px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 14px; }
.ps-box h2 { font-size: 16px; margin: 0 0 12px; }
.ps-box h2 small { font-size: 12px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.ps-comm { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ps-comm > div { background: var(--fill); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ps-comm span { font-size: 12px; color: var(--ink-3); }
.ps-comm b { font-size: 18px; }
.ps-comm small { font-size: 11.5px; color: var(--ink-3); }
.ps-comm-due { background: color-mix(in srgb, var(--accent) 10%, transparent) !important; }
.ps-comm-due b { color: var(--accent); }
.ps-foot { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 18px; }
@media (max-width: 700px) {
  .ps-grid { grid-template-columns: minmax(0, 1fr); }
  .ps-comm { grid-template-columns: 1fr 1fr; }
  .ps-hd h1 { font-size: 23px; }
  .ps-link { flex-direction: column; }
  .ps-link .input { flex: none; height: 44px; }
}

/* ── 全站暂停：会调用 AI 的按钮变灰（点击由 app.js 拦下并提示） ── */
.svc-site-paused :is([data-svc-gate], #cTplGo, #cPolish, #cImg, [data-op], [data-ask], [data-gate-ask], [data-gate-skip], [data-write], [data-sop], [data-add-sec], [data-img-sec], [data-ck-go], [data-ck-fix], [data-gcover], #iGen, #iSearch, #iWrite, #kDewater, #kGo, #rSearch, #rPasteGo, #sAnalyze, #wAll, #wDewater, #wOutline, #wShort, #rdGo, #vGo, #vFetch, #uGo, [data-tpl], [data-use-ang], [data-topic], #vUse, #lAi) {
  opacity: .42; filter: grayscale(.6); cursor: not-allowed !important; box-shadow: none !important;
}
.svc-alert.is-site { background: color-mix(in srgb, var(--lv) 13%, var(--paper)); font-size: 14.5px; }
.svc-alert.is-site .container { padding-top: 12px; padding-bottom: 12px; }
.svc-alert.is-site [data-svc-msg] { font-weight: 600; }
.svc-alert-admin { font-size: 12px; color: var(--ink-3); background: var(--fill); border-radius: 999px; padding: 2px 10px; }
.svc-site-paused .hero-svc { font-size: 15px; padding: 10px 18px; }

/* ── 润色工作台：锁定词 + 原意核对结果 ── */
.lock-row { display: flex; align-items: center; gap: 8px; max-width: 760px; margin: 14px auto 0; }
.lock-row .lock-ic { color: var(--ink-3); display: inline-flex; }
.lock-row .lock-ic svg { width: 16px; height: 16px; }
.lock-row .input { height: 36px; font-size: 13.5px; flex: 1; min-width: 0; }
.guard-note { max-width: 760px; margin: 10px auto 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.gn-sec { border-radius: 14px; padding: 12px 14px; background: color-mix(in srgb, var(--ok) 8%, var(--paper-2)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ok) 22%, transparent); }
.gn-warn { background: color-mix(in srgb, var(--warn) 9%, var(--paper-2)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--warn) 26%, transparent); }
.gn-head { font-weight: 600; color: var(--ok); }
.gn-warn .gn-head { color: var(--warn); }
.gn-sec details summary { cursor: pointer; color: var(--ink-3); margin-top: 6px; font-size: 12.5px; }
.gn-sec ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.gn-sec li { background: var(--paper-2); border-radius: 10px; padding: 8px 10px; }
.gn-why { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.gn-line { line-height: 1.7; color: var(--ink-2); }
.gn-line span { display: inline-block; font-size: 11.5px; color: var(--ink-3); background: var(--fill); border-radius: 6px; padding: 0 6px; margin-right: 6px; }
.gn-new { color: var(--ink); }

/* ── 友情链接 ── */
.fl-foot { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 18px; font-size: 12.5px; justify-content: flex-start !important; }
.fl-foot::before { content: ""; flex-basis: 100%; border-top: 1px dashed var(--line); margin-bottom: 8px; }
.fl-foot-k { color: var(--ink-2); font-weight: 500; }
.fl-foot a { color: var(--ink-3); }
.fl-foot a:hover { color: var(--accent); }
.fl-foot .fl-foot-apply { color: var(--accent); margin-left: auto; }
.fl-page { max-width: 1040px; padding-top: 48px; }
.fl-hero { text-align: center; margin-bottom: 32px; }
.fl-hero h1 { font-size: 34px; margin: 0 0 10px; letter-spacing: -.01em; }
.fl-hero p { color: var(--ink-3); margin: 0; }
.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.fl-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--paper-2); border-radius: 16px; box-shadow: 0 0 0 1px var(--line); color: var(--ink); transition: transform .18s var(--ease), box-shadow .18s; min-width: 0; }
.fl-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); color: var(--ink); }
.fl-av { width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, var(--accent), var(--indigo)); color: #fff; font-weight: 600; font-size: 17px; }
.fl-av img { width: 100%; height: 100%; object-fit: cover; background: var(--paper); }
.fl-txt { display: flex; flex-direction: column; min-width: 0; }
.fl-txt b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-txt small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.fl-empty { text-align: center; color: var(--ink-3); padding: 36px 0; background: var(--paper-2); border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.fl-join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; margin-top: 40px; align-items: start; scroll-margin-top: 80px; }
.fl-me-card, .fl-form { background: var(--paper-2); border-radius: 20px; padding: 22px; box-shadow: 0 0 0 1px var(--line); }
.fl-join h2 { font-size: 19px; margin: 0 0 4px; }
.fl-join h3 { font-size: 14.5px; margin: 18px 0 8px; }
.fl-join .muted { font-size: 13px; margin: 0 0 14px; }
.fl-me-card dl { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fl-me-card dl > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; align-items: center; }
.fl-me-card dt { font-size: 12.5px; color: var(--ink-3); }
.fl-me-card dd { margin: 0; display: flex; align-items: center; gap: 6px; background: var(--fill); border-radius: 10px; padding: 6px 6px 6px 10px; min-width: 0; }
.fl-me-card dd span { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-copy { flex: none; border: 0; background: var(--paper-2); color: var(--accent); border-radius: 7px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.fl-rules { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.fl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fl-done { background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ok); border-radius: 12px; padding: 14px; font-size: 14px; line-height: 1.7; }
@media (max-width: 760px) {
  .fl-page { padding-top: 28px; }
  .fl-hero h1 { font-size: 27px; }
  .fl-join { grid-template-columns: minmax(0, 1fr); }
  .fl-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .fl-card { padding: 12px; gap: 10px; }
  .fl-av { width: 34px; height: 34px; font-size: 15px; }
  .fl-foot .fl-foot-apply { margin-left: 0; }
  .footer .container.fl-foot { flex-direction: row; gap: 6px 14px; }   /* 页脚其它块在手机上是竖排，友链保持横排自动换行 */
  .fl-foot.fl-foot-nom { display: none !important; }
}

/* ── 文章动态：列表 ── */
.bl-page { max-width: 1080px; padding-top: 28px; }
.bl-crumb { font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.bl-crumb a { color: var(--ink-3); }
.bl-crumb a:hover { color: var(--accent); }
.bl-crumb b { color: var(--ink-2); font-weight: 500; }
.bl-hero { margin-bottom: 22px; }
.bl-hero h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.02em; margin: 0 0 8px; }
.bl-hero p { color: var(--ink-2); margin: 0; font-size: 16px; max-width: 720px; }
.bl-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.bl-cats a { padding: 6px 14px; border-radius: 999px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); color: var(--ink-2); font-size: 13.5px; }
.bl-cats a:hover { color: var(--ink); }
.bl-cats a.on { background: var(--ink); color: var(--paper); box-shadow: none; }
.bl-cats .bl-rss { margin-left: auto; background: transparent; box-shadow: none; color: var(--ink-3); font-size: 12.5px; }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bl-card { position: relative; background: var(--paper-2); border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s; }
.bl-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-lg); }
.bl-card-link { position: absolute; inset: 0; z-index: 1; }
.bl-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--fill); }
.bl-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.bl-card:hover .bl-cover img { transform: scale(1.03); }
.bl-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bl-card.no-img .bl-card-body { padding-top: 20px; }
.bl-meta { display: flex; gap: 10px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.bl-meta span { color: var(--accent); }
.bl-meta .bl-pin { color: #fff; background: var(--warn); border-radius: 5px; padding: 0 6px; }
.bl-card h3 { font-size: 17px; line-height: 1.45; margin: 0; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-empty { text-align: center; color: var(--ink-3); padding: 60px 0; background: var(--paper-2); border-radius: 20px; box-shadow: 0 0 0 1px var(--line); }
.bl-pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 32px; font-size: 14px; color: var(--ink-3); }
.bl-pager a { padding: 8px 16px; border-radius: 999px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.bl-preview-bar { background: color-mix(in srgb, var(--warn) 14%, var(--paper)); color: var(--ink); text-align: center; padding: 9px 16px; font-size: 13.5px; }

/* ── 文章动态：文章页 ── */
.ar-page { max-width: 760px; padding-top: 28px; }
.ar-page.has-toc { max-width: 1080px; display: grid; grid-template-columns: minmax(0, 1fr) 220px; column-gap: 48px; }
.ar-page.has-toc .bl-crumb, .ar-page.has-toc .ar-related { grid-column: 1 / -1; }
.ar-article { min-width: 0; }
.ar-head h1 { font-size: clamp(27px, 3.6vw, 38px); line-height: 1.3; letter-spacing: -.02em; margin: 0 0 14px; }
.ar-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-3); margin-bottom: 26px; }
.ar-cover { margin: 0 0 26px; border-radius: 18px; overflow: hidden; background: var(--fill); }
.ar-cover img { width: 100%; display: block; }
.ar-tldr { background: color-mix(in srgb, var(--accent) 7%, var(--paper-2)); border-radius: 16px; padding: 16px 20px; margin-bottom: 26px; box-shadow: inset 3px 0 0 var(--accent); }
.ar-tldr-t { font-weight: 600; font-size: 14px; color: var(--accent); margin-bottom: 6px; }
.ar-tldr ul { margin: 0; padding-left: 20px; }
.ar-tldr li { line-height: 1.8; font-size: 15px; }
.ar-toc-inline { display: none; background: var(--paper-2); border-radius: 14px; padding: 12px 16px; margin-bottom: 24px; box-shadow: 0 0 0 1px var(--line); }
.ar-toc-inline summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.ar-toc-inline ol, .ar-toc ol { list-style: none; margin: 8px 0 0; padding: 0; }
.ar-toc-inline li, .ar-toc li { font-size: 13.5px; line-height: 1.6; padding: 3px 0; }
.ar-toc-inline li.lv3, .ar-toc li.lv3 { padding-left: 14px; font-size: 13px; }
.ar-toc-inline a, .ar-toc a { color: var(--ink-2); }
.ar-toc { position: sticky; top: 88px; align-self: start; padding-top: 6px; max-height: calc(100vh - 110px); overflow: auto; }
.ar-toc-t { font-size: 12.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; margin-bottom: 4px; }
.ar-toc a { display: block; border-left: 2px solid var(--line); padding-left: 10px; margin-left: 0; }
.ar-toc a:hover { color: var(--ink); }
.ar-toc a.on { color: var(--accent); border-left-color: var(--accent); }
.article-body { font-size: 16.5px; line-height: 1.95; color: var(--ink); overflow-wrap: anywhere; }
.article-body > * + * { margin-top: 1em; }
.article-body p { margin: 0; }
.article-body p + p { margin-top: .9em; }
.article-body h2 { font-size: 23px; line-height: 1.4; margin: 1.9em 0 .7em; letter-spacing: -.01em; scroll-margin-top: 84px; }
.article-body h3 { font-size: 19px; margin: 1.6em 0 .6em; scroll-margin-top: 84px; }
.article-body h4 { font-size: 17px; margin: 1.4em 0 .5em; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: .9em 0; }
.article-body li + li { margin-top: .35em; }
.article-body blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line-2); color: var(--ink-2); }
.article-body figure { margin: 1.4em 0; text-align: center; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.article-body figcaption { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body code { font-family: var(--mono); font-size: .88em; background: var(--fill); padding: 1px 6px; border-radius: 6px; }
.article-body pre { background: var(--fill); padding: 14px 16px; border-radius: 12px; overflow: auto; font-size: 13.5px; line-height: 1.7; }
.article-body pre code { background: none; padding: 0; }
.article-body mark { background: color-mix(in srgb, var(--warn) 30%, transparent); color: inherit; padding: 0 2px; border-radius: 3px; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.article-body .md-table { overflow-x: auto; margin: 1.2em 0; }
.article-body table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.article-body th { background: var(--fill); font-weight: 600; }
.article-body .md-box { border-radius: 14px; padding: 14px 18px; background: var(--fill); margin: 1.3em 0; }
.article-body .md-box-t { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.article-body .md-quote { background: color-mix(in srgb, var(--indigo) 8%, var(--paper-2)); font-size: 17.5px; font-weight: 500; }
.article-body .md-warn { background: color-mix(in srgb, var(--warn) 10%, var(--paper-2)); }
.article-body .md-warn .md-box-t { color: var(--warn); }
.ar-faq { margin-top: 40px; }
.ar-faq h2 { font-size: 22px; margin: 0 0 12px; }
.ar-faq details { background: var(--paper-2); border-radius: 14px; padding: 12px 16px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 10px; }
.ar-faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; }
.ar-faq-a { margin-top: 8px; color: var(--ink-2); line-height: 1.85; font-size: 15px; }
.ar-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.ar-tags a { font-size: 13px; color: var(--ink-2); background: var(--fill); border-radius: 999px; padding: 4px 12px; }
.ar-cta { display: flex; gap: 18px; align-items: center; margin-top: 32px; padding: 20px 22px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--paper-2)), color-mix(in srgb, var(--indigo) 10%, var(--paper-2))); }
.ar-cta > div { flex: 1; min-width: 0; }
.ar-cta b { font-size: 16.5px; }
.ar-cta p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); }
.ar-cta .btn { flex: none; }
.ar-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.ar-nav a { background: var(--paper-2); border-radius: 14px; padding: 12px 16px; box-shadow: 0 0 0 1px var(--line); color: var(--ink); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ar-nav a.nx { text-align: right; grid-column: 2; }
.ar-nav small { color: var(--ink-3); font-size: 12px; }
.ar-nav span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ar-related { margin-top: 48px; }
.ar-related h2 { font-size: 22px; margin: 0 0 16px; }
@media (max-width: 960px) {
  .ar-page.has-toc { display: block; max-width: 760px; }
  .ar-toc { display: none; }
  .ar-toc-inline { display: block; }
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .bl-grid { grid-template-columns: minmax(0, 1fr); }
  .bl-grid-home .bl-card:nth-child(n+4) { display: none; }
  .article-body { font-size: 16px; }
  .ar-cta { flex-direction: column; align-items: stretch; }
  .ar-nav { grid-template-columns: 1fr; }
  .ar-nav a.nx { grid-column: 1; }
}
.gn-sub { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* ── 润色工作台：核对进行中 ── */
.guard-busy { position: sticky; top: 56px; z-index: 6; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 16px; font-size: 13px; font-weight: 500; color: var(--accent); background: linear-gradient(color-mix(in srgb, var(--accent) 9%, transparent), color-mix(in srgb, var(--accent) 9%, transparent)), var(--paper-2); box-shadow: 0 6px 12px -8px rgba(0, 0, 0, .18); border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.guard-busy small { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.gb-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); border-top-color: var(--accent); animation: gbSpin .8s linear infinite; flex: none; }
@keyframes gbSpin { to { transform: rotate(360deg); } }
#dstPane.is-busy .pane-foot .icon-btn, #dstPane.is-busy .pane-foot .btn { opacity: .4; cursor: not-allowed; }
#statusLine { scroll-margin-bottom: 20px; }
@media (max-width: 760px) { .guard-busy { top: 52px; } }

/* =========================================================
   v2.0 社区版：用户组徽章、付费墙、评论、官网页面、工具区、会员页
   ========================================================= */
.grp-badge { --g: #6c757d; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1; white-space: nowrap; color: var(--g); background: color-mix(in srgb, var(--g) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g) 26%, transparent); vertical-align: middle; }
.adm-dot { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; margin-left: auto; border-radius: 999px; background: var(--err); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; }
.link-btn { border: 0; background: none; padding: 0; margin-left: 6px; font: inherit; font-size: 12.5px; color: var(--accent); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.label { display: block; font-size: 13px; color: var(--ink-2); font-weight: 500; margin: 14px 0 6px; }
.err { color: var(--err); }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: ybspin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes ybspin { to { transform: rotate(360deg); } }

/* ---------- 文章页：等级标签、付费墙 ---------- */
.ar-lvtag { --g: #e6a23c; color: var(--g); font-weight: 600; }
.article-body.is-cut { position: relative; max-height: none; }
.article-body.is-cut::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(to bottom, transparent, var(--paper)); pointer-events: none; }
.ar-locked { margin: 8px 0 36px; }
.pw-card { position: relative; text-align: center; padding: 34px 28px 28px; border-radius: var(--radius-lg); background: var(--paper-2); box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: hidden; }
.pw-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #ff9f0a, #ff375f 50%, #5e5ce6); opacity: .85; }
.pw-ic { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff9f0a, #ff375f); box-shadow: 0 10px 24px -10px #ff375f; }
.pw-ic svg { width: 26px; height: 26px; }
.pw-card h3 { font-size: 20px; margin-bottom: 10px; }
.pw-card p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 4px; }
.pw-card .pw-meta { color: var(--ink-3); font-size: 13px; margin-top: 10px; }
.pw-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 20px 0 6px; }
.pw-note { font-size: 12.5px !important; color: var(--ink-3) !important; margin-top: 12px !important; line-height: 1.7; }

/* ---------- 评论 ---------- */
.cm { grid-column: 1 / -1; max-width: 760px; width: 100%; margin: 12px 0 40px; }
.has-toc .cm { grid-column: 1; }
.cm h2 { font-size: 22px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.cm-count { font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--fill-2); padding: 2px 9px; border-radius: 999px; }
.cm-login { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); color: var(--ink-2); font-size: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.cm-form { display: flex; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); margin-bottom: 22px; }
.cm-form .cm-field { flex: 1; min-width: 0; }
.cm-form textarea { width: 100%; resize: vertical; min-height: 84px; border: 0; background: var(--fill-2); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14.5px; color: var(--ink); outline: none; transition: box-shadow .2s, background .2s; }
.cm-form textarea:focus { background: var(--paper-2); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent); }
.cm-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; }
.cm-replying { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.cm-replying button { border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; font-size: 12.5px; }
.cm-av .avatar { width: 36px; height: 36px; font-size: 14px; }
.cm-item { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.cm-list > .cm-item:first-child { border-top: 0; }
.cm-item.is-pending { opacity: .75; }
.cm-main { flex: 1; min-width: 0; }
.cm-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.cm-name { font-size: 14px; color: var(--ink); }
.cm-head time { color: var(--ink-3); font-size: 12.5px; }
.cm-flag { font-size: 11.5px; color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); padding: 2px 7px; border-radius: 6px; }
.cm-flag.err { color: var(--err); background: color-mix(in srgb, var(--err) 10%, transparent); }
.cm-body { margin-top: 4px; font-size: 14.5px; line-height: 1.75; color: var(--ink); word-break: break-word; }
.cm-reply-btn { border: 0; background: none; padding: 0; margin-top: 4px; font: inherit; font-size: 12.5px; color: var(--ink-3); cursor: pointer; }
.cm-reply-btn:hover { color: var(--accent); }
.cm-replies { margin-top: 8px; padding-left: 14px; border-left: 2px solid var(--line); }
.cm-replies .cm-item { padding: 10px 0; }
.cm-replies .cm-av .avatar { width: 28px; height: 28px; font-size: 12px; }
.cm-empty { padding: 18px 0; font-size: 14px; }

/* ---------- 社区列表 ---------- */
.bl-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.bl-search { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); min-width: 240px; color: var(--ink-3); }
.bl-search svg { width: 16px; height: 16px; flex: none; }
.bl-search input { border: 0; background: none; outline: none; font: inherit; font-size: 14px; color: var(--ink); width: 100%; }
.bl-search:focus-within { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft); }
.bl-subcats { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 22px; }
.bl-subcats a { font-size: 13px; padding: 4px 12px; border-radius: 999px; color: var(--ink-2); background: var(--fill-2); }
.bl-subcats a.on, .bl-subcats a:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.bl-lock, .bl-cm { display: inline-flex; align-items: center; gap: 3px; }
.bl-lock { color: #c27c0e; }
.bl-lock svg, .bl-cm svg { width: 12px; height: 12px; }

/* ---------- 官网 / 定制 / 联系 / 关于（st-*） ---------- */
.st { padding-bottom: 40px; }
.st-hero { padding: 72px 22px 40px; }
.st-hero-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.st-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin-bottom: 18px; }
.st-h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; margin: 0 0 22px; }
.st-h1 span { display: block; }
.st-grad { background: linear-gradient(100deg, #0071e3, #5e5ce6 45%, #bf5af2); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .st-grad { background-image: linear-gradient(100deg, #409cff, #7d7aff 45%, #da8fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st-grad { background-image: linear-gradient(100deg, #409cff, #7d7aff 45%, #da8fff); } }
.st-lede { font-size: 17px; line-height: 1.8; color: var(--ink-2); max-width: 40em; margin: 0 0 12px; }
.st-lede.strong { font-size: 19px; color: var(--ink); }
.st-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.st-facts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.st-facts div { padding: 14px 18px; border-radius: 16px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); min-width: 140px; }
.st-facts b { display: block; font-size: 22px; letter-spacing: -.02em; }
.st-facts span { font-size: 13px; color: var(--ink-3); }
.st-sec { padding-top: 56px; padding-bottom: 8px; }
.st-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 8px; }
.st-h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.025em; margin: 0 0 14px; }
.st-p { font-size: 16px; line-height: 1.8; color: var(--ink-2); max-width: 46em; }
.st-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.st-head-row .st-p { margin: 0; }
.st-card { padding: 22px; border-radius: var(--radius-lg); background: var(--paper-2); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.st-card h3 { font-size: 17px; margin-bottom: 12px; }
.st-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.st-kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.st-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.st-points-4 { grid-template-columns: repeat(4, 1fr); }
.st-point { padding: 22px; border-radius: var(--radius-lg); background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.st-point i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.st-point h3 { font-size: 17px; margin: 8px 0 6px; }
.st-point p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.7; }
.st-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.st-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.st-steps i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, #0a84ff, #5e5ce6); }
.st-steps b { font-size: 15px; }
.st-steps p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.st-list { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.st-list li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.st-list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--ink-3); }
.st-list.ok li::before { background: var(--ok); }
.st-list.no li::before { background: var(--err); border-radius: 50%; transform: none; }
.st-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.st-mini-item { display: block; padding: 16px 18px; border-radius: 16px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); color: inherit; transition: transform .2s var(--ease), box-shadow .2s; }
a.st-mini-item:hover { transform: translateY(-2px); box-shadow: var(--shadow), 0 0 0 1px var(--line); text-decoration: none; color: inherit; }
.st-mini-item b { display: block; font-size: 15px; margin-bottom: 4px; }
.st-mini-item span { font-size: 13.5px; color: var(--ink-2); }
.st-faq { max-width: 860px; }
.st-cta { text-align: center; padding: 48px 24px; border-radius: 28px; background: radial-gradient(120% 140% at 50% 0%, var(--accent-soft), transparent 60%), var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.st-cta .st-p { margin: 0 auto 6px; }
.st-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 22px; text-align: left; }
.st-contact { padding: 14px 16px; border-radius: 16px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.st-contact small { display: block; font-size: 12px; color: var(--ink-3); }
.st-contact b, .st-contact a { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.st-contact span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.st-copy { border: 0; background: var(--fill-2); color: var(--accent); font: inherit; font-size: 12px; padding: 2px 8px; border-radius: 6px; cursor: pointer; vertical-align: 2px; }
.st-qr { margin: 0; justify-self: center; text-align: center; padding: 18px; border-radius: 24px; background: var(--paper-2); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.st-qr img { width: 220px; height: 220px; object-fit: contain; border-radius: 12px; background: #fff; display: block; }
.st-qr figcaption { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.st-domains { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.st-domains span { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 14px; border-radius: 999px; background: var(--fill-2); font-size: 13.5px; }
.st-domains small { color: var(--ink-3); }
.st-me { padding: 24px; border-radius: 24px; background: var(--paper-2); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.st-me-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.st-me-av { width: 56px; height: 56px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #0a84ff, #5e5ce6); color: #fff; font-size: 22px; font-weight: 700; flex: none; }
.st-me-av img { width: 100%; height: 100%; object-fit: cover; }
.st-me-top b { display: block; font-size: 18px; }
.st-me-top small { color: var(--ink-3); font-size: 13px; }
.st-me ul { margin: 0 0 12px; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.9; }
.st-me p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.st-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.st-dl dt { color: var(--ink-3); }
.st-dl dd { margin: 0; }
.st-stmt p { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }
.st-closing { text-align: center; }
.st-closing p { font-size: 16px; color: var(--ink-2); margin: 0 0 6px; }
.st-closing .st-sign { margin-top: 14px; color: var(--ink-3); font-size: 14px; }
/* 定制 · 产品卡 */
.st-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 20px; align-items: stretch; }
.st-prod { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: 24px; background: var(--paper-2); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.st-prod.is-hot { box-shadow: var(--shadow-lg), 0 0 0 2px var(--accent); }
.st-ribbon { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.st-prod-top { display: flex; gap: 12px; align-items: center; }
.st-prod-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--fill-2); }
.st-prod-top h3 { font-size: 19px; margin: 0; }
.st-prod-top small { font-size: 12.5px; color: var(--ink-3); }
.st-prod-desc { font-size: 14px; color: var(--ink-2); line-height: 1.75; margin: 14px 0; }
.st-price { display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; margin-bottom: 14px; }
.st-price span { font-size: 18px; font-weight: 600; }
.st-price b { font-size: 38px; letter-spacing: -.03em; }
.st-price em { font-style: normal; font-size: 14px; color: var(--ink-3); margin-right: 8px; }
.st-price small { width: 100%; font-size: 12.5px; color: var(--ink-3); }
.st-spec { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px; }
.st-spec td { padding: 7px 4px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.st-spec td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.st-spec td.num { white-space: nowrap; font-weight: 600; color: var(--ink); }
.st-more { margin: 4px 0 14px; font-size: 13.5px; }
.st-more summary { cursor: pointer; color: var(--accent); font-size: 13px; }
.st-kv { margin-top: 10px; }
.st-kv b { font-size: 13px; }
.st-kv ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); line-height: 1.75; }

/* ---------- 首页（hm-*） ---------- */
.hm-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 44px; align-items: center; padding-top: 64px; }
.hm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hm-h1 span { white-space: nowrap; }
.hm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 26px; margin: 34px 0 0; max-width: 520px; }
.hm-facts dt { font-size: 12px; color: var(--ink-3); }
.hm-facts dd { margin: 0; font-size: 15px; font-weight: 600; }
.hm-visual { position: relative; min-height: 380px; }
.hm-win { position: relative; margin: 20px auto 0; max-width: 440px; border-radius: 22px; background: var(--glass); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); overflow: hidden; }
.hm-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.hm-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.hm-bar i:nth-child(2) { background: #febc2e; } .hm-bar i:nth-child(3) { background: #28c840; }
.hm-bar em { font-style: normal; margin-left: 8px; }
.hm-flow { padding: 18px; display: grid; gap: 8px; }
.hm-stage { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--fill-2); font-size: 14px; color: var(--ink-2); transition: background .5s var(--ease), color .5s, transform .5s var(--ease); }
.hm-stage b { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hm-stage.on { background: linear-gradient(100deg, #0a84ff, #5e5ce6); color: #fff; transform: translateX(6px); box-shadow: 0 10px 24px -12px #5e5ce6; }
.hm-stage.on b { color: rgba(255, 255, 255, .75); }
.hm-note { margin: 0 18px 18px; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.hm-chip { display: inline-block; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 999px; margin-right: 6px; }
.hm-float { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--paper-2); box-shadow: var(--shadow), 0 0 0 1px var(--line); animation: hmfloat 6s ease-in-out infinite; }
.hm-float svg { width: 16px; height: 16px; color: var(--accent); }
.hm-float.f1 { top: 0; left: 0; } .hm-float.f2 { top: 46%; right: -6px; animation-delay: -2s; } .hm-float.f3 { bottom: 0; left: 12%; animation-delay: -4s; }
@keyframes hmfloat { 50% { transform: translateY(-8px); } }
.hm-courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 22px; }
.hm-course { display: flex; flex-direction: column; padding: 24px; border-radius: 24px; background: var(--paper-2); box-shadow: var(--shadow), 0 0 0 1px var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.hm-course:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.hm-course-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; background: var(--fill-2); margin-bottom: 14px; }
.hm-course h3 { font-size: 19px; margin-bottom: 8px; }
.hm-course p { font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.hm-course ul { margin: 0 0 14px; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }
.hm-for { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.hm-for small { display: block; color: var(--ink-3); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; }
.hm-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.hm-formats div { padding: 16px; border-radius: 16px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.hm-formats b { display: block; font-size: 15px; margin-bottom: 4px; }
.hm-formats span { font-size: 13.5px; color: var(--ink-2); }
.hm-tools-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }
.hm-tools-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* ---------- 工具区 ---------- */
.tl-page { padding-top: 40px; padding-bottom: 60px; }
.tl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.tl-head h1 { font-size: 34px; letter-spacing: -.025em; margin: 0 0 4px; }
.tl-head p { margin: 0; }
.tl-me { display: flex; align-items: center; gap: 10px; }
.tl-me small { color: var(--ink-3); }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tl-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); color: inherit; transition: transform .2s var(--ease), box-shadow .2s; }
.tl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); text-decoration: none; color: inherit; }
.tl-card.is-locked { opacity: .72; }
.tl-ic { --c1: #0a84ff; --c2: #5e5ce6; flex: none; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 22px -12px var(--c2), inset 0 1px 0 rgba(255, 255, 255, .25); }
.tl-ic svg { width: 26px; height: 26px; }
.tl-txt { flex: 1; min-width: 0; }
.tl-txt b { display: block; font-size: 16px; }
.tl-txt small { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.55; margin-top: 2px; }
.tl-go { color: var(--ink-3); }
.tl-go svg { width: 18px; height: 18px; }
.tl-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.tl-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; padding: 7px 14px; border-radius: 999px; background: var(--fill-2); color: var(--ink-2); }
.tl-links a:hover { color: var(--accent); text-decoration: none; }
.tl-links svg { width: 15px; height: 15px; }
.tl-empty { text-align: center; padding: 64px 24px; border-radius: 28px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); max-width: 780px; margin: 0 auto; }
.tl-empty-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #8e8e93, #48484a); }
.tl-empty-ic svg { width: 30px; height: 30px; }
.tl-empty h2 { font-size: 26px; }
.tl-empty p { color: var(--ink-2); max-width: 32em; margin: 0 auto; }
/* 工具页通用 */
.tool-page { padding-top: 32px; padding-bottom: 60px; }
.tool-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.tool-head > div { flex: 1; min-width: 220px; }
.tool-head h1 { font-size: 26px; margin: 0 0 2px; }
.tool-head p { margin: 0; font-size: 14px; }
.tool-split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.tool-side { position: sticky; top: 76px; }
.tool-side .btn-block { margin-top: 12px; }
.tool-main { min-height: 480px; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.tool-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tool-bar .sp { flex: 1; }
.tool-out { flex: 1; overflow: auto; }
.tool-empty { padding: 60px 20px; text-align: center; font-size: 14px; }
.tool-opts { display: grid; gap: 2px; margin: 14px 0 4px; }
.tool-opts .opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13.5px; color: var(--ink-2); border-top: 1px solid var(--line); }
.tool-opts .opt:first-child { border-top: 0; }
.tool-opts select, .tool-opts input[type=number] { height: 30px; border: 0; background: var(--fill-2); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 13px; color: var(--ink); max-width: 190px; }
.opt-pair { display: inline-flex; align-items: center; gap: 4px; }
.opt-pair input { width: 70px; }
.opt-pair i { font-style: normal; color: var(--ink-3); }
.tool-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.tool-stats b { color: var(--ink); }
.tool-pick { height: 30px; border: 0; background: var(--fill-2); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 13px; max-width: 220px; }
.seg { display: inline-flex; background: var(--fill); border-radius: 9px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink-2); padding: 5px 12px; border-radius: 7px; cursor: pointer; }
.seg button.on { background: var(--paper-2); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); font-weight: 500; }
.seg-block { display: flex; }
.seg-block button { flex: 1; }
.chip.soft { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.chip.soft.on { background: var(--accent); box-shadow: none; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border-radius: 16px; border: 1.5px dashed var(--line-2); text-align: center; cursor: pointer; color: var(--ink-3); transition: border-color .2s, background .2s, color .2s; }
.drop svg { width: 28px; height: 28px; margin-bottom: 4px; }
.drop b { color: var(--ink); font-size: 14px; }
.drop small { font-size: 12px; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
input.switch { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--fill); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
input.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
input.switch:checked { background: var(--ok); }
input.switch:checked::after { transform: translateX(16px); }
.w2m-files { display: grid; gap: 6px; margin-top: 10px; }
.w2m-file { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--fill-2); font-size: 12.5px; }
.w2m-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.w2m-file small { color: var(--ink-3); }
.w2m-file em { font-style: normal; color: var(--ink-3); }
.w2m-file em.ok { color: var(--ok); } .w2m-file em.err { color: var(--err); }
.w2m-file button, .aud-top button { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 16px; line-height: 1; }
.w2m-md { margin: 0; padding: 18px 20px; font: 13px/1.75 var(--mono); white-space: pre-wrap; word-break: break-word; color: var(--ink); background: transparent; min-height: 420px; }
.w2m-html { padding: 18px 22px; }
.aud-list { padding: 12px 16px; display: grid; gap: 10px; }
.aud-item { padding: 12px 14px; border-radius: 14px; background: var(--fill-2); }
.aud-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.aud-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aud-top small { color: var(--ink-3); }
.aud-bar { height: 4px; border-radius: 4px; background: var(--fill); margin: 10px 0; overflow: hidden; }
.aud-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff6482, #bf5af2); transition: width .3s; }
.aud-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.aud-act audio { height: 32px; flex: 1; min-width: 200px; }
.mus-list { padding: 12px 16px; display: grid; gap: 12px; }
.mus-item { padding: 14px; border-radius: 16px; background: var(--fill-2); }
.mus-head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 10px; }
.mus-p { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.mus-clip { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--paper-2); margin-top: 8px; }
.mus-clip img, .mus-cover { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: linear-gradient(135deg, #ff375f, #ff9f0a); }
.mus-c { flex: 1; min-width: 0; display: grid; gap: 4px; }
.mus-c small { color: var(--ink-3); font-size: 12px; }
.mus-c audio { width: 100%; height: 32px; }
.mus-c .btn { justify-self: start; }
.mus-wait, .img-wait { padding: 16px; font-size: 13.5px; color: var(--ink-2); }
.badge.s0, .badge.s1 { background: var(--accent-soft); color: var(--accent); }
.badge.s2 { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.badge.s3 { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.img-grid { padding: 14px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; align-content: start; }
.img-item { margin: 0; border-radius: 16px; overflow: hidden; background: var(--fill-2); }
.img-box { display: grid; gap: 2px; min-height: 160px; place-items: center; }
.img-box img { width: 100%; display: block; aspect-ratio: auto; }
.img-item figcaption { padding: 10px 12px; font-size: 12.5px; color: var(--ink-2); display: flex; gap: 6px; align-items: flex-start; line-height: 1.5; }

/* ---------- 会员页 ---------- */
.gp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; align-items: stretch; }
.gp-card { --g: #e6a23c; display: flex; flex-direction: column; padding: 26px; border-radius: 26px; background: var(--paper-2); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.gp-card.is-main { box-shadow: var(--shadow-lg), 0 0 0 2px var(--g); }
.gp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gp-top .grp-badge { height: 24px; font-size: 13px; padding: 0 12px; }
.gp-hint { font-size: 12px; color: var(--ink-3); }
.gp-price { display: flex; align-items: baseline; gap: 2px; margin: 18px 0 14px; }
.gp-price span { font-size: 20px; font-weight: 600; }
.gp-price b { font-size: 44px; letter-spacing: -.035em; line-height: 1; }
.gp-price em { font-style: normal; font-size: 14px; color: var(--ink-3); margin-left: 4px; }
.gp-durs { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-bottom: 16px; }
.gp-durs button { position: relative; border: 0; border-radius: 12px; padding: 9px 6px 7px; background: var(--fill-2); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background .2s; }
.gp-durs button small { font-size: 11px; font-weight: 400; color: var(--ink-3); }
.gp-durs button i { position: absolute; top: -8px; right: -4px; font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 999px; background: var(--g); color: #fff; }
.gp-durs button.on { background: color-mix(in srgb, var(--g) 12%, var(--paper-2)); box-shadow: inset 0 0 0 1.5px var(--g); }
.gp-card .perks { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); flex: 1; }
.gp-card .perks li { position: relative; padding-left: 22px; }
.gp-card .perks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--g); border-bottom: 2px solid var(--g); transform: rotate(-45deg); }
.gp-free { --g: #6c757d; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.gp-free .gp-price b { font-size: 32px; }

/* ---------- 个人中心 · 社区身份 ---------- */
.uc-group { --g: #e6a23c; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, color-mix(in srgb, var(--g) 10%, var(--paper-2)), var(--paper-2) 60%); }
.uc-group .k { font-size: 12.5px; color: var(--ink-3); }
.uc-group .v { font-size: 18px; margin: 6px 0; }
.uc-group .d { font-size: 13.5px; color: var(--ink-2); max-width: 36em; }
.uc-group-r { display: flex; gap: 8px; flex-wrap: wrap; }
.uc-cm-item { padding: 14px 0; border-top: 1px solid var(--line); }
.uc-cm-item:first-child { border-top: 0; }
.uc-cm-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px; }
.uc-cm-body { margin-top: 6px; font-size: 14px; color: var(--ink-2); }

/* ---------- 支付宝嵌入二维码 ---------- */
.qr-embed { position: relative; margin: 0 auto; }
.qr-embed iframe { position: relative; display: block; border: 0; background: transparent; }
.qr-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: var(--ink-3); background: #fff; border-radius: 8px; }
.qr-loading i { width: 26px; height: 26px; border: 2.5px solid #e5e5ea; border-top-color: #1677ff; border-radius: 50%; animation: ybspin .8s linear infinite; margin-bottom: 6px; }
.qr-loading b { color: #1d1d1f; font-size: 13px; }
.qr-sub { font-size: 12.5px; margin: -2px auto 6px; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .st-hero-split, .hm-hero { grid-template-columns: 1fr; gap: 28px; }
  .hm-visual { min-height: 320px; order: -1; }
  .st-points, .st-points-4 { grid-template-columns: 1fr 1fr; }
  .tool-split { grid-template-columns: 1fr; }
  .tool-side { position: static; }
}
@media (max-width: 640px) {
  .st-hero { padding-top: 40px; }
  .st-h1 { font-size: 34px; }
  .hm-h1 span { white-space: normal; }
  .st-two, .st-points, .st-points-4, .hm-formats { grid-template-columns: 1fr; }
  .hm-facts { grid-template-columns: 1fr 1fr; }
  .hm-float { display: none; }
  .bl-search { min-width: 0; width: 100%; }
  .pw-card { padding: 28px 18px 22px; }
  .cm-form { padding: 12px; }
  .cm-form > .cm-av { display: none; }
  .gp-price b { font-size: 38px; }
  .tl-head h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .hm-float, .spin, .qr-loading i { animation: none; } .hm-stage { transition: none; } }

/* =====================================================================
   v2.0 社区：苹果风首页（公告 / 轮播 / 专栏 / 最新动态 / 版块预览）
   ===================================================================== */
.cx { padding-top: 22px; padding-bottom: 64px; }
.cx-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 6px 0 26px; }
.cx-hero-text { max-width: 720px; }
.cx-eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin-bottom: 6px; }
.cx-hero h1 { font-family: var(--display); font-size: clamp(34px, 5vw, 52px); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 12px; font-weight: 700; }
.cx-hero.is-sub h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 6px; }
.cx-hero p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.cx-hero.is-sub p { font-size: 15px; color: var(--ink-3); }
.cx-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }
.cx-stats b { font-family: var(--display); font-size: 20px; color: var(--ink); font-weight: 600; margin-right: 3px; letter-spacing: -.01em; }
.cx-search { min-width: 280px; height: 42px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0,0,0,.03); }
.cx-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 16px; }
.cx-sec-head h2 { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; margin: 0; }
.cx-sec-head a, .cx-sec-head span { font-size: 14px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }
.cx-sec-head a { color: var(--accent); }
.cx-sec-head svg { width: 14px; height: 14px; }

/* 滚动公告：毛玻璃胶囊 */
.cx-anno { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 6px; border-radius: 999px; background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0 0 1px var(--line); margin-bottom: 16px; overflow: hidden; }
.cx-anno-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #0a84ff, #5e5ce6); }
.cx-anno-ic svg { width: 16px; height: 16px; }
.cx-anno-view { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.cx-anno-track { display: inline-flex; white-space: nowrap; will-change: transform; }
.cx-anno.run .cx-anno-track { animation: cx-marquee linear infinite; }
.cx-anno:hover .cx-anno-track { animation-play-state: paused; }
.cx-anno.static .cx-anno-track { white-space: normal; }
.cx-anno-item { padding-right: 72px; font-size: 14px; color: var(--ink-2); }
@keyframes cx-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--anno-w, 50%))); } }

/* 轮播图 */
.cx-slides { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--fill-2); box-shadow: 0 0 0 1px var(--line); aspect-ratio: 3.5 / 1; margin-bottom: 8px; }
.cx-slides-track, .cx-slide { position: absolute; inset: 0; }
.cx-slide { opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; display: block; }
.cx-slide.on { opacity: 1; pointer-events: auto; }
.cx-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 28px 22px; color: #fff; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.cx-slides-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-size: 24px; line-height: 1; color: #1d1d1f; background: rgba(255,255,255,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: opacity .25s; }
.cx-slides-btn.prev { left: 14px; } .cx-slides-btn.next { right: 14px; }
.cx-slides:hover .cx-slides-btn { opacity: 1; }
.cx-slides-dots { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px 9px; border-radius: 999px; background: rgba(0,0,0,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cx-slides-dots button { width: 7px; height: 7px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.cx-slides-dots button.on { width: 20px; background: #fff; }
.cx-slides.is-pc-only { display: block; } .cx-slides.is-mob-only { display: none; }

/* 专栏卡片 */
.bd-ic { --c: var(--accent); flex: none; width: 46px; height: 46px; border-radius: 13px; display: inline-grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); vertical-align: middle; }
.bd-ic svg { width: 26px; height: 26px; }
.bd-ic img { width: 72%; height: 72%; object-fit: contain; }
.bd-ic.sm { width: 28px; height: 28px; border-radius: 8px; } .bd-ic.sm svg { width: 17px; height: 17px; }
.bd-ic.lg { width: 72px; height: 72px; border-radius: 20px; } .bd-ic.lg svg { width: 40px; height: 40px; }
.bd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bd-card { --c: var(--accent); position: relative; display: flex; flex-direction: column; padding: 22px 22px 18px; border-radius: var(--radius-lg); background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); overflow: hidden; isolation: isolate; }
.bd-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%); z-index: -1; transition: transform .5s var(--ease); }
.bd-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.bd-card:hover::after { transform: scale(1.25); }
.bd-link { position: absolute; inset: 0; z-index: 1; }
.bd-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.bd-today { font-size: 12px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); padding: 3px 9px; border-radius: 999px; }
.bd-card h3 { font-family: var(--display); font-size: 21px; letter-spacing: -.02em; margin: 0 0 4px; }
.bd-desc { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.bd-n { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }
.bd-n b { font-family: var(--display); font-size: 28px; color: var(--ink); font-weight: 600; letter-spacing: -.02em; margin-right: 2px; }
.bd-latest { position: relative; z-index: 2; display: flex; gap: 8px; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.bd-latest small { flex: none; color: var(--c); font-weight: 600; font-size: 12px; }
.bd-latest span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-latest:hover span { color: var(--accent); }
.bd-more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.bd-more > a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-size: 14px; transition: box-shadow .2s, transform .2s var(--ease); }
.bd-more > a:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); color: var(--ink); }
.bd-more > a em { font-style: normal; font-size: 12px; color: var(--ink-3); }

/* 社区首页「休闲彩蛋」：专栏下方靠右的小胶囊，点开是怀旧文案 + 小七江湖入口 */
.egg { position: relative; margin-left: auto; z-index: 6; }
.egg-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 0; border-radius: 999px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer;
  background: var(--paper-2); box-shadow: 0 0 0 1px color-mix(in srgb, #b89a5a 45%, transparent); transition: box-shadow .2s, transform .2s var(--ease); }
.egg-pill:hover, .egg-pill[aria-expanded="true"] { transform: translateY(-1px); box-shadow: 0 0 0 1px #b89a5a, var(--shadow); }
.egg-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #3a2c22, #8c3b30); box-shadow: inset 0 0 0 1px rgba(236, 217, 160, .35); }
.egg-ic svg { width: 16px; height: 16px; }
.egg-spark { position: absolute; top: 3px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: #f0c030; box-shadow: 0 0 0 2px var(--paper-2); animation: egg-blink 2.4s ease-in-out infinite; }
@keyframes egg-blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .egg-spark { animation: none; } }
.egg-pop { position: absolute; top: calc(100% + 10px); right: 0; width: min(420px, calc(100vw - 32px)); padding: 16px 18px 14px; border-radius: 18px; text-align: left;
  background: var(--paper-2); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.egg-pop-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.egg-pop-hd b { flex: 1; font-size: 15px; color: var(--ink); }
.egg-pop p { margin: 0 0 10px; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.egg-go { margin: 4px 0 2px; }
.egg-pop .egg-need { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }
.egg-pop .egg-note { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; color: var(--ink-3); }
@media (max-width: 600px) { .egg { margin-left: 0; flex-basis: 100%; } .egg-pop { right: auto; left: 0; } }

/* 最新动态（首页N格） */
.ng { margin-top: 40px; padding: 24px; border-radius: var(--radius-lg); background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.ng.is-plain { margin-top: 0; }
.ng-head { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin-bottom: 18px; }
.ng-title { display: flex; align-items: center; gap: 10px; }
.ng-title h2 { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; margin: 0; }
.ng-unread { font-size: 12px; font-weight: 600; color: #fff; background: #ff3b30; padding: 2px 9px; border-radius: 999px; }
.ng-bar { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.ng-bar b { color: var(--ink); }
.ng-sep { opacity: .5; }
.ng-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.ng-dot.live { background: #34c759; box-shadow: 0 0 0 0 rgba(52,199,89,.5); animation: ng-pulse 2s infinite; }
@keyframes ng-pulse { 70% { box-shadow: 0 0 0 7px rgba(52,199,89,0); } 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); } }
.ng-seg { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 10px; background: var(--fill); }
.ng-seg button, .ng-seg a { border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink-2); padding: 5px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.ng-seg .on { background: var(--paper-2); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 0 0 .5px rgba(0,0,0,.04); }
.ng-seg a:hover { color: var(--ink); }
.ng-tip { margin: 0 0 12px; font-size: 13px; color: var(--ink-3); }
.ng-empty { color: var(--ink-3); font-size: 14px; }
.ng-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ng-card { --h: 211; position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 15px; border-radius: 14px; background: var(--paper); color: var(--ink); min-height: 132px; transition: background .2s, transform .25s var(--ease); }
.ng-card:hover { color: var(--ink); background: color-mix(in srgb, hsl(var(--h) 80% 55%) 7%, var(--paper)); transform: translateY(-2px); }
.ng-card.is-unread::before { content: ""; position: absolute; top: 15px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ng-thumb { display: block; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; margin: -4px -5px 2px; background: var(--fill); }
.ng-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ng-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-height: 18px; padding-right: 14px; }
.ng-cat { font-size: 12px; font-weight: 600; color: hsl(var(--h) 70% 42%); display: inline-flex; align-items: center; gap: 5px; }
.ng-cat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ng-flag { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; letter-spacing: .02em; }
.ng-flag.new { color: #fff; background: #ff3b30; }
.ng-flag.pin { color: #fff; background: #ff9500; }
.ng-t { font-size: 15px; font-weight: 600; line-height: 1.45; letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ng-m { margin-top: auto; display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.ng-m span { display: inline-flex; align-items: center; gap: 3px; }
.ng-m svg { width: 12px; height: 12px; }
.ng-m .today { color: #34c759; font-weight: 600; }
.ng-lock { color: #c27c0e; }
/* 电脑端 / 手机端各显示几条：服务端给超出的卡片加类名（选择器里不能用 calc，老内核会解析出错） */
.ng-grid > .ng-xpc { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ng-cat { color: hsl(var(--h) 80% 68%); } }
:root[data-theme="dark"] .ng-cat { color: hsl(var(--h) 80% 68%); }

/* 主版块预览条 */
.bd-strips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.bd-strip { --c: var(--accent); padding: 18px 20px 10px; border-radius: var(--radius-lg); background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.bd-strip header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.bd-strip h2 { font-family: var(--display); font-size: 18px; letter-spacing: -.01em; margin: 0; }
.bd-strip h2 a { color: var(--ink); }
.bd-enter { margin-left: auto; font-size: 13px; color: var(--c); display: inline-flex; align-items: center; gap: 3px; }
.bd-enter svg { width: 13px; height: 13px; }
.bd-strip ul { list-style: none; margin: 0; padding: 0; }
.bd-strip li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.bd-strip li:first-child { border-top: 0; }
.bd-strip li a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.bd-strip li a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-strip li a:hover { color: var(--accent); }
.bd-strip time { flex: none; font-size: 12px; color: var(--ink-3); }
.bd-strip time.today { color: #34c759; font-weight: 600; }
.bd-pin { flex: none; font-style: normal; font-size: 11px; color: #fff; background: #ff9500; border-radius: 5px; padding: 0 5px; }
.bd-lock { flex: none; color: #c27c0e; display: inline-flex; } .bd-lock svg { width: 13px; height: 13px; }
.cx-all { text-align: center; margin-top: 36px; }
.cx-all .btn svg { width: 16px; height: 16px; }

/* 分类导航：吸顶毛玻璃，可横向滑动 */
.cx-catbar { position: sticky; top: 56px; z-index: 20; margin: 18px 0 8px; background: color-mix(in srgb, var(--paper) 78%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.cx-catbar .container { display: flex; align-items: center; gap: 12px; }
.cx-cats { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.cx-cats::-webkit-scrollbar { display: none; }
.cx-cats a { --c: var(--ink-3); flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; color: var(--ink-2); font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.cx-cats a i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.cx-cats a:hover { background: var(--fill-2); color: var(--ink); }
.cx-cats a.on { background: var(--ink); color: var(--paper-2); }
.cx-cats a.on i { background: var(--paper-2); }
.cx-rss { flex: none; font-size: 12.5px; color: var(--ink-3); }

/* 版块页头 */
.bh { --c: var(--accent); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 4px 0 16px; padding: 26px; border-radius: var(--radius-lg); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, var(--paper-2)), var(--paper-2) 60%); box-shadow: 0 0 0 1px var(--line); }
.bh-text { flex: 1; min-width: 220px; }
.bh h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 38px); letter-spacing: -.025em; margin: 0 0 4px; }
.bh p { margin: 0; color: var(--ink-2); font-size: 15px; }
.bh-stats { display: flex; gap: 14px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.bh-stats b { font-family: var(--display); font-size: 20px; color: var(--ink); font-weight: 600; }
.bh-today { color: var(--c); font-weight: 600; background: color-mix(in srgb, var(--c) 12%, transparent); padding: 2px 9px; border-radius: 999px; }
.bh-vis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; color: var(--ink-2); }
.bh-vis span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px 4px 6px; border-radius: 999px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.bh-vis span img, .bh-vis span > span { width: 18px; height: 18px; font-size: 13px; line-height: 18px; text-align: center; object-fit: contain; }
.bh-vis b { color: var(--g); }
.bh-vis a { font-size: 13px; display: inline-flex; align-items: center; gap: 3px; }
.bh-vis a svg { width: 13px; height: 13px; }

/* 列表（版块页 / 全部 / 标签 / 搜索）：分组列表 */
.cx-list-wrap { padding-top: 10px; }
.cx-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.cx-toolbar .bl-subcats { margin: 0; }
.bl-subcats em { font-style: normal; font-size: 11.5px; opacity: .7; }
.ng-seg.sm { margin-left: auto; }
.ar-rows { border-radius: var(--radius-lg); background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.ar-row { position: relative; display: flex; gap: 20px; align-items: center; padding: 18px 22px; transition: background .15s; }
.ar-row + .ar-row::before { content: ""; position: absolute; left: 22px; right: 0; top: 0; height: 1px; background: var(--line); }
.ar-row:hover { background: var(--fill-2); }
.ar-row-link { position: absolute; inset: 0; z-index: 1; }
.ar-row-main { flex: 1; min-width: 0; }
.ar-row h3 { font-size: 17px; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; margin: 0 0 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ar-row-pin { font-style: normal; font-size: 11px; font-weight: 600; color: #fff; background: #ff9500; border-radius: 5px; padding: 1px 6px; margin-right: 6px; vertical-align: 2px; }
.ar-row p { margin: 0 0 8px; font-size: 14px; line-height: 1.65; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ar-row-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.ar-row-meta span { display: inline-flex; align-items: center; gap: 3px; }
.ar-row-meta svg { width: 12px; height: 12px; }
.ar-row-meta .today { color: #34c759; font-weight: 600; }
.ar-row-cat { --c: var(--accent); position: relative; z-index: 2; font-weight: 600; color: var(--c); display: inline-flex; align-items: center; gap: 5px; }
.ar-row-cat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.ar-row-lock { color: #c27c0e; }
.ar-row-img { flex: none; width: 168px; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: var(--fill); }
.ar-row-img img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1080px) {
  .bd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ng-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cx { padding-top: 14px; }
  .cx-hero { margin-bottom: 18px; }
  .cx-hero p { font-size: 15.5px; }
  .cx-search { min-width: 0; width: 100%; }
  .cx-slides { aspect-ratio: 2.2 / 1; border-radius: 16px; }
  .cx-slide-cap { font-size: 16px; padding: 30px 16px 14px; }
  .cx-slides-btn { display: none; }
  .cx-slides.is-pc-only { display: none; } .cx-slides.is-mob-only { display: block; }
  .cx-anno { height: 36px; } .cx-anno-item { font-size: 13px; }
  .bd-grid { gap: 10px; }
  .bd-card { padding: 16px 14px 14px; border-radius: 18px; }
  .bd-card h3 { font-size: 17px; }
  .bd-desc { font-size: 12.5px; }
  .bd-n b { font-size: 22px; }
  .bd-latest { display: none; }
  .ng { padding: 16px; border-radius: 18px; }
  .ng-seg { margin-left: 0; width: 100%; } .ng-seg button { flex: 1; padding: 6px 4px; }
  .ng-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ng-grid > .ng-xpc { display: flex; }
  .ng-grid > .ng-xmob { display: none; }
  .ng-card { min-height: 118px; padding: 12px; }
  .ng-t { font-size: 14px; }
  .bd-strips { grid-template-columns: 1fr; }
  .cx-catbar { top: 52px; }
  .bh { padding: 20px; gap: 14px; } .bh .cx-search { display: none; }
  .bd-ic.lg { width: 56px; height: 56px; border-radius: 16px; } .bd-ic.lg svg { width: 32px; height: 32px; }
  .ar-row { padding: 15px 16px; gap: 12px; align-items: flex-start; }
  .ar-row + .ar-row::before { left: 16px; }
  .ar-row h3 { font-size: 16px; }
  .ar-row p { display: none; }
  .ar-row-img { width: 96px; }
  .cx-sec-head { margin: 30px 0 12px; } .cx-sec-head h2 { font-size: 22px; }
}

/* =====================================================================
   v2.0 文章页：左侧目录（手机收成「目录」按钮）+ 付费墙（沿用旧社区）
   ===================================================================== */
.ar-page.has-toc { max-width: 1180px; display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 44px; }
.ar-page.has-toc .bl-crumb { grid-column: 1 / -1; }
.ar-page.has-toc .ar-main { grid-column: 2; min-width: 0; max-width: 780px; }
.ar-page:not(.has-toc) .ar-main { min-width: 0; }
.ar-page .cm, .has-toc .cm { max-width: none; }
.ar-toc { grid-column: 1; grid-row: 2 / span 10; position: sticky; top: 80px; align-self: start; max-height: none; overflow: visible; padding: 0; }
.ar-toc-card { display: flex; flex-direction: column; max-height: calc(100vh - 100px); border-radius: 18px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.ar-toc-head { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.ar-toc-head b { font-size: 14px; } .ar-toc-head span { font-size: 12px; color: var(--ink-3); }
.ar-toc-list { list-style: none; margin: 0; padding: 8px; overflow: auto; flex: 1; scrollbar-width: thin; }
.ar-toc-list li { margin: 1px 0; padding: 0; font-size: 13.5px; line-height: 1.5; }
.ar-toc-list a, .ar-toc-list button { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-left: 0; margin: 0; border-radius: 10px; background: none; color: var(--ink-2); font: inherit; cursor: pointer; transition: background .15s, color .15s; }
.ar-toc-list li.lv3 a, .ar-toc-list li.lv3 button { padding-left: 24px; font-size: 13px; }
.ar-toc-list a span, .ar-toc-list button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ar-toc-list a:hover { background: var(--fill-2); color: var(--ink); }
.ar-toc-list a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.ar-toc-list li.is-locked button { color: var(--ink-3); }
.ar-toc-list li.is-locked button:hover { background: var(--fill-2); }
.ar-toc-list em { flex: none; font-style: normal; font-size: 11px; color: var(--ink-3); padding: 1px 7px; border-radius: 999px; background: var(--fill); }
.ar-toc-foot { padding: 10px 16px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); background: var(--paper-2); }
.ar-toc-fab, .ar-toc-mask, .ar-toc-sheet { display: none; }
.ar-locked.flash .pw-card { animation: pw-flash 1.2s var(--ease); }
@keyframes pw-flash { 30% { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 1px var(--accent); } }
@media (max-width: 1080px) {
  .ar-page.has-toc { display: block; max-width: 780px; }
  .ar-toc { display: none; }
  .ar-toc-fab { display: inline-flex; position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border: 0; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0 0 1px var(--line), var(--shadow); cursor: pointer; }
  .ar-toc-fab svg { width: 18px; height: 18px; }
  .ar-toc-mask:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.32); opacity: 0; transition: opacity .25s; }
  .toc-open .ar-toc-mask { opacity: 1; }
  .ar-toc-sheet { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 91; max-height: 72vh; border-radius: 20px 20px 0 0; background: var(--paper-2); box-shadow: var(--shadow-lg); transform: translateY(105%); transition: transform .3s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
  .toc-open .ar-toc-sheet { transform: none; }
  .toc-open, .toc-open body { overflow: hidden; }
  .ar-toc-sheet-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .ar-toc-sheet-head span { font-size: 12px; color: var(--ink-3); }
  .ar-toc-sheet-head button { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--fill); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
  .ar-toc-sheet-head button svg { width: 16px; height: 16px; }
  .ar-toc-sheet-body { overflow: auto; flex: 1; }
  .ar-toc-sheet-body .ar-toc-list { overflow: visible; }
}

/* 付费墙（沿用旧社区：提示 → 当前状态 → 四个用户组 → 按钮 → 说明） */
.pw-card { padding: 32px 28px 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 4%, var(--paper-2)), var(--paper-2) 40%); }
.pw-card::before { display: none; }
.pw-ic { width: 56px; height: 56px; border-radius: 17px; margin-bottom: 16px; background: linear-gradient(135deg, #ffcc00, #ff9500); box-shadow: 0 10px 24px -10px #ff9500; }
.pw-card.is-cap .pw-ic { background: linear-gradient(135deg, #5ac8fa, #0071e3); box-shadow: 0 10px 24px -10px #0071e3; }
.pw-tip p { margin: 0 0 2px; font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.pw-tip .pw-red { color: #ff3b30; font-weight: 500; font-size: 14px; margin-top: 2px; }
.pw-status { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; margin: 16px auto 18px; padding: 8px 18px; border-radius: 999px; font-size: 13px; color: var(--ink-3); background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); max-width: 100%; }
.pw-status i { font-style: normal; opacity: .5; }
.pw-status b { font-weight: 600; }
.pw-status .pw-pct { color: var(--accent); }
.pw-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 620px; margin: 0 auto; }
.pw-g { --g: #8e8e93; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px 12px; border-radius: 16px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); transition: transform .2s var(--ease); }
.pw-g.on { box-shadow: 0 0 0 2px var(--g), 0 8px 22px -12px var(--g); }
.pw-g-ic { width: 34px; height: 34px; display: grid; place-items: center; font-size: 24px; line-height: 1; margin-bottom: 4px; }
.pw-g-ic img { width: 30px; height: 30px; object-fit: contain; }
.pw-g b { font-size: 13px; color: var(--g); font-weight: 600; white-space: nowrap; }
.pw-g small { font-size: 12px; color: var(--ink-3); }
.pw-g em { font-style: normal; font-size: 11px; color: #34c759; font-weight: 600; margin-top: 2px; }
.pw-btns { margin: 22px 0 4px; gap: 12px; }
.pw-btns .btn { min-width: 128px; }
.btn-outline { background: var(--paper-2); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent); }
.pw-note { margin-top: 10px !important; }
.pw-login { font-size: 13px; color: var(--ink-3); margin: 6px 0 0; }
@media (max-width: 520px) {
  .pw-card { padding: 26px 16px 20px; }
  .pw-status { flex-direction: column; border-radius: 14px; gap: 2px; } .pw-status i { display: none; }
  .pw-groups { gap: 6px; }
  .pw-g { padding: 10px 2px; border-radius: 12px; } .pw-g b { font-size: 12px; }
  .pw-btns .btn { flex: 1; min-width: 0; }
}
.cx.bl-page { max-width: none; }
.bd-strip, .bd-card, .ng-card { min-width: 0; }
@media (max-width: 760px) { .bd-strips { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .ng-seg.sm { width: auto; margin-left: auto; } .ng-seg.sm a { padding: 5px 12px; } .cx-rss { display: none; } }
.ng-card { --c: var(--accent); }
.ng-card:hover { background: color-mix(in srgb, var(--c) 7%, var(--paper)); }
.ng-cat, :root[data-theme="dark"] .ng-cat { color: var(--c); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ng-cat { color: var(--c); } }

/* 收藏文章 */
.ar-fav-wrap { display: flex; justify-content: center; margin: 26px 0 8px; }
.ar-fav { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 20px; border: 0; border-radius: 999px; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink-2); background: var(--paper-2); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; transition: transform .15s var(--ease), color .2s, background .2s, box-shadow .2s; }
.ar-fav svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.ar-fav:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.ar-fav:active { transform: scale(.96); }
.ar-fav.on { color: #c27c0e; background: color-mix(in srgb, #ffcc00 14%, var(--paper-2)); box-shadow: 0 0 0 1px color-mix(in srgb, #ff9500 40%, transparent); }
.ar-fav.on svg { fill: #ffcc00; stroke: #ff9500; transform: scale(1.1); }
.ar-fav em { font-style: normal; font-size: 12.5px; color: var(--ink-3); padding-left: 8px; border-left: 1px solid var(--line-2); }
.fav-row { position: relative; transition: opacity .2s; }
.fav-row + .fav-row::before { content: ""; position: absolute; left: 22px; right: 0; top: 0; height: 1px; background: var(--line); }
.fav-row .ar-row::before { display: none; }
.fav-row .ar-row { padding-right: 60px; }
.fav-del { position: absolute; right: 16px; top: 18px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--ink-3); background: var(--fill-2); cursor: pointer; }
.fav-del:hover { color: var(--err); background: color-mix(in srgb, var(--err) 10%, transparent); }
.fav-del svg { width: 15px; height: 15px; }

/* 页脚备案图标 */
.beian { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.beian-item { display: inline-flex; align-items: center; gap: 5px; color: inherit; }
.beian-item img { width: 14px; height: 14px; object-fit: contain; flex: none; }
.gp-card .perks { align-content: start; }
/* 友链申请：权限不够时 */
.fl-locked { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.fl-locked p { margin: 0; color: var(--ink-2); font-size: 15px; }
.fl-lock-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ffcc00, #ff9500); }
.fl-lock-ic svg { width: 26px; height: 26px; }
.fl-lock-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
/* 工具页：textarea 不要被 .input 的固定高度压扁；左栏加宽 */
textarea.input { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; line-height: 1.65; }
.tool-side textarea.input { min-height: 150px; }
.tool-split { grid-template-columns: 400px minmax(0, 1fr); }
@media (max-width: 1080px) { .tool-split { grid-template-columns: 340px minmax(0, 1fr); } }
@media (max-width: 860px) { .tool-split { grid-template-columns: 1fr; } }
.img-grid > .tool-empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; }
/* 工具页左栏：各组之间留出间距 */
.tool-side .label { margin-top: 18px; margin-bottom: 8px; display: block; }
.tool-side .seg + div .label:first-child, .tool-side > .label:first-child { margin-top: 4px; }
.tool-side .chips { gap: 8px; }
.mus-tags { display: grid; gap: 10px; }
.mus-tag-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: start; }
.mus-tag-k { font-size: 12px; color: var(--ink-3); line-height: 30px; }
.mus-tag-input { margin-top: 12px; }
.tool-side .btn-block { margin-top: 16px; }
.tool-side .help { margin-top: 10px; }
.tool-side .seg + div .label:first-child { margin-top: 16px; }
.tool-side .opt { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 14px; }

/* 老内核（如部分 360 极速、QQ 浏览器）不认 color-mix：给几个关键底色兜底，免得图标、徽章没底色 */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .bd-ic, .badge-ok, .badge-warn, .badge-err, .hero-svc, .svc-panel-ic { background: var(--fill); }
  .btn:hover, .modal-close:hover { background: var(--fill-2, var(--fill)); }
  ::selection { background: var(--accent-soft); }
}

/* 定制页产品卡等高：「查看详情」和按钮压到卡片底部，三张卡底边对齐 */
.st-prod > .st-more { margin-top: auto; padding-top: 4px; }
.st-prod > .btn:last-child { margin-top: auto; }
.st-prod > .st-more + .btn { margin-top: 0; }

/* 返回顶部：往下滚过一屏多才出现 */
.to-top { position: fixed; right: 24px; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 59; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); background: var(--glass, var(--paper-2)); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0 0 1px var(--line), var(--shadow); opacity: 0; transform: translateY(12px) scale(.9); transition: opacity .25s, transform .25s var(--ease, ease), color .2s; pointer-events: none; }
.to-top[hidden] { display: none; }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--accent); }
.to-top svg { width: 20px; height: 20px; }
.cmp-page .to-top { display: none; }
@media (max-width: 760px) { .to-top { right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); width: 42px; height: 42px; } }
@media print { .to-top { display: none; } }

/* 文章顶部「当前可见 X%」状态条（沿用原 emlog 模板的设计，换成苹果风） */
.pw-bar { --p: 50%; display: flex; align-items: center; gap: 12px; margin: 4px 0 22px; padding: 11px 16px; border-radius: 14px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); color: var(--ink-2); font-size: 13.5px; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.pw-bar:hover { color: var(--ink-2); box-shadow: 0 0 0 1px var(--accent-soft), 0 6px 20px -10px var(--accent); }
.pw-bar-ic { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.pw-bar-ic svg { width: 16px; height: 16px; }
.pw-bar-t { flex: none; white-space: nowrap; }
.pw-bar-t b { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.pw-bar-track { flex: 1; min-width: 60px; height: 6px; border-radius: 999px; background: var(--fill); overflow: hidden; position: relative; }
.pw-bar-track i { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--indigo, var(--accent))); transform-origin: left; animation: pw-bar-in .9s var(--ease, ease) both; }
@keyframes pw-bar-in { from { transform: scaleX(0); } }
.pw-bar-go { flex: none; display: inline-flex; align-items: center; gap: 3px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.pw-bar-go svg { width: 14px; height: 14px; transition: transform .2s; }
.pw-bar:hover .pw-bar-go svg { transform: translateY(2px); }
.pw-bar.is-cap .pw-bar-ic { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.pw-bar.is-cap .pw-bar-t b { color: var(--warn); }
.pw-bar.is-cap .pw-bar-track i { background: var(--warn); }
.pw-bar.is-cap .pw-bar-go { color: var(--warn); }
@media (max-width: 520px) {
  .pw-bar { flex-wrap: wrap; gap: 8px 10px; padding: 10px 14px; }
  .pw-bar-track { order: 3; flex-basis: 100%; }
  .pw-bar-go { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .pw-bar-track i { animation: none; } }
.ar-locked { scroll-margin-top: 84px; }

/* 个人中心「工具会员」卡片底部说明 */
.tv-note { display: flex; gap: 7px; align-items: flex-start; margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12.5px; line-height: 1.65; color: var(--ink-3); }
.tv-note svg { flex: none; width: 14px; height: 14px; margin-top: 3px; }

/* 个人中心概览：润色卡 / 羽毛包 */
.shop-card { scroll-margin-top: 84px; }
.shop-split { display: grid; gap: 22px; }
.shop-split.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-split.is-2 .shop-col + .shop-col { border-left: 1px solid var(--line); padding-left: 22px; }
.shop-col .card-title { margin-bottom: 4px; }
.shop-sub { margin: 0 0 8px; font-size: 12.5px; color: var(--ink-3); }
.shop-me { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); }
.shop-col { min-width: 0; }
.shop-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.shop-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; padding: 11px 12px; border-radius: 12px; background: var(--fill); }
.shop-n { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.shop-n b { font-size: 14px; }
.shop-n i { font-style: normal; font-size: 11px; color: #fff; background: var(--accent); padding: 1px 7px; border-radius: 999px; }
.shop-n small { flex-basis: 100%; font-size: 12px; color: var(--ink-3); }
.shop-p { margin-right: auto; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.shop-p s { margin-left: 4px; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.shop-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; }
.shop-foot .sp { flex: 1; }
@media (max-width: 760px) {
  .shop-split.is-2 { grid-template-columns: minmax(0, 1fr); }
  .shop-split.is-2 .shop-col + .shop-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
}
.shop-row > * { min-width: 0; }
/* 两栏时说明文字长短不一：商品小卡片统一压到底部，左右底边对齐 */
.shop-split.is-2 { align-items: stretch; }
.shop-split.is-2 .shop-col { display: flex; flex-direction: column; }
.shop-split.is-2 .shop-list { margin-top: auto; }

/* 工具落地页 */
.tl-sec { padding-top: 72px; }
.tl-sec .tl-grid { max-width: 1080px; margin: 0 auto; }
.tl-sub { max-width: 1080px; margin: 40px auto 14px; font-size: 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tl-sub small { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.tl-sec .tl-links { max-width: 1080px; margin: 22px auto 0; }
.tl-tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 600; vertical-align: 2px; color: var(--ink-3); background: var(--fill-2, var(--fill)); }
.tl-tag svg { width: 11px; height: 11px; }
.tl-tag.ok { color: var(--ok); background: var(--accent-soft); }
.tl-card.is-locked { opacity: 1; }
.tl-card.is-locked .tl-ic { filter: grayscale(.55); opacity: .75; }
.tl-card.is-locked .tl-go { color: var(--ink-3); }
.tl-card.is-need { box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg); }
.tl-need { max-width: 1080px; margin: 0 auto 18px; }
.tl-need span { flex: 1; }
/* 学员标签 */
.stu-badge { display: inline-flex; align-items: baseline; gap: 2px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #0a7d55; background: rgba(48, 209, 88, .14); white-space: nowrap; vertical-align: 1px; }
.stu-badge small { font-weight: 400; color: inherit; opacity: .8; }
.tl-sec .tl-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }

.tl-groups { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; }
.tl-groups i { font-style: normal; color: var(--ink-3); }
.tl-groups em { font-style: normal; color: var(--ink-2); margin-left: 4px; }
.tl-groups .grp-badge { height: 26px; font-size: 13px; padding: 0 12px; }

/* 个人中心概览（没有工具权限时）：社区内容 */
.uc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.uc-stat { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.uc-stat:hover { transform: translateY(-2px); color: inherit; text-decoration: none; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.uc-stat-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); margin-bottom: 8px; flex: none; }
.uc-stat-ic svg { width: 18px; height: 18px; }
.uc-stat b { font-size: 26px; line-height: 1.2; }
.uc-stat small { color: var(--ink-3); font-size: 13px; }
.uc-two > * { min-width: 0; }
.uc-arts { list-style: none; margin: 0; padding: 0; }
.uc-arts li { padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.uc-arts li:first-child { border-top: 0; padding-top: 2px; }
.uc-arts a { display: block; color: var(--ink); font-size: 14.5px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-arts a:hover { color: var(--accent); text-decoration: none; }
.uc-arts small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 12px; }
.uc-arts.is-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.uc-arts.is-grid li:nth-child(2) { border-top: 0; padding-top: 2px; }
.uc-tooltip-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.uc-tooltip-card .uc-stat-ic { margin: 0; }
.uc-tooltip-card b { display: block; font-size: 15px; }
.uc-tooltip-card small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
@media (max-width: 760px) {
  .uc-arts.is-grid { grid-template-columns: minmax(0, 1fr); }
  .uc-arts.is-grid li:nth-child(2) { border-top: 1px solid var(--line); padding-top: 10px; }
}

/* AI 音乐：模型、高级参数、续写 / 翻唱 / 分离 */
.mus-models { margin-bottom: 12px; }
.mus-models .chip small { color: inherit; opacity: .7; font-size: 11px; }
.mus-action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 13.5px; }
.mus-action span { flex: 1; min-width: 0; font-weight: 600; }
.mus-action label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.mus-adv { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--fill); font-size: 13.5px; }
.mus-adv summary { cursor: pointer; font-weight: 600; }
.mus-adv summary small { font-weight: 400; margin-left: 4px; }
.mus-adv-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 40px; align-items: center; gap: 10px; margin-top: 10px; }
.mus-adv-row .seg { grid-column: 2 / 4; }
.mus-adv-row em { font-style: normal; font-size: 12px; color: var(--ink-3); text-align: right; }
.mus-adv-row input[type=range] { width: 100%; }
.mus-ops { display: flex; flex-wrap: wrap; gap: 6px; }
.mus-ops .btn { justify-self: auto; }
.mus-tag-act { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 6px; color: var(--accent); background: var(--accent-soft); }

/* AI 图片 · 参考图 */
.img-ref { border-radius: 14px; transition: background .15s, box-shadow .15s; }
.img-ref.drag { background: var(--brand-soft, rgba(0,113,227,.08)); box-shadow: 0 0 0 2px var(--brand, #0071e3) inset; }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.ref-it, .ref-add { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--fill-2); }
.ref-grid .ref-it img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; margin: 0; }
.ref-it.up img { opacity: .45; }
.ref-it .spin { position: absolute; left: 50%; top: 50%; margin: -8px 0 0 -8px; }
.ref-it button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 15px; line-height: 22px; padding: 0; cursor: pointer; }
.ref-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; border: 1.5px dashed var(--line-2, var(--line)); background: transparent; color: var(--ink-2); text-align: center; }
.ref-add:hover { border-color: var(--brand, #0071e3); color: var(--brand, #0071e3); }
.ref-add b { font-size: 22px; font-weight: 400; line-height: 1; }
.ref-add small { font-size: 11px; line-height: 1.3; }
.ref-add[hidden] { display: none; }
.help.warn { color: var(--warn); }
.img-one { position: relative; width: 100%; }
.img-use { position: absolute; right: 8px; bottom: 8px; border: 0; border-radius: 999px; padding: 4px 10px; font-size: 12px; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s; }
.img-one:hover .img-use, .img-use:focus { opacity: 1; }
@media (hover: none) { .img-use { opacity: 1; } }
.img-reftag { flex: none; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--fill-3, var(--fill-2)); color: var(--ink-2); }

/* 作品列表：长歌词 / 长描述不撑破卡片 */
.mus-list { grid-template-columns: minmax(0, 1fr); }
.mus-item, .mus-clip { min-width: 0; }
.mus-head .badge, .mus-head .mus-tag-act, .mus-head small { flex: none; }
.mus-c b, .mus-c small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mus-c audio { min-width: 0; max-width: 100%; }
.mus-t { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.mus-t b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mus-dur { flex: none; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* 工具公告：整屏工作区里的右下角浮层 */
.tn-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; max-width: 360px; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--paper, #fff); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.14); font-size: 13.5px; line-height: 1.55; border: 1px solid var(--line); }
.tn-float[hidden] { display: none; }
.tn-float > svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.tn-float strong { font-weight: 600; }
.tn-float button { flex: none; border: 0; background: transparent; color: var(--ink-3); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.tool-page > .tn-bar, .rd > .tn-bar, .tl-sec .tn-bar { margin-bottom: 16px; }
@media (max-width: 640px) { .tn-float { left: 12px; right: 12px; bottom: 76px; max-width: none; } }

/* 关于页 · 合规公示 */
.st-pub-sec { padding-top: 8px; }
.st-pub { padding: 22px 24px; border-radius: var(--radius-lg); background: var(--paper-2); box-shadow: var(--shadow), 0 0 0 1px var(--line); border-top: 3px solid var(--ok, #34c759); }
.st-pub-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.st-pub-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--ok, #34c759) 14%, transparent); color: var(--ok, #34c759); }
.st-pub-ic svg { width: 22px; height: 22px; }
.st-pub-head h2 { font-size: 18px; margin: 0; }
.st-pub-head p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.st-pub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0; }
.st-pub-grid > div { min-width: 0; padding: 12px 14px; border-radius: 12px; background: var(--fill); }
.st-pub-grid dt { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.st-pub-grid dd { margin: 0; font-size: 13.5px; color: var(--ink); line-height: 1.55; word-break: break-word; }
.st-pub-more { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.st-pub-more summary { cursor: pointer; font-size: 13.5px; color: var(--accent); list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.st-pub-more summary::-webkit-details-marker { display: none; }
.st-pub-more summary::after { content: '›'; transform: rotate(90deg); transition: transform .15s; font-size: 16px; line-height: 1; }
.st-pub-more[open] summary::after { transform: rotate(-90deg); }
.st-pub-more p { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; margin: 10px 0 0; }
@media (max-width: 640px) { .st-pub { padding: 18px 16px; } .st-pub-grid { grid-template-columns: 1fr; } }
.st-pub-jump { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--accent); }
.st-pub-jump svg { width: 15px; height: 15px; }
#disclosure { scroll-margin-top: 84px; }
.w2m-sum { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 0 2px; font-size: 12px; color: var(--ink-3); }
.w2m-sum[hidden] { display: none; }
.w2m-clear { border: 1px solid var(--line); background: transparent; color: var(--err); border-radius: 8px; padding: 2px 10px; font-size: 12px; cursor: pointer; }
.w2m-clear:hover { background: color-mix(in srgb, var(--err) 8%, transparent); border-color: color-mix(in srgb, var(--err) 35%, transparent); }

/* 列表分页：页码 + 跳页 */
.bl-pager { flex-wrap: wrap; gap: 10px 12px; }
.bl-pg-nums { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bl-pg-nums a, .bl-pg-nums b { min-width: 34px; height: 34px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 999px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.bl-pg-nums a { background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); color: var(--ink-2); }
.bl-pg-nums a:hover { color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.bl-pg-nums b { background: var(--accent); color: #fff; font-weight: 600; }
.bl-pg-nums i { font-style: normal; color: var(--ink-3); padding: 0 2px; }
.bl-pg-jump { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.bl-pg-jump input { width: 60px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink); text-align: center; font-size: 13px; }
.bl-pg-jump button { height: 32px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--fill); color: var(--ink-2); cursor: pointer; font-size: 12.5px; }
@media (max-width: 640px) { .bl-pg-step { padding: 6px 12px !important; } .bl-pg-jump { width: 100%; justify-content: center; } }
.bl-pg-nums.mob { display: none; }
@media (max-width: 640px) {
  .bl-pg-nums.pc { display: none; } .bl-pg-nums.mob { display: inline-flex; }
  .bl-pager { gap: 8px; } .bl-pg-nums a, .bl-pg-nums b { min-width: 30px; height: 30px; padding: 0 8px; font-size: 13px; }
  .bl-pg-step { font-size: 0 !important; padding: 0 !important; width: 30px; height: 30px; display: inline-grid; place-items: center; }
  .bl-pg-step::before { font-size: 14px; } .bl-pg-step[rel=prev]::before { content: '‹'; } .bl-pg-step[rel=next]::before { content: '›'; }
}

/* ===== 文章页广告（腾讯优量汇原生信息流）=====
   做成和站里卡片同一种质感：白底 18px 圆角、一像素描边、安静的「推荐」小标题 + 灰色「广告」胶囊；
   拉到广告、图片加载好才淡入，拉不到就整块不出现，不留空白。 */
.ad-card { display: block; background: var(--paper-2); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; color: var(--ink); text-align: left;
  opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .25s; }
.ad-card.is-on { opacity: 1; transform: none; }
.ad-card:hover { box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.ad-unit { display: block; cursor: pointer; }
.ad-media { position: relative; aspect-ratio: 16 / 9; background: var(--fill-2); overflow: hidden; }
.ad-media .ad-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; max-width: none; transition: transform .6s var(--ease); }
.ad-card:hover .ad-img { transform: scale(1.025); }
.ad-video { position: absolute; inset: 0; display: none; background: #000; }
.ad-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-media .ad-logo { position: absolute; right: 8px; bottom: 8px; height: 14px; width: auto; border-radius: 3px; opacity: .92; pointer-events: none; }
.ad-body { padding: 12px 14px 14px; }
.ad-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ad-k { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; color: var(--ink-3); }
.ad-tag { font-size: 10.5px; line-height: 1; padding: 3px 7px; border-radius: 999px; background: var(--fill); color: var(--ink-3); }
.ad-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.ad-card p.ad-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.ad-desc:empty { display: none !important; }
.ad-cta { display: inline-flex; align-items: center; gap: 2px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent); transition: gap .2s var(--ease); }
.ad-cta svg { width: 13px; height: 13px; }
.ad-card:hover .ad-cta { gap: 5px; }
.ad-sentinel { display: block; height: 1px; margin: 0 !important; pointer-events: none; }

/* 目录栏下方：目录卡片让出高度（列表自己滚动），广告卡片固定在下面，一起悬停 */
.ar-toc.has-ad { display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 100px); }
.ar-toc.has-ad .ar-toc-card { max-height: none; flex: 1 1 auto; min-height: 220px; }
.ar-toc .ad-toc { flex: none; }
@media (max-height: 680px) { .ar-toc .ad-toc { display: none; } .ar-toc.has-ad { max-height: none; } }

/* 正文里：横向卡片，图左文右，像正文里的一张配图卡 */
.ad-inline { margin: 2.2em 0; }
.article-body > .ad-inline { margin: 2.2em 0; }
.ad-inline .ad-unit { display: grid; grid-template-columns: minmax(0, 248px) minmax(0, 1fr); align-items: stretch; }
.ad-inline .ad-media { aspect-ratio: auto; min-height: 140px; }
.ad-inline .ad-media .ad-img { position: absolute; inset: 0; }
.ad-inline .ad-body { display: flex; flex-direction: column; justify-content: center; padding: 16px 20px; }
.ad-inline .ad-title { font-size: 16px; }
.ad-inline p.ad-desc { font-size: 13.5px; }
.article-body .ad-card img { border-radius: 0; }
.article-body .ad-card p + p { margin-top: 0; }
@media (max-width: 640px) {
  .ad-inline .ad-unit { grid-template-columns: 1fr; }
  .ad-inline .ad-media { aspect-ratio: 16 / 9; min-height: 0; }
}

/* =========================================================
   自营商城（/shop）
   ========================================================= */
.sp-hero { position: relative; overflow: hidden; padding: 72px 0 34px; text-align: center; }
.sp-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(50% 60% at 30% 40%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%), radial-gradient(40% 50% at 72% 30%, color-mix(in srgb, #bf5af2 11%, transparent), transparent 70%); pointer-events: none; }
.sp-hero .container { position: relative; }
.sp-hero h1 { font-size: clamp(36px, 5.4vw, 60px); letter-spacing: -.035em; line-height: 1.08; margin: 0 0 14px; font-weight: 700; background: linear-gradient(100deg, var(--ink) 30%, color-mix(in srgb, var(--accent) 70%, var(--ink))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); margin: 0 auto 20px; max-width: 34em; line-height: 1.6; }
.sp-tags { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sp-tags span { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); padding: 7px 14px; border-radius: 999px; background: var(--glass); box-shadow: 0 0 0 1px var(--glass-line), var(--shadow); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); }
.sp-tags svg { width: 14px; height: 14px; color: var(--ok); stroke-width: 2.4; }
.sp-me { margin: 18px 0 0; font-size: 13.5px; color: var(--ink-3); }
.sp-me a { font-weight: 500; }

.sp-wrap { padding-bottom: 64px; }
.sp-tabs { display: flex; gap: 4px; padding: 4px; background: var(--fill-2); border-radius: 14px; width: max-content; max-width: 100%; margin: 6px auto 26px; overflow-x: auto; scrollbar-width: none; }
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tabs a { padding: 7px 18px; border-radius: 10px; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.sp-tabs a:hover { color: var(--ink); }
.sp-tabs a.on { background: var(--paper-2); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .04); }

.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 22px; }
.sp-card { display: flex; flex-direction: column; background: var(--paper-2); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.sp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.sp-cover, .sp-d-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h1) 85% 62%), hsl(var(--h2) 80% 58%)); display: grid; place-items: center; }
.sp-cover img, .sp-d-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sp-card:hover .sp-cover img { transform: scale(1.035); }
.sp-cover-t { color: rgba(255, 255, 255, .96); font-size: 21px; font-weight: 700; letter-spacing: -.02em; padding: 0 26px; text-align: center; line-height: 1.35; text-shadow: 0 2px 16px rgba(0, 0, 0, .12); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-badge { position: absolute; top: 12px; left: 12px; font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: #fff; background: rgba(0, 0, 0, .38); backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%); display: inline-flex; align-items: center; gap: 4px; }
.sp-badge svg { width: 12px; height: 12px; stroke-width: 2.6; }
.sp-badge.is-own { background: color-mix(in srgb, var(--ok) 82%, transparent); }
.sp-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.sp-title { font-size: 16.5px; line-height: 1.4; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-sub { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sp-price { font-size: 21px; font-weight: 650; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.sp-price small { font-size: 14px; margin-right: 1px; font-weight: 600; }
.sp-price s { font-size: 13px; color: var(--ink-3); font-weight: 400; margin-left: 7px; }
.sp-price.is-free { color: var(--ok); }
.sp-price.is-own { font-size: 14px; color: var(--ok); font-weight: 600; }
.sp-price.is-hide { font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.sp-sales { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.sp-empty { text-align: center; color: var(--ink-3); padding: 70px 0; }
.sp-empty svg { width: 46px; height: 46px; opacity: .45; }
.sp-note { text-align: center; font-size: 12.5px; color: var(--ink-3); margin: 40px 0 0; }

/* 详情 */
.sp-detail { padding: 28px 22px 70px; }
.sp-crumb { font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.sp-crumb a { color: var(--ink-2); }
.sp-d-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.sp-d-cover { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.sp-d-cover .sp-cover-t { font-size: clamp(24px, 3vw, 38px); max-width: 16em; }
.sp-d-content { margin-top: 22px; padding: 28px 32px; }
.sp-h2 { font-size: 20px; margin: 0 0 14px; letter-spacing: -.02em; }
.sp-d-side { position: sticky; top: 84px; }
.sp-buy { padding: 24px 24px 22px; }
.sp-off { font-size: 13px; color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); padding: 7px 11px; border-radius: 9px; margin-bottom: 12px; }
.sp-badge-inline { display: inline-block; font-size: 12px; font-weight: 600; color: var(--seal); background: color-mix(in srgb, var(--seal) 11%, transparent); padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.sp-d-title { font-size: 24px; line-height: 1.3; letter-spacing: -.025em; margin: 0; }
.sp-d-sub { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.sp-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: 16px 0 0; }
.sp-meta div { background: var(--fill-2); border-radius: 10px; padding: 8px 10px; }
.sp-meta dt { font-size: 11.5px; color: var(--ink-3); }
.sp-meta dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-pricebox { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.sp-big { font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sp-big small { font-size: 20px; margin-right: 2px; }
.sp-big s { font-size: 15px; color: var(--ink-3); font-weight: 400; margin-left: 10px; letter-spacing: 0; }
.sp-big.is-hide { font-size: 18px; color: var(--ink-3); font-weight: 500; }
.sp-lvnote { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.sp-lvs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sp-lvs li { border-radius: 11px; padding: 8px 10px; background: var(--fill-2); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s; }
.sp-lvs li span { display: block; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-lvs li b { font-size: 15px; font-variant-numeric: tabular-nums; }
.sp-lvs li.on { background: color-mix(in srgb, var(--g) 10%, var(--paper-2)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--g) 70%, transparent); }
.sp-lvs li.on span { color: color-mix(in srgb, var(--g) 80%, var(--ink)); font-weight: 600; }
.sp-cta { margin-top: 20px; display: grid; gap: 10px; }
.sp-demo { display: inline-flex; justify-content: center; align-items: center; gap: 6px; }
.sp-hint { font-size: 12.5px; color: var(--ink-3); text-align: center; margin: 0; line-height: 1.6; text-wrap: balance; }   /* 两行时均分，不让一个字单独掉到第二行 */
.sp-after { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.sp-after svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }

/* 发货信息 */
.sp-dl { margin-top: 20px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--ok) 6%, var(--paper-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 22%, transparent); scroll-margin-top: 90px; }
.sp-dl.is-preview { background: color-mix(in srgb, var(--warn) 6%, var(--paper-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 25%, transparent); }
.sp-dl-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14.5px; }
.sp-dl-ok { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.sp-dl.is-preview .sp-dl-ok { background: var(--warn); }
.sp-dl-ok svg { width: 13px; height: 13px; stroke-width: 3; }
.sp-nd { display: flex; align-items: center; gap: 10px; background: var(--paper-2); border-radius: 12px; padding: 10px 10px 10px 12px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 8px; }
.sp-nd-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #0a84ff, #5e5ce6); }
.sp-nd-ic.is-key { background: linear-gradient(135deg, #ff9f0a, #ff6b2c); }
.sp-nd-ic svg { width: 18px; height: 18px; }
.sp-nd-b { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.sp-nd-b small { font-size: 11.5px; color: var(--ink-3); }
.sp-nd-url { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--accent); }
.sp-nd-code { font-family: var(--mono); font-size: 17px; letter-spacing: .12em; }
.sp-nd-go { margin-top: 4px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; }
.sp-dl-text { font-size: 14.5px; line-height: 1.8; background: var(--paper-2); border-radius: 12px; padding: 12px 14px; box-shadow: 0 0 0 1px var(--line); }
.sp-dl-wm { font-size: 11.5px; color: var(--ink-3); margin: 10px 0 0; text-align: center; }

/* 我的商品 */
.sp-mine { display: grid; gap: 12px; }
.sp-mine-item { padding: 0; overflow: hidden; }
.sp-mine-item summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; }
.sp-mine-item summary::-webkit-details-marker { display: none; }
.sp-mine-cv { width: 64px; height: 40px; border-radius: 9px; overflow: hidden; flex: none; background: var(--fill); display: grid; place-items: center; color: var(--ink-3); }
.sp-mine-cv img { width: 100%; height: 100%; object-fit: cover; }
.sp-mine-cv svg { width: 20px; height: 20px; }
.sp-mine-t { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.sp-mine-t b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-mine-t small { font-size: 12.5px; color: var(--ink-3); }
.sp-mine-go { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.sp-mine-go i { font-style: normal; font-size: 20px; color: var(--ink-3); transition: transform .25s var(--ease); }
.sp-mine-item[open] .sp-mine-go i { transform: rotate(90deg); }
.sp-mine-item .sp-dl { margin: 0 18px 18px; }

@media (max-width: 960px) {
  .sp-d-grid { grid-template-columns: minmax(0, 1fr); }
  .sp-d-side { position: static; order: -1; }
  .sp-d-main { display: contents; }
  .sp-d-cover { order: -2; }
  .sp-d-content { padding: 22px 20px; margin-top: 0; }
}
@media (max-width: 640px) {
  .sp-hero { padding: 48px 0 24px; }
  .sp-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sp-detail { padding: 18px 16px 50px; }
  .sp-buy { padding: 20px 18px; }
  .sp-mine-go a { display: none; }
}
.sp-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 16px 0 0; }
.sp-specs a { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 12px; background: var(--fill-2); color: var(--ink); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background .2s; }
.sp-specs a:hover { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.sp-specs a.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.sp-specs b { font-size: 13.5px; font-weight: 600; }
.sp-specs small { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sp-specs a.on small { color: var(--accent); }
.sp-dl-n { font-weight: 400; font-size: 12px; color: var(--ink-3); margin-left: 8px; }
/* 广告位里的自营推广（服务端渲染，直接显示） */
.ad-house .ad-unit { color: var(--ink); text-decoration: none; }
.ad-house .ad-unit:hover { color: var(--ink); }
.ad-house .ad-title, .ad-house .ad-desc, .ad-house .ad-media, .ad-house .ad-body, .ad-house .ad-hd { display: block; }
.ad-house .ad-hd { display: flex; }
.ad-house .ad-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.ad-inline.ad-house .ad-body { display: flex; }
.ad-tag.is-house { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 600; }
.ad-house-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; text-align: center; color: #fff; font-weight: 700; font-size: 18px; line-height: 1.35; background: linear-gradient(135deg, #0a84ff, #bf5af2); }
.ar-toc:has(.ad-house) { display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 100px); }
.ar-toc:has(.ad-house) .ar-toc-card { max-height: none; flex: 1 1 auto; min-height: 220px; }
.article-body .ad-house a.ad-unit, .article-body .ad-house a.ad-unit:hover { text-decoration: none; color: var(--ink); border: 0; background: none; }

/* ================= AI 配音 ================= */
.vo-cur { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--fill-2); }
.vo-cur-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.vo-cur-t b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-cur-t small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-av { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #5e5ce6, #bf5af2); color: #fff; font-weight: 600; font-size: 15px; }
.vo-av:empty { background: var(--fill); }
.vo-av img { width: 100%; height: 100%; object-fit: cover; }
.vo-av i { font-style: normal; }
.vo-row { display: flex; gap: 8px; }
.vo-row > * { flex: 1; min-width: 0; }
.vo-lab { display: flex; align-items: baseline; justify-content: space-between; }
.vo-lab small.err { color: var(--err); }
.vo-text { min-height: 150px; line-height: 1.7; font-size: 14.5px; }
.vo-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.vo-tool-grp { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); margin-right: 4px; }
.vo-tools .chip { height: 26px; padding: 0 10px; font-size: 12.5px; }
.vo-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vo-quick button { border: 1px dashed var(--line); background: transparent; color: var(--ink-3); border-radius: 8px; padding: 3px 8px; font-size: 12px; cursor: pointer; }
.vo-quick button:hover { color: var(--accent); border-color: var(--accent); }
.vo-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.vo-sliders { display: grid; gap: 8px; margin: 14px 0; }
.vo-sl { display: grid; grid-template-columns: 40px minmax(0, 1fr) 52px; gap: 10px; align-items: center; font-size: 13px; }
.vo-sl input { width: 100%; }
.vo-sl em { font-style: normal; font-size: 12px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.vo-drop { min-height: 110px; }
.vo-drop b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.vo-bar { position: relative; height: 22px; border-radius: 8px; background: var(--fill-2); overflow: hidden; margin-top: 8px; font-size: 12px; }
.vo-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--accent) 22%, transparent); transition: width .2s; }
.vo-bar span { position: relative; display: block; text-align: center; line-height: 22px; color: var(--ink-2); }
[data-vc-src] { width: 100%; height: 36px; margin-top: 8px; }
.vo-list { padding: 12px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.vo-item { min-width: 0; padding: 14px; border-radius: 16px; background: var(--fill-2); }
.vo-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.vo-head b { flex: 1; min-width: 0; font-weight: 500; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-head .badge, .vo-head small { flex: none; }
.vo-p { margin: 8px 0 0; font-size: 13.5px; color: var(--ink); line-height: 1.65; word-break: break-word; }
.vo-item audio { width: 100%; height: 36px; margin-top: 10px; }
.vo-ops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vo-wait { padding: 10px 0 2px; font-size: 13.5px; color: var(--ink-2); }
.vo-modal { max-width: 760px; }
.vo-src-seg { margin-bottom: 10px; }
.vo-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.vo-filter .input { height: 34px; font-size: 13px; width: auto; flex: 1 1 110px; min-width: 0; }
.vo-filter [data-kw] { flex: 2 1 200px; }
.vo-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; min-height: 120px; }
.vo-v { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 14px; background: var(--fill-2); box-shadow: 0 0 0 1px transparent; }
.vo-v.on { box-shadow: 0 0 0 1.5px var(--accent); }
.vo-v-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.vo-v-t b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-v-t small { font-size: 11.5px; color: var(--ink-3); }
.vo-v-t p { margin: 2px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vo-v-ops { display: flex; flex-direction: column; gap: 4px; flex: none; }
.vo-v-ops .btn { height: 26px; padding: 0 10px; font-size: 12px; }
.vo-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 640px) { .vo-vgrid { grid-template-columns: 1fr; } .vo-grid2 { grid-template-columns: 1fr; } }

/* ===== 提分伙伴 ===== */
.sbx { max-width: 900px; }
.sbx-tabs { display: flex; gap: 4px; background: color-mix(in srgb, var(--paper) 93%, var(--ink) 7%); border-radius: 12px; padding: 3px; margin-bottom: 16px; position: sticky; top: 64px; z-index: 5; box-shadow: 0 0 0 6px var(--paper); }
.sbx-tabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink-2); padding: 8px 6px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.sbx-tabs button svg { width: 17px; height: 17px; flex: none; }
.sbx-tabs button.on { background: var(--paper-2); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.sbx section > .card + .card, .sbx [data-archive] > .card + .card, .sbx-extra > .card { margin-top: 12px; }
.sbx-hero { border-radius: var(--radius-lg); padding: 20px 22px; color: #fff; background: linear-gradient(135deg, #ff9f0a 0%, #ff7a3d 45%, #34c759 140%); margin-bottom: 14px; display: grid; grid-template-columns: 1fr auto; gap: 14px 12px; align-items: center; box-shadow: var(--shadow); }
.sbx-hero-t b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.sbx-hero-t small { color: rgba(255, 255, 255, .85); font-size: 13px; }
.sbx-cur { justify-self: end; display: inline-flex; align-items: center; gap: 6px; border: 0; background: rgba(255, 255, 255, .22); color: #fff; font: inherit; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; cursor: pointer; max-width: 100%; }
.sbx-cur svg { width: 14px; height: 14px; flex: none; }
.sbx-cur:hover { background: rgba(255, 255, 255, .32); }
.sbx-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sbx-stats > div { background: rgba(255, 255, 255, .18); border-radius: 12px; padding: 10px 8px; text-align: center; }
.sbx-stats b { display: block; font-size: 22px; font-weight: 700; line-height: 1.2; }
.sbx-stats small { color: rgba(255, 255, 255, .88); font-size: 12px; }
.sbx-mood { text-align: center; }
.sbx-mood-t { font-weight: 600; margin-bottom: 12px; }
.sbx-moods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.sbx-moods button { border: 1px solid var(--line-2); background: var(--paper-2); border-radius: 14px; padding: 12px 6px; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: transform .15s, border-color .2s, background .2s; }
.sbx-moods button i { display: block; font-style: normal; font-size: 28px; margin-bottom: 4px; }
.sbx-moods button:hover { transform: translateY(-2px); }
.sbx-moods button.on { border-color: #ff9f0a; background: rgba(255, 159, 10, .1); color: var(--ink); }
.sbx-mood-msg { font-size: 13.5px; color: var(--ink-2); background: var(--fill-2); border-radius: 10px; padding: 10px 12px; margin-bottom: 4px; }
.sbx-loading { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; color: var(--ink-2); font-size: 14px; }
.sbx-loading small { color: var(--ink-3); font-size: 12px; }
.sbx-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--fill); border-top-color: #ff9f0a; animation: sbxspin .8s linear infinite; }
@keyframes sbxspin { to { transform: rotate(360deg); } }
.sbx-q-top { display: flex; align-items: center; gap: 8px; }
.sbx-q-top .sp { flex: 1; }
.sbx-node { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; }
.sbx-node i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.sbx-node small { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.sbx-q-sub { font-size: 12.5px; }
.sbx-bar { display: block; height: 6px; background: var(--fill); border-radius: 99px; overflow: hidden; }
.sbx-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ff9f0a, #34c759); transition: width .6s var(--ease); }
.sbx-bar.bad i { background: linear-gradient(90deg, #ff3b30, #ff9f0a); }
.sbx-q .sbx-bar { margin-top: 12px; }
.sbx-bar-t { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.sbx-q-text { font-size: 16.5px; line-height: 1.75; margin: 16px 0 14px; color: var(--ink); white-space: normal; word-break: break-word; }
.sbx-opts { display: grid; gap: 8px; }
.sbx-opt { display: flex; align-items: flex-start; gap: 10px; text-align: left; border: 1px solid var(--line-2); background: var(--paper-2); color: var(--ink); border-radius: 12px; padding: 11px 13px; font: inherit; font-size: 15px; line-height: 1.55; cursor: pointer; transition: border-color .15s, background .15s; }
.sbx-opt i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12.5px; font-weight: 700; background: var(--fill); color: var(--ink-2); }
.sbx-opt:hover:not(:disabled) { border-color: #ff9f0a; background: rgba(255, 159, 10, .06); }
.sbx-opt:disabled { cursor: default; }
.sbx-opt.sel { border-color: #ff9f0a; }
.sbx-opt.ok { border-color: var(--ok); background: rgba(52, 199, 89, .1); }
.sbx-opt.ok i { background: var(--ok); color: #fff; }
.sbx-opt.bad { border-color: var(--err); background: rgba(255, 59, 48, .08); }
.sbx-opt.bad i { background: var(--err); color: #fff; }
.sbx-opt.dim { opacity: .55; }
.sbx-fb { border-radius: 12px; padding: 13px 15px; margin: 14px 0 12px; font-size: 14px; line-height: 1.7; }
.sbx-fb.ok { background: rgba(52, 199, 89, .1); }
.sbx-fb.bad { background: rgba(255, 159, 10, .1); }
.sbx-fb-h { font-weight: 700; font-size: 15px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sbx-fb-h small { font-weight: 500; color: var(--ok); font-size: 12.5px; }
.sbx-fb p { margin: 6px 0 0; }
.sbx-fb-tip { color: var(--warn); }
.sbx-fb-exp { margin-top: 8px; color: var(--ink-2); }
.sbx-fb-hint { font-size: 12.5px; color: var(--ink-3); }
.sbx-q-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.sbx-tip small, .sbx-quote small { color: var(--ink-3); font-size: 12px; }
.sbx-tip p { margin: 6px 0 0; font-size: 14px; line-height: 1.7; }
.sbx-quote { text-align: center; }
.sbx-quote p { margin: 0 0 6px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.sbx-sec-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sbx-sec-h b { font-size: 15px; }
.sbx-sec-h small { font-size: 12.5px; }
.sbx-lv { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 16px 0 8px; }
.sbx-lv:first-child { margin-top: 0; }
.sbx-lv i { width: 7px; height: 7px; border-radius: 50%; }
.sbx-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.sbx-mn { text-align: left; border: 1px solid var(--line); background: var(--paper-2); border-radius: 12px; padding: 10px 12px; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, transform .15s; }
.sbx-mn:hover { border-color: #ff9f0a; transform: translateY(-1px); }
.sbx-mn.good { background: rgba(52, 199, 89, .07); }
.sbx-mn.lock { opacity: .62; }
.sbx-mn-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 7px; }
.sbx-mn-h b { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.sbx-mn-h em { font-style: normal; font-size: 12px; color: var(--ink-3); flex: none; }
.sbx-mn small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.sbx-chat { padding: 0; display: flex; flex-direction: column; height: min(720px, calc(100vh - 190px)); min-height: 460px; overflow: hidden; }
.sbx-chat-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sbx-chat-top .sp { flex: 1; }
.sbx-pill { font-size: 12px; color: var(--ink-2); background: var(--fill-2); padding: 3px 10px; border-radius: 999px; }
.sbx-chips { display: flex; gap: 6px; padding: 10px 16px 0; overflow-x: auto; scrollbar-width: none; flex: none; }
.sbx-chips::-webkit-scrollbar { display: none; }
.sbx-chips .chip { flex: none; }
.sbx-msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.sbx-chat-empty { margin: auto; text-align: center; color: var(--ink-2); font-size: 15px; line-height: 1.9; }
.sbx-chat-empty small { color: var(--ink-3); font-size: 13px; }
.sbx-m { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.7; word-break: break-word; }
.sbx-m.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.sbx-m.ai { align-self: flex-start; background: var(--fill-2); color: var(--ink); border-bottom-left-radius: 5px; }
.sbx-m.err { color: var(--err); }
.sbx-m img { display: block; max-width: 200px; max-height: 200px; border-radius: 10px; margin-bottom: 6px; }
.sbx-m-img { display: block; font-size: 12.5px; opacity: .85; margin-bottom: 4px; }
.sbx-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.sbx-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: sbxdot 1.2s infinite ease-in-out; }
.sbx-dots i:nth-child(2) { animation-delay: .15s; }
.sbx-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes sbxdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.sbx-compose { border-top: 1px solid var(--line); padding: 10px 12px 8px; flex: none; }
.sbx-img { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; position: relative; }
.sbx-img img { width: 54px; height: 54px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }
.sbx-img button { position: absolute; left: 44px; top: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper-2); font-size: 14px; line-height: 1; cursor: pointer; }
.sbx-img small { font-size: 12.5px; color: var(--ink-3); }
.sbx-row { display: flex; align-items: flex-end; gap: 8px; }
.sbx-row textarea { flex: 1; min-height: 40px; height: 40px; padding: 9px 12px; resize: none; line-height: 1.5; }
.sbx-row .btn { flex: none; height: 40px; }
.sbx-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--fill-2); color: var(--ink-2); cursor: pointer; }
.sbx-ic:hover { background: var(--fill); color: var(--ink); }
.sbx-ic svg { width: 20px; height: 20px; }
.sbx-hint { margin: 6px 2px 0; font-size: 11.5px; }
.sbx-astats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 12px; }
.sbx-astats .card { padding: 14px 10px; text-align: center; }
.sbx-astats b { display: block; font-size: 21px; font-weight: 700; }
.sbx-astats small { font-size: 12px; color: var(--ink-3); }
.sbx-portrait { background: linear-gradient(135deg, rgba(94, 92, 230, .1), rgba(52, 199, 89, .08)); }
.sbx-portrait p { margin: 0; font-size: 14px; line-height: 1.8; }
.sbx-cal { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; }
.sbx-cal i { aspect-ratio: 1; border-radius: 4px; background: var(--fill); }
.sbx-cal i.s1 { background: rgba(52, 199, 89, .35); }
.sbx-cal i.s2 { background: rgba(52, 199, 89, .65); }
.sbx-cal i.s3 { background: #248a3d; }
.sbx-h4 { font-size: 13px; margin: 16px 0 8px; color: var(--ink-2); }
.sbx-h4.bad { color: var(--err); }
.sbx-h4.good { color: var(--ok); }
.sbx-nr { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) 40px auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.sbx-nr small { display: block; color: var(--ink-3); font-size: 11.5px; }
.sbx-nr em { font-style: normal; font-size: 12.5px; color: var(--ink-2); text-align: right; }
.sbx-empty { text-align: center; padding: 20px 0; margin: 0; }
.sbx-set { display: grid; gap: 4px; }
.sbx-set label { display: grid; grid-template-columns: 1fr 180px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sbx-set label b { display: block; font-size: 14px; font-weight: 600; }
.sbx-set label small { color: var(--ink-3); font-size: 12.5px; }
.sbx-styles { display: grid; gap: 8px; }
.sbx-style { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 13px; cursor: pointer; }
.sbx-style:has(input:checked) { border-color: #ff9f0a; background: rgba(255, 159, 10, .07); }
.sbx-style input { margin-top: 4px; accent-color: #ff9f0a; }
.sbx-style b { display: block; font-size: 14px; }
.sbx-style small { color: var(--ink-3); font-size: 12.5px; line-height: 1.6; }
.sbx-about p { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); margin: 0 0 8px; }
.sbx-about p:last-child { margin-bottom: 0; }
.sbx-reward { position: fixed; inset: 0; display: grid; place-items: center; z-index: 200; pointer-events: none; animation: sbxin .25s var(--ease); }
.sbx-reward > div { background: var(--paper-2); border-radius: 22px; padding: 22px 34px; text-align: center; box-shadow: var(--shadow-lg); }
.sbx-reward i { display: block; font-style: normal; font-size: 46px; }
.sbx-reward b { display: block; font-size: 19px; margin-top: 4px; }
.sbx-reward p { margin: 4px 0 10px; color: var(--ink-2); font-size: 13.5px; }
.sbx-reward span { display: inline-block; background: rgba(255, 159, 10, .14); color: #c26a00; font-weight: 600; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.sbx-reward.out { opacity: 0; transition: opacity .4s; }
@keyframes sbxin { from { opacity: 0; transform: scale(.92); } }
@media (max-width: 760px) {
  .sbx-tabs { top: 56px; }
  .sbx-tabs button { flex-direction: column; gap: 2px; font-size: 11.5px; padding: 6px 2px; }
  .sbx-hero { padding: 16px; }
  .sbx-cur { grid-column: 1 / -1; justify-self: start; }
  .sbx-astats { grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .sbx-astats .card { grid-column: span 2; padding: 12px 6px; }
  .sbx-astats .card:nth-child(n+4) { grid-column: span 3; }
  .sbx-set label { grid-template-columns: 1fr; gap: 6px; }
  .sbx-chat { height: calc(100vh - 170px); height: calc(100dvh - 170px); min-height: 400px; }
  .sbx-row { flex-wrap: wrap; }
  .sbx-row textarea { order: -1; flex-basis: 100%; }
  .sbx-row .btn { flex: 1; }
  .sbx-nr { grid-template-columns: minmax(0, 1fr) 50px 36px auto; gap: 6px; }
  .sbx-map { grid-template-columns: 1fr 1fr; gap: 6px; }
  .sbx-mn { padding: 9px 10px; }
  .sbx-mn-h b { font-size: 13px; }
  .sbx-m { max-width: 92%; }
}

/* ================= 专家页（/experts）：特邀顾问在上、站长在下，不放头像 ================= */
.ex-hero { padding-bottom: 8px; }
.ex-stmt { padding: 22px 24px; border-radius: 24px; background: var(--paper-2); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); border-top: 3px solid var(--ok); }
.ex-stmt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ex-stmt-head b { font-size: 16px; letter-spacing: -.01em; }
.ex-stmt-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.ex-stmt-ic svg { width: 19px; height: 19px; }
.ex-stmt p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.ex-stmt p:last-child { margin-bottom: 0; color: var(--ink); font-weight: 500; }

.ex-person { display: grid; gap: 26px; padding: 34px 36px; border-radius: 28px; background: var(--paper-2); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.ex-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.ex-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--accent); margin-bottom: 8px; }
.ex-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.is-adv .ex-kicker { color: var(--indigo); }
.ex-name { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; margin: 0; }
.ex-role { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; background: var(--fill-2); color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.ex-p { margin: 0 0 10px; font-size: 16px; line-height: 1.85; color: var(--ink-2); max-width: 40em; }
.ex-p:first-child { color: var(--ink); }
.ex-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: start; }
.ex-main { min-width: 0; }
.ex-creds { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.ex-creds li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--fill-2); font-size: 14.5px; color: var(--ink); }
.ex-creds svg { flex: none; width: 16px; height: 16px; color: var(--indigo); }
.ex-side { display: grid; gap: 12px; min-width: 0; }
.ex-box { padding: 18px 20px; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.ex-box h3 { font-size: 14.5px; margin: 0 0 10px; }
.ex-box.is-do { background: color-mix(in srgb, var(--ok) 6%, var(--paper-2)); }
.ex-box.is-no { background: color-mix(in srgb, var(--err) 4%, var(--paper-2)); }
.ex-box .st-list li { font-size: 14px; }

.ex-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 28px; align-items: start; }
.ex-areas small { display: block; font-size: 12px; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 10px; }
.ex-areas div { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-areas span { padding: 7px 13px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13.5px; font-weight: 500; }
.ex-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0; }
.ex-facts div { padding: 16px 18px; border-radius: 18px; background: var(--fill-2); min-width: 0; }
.ex-facts dt { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.ex-facts dd { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.ex-sub { font-size: 17px; margin: 0 0 12px; }
.ex-works { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ex-work { padding: 20px; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); background: var(--paper-2); }
.ex-work h4 { font-size: 15.5px; margin: 0 0 8px; letter-spacing: -.01em; }
.ex-work p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.ex-course b { display: flex; align-items: center; gap: 8px; }
.ex-promise { padding: 30px 32px; border-radius: 28px; background: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 60%), var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.ex-promise .st-list li { font-size: 15.5px; }
.ex-promise .st-list li.lead { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .ex-body, .ex-intro { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .ex-person { padding: 24px 18px; border-radius: 22px; gap: 20px; }
  .ex-promise { padding: 24px 18px; border-radius: 22px; }
  .ex-stmt { padding: 18px 16px; }
  .ex-head { align-items: flex-start; flex-direction: column; }
  .ex-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ex-facts div { padding: 14px; }
  .ex-facts dt { font-size: 19px; }
}

/* 工具落地页：分组小标题，第一组紧贴「工具一览」 */
.tl-sec .container > h3.tl-sub:first-of-type { margin-top: 18px; }

/* ================= 工具区 · AI 长文写作（/tools/longform） ================= */
.lf .tool-head .btn { flex: none; }
.lf .tool-split { grid-template-columns: 360px minmax(0, 1fr); }
.lf-side { display: grid; gap: 14px; }
.lf-form { display: flex; flex-direction: column; }
.lf-form .label { margin-top: 14px; }
.lf-form .label small { font-weight: 400; }
.lf-mode { margin-bottom: 4px; }
.lf-skill-info { min-height: 1.4em; }
.lf-drop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--fill-2); color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; }
.lf-drop svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.lf-drop span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lf-drop b { font-size: 14px; font-weight: 600; color: var(--ink); }
.lf-drop small { font-size: 12px; color: var(--ink-3); }
.lf-drop:hover, .lf-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.lf-drop-sm { padding: 10px 14px; margin-bottom: 8px; }
.lf-files { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.lf-files:empty { display: none; }
.lf-file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 6px 5px 10px; border-radius: 999px; background: var(--fill); font-size: 12.5px; }
.lf-file b { font-weight: 500; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-file small { color: var(--ink-3); white-space: nowrap; }
.lf-file.err { background: color-mix(in srgb, var(--err) 10%, transparent); color: var(--err); }
.lf-file.err small { color: inherit; }
.lf-file button { border: 0; background: transparent; color: var(--ink-3); font-size: 15px; line-height: 1; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; }
.lf-file button:hover { background: var(--fill); color: var(--ink); }
.lf-source { margin-top: 8px; }
.lf-target { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lf-target .input { width: 120px; flex: none; }
.lf-import-tip { margin: 14px 0 0; line-height: 1.7; }

.lf-main { min-height: 560px; overflow: visible; }   /* tool-main 默认 overflow:hidden 会让卡片成为吸顶容器，工具栏被推下 56px */
.lf-empty { padding: 56px 40px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.lf-empty-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #0a84ff, #30b0c7); box-shadow: 0 10px 30px color-mix(in srgb, #0a84ff 30%, transparent); margin-bottom: 18px; }
.lf-empty-ic svg { width: 30px; height: 30px; }
.lf-empty h2 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 8px; text-wrap: balance; }
.lf-empty > p { max-width: 30em; margin: 0 0 26px; line-height: 1.7; }
.lf-flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; width: 100%; max-width: 720px; counter-reset: lf; }
.lf-flow li { counter-increment: lf; text-align: left; padding: 14px 16px; border-radius: 16px; background: var(--fill-2); box-shadow: 0 0 0 1px var(--line); }
.lf-flow li::before { content: counter(lf); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #0a84ff, #5e5ce6); margin-bottom: 8px; }
.lf-flow b { display: block; font-size: 14.5px; }
.lf-flow span { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

.lf-work { display: flex; flex-direction: column; min-height: 560px; }
.lf-bar { position: sticky; top: 56px; z-index: 5; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: color-mix(in srgb, var(--paper-2) 92%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); }
.lf-title { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46%; }
.lf-status { flex: none; }
.lf-progress { padding: 14px 18px 4px; }
.lf-bar-track { height: 6px; border-radius: 6px; background: var(--fill); overflow: hidden; }
.lf-bar-track i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #0a84ff, #30b0c7); transition: width .5s var(--ease); }
.lf-progress.is-live .lf-bar-track i { background-size: 200% 100%; background-image: linear-gradient(90deg, #0a84ff, #30b0c7, #0a84ff); animation: lfFlow 2.4s linear infinite; }
@keyframes lfFlow { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .lf-progress.is-live .lf-bar-track i { animation: none; } }
.lf-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; }
.lf-meta div { min-width: 0; }
.lf-meta dt { font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; }
.lf-meta dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-meta dd small { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.lf-log { margin: 12px 18px 0; border-radius: 14px; background: var(--fill-2); box-shadow: 0 0 0 1px var(--line); }
.lf-log > summary { cursor: pointer; padding: 10px 14px; font-size: 13.5px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.lf-log > summary::-webkit-details-marker { display: none; }
.lf-log > summary::after { content: '›'; margin-left: auto; transform: rotate(90deg); transition: transform .15s; color: var(--ink-3); font-size: 16px; }
.lf-log:not([open]) > summary::after { transform: none; }
.lf-log > summary small { font-weight: 400; }
.lf-outline { padding: 0 14px 10px; font-size: 13px; }
.lf-outline > b { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.lf-outline ol { margin: 6px 0 0; padding-left: 1.5em; display: grid; gap: 3px; }
.lf-outline li { color: var(--ink-2); }
.lf-outline li span { margin-right: 6px; }
.lf-outline li small { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lf-outline li.done { color: var(--ink); }
.lf-outline li.done::marker { color: var(--ok); }
.lf-events { list-style: none; margin: 0; padding: 0 14px 12px; max-height: 220px; overflow-y: auto; display: grid; gap: 2px; font-size: 12.5px; }
.lf-events li { display: grid; grid-template-columns: 56px 18px minmax(0, 1fr); gap: 6px; align-items: baseline; padding: 3px 0; }
.lf-events time { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lf-events p { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.lf-events li.s-failed p, .lf-events li.s-retry p { color: var(--warn); }
.lf-events li.s-success p { color: var(--ok); font-weight: 600; }
.lf-doc-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.lf-doc-count { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.lf-doc { padding: 6px 28px 28px; font-size: 15.5px; line-height: 1.85; min-width: 0; overflow-wrap: anywhere; }
.lf-doc h1 { font-size: 26px; letter-spacing: -.02em; }
.lf-doc h2 { font-size: 21px; }
.lf-doc pre { background: var(--fill-2); border-radius: 12px; padding: 12px 14px; overflow-x: auto; font-size: 13px; line-height: 1.6; }
.lf-doc pre code { background: none; padding: 0; }
.lf-doc .lf-table { overflow-x: auto; margin: 1em 0; }
.lf-doc .lf-table table { margin: 0; min-width: 480px; }
.lf-doc-wait { padding: 40px 0; text-align: center; }
.lf-src { margin: 6px 18px 18px; padding: 14px 16px; border-radius: 12px; background: var(--fill-2); font-family: var(--mono); font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 70vh; overflow: auto; }
.lf-revise { margin: 8px 18px 18px; padding: 18px 20px; border-radius: 18px; background: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 60%), var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.lf-revise-head { display: flex; align-items: center; gap: 10px; }
.lf-revise-head h3 { margin: 0; font-size: 16px; }
.lf-revise .help { margin: 6px 0 10px; line-height: 1.65; }
.lf-rev-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.lf-rev-list:empty { display: none; }
.lf-rev-list li { padding: 10px 12px; border-radius: 12px; background: var(--fill-2); font-size: 13px; }
.lf-rev-list li b { margin-right: 8px; }
.lf-rev-list li small { color: var(--ink-3); }
.lf-rev-list li p { margin: 4px 0 0; color: var(--ink-2); max-height: 5.4em; overflow: hidden; }
.lf-rev-list li.bad small { color: var(--warn); }
.lf-rev-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.lf-closed { margin: 8px 18px 18px; padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--ok) 8%, var(--paper-2)); box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lf-closed span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; flex: 1; }
.lf-closed svg { width: 18px; height: 18px; color: var(--ok); }

.lf-history { margin-top: 18px; }
.lf-history-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.lf-history-head h3 { margin: 0; font-size: 16px; }
.lf-hist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.lf-hist-item { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 40px 14px 16px; border-radius: 16px; background: var(--fill-2); box-shadow: 0 0 0 1px var(--line); cursor: pointer; text-align: left; transition: box-shadow .15s, background .15s; min-width: 0; }
.lf-hist-item:hover { background: var(--paper-2); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.lf-hist-item.on { box-shadow: 0 0 0 2px var(--accent); background: var(--paper-2); }
.lf-hist-item .badge { align-self: flex-start; }
.lf-hist-item b { font-size: 14.5px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lf-hist-item small { font-size: 12px; color: var(--ink-3); }
.lf-hist-del { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); font-size: 16px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.lf-hist-item:hover .lf-hist-del, .lf-hist-del:focus-visible { opacity: 1; }
.lf-hist-del:hover { background: var(--fill); color: var(--err); }
.lf-hist-empty { grid-column: 1 / -1; padding: 18px 4px; font-size: 13.5px; }

.lf-modal { max-width: 560px; }
.lf-modal-wide { max-width: 820px; }
.lf-modal .lf-src { margin: 0; max-height: 64vh; }
.lf-skill-tabs { margin-bottom: 12px; }
.lf-skill-list { display: grid; gap: 8px; }
.lf-skill { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--fill-2); }
.lf-skill > div:first-child { flex: 1; min-width: 0; }
.lf-skill b { font-size: 14px; }
.lf-skill small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-skill.off { opacity: .6; }
.lf-skill-acts { display: flex; gap: 2px; flex: none; }
.lf-skill-acts .btn { padding: 4px 8px; }
.lf-danger { color: var(--err) !important; }
.lf-sk-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; margin: 8px 0; }
[data-spane="upload"] textarea { margin-top: 8px; }
[data-spane="upload"] .check { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; font-size: 13.5px; }

@media (max-width: 980px) {
  .lf .tool-split { grid-template-columns: 1fr; }
  .lf-bar { top: 56px; }
}
@media (max-width: 640px) {
  .lf-empty { padding: 36px 18px; }
  .lf-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lf-doc { padding: 6px 16px 22px; }
  .lf-title { max-width: 100%; order: -1; flex-basis: 100%; }
  .lf-skill { flex-direction: column; align-items: stretch; }
  .lf-skill-acts { justify-content: flex-end; }
  .lf-sk-row { grid-template-columns: 1fr; }
  .lf-hist-del { opacity: 1; }
}


/* ================= 工具区 · 朱雀 AI 检测（/tools/zhuque） ================= */
.zq { --zq-ai: #e5484d; --zq-sus: #f0a020; --zq-hu: #1f9d55; }
:root[data-theme="dark"] .zq { --zq-ai: #ff6369; --zq-sus: #ffb224; --zq-hu: #3dd68c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .zq { --zq-ai: #ff6369; --zq-sus: #ffb224; --zq-hu: #3dd68c; } }
.zq .tool-split { grid-template-columns: 400px minmax(0, 1fr); }
@media (max-width: 1080px) { .zq .tool-split { grid-template-columns: 340px minmax(0, 1fr); } }
@media (max-width: 860px) { .zq .tool-split { grid-template-columns: 1fr; } }
.zq-side { display: flex; flex-direction: column; }
.zq-lab { display: flex; align-items: baseline; justify-content: space-between; }
.zq-lab small.over { color: var(--err); font-weight: 600; }
.zq-text { min-height: 300px; resize: vertical; line-height: 1.7; margin-bottom: 10px; }
.zq-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.zq-go { margin-top: 6px; }
.zq-empty { padding: 56px 40px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.zq-empty .lf-empty-ic { background: linear-gradient(135deg, #ff453a, #ff9f0a); box-shadow: 0 10px 30px color-mix(in srgb, #ff453a 28%, transparent); }
.zq-empty h2 { margin: 0 0 8px; font-size: 22px; }
.zq-empty p { max-width: 460px; }
.zq-legend { display: flex; gap: 18px; justify-content: center; margin: 14px 0 6px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.zq-legend span, .zq-bar > span { display: inline-flex; align-items: center; gap: 6px; }
.zq-legend i, .zq-bar > span i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.zq i.l1, .zq-track i.l1 { background: var(--zq-ai); }
.zq i.l2, .zq-track i.l2 { background: var(--zq-sus); }
.zq i.l0, .zq-track i.l0 { background: var(--zq-hu); }
.zq-disclaim { max-width: 560px; font-size: 12.5px; }
.zq-res { padding: 18px 20px 16px; }
@media (max-width: 560px) { .zq-res { padding: 14px 12px; } }
.zq-res-h { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.zq-res-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zq-res-t b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zq-res-t small { font-size: 12.5px; }
.zq-score { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center; padding: 16px; border-radius: 16px; background: var(--fill-2); }
@media (max-width: 560px) { .zq-score { grid-template-columns: 1fr; justify-items: center; } }
.zq-ring { position: relative; width: 150px; height: 150px; }
.zq-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.zq-ring circle { fill: none; stroke-width: 11; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.zq-ring .bg { stroke: var(--line); stroke-dashoffset: 0; }
.zq-ring .fg { stroke: var(--zq-ai); }
.zq-ring .fg2 { stroke: var(--zq-sus); opacity: .85; }
.zq-ring div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.zq-ring b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.zq-ring small { font-size: 12px; color: var(--ink-3); }
.zq-bars { display: grid; gap: 10px; width: 100%; }
.zq-bar { display: grid; grid-template-columns: 86px minmax(0, 1fr) 56px; align-items: center; gap: 10px; font-size: 13.5px; }
.zq-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.zq-track { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.zq-track i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.zq-bars .help { margin: 2px 0 0; }
.zq-seg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 22px 0 10px; }
.zq-seg-bar h3 { margin: 0; font-size: 16px; }
.zq-seg-bar h3 small { font-weight: 400; font-size: 12.5px; margin-left: 6px; }
.zq-seg-bar .sp { flex: 1; }
.zq-segs { display: grid; gap: 8px; }
.zq-seg { position: relative; padding: 10px 14px 10px 16px; border-radius: 12px; background: var(--fill-2); border-left: 4px solid transparent; }
.zq-seg.l1 { border-left-color: var(--zq-ai); background: color-mix(in srgb, var(--zq-ai) 8%, transparent); }
.zq-seg.l2 { border-left-color: var(--zq-sus); background: color-mix(in srgb, var(--zq-sus) 9%, transparent); }
.zq-seg.l0 { border-left-color: color-mix(in srgb, var(--zq-hu) 55%, transparent); }
.zq-seg p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--ink); word-break: break-word; }
.zq-seg-tag { float: right; margin: 0 0 4px 10px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; color: var(--zq-hu); background: color-mix(in srgb, var(--zq-hu) 12%, transparent); }
.zq-seg.l1 .zq-seg-tag { color: var(--zq-ai); background: color-mix(in srgb, var(--zq-ai) 13%, transparent); }
.zq-seg.l2 .zq-seg-tag { color: var(--zq-sus); background: color-mix(in srgb, var(--zq-sus) 15%, transparent); }
.zq-hist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.zq-hcard { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--fill-2); cursor: pointer; box-shadow: 0 0 0 1px transparent; transition: box-shadow .15s; }
.zq-hcard:hover, .zq-hcard.on { box-shadow: 0 0 0 1.5px var(--accent); }
.zq-hpct { flex: none; width: 58px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.zq-hpct.l1 { color: var(--zq-ai); background: color-mix(in srgb, var(--zq-ai) 13%, transparent); }
.zq-hpct.l2 { color: var(--zq-sus); background: color-mix(in srgb, var(--zq-sus) 15%, transparent); }
.zq-hpct.l0 { color: var(--zq-hu); background: color-mix(in srgb, var(--zq-hu) 13%, transparent); }
.zq-hbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zq-hbody b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zq-hbody small { font-size: 12px; color: var(--ink-3); }
.zq-hdel { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); font-size: 16px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.zq-hcard:hover .zq-hdel { opacity: 1; }
.zq-hdel:hover { background: var(--fill); color: var(--err); }
@media (hover: none) { .zq-hdel { opacity: 1; } }
/* 写作类工具里的「检测 AI 率」按钮 */
.zq-send { white-space: nowrap; }

/* =========================================================
   卡拍练唱（/tools/beat）
   ========================================================= */
.kp { --kp-go: #ff9500; --kp-go-soft: rgba(255, 149, 0, .14); --kp-voc: rgba(255, 45, 85, .16); --kp-pink: #ff2d55; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kp { --kp-go: #ffb340; --kp-go-soft: rgba(255, 179, 64, .16); --kp-voc: rgba(255, 85, 120, .24); } }
:root[data-theme="dark"] .kp { --kp-go: #ffb340; --kp-go-soft: rgba(255, 179, 64, .16); --kp-voc: rgba(255, 85, 120, .24); }
.kp > .notice-bar { margin-bottom: 14px; }
.kp .notice-bar svg { color: var(--accent); }
.kp .btn-link { border: 0; background: none; color: var(--accent); font: inherit; padding: 0; cursor: pointer; }
.kp-split { grid-template-columns: 320px minmax(0, 1fr); }
@media (max-width: 1080px) { .kp-split { grid-template-columns: 290px minmax(0, 1fr); } }
@media (max-width: 860px) { .kp-split { grid-template-columns: 1fr; } }

/* 侧栏 */
.kp-side { padding: 18px; }
.kp-side-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.kp-side-h h3 { margin: 0; font-size: 16px; }
.kp-side-h .btn { padding: 0 8px; }
.kp-import { display: grid; gap: 8px; padding: 12px; margin-bottom: 12px; border-radius: 16px; background: var(--fill-2); }
.kp-import .help { margin: 0; }
.kp-import .btn-block { margin-top: 4px; }
.kp-slot, .kp-as { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--paper-2); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, background .15s; }
.kp-slot:hover, .kp-slot.over { box-shadow: inset 0 0 0 1.5px var(--accent); }
.kp-slot.has { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ok) 60%, transparent); }
.kp-slot.has .kp-slot-ic { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.kp-slot-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--fill); color: var(--ink-2); }
.kp-slot-ic svg { width: 17px; height: 17px; }
.kp-slot-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.kp-slot-t b { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kp-slot-t b i { font-style: normal; font-weight: 500; font-size: 10.5px; padding: 1px 6px; border-radius: 99px; background: var(--fill); color: var(--ink-3); }
.kp-slot-t b i.req { background: color-mix(in srgb, var(--kp-pink) 13%, transparent); color: var(--kp-pink); }
.kp-slot-t small { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-songs { display: grid; gap: 4px; max-height: 46vh; overflow: auto; margin: 0 -6px; padding: 0 6px; }
.kp-songs-empty { font-size: 13px; color: var(--ink-3); padding: 12px 4px; }
.kp-song { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.kp-song:hover { background: var(--fill-2); }
.kp-song.on { background: var(--accent-soft); }
.kp-song-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--kp-pink), #af52de); }
.kp-song-ic svg { width: 17px; height: 17px; }
.kp-song-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.kp-song-t b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-song-t small { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-x { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.kp-song:hover .kp-x, .kp-ent:hover .kp-x { opacity: 1; }
.kp-x:hover { background: var(--fill); color: var(--err); }
@media (hover: none) { .kp-x { opacity: 1; } }
.kp-side-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.kp-side-foot .help { margin: 8px 0 0; }
.kp-lat-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 12px; background: var(--fill-2); color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.kp-lat-btn:hover { background: var(--fill); }
.kp-lat-btn svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.kp-lat-btn span { display: flex; flex-direction: column; line-height: 1.3; }
.kp-lat-btn b { font-size: 13.5px; font-weight: 600; }
.kp-lat-btn small { font-size: 11.5px; }

/* 主区 */
.kp-main { min-height: 560px; }
.kp-empty { padding: 48px 36px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.kp-empty .lf-empty-ic { background: linear-gradient(135deg, var(--kp-pink), #af52de); box-shadow: 0 10px 30px color-mix(in srgb, #ff2d55 28%, transparent); }
.kp-empty h2 { margin: 0 0 6px; font-size: 22px; }
.kp-empty > p { margin: 0 0 22px; max-width: 460px; }
.kp-steps { list-style: none; counter-reset: kp; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 520px; text-align: left; }
.kp-steps li { counter-increment: kp; position: relative; padding: 12px 14px 12px 50px; border-radius: 14px; background: var(--fill-2); display: flex; flex-direction: column; gap: 2px; }
.kp-steps li::before { content: counter(kp); position: absolute; left: 14px; top: 13px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.kp-steps b { font-size: 14.5px; }
.kp-steps span { font-size: 13px; color: var(--ink-2); }
.kp-song-view { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.kp-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kp-top-t { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kp-top-t > b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.kp-top-t > span { display: inline-flex; gap: 4px; flex-wrap: wrap; }

/* 大字计数 */
.kp-stage { position: relative; display: flex; align-items: stretch; gap: 18px; padding: 18px 20px; min-height: 172px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, var(--paper-2)), color-mix(in srgb, #af52de 6%, var(--paper-2))); box-shadow: inset 0 0 0 1px var(--line); }
.kp-stage-l { flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); padding-right: 14px; }
.kp-stage-l b { font: 800 60px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.kp-stage-l small { font-size: 12px; min-height: 1.4em; }
.kp-stage-l small:first-child { color: var(--accent); font-weight: 600; }
.kp-stage-r { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.kp-count { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 52px; }
.kp-tk { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 700 20px/1 var(--display); color: var(--ink-3); background: var(--fill); transition: transform .08s, background .08s, color .08s; font-variant-numeric: tabular-nums; }
.kp-tk.one { box-shadow: inset 0 0 0 2px var(--line-2); color: var(--ink-2); }
.kp-tk.h { width: 34px; height: 34px; font-size: 13px; font-weight: 600; }
.kp-tk.past { opacity: .55; }
.kp-tk.on { background: var(--accent); color: #fff; transform: scale(1.12); box-shadow: 0 6px 16px -6px var(--accent); }
.kp-tk.go { background: var(--kp-go-soft); color: var(--kp-go); box-shadow: inset 0 0 0 2.5px var(--kp-go); }
.kp-tk.go.on { background: var(--kp-go); color: #fff; box-shadow: 0 6px 18px -6px var(--kp-go); }
.kp-tk.muted { width: auto; background: none; letter-spacing: .3em; }
.kp-cue { font-size: 17px; font-weight: 600; color: var(--ink-2); min-height: 1.5em; line-height: 1.4; }
.kp-cue b { font-size: 24px; color: var(--accent); margin: 0 2px; font-variant-numeric: tabular-nums; }
.kp-cue.near { color: var(--warn); }
.kp-cue.now { color: var(--kp-go); }
.kp-cue.go { font-size: 28px; font-weight: 800; color: var(--kp-go); letter-spacing: .04em; }
.kp-cue.res { font-size: 24px; font-weight: 800; }
.kp-cue.res.ok { color: var(--ok); } .kp-cue.res.warn { color: var(--warn); } .kp-cue.res.err { color: var(--err); }
.kp-chant { font-size: 13.5px; color: var(--kp-go); background: var(--kp-go-soft); padding: 5px 10px; border-radius: 9px; align-self: flex-start; font-weight: 500; }
.kp-lyr p { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); min-height: 1.5em; line-height: 1.5; }
.kp-lyr p.nx { font-size: 14px; font-weight: 400; color: var(--ink-3); min-height: 1.4em; }
.kp-tap { position: absolute; right: 16px; bottom: 16px; width: 132px; height: 132px; border-radius: 50%; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px; color: #fff; background: radial-gradient(circle at 30% 25%, #ff6482, var(--kp-pink) 55%, #c2185b); box-shadow: 0 14px 34px -12px var(--kp-pink), inset 0 1px 0 rgba(255, 255, 255, .3); font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; transition: transform .06s; }
.kp-tap:active { transform: scale(.94); }
.kp-tap b { font-size: 17px; line-height: 1.2; text-align: center; }
.kp-tap small { color: rgba(255, 255, 255, .85); font-size: 11.5px; line-height: 1.3; text-align: center; max-height: 3.9em; overflow: hidden; }
.kp-tap-static { position: static; margin: 10px auto; width: 120px; height: 120px; }
.kp-in-mode .kp-stage { box-shadow: inset 0 0 0 2px var(--kp-pink); }
.kp-in-mode .kp-stage-r { padding-right: 140px; }
.kp-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--kp-pink) 9%, var(--paper-2)); font-size: 14px; color: var(--ink-2); }
.kp-banner > span:first-child { flex: 1; min-width: 200px; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kp-banner-b { display: inline-flex; gap: 6px; }
.kp-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; animation: kpBlink 1s infinite; }
@keyframes kpBlink { 50% { opacity: .25; } }
.kp-lvl { display: inline-block; width: 80px; height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.kp-lvl i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .08s; }

/* 条带 / 总览 */
.kp-strip { width: 100%; height: 116px; display: block; border-radius: 14px; background: var(--fill-2); cursor: pointer; }
.kp-ov { width: 100%; height: 46px; display: block; cursor: pointer; touch-action: none; }

/* 播放控制 */
.kp-transport { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kp-transport .sp { flex: 1; }
.kp-play { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px -6px var(--accent); transition: transform .1s; }
.kp-play:active { transform: scale(.94); }
.kp-play svg { width: 22px; height: 22px; fill: currentColor; }
.kp-play .i-pause, .kp-play.on .i-play { display: none; }
.kp-play.on .i-pause { display: block; }
.kp-ic-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--fill-2); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.kp-ic-btn:hover { background: var(--fill); color: var(--ink); }
.kp-ic-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kp-time { font: 500 13px/1 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; margin-left: 4px; }
.kp-transport .seg button:disabled { opacity: .4; cursor: not-allowed; }
.kp-loop { white-space: nowrap; }

/* 标签页 */
.kp-tabs { margin-top: 4px; }
.kp-tabs button i { font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-left: 2px; font-variant-numeric: tabular-nums; }
.kp-pane { display: flex; flex-direction: column; gap: 10px; }
.kp-pane[hidden] { display: none; }
.kp-pane-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.kp-pane-bar .sp { flex: 1; }
.kp-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.kp-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kp-none { padding: 18px; border-radius: 14px; background: var(--fill-2); font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.kp-mt0 { margin-top: 0; }

/* 进歌点卡片 */
.kp-ents { display: grid; gap: 8px; }
.kp-ent { display: flex; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--fill-2); align-items: flex-start; }
.kp-ent-n { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--kp-go-soft); color: var(--kp-go); font-weight: 800; font-variant-numeric: tabular-nums; }
.kp-ent-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kp-ent-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kp-ent-h b { font-size: 14.5px; }
.kp-ent-h small { font-size: 12px; }
.kp-kind.k-a { background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); }
.kp-kind.k-b { background: color-mix(in srgb, #af52de 14%, transparent); color: #af52de; }
.kp-kind.k-d { background: var(--kp-go-soft); color: var(--kp-go); }
.kp-ent-lyr { margin: 0; font-size: 14px; color: var(--ink); }
.kp-ent-count { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.kp-ent-chant { margin: 2px 0 0; font-size: 13px; color: var(--ink); background: var(--kp-go-soft); padding: 6px 10px; border-radius: 10px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.kp-ent-chant b { color: var(--kp-go); font-size: 12px; }
.kp-ent-chant small { color: var(--ink-3); font-size: 12px; }
.kp-ent-stat { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.kp-ent-stat small { font-size: 11.5px; margin-right: 2px; }
.kp-ent-a { flex: none; display: flex; flex-direction: column; gap: 5px; align-items: stretch; }
.kp-ent-a .kp-x { align-self: center; }

/* 歌词 */
.kp-ly-text { font-size: 14px; line-height: 1.7; resize: vertical; }
.kp-ly-list { max-height: 420px; overflow: auto; border-radius: 14px; background: var(--fill-2); padding: 4px; }
.kp-ly, .kp-sl { display: grid; grid-template-columns: 58px 62px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; font-size: 13.5px; cursor: pointer; }
.kp-ly:hover { background: var(--fill-2); }
.kp-ly.on { background: var(--accent-soft); }
.kp-ly.no { opacity: .6; }
.kp-ly-t { font: 12px var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.kp-ly-p { font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.kp-ly-x { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-ly-x i, .kp-sl-x i { font-style: normal; font-size: 10.5px; padding: 1px 6px; margin-right: 6px; border-radius: 99px; background: var(--fill); color: var(--ink-3); }
.kp-ly-a { display: inline-flex; gap: 2px; }
.kp-ly-a button, .kp-mini { height: 24px; min-width: 24px; padding: 0 6px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-3); font: inherit; font-size: 12px; cursor: pointer; }
.kp-ly-a button:hover, .kp-mini:hover { background: var(--fill); color: var(--ink); }

/* 练习 */
.kp-pp { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.kp-pp[hidden] { display: none; }
.kp-pp > p { margin: 0; font-size: 13.5px; }
.kp-pp .tool-opts { margin: 0; }
.kp-pp .tool-opts select { max-width: 260px; }
.kp-pp .seg button { padding: 4px 10px; font-size: 12.5px; }
.kp-res { margin-top: 8px; padding: 16px; border-radius: 16px; background: var(--fill-2); display: flex; flex-direction: column; gap: 8px; border-left: 4px solid var(--line-2); }
.kp-res.ok { border-left-color: var(--ok); } .kp-res.warn { border-left-color: var(--warn); } .kp-res.err { border-left-color: var(--err); }
.kp-res p { margin: 0; font-size: 14px; color: var(--ink-2); }
.kp-res-big { font: 800 28px/1.1 var(--display); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kp-res.ok .kp-res-big { color: var(--ok); } .kp-res.warn .kp-res-big { color: var(--warn); } .kp-res.err .kp-res-big { color: var(--err); }
.kp-res-big small { font: 500 13px var(--sans); color: var(--ink-3); }
.kp-res-tip { padding: 8px 12px; border-radius: 10px; background: var(--paper-2); }
.kp-sum { display: flex; gap: 8px; flex-wrap: wrap; }
.kp-sum > div { flex: 1; min-width: 70px; padding: 10px; border-radius: 12px; background: var(--paper-2); display: flex; flex-direction: column; align-items: center; }
.kp-sum b { font: 800 22px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.kp-sum small { font-size: 11.5px; }
.kp-sum .ok b { color: var(--ok); } .kp-sum .err b { color: var(--err); } .kp-sum .warn b { color: var(--warn); }
.kp-sing-list { max-height: 360px; overflow: auto; border-radius: 12px; background: var(--paper-2); padding: 4px; }
.kp-sl { grid-template-columns: 58px minmax(0, 1fr) auto auto; cursor: default; }
.kp-sl.ent { background: var(--kp-go-soft); }
.kp-sl-x { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-sl-x i { background: var(--kp-go); color: #fff; }
.kp-hist { margin-top: 6px; padding: 12px 14px; border-radius: 14px; background: var(--fill-2); font-size: 13px; color: var(--ink-2); display: grid; gap: 4px; justify-items: start; }

/* AI 老师 */
.kp-ai-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.kp-ai-btn { display: flex; align-items: center; gap: 10px; padding: 12px; border: 0; border-radius: 14px; background: var(--fill-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .15s, box-shadow .15s; }
.kp-ai-btn:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.kp-ai-btn:disabled { opacity: .55; cursor: progress; box-shadow: none; }
.kp-ai-btn > svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--kp-pink), #af52de); }
.kp-ai-btn span { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.kp-ai-btn b { font-size: 14px; font-weight: 600; }
.kp-ai-btn b i { font-style: normal; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.kp-ai-btn small { font-size: 12px; }
.kp-ai-card { padding: 16px 18px; border-radius: 16px; background: var(--fill-2); font-size: 14.5px; line-height: 1.8; }
.kp-ai-card h3 { margin: 0 0 6px; font-size: 16px; display: flex; align-items: baseline; gap: 8px; }
.kp-ai-card h3 small { font-size: 12px; font-weight: 400; }
.kp-ai-card h4 { margin: 14px 0 4px; font-size: 15px; }
.kp-ai-card p { margin: 0 0 6px; }
.kp-ai-card ul { margin: 0 0 6px; padding-left: 1.3em; }
.kp-ai-card + .kp-ai-card, [data-ai-out] .kp-ai-card { margin-bottom: 10px; }
.kp-q { color: var(--kp-go); font-weight: 600; }
.kp-chat { border-radius: 16px; background: var(--fill-2); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.kp-chat-h { display: flex; align-items: center; justify-content: space-between; }
.kp-chat-h h3 { margin: 0; font-size: 15px; }
.kp-chat-list { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow: auto; }
.kp-chat-empty { font-size: 13px; padding: 4px 2px; }
.kp-msg { max-width: 88%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.7; }
.kp-msg p { margin: 0 0 4px; } .kp-msg p:last-child { margin: 0; }
.kp-msg h4 { margin: 6px 0 2px; font-size: 14px; }
.kp-msg ul { margin: 0; padding-left: 1.2em; }
.kp-msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.kp-msg.ai { align-self: flex-start; background: var(--paper-2); border-bottom-left-radius: 4px; }
.kp-chat-in { display: flex; gap: 8px; align-items: flex-end; }
.kp-chat-in textarea { flex: 1; resize: none; min-height: 44px; font-size: 14px; }
.kp-chat-in .btn { height: 44px; border-radius: 14px; }

/* 弹窗 */
.kp-modal { max-width: 520px; }
.kp-modal .modal-body { display: flex; flex-direction: column; gap: 10px; }
.kp-modal .help { margin: 0; }
.kp-g-row { display: flex; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; margin-top: 4px; }
.kp-g-row > span:first-child { color: var(--ink-2); min-width: 76px; }
.kp-g-row b { font-size: 16px; font-variant-numeric: tabular-nums; }
.kp-as { cursor: default; }
.kp-cal { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--fill-2); }
.kp-cal > div { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.kp-cal b { font-size: 14px; }
.kp-cal small { font-size: 12px; }
.kp-cal-run { text-align: center; padding: 6px 0; }
.kp-cal-run p { margin: 0; font-size: 14px; }

/* 手机 */
@media (max-width: 640px) {
  .kp-song-view { padding: 14px 12px 18px; }
  .kp-stage { flex-direction: column; gap: 10px; padding: 14px; min-height: 0; }
  .kp-stage-l { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 6px; width: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 8px; }
  .kp-stage-l b { font-size: 40px; }
  .kp-stage-l small:first-child { order: 3; margin-left: auto; }
  .kp-tk { width: 38px; height: 38px; font-size: 16px; }
  .kp-tk.h { width: 24px; height: 24px; font-size: 11px; }
  .kp-tk.on { transform: scale(1.08); }
  .kp-count { gap: 5px; flex-wrap: nowrap; }
  .kp-cue { font-size: 15px; }
  .kp-lyr p { font-size: 16px; }
  .kp-in-mode .kp-stage-r { padding-right: 0; }
  .kp-tap { position: static; width: 100%; height: 76px; border-radius: 18px; }
  .kp-strip { height: 100px; }
  .kp-transport .sp { display: none; }
  .kp-ent { flex-wrap: wrap; }
  .kp-ent-a { flex-direction: row; width: 100%; padding-left: 42px; }
  .kp-ent-a .btn { flex: 1; }
  .kp-ly { grid-template-columns: 50px 52px minmax(0, 1fr); }
  .kp-ly-a { grid-column: 1 / -1; justify-content: flex-end; }
  .kp-pp .tool-opts .opt { flex-wrap: wrap; }
  .kp-tabs button { padding: 5px 6px; }
}

/* =========================================================
   AI 修图台（/tools/ps）
   ========================================================= */
.ps.container { max-width: none; padding-left: 20px; padding-right: 20px; }
.ps .tool-head { margin-bottom: 12px; }
.ps .tool-head p { max-width: 900px; }
.ps-note { margin-bottom: 12px; }
.ps-note svg { color: var(--accent); }
.ps-mobile-note { display: none; }
.ps-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ps-bar .sp { flex: 1; }
.ps-bar small { font-size: 12px; }
.ps-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.ps-stage { position: relative; height: calc(100vh - 210px); min-height: 560px; border-radius: 16px; overflow: hidden; background: #3c3f41; box-shadow: var(--shadow); }
.ps-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.ps-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #ddd; font-size: 14px; background: #3c3f41; }
.ps-loading[hidden] { display: none; }

.ps-panel { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px; background: var(--paper-2); box-shadow: var(--shadow); }
.ps-restore { padding: 12px; border-radius: 14px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 4px; }
.ps-restore b { font-size: 14px; }
.ps-restore small { font-size: 12px; }
.ps-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.ps-ai { display: flex; flex-direction: column; gap: 12px; }
.ps-ai[hidden] { display: none; }
.ps-ops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ps-op { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px 9px; border: 0; border-radius: 12px; background: var(--fill-2); color: var(--ink-2); font: inherit; font-size: 12.5px; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.ps-op svg { width: 20px; height: 20px; }
.ps-op:hover { background: var(--fill); color: var(--ink); }
.ps-op.on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); font-weight: 600; }
.ps-form { display: flex; flex-direction: column; gap: 10px; }
.ps-desc { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.ps-field[hidden] { display: none !important; }
.ps-lab { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 5px; }
.ps-region { font-size: 13px; padding: 9px 11px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--warn); line-height: 1.5; }
.ps-region.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); font-weight: 600; }
.ps-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.ps-chips .chip { height: 26px; font-size: 12.5px; padding: 0 10px; }
.ps-prompt { font-size: 14px; line-height: 1.6; resize: vertical; min-height: 76px; }
.ps-engine { display: flex; align-items: center; gap: 8px; }
.ps-engine .ps-lab { margin: 0; flex: none; }
.ps-engine select { flex: 1; max-width: none; height: 32px; }
.ps-meta { margin: 0; }
.ps-jobs { display: flex; flex-direction: column; gap: 6px; }
.ps-jobs:empty { display: none; }
.ps-jobs-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding-top: 10px; border-top: 1px solid var(--line); }
.ps .btn-link { border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px; padding: 0; cursor: pointer; }
.ps-job { display: flex; align-items: center; gap: 10px; padding: 7px; border-radius: 12px; background: var(--fill-2); }
.ps-job.fail { background: color-mix(in srgb, var(--err) 8%, transparent); }
.ps-job-th { flex: none; width: 44px; height: 44px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: repeating-conic-gradient(var(--fill) 0 25%, transparent 0 50%) 0 0 / 12px 12px; }
.ps-job-th img { width: 100%; height: 100%; object-fit: cover; }
.ps-job-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.ps-job-t b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-job-t small { font-size: 11.5px; }
.ps-job.fail small { color: var(--err); }
.ps-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--fill); border-top-color: var(--accent); animation: psSpin .8s linear infinite; }
.ps-job.fail .ps-spin { animation: none; border-color: var(--err); }
@keyframes psSpin { to { transform: rotate(360deg); } }
.ps .kp-mini { height: 24px; padding: 0 8px; border: 0; border-radius: 7px; background: var(--paper-2); color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.ps-foot { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); line-height: 1.6; }

/* 弹窗 */
.ps-modal { max-width: 620px; }
.ps-modal-lg { max-width: 860px; }
.ps-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.ps-modal .help { margin: 0; }
.ps-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.ps-preset { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px 10px; border: 0; border-radius: 14px; background: var(--fill-2); color: var(--ink); font: inherit; cursor: pointer; transition: box-shadow .15s; }
.ps-preset:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.ps-preset i { display: block; border-radius: 4px; background: linear-gradient(135deg, var(--accent), #30d158); opacity: .8; margin-bottom: 4px; }
.ps-preset b { font-size: 13.5px; }
.ps-preset small { font-size: 11.5px; }
.ps-custom { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.ps-custom .input { width: 86px; height: 32px; }
.ps-drop { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; border: 1.5px dashed var(--line-2); cursor: pointer; color: var(--ink-3); transition: border-color .2s, background .2s; }
.ps-drop:hover, .ps-drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ps-drop svg { width: 26px; height: 26px; flex: none; }
.ps-drop span { display: flex; flex-direction: column; }
.ps-drop b { color: var(--ink); font-size: 14px; }
.ps-drop small { font-size: 12px; }
.ps-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-height: 60vh; overflow: auto; }
.ps-work { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--fill); }
.ps-work img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.ps-work:hover img { transform: scale(1.04); }
.ps-work em { position: absolute; left: 6px; top: 6px; font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; }
.ps-work.loading { opacity: .5; pointer-events: none; }

@media (max-width: 1100px) { .ps-wrap { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 860px) {
  .ps.container { padding-left: 12px; padding-right: 12px; }
  .ps-mobile-note { display: flex; }
  .ps-wrap { grid-template-columns: 1fr; }
  .ps-stage { height: 72vh; min-height: 420px; }
  .ps-panel { position: static; max-height: none; }
}

/* ================= 工具 · AI 视频 ================= */
.vd .vd-note { margin-bottom: 12px; }
.vd-warn { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 149, 0, .14), rgba(255, 45, 85, .10)); color: var(--ink); font-size: 14px; line-height: 1.6; border: 1px solid rgba(255, 149, 0, .35); }
.vd-warn svg { width: 20px; height: 20px; flex: none; color: #ff9500; margin-top: 2px; }
.vd-warn b { color: #d14800; }
.vd-side .label { margin-top: 14px; }
.vd-side > .label:first-child { margin-top: 0; }
.vd-engines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vd-eng { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 10px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; min-width: 0; }
.vd-eng b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vd-eng small { font-size: 11px; color: var(--ink-3, var(--ink-2)); line-height: 1.35; }
.vd-eng:hover { border-color: var(--line-2); }
.vd-eng.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--paper)); }
.vd-enote { margin: 6px 0 0; min-height: 0; }
.vd-enote:empty { display: none; }
.vd-row select { width: 100%; }
.vd-quick { margin-top: 8px; }
.vd-quick .chip { height: 26px; font-size: 12px; padding: 0 10px; }
.vd .chip.soft { background: var(--fill-2); color: var(--ink-2); }
.vd .ref-grid { margin-top: 2px; }
.vd .ref-it em { position: absolute; left: 4px; bottom: 4px; font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; }
.vd .ref-it.up::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid rgba(255, 255, 255, .6); border-top-color: #fff; border-radius: 50%; animation: ybspin .8s linear infinite; }
.vd .ref-grid.over { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: 12px; }
.vd .vd-pick b svg { width: 20px; height: 20px; }
.vd-files { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.vd-files:empty { display: none; }
.vd-file { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 10px; background: var(--fill-2); font-size: 13px; }
.vd-file span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-file.up span::after { content: ' · 上传中…'; color: var(--ink-3, var(--ink-2)); }
.vd-file button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .1); color: var(--ink-2); cursor: pointer; padding: 0; line-height: 22px; flex: none; }
.vd-row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.vd-row-btns label.btn { cursor: pointer; }
.vd-row-btns [hidden] { display: none; }
.vd-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.vd-checks[hidden], .vd [data-box][hidden] { display: none; }
.vd-side [data-go] { margin-top: 18px; height: 46px; font-size: 15px; }

.vd-list { padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.vd-list > .tool-empty { grid-column: 1 / -1; line-height: 1.8; }
.vd-item { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: var(--paper-2, var(--fill-2)); border: 1px solid var(--line); min-width: 0; }
.vd-h, .vd-f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.vd-h b { font-size: 14px; }
.vd-h small, .vd-f small { font-size: 12px; color: var(--ink-3, var(--ink-2)); }
.vd-h .sp, .vd-f .sp { flex: 1; }
.vd-video { width: 100%; max-height: 420px; border-radius: 12px; background: #000; display: block; }
.vd-wait { display: flex; align-items: center; gap: 12px; padding: 34px 16px; border-radius: 12px; background: var(--fill-2); justify-content: center; }
.vd-wait .spin { width: 22px; height: 22px; margin: 0; }
.vd-wait span { display: flex; flex-direction: column; }
.vd-wait small { color: var(--ink-3, var(--ink-2)); font-size: 12px; }
.vd-fail { padding: 18px 14px; border-radius: 12px; background: rgba(255, 59, 48, .08); color: var(--danger, #ff3b30); font-size: 13.5px; line-height: 1.6; word-break: break-word; }
.vd-gone { padding: 26px 14px; border-radius: 12px; background: var(--fill-2); color: var(--ink-3, var(--ink-2)); font-size: 13.5px; text-align: center; }
.vd-exp { font-size: 13px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 149, 0, .12); color: #b35c00; }
.vd-exp.hot { background: rgba(255, 59, 48, .12); color: #d70015; font-weight: 500; }
.vd-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.vd-p { font-size: 13px; color: var(--ink-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.vd .btn-link { border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px; padding: 0; cursor: pointer; }
.vd .btn-link.danger { color: var(--danger, #ff3b30); }
.vd-modal { width: min(640px, 100%); }
.vd-ai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 60vh; overflow: auto; }
.vd-ai-grid > .muted { grid-column: 1 / -1; padding: 30px 0; text-align: center; }
.vd-ai-grid button { aspect-ratio: 1; border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; background: var(--fill-2); cursor: pointer; }
.vd-ai-grid button:hover { border-color: var(--accent); }
.vd-ai-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vd-warn b, :root:not([data-theme="light"]) .vd-exp { color: #ffb340; } :root:not([data-theme="light"]) .vd-exp.hot { color: #ff6961; } }
:root[data-theme="dark"] .vd-warn b, :root[data-theme="dark"] .vd-exp { color: #ffb340; } :root[data-theme="dark"] .vd-exp.hot { color: #ff6961; }
@media (max-width: 860px) {
  .vd-list { grid-template-columns: 1fr; padding: 12px; }
  .vd-warn { font-size: 13px; padding: 10px 12px; }
}
@media (max-width: 420px) {
  .vd-engines { gap: 6px; }
  .vd-eng { padding: 8px; }
  .vd-eng b { font-size: 13px; white-space: normal; overflow: visible; }
}
