:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #e8f1f8;
  --ink: #16161d;
  --muted: #5a5a63;
  --line: #e6e6ea;
  --line-strong: #d8d8de;
  --teal: #103a66;
  --teal-dark: #0b2c4f;
  --blue: #103a66;
  --amber: #b08d3e;
  --red: #b03a2e;
  --green: #0f6b3f;
  --gold: #b08d3e;
  --nav: #0d2440;
  --shadow: none;
  --radius: 4px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --font-number: "DIN Alternate", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-width: 320px; height: 100%; background: var(--bg); }
body {
  height: 100%; min-height: 100vh; margin: 0; overflow: hidden;
  color: var(--ink); font-family: var(--font-sans); font-size: 14px; font-weight: 400;
  line-height: 1.6; background:
    radial-gradient(900px 500px at 15% -10%, rgba(176,141,62,.07), transparent 60%),
    linear-gradient(180deg, var(--bg), #efeade);
}
button { font-family: inherit; }
textarea, input, select { font-family: inherit; font-size: 14px; color: var(--ink); }
textarea:focus, input:focus, select:focus { outline: 2px solid rgba(68,99,90,.35); outline-offset: 1px; }

.eyebrow { font-size: 11px; letter-spacing: .22em; color: var(--muted); margin: 0 0 2px; text-transform: uppercase; }
.section-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }

/* ── 登录 ── */
.login-screen {
  position: fixed; inset: 0; display: grid; place-items: center; z-index: 50;
  background: radial-gradient(700px 460px at 50% 30%, #fdfbf4, var(--bg) 75%);
}
.login-card {
  border-top: 3px solid var(--gold); border-radius: var(--radius);
  width: min(400px, calc(100vw - 40px)); background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 38px 34px 30px; box-shadow: var(--shadow); text-align: center;
}
.login-mark {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 14px; color: #fbfaf6;
  background: var(--teal); display: flex; align-items: center; justify-content: center;
}
.login-mark i { width: 26px; height: 26px; }
.login-card h1 { font-size: 22px; letter-spacing: .04em; margin: 0; }
.login-field { display: block; text-align: left; margin-top: 18px; }
.login-field span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.login-field input {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px;
  background: #fff;
}
.login-submit { margin-top: 24px; width: 100%; height: 48px; }
.login-note { font-size: 12px; color: var(--muted); margin: 16px 0 0; }

/* ── 顶栏 ── */
.app-shell { display: flex; flex-direction: column; height: 100vh; }
.topbar {
  display: flex; align-items: center; gap: 22px; padding: 0 22px; height: 62px; flex-shrink: 0;
  background: rgba(251,250,246,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; color: #fbfaf6; background: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.brand-mark i { width: 20px; height: 20px; }
.brand h1 {
  font-family: var(--serif); font-size: 16px; margin: 0; letter-spacing: .03em; }
.brand p { font-size: 11.5px; color: var(--muted); margin: 1px 0 0; }
.main-nav { display: flex; gap: 6px; margin-left: 8px; }
.nav-btn {
  display: flex; align-items: center; gap: 7px; border: 1px solid transparent; background: none;
  padding: 8px 14px; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--muted);
}
.nav-btn i { width: 16px; height: 16px; }
.nav-btn:hover { background: var(--surface-soft); color: var(--ink); }
.nav-btn.on { background: var(--teal); color: #fbfaf6; }
.topbar-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 38px; }
.search-box i { width: 15px; height: 15px; color: var(--muted); }
.search-box input { border: none; background: none; width: 200px; }
.search-box input:focus { outline: none; }
.operator-chip {
  display: flex; align-items: center; gap: 8px; background: var(--surface-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px 4px 14px; height: 38px;
}
.operator-chip i { width: 15px; height: 15px; color: var(--teal); }
.icon-button {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: none;
  cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center;
}
.icon-button:hover { background: var(--surface-soft); color: var(--ink); }
.icon-button i { width: 16px; height: 16px; }
.small-icon-button { width: 28px; height: 28px; }

/* ── 工作区 ── */
.workspace { flex: 1; overflow: auto; padding: 18px 22px 30px; }
.view { max-width: 1500px; margin: 0 auto; }

/* ── 流程步骤条 ── */
.flow-steps {
  display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 20px; margin-bottom: 16px;
}
.flow-step { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13.5px; }
.flow-num {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--muted);
}
.flow-step.on { color: var(--ink); font-weight: 600; }
.flow-step.on .flow-num { background: var(--teal); border-color: var(--teal); color: #fbfaf6; }
.flow-step.done .flow-num { background: var(--green); border-color: var(--green); color: #fbfaf6; }
.flow-arrow { color: var(--line-strong); display: flex; }
.flow-arrow i { width: 16px; height: 16px; }

/* ── 三栏工作台 ── */
.workbench-grid { display: grid; grid-template-columns: 260px 1fr 360px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .workbench-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
}
.panel-heading {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.panel-heading.compact { padding: 12px 18px; }
.panel-heading h2 { font-size: 15px; margin: 0; }
.panel-heading p { margin: 0; }

/* 左：工单队列 */
.queue-panel { display: flex; flex-direction: column; max-height: calc(100vh - 190px); }
/* 收起/展开工单列表 */
.queue-collapsed .queue-panel { display: none; }
.queue-collapsed .workbench-grid { grid-template-columns: 1fr 360px; }
.queue-expanded .queue-panel { display: flex; }
.queue-actions { display: flex; align-items: center; gap: 8px; }
.count-pill { background: var(--teal); color: #fbfaf6; border-radius: 999px; font-size: 12px; padding: 1px 10px; }
.queue-toggle-button { border: none; background: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 4px; font-size: 12px; }
.queue-toggle-button i { width: 14px; height: 14px; }
.ticket-list { overflow: auto; flex: 1; padding: 10px; }
.ticket-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; margin-bottom: 8px;
  cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.ticket-card:hover { border-color: var(--line-strong); }
.ticket-card.active { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(68,99,90,.18); }
.ticket-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ticket-title-row strong { font-size: 13px; }
.ticket-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; font-size: 11.5px; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.tag {
  font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); background: var(--surface-soft);
}
.tag.high { border-color: rgba(162,92,69,.5); color: var(--red); background: #f7ede7; }
.tag.normal { border-color: rgba(156,138,94,.5); color: var(--amber); background: #f6f1e4; }
.tag.ok { border-color: rgba(100,120,95,.5); color: var(--green); background: #edf1ea; }
.empty-state { text-align: center; color: var(--muted); font-size: 13px; padding: 34px 10px; }

/* 中：录入 */
.center-col { display: flex; flex-direction: column; gap: 14px; }
.intake-panel .panel-heading select {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff; color: var(--ink);
}
.intake-layout { display: grid; grid-template-columns: 190px 1fr; gap: 14px; padding: 14px 18px; }
@media (max-width: 640px) { .intake-layout { grid-template-columns: 1fr; } }
.column-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.column-title span { font-size: 13px; font-weight: 600; }
.column-title small { font-size: 11px; color: var(--muted); }
.upload-zone { display: block; cursor: pointer; }
.upload-zone input { display: none; }
.screenshot-preview {
  border: 1.5px dashed var(--line-strong); border-radius: 12px; min-height: 128px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--muted); background: #fff; text-align: center; padding: 12px;
}
.screenshot-preview.has-image { border-style: solid; padding: 0; }
.screenshot-preview.has-image img { width: 100%; border-radius: 10px; display: block; }
.screenshot-preview i { width: 26px; height: 26px; color: var(--line-strong); }
.screenshot-preview strong { font-size: 13px; color: var(--ink); }
.screenshot-preview span { font-size: 11px; }
.preview-hint { font-size: 11px; color: var(--muted); text-align: center; margin-top: 6px; }
.screenshot-badge { position: relative; }
.full-width-button { width: 100%; margin-top: 8px; }
.secondary-button {
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 9px;
  padding: 8px 14px; cursor: pointer; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px;
}
.secondary-button:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.secondary-button i { width: 15px; height: 15px; }
.primary-button {
  border: none; background: var(--teal); color: #fbfaf6; border-radius: 9px; padding: 9px 16px;
  cursor: pointer; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px;
}
.primary-button:hover { background: var(--teal-dark); }
.primary-button:disabled { opacity: .55; cursor: not-allowed; }
.primary-button i { width: 15px; height: 15px; }
.source-column textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; resize: vertical;
  background: #fff; min-height: 96px;
}
.intake-meta-row { margin-top: 8px; }
.recognized-field { display: block; }
.recognized-field span { font-size: 12px; color: var(--muted); margin-right: 8px; }
.recognized-field input { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; width: 220px; background: #fff; }
.intake-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.intake-btns { display: flex; align-items: center; gap: 8px; }
.auto-status { font-size: 12px; color: var(--green); }

/* 详情（动态渲染） */
.ticket-detail-panel { padding: 16px 18px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 10px 0 14px; }
.detail-field { font-size: 13px; }
.detail-field span { color: var(--muted); margin-right: 8px; }
.detail-content { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 12px; white-space: pre-wrap; }
.sentiment-track { height: 6px; background: var(--surface-soft); border-radius: 999px; overflow: hidden; margin: 6px 0 14px; }
.sentiment-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--amber), var(--green)); border-radius: 999px; }
.detail-drawer { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 6px; }
.detail-screenshot-button { margin-top: 8px; }
.text-button { border: none; background: none; color: var(--teal); cursor: pointer; font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; }
.text-button:hover { text-decoration: underline; }
.text-button i { width: 14px; height: 14px; }
.diagnosis-row { font-size: 13px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.diagnosis-row:last-child { border-bottom: none; }
.diagnosis-row strong { color: var(--teal); }

/* 右：答复 */
.assistant-panel { max-height: calc(100vh - 190px); overflow: auto; }
.reply-box { padding: 14px 16px; }
.reply-toolbar { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.reply-ticket-meta { margin-left: auto; }
.reply-box textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; resize: vertical;
  background: #fff; min-height: 170px; line-height: 1.7;
}
.reply-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ok-button { border-color: rgba(100,120,95,.5); color: var(--green); }
.reference-drawer { border-top: 1px solid var(--line); padding: 12px 16px; }
.reference-drawer summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink); }
.reference-drawer[open] summary { margin-bottom: 8px; }
.reference-box, .reference-grid, .reply-history-list { font-size: 13px; }
.reference-heading { font-size: 12.5px; font-weight: 600; color: var(--teal); margin: 10px 0 6px; }
.reference-column { margin-bottom: 6px; }
.knowledge-list { display: flex; flex-direction: column; gap: 8px; }
.knowledge-item { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font-size: 12.5px; }
.knowledge-item h3 { font-size: 13px; margin: 0 0 3px; }
.reply-history-list { display: flex; flex-direction: column; gap: 8px; }
.reply-history-item { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font-size: 12.5px; }
.reply-history-item span { color: var(--muted); font-size: 11.5px; }
.reply-history-item p { margin: 4px 0 0; }
.history-heading { font-size: 12.5px; font-weight: 600; color: var(--teal); margin: 8px 0 6px; }
.history-empty { color: var(--muted); font-size: 12.5px; padding: 8px 0; }

/* ── 知识库视图 ── */
.kb-panel { padding-bottom: 24px; }
.kb-heading { margin-bottom: 6px; }
.learn-badge { font-size: 12px; color: var(--teal); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.kb-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; padding: 16px 18px; }
@media (max-width: 1000px) { .kb-grid { grid-template-columns: 1fr; } }
.kb-col { min-width: 0; }
.kb-col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.kb-col-head h3 { display: flex; align-items: center; gap: 7px; font-size: 14px; margin: 0; }
.kb-col-head h3 i { width: 15px; height: 15px; color: var(--teal); }
.mini-upload { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--teal); cursor: pointer; }
.mini-upload input { display: none; }
.mini-upload i { width: 14px; height: 14px; }
.kb-col textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; resize: vertical;
  background: #fff; font-size: 13px;
}
.policy-catalog-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.policy-catalog-title {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12.5px;
  display: flex; justify-content: space-between; gap: 8px;
}
.policy-catalog-title small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.policy-catalog-empty { color: var(--muted); font-size: 12.5px; padding: 6px 0; }
.learning-control { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.switch-line { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.compact-button { padding: 5px 10px; font-size: 12px; }
.source-list { font-size: 12px; color: var(--muted); margin-top: 8px; }
.learning-stats { font-size: 12px; color: var(--muted); margin-top: 6px; }
.kb-faqs, .kb-channels { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.kb-empty { color: var(--muted); font-size: 12.5px; }
.kb-faqs .faq-item { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font-size: 12.5px; }
.kb-faqs .faq-item b { display: block; margin-bottom: 3px; color: var(--ink); }
.kb-channels .channel-item { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; font-size: 12.5px; }
.kb-channels .channel-item b { color: var(--teal); }

/* ── 图片模态 ── */
.image-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.image-modal-backdrop { position: absolute; inset: 0; background: rgba(40,38,32,.55); }
.image-modal-panel {
  position: relative; background: var(--surface); border-radius: 14px; max-width: min(860px, calc(100vw - 60px));
  max-height: calc(100vh - 80px); overflow: auto; box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.image-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.image-modal-header h2 { font-size: 15px; margin: 0; }
.image-modal-body { padding: 16px; }
.image-modal-body img { display: block; max-width: 100%; border-radius: 8px; }

/* ── Toast ── */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
  background: var(--ink); color: #f6f3ea; padding: 10px 20px; border-radius: 999px;
  font-size: 13.5px; box-shadow: 0 10px 30px rgba(0,0,0,.2); z-index: 200; opacity: 0;
  pointer-events: none; transition: opacity .2s; max-width: min(560px, calc(100vw - 40px));
}
.toast.show { opacity: 1; }

/* ── 滚动条 ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

/* === NJJD SKIN BEGIN (2026-09-18) =========================================
   NJJD 设计基线皮肤 —— 追加式覆盖，只改外观（颜色 / 字号 / 圆角 / 边框 / 阴影），
   不改布局结构、不改文案、不动任何 JS 逻辑与接口。
   本块位于 styles.css 末尾；同优先级规则按“后出现者生效”覆盖上文。
   基线来源（13 家标杆实测）：唯一强调色 = gov.uk #1d70b8；圆角克制（卡片 10 / 控件 6）；
   政务站不用投影、靠 1px 发丝线分隔；底色只有纯白 + 极浅灰；正文 16px。
   回滚：整段删除本块即可（或 cp 回 .bak-<时间戳>-skin）。
   ========================================================================== */

/* ── 1) 令牌：重定义旧变量（影响面最大的杠杆） ── */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #f4f5f7;
  --ink: #16161d;
  --muted: #4b4b52;
  --line: #e5e5ea;
  --line-strong: #c9c9d1;
  --teal: #1d70b8;          /* 原深绿主色 → 唯一强调色 */
  --teal-dark: #155a96;
  --blue: #1d70b8;
  --amber: #8a6a1a;         /* 语义色降饱和，不与强调色抢眼 */
  --red: #a4322a;
  --green: #1f6b45;
  --shadow: none;           /* 政务/大厂基线基本不用投影 */
  --radius: 10px;
  /* NJJD 基线新增令牌 */
  --ink2: #4b4b52;
  --ink3: #767680;
  --hair: #e5e5ea;
  --tile: #f4f5f7;
  --blue-h: #155a96;
  --nav: #0b1220;
  --nav-fg: #ffffff;
  --nav-fg2: rgba(255, 255, 255, .72);
  --r: 10px;
  --r-sm: 6px;
  --r-xs: 2px;
}

/* ── 2) 排版：正文 16px、字号收敛到 3–5 档、数字等宽 ── */
body {
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--bg);
}
textarea, input, select { font-size: 15px; }
button { font-size: 14px; }  /* 覆盖 UA 默认 13.3333px，避免与正文字号断层 */
::placeholder { color: var(--ink3); }
textarea:focus, input:focus, select:focus { outline: 2px solid rgba(29, 112, 184, .45); outline-offset: 1px; }

.eyebrow { font-size: 12px; letter-spacing: .12em; color: var(--ink2); }
.section-label { font-size: 13px; color: var(--ink2); }

/* ── 3) 底色去渐变、去暖色残影 ── */
html { background: var(--bg); }
.login-screen { background: var(--bg); }
.login-card {
  border-top: 3px solid var(--gold); border-radius: var(--radius); background: var(--surface); }
.topbar { background: var(--nav); backdrop-filter: none; border-bottom: 1px solid rgba(255, 255, 255, .10); }

/* ── 4) 深色顶栏（基线：政务站顶栏多为深色条） ── */
.topbar { color: var(--nav-fg); }
.topbar .brand h1 {
  font-family: var(--serif); color: var(--nav-fg); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.topbar .brand p { color: var(--nav-fg2); font-size: 12.5px; }
.brand-mark { background: var(--blue); color: #fff; border-radius: var(--r); }
.topbar .nav-btn { color: var(--nav-fg2); font-size: 15px; border-radius: var(--r-sm); }
.topbar .nav-btn:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.topbar .nav-btn.on { background: var(--blue); color: #fff; }
.topbar .search-box { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .20); border-radius: var(--r-sm); }
.topbar .search-box i { color: var(--nav-fg2); }
.topbar .search-box input { color: #fff; font-size: 15px; }
.topbar .search-box input::placeholder { color: rgba(255, 255, 255, .55); }
.topbar .operator-chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .20); color: var(--nav-fg); border-radius: var(--r-sm); }
.topbar .operator-chip i { color: #9cc6ea; }
.topbar .icon-button { color: var(--nav-fg2); border-radius: var(--r-sm); }
.topbar .icon-button:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ── 5) 登录页：去投影、收圆角、居中区块降噪 ── */
.login-card {
  border-top: 3px solid var(--gold); border-radius: var(--radius); border-radius: var(--r); box-shadow: none; border: 1px solid var(--line); }
.login-card h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.login-field span { font-size: 13px; color: var(--ink2); }
.login-field input { border-radius: var(--r-sm); }
.login-note { font-size: 13px; color: var(--ink2); }
.login-mark { border-radius: var(--r); background: var(--blue); color: #fff; }

/* ── 6) 控件圆角：卡片 10px / 按钮与输入 6px / 条形 2px（禁药丸形大圆角） ── */
.flow-steps { border-radius: 8px; }
.flow-step { font-size: 14px; color: var(--ink2); }
.flow-num { border-radius: 4px; }
.panel { border-radius: var(--r); box-shadow: none; border: 1px solid var(--line); }
.panel-heading h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.count-pill { border-radius: 4px; font-size: 12.5px; padding: 1px 8px; }
.queue-toggle-button { font-size: 13px; color: var(--ink2); }
.ticket-card { border-radius: 8px; box-shadow: none; }
.ticket-card.active { box-shadow: 0 0 0 2px rgba(29, 112, 184, .22); }
.ticket-title-row strong { font-size: 14px; }
.ticket-bottom { font-size: 12.5px; color: var(--ink2); }
.tag { border-radius: 4px; font-size: 12px; }
.tag.high { border-color: rgba(164, 50, 42, .45); background: #fdf0ee; color: var(--red); }
.tag.normal { border-color: rgba(138, 106, 26, .45); background: #fbf6e8; color: var(--amber); }
.tag.ok { border-color: rgba(31, 107, 69, .40); background: #eef7f1; color: var(--green); }
.empty-state { font-size: 14px; color: var(--ink2); }
.upload-zone { border-radius: 8px; }
.screenshot-preview.has-image img { border-radius: var(--r-sm); }
.screenshot-preview strong { font-size: 14px; }
.screenshot-preview span, .preview-hint { font-size: 12.5px; }
.column-title span { font-size: 14px; }
.column-title small { font-size: 12.5px; color: var(--ink2); }
.primary-button, .secondary-button, .ok-button { border-radius: var(--r-sm); font-size: 14px; }
.primary-button { background: var(--blue); color: #fff; }
.primary-button:hover { background: var(--blue-h); }
.secondary-button { border-color: var(--line); }
.ok-button { border-color: rgba(31, 107, 69, .40); }
.recognized-field span { font-size: 13px; color: var(--ink2); }
.recognized-field input { border-radius: var(--r-sm); }
.auto-status { font-size: 13px; color: var(--green); }
.detail-field { font-size: 14px; }
.detail-content { border-radius: 8px; font-size: 14px; }
.sentiment-track { border-radius: var(--r-xs); background: var(--surface-soft); }
.sentiment-fill { background: var(--blue); border-radius: var(--r-xs); }
.text-button { font-size: 13px; color: var(--blue); }
.diagnosis-row { font-size: 14px; }
.reply-toolbar { font-size: 13px; color: var(--ink2); }
.reference-drawer summary { font-size: 14px; }
.reference-box, .reference-grid, .reply-history-list { font-size: 14px; }
.reference-heading, .history-heading { font-size: 13px; color: var(--blue); }
.history-empty { font-size: 13px; color: var(--ink2); }
.knowledge-item, .reply-history-item { border-radius: 8px; font-size: 13px; }
.knowledge-item h3 { font-size: 14px; }
.reply-history-item span { font-size: 12.5px; color: var(--ink2); }
.learn-badge { border-radius: 4px; font-size: 12.5px; color: var(--blue); }
.kb-col-head h3 { font-size: 15px; }
.mini-upload { font-size: 13px; color: var(--blue); }
.policy-catalog-title small { font-size: 12.5px; color: var(--ink2); }
.policy-catalog-empty { font-size: 13px; color: var(--ink2); }
.switch-line { font-size: 13px; color: var(--ink2); }
.compact-button { font-size: 12.5px; }
.source-list, .learning-stats { font-size: 13px; color: var(--ink2); }
.kb-empty { font-size: 13px; color: var(--ink2); }
.kb-faqs .faq-item, .kb-channels .channel-item { border-radius: 8px; font-size: 13px; }
.kb-channels .channel-item b { color: var(--blue); }

/* ── 7) 强调色底上的文字统一纯白（清掉旧暖白 #fbfaf6 残影） ── */
.primary-button, .nav-btn.on, .count-pill, .flow-num, .brand-mark, .login-mark,
.flow-step.on .flow-num, .flow-step.done .flow-num { color: #fff; }

/* ── 8) 模态 / Toast / 滚动条（浮层允许保留一点抬升投影） ── */
.image-modal-backdrop { background: rgba(11, 18, 32, .55); }
.image-modal-panel { border-radius: var(--r); box-shadow: 0 18px 48px rgba(11, 18, 32, .28); border: 1px solid var(--line); }
.image-modal-header h2 { font-size: 16px; font-weight: 600; }
.image-modal-body img { border-radius: var(--r-sm); }
.toast { background: var(--nav); color: #fff; border-radius: var(--r-sm); font-size: 14px; box-shadow: 0 10px 30px rgba(11, 18, 32, .28); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-xs); }

/* === NJJD SKIN END ======================================================= */

/* preview-radius-fix：截图预览大圆角收到基线 10px */
#screenshotPreview,.screenshot-preview{border-radius:10px!important}
