/* ==========================================================================
   斑马速客®同步助手 · 共用样式
   落地页：浅色产品页（参考 sync.csdn.net 的信息结构与节奏），品牌橙点缀
   操作台：浅色工作台
   纯本地，无外部字体 / CDN 依赖
   ========================================================================== */

:root {
  --ink:        #111214;
  --ink-2:      #1c1f23;
  --ink-3:      #34383f;   /* 深色按钮 hover */
  --paper:      #ffffff;
  --tint:       #f7f8fa;
  --line:       #e8eaee;
  --line-2:     #d6dae0;
  --text:       #1a1c1f;
  --text-1:     #1a1c1f;   /* 主文本（兼容旧引用） */
  --text-2:     #5b626c;
  --text-3:     #939aa4;

  --orange:     #f26522;
  --orange-d:   #d9500f;
  --orange-l:   #fff1e9;
  --orange-b:   #ffd9c2;

  --green:      #17845c;
  --green-l:    #e8f6ef;
  --amber:      #b8760a;
  --amber-l:    #fff4dd;
  --red:        #ce3f3f;
  --red-l:      #fdecec;
  --blue:       #2f6fbf;
  --blue-l:     #eaf2fd;

  --radius:     14px;
  --radius-s:   9px;
  --shadow:     0 1px 2px rgba(17,18,20,.04), 0 8px 28px rgba(17,18,20,.06);
  --shadow-lg:  0 18px 60px rgba(17,18,20,.14);
  --mono:       ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans:       -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
                "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
/* 兜底：.btn 等组件的 display 会盖掉 UA 的 [hidden]，导致该隐藏的元素照样显示 */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--text); background: var(--paper);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
code, pre, .mono { font-family: var(--mono); }

.wrap { width: min(1140px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(860px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- 品牌 / 顶栏 ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: repeating-linear-gradient(115deg, var(--ink) 0 4px, #fff 4px 8px);
  border: 2px solid var(--ink); position: relative; overflow: hidden;
}
.brand-mark::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; background: var(--orange); border-radius: 4px 0 0 0; }
.brand-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; line-height: 1.2; }
.brand-name { font-size: 16px; line-height: 1.25; letter-spacing: -.02em; }
.brand-sub { font-size: 11px; line-height: 1.3; margin-top: 2px; color: var(--text-3); font-weight: 500; letter-spacing: .06em; }

.nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--orange); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius-s); padding: 9px 17px; font-size: 14px; font-weight: 600; transition: transform .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
/* 同步进行中：按钮内嵌旋转图标，保持禁用态避免重复提交 */
.btn.is-busy { opacity: .82; cursor: progress; }
.btn.is-busy .spin { width: 14px; height: 14px; border-width: 2px; opacity: 1; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(242,101,34,.2); }
.btn-primary:hover { background: var(--orange-d); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-danger { background: #c0392b; color: #fff; box-shadow: 0 4px 14px rgba(192,57,43,.18); }
.btn-danger:hover { background: #a93226; }
.btn:focus-visible { outline: 2px solid rgba(242,101,34,.5); outline-offset: 2px; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 7px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
/* 头部重点入口：分发管理中心 */
.btn-focus { position: relative; background: linear-gradient(135deg, var(--orange), var(--orange-d)); color: #fff; font-weight: 700; padding: 8px 16px; box-shadow: 0 4px 16px rgba(242,101,34,.3); }
.btn-focus:hover { color: #fff; box-shadow: 0 6px 20px rgba(242,101,34,.38); }
.btn-focus .ico { width: 15px; height: 15px; }
.btn-focus-tag { position: absolute; top: -9px; right: -10px; background: var(--ink); color: #fff; font-size: 9px; line-height: 1; padding: 3px 6px; border-radius: 8px; font-weight: 800; letter-spacing: .3px; box-shadow: 0 2px 6px rgba(0,0,0,.22); white-space: nowrap; }
.nav-focus-link { position: relative; color: var(--orange-d) !important; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.nav-focus-link .ico { width: 15px; height: 15px; }
.nav-focus-link .btn-focus-tag { top: -11px; right: -16px; }

/* ---------- 徽章 ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #f0f2f5; color: var(--text-2); border: 1px solid transparent; white-space: nowrap; }
.tag-orange { background: var(--orange-l); color: var(--orange-d); border-color: var(--orange-b); }
.tag-green  { background: var(--green-l);  color: var(--green); }
.tag-amber  { background: var(--amber-l);  color: var(--amber); }
.tag-red    { background: var(--red-l);    color: var(--red); }
.tag-blue   { background: var(--blue-l);   color: var(--blue); }
.tag-ink    { background: var(--ink);      color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.pill-soft { background: var(--orange-l); color: var(--orange-d); border: 1px solid var(--orange-b); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot-pulse { box-shadow: 0 0 0 0 rgba(23,132,92,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(23,132,92,0); } 100% { box-shadow: 0 0 0 0 rgba(23,132,92,0); } }

/* ---------- Hero（浅色产品页） ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #fff8f3 100%); border-bottom: 1px solid var(--line); padding: 88px 0 84px; }
.hero::after { content: ""; position: absolute; right: -140px; top: -180px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(242,101,34,.12), transparent 66%); pointer-events: none; }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.16; letter-spacing: -.035em; margin: 20px 0 18px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead { font-size: 16.5px; color: var(--text-2); margin: 0 0 28px; max-width: 530px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { font-size: 12px; color: var(--text-3); }

/* 首屏下载/教程强化：下载按钮更醒目，教程入口一眼可见 */
.hero-actions .btn-primary { box-shadow: 0 6px 20px rgba(242,101,34,.28); }
.hero-actions .btn .ico { width: 18px; height: 18px; }
.hero-quick { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.hq-guide {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; color: var(--orange-d);
  text-decoration: none; padding: 7px 13px; border-radius: 9px;
  background: #fff; border: 1px solid var(--orange-b);
  box-shadow: 0 2px 8px rgba(242,101,34,.08);
}
.hq-guide:hover { background: var(--orange-l); }
.hq-guide b { font-weight: 800; }
.hq-note { font-size: 12px; color: var(--text-3); }

/* Hero 右侧：快捷下载卡（在预览窗口上方，首屏即可见） */
.quick-dl {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; margin-bottom: 14px;
  border-radius: 14px; text-decoration: none;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-d) 100%);
  color: #fff; box-shadow: 0 10px 26px rgba(242,101,34,.26);
  transition: transform .15s, box-shadow .15s;
}
.quick-dl:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(242,101,34,.34); }
.qd-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgba(255,255,255,.18); }
.qd-ico .ico { width: 22px; height: 22px; }
.qd-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qd-copy b { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
.qd-copy small { font-size: 12px; opacity: .9; }
.qd-arrow { margin-left: auto; font-size: 22px; font-weight: 800; opacity: .95; }

/* 顶栏教程入口 / 安装区教程按钮 / 收尾 CTA 按钮组 */
.nav-guide { color: var(--orange-d); border-color: var(--orange-b); font-weight: 700; }
.dl-guide { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-actions .btn-ghost { background: #fff; }

/* Hero 右侧：同步预览窗口 */
.win { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(.8deg); }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: var(--tint); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9dce1; display: block; }
.win-bar i:first-child { background: var(--orange); }
.win-bar span { margin-left: auto; font-size: 11px; color: var(--text-3); }
.win-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; }
.win-art { border: 1px solid var(--line); border-radius: 9px; padding: 14px; background: #fcfcfd; }
.win-art-line { height: 8px; border-radius: 4px; background: #e9ebef; margin-bottom: 9px; }
.win-art .w80 { width: 80%; background: #d6dae0; }
.win-art .w60 { width: 60%; }
.win-art .w90 { width: 90%; }
.win-art .w70 { width: 70%; }
.win-art-img { height: 66px; border-radius: 7px; margin: 12px 0; background: linear-gradient(135deg, #ffe3d2, #f7c7ae); }
.win-plats { display: grid; gap: 8px; align-content: start; }
.win-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.win-row b { font-weight: 600; flex: 1; }
.win-ok { font-size: 10.5px; color: var(--green); font-weight: 600; }
.mini-logo { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; overflow: hidden; }
.mini-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.win-foot { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--text-3); background: var(--tint); }

/* ---------- 安装下载 ---------- */
.install-band { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 58px 0; }
.install-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.install-copy h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; margin: 10px 0 12px; font-weight: 750; }
.install-copy p { color: var(--text-2); font-size: 14.5px; margin: 0 0 16px; max-width: 600px; }
.install-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.install-meta li { position: relative; padding-left: 20px; font-size: 13px; color: var(--text-2); }
.install-meta li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.dl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; align-items: flex-start; }
.dl-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--orange-l); color: var(--orange-d); display: grid; place-items: center; font-size: 19px; margin-bottom: 14px; }
.dl-card h3 { margin: 0 0 4px; font-size: 17px; }
.dl-card p { margin: 0 0 18px; color: var(--text-2); font-size: 13px; }
.dl-card .text-link { color: var(--orange-d); font-size: 13px; font-weight: 600; margin-top: 12px; }
.dl-card .text-link:hover { text-decoration: underline; }
.dl-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.dl-links a { font-size: 12px; color: var(--text-2); border-bottom: 1px solid var(--line-2); }
.dl-links a:hover { color: var(--orange-d); border-bottom-color: var(--orange); }
.dl-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 11.5px; line-height: 1.6; }

/* ---------- 区块通用 ---------- */
.section { padding: 76px 0; }
.section-tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 38px; max-width: 700px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--orange); }
.sec-head h2 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.03em; margin: 10px 0 12px; font-weight: 750; }
.sec-head p { color: var(--text-2); margin: 0; font-size: 15px; }
.fineprint { margin-top: 20px; font-size: 12.5px; color: var(--text-3); }
/* 平台清单下方的「新增平台建议」入口 */
.plat-cta { margin: 18px 0 0; font-size: 13px; color: var(--text-2); display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.plat-cta a { color: var(--orange); font-weight: 600; text-decoration: none; }
.plat-cta a:hover { text-decoration: underline; }
.plat-cta span { font-size: 12.5px; color: var(--text-3); }
.plat-cta-sm { margin: 12px 0 0; font-size: 12px; gap: 6px; }

/* ---------- 事实速览（GEO） ---------- */
.facts-band { border-top: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 18px; align-items: stretch; }
.facts-def { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow-sm, 0 2px 10px rgba(20,40,80,.04)); display: flex; flex-direction: column; }
.facts-def p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--text-2); }
.facts-more { display: inline-block; margin-top: auto; padding-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--orange); text-decoration: none; }
.facts-more:hover { text-decoration: underline; }
.facts-list { margin: 0; display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts-list > div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.facts-list > div:last-child { border-bottom: 0; }
.facts-list dt { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.facts-list dd { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--text-2); }
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: 1fr; }
  .facts-list > div { grid-template-columns: 84px 1fr; padding: 10px 14px; }
}

/* ---------- 平台网格 ---------- */
.plat-groups { display: grid; gap: 26px; }
.plat-group h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.plat-group h3 span { font-size: 11px; color: var(--text-3); font-weight: 500; }
.plat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.plat-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.plat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--orange-b); }
.plat-logo { width: 44px; height: 44px; border-radius: 11px; flex: none; background: var(--tint); display: grid; place-items: center; overflow: hidden; }
.plat-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.plat-name { font-size: 13px; font-weight: 600; text-align: center; }
.plat-total { color: var(--orange); font-weight: 700; }
/* 内容形态重点角标：卡片右上角实心橙底白字，突出图文/贴图等形态 */
.plat-corner { position: absolute; top: 0; right: 0; z-index: 1; padding: 3px 9px 4px 11px;
  font-size: 10.5px; font-weight: 700; line-height: 1; color: #fff; letter-spacing: .2px;
  background: linear-gradient(135deg, var(--orange), var(--orange-d));
  border-radius: 0 11px 0 9px; box-shadow: 0 2px 6px rgba(217,80,15,.24); }
.plat-tile { position: relative; overflow: hidden; }
.plat-tile[data-form] { border-color: var(--orange-b); }
.plat-badge { font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.plat-badge.ok { background: var(--green-l); color: var(--green); }
.plat-badge.file { background: var(--blue-l); color: var(--blue); }
.plat-badge.soon { background: var(--blue-l); color: var(--blue); }
.plat-badge.off { background: #f0f2f5; color: var(--text-3); }

/* ---------- 三步 ---------- */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px 26px; position: relative; box-shadow: var(--shadow); }
.step-num { position: absolute; top: 18px; right: 20px; font-size: 34px; font-weight: 800; color: #f3f4f6; line-height: 1; }
.step-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--orange-l); color: var(--orange-d); display: grid; place-items: center; font-size: 19px; margin-bottom: 16px; }
.step-card h3 { margin: 0 0 8px; font-size: 17px; }
.step-card p { margin: 0; color: var(--text-2); font-size: 13.5px; }
.callout { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 16px 18px; border-radius: var(--radius-s); background: var(--orange-l); border: 1px solid var(--orange-b); color: #7a3c14; font-size: 13.5px; }
.callout b { color: #5c2b0d; }
.callout-ico { width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; font-size: 13px; }

/* ---------- 功能卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--orange-l); display: grid; place-items: center; font-size: 17px; margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; font-size: 16px; }
.feature p { margin: 0; color: var(--text-2); font-size: 13.5px; }

/* ---------- 场景 ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.scene { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.scene-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--orange-d); background: var(--orange-l); padding: 3px 10px; border-radius: 999px; }
.scene h3 { margin: 12px 0 14px; font-size: 18px; }
.scene ul { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 13.5px; }
.scene li { margin-bottom: 7px; }

/* ---------- AI 接入方式 ---------- */
.ai-band { background: linear-gradient(180deg, #fff8f3 0%, #fff 100%); border-top: 1px solid var(--line); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.ai-switch {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 auto 26px;
  background: #eef0f3; border: 1px solid var(--line); border-radius: 12px;
}
.ai-tab {
  border: 0; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 650;
  padding: 10px 22px; border-radius: 9px; transition: background .15s, color .15s, box-shadow .15s;
}
.ai-tab:hover { color: var(--ink); }
.ai-tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 5px rgba(17,18,20,.1); }
.ai-panel { display: none; }
.ai-panel.active { display: block; }
.ai-card {
  background: var(--blue-l); border: 1px solid #d8e5f6; border-radius: 16px;
  padding: 26px; box-shadow: var(--shadow);
}
.ai-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.ai-card-head .tag { background: #fff; }
.ai-side { font-size: 12.5px; color: var(--text-2); }
.ai-step {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; margin-top: 14px;
}
.ai-step-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-step-top b { font-size: 15px; }
.ai-step-top .copy-btn {
  margin-left: auto; border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  border-radius: 7px; padding: 6px 12px; font-size: 12.5px; font-weight: 600;
}
.ai-step-top .copy-btn:hover { border-color: var(--orange); color: var(--orange-d); }
.ai-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none;
}
.ai-step p { color: var(--text-2); font-size: 13px; margin: 10px 0 14px 34px; }
.codebox {
  background: var(--ink); color: #e9edf3; border-radius: 9px; padding: 15px 17px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7; overflow-x: auto; white-space: pre-wrap; word-break: break-word;
}
.codebox code { color: inherit; }
.codebox .k { color: #ffb27a; }
.codebox .c { color: #8c98a8; }
.codebox .s { color: #9ad7a4; }
.codebox .tk { color: #ffd08a; background: rgba(242,101,34,.14); padding: 0 3px; border-radius: 3px; }
/* 连接码输入引导卡：标题 + 徽标 + 终端风格输入框 + 状态点提示 */
.token-bar {
  margin: 20px 24px 0; padding: 15px 18px 14px;
  background: linear-gradient(180deg, #fff 0%, var(--tint) 100%);
  border: 1px solid var(--line); border-left: 3px solid var(--orange);
  border-radius: 12px;
}
.token-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.token-title { display: flex; align-items: center; gap: 8px; }
.token-ico {
  width: 22px; height: 22px; flex: none; border-radius: 6px;
  background: var(--orange); color: #fff; display: grid; place-items: center;
}
.token-ico svg { width: 13px; height: 13px; }
.token-title label { font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.token-badge {
  font-size: 11px; font-weight: 650; color: var(--orange-d);
  background: var(--orange-l); border: 1px solid var(--orange-b);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.token-field {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 9px;
  padding: 0 13px; transition: border-color .15s ease, box-shadow .15s ease;
}
.token-field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,101,34,.10); }
.token-prompt { color: var(--orange); font-family: var(--mono); font-size: 17px; line-height: 1; flex: none; }
.token-field input {
  flex: 1; min-width: 0; padding: 11px 0; border: 0; background: transparent;
  font-family: var(--mono); font-size: 13px; color: var(--ink);
}
.token-field input:focus { outline: none; }
.token-field input::placeholder { color: var(--text-3); }
.token-bar-hint {
  display: flex; align-items: center; gap: 7px;
  margin: 10px 0 0; font-size: 11.5px; color: var(--text-3);
}
.token-bar-hint::before {
  content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--text-3);
}
.token-bar-hint.ok { color: var(--green); font-weight: 600; }
.token-bar-hint.ok::before { background: var(--green); box-shadow: 0 0 0 3px var(--green-l); }
@media (max-width: 520px) {
  .token-bar { margin: 16px 16px 0; padding: 14px; }
  .token-badge { font-size: 10.5px; }
}
.ai-hint { color: var(--text-3); font-size: 12px; margin: 12px 0 0 34px; }
.dev-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.dev-tabs { display: flex; align-items: center; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--tint); flex-wrap: wrap; }
.dev-tab {
  border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-2);
  padding: 14px 16px; font-size: 13.5px; font-weight: 650;
}
.dev-tab:hover { color: var(--ink); }
.dev-tab.active { color: var(--orange-d); border-bottom-color: var(--orange); }
.dev-link { margin-left: auto; font-size: 12.5px; color: var(--orange-d); font-weight: 600; padding: 14px 4px; }
.dev-link:hover { text-decoration: underline; }
.dev-panel { display: none; padding: 24px; }
.dev-panel.active { display: block; }
.dev-lead { color: var(--text-2); font-size: 13.5px; margin: 0 0 14px; }
.dev-copy { display: flex; justify-content: flex-end; margin: -34px 0 10px; }
.dev-copy button {
  border: 0; background: transparent; color: var(--orange-d); font-size: 12.5px; font-weight: 650;
}
.dev-copy button:hover { text-decoration: underline; }
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.dev-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dev-box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; background: var(--tint); border-bottom: 1px solid var(--line); }
.dev-box-head b { font-size: 13.5px; }
.dev-box-head span { color: var(--text-3); font-size: 11.5px; }
.dev-box .codebox { border-radius: 0; }
.dev-note { margin: 14px 0 0; color: var(--text-3); font-size: 12px; }
.dev-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.dev-tools span { background: var(--orange-l); color: var(--orange-d); border-radius: 6px; padding: 3px 9px; font-size: 11.5px; font-family: var(--mono); }
@media (max-width: 860px) {
  .dev-grid { grid-template-columns: 1fr; }
  .ai-card-head { align-items: flex-start; }
  .ai-step-top .copy-btn { margin-left: 0; }
  .ai-step p, .ai-hint { margin-left: 0; }
  .ai-switch { display: flex; width: 100%; }
  .ai-tab { flex: 1; padding: 10px 8px; font-size: 12.5px; }
}

/* ---------- 首页：WorkBuddy 专家 & 连接器 ---------- */
.wb-band { background: linear-gradient(180deg, #fff 0%, #fafbfc 100%); border-top: 1px solid var(--line); }
.wb-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 18px; align-items: stretch; }
.wb-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.wb-main { border-color: var(--orange-b); box-shadow: 0 2px 10px rgba(242,101,34,.06), var(--shadow); }
.wb-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.wb-logos { display: inline-flex; align-items: center; gap: 10px; }
.wb-logos .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.wb-plus { color: var(--text-3); font-size: 15px; font-weight: 600; }
/* WorkBuddy 标记：深色圆角块 + 两道斜杠，与分享弹窗里的品牌图形呼应 */
.wb-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 3px; overflow: hidden; }
.wb-mark i { display: block; width: 4px; height: 15px; background: #fff; transform: skewX(-18deg); border-radius: 1px; }
.wb-mark i:last-child { height: 11px; opacity: .85; }
.wb-card h3 { font-size: 19px; letter-spacing: -.02em; margin: 0 0 12px; }
.wb-desc { font-size: 13px; line-height: 1.85; color: var(--text-2); margin: 0; }
.wb-try { margin: 20px 0 0; background: var(--tint); border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px 12px; }
.wb-try-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-1); margin-bottom: 10px; }
.wb-try-h .ico { color: var(--orange); }
.wb-prompt {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; margin-bottom: 8px; color: var(--text-2); font-size: 12.5px; line-height: 1.6;
  transition: border-color .15s, color .15s;
}
.wb-prompt:last-child { margin-bottom: 0; }
.wb-prompt:hover { border-color: var(--orange-b); color: var(--ink); }
.wb-prompt span { flex: 1; min-width: 0; }
.wb-prompt .ico { flex: none; color: var(--text-3); }
.wb-prompt:hover .ico { color: var(--orange); }
.wb-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.wb-note { font-size: 11.5px; color: var(--text-3); }
.wb-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 11px; }
.wb-points li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text-2); }
.wb-points .ico { flex: none; color: var(--green); margin-top: 3px; }
.wb-flow { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 5px; }
.wb-flow b { font-size: 12.5px; color: var(--text-1); }
.wb-flow span { font-size: 12px; color: var(--text-2); line-height: 1.7; }
.wb-inline-link { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--orange); }
.wb-inline-link:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .wb-grid { grid-template-columns: 1fr; }
  .wb-card { padding: 22px 20px; }
}

/* ---------- 关于我们 ---------- */
.about-band { border-top: 0; }
.about-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; }
.about-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; box-shadow: var(--shadow);
}
.about-main h3 { font-size: 21px; margin: 16px 0 14px; letter-spacing: -.02em; }
.about-main p { color: var(--text-2); font-size: 14px; margin: 0 0 13px; }
.about-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.about-badges span {
  background: var(--orange-l); color: var(--orange-d); border: 1px solid var(--orange-b);
  border-radius: 999px; padding: 4px 11px; font-size: 11.5px; font-weight: 650;
}
.about-card h3 { font-size: 17px; margin: 0 0 16px; }
.about-products { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.about-products li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; position: relative; }
.about-products li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--orange);
}
.about-products b { font-size: 13.5px; }
.about-products span { color: var(--text-2); font-size: 12.5px; }
.about-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.about-methods div {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.about-methods b { font-size: 13.5px; }
.about-methods span { color: var(--text-2); font-size: 12px; line-height: 1.6; }
.about-source { text-align: center; color: var(--text-3); font-size: 12px; margin: 20px 0 0; }
.about-source a { color: var(--orange-d); font-weight: 600; }
@media (max-width: 860px) {
  .about-grid, .about-methods { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 18px; }
.faq-list summary { cursor: pointer; font-weight: 650; font-size: 14.5px; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "+"; color: var(--orange); font-weight: 700; margin-right: 10px; }
.faq-list details[open] summary::before { content: "−"; }
.faq-list details p { margin: 12px 0 0; color: var(--text-2); font-size: 13.5px; padding-left: 20px; }

/* ---------- 收尾 CTA / 页脚 ---------- */
.cta-band { background: var(--ink); color: #fff; padding: 46px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-in h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.02em; }
.cta-in p { margin: 0; color: #b9bdc4; font-size: 14px; }
.footer { padding: 32px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.footer-brands { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-brands a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px;
  background: var(--tint); border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); font-size: 12.5px; font-weight: 650;
}
.footer-brands a span { color: var(--orange); font-weight: 700; }
.footer-brands a:hover { border-color: var(--orange); color: var(--orange-d); background: var(--orange-l); }
.footer-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a:hover { color: var(--orange); }
.beian { width: 100%; text-align: center; font-size: 12px; color: var(--text-3); margin-top: 10px; }
.beian a { color: var(--text-3); text-decoration: none; }
.beian a:hover { color: var(--orange); }
.beian-sep { margin: 0 10px; opacity: .6; }
.hist-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.plat-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--text-2); transition: border-color .12s, background .12s; }
.plat-chip:hover { border-color: var(--orange-b, var(--orange)); }
.plat-chip.ok { color: #1e8e3e; border-color: rgba(30, 142, 62, .35); background: rgba(30, 142, 62, .06); }
.plat-chip.bad { color: #c0392b; border-color: rgba(192, 57, 43, .32); background: rgba(192, 57, 43, .05); }
.plat-chip.open { box-shadow: 0 0 0 1px var(--orange-b, var(--orange)) inset; }
.plat-chip .chip-link-ico { font-size: 11px; opacity: .75; }
.hist-detail { margin-top: 8px; padding: 10px 13px; border: 1px dashed var(--line-2, var(--line)); border-radius: 8px; background: var(--tint); font-size: 12.5px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.hist-detail b { color: var(--ink); font-size: 13px; }
.hist-detail a { color: var(--orange); font-weight: 600; }
.hist-detail-err { color: #c0392b; }
.hist-detail-dim { color: var(--text-3); }
.hist-item .hist-detail { width: 100%; }
.beian a { color: var(--text-3); text-decoration: none; }
.beian a:hover { color: var(--orange); }
.beian-sep { margin: 0 10px; opacity: .6; }

/* ==========================================================================
   操作台
   ========================================================================== */
/* 登录门禁遮罩（z-index 90）不能盖住顶部内容类型切换，未登录也能切换文章/贴图 */
/* 不参与层级竞争：未登录时登录遮罩必须完整盖住这条状态栏，
   否则会露出一条亮色横条，看起来像页面只加载了一半。 */
.console-top { background: #fff; border-bottom: 1px solid var(--line); }
.console-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 10px 0; flex-wrap: wrap; }
.console-title { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.console-status { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-weight: 600; font-size: 12px; }
.status-ok    { background: var(--green-l); color: var(--green); }
.status-wait  { background: var(--amber-l); color: var(--amber); }
.status-err   { background: var(--red-l);   color: var(--red); }

.console-body { padding: 26px 0 70px; background: var(--tint); min-height: 70vh; }
.console-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.panel-hd h3 { margin: 0; font-size: 14.5px; font-weight: 700; }
.panel-hd .hint { font-size: 11.5px; color: var(--text-3); font-weight: 400; }
/* 已选平台数到授权上限：变橙提醒，避免用户以为还能再加 */
.panel-hd .hint.is-full { color: var(--orange-d); font-weight: 650; }
.panel-bd { padding: 18px; }

/* 平台卡片 */
/* 目标平台列表：只纵向滚动，绝不横向溢出（横向滚动条在底部，滑动体验很差） */
.plat-list { display: grid; gap: 8px; max-height: min(76vh, 820px); overflow-y: auto; overflow-x: hidden;
  padding-right: 6px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.plat-list::-webkit-scrollbar { width: 6px; height: 0; }
.plat-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.plat-list::-webkit-scrollbar-track { background: transparent; }
/* 平台登录态读取中：列表顶部转圈提示 */
.plat-loading { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px dashed var(--line);
  border-radius: var(--radius-s); color: var(--text-2); font-size: 13px; background: var(--bg-3, rgba(0,0,0,.02)); }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor;
  border-top-color: transparent; animation: spin .8s linear infinite; flex: 0 0 auto; opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

.plat { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; transition: border-color .15s, background .15s; user-select: none; min-width: 0; overflow: hidden; }
.plat:hover { border-color: var(--line-2); background: #fcfcfd; }
.plat.on { border-color: var(--orange); background: var(--orange-l); box-shadow: inset 3px 0 0 var(--orange); }
.plat.disabled { opacity: .55; cursor: not-allowed; }
/* 授权平台数用满：卡片仍可点（点了会提示先取消一个），但视觉上先给个暗示 */
.plat.is-capped { opacity: .5; cursor: not-allowed; }
.plat.is-capped:hover { border-color: var(--line); background: #fff; }
.plat-check { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; font-size: 11px; color: #fff; background: #fff; }
.plat.on .plat-check { background: var(--orange); border-color: var(--orange); }
/* 平台图标：底下一层是首字兜底，LOGO 盖在上面；图挂了也不会出现破图框 */
.plat-ic { position: relative; width: 26px; height: 26px; flex: none; border-radius: 7px; overflow: hidden;
  background: var(--tint);
  background: color-mix(in srgb, var(--pc, #8a919b) 12%, #fff);
  border: 1px solid var(--line); display: grid; place-items: center; }
.plat-ic-t { font-size: 11px; font-weight: 700; color: var(--pc, #6b7280); line-height: 1; }
.plat-ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.plat-main { flex: 1; min-width: 0; }
/* 名称 + 状态标签在左，右侧「登录的是谁」；说明单独占满整行，不和用户名抢位置 */
.plat-top { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.plat-nmw { display: flex; align-items: flex-start; gap: 6px; flex: 1 1 auto; min-width: 0; }
.plat-nmw .tag { flex: none; margin-top: 1px; white-space: nowrap; }
.plat-top .plat-nm { flex: 0 1 auto; min-width: 0; }
.plat-top .plat-state { flex: 0 0 auto; margin-left: auto; margin-top: 1px; }
/* 名称与说明都最多两行，超出截断 —— 不再靠省略号硬挤成一行 */
.plat-nm { font-size: 13px; font-weight: 650; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.plat-meta { font-size: 11px; line-height: 1.5; color: var(--text-3); margin-top: 1px; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
/* 右侧：登录该平台的账号名（拿不到名字时退回「已登录」标签） */
.plat-state { font-size: 10.5px; flex: none; max-width: 88px; text-align: right; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.plat-state.plat-who { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-weight: 600; }
.plat-state .who-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex: none; }
.plat.disabled .plat-state.plat-who { color: var(--text-3); }
/* 登录态是快照不是实时值：把「几分钟前实测的」写在提示行里，过期了变黄，
   否则用户会以为那一排绿色的「已登录」是此刻的状态 */
.login-age { color: var(--text-3); font-weight: 400; }
.login-age.is-stale { color: var(--amber); }
/* 双形态平台的形态标签（文章 / 长文 / 贴图 / 笔记） */
.plat-form { display: inline-block; margin-left: 5px; padding: 1px 6px; border-radius: 5px; font-size: 10.5px; font-weight: 600;
  color: var(--orange-d, var(--orange)); background: var(--orange-l); vertical-align: 1px; white-space: nowrap; }
/* 未登录平台的去登录快捷入口：与扩展 popup 的「去登录」一致 */
.plat-login { margin-top: 5px; padding: 0; border: 0; background: none; font-size: 11px; font-weight: 600;
  color: var(--orange); cursor: pointer; }
.plat-login:hover { text-decoration: underline; }
/* 客户维度：点行展开最近几次发布 */
.cust-row { cursor: pointer; }
.cust-row:hover { background: var(--tint); }
.cust-detail > td { background: var(--tint); padding: 10px 14px; }
.cust-detail-box { font-size: 12.5px; line-height: 1.7; }
.cust-one { padding: 2px 0; border-bottom: 1px dashed var(--line); }
.cust-one:last-child { border-bottom: 0; }

/* 结果行里的次要原因（微信原始报错等）：比正文弱一档，不抢主结论 */
.res-sub { color: var(--text-3); font-size: 11.5px; }

/* 目标平台下方：刷新登录状态 */
.plat-refresh { width: 100%; margin-top: 10px; justify-content: center; gap: 7px; font-size: 13px; padding: 9px 12px; color: var(--text-2); }
.plat-refresh .ico { width: 15px; height: 15px; stroke-width: 2.1; }
.plat-refresh:hover { color: var(--orange-d); border-color: var(--orange-b); }
.plat-refresh.is-busy { color: var(--orange-d); }
.plat-refresh.is-busy .ico { animation: spin .9s linear infinite; }

/* 表单 */
.field { margin-bottom: 16px; }
.field label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 650; margin-bottom: 6px; }
.field label .ctr { font-weight: 400; color: var(--text-3); font-size: 11.5px; }
.inp, .ta, .sel { width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: #fff; color: var(--text); padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.inp:focus, .ta:focus, .sel:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-l); }
.ta { resize: vertical; min-height: 190px; line-height: 1.7; font-size: 13px; }
.ta.md { font-family: var(--mono); font-size: 12.5px; }
.inp.mono { font-family: var(--mono); font-size: 12.5px; }
/* 管理页：密钥输入 + 随机生成按钮并排 */
.cfg-gen-row { display: flex; gap: 8px; align-items: stretch; }
.cfg-gen-row .inp { flex: 1; min-width: 0; }
.cfg-gen-row .btn { white-space: nowrap; }
.cfg-gen-row .inp.is-plain { font-family: var(--mono); font-size: 12.5px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.help { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }

/* 封面：左侧缩略图上传达 + 右侧链接框，保持一行高度，不破坏 row-2 栅格 */
.cover-field { display: flex; align-items: center; gap: 8px; }
.cover-field .inp { flex: 1; min-width: 0; }
.cover-thumb {
  flex: none; width: 42px; height: 42px; padding: 0; cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line-2); border-radius: 10px; background: var(--tint);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.cover-thumb:hover, .cover-thumb:focus-visible { border-color: var(--orange); background: var(--orange-l); outline: none; }
.cover-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-plus { font-size: 19px; line-height: 1; color: var(--text-3); }
.cover-field.is-busy .cover-thumb { opacity: .45; pointer-events: none; }
.cover-field.is-drop .cover-thumb { border-color: var(--orange); border-style: solid; box-shadow: 0 0 0 3px var(--orange-l); }
.cover-field .help { margin-top: 0; }
.cover-state-busy { color: var(--orange-d); }
.cover-state-ok { color: #1e8e3e; }
.cover-state-err { color: #c0392b; }

/* 正文多图：缩略图网格 + 排序/删除，图片按序写回 Markdown */
.bodyimg-field { margin-top: 4px; }
.bodyimg-drop {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px dashed var(--line-2); border-radius: 10px; background: var(--tint);
  transition: border-color .15s, background .15s;
}
.bodyimg-drop.is-over { border-color: var(--orange); background: var(--orange-l); }
.bodyimg-drop.is-busy { opacity: .6; pointer-events: none; }
.bodyimg-add {
  flex: none; width: 38px; height: 38px; padding: 0; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 9px; background: #fff;
  color: var(--orange-d); font-size: 20px; line-height: 1;
}
.bodyimg-add:hover { border-color: var(--orange); background: var(--orange-l); }
.bodyimg-tip { font-size: 11.5px; color: var(--text-2); line-height: 1.5; }
.bodyimg-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bodyimg-item {
  position: relative; width: 82px; padding: 4px; border: 1px solid var(--line);
  border-radius: 9px; background: #fff;
}
.bodyimg-item img { width: 100%; height: 60px; object-fit: cover; border-radius: 5px; display: block; background: var(--tint); }
.bodyimg-item .bi-no {
  position: absolute; top: 7px; left: 7px; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 9px;
  background: rgba(0,0,0,.62); color: #fff; font-size: 10px; font-weight: 700;
}
.bodyimg-item .bi-acts { display: flex; gap: 3px; margin-top: 4px; }
.bodyimg-item .bi-acts button {
  flex: 1; padding: 2px 0; font-size: 11px; line-height: 1.4; cursor: pointer;
  border: 1px solid var(--line); border-radius: 5px; background: var(--tint); color: var(--text-2);
}
.bodyimg-item .bi-acts button:hover { border-color: var(--orange); color: var(--orange-d); }
.bodyimg-item .bi-acts button:disabled { opacity: .35; cursor: default; }
.bodyimg-state-busy { color: var(--orange-d); }
.bodyimg-state-ok { color: #1e8e3e; }
.bodyimg-state-err { color: #c0392b; }

/* 贴图笔记独立操作台：图片上传是主角，文章区的 Markdown / 封面 / GEO 全部让位 */
.pane-image { display: grid; gap: 16px; }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(135deg, var(--orange-l) 0%, var(--tint) 100%); }
.tile-head > div { display: grid; gap: 3px; }
.tile-head b { font-size: 13px; color: var(--text-1); }
.tile-head span { font-size: 11.5px; color: var(--text-2); }
.tile-desc { min-height: 120px; resize: vertical; font-size: 14px; line-height: 1.8; padding: 12px 14px; }
.tile-upload-field { margin-top: 0; }
.tile-drop {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  border: 2px dashed var(--line-2); border-radius: 14px; background: var(--tint);
  transition: border-color .15s, background .15s;
}
.tile-drop.is-over { border-color: var(--orange); background: var(--orange-l); }
.tile-drop.is-busy { opacity: .6; pointer-events: none; }
.tile-pick {
  flex: none; width: 58px; height: 58px; padding: 0; cursor: pointer;
  border: 1px solid var(--orange-b); border-radius: 14px; background: #fff;
  color: var(--orange-d); font-size: 28px; line-height: 1;
}
.tile-pick:hover { background: var(--orange-l); }
.tile-drop-copy { display: grid; gap: 4px; }
.tile-drop-copy b { font-size: 13.5px; color: var(--text-1); }
.tile-drop-copy span { font-size: 11.5px; color: var(--text-2); }
.tile-list { gap: 10px; }
.tile-list .bodyimg-item { width: 96px; }
.tile-list .bodyimg-item img { height: 120px; object-fit: cover; }
.tile-note { display: grid; align-content: center; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--tint); }
.tile-note b { font-size: 12px; color: var(--text-1); }
.tile-note span { font-size: 11.5px; color: var(--text-2); line-height: 1.5; }
@media (max-width: 640px) {
  .tile-head { align-items: flex-start; }
  .tile-drop { padding: 14px; }
  .tile-list .bodyimg-item { width: 84px; }
  .tile-list .bodyimg-item img { height: 104px; }
}

/* 上传图片放大预览：点缩略图打开大图，多图可翻页 */
.bodyimg-item img, .cover-thumb img[data-preview] { cursor: zoom-in; }
.img-lightbox {
  position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center;
  gap: 18px; padding: 48px 24px; background: rgba(16,17,20,.9);
}
.img-lightbox[hidden] { display: none; }
.img-lightbox .ilb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(92vw, 1200px); }
.img-lightbox .ilb-img {
  max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain;
  border-radius: 10px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.img-lightbox .ilb-cap { color: rgba(255,255,255,.85); font-size: 12.5px; line-height: 1.5; text-align: center; }
.img-lightbox .ilb-close {
  position: absolute; top: 18px; right: 22px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff;
  font-size: 15px; cursor: pointer;
}
.img-lightbox .ilb-close:hover { background: rgba(255,255,255,.18); }
.img-lightbox .ilb-nav {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff;
  font-size: 30px; line-height: 1; cursor: pointer;
}
.img-lightbox .ilb-nav:hover { background: rgba(255,255,255,.18); }
.img-lightbox .ilb-nav[hidden] { display: none; }
@media (max-width: 640px) {
  .img-lightbox { gap: 6px; padding: 56px 8px 20px; }
  .img-lightbox .ilb-nav { width: 34px; height: 34px; font-size: 22px; }
}

details.geo { border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 16px; background: #fcfcfd; }
details.geo summary { padding: 11px 14px; cursor: pointer; font-size: 13px; font-weight: 650; list-style: none; display: flex; align-items: center; gap: 8px; }
details.geo summary::-webkit-details-marker { display: none; }
details.geo summary::before { content: "▸"; color: var(--orange); transition: transform .15s; }
details.geo[open] summary::before { transform: rotate(90deg); }
details.geo .geo-bd { padding: 4px 14px 16px; border-top: 1px solid var(--line); }
.geo-prev { margin: 10px 0 0; padding: 10px 12px; background: #f6f6f8; border: 1px solid var(--line); border-radius: var(--radius-s); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; line-height: 1.7; color: var(--text-3); white-space: pre-wrap; word-break: break-word; max-height: 190px; overflow: auto; }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); margin: 12px 0; }
.checkline input { accent-color: var(--orange); }
/* 字段内的复选框行：不要继承 .field label 的两端对齐（标签名 + 右侧说明用） */
.field label.checkline { justify-content: flex-start; font-weight: 400; margin: 10px 0 0; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 4px; }
.actions .spacer { flex: 1; }

.result { margin-top: 18px; }
.result-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.result-head h4 { margin: 0; font-size: 13.5px; }
.res-item { display: flex; gap: 9px; padding: 9px 12px; border-radius: 8px; font-size: 12.5px; margin-bottom: 6px; line-height: 1.55; }
.res-err { background: var(--red-l); color: #8b2b2b; }
.res-warn { background: var(--amber-l); color: #6d4a06; }
.res-ok { background: var(--green-l); color: #12603f; }
.res-plan { background: #f4f5f7; color: var(--text-2); }
/* 只重发失败的平台：一整批里部分成功时出现，避免用户全选重发造成平台上重复一篇 */
.res-retry { background: var(--orange-l, #fff1ea); color: #8a4a12; align-items: center; }
.res-retry .btn { margin-left: 8px; vertical-align: middle; }
.res-retry .btn:hover { background: #fff; border-color: var(--orange); }
.res-ico { flex: none; font-weight: 700; }
/* 同步进行中：逐条等待回执 / 结果逐条淡入 */
.res-spin { align-self: center; margin-top: 2px; }
.res-pending { opacity: .85; }
.res-detail { animation: resReveal .2s ease-out; }
@keyframes resReveal { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.res-json { font-size: 11.5px; color: var(--text-2); background: var(--tint); border-radius: 8px; padding: 11px 13px; margin-top: 8px; white-space: pre-wrap; word-break: break-all; font-family: var(--mono); max-height: 220px; overflow: auto; }

.hist-item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hist-item:last-child { border-bottom: 0; }
.hist-time { font-size: 11px; color: var(--text-3); font-family: var(--mono); white-space: nowrap; padding-top: 2px; }
.hist-main { flex: 1; min-width: 0; }
.hist-t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-s { font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.empty { text-align: center; color: var(--text-3); font-size: 12.5px; padding: 24px 0; }

/* Toast */
#toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: grid; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-lg); max-width: 340px; animation: tin .22s ease; }
.toast.ok { background: #12603f; }
.toast.err { background: #a53232; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 弹层 */
.mask { position: fixed; inset: 0; background: rgba(17,18,20,.5); z-index: 90; display: grid; place-items: center; padding: 20px; }
.mask[hidden] { display: none; }
/* 退出确认必须盖过登录/绑定/授权三个门禁层（同为 90，且确认层在 DOM 中更靠前），
   否则点了「退出登录」确认框被挡在后面，用户会以为没反应。 */
#logoutMask { z-index: 120; }
.modal { background: #fff; border-radius: 16px; width: min(460px, 100%); padding: 26px; box-shadow: var(--shadow-lg); }
.modal h3 { margin: 0 0 8px; font-size: 18px; }
.modal p { color: var(--text-2); font-size: 13px; margin: 0 0 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.modal-sm { width: min(400px, 100%); padding: 24px; }
.modal-sm h3 { font-size: 17px; }
.modal-sm p { line-height: 1.75; margin-bottom: 6px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .install-in { grid-template-columns: 1fr; gap: 24px; }
  .win { transform: none; max-width: 520px; }
  .quick-dl { max-width: 520px; }
  .plat-grid { grid-template-columns: repeat(4, 1fr); }
  .console-grid { grid-template-columns: 1fr; }
  .plat-list { max-height: min(58vh, 460px); }
  .plat-state { max-width: 38%; }
  .feature-grid, .step-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .wrap, .narrow { width: min(100% - 32px, 1140px); }
  .nav-in { position: relative; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 8px; border: 1px solid var(--line);
    border-radius: 10px; background: #fff; cursor: pointer; order: 3;
  }
  .nav-toggle span { display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-menu {
    display: none; position: absolute; top: calc(100% - 6px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    padding: 12px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(17,18,20,.12);
    z-index: 50;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; font-size: 15px; }
  .nav-links a { padding: 11px 10px; border-radius: 8px; }
  .nav-links a:hover { background: var(--bg-soft, #f6f6f4); }
  .nav-cta { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .nav-cta .btn { justify-content: center; }
  .hero { padding: 58px 0 54px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; padding: 12px 14px; font-size: 14px; }
  .hero-quick { gap: 10px; }
  .hq-note { width: 100%; }
  .quick-dl { padding: 12px 13px; gap: 10px; }
  .qd-copy b { font-size: 14px; }
  .qd-copy small { font-size: 11px; }
  .section { padding: 54px 0; }
  .feature-grid, .step-grid, .scene-grid { grid-template-columns: 1fr; }
  .plat-grid { grid-template-columns: repeat(3, 1fr); }
  .row-2 { grid-template-columns: 1fr; }
  .console-top-in { padding: 12px 0; }
  .hero-stats { gap: 20px; }
  .win-body { grid-template-columns: 1fr; }
}

/* ---------- 联系我们 ---------- */
.contact-band { background: var(--tint); }
.contact-in {
  max-width: 640px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px 40px;
  box-shadow: var(--shadow);
}
.contact-info h3 { font-size: 18px; margin: 0 0 18px; letter-spacing: -.02em; }
.ci-val { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); font-weight: 600; }
.ci-copy {
  border: 1px solid var(--line-2); background: #fff; border-radius: 6px;
  padding: 2px 9px; font-size: 11px; color: var(--orange-d); cursor: pointer; line-height: 1.7;
}
.ci-copy:hover { border-color: var(--orange); background: var(--orange-l); }
.ci-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.ci-ico {
  width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--orange-l);
  color: var(--orange); display: grid; place-items: center; font-size: 15px;
}
.ci-row > div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ci-row a { color: var(--text); font-weight: 600; }
.ci-row a:hover { color: var(--orange); }
.ci-lab { font-size: 11px; color: var(--text-3); }
.contact-info .btn { margin-top: 8px; }
/* 主按钮 + 问题反馈并排，窄屏自动换行且不撑破卡片 */
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.contact-actions .btn { margin-top: 8px; }
.contact-actions .btn-ghost { border-color: var(--line-2); color: var(--text-2); }
.contact-actions .btn-ghost:hover { border-color: var(--orange); color: var(--orange-d); }
.ci-note a { color: var(--orange-d); font-weight: 600; }
.ci-note { font-size: 11.5px; color: var(--text-3); margin: 14px 0 0; line-height: 1.7; }
.ci-note b { color: var(--text-2); }
@media (max-width: 680px) {
  .contact-in { padding: 28px 20px; }
}

/* ---------- 内联 SVG 图标（替代符号/emoji，避免字体缺失导致空白） ---------- */
.ico { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature-ico .ico { color: var(--orange-d); width: 20px; height: 20px; }
.step-ico .ico, .dl-ico .ico { width: 22px; height: 22px; }
.callout-ico .ico { width: 13px; height: 13px; stroke-width: 2.6; }
.ci-ico .ico { width: 17px; height: 17px; }
.ico-sm { width: 12px; height: 12px; display: inline-block; vertical-align: -1px; }
.footer-brands a { display: inline-flex; align-items: center; gap: 4px; }
.footer-brands a .ico-sm { color: var(--orange); }
.win-ok { display: inline-flex; align-items: center; gap: 3px; }
.win-ok .ico-sm { color: var(--green); stroke-width: 2.6; width: 12px; height: 12px; }
/* 注册商标上标：品牌标识位「斑马速客®」 */
.reg { font-size: .58em; line-height: 0; vertical-align: super; margin-left: .04em; font-weight: 600; letter-spacing: 0; }

/* ---------- 连接码弹层：三步图形引导 + 实时设备状态 ---------- */
.modal-token { width: min(520px, 100%); }
.modal-token h3 { margin-bottom: 6px; }
.tk-guide { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; margin: 4px 0 16px; }
.tk-step { position: relative; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 8px 12px; text-align: center; background: var(--tint); }
.tk-step .tk-n { position: absolute; top: -9px; left: -8px; width: 21px; height: 21px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tk-step .tk-ic { width: 34px; height: 34px; margin: 0 auto 7px; border-radius: 9px; background: #fff; border: 1px solid var(--line); color: var(--orange-d); display: flex; align-items: center; justify-content: center; }
.tk-step .tk-ic .ico { width: 18px; height: 18px; }
.tk-step b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.tk-step span:last-child { display: block; font-size: 11px; color: var(--text-3); }
.tk-arrow { color: var(--text-3); font-size: 15px; }
.tk-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 9px 12px; border-radius: 8px; margin-bottom: 14px; background: var(--amber-l); color: var(--amber); }
.tk-status.ok { background: var(--green-l); color: var(--green); }
.tk-status .dot { width: 8px; height: 8px; }
.tk-note { font-size: 11.5px !important; color: var(--text-3) !important; line-height: 1.6; margin: 0 0 4px !important; }
.tk-quick { display: flex; gap: 8px; margin: -6px 0 14px; }
/* 账号连接码：只服务 CLI / MCP / SDK，视觉上比一键配对弱一级 */
.tk-account { border: 1px dashed var(--line); border-radius: var(--radius-s); padding: 10px 12px; background: var(--tint); margin-bottom: 12px; }
.tk-account-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.tk-code { margin: 5px 0 6px; font-family: var(--mono); font-size: 11.5px; color: var(--text-2); word-break: break-all; line-height: 1.5; }
/* 手动填码：收起状态是一行细横条，不抢一键配对的位置 */
.tk-manual { border-top: 1px solid var(--line); padding-top: 10px; }
.tk-manual > summary { cursor: pointer; font-size: 12.5px; color: var(--text-3); list-style: none; display: flex; align-items: center; gap: 6px; }
.tk-manual > summary::-webkit-details-marker { display: none; }
.tk-manual > summary::before { content: '+'; font-weight: 700; color: var(--text-3); }
.tk-manual[open] > summary::before { content: '–'; }
.tk-manual > summary:hover { color: var(--orange-d); }
.tk-manual .modal-actions { margin-top: 8px; }
@media (max-width: 560px) {
  .tk-guide { grid-template-columns: 1fr; }
  .tk-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ---------- 操作台：文章来源模式切换（自助填写 / AI 自动生成） ---------- */
.editor-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; background: var(--tint); border: 1px solid var(--line); border-radius: 10px; }
.editor-tab { display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border: 0; border-radius: 7px; background: transparent; color: var(--text-3); font-size: 12.5px; font-weight: 650; cursor: pointer; line-height: 1.4; transition: background .16s, color .16s, box-shadow .16s; }
.editor-tab:hover:not(.active) { color: var(--text-2); background: rgba(255,255,255,.65); }
.editor-tab.active { background: #fff; color: var(--text-1); box-shadow: 0 1px 3px rgba(16,24,40,.09); }
.tab-soon { font-size: 10px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--orange-l); color: var(--orange-d); border: 1px solid var(--orange-b); white-space: nowrap; }
/* 内容形态：长文文章 / 贴图笔记。选中态用深底白字，和下方来源模式区分开 */
.posttype-tabs { margin-bottom: 12px; }
.posttype-tabs .editor-tab.active { background: var(--ink); color: #fff; box-shadow: none; }
.posttype-tabs .editor-tab.active .tab-soon { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28); }
.pane-ai { padding: 6px 0 2px; }
.ai-placeholder { text-align: center; padding: 46px 22px; border: 1px dashed var(--orange-b); border-radius: 12px; background: linear-gradient(180deg, var(--tint), #fff); }
.ai-ico { margin-bottom: 12px; }
.ai-placeholder h4 { margin: 0 0 10px; font-size: 15px; color: var(--text-1); }
.ai-placeholder p { margin: 0 auto 8px; max-width: 440px; font-size: 12.5px; line-height: 1.8; color: var(--text-2); }
.ai-placeholder .ai-note { color: var(--text-3); font-size: 11.5px; margin-bottom: 18px; }
@media (max-width: 560px) {
  .editor-tabs { display: flex; }
  .editor-tab { flex: 1; justify-content: center; }
}

/* ---------- 操作台：登录门禁（微信扫码 / 手机号 / 应急口令） ---------- */
.auth-nav-user { font-size: 12px; color: var(--text-2); margin-right: 2px; }
.auth-gate { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(17,18,20,.55); backdrop-filter: blur(3px); }
.auth-gate[hidden] { display: none; }
.auth-card { width: min(440px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 80px rgba(16,24,40,.22); padding: 28px 30px 24px; }
.auth-logo { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-1); margin-bottom: 18px; }
.auth-logo .brand-mark { width: 24px; height: 24px; flex: none; }
.auth-title { font-size: 15px; margin: 0 0 8px; color: var(--text-2); font-weight: 600; }
.auth-desc { font-size: 12.5px; line-height: 1.7; color: var(--text-2); margin: 0 0 20px; }
.auth-tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 20px; background: var(--tint); border: 1px solid var(--line); border-radius: 10px; }
.auth-tab { flex: 1; padding: 9px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--text-3); font-size: 12.5px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.auth-tab.active { background: #fff; color: var(--text-1); box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.auth-tabs[hidden], .auth-subtabs[hidden] { display: none; }
.auth-pane .field { margin-bottom: 14px; }
.auth-subtabs { display: flex; gap: 18px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.auth-subtab { position: relative; padding: 0 0 9px; border: 0; background: none; color: var(--text-3); font-size: 13px; font-weight: 650; cursor: pointer; }
.auth-subtab.active { color: var(--text-1); }
.auth-subtab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--orange); }
.auth-wx-box { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); margin-bottom: 16px; }
.auth-wx-ico { flex: none; }
.auth-wx-box b { font-size: 13px; color: var(--text-1); }
.auth-wx-box p { font-size: 11.5px; line-height: 1.6; color: var(--text-3); margin: 5px 0 0; }
/* 微信登录：官方 WxLogin 组件在当前弹窗内渲染二维码，无需跳转。
 * 组件 iframe 固定 300×400、内容从顶部开始：二维码态约占前 275px，快捷登录态约占前 210px，
 * 下半段是组件空白。按 0.8 等比缩到 240×320，再把 iframe 整体下移 40px，配合 300px 高的框，
 * 使二维码态上下留白基本对称、快捷登录态也落到框的中上部，不再贴顶悬空。 */
.wx-qr-wrap { text-align: center; }
.wx-qr-box { position: relative; display: block; width: 240px; height: 300px; margin: 0 auto; min-width: 0; min-height: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.wx-qr { width: 300px; margin-left: -30px; transform: translateY(40px) scale(.8); transform-origin: top center; }
.wx-qr iframe { display: block; margin: 0 auto; border: 0; }
.wx-qr-mask { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--text-3); font-size: 12.5px; }
.wx-qr-tip { font-size: 11px; line-height: 1.5; color: var(--text-3); margin: 8px 0 6px; }
.wx-qr-refresh { margin: 0 auto; }
@media (max-width: 360px) { .wx-qr-box { width: 216px; height: 270px; } .wx-qr { margin-left: -42px; transform: translateY(36px) scale(.72); } }
.auth-code-row { display: flex; gap: 8px; }
.auth-code-row .inp { flex: 1; min-width: 0; }
.auth-code-row .btn { flex: none; white-space: nowrap; }
.auth-submit { width: 100%; justify-content: center; }
/* 新用户引导：微信授权 → 绑定手机号 → 开通授权，步骤条让当前位置一眼可见 */
.onb-steps { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.onb-steps[hidden] { display: none; }
.onb-step { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.onb-step i { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--line); font-style: normal; font-size: 11px; font-weight: 700; color: var(--text-3); background: #fff; }
.onb-step.on { color: var(--text-1); font-weight: 700; }
.onb-step.on i { color: #fff; border-color: var(--orange); background: var(--orange); }
#phoneGate .auth-card { width: min(460px, 100%); }
#phoneGate .field { margin-bottom: 14px; }
/* 授权门禁：说明当前状态（未开通 / 已到期），下一行就是输入框 */
.lic-sub { margin: 0 0 18px; font-size: 12.5px; line-height: 1.7; color: var(--text-2); }
.lic-sub b { color: var(--text-1); font-variant-numeric: tabular-nums; }
.auth-mini { font-size: 11.5px; color: var(--text-3); margin: 10px 0 0; line-height: 1.6; }
.auth-mini a { color: var(--orange-d); text-decoration: none; font-weight: 600; }
.auth-mini a:hover { text-decoration: underline; }
.auth-mini b { color: var(--text-2); }

/* ---------- 授权窗口：上半填码，下半引导购买 ---------- */
.auth-card.lic-card { width: min(720px, 100%); }
.lic-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.lic-code-row .btn { white-space: nowrap; padding-left: 22px; padding-right: 22px; }
.lic-buy { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.lic-buy[hidden] { display: none; }
.lic-buy-hd { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 13px; }
.lic-buy-hd h3 { margin: 0; font-size: 13px; font-weight: 700; color: var(--text-1); }
.lic-buy-hd span { font-size: 11.5px; color: var(--text-3); }
.lic-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lic-plan {
  position: relative; display: flex; flex-direction: column; gap: 1px;
  padding: 17px 12px 13px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; text-align: left; cursor: pointer; font-family: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s, background .15s;
}
.lic-plan:hover { border-color: var(--orange-b); box-shadow: 0 8px 22px rgba(242,101,34,.13); transform: translateY(-1px); }
.lic-plan.is-feat { border-color: var(--orange-b); background: linear-gradient(180deg, #fffaf7, #fff); }
.lic-plan.is-on { border-color: var(--orange); background: var(--orange-l); box-shadow: 0 8px 22px rgba(242,101,34,.16); }
.lic-plan.is-feat .lic-plan-badge { background: var(--orange); }
.lic-plan-badge {
  position: absolute; top: -9px; left: 10px; padding: 1px 7px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 10px; line-height: 16px; font-weight: 650; white-space: nowrap;
}
.lic-plan-price { display: flex; align-items: baseline; gap: 5px; font-size: 25px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--text-1); font-variant-numeric: tabular-nums; }
.lic-plan-price i { font-size: 13px; font-weight: 700; font-style: normal; margin-right: 1px; color: var(--text-2); }
.lic-plan-was { font-size: 12px; font-weight: 500; font-style: normal; color: var(--text-3); text-decoration: line-through; }
.lic-plan.is-on .lic-plan-was { color: var(--orange-d); }
.lic-plan-name { font-size: 12px; font-weight: 650; color: var(--text-2); order: -1; }
.lic-plan-per { font-size: 10.5px; font-weight: 650; color: var(--orange-d); }
/* 平台配额：价格之外的第二个决策点，用浅橙胶囊单独拎出来 */
.lic-plan-plat {
  align-self: flex-start; margin-top: 6px; padding: 1px 7px; border-radius: 999px;
  background: var(--orange-l); color: var(--orange-d);
  font-size: 10px; line-height: 16px; font-weight: 700; white-space: nowrap;
}
.lic-plan.is-feat .lic-plan-plat { background: rgba(242,101,34,.16); }
.lic-plan-note { margin-top: 3px; font-size: 10.5px; line-height: 1.5; color: var(--text-3); }
.lic-contact {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding: 11px 13px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--tint);
}
.lic-qr-box { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.lic-qr-box[hidden] { display: none; }
.lic-qr { width: 84px; height: 84px; border-radius: 8px; border: 1px solid var(--line); background: #fff; object-fit: contain; }
.lic-qr-box span { font-size: 10px; color: var(--text-3); }
.lic-contact-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.lic-contact-ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--green-l); color: var(--green); }
.lic-contact-txt { min-width: 0; }
.lic-contact-txt b { display: block; font-size: 13px; font-weight: 750; color: var(--text-1); letter-spacing: .01em; }
.lic-contact-txt p { margin: 2px 0 0; font-size: 11.5px; line-height: 1.55; color: var(--text-3); }
.lic-contact-act { display: flex; align-items: center; gap: 8px; flex: none; }
.lic-qr { width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
@media (max-width: 640px) {
  .lic-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lic-contact { flex-direction: column; align-items: stretch; }
  .lic-contact-act { justify-content: flex-end; }
}
.auth-msg { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--green-l); color: var(--green); font-size: 12px; line-height: 1.5; }
.auth-msg.err { background: #fff0f0; color: var(--red); }
.auth-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 11.5px; color: var(--text-3); }
.auth-foot a { color: var(--text-2); text-decoration: none; }
.auth-foot a:hover { color: var(--orange-d); }
@media (max-width: 480px) {
  .auth-card { padding: 22px 18px; }
  .auth-tabs { flex-wrap: wrap; }
  .auth-tab { flex: 1 1 40%; }
}

/* ==========================================================================
   个人中心（/profile）
   左：资料 + 登录安全；右：账号信息。全站共用变量，不引入新配色。
   ========================================================================== */
.nav-links a.on { color: var(--text); font-weight: 650; }
/* 顶栏里的「头像 + 昵称」：点击进个人中心 */
.auth-nav-user { display: inline-flex; align-items: center; gap: 6px; }
a.auth-nav-user { color: var(--text-2); }
a.auth-nav-user:hover { color: var(--orange-d); }
a.auth-nav-user img { width: 22px; height: 22px; border-radius: 50%; flex: none; display: block; }
.av-wrap { position: relative; display: inline-flex; flex: none; line-height: 0; }
.av-wrap img, .av-ph {
  width: 22px; height: 22px; border-radius: 50%; flex: none; display: block; object-fit: cover;
  border: 1px solid var(--line); background: var(--tint);
}
.av-ph { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-2); }
.auth-nav-user:hover .av-wrap img { border-color: var(--orange-b); }
.av-nick { line-height: 1.2; white-space: nowrap; }

/* ---------- 会员等级角标：从普通到终身，金属质感逐级升级 ----------
   前景色 / 背景全部随等级走 CSS 变量，图标描边用 currentColor，
   在浅色导航条上也能看清，不依赖主题之外的硬编码。 */
.m-tier {
  --tier-1: #b7bec8; --tier-2: #cfd5dd; --tier-edge: #ffffff; --tier-ink: #4b5563;
  position: absolute; right: -6px; bottom: -5px; z-index: 2;
  width: 13px; height: 13px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--tier-2), var(--tier-1));
  border: 1.5px solid var(--tier-edge);
  box-shadow: 0 1px 2px rgba(17,18,20,.2), inset 0 1px 0 rgba(255,255,255,.55);
  line-height: 0;
}
.m-tier svg { width: 8px; height: 8px; fill: none; stroke: var(--tier-ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
/* 普通：素银底，等级体系起点 */
.m-tier--normal { --tier-1: #b7bec8; --tier-2: #cfd5dd; }
/* 体验：青铜 */
.m-tier--trial { --tier-1: #b07a52; --tier-2: #d8a67f; --tier-ink: #fff; }
/* 月度：银 */
.m-tier--month { --tier-1: #96a2b3; --tier-2: #cfd8e4; --tier-ink: #fff; }
/* 年度：金 */
.m-tier--year {
  --tier-1: #c9991f; --tier-2: #f6d977; --tier-ink: #fff;
  box-shadow: 0 1px 3px rgba(150,105,10,.35), inset 0 1px 0 rgba(255,255,255,.7);
}
/* 终身：钻金渐变 + 高光，最高级感 */
.m-tier--permanent {
  --tier-1: #a9791a; --tier-2: #ffe9a0; --tier-ink: #fff;
  background: linear-gradient(135deg, #fff4c4 0%, #e9c464 42%, #b9861d 100%);
  box-shadow: 0 0 0 1px rgba(255,236,170,.9), 0 1px 4px rgba(150,105,10,.45), inset 0 1px 1px rgba(255,255,255,.85);
}
.m-tier--permanent svg { stroke-width: 1.6; }
.av-tier-text { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.av-tier-text--year, .av-tier-text--permanent { color: #a9791a; font-weight: 650; }

/* 操作台顶部个人中心入口 + 资料待完善红点/红条 */
.profile-entry { position: relative; display: inline-flex; align-items: center; gap: 5px; }
.profile-entry-dot {
  position: absolute; right: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 2px #fff;
}
.bind-notice { background: #fff4f4; border-bottom: 1px solid #f3cccc; color: #a32626; }
.bind-notice-in { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 13px; flex-wrap: wrap; }
.bind-notice-icon {
  width: 18px; height: 18px; flex: none; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: var(--red); color: #fff; font-weight: 800; font-size: 12px;
}
.bind-notice-text { flex: 1; min-width: 220px; font-weight: 650; }
.bind-notice .btn { color: #a32626; border-color: #e7b9b9; }
.bind-notice .btn:hover { background: #fff; border-color: var(--red); }
@media (max-width: 640px) { .bind-notice-text { min-width: 100%; } }

/* 扩展版本落后提醒：橙色系，和「资料没填」的红色区隔——这是建议升级，不是错误 */
.ext-notice { background: #fff8f1; border-bottom: 1px solid #f6dcc4; color: #8a4a12; }
.ext-notice-in { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 13px; flex-wrap: wrap; }
.ext-notice-icon {
  width: 18px; height: 18px; flex: none; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: var(--orange); color: #fff; font-weight: 800; font-size: 12px;
}
.ext-notice-text { flex: 1; min-width: 220px; font-weight: 600; }
.ext-notice-text b { font-weight: 800; }
.ext-notice .btn { color: #8a4a12; border-color: #efcfb3; }
.ext-notice .btn:hover { background: #fff; border-color: var(--orange); }
.ext-notice-x {
  border: 0; background: none; color: #b07a4a; font-size: 18px; line-height: 1;
  cursor: pointer; padding: 0 4px;
}
.ext-notice-x:hover { color: var(--orange-d); }
@media (max-width: 640px) { .ext-notice-text { min-width: 100%; } }

/* 授权快到期：与「扩展落后」同为橙色，但只剩 3 天时转红——那时不续就真的断了 */
.lic-notice { background: #fff8f1; border-bottom: 1px solid #f6dcc4; color: #8a4a12; }
.lic-notice-in { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 13px; flex-wrap: wrap; }
.lic-notice-icon {
  width: 18px; height: 18px; flex: none; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: var(--orange); color: #fff; font-size: 11px;
}
.lic-notice-text { flex: 1; min-width: 220px; font-weight: 650; }
.lic-notice-text b { font-weight: 800; }
.lic-notice .btn { color: #8a4a12; border-color: #efcfb3; }
.lic-notice .btn:hover { background: #fff; border-color: var(--orange); }
.lic-notice-x {
  border: 0; background: none; color: #b07a4a; font-size: 18px; line-height: 1;
  cursor: pointer; padding: 0 4px;
}
.lic-notice-x:hover { color: var(--orange-d); }
.lic-notice-hot { background: #fff4f4; border-bottom-color: #f3cccc; color: #a32626; }
.lic-notice-hot .lic-notice-icon { background: var(--red); }
.lic-notice-hot .btn { color: #a32626; border-color: #e7b9b9; }
.lic-notice-hot .btn:hover { background: #fff; border-color: var(--red); }
@media (max-width: 640px) { .lic-notice-text { min-width: 100%; } }

.profile-body { padding: 26px 0 70px; background: var(--tint); min-height: 70vh; }
.profile-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 332px; gap: 20px; align-items: start; }

.pf-id { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.pf-avatar-big {
  position: relative;
  width: 88px; height: 88px; flex: none; border-radius: 26px;
  border: 1px solid var(--line); background: var(--tint);
}
.pf-avatar-big img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 25px; }
/* 大头像等级铭牌：右下角悬浮，金/钻档带名字 */
.pf-avatar-tier { position: absolute; right: -7px; bottom: -7px; z-index: 2; line-height: 0; }
.pf-avatar-tier .m-tier { position: relative; right: auto; bottom: auto; }
.m-tier--lg {
  width: 26px; height: 26px; border-width: 2px;
  box-shadow: 0 2px 5px rgba(17,18,20,.22), inset 0 1px 0 rgba(255,255,255,.6);
}
.m-tier--lg svg { width: 15px; height: 15px; }
.m-tier--lg.m-tier--year { box-shadow: 0 2px 6px rgba(150,105,10,.4), inset 0 1px 0 rgba(255,255,255,.75); }
.m-tier--lg.m-tier--permanent {
  box-shadow: 0 0 0 2px rgba(255,236,170,.95), 0 2px 8px rgba(150,105,10,.5), inset 0 1px 2px rgba(255,255,255,.9);
}
.pf-id-side { flex: 1; min-width: 200px; }
.pf-id-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.pf-picker { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pf-picker-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-2); margin-bottom: 10px; }
.linkbtn { border: 0; background: none; padding: 0; font-size: 12.5px; font-weight: 650; color: var(--orange-d); cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.pf-avatars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.pf-avatars button {
  padding: 0; border: 2px solid transparent; border-radius: 14px; background: none;
  line-height: 0; cursor: pointer; transition: transform .12s, border-color .12s, box-shadow .12s;
}
.pf-avatars button img { width: 100%; height: auto; display: block; border-radius: 12px; }
.pf-avatars button:hover { transform: translateY(-1px); }
.pf-avatars button.on { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-l); }

.pf-dirty { color: var(--amber); font-weight: 600; }

.pf-rows { margin: 0; }
.pf-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.pf-row:last-child { border-bottom: 0; }
.pf-row dt { color: var(--text-3); font-size: 12.5px; flex: none; }
.pf-row dd { margin: 0; text-align: right; min-width: 0; word-break: break-all; }
.pf-row dd .tag + .tag { margin-left: 4px; }
.pf-missing, .pf-missing .pf-act { color: var(--red); font-weight: 650; }
.pf-alert {
  background: #fff4f4; border: 1px solid #f3cccc; color: #a32626;
  border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.7;
  margin-bottom: 14px;
}
.pf-alert b { font-weight: 750; }
.pf-act { color: var(--orange-d); font-size: 12px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.pf-act:hover { text-decoration: underline; }

.pf-codebox { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--tint); }
.pf-codebox-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.pf-code { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); word-break: break-all; margin-top: 4px; }
.pf-codebox .help { margin-top: 8px; }

.pf-note { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--text-2); }
.pf-note a { color: var(--orange-d); font-weight: 600; }

/* 个人中心：授权 / 会员 / 绑定为主角，资料折叠收在后面 */
.pf-main, .pf-side { display: grid; gap: 20px; min-width: 0; }
.pf-hero { padding: 20px 22px; border-color: var(--orange-b); background: linear-gradient(180deg, #fffdfb 0%, #fff 60%); }
.pf-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pf-hero-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pf-hero .pf-avatar-big { width: 64px; height: 64px; border-radius: 20px; }
.pf-hero .pf-avatar-big img { border-radius: 19px; }
.pf-hero-who { min-width: 0; }
.pf-hero-name { font-size: 18px; font-weight: 750; color: var(--text); line-height: 1.4; }
.pf-hero-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.pf-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.pf-stat { min-width: 0; padding: 14px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); display: flex; flex-direction: column; gap: 5px; }
.pf-stat-license { background: var(--orange-l); border-color: var(--orange-b); }
.pf-stat-bind { background: var(--blue-l); border-color: var(--blue); }
.pf-stat-k { font-size: 11.5px; color: var(--text-3); font-weight: 650; }
.pf-stat-v { font-size: 13px; color: var(--text); line-height: 1.6; word-break: break-word; }
.pf-stat-v .tag { margin-right: 4px; }
.pf-stat-sub { font-size: 11.5px; color: var(--text-3); line-height: 1.6; }

.pf-bind-list { padding-top: 4px; padding-bottom: 4px; }
.pf-bind-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.pf-bind-row:last-child { border-bottom: 0; }
.pf-bind-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); }
.pf-bind-ico svg { width: 19px; height: 19px; fill: var(--text-2); }
.pf-bind-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pf-bind-info b { font-size: 13px; font-weight: 700; color: var(--text); }
.pf-bind-info span { font-size: 12.5px; color: var(--text-2); word-break: break-all; }
.pf-bind-act { flex: none; display: flex; align-items: center; }
.pf-bind-act .tag { white-space: nowrap; }

.pf-fold { padding: 0; }
.pf-fold > summary.panel-hd { cursor: pointer; list-style: none; align-items: center; }
.pf-fold > summary.panel-hd::-webkit-details-marker { display: none; }
.pf-fold > summary.panel-hd h3 { flex: 0 0 auto; }
.pf-fold > summary.panel-hd .hint { margin-left: auto; }
.pf-fold-caret { font-size: 11.5px; color: var(--text-3); flex: 0 0 auto; }
.pf-fold[open] > summary.panel-hd .pf-fold-caret { display: none; }
.pf-avatar-fold { margin: 2px 0 12px; }
.pf-avatar-fold > summary { display: inline-block; }
.pf-avatar-fold[open] > summary { margin-bottom: 10px; }

.pf-code-row { display: flex; gap: 8px; align-items: center; }
.pf-code-row .inp { flex: 1; min-width: 0; letter-spacing: 2px; }
.pf-code-row .btn { flex: none; white-space: nowrap; }
.pf-bind-err { color: var(--red); }
.pf-bind-ok { color: var(--green); }

@media (max-width: 900px) {
  .profile-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pf-avatars { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pf-avatar-big { width: 74px; height: 74px; border-radius: 22px; }
  .pf-stat-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-bind-row { gap: 10px; }
  .pf-bind-ico { width: 32px; height: 32px; }
}

/* ---------------- 扫码支付：直接内嵌在价目卡下方 ----------------
 * 不再开第二个窗口。用户点完套餐，收款码就在原地出现，减少一次弹窗流失。
 * 二维码内容来自服务端下单返回的支付链接，金额与订单号永远由服务端决定。
 */
.pay-panel {
  margin-top: 14px; padding: 14px 16px 15px;
  border: 1px solid var(--orange-b); border-radius: 12px;
  background: linear-gradient(180deg, #fffaf7, #fff 60%);
  box-shadow: 0 6px 20px rgba(242,101,34,.08);
}
.pay-panel[hidden] { display: none; }
.pay-panel-hd { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-bottom: 13px; }
.pay-panel-tag { padding: 2px 8px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 10.5px; line-height: 16px; font-weight: 700; }
.pay-panel-hd > b { font-size: 13px; color: var(--text-1); }
.pay-panel-price { font-size: 15px; font-weight: 800; color: var(--orange-d); font-variant-numeric: tabular-nums; }
.pay-panel-sub { font-size: 11px; color: var(--text-3); }
.pay-panel-hd .linkbtn { margin-left: auto; font-size: 11px; }
.pay-body { display: flex; gap: 16px; align-items: flex-start; }
.pay-side { flex: 1 1 auto; min-width: 0; }

.pay-tabs { display: flex; gap: 6px; padding: 4px; margin: 0 0 10px; background: var(--tint); border: 1px solid var(--line); border-radius: 9px; }
.pay-tabs[hidden] { display: none; }
.pay-tab { flex: 1; padding: 6px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); font-size: 12px; font-weight: 650; cursor: pointer; }
.pay-tab.is-on { background: #fff; color: var(--text-1); box-shadow: 0 1px 3px rgba(16,24,40,.1); }

.pay-qr-wrap { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 186px; min-height: 186px; }
.pay-qr { display: grid; place-items: center; width: 178px; height: 178px; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.pay-qr svg { display: block; width: 100%; height: 100%; }
.pay-qr-ph { font-size: 11.5px; line-height: 1.5; text-align: center; color: var(--text-3); }
.pay-scan { margin: 0 0 8px; font-size: 12px; line-height: 1.6; color: var(--text-2); }
.pay-scan b { color: var(--text-1); }

.pay-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px dashed var(--line); font-size: 11px; color: var(--text-3); }
.pay-meta code { font-family: var(--mono); font-size: 11px; color: var(--text-2); }
.pay-cd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-cd.is-warn { color: var(--orange-d); font-weight: 650; }
.pay-side .auth-msg { margin-top: 8px; }

.pay-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 11px; }
.pay-acts .btn { justify-content: center; }
.pay-acts .linkbtn { font-size: 11px; }
.pay-foot { margin: 9px 0 0; font-size: 10.5px; line-height: 1.55; color: var(--text-3); }

@keyframes payPulse { 0%, 100% { opacity: 1 } 50% { opacity: .45 } }
.pay-qr.is-loading { animation: payPulse 1.4s ease-in-out infinite; }
@media (max-width: 640px) {
  .pay-body { flex-direction: column; align-items: stretch; }
  .pay-qr-wrap { width: 100%; }
  .pay-qr { width: 178px; height: 178px; margin: 0 auto; }
}

/* 后台：支付配置里的分隔线与多行密钥输入 */
.panel-sep { margin: 18px 0; border: 0; border-top: 1px dashed var(--line); }
textarea.inp { height: auto; min-height: 78px; padding: 10px 12px; line-height: 1.55; font-family: var(--mono); font-size: 11.5px; resize: vertical; }
.ord-ch { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
.ord-ch i { width: 6px; height: 6px; border-radius: 50%; background: #2e9e4f; }
.ord-ch.is-alipay i { background: #1677ff; }
.ord-no { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }
.ord-amt { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--text-1); }
.ord-badge { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 650; }
.ord-badge.pending { background: #fff4e5; color: #a35c00; }
.ord-badge.paid { background: #e8f6ec; color: #1c7a35; }
.ord-badge.closed { background: var(--tint); color: var(--text-3); }

/* ==========================================================================
   视频分发页（一期：本机素材 + 半自动交接）
   平台墙参考主流矩阵产品，但不把二期平台伪装成可用。
   ========================================================================== */
/* 顶部内容类型：整行大卡片切换，默认是文章分发，贴图笔记一眼可见 */
.console-type-hint { font-size: 12px; font-weight: 500; color: var(--text-3); }
.console-type-bar { padding: 0 0 12px; }
.type-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; padding: 0; background: transparent; border: 0; border-radius: 0; }
.type-tab { position: relative; display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 11px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); color: var(--text-1); text-decoration: none; box-shadow: 0 1px 2px rgba(17,18,20,.04); transition: border-color .16s, box-shadow .16s, transform .16s; }
.type-tab:hover { border-color: var(--orange); transform: translateY(-1px); box-shadow: var(--shadow); }
.type-tab .tt-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: var(--tint); color: var(--text-2); font-size: 16px; font-weight: 800; }
.type-tab .tt-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.type-tab .tt-text b { font-size: 14.5px; font-weight: 750; line-height: 1.2; }
.type-tab .tt-text small { font-size: 11.5px; font-weight: 500; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.type-tab .tt-flag { margin-left: auto; flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; background: var(--tint); color: var(--text-2); font-size: 11px; font-weight: 700; }
.type-tab .tt-flag::after { content: '点此切换'; }
.type-tab.on { border-color: var(--orange); background: linear-gradient(135deg, var(--orange), var(--orange-d)); color: #fff; box-shadow: 0 6px 18px rgba(242,101,34,.24); }
.type-tab.on .tt-icon { background: rgba(255,255,255,.18); color: #fff; }
.type-tab.on .tt-text small { color: rgba(255,255,255,.84); }
.type-tab.on .tt-flag { background: rgba(255,255,255,.2); color: #fff; }
.type-tab.on .tt-flag::after { content: '当前使用'; }

/* 后台独立改密区：与前台用户密码隔离 */
.admin-pw-box { margin: 0 0 18px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--tint); }
.apw-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; }
.apw-foot { display: flex; align-items: center; gap: 10px; margin-top: -4px; }

.v-hero { padding: 26px 0 22px; background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); border-bottom: 1px solid var(--line); }
.v-hero h1 { margin: 0; font-size: 25px; line-height: 1.35; text-align: center; letter-spacing: -.02em; }
.v-hero h1 b { color: var(--orange-d); }
.v-hero > .wrap > p { margin: 8px auto 14px; text-align: center; max-width: 760px; font-size: 12.5px; line-height: 1.6; color: var(--text-2); }
.v-hero > .wrap > p a { color: var(--orange-d); font-weight: 700; text-decoration: underline; }
.v-cats { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.v-cat { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text-2); font-size: 11.5px; font-weight: 650; cursor: pointer; }
.v-cat:hover { border-color: var(--orange-b); color: var(--text-1); }
.v-cat.on { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(242,101,34,.22); }
.v-cat.is-soon { color: var(--text-3); background: transparent; }
.v-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; max-width: 1120px; margin: 0 auto; }
.v-plat { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 84px; padding: 9px 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .16s, box-shadow .16s, transform .16s; }
.v-plat:hover { border-color: var(--orange-b); transform: translateY(-2px); box-shadow: var(--shadow); }
.v-plat.on { border-color: var(--orange); background: var(--orange-l); box-shadow: 0 0 0 2px rgba(242,101,34,.12); }
.v-plat.is-soon { cursor: help; opacity: .92; background: transparent; border-style: dashed; }
.v-plat.is-soon:hover { opacity: 1; background: #fff; border-color: var(--orange-b); transform: translateY(-1px); box-shadow: var(--shadow); }
.v-plat-logo { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--tint); overflow: hidden; }
.v-plat-logo img { width: 24px; height: 24px; object-fit: contain; }
.v-plat.is-soon .v-plat-logo { background: #f2f3f5; }
.v-plat.is-soon .v-plat-logo img { filter: grayscale(1); opacity: .85; }
.v-plat.is-soon:hover .v-plat-logo { background: var(--tint); }
.v-plat.is-soon:hover .v-plat-logo img { filter: none; opacity: 1; }
.v-plat.is-soon .v-plat-name { color: var(--text-2); }
.v-plat.is-soon:hover .v-plat-name { color: var(--text-1); }
.v-plat-name { font-size: 11px; font-weight: 700; color: var(--text-1); }
.v-plat-state { font-size: 9.5px; color: var(--text-3); }
.v-plat-state.ok { color: var(--green); }
.v-plat-state.no { color: var(--amber); }
.v-plat-check { position: absolute; right: 5px; top: 5px; width: 14px; height: 14px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; color: transparent; font-size: 10px; line-height: 12px; text-align: center; }
.v-plat.on .v-plat-check { background: var(--orange); border-color: var(--orange); color: #fff; }
.v-plat-soon { position: absolute; top: 4px; right: 5px; font-size: 9px; color: var(--text-3); }
.v-grid-sep { grid-column: 1 / -1; margin: 4px 0 -2px; text-align: center; font-size: 11px; font-weight: 650; color: var(--text-3); }
.v-grid-sep::before, .v-grid-sep::after { content: ''; display: inline-block; width: 46px; margin: 0 10px; vertical-align: middle; border-top: 1px dashed var(--line-2); }
.v-hero-foot { margin: 12px 0 0; text-align: center; font-size: 11.5px; color: var(--text-2); }
.v-hero-foot #vSelCount { font-weight: 700; color: var(--orange-d); }
.v-hero-foot .linkbtn { font-size: 12px; }

.v-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 16px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--tint); text-align: center; cursor: pointer; }
.v-drop:hover, .v-drop.is-over { border-color: var(--orange); background: var(--orange-l); }
.v-drop-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--orange-d); }
.v-drop .ico { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v-drop b { font-size: 13px; }
.v-drop > span:not(.v-drop-ico) { font-size: 11.5px; color: var(--text-3); }
.v-file { margin-top: 14px; }
.v-file video { display: block; width: 100%; max-height: 230px; border-radius: 10px; background: #111; object-fit: contain; }
.v-file-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: var(--text-3); }
.v-file-meta b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-1); }
.v-file-meta .linkbtn { margin-left: auto; }
.v-cover { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.v-cover-hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.v-cover-hd b { font-size: 12.5px; }
.v-cover-row { display: flex; align-items: flex-start; gap: 12px; }
.v-cover-thumb { flex: 0 0 auto; display: grid; place-items: center; width: 76px; height: 76px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--tint); color: var(--text-3); font-size: 24px; overflow: hidden; cursor: pointer; }
.v-cover-thumb img { width: 100%; height: 100%; object-fit: cover; }
.v-cover-side { min-width: 0; }
.v-cover-side .btn { margin-bottom: 6px; }
.v-cover-side .help { margin: 0; }
.v-note { margin-top: 18px; padding: 12px 13px; border-radius: 9px; background: var(--tint); }
.v-note b { font-size: 12px; }
.v-note p { margin: 5px 0 0; font-size: 11.5px; line-height: 1.65; color: var(--text-2); }

.v-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.v-actions .spacer { flex: 1; }

.v-task { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px dashed var(--line); }
.v-task:first-child { border-top: 0; padding-top: 2px; }
.v-task-logo { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px; background: var(--tint); display: grid; place-items: center; overflow: hidden; }
.v-task-logo img { width: 25px; height: 25px; object-fit: contain; }
.v-task-main { flex: 1; min-width: 0; }
.v-task-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v-task-hd b { font-size: 13px; }
.v-task-hd .tag { font-size: 10.5px; }
.v-task-copy { margin: 6px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--text-2); word-break: break-word; }
.v-task-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.v-task-acts .btn { padding: 5px 10px; font-size: 11.5px; }
.v-fill-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); font-size: 12px; color: var(--text-2); }
.v-fill-bar[hidden] { display: none; }
.v-fill-bar b { color: var(--text-1); }
.v-fill-bar .fill-note { flex: 1 1 260px; }
.v-fill-bar .btn { padding: 4px 10px; font-size: 11.5px; }
.v-task-state { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: #f2f3f5; color: var(--text-3); white-space: nowrap; }
.v-task-state.doing { background: var(--amber-l); color: var(--amber); }
.v-task-state.done { background: var(--green-l); color: var(--green); }
.v-task-state.fail { background: var(--red-l); color: var(--red); }
.v-task-note { margin: 5px 0 0; font-size: 11px; line-height: 1.55; color: var(--text-2); word-break: break-word; }
.v-task-diag { margin: 4px 0 0; padding: 6px 8px; font-size: 10.5px; line-height: 1.6; color: var(--text-2); background: var(--tint); border-radius: 6px; word-break: break-word; }
.modal-fill { width: min(540px, 100%); }
.fill-mode { display: grid; gap: 8px; margin: 0 0 14px; }
.fill-mode-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.fill-mode-opt:has(input:checked) { border-color: var(--orange); background: var(--orange-l, #fff7f2); }
.fill-mode-opt input { margin: 3px 0 0; accent-color: var(--orange); }
.fill-mode-opt span { display: flex; flex-direction: column; gap: 3px; }
.fill-mode-opt b { font-size: 13px; color: var(--text-1); }
.fill-mode-opt small { font-size: 11.5px; line-height: 1.5; color: var(--text-2); }
.fill-list { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 4px; }
.fill-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-top: 1px dashed var(--line); font-size: 12px; }
.fill-item:first-child { border-top: 0; }
.fill-item b { flex: 0 0 76px; color: var(--text-1); }
.fill-item span { color: var(--text-2); line-height: 1.5; word-break: break-word; }
.v-hist { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 12px; }
.v-hist:first-child { border-top: 0; }
.v-hist b { color: var(--text-1); }
.v-hist span { color: var(--text-3); }
.v-hist .linkbtn { margin-left: auto; }

/* 首页 · 最近更新横向滚动条 */
.clstrip-bar { display: flex; align-items: stretch; gap: 10px; }
.clstrip-nav { flex: 0 0 34px; border: 1px solid var(--line); background: var(--paper); color: var(--text-2); border-radius: 10px; font-size: 22px; line-height: 1; cursor: pointer; transition: border-color .15s, color .15s; }
.clstrip-nav:hover { border-color: var(--orange); color: var(--orange); }
.clstrip-viewport { flex: 1; min-width: 0; overflow: hidden; padding: 2px 0 8px; }
.clstrip-track { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding-bottom: 4px; }
.clstrip-track::-webkit-scrollbar { display: none; }
.clstrip-card { flex: 0 0 258px; text-align: left; display: flex; flex-direction: column; gap: 7px; padding: 16px 17px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; font: inherit; }
.clstrip-card:hover { border-color: var(--orange-b); box-shadow: var(--shadow); transform: translateY(-2px); }
.clstrip-card.active { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange-l); }
.clstrip-card.is-current { border-top: 3px solid var(--orange); padding-top: 14px; }
.clstrip-top { display: flex; align-items: center; gap: 8px; }
.clstrip-top b { font-size: 15px; color: var(--text-1); font-family: var(--mono); }
.clstrip-tag { font-size: 10px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--orange-l); color: var(--orange-d); border: 1px solid var(--orange-b); white-space: nowrap; }
.clstrip-date { font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.clstrip-brief { font-size: 12.5px; color: var(--text-2); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.clstrip-more { margin-top: auto; font-size: 11px; color: var(--orange); font-weight: 600; }
.clstrip-empty { font-size: 13px; color: var(--text-3); padding: 20px 0; }
.clstrip-detail { margin-top: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.clstrip-detail-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.clstrip-detail-hd b { font-family: var(--mono); font-size: 15px; color: var(--text-1); }
.clstrip-detail-hd span { font-size: 12px; color: var(--text-3); }
.clstrip-close { margin-left: auto; border: 0; background: transparent; color: var(--text-3); font-size: 20px; line-height: 1; cursor: pointer; }
.clstrip-close:hover { color: var(--text-1); }
.clstrip-detail ul { margin: 0; padding-left: 20px; }
.clstrip-detail li { font-size: 13px; color: var(--text-2); line-height: 1.85; }
.clstrip-foot { margin-top: 14px; text-align: right; }
.clstrip-foot a { font-size: 13px; color: var(--orange); font-weight: 650; text-decoration: none; }
.clstrip-foot a:hover { text-decoration: underline; }

@media (max-width: 1040px) {
  .v-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .v-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .console-type-hint { display: none; }
}
@media (max-width: 560px) {
  .v-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .v-hero h1 { font-size: 22px; }
  .type-tabs { grid-template-columns: 1fr; gap: 8px; }
  .type-tab { min-height: 58px; padding: 9px 12px; }
}
@media (max-width: 400px) {
  .v-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v-plat-name { font-size: 10px; }
}

/* 配置项就地告警：值存错了要马上看得见，而不是等到用户扫码失败 */
.cfg-warn {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #ce3f3f;
}

/* ==================== 操作台：100% 自适应 + 连接状态置顶（2026-12-06） ====================
   操作台是工作台不是落地页：宽屏把编辑区铺满，窄屏保留安全边距。
   只作用于 body.console-page，不影响首页/教程/后台的既有版心。 */
.console-page .wrap { width: calc(100% - 48px); max-width: none; }
.console-page .console-grid { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr); gap: 22px; }
@media (max-width: 980px) {
  .console-page .console-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .console-page .wrap { width: calc(100% - 28px); }
}

/* 右上角只回答一个问题：我的组件连没连上 */
.console-page .console-status { position: relative; gap: 9px; }
.dev-status {
  display: inline-flex; align-items: center; gap: 11px; min-width: 214px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; color: var(--text-1); text-align: left;
  transition: border-color .18s, box-shadow .18s;
}
.dev-status:hover { border-color: var(--orange-b); box-shadow: 0 4px 14px rgba(17,18,20,.06); }
.dev-status-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--amber); box-shadow: 0 0 0 4px var(--amber-l); }
.dev-status.is-ok .dev-status-dot { background: var(--green); box-shadow: 0 0 0 4px var(--green-l); }
.dev-status.is-err .dev-status-dot { background: var(--red); box-shadow: 0 0 0 4px var(--red-l); }
.dev-status-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.dev-status-txt b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-status-txt small { font-size: 11px; color: var(--text-3); margin-top: 3px; white-space: nowrap; }
.dev-status-chev { color: var(--text-3); flex: none; transition: transform .18s; }
.dev-status[aria-expanded="true"] .dev-status-chev { transform: rotate(180deg); }
.status-pop {
  position: absolute; top: calc(100% + 9px); right: 0; z-index: 70;
  width: 310px; padding: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.status-pop-hd { font-size: 12px; font-weight: 700; color: var(--text-3); margin-bottom: 10px; }
.status-pop-row { margin-bottom: 7px; }
.status-pop-code { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); word-break: break-all; }
.status-pop-tip { margin: 9px 0 0; padding-top: 9px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.6; color: var(--text-3); }
@media (max-width: 680px) {
  .console-page .console-status { width: 100%; }
  .dev-status { flex: 1; min-width: 0; }
  .status-pop { left: 0; right: auto; width: 100%; }
}

/* 公告入口与未读红点 */
.ann-entry { position: relative; white-space: nowrap; }
.announce-dot {
  position: absolute; top: 3px; right: 3px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px #fff;
}
.ann-mask {
  position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(17,18,20,.48); backdrop-filter: blur(3px);
}
.ann-card {
  width: min(620px, 100%); max-height: min(78vh, 700px); display: flex; flex-direction: column;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.ann-hd { display: flex; align-items: flex-start; gap: 14px; padding: 22px 24px 14px; }
.ann-hd h3 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.ann-hd p { margin: 5px 0 0; font-size: 12.5px; color: var(--text-3); }
.ann-x { margin-left: auto; border: 0; background: var(--tint); color: var(--text-2); width: 28px; height: 28px; border-radius: 8px; font-size: 19px; line-height: 1; }
.ann-x:hover { background: var(--orange-l); color: var(--orange-d); }
.ann-tabs { display: inline-flex; gap: 3px; margin: 0 24px 12px; padding: 3px; background: var(--tint); border-radius: 9px; align-self: flex-start; }
.ann-tabs button { border: 0; background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 650; padding: 6px 14px; border-radius: 7px; }
.ann-tabs button.on { background: #fff; color: var(--text-1); box-shadow: 0 1px 4px rgba(17,18,20,.08); }
.ann-list { flex: 1; overflow-y: auto; padding: 0 24px 8px; }
.ann-item { padding: 15px 0; border-top: 1px solid var(--line); }
.ann-item:first-child { border-top: 0; }
.ann-item-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ann-item-hd b { font-size: 14px; font-weight: 700; }
.ann-tag { font-size: 10.5px; font-weight: 650; padding: 2px 7px; border-radius: 999px; background: var(--orange-l); color: var(--orange-d); }
.ann-time { margin-left: auto; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ann-item-body { margin: 7px 0 0; font-size: 13px; line-height: 1.75; color: var(--text-2); white-space: pre-wrap; }
.ann-empty { padding: 34px 0; text-align: center; font-size: 13px; color: var(--text-3); }
.ann-ft { padding: 13px 24px 18px; border-top: 1px solid var(--line); text-align: right; }
.ann-ft a { font-size: 12.5px; color: var(--orange-d); font-weight: 650; }
@media (max-width: 560px) {
  .ann-mask { padding: 10px; }
  .ann-hd, .ann-list { padding-left: 16px; padding-right: 16px; }
  .ann-tabs { margin-left: 16px; }
  .ann-ft { padding-left: 16px; padding-right: 16px; }
}

/* ---------- 后台公告管理（2026-12-06） ---------- */
.ann-admin-layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .ann-admin-layout { grid-template-columns: 1fr; } }
.ann-fl { display: block; font-size: 12px; font-weight: 650; color: var(--text-2); margin-bottom: 12px; }
.ann-fl .inp, .ann-fl .sel { display: block; width: 100%; margin-top: 5px; }
.ann-fl textarea.inp { resize: vertical; min-height: 90px; line-height: 1.6; }
.ann-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ann-checks { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--text-2); margin: 2px 0 8px; }
.ann-checks label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.ann-form-tip { margin: 0 0 12px; font-size: 11.5px; line-height: 1.6; color: var(--text-3); }
.ann-form-acts { display: flex; gap: 8px; }
.ann-admin-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.ann-admin-row:first-child { border-top: 0; padding-top: 0; }
.ann-admin-main { min-width: 0; flex: 1; }
.ann-admin-main b { display: block; font-size: 13px; color: var(--text-1); line-height: 1.5; }
.ann-admin-main p { margin: 4px 0 0; font-size: 12px; color: var(--text-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ann-admin-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.ann-admin-meta span { font-size: 10.5px; color: var(--text-3); background: var(--tint); border-radius: 999px; padding: 2px 8px; }
.ann-admin-meta .on { color: var(--green); background: var(--green-l); }
.ann-admin-meta .off { color: var(--red); background: var(--red-l); }
.ann-admin-acts { display: flex; flex-wrap: wrap; gap: 6px; flex: none; }
