/* ==========================================================================
   设计令牌（v2.54.0）
   --------------------------------------------------------------------------
   色调基准：与 https://nuochi.cn/ 保持一致 —— 抓取其线上样式表得到品牌三色：
       主色  深蓝 #0A2E5C（navy）   辅色  香槟金 #C9A961   点缀  中国红 #D81E06
   nuochi 的用法是「深蓝做品牌面（页眉/主视觉/页脚）、金色做 CTA 与眉题、
   红色仅作极少量点缀」。本站沿用同一色系，并在渐变、层次、留白与描边上
   做更精细的处理（金色细描边 + 柔和投影 + 更大的圆角层级）。
   ========================================================================== */
:root {
  /* ---- 品牌色（对齐 nuochi.cn）---- */
  --brand: #0a2e5c;            /* 品牌深蓝（nuochi 主色） */
  --brand-deep: #07203f;       /* 深蓝·加深（渐变暗端） */
  --brand-soft: #eef3f9;       /* 深蓝·浅底 */
  --brand-line: #d5e2ef;       /* 深蓝·浅描边 */
  --gold: #c9a961;             /* 品牌金（nuochi 辅色） */
  --gold-deep: #b8953e;        /* 品牌金·加深 */
  --gold-soft: #faf5e9;        /* 品牌金·浅底 */
  --gold-line: #eadfc2;        /* 品牌金·浅描边 */
  --brand-red: #d81e06;        /* 点缀红（nuochi 强调色，慎用） */

  /* ---- 语义令牌（保持既有变量名，避免全站回归）---- */
  --primary: var(--brand);
  --primary-light: var(--brand-soft);
  --accent: var(--gold);
  --danger: var(--brand-red);
  --success: #1f9254;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 26px rgba(10,46,92,0.09);
  --shadow-gold: 0 6px 18px rgba(184,149,62,0.28);
  --firm-color: var(--gold-deep);
}

* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text);
}

/* ==========================================================================
   版心中轴令牌（v2.62.0）
   --------------------------------------------------------------------------
   主体内容列在「侧栏右侧的剩余宽度」内居中，因此它的中轴比视口中轴右移
   侧栏宽度的一半。页眉、页脚若按视口中轴居中，就会与卡片列错开半个侧栏宽
   （实测 1600px 下相差 26px；中屏导航被夹在品牌区与时钟区之间时更达 163px）。
   这里用 --rail 记录侧栏当前占宽，页眉页脚统一让出该宽度，全站共用同一中轴。
   无侧栏的页面（子站）--rail 为 0，行为与改造前一致。
   ========================================================================== */
:root { --rail: 0px; }
body:has(.sidebar) { --rail: 52px; }                     /* 默认：侧栏收起为图标栏 */
body:has(.sidebar:not(.collapsed)) { --rail: 260px; }    /* 展开：整栏占宽 */

/* ====== 顶部主导航（v2.54.0：深蓝品牌面 + 金色细线，对齐 nuochi.cn） ====== */
.app-header {
  min-height: 64px;
  background: linear-gradient(135deg, #061c37 0%, #0a2e5c 52%, #0d3567 100%);
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 8px 24px 8px calc(24px + var(--rail));
  /* sticky 吸顶；z-index 高于内容层。v2.46.0 起改为 flex 三段布局
     （品牌 / 主导航 / 时钟），导航不再绝对定位，杜绝窄屏与时钟重叠 */
  position: sticky; top: 0; z-index: 100; color: #fff;
  /* 金色细线：nuochi 品牌金收口，替代原先的红色块感 */
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, rgba(201,169,97,0), #c9a961 22%, #e6d5a8 50%, #c9a961 78%, rgba(201,169,97,0)) 1;
  box-shadow: 0 6px 20px rgba(6,28,55,0.18);
}
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; flex: none; }
.brand .logo {
  font-size: 22px; line-height: 1; width: 40px; height: 40px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; background: rgba(255,255,255,.10);
  border: 1px solid rgba(201,169,97,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.brand-text { display: flex; flex-direction: column; }
.firm-name { font-size: 16px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.app-name { font-size: 12px; color: #e2c98d; margin-top: 2px; white-space: nowrap; letter-spacing: .6px; }

/* 主导航：flex 三段的中间段，居中且不折字；
   空间不足时整体换行（见 .app-header flex-wrap 断点），不会压缩文字 */
.top-nav {
  position: static;
  display: flex; align-items: center; justify-content: center;
  flex: 1 1 auto; min-width: 0; flex-wrap: wrap; gap: 2px;
  margin: 0 6px;
}
.top-nav a {
  color: rgba(255,255,255,.84); text-decoration: none; padding: 8px 15px;
  border-radius: 8px; font-size: 14px; font-weight: 500; transition: .16s;
  white-space: nowrap; flex: none; line-height: 1.4;
  position: relative;
}
.top-nav a:hover { background: rgba(255,255,255,.11); color: #fff; }
/* 当前栏目：金色下划线 + 淡白底，替代原先仅靠背景深浅区分 */
.top-nav a.active {
  background: rgba(255,255,255,.13); color: #fff; font-weight: 600;
}
.top-nav a.active::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, #b8953e, #e6d5a8, #b8953e);
}

/* 右侧时钟区与品牌区等宽：主导航夹在两者之间时，其盒子中心才与版心中轴重合
   （否则品牌区 205px、时钟区 127px，导航会整体右偏 39px）。v2.62.0 */
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: 0 0 205px; }

/* ==========================================================================
   页眉「全站导航」入口（v2.54.0）
   --------------------------------------------------------------------------
   用户要求把「全站导航」放到醒目位置：在所有页面页眉右侧常驻一枚金色按钮，
   与 nuochi.cn 的「法律工具」金色 CTA 形成同一视觉语言，点击直达 sitemap.html。
   ========================================================================== */
.header-sitemap-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 8px 14px; border-radius: 9px; text-decoration: none;
  font-size: 13.5px; font-weight: 700; letter-spacing: .3px; white-space: nowrap;
  color: #2b2109;
  background: linear-gradient(135deg, #e2cd97 0%, #c9a961 48%, #b8953e 100%);
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 4px 14px rgba(184,149,62,.34), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .16s, box-shadow .16s, filter .16s;
}
.header-sitemap-btn:hover {
  transform: translateY(-1px); filter: brightness(1.05);
  box-shadow: 0 7px 20px rgba(184,149,62,.46), inset 0 1px 0 rgba(255,255,255,.55);
}
.header-sitemap-btn:active { transform: translateY(0); }
.header-sitemap-btn .hsb-ico { font-size: 15px; line-height: 1; }
@media (max-width: 720px) {
  .header-sitemap-btn .hsb-txt { display: none; }
  .header-sitemap-btn { padding: 8px 11px; }
}

/* ====== 布局 ====== */
.app-body { display: flex; min-height: calc(100vh - 64px - 40px); }

.sidebar {
  width: 260px; background: var(--card-bg); border-right: 1px solid var(--border);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  position: sticky; top: 64px; height: calc(100vh - 64px - 40px); overflow-y: auto;
}
.sidebar-user { margin-bottom: 4px; }

.search-box input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  outline: none; font-size: 14px;
}
.search-box input:focus { border-color: var(--primary); }

.tool-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
/* v2.59.0：分组标题醒目化——品牌色加粗 + 图标 + 计数徽章 + caret 旋转，可点击折叠 */
.nav-group-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--primary); padding: 9px 10px;
  font-weight: 700; letter-spacing: 0.3px;
  border-radius: 8px; cursor: pointer; user-select: none;
  transition: .15s; margin-top: 6px;
}
.nav-group-title:hover { background: var(--primary-light); }
.nav-group-title .nav-group-caret {
  display: inline-block; font-size: 11px; color: var(--text-muted);
  transition: transform .18s ease; width: 12px; flex-shrink: 0;
}
.nav-group-title .nav-group-caret.closed { transform: rotate(-90deg); }
.nav-group-title .nav-group-ico { flex-shrink: 0; }
.nav-group-title .nav-group-n {
  margin-left: auto; font-size: 11px; font-weight: 600; color: var(--text-muted);
  background: var(--primary-light); border-radius: 999px; padding: 1px 8px; line-height: 1.5;
}
.nav-group-title.collapsed { color: var(--text-muted); font-weight: 600; }
.nav-group-title.collapsed .nav-group-n { background: transparent; }
/* v2.59.0：分组控制行（全部展开/收起全部） */
.nav-ctl { display: flex; gap: 6px; margin-bottom: 2px; flex-shrink: 0; }
.nav-ctl-btn {
  flex: 1; padding: 6px 0; border: 1px solid var(--border); border-radius: 8px;
  background: var(--card-bg); color: var(--text-muted); font-size: 12px; cursor: pointer; transition: .15s;
}
.nav-ctl-btn:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.tool-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  text-decoration: none; color: var(--text); font-size: 13px; transition: .15s;
}
.tool-nav a:hover { background: var(--primary-light); color: var(--primary); }
.tool-nav a.active { background: var(--primary); color: #fff; }
.tool-nav .icon { width: 20px; text-align: center; }

.sidebar-footer { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--border); }

.content { flex: 1; padding: 24px; max-width: 1100px; margin: 0 auto; width: 100%; }

.app-footer {
  height: 40px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; font-size: 12px; color: var(--text-muted);
  border-top: 1px solid var(--border); background: var(--card-bg);
}
.footer-version { opacity: .6; }

/* ====== 首页 ====== */
.hero { text-align: center; padding: 32px 20px 16px; }
.hero h2 { margin: 0 0 8px; font-size: 28px; color: var(--primary); }
.hero p { color: var(--text-muted); margin: 0; font-size: 14px; }

.quick-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin: 20px 0;
}
.quick-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; cursor: pointer; transition: .15s; text-align: center;
  box-shadow: var(--shadow);
}
.quick-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.qc-icon { font-size: 36px; margin-bottom: 8px; }
.qc-title { font-weight: 600; font-size: 16px; }
.qc-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.cat-section { margin-top: 30px; }
.cat-section h3 { color: var(--text); margin: 0 0 16px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.cat-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: .15s;
}
.cat-card:hover { border-color: var(--primary); background: var(--primary-light); }
.cat-icon { font-size: 24px; }

/* ====== 工具详情 ====== */
.tool-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.tool-header .icon { font-size: 36px; color: var(--primary); }
.tool-header h2 { margin: 0; font-size: 22px; }
.tool-header .back { font-size: 14px; color: var(--primary); cursor: pointer; }
.cat-tag { font-size: 12px; background: var(--primary-light); color: var(--primary); padding: 2px 10px; border-radius: 12px; }

.cat-block { margin-bottom: 30px; }
.cat-block h3 { color: var(--text); margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--primary-light); }

.tool-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.tool-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); cursor: pointer; transition: .15s;
  display: flex; flex-direction: column; gap: 8px;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.1); border-color: var(--primary); }
.tool-card .icon { font-size: 32px; color: var(--primary); }
.tool-card .title { font-weight: 600; font-size: 15px; }
.tool-card .desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* ====== 通用组件 ====== */
.panel {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; color: var(--text); font-weight: 500; }
.form-group label .tip { color: var(--text-muted); font-weight: 400; font-size: 12px; margin-left: 4px; }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group small { color: var(--text-muted); font-size: 12px; }

/* v2.54.0：按钮体系 —— 主操作=品牌深蓝渐变，强调/入口=品牌金渐变，次要=浅描边 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border: none; border-radius: 8px; font-size: 14px; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, filter .15s;
  background: linear-gradient(135deg, #0d3567, #0a2e5c 58%, #07203f);
  color: #fff; font-weight: 500;
  box-shadow: 0 3px 10px rgba(10,46,92,.22);
}
.btn:hover { filter: brightness(1.1); box-shadow: 0 6px 16px rgba(10,46,92,.3); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
/* 金色强调按钮（CTA / 入口，与 nuochi.cn 的「法律工具」按钮同款） */
.btn-gold {
  background: linear-gradient(135deg, #e2cd97 0%, #c9a961 48%, #b8953e 100%);
  color: #2b2109; font-weight: 700;
  box-shadow: 0 4px 14px rgba(184,149,62,.34);
}
.btn-gold:hover { filter: brightness(1.04); box-shadow: 0 7px 20px rgba(184,149,62,.46); }
.btn-secondary {
  background: #fff; color: var(--brand);
  border: 1px solid var(--brand-line); box-shadow: none;
}
.btn-secondary:hover { background: var(--brand-soft); border-color: #b9cde3; transform: translateY(-1px); }
.btn-success { background: var(--success); }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

.result-box {
  background: var(--primary-light); border-left: 4px solid var(--primary); border-radius: 8px;
  padding: 16px; margin-top: 20px;
}
.result-box h4 { margin: 0 0 10px; color: var(--primary); }
.result-line { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(0,0,0,0.08); }
.result-line:last-child { border-bottom: none; }
.result-line strong { color: var(--primary); font-size: 18px; }

/* ====== 醒目警示条（v4.0.4：律师费估算超 500 万元提示） ====== */
.la-hot-warn {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 20px; padding: 12px 14px;
  background: #fdecea; border: 1px solid #f5c6c0; border-left: 5px solid var(--china-red, #D81E06);
  border-radius: 8px; color: #8f1d13; font-size: 14px; line-height: 1.7;
}
.la-hot-warn .la-hot-ico { font-size: 18px; line-height: 1.6; flex: none; }
.la-hot-warn b { color: #b3261e; }
.la-hot-warn .la-hot-num {
  color: #fff; background: var(--china-red, #D81E06); border-radius: 4px;
  padding: 0 6px; font-size: 15px;
}
.la-tip-hot { background: #fdecea; border-radius: 6px; padding-left: 8px; padding-right: 8px; margin: 0 -8px; }
.la-tip-hot strong { color: #b3261e !important; }
@media (prefers-reduced-motion: reduce) { .la-hot-warn { transition: none; } }

/* ====== 办公应用版块（v4.0.4） ====== */
.office-hero h2 { color: var(--primary); }
/* 深蓝 hero 内的 <b> 原用中国红 #D81E06，在 #0a2e5c 上仅 2.6:1；改浅红以过 AA（≥4.5:1） */
.office-hero p b { color: #FFC9B8; }
/* hero 里的行内链接原先吃浏览器默认蓝（rgb(0,0,238)），压在深蓝渐变上几乎看不见；
   统一改为香槟金系 + 下划线，hover 转纯白。
   v4.4.7：补 .page-hero（法律分析总览深蓝卡片内的「百姓法律问答库」等链接，此前无覆盖，
   在 #0a2e5c 渐变上对比度极低、几乎不可读） */
.tools-index-hero a,
.office-hero a,
.page-hero a {
  color: #E6D5A8;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.tools-index-hero a:hover,
.office-hero a:hover,
.page-hero a:hover { color: #fff; }
.tools-index-hero a:focus-visible,
.office-hero a:focus-visible,
.page-hero a:focus-visible { outline: 2px solid #E6D5A8; outline-offset: 2px; }
.office-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--primary-light); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: 8px; padding: 10px 14px; margin-top: 14px;
  font-size: 13px; line-height: 1.7; color: var(--text);
}
.office-note > span { font-size: 16px; flex: none; }
/* 通用输出区 */
.o-out {
  white-space: pre-wrap; word-break: break-all;
  background: #f8fafc; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
  font-size: 13px; line-height: 1.7; max-height: 460px; overflow: auto;
}
.o-out mark { background: #ffe9a8; color: inherit; border-radius: 2px; padding: 0 1px; }
.o-msg { margin-top: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.7; }
.o-msg-ok { background: #eef7ee; border: 1px solid #bfe3bf; color: #1e6b34; }
.o-msg-err { background: #fdecea; border: 1px solid #f5c6c0; color: #8f1d13; }
.o-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; margin-top: 10px; }
.o-stat { background: var(--primary-light); border: 1px solid var(--border); border-radius: 8px; padding: 10px; text-align: center; }
.o-stat b { display: block; font-size: 20px; color: var(--primary); line-height: 1.3; }
.o-stat span { font-size: 12px; color: var(--text-muted); }
.o-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.o-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: #fff; }
.o-card > b { font-size: 13px; color: var(--primary); word-break: break-all; }
.o-card img { max-width: 100%; border-radius: 6px; display: block; margin: 6px 0; background: #f0f0f0; }
.o-kv { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-muted); padding: 3px 0; }
.o-kv strong { color: var(--primary); font-size: 13px; word-break: break-all; text-align: right; }
.o-kvs { margin-top: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; background: #fff; }
/* Markdown 预览 */
.o-md-prev {
  border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-top: 4px;
  background: #fff; font-size: 14px; line-height: 1.9;
}
.o-md-prev h1, .o-md-prev h2, .o-md-prev h3, .o-md-prev h4 { color: var(--primary); margin: 12px 0 6px; line-height: 1.4; }
.o-md-prev h1 { font-size: 20px; } .o-md-prev h2 { font-size: 17px; } .o-md-prev h3 { font-size: 15px; }
.o-md-prev code { background: #f2f4f8; border-radius: 4px; padding: 1px 5px; font-size: 13px; color: #b3261e; }
.o-md-prev pre { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; overflow: auto; }
.o-md-prev pre code { background: none; color: var(--text); }
.o-md-prev blockquote { border-left: 4px solid var(--primary); margin: 8px 0; padding: 4px 12px; color: var(--text-muted); background: var(--primary-light); border-radius: 0 8px 8px 0; }
.o-md-prev table { border-collapse: collapse; margin: 8px 0; }
.o-md-prev th, .o-md-prev td { border: 1px solid var(--border); padding: 6px 10px; font-size: 13px; }
.o-md-prev th { background: var(--primary-light); color: var(--primary); }
.o-md-prev img { max-width: 100%; border-radius: 6px; }
.o-md-prev hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
/* 文本比对 */
.o-diff-wrap { overflow: auto; margin-top: 10px; border: 1px solid var(--border); border-radius: 8px; }
.o-diff { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.o-diff th { position: sticky; top: 0; background: var(--primary-light); color: var(--primary); padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); z-index: 1; }
.o-diff td { padding: 5px 10px; border-bottom: 1px solid rgba(0,0,0,.05); white-space: pre-wrap; word-break: break-all; vertical-align: top; width: 50%; }
.o-diff tr.o-del td:first-child { background: #fdecea; color: #8f1d13; }
.o-diff tr.o-add td:last-child { background: #eef7ee; color: #1e6b34; }
.o-del-t { color: #b3261e; } .o-add-t { color: #1e6b34; }
/* 密码生成器 */
.o-pwd-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.o-pwd-item { display: flex; align-items: center; gap: 10px; }
.o-pwd-item code { flex: 1; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 14px; letter-spacing: 1px; word-break: break-all; }
/* 二维码 */
.o-qr-wrap { margin-top: 12px; text-align: center; }
.o-qr-wrap img { max-width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 8px; background: #fff; }
/* 哈希值 */
.o-hash-v { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
/* 颜色 */
.o-color-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.o-color-row .form-group { flex: 1 1 90px; }
.o-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.o-sw { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); cursor: pointer; transition: transform .15s; }
.o-sw:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }

/* ====== 图片处理工具（v4.2.0）：预览舞台 + 拖拽选区 ====== */
.img-stage-wrap { margin: 12px 0; overflow: auto; }
.img-stage {
  position: relative; display: inline-block; max-width: 100%;
  border: 1px solid var(--border); border-radius: 10px; background: #f4f6f9; overflow: hidden;
  line-height: 0;
}
.img-stage img { display: block; max-width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.img-sel-layer {
  position: absolute; inset: 0; cursor: crosshair; touch-action: none; z-index: 2;
}
.img-sel {
  position: absolute; border: 2px dashed var(--china-red, #D81E06);
  background: rgba(216, 30, 6, .12); pointer-events: none; z-index: 3;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .28);
}
/* 单块打码时不要把整图压暗：容器内已有多个选区时由 CSS 变量控制 */
.img-stage.sel-soft .img-sel { box-shadow: none; }
@media (max-width: 768px) {
  .img-stage { max-width: 100%; }
}


/* ====== v4.3.0 通用工具组件（tools-kit.js）====== */
.o-msg-warn { background: #fff8e6; border: 1px solid #ecd9a8; color: #7a5c1e; }

.tk-chks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 4px 0; }
.tk-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; color: var(--text); }
.tk-chk input { margin: 0; }
.tk-hr { border: 0; border-top: 1px dashed #dfe6ee; margin: 16px 0; }
.tk-h4 { margin: 18px 0 8px; font-size: 15px; font-weight: 600; color: var(--primary);
  border-left: 3px solid var(--gold, #C9A961); padding-left: 9px; }

/* 键值表 */
.tk-kv { margin: 10px 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.tk-kv-row { display: flex; gap: 12px; padding: 9px 14px; font-size: 14px; border-bottom: 1px solid #eef2f7; background: #fff; }
.tk-kv-row:last-child { border-bottom: 0; }
.tk-kv-row:nth-child(odd) { background: #fafbfd; }
.tk-k { flex: 0 0 38%; max-width: 38%; color: var(--text-muted); }
.tk-v { flex: 1; color: var(--text); word-break: break-word; }
.tk-v code, .o-out code { background: #f1f4f9; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }

/* 表格 */
.tk-tbl-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--border); border-radius: 10px; }
.tk-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.tk-tbl th, .tk-tbl td { padding: 9px 11px; border-bottom: 1px solid #eef2f7; text-align: left; vertical-align: top; }
.tk-tbl thead th { background: #f2f5f9; color: var(--primary); font-weight: 600; white-space: nowrap; position: sticky; top: 0; }
.tk-tbl tbody tr:nth-child(even) { background: #fafbfd; }
.tk-tbl tbody tr:hover { background: #f3f7fc; }
.tk-tbl-sm { font-size: 12.5px; }
.tk-tbl-form td { height: 42px; }

/* 统计条 */
.tk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 10px; margin: 12px 0; }
.tk-stat { background: linear-gradient(180deg, #f7f9fc, #f0f4f9); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 10px; text-align: center; }
.tk-stat b { display: block; font-size: 19px; line-height: 1.3; color: var(--primary); }
.tk-stat span { display: block; margin-top: 3px; font-size: 12px; color: var(--text-muted); }

/* 徽章 */
.tk-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; line-height: 1.7; white-space: nowrap; }
.tk-badge-ok { background: #e8f5ec; color: #1e6b34; border: 1px solid #bfe3c9; }
.tk-badge-bad { background: #fdecea; color: #8f1d13; border: 1px solid #f5c6c0; }
.tk-badge-warn { background: #fff4e0; color: #8a5a00; border: 1px solid #f0dcb0; }
.tk-badge-info { background: #eef3fb; color: #234a78; border: 1px solid #cfdcf0; }

/* 画布与棋盘格 */
.tk-canvas-wrap { margin: 12px 0; overflow: auto; text-align: center; line-height: 0; }
.tk-canvas-wrap canvas, .tk-canvas-wrap img { max-width: 100%; height: auto; }
.tk-checker { background-color: #fff; border-radius: 8px; padding: 6px;
  background-image: linear-gradient(45deg, #e9edf3 25%, transparent 25%, transparent 75%, #e9edf3 75%),
    linear-gradient(45deg, #e9edf3 25%, transparent 25%, transparent 75%, #e9edf3 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px; }

/* 图片对比滑块 */
.tk-cmp { position: relative; display: inline-block; max-width: 100%; overflow: hidden; line-height: 0; border-radius: 8px; }
.tk-cmp > img { display: block; max-width: 100%; }
.tk-cmp-top { position: absolute; inset: 0 auto 0 0; width: 50%; overflow: hidden; }
.tk-cmp-top img { display: block; max-width: none; }
.tk-cmp-bar { position: absolute; top: 0; bottom: 0; width: 2px; background: #D81E06; left: 50%; pointer-events: none; }

/* 差异标记 */
.tk-del { background: #fdecea; color: #b3261e; text-decoration: line-through; text-decoration-color: #e08a80; }
.tk-ins { background: #e8f5ea; color: #1b5e20; text-decoration: none; }

/* 结果主数字 */
.tk-result-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
  background: linear-gradient(135deg, #0A2E5C, #16457a); color: #fff;
  border-radius: 12px; padding: 15px 18px; margin: 12px 0; }
.tk-result-main span { font-size: 13px; opacity: .85; }
.tk-result-main b { font-size: 25px; color: var(--gold, #C9A961); letter-spacing: .5px; }
.tk-result-main i { font-style: normal; font-size: 13px; opacity: .8; }

/* 词频条 */
.tk-bars { margin: 12px 0; }
.tk-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.tk-bar-w { flex: 0 0 110px; max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.tk-bar { flex: 1; height: 9px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.tk-bar i { display: block; height: 100%; background: linear-gradient(90deg, #0A2E5C, #3a6ea5); border-radius: 6px; }
.tk-bar-row b { flex: 0 0 44px; text-align: right; color: var(--primary); font-size: 12.5px; }

/* 摘要/要点列表 */
.tk-out-list { margin: 10px 0; }
.tk-out-item { display: flex; gap: 10px; padding: 10px 12px; background: #fafbfd;
  border: 1px solid var(--border); border-radius: 9px; margin-bottom: 8px; font-size: 14px; line-height: 1.75; }
.tk-idx { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: 12px; text-align: center; line-height: 22px; }

/* 文档预览 */
.tk-doc-preview { border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; background: #fff; max-height: 520px; overflow: auto; }
.tk-doc-preview .tk-p { margin: 0 0 9px; font-size: 14px; line-height: 1.85; text-indent: 2em; }
.tk-doc-preview .tk-li { margin: 0 0 6px; font-size: 14px; line-height: 1.8; padding-left: 1em; }
.tk-doc-preview .tk-h { font-weight: 700; color: var(--primary); margin: 14px 0 8px; }
.tk-doc-preview .tk-h1 { font-size: 20px; text-align: center; }
.tk-doc-preview .tk-h2 { font-size: 17px; }
.tk-doc-preview .tk-h3 { font-size: 15px; }
.tk-doc-preview .tk-h4, .tk-doc-preview .tk-h5, .tk-doc-preview .tk-h6 { font-size: 14px; }

/* 时间轴 */
.tk-tl { margin: 14px 0 18px; padding-left: 6px; }
.tk-tl-item { position: relative; display: flex; gap: 14px; padding: 0 0 16px 18px; border-left: 2px solid #dbe4ef; }
.tk-tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tk-tl-dot { position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold, #C9A961); border: 2px solid #fff; box-shadow: 0 0 0 2px #e6dcbf; }
.tk-tl-date { flex: 0 0 108px; font-size: 13px; font-weight: 600; color: var(--primary); }
.tk-tl-date small { display: block; font-weight: 400; color: var(--text-muted); font-size: 11.5px; }
.tk-tl-body { flex: 1; font-size: 13.5px; line-height: 1.7; color: var(--text); }

@media (max-width: 768px) {
  .tk-stats { grid-template-columns: repeat(2, 1fr); }
  .tk-k { flex-basis: 44%; max-width: 44%; }
  .tk-tl-date { flex-basis: 84px; font-size: 12px; }
  .tk-result-main b { font-size: 21px; }
  .tk-bar-w { flex-basis: 80px; max-width: 80px; }
}


/* ====== v4.4.0 常用工具置顶（菜单快捷条 / 首页置顶区 / 选择面板） ====== */

/* 菜单顶部「常用」chip 条 */
.nav-dd-pins { display: none; grid-column: 1 / -1; padding: 4px 2px 9px; border-bottom: 1px dashed #dfe6ee; margin-bottom: 4px; }
.nav-dd-pins:not([hidden]) { display: block; }
.nav-dd-pins-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin: 0 0 6px 3px; letter-spacing: .02em; }
.nav-dd-pins-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.top-nav .nav-dd-menu .nav-dd-pin {
  display: inline-flex; align-items: center; gap: 4px; max-width: 138px;
  padding: 4px 9px; border: 1px solid #d8e2ee; border-radius: 999px;
  background: #f6f9fc; font-size: 12.5px; line-height: 1.5; color: var(--primary);
  text-decoration: none; transition: .15s;
}
.top-nav .nav-dd-menu .nav-dd-pin:hover { background: var(--primary-light); border-color: var(--primary); }
.nav-dd-pin-ico { flex: none; font-size: 13px; }
.nav-dd-pin-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-nav .nav-dd-menu .nav-dd-pin-more { border-style: dashed; color: var(--text-muted); background: #fff; }
.top-nav .nav-dd-menu .nav-dd-pin-more:hover { color: var(--primary); }

/* 组内分类标签行（把 11 个分类压成一行，比原卡片刻度省一半高度） */
.nav-dd-cats {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px;
  margin: 7px 0 1px; padding-top: 8px; border-top: 1px dashed #e3eaf2;
}
.top-nav .nav-dd-menu .nav-dd-cat {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 6px; background: #f2f5f9;
  font-size: 12.5px; line-height: 1.6; color: var(--text-muted); text-decoration: none;
}
.top-nav .nav-dd-menu .nav-dd-cat:hover { background: var(--primary-light); color: var(--primary); }
.nav-dd-cat i { font-style: normal; font-size: 11px; color: #9aa9b8; }

/* 工具首页「我的常用」区块 */
.pin-strip {
  background: linear-gradient(180deg, #fbfcfe, #f4f8fc);
  border: 1px solid #dbe5f0; border-radius: 14px;
  padding: 13px 16px 12px; margin: 0 0 16px;
}
.pin-strip-skeleton { min-height: 92px; }
.pin-strip-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pin-strip-title { font-size: 15px; font-weight: 700; color: var(--primary); }
.pin-count { font-size: 12px; font-weight: 400; color: var(--text-muted); margin-left: 6px; }
.pin-strip-actions { display: flex; gap: 8px; }
.pin-btn {
  border: 1px solid #cfdced; background: #fff; color: var(--primary);
  border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; transition: .15s;
}
.pin-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.pin-btn-ghost { color: var(--text-muted); }
.pin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 8px; margin-top: 10px; }
.pin-card { position: relative; display: flex; align-items: center; background: #fff; border: 1px solid #e2e9f2; border-radius: 10px; transition: .15s; }
.pin-card:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(10, 46, 92, .08); }
.pin-card-link { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; padding: 9px 28px 9px 11px; color: var(--text); text-decoration: none; }
.pin-ico { flex: none; font-size: 17px; }
.pin-name { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin-cat { display: none; }
.pin-x {
  position: absolute; right: 3px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: #b9c4d0; cursor: pointer;
  font-size: 12px; line-height: 1; padding: 5px 7px; border-radius: 50%;
}
.pin-x:hover { color: #D81E06; background: #fdecea; }
.pin-empty { margin-top: 8px; font-size: 13px; line-height: 1.8; color: var(--text-muted); }
.pin-tip { display: block; margin-top: 8px; font-size: 12.5px; color: #b3261e; }

/* v4.4.1：原「仅显示某分组」提示条样式（.office-onlybar）已删除 ——
   该提示条并入统一筛选后无引用，属死代码。 */

/* 选择常用工具（固定浮层） */
.pin-modal {
  position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(8, 20, 40, .42);
}
.pin-modal[hidden] { display: none; }
.pin-panel {
  display: flex; flex-direction: column; width: min(760px, 100%); max-height: min(84vh, 760px);
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(6, 20, 40, .32);
}
.pin-panel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 13px 16px; border-bottom: 1px solid #e8eef6; }
.pin-panel-head b { font-size: 15px; color: var(--primary); }
.pin-picker-count { font-size: 12.5px; color: var(--text-muted); }
.pin-picker-count b { color: var(--primary); font-size: 14px; }
.pin-search { flex: 1 1 180px; min-width: 130px; border: 1px solid #d7e0ec; border-radius: 8px; padding: 7px 10px; font-size: 13px; color: var(--text); background: #fbfdff; }
.pin-search:focus { outline: none; border-color: var(--primary); background: #fff; }
.pin-picker-list { flex: 1; overflow: auto; padding: 4px 10px 10px; overscroll-behavior: contain; }
.pin-grp {
  position: sticky; top: 0; z-index: 1; background: #f7fafd; border-bottom: 1px solid #e8eef6;
  padding: 7px 6px 5px; margin: 0 -2px; font-size: 12.5px; font-weight: 600; color: var(--primary);
}
.pin-grp-n { font-weight: 400; color: #9aa9b8; }
.pin-row { display: flex; align-items: center; gap: 8px; padding: 8px; border-bottom: 1px solid #f1f5fa; border-radius: 6px; font-size: 13.5px; cursor: pointer; }
.pin-row:hover { background: #f5f9fd; }
.pin-row.on { background: #fffaf0; }
.pin-row input { margin: 0; flex: none; }
.pin-row-ico { flex: none; }
.pin-row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin-row-cat { flex: none; font-size: 11.5px; color: #98a6b5; }
.pin-picker-foot { padding: 9px 16px; border-top: 1px solid #e8eef6; background: #fafcfe; font-size: 12px; color: var(--text-muted); }

/* 浮动提示 */
.pin-float {
  position: fixed; left: 50%; bottom: 40px; z-index: 9999;
  padding: 10px 18px; border-radius: 999px; background: rgba(10, 46, 92, .94); color: #fff;
  font-size: 13px; opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(12px); transition: .2s;
}
.pin-float.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 768px) {
  .pin-grid { grid-template-columns: 1fr; }
  .pin-strip-head { align-items: flex-start; }
  .pin-strip-actions { width: 100%; }
  .pin-modal { padding: 10px; align-items: flex-start; }
  .pin-panel { max-height: 86vh; }
  .pin-panel-head { gap: 8px; padding: 11px 12px; }
  .pin-panel-head b { flex: 1 1 auto; }
  .pin-search { flex: 1 1 100%; order: 3; min-width: 0; }
  .pin-picker-count { margin-left: auto; }
  .pin-picker-list { max-height: 58vh; }
  .pin-row-cat { display: none; }
}

/* 表单内 range / checkbox 对齐 */
.form-group input[type="range"] { accent-color: var(--primary); }
.form-group input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; }
.form-group input[type="file"] { font-size: 13px; }
@media (max-width: 768px) {
  .o-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o-diff td { font-size: 12px; }
}

.table-wrap { overflow-x: auto; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
th { background: var(--primary-light); color: var(--primary); }
tr:nth-child(even) { background: #fafafa; }

/* ====== 导航页 ====== */
.nav-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; }
.nav-card {
  display: block; background: #fafbfc; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; text-decoration: none; color: var(--text); position: relative; transition: .15s;
}
.nav-card:hover { background: var(--primary-light); border-color: var(--primary); transform: translateY(-2px); }
.nav-name { font-weight: 600; font-size: 15px; color: var(--primary); }
.nav-url { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.nav-desc { font-size: 12px; color: var(--text-muted); margin-top: 6px; line-height: 1.4; }
.nav-go { position: absolute; right: 12px; top: 12px; color: var(--primary); font-size: 12px; }

/* ====== 全网搜索 ====== */
.hot-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hot-tag {
  background: var(--primary-light); color: var(--primary);
  padding: 6px 14px; border-radius: 16px; font-size: 13px; cursor: pointer; transition: .15s;
}
.hot-tag:hover { background: var(--primary); color: #fff; }

/* ====== 会员管理 ====== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.stat-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; text-align: center;
}
.stat-num { font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.badge {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: #f3f4f6; color: var(--text-muted);
}
.badge-admin { background: var(--firm-color); color: #fff; margin-left: 4px; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-approved { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fdecec; color: #b71504; }

/* ====== LPR 管理 ====== */
.lpr-admin .rates-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.lpr-admin .rate-item { display: flex; gap: 8px; align-items: center; }
.lpr-admin .rate-item input { flex: 1; }
.lpr-admin .rate-item .del { color: var(--danger); cursor: pointer; font-size: 18px; font-weight: bold; }
.admin-hint { font-size: 12px; color: var(--accent); margin-left: 8px; }

.hidden { display: none; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 60px; margin-bottom: 16px; opacity: .6; }

/* 中屏（≤1300px）：品牌与时钟同排，主导航独占一行居中。
   解决原先 .top-nav 绝对定位在窄屏与品牌/时钟重叠、文字被挤压折行的问题。
   v2.62.0：断点由 1180 上调至 1300 —— 1181–1300px 时主导航夹在品牌区与时钟区
   之间仅剩约 740px，11 项放不下（实测需 752px）会两行折排；独占一行后
   既不再挤压，也与下方内容列共用同一中轴。 */
@media (max-width: 1300px) {
  .app-header { flex-wrap: wrap; min-height: 64px; padding: 8px 16px 8px calc(16px + var(--rail)); }
  .brand { order: 1; }
  .header-right { order: 2; }
  .top-nav { order: 3; flex: 1 1 100%; justify-content: center; margin: 6px 0 2px; }
}

@media (max-width: 768px) {
  /* 移动端侧栏为浮层、不占横向空间，中轴回归视口中轴 */
  body:has(.sidebar), body:has(.sidebar:not(.collapsed)) { --rail: 0px; }
  .sidebar { position: fixed; left: -260px; top: 64px; bottom: 40px; z-index: 90; transition: .2s; }
  .sidebar.open { left: 0; }
  .content { padding: 16px; }
  .tool-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .app-header { padding: 8px 12px; }
  .firm-name { font-size: 14px; }
  /* 移动端：导航回到文档流占满整行、水平居中，条目不折字 */
  .top-nav { order: 3; flex: 1 1 100%; justify-content: center; margin: 6px 0 2px; }
  .top-nav a { padding: 6px 10px; font-size: 13px; }
}

/* ====== 模态框 ====== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-box {
  background: #fff; border-radius: var(--radius); padding: 28px;
  max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  text-align: left;
}
.modal-box h2 { margin-top: 0; color: var(--primary); }
.modal-box .form-group { margin-bottom: 14px; }
.modal-box textarea { min-height: 100px; }

/* ====== 反馈表单 ====== */
.feedback-box { border-top: 4px solid var(--primary); }
.feedback-box textarea { resize: vertical; }

/* ====== 免责声明 ====== */
.disclaimer-box { border-top: 4px solid var(--firm-color); max-width: 640px; }
.disclaimer-content { max-height: 50vh; overflow-y: auto; padding: 12px; background: #f9fafb; border-radius: 8px; margin: 12px 0; }
.disclaimer-content p { margin: 8px 0; line-height: 1.7; }
.disclaimer-content ol { margin: 8px 0; }
.disclaimer-content li { margin: 6px 0; line-height: 1.7; }


/* ====== Footer 链接 ====== */
.footer-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 13px; transition: .15s; }
.footer-links a:hover { color: #fff; text-decoration: underline; }


/* ====== 侧边栏反馈按钮 ====== */
#btnFeedback { background: var(--primary-light); color: var(--primary); border:1px solid var(--primary); margin-top: 8px; }
#btnFeedback:hover { background: var(--primary); color: #fff; }

/* ====== 表头实时时钟（复用 .header-right 定位，追加 .header-clock 内容样式） ====== */
/* 时钟容器整体可点击 → 时钟中心（app.startHeaderClock 绑定 #tool/clockcenter） */
#headerClock { cursor: pointer; transition: opacity .15s; }
#headerClock:hover { opacity: .8; }
.header-clock {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2;
  text-align: right; white-space: nowrap;
}
.header-clock-date { font-size: 12px; opacity: .88; }
.header-clock-time { font-size: 18px; font-weight: 700; letter-spacing: 1px; font-variant-numeric: tabular-nums; }

/* ====== 世界时钟工具 ====== */
.wc-legend {
  font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-top: 4px;
}
.wc-legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); display: inline-block; }
.wc-legend-live { color: var(--success); font-weight: 600; margin-left: auto; }

.world-clock-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px; margin-top: 14px;
}
.wc-card {
  background: #f8fafc; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; transition: .15s;
}
.wc-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.wc-card-beijing { background: var(--primary-light); border-color: var(--primary); }
.wc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.wc-city { display: flex; flex-direction: column; }
.wc-city-name { font-size: 15px; font-weight: 600; }
.wc-country { font-size: 11px; color: var(--text-muted); }
.wc-offset { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wc-diff { font-size: 12px; color: var(--primary); }
.wc-time { font-size: 26px; font-weight: 700; letter-spacing: 1px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.wc-date { font-size: 12px; color: var(--text-muted); }
.wc-day-tag { color: #b8953e; font-weight: 600; }

/* 移动端：表头时钟缩小、世界时钟单列网格 */
@media (max-width: 768px) {
  .header-clock-date { font-size: 11px; }
  .header-clock-time { font-size: 15px; }
  .world-clock-grid { grid-template-columns: 1fr 1fr; }
  .wc-time { font-size: 22px; }
}
@media (max-width: 420px) {
  .world-clock-grid { grid-template-columns: 1fr; }
}

/* ====== 时钟中心 ====== */
.cc-local {
  text-align: center; background: linear-gradient(135deg, #0a2e5c, #07203f);
  color: #fff; border-radius: 14px; padding: 26px 18px; margin-top: 12px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, .25);
}
.cc-local-date { font-size: 18px; opacity: .92; letter-spacing: 1px; }
.cc-local-time { font-size: 52px; font-weight: 800; letter-spacing: 4px; font-variant-numeric: tabular-nums; margin-top: 6px; line-height: 1.1; }
.cc-section-title { margin-top: 24px; margin-bottom: 2px; font-size: 16px; }
/* 时间/日期工具入口网格 */
.dt-tool-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px; margin-top: 12px;
}
.dt-tool-card {
  background: #f8fafc; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
  cursor: pointer; transition: .15s;
}
.dt-tool-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-1px); }
.dt-tool-icon { font-size: 22px; }
.dt-tool-name { font-size: 15px; font-weight: 600; }
.dt-tool-desc { font-size: 12px; color: var(--text-muted); }

/* ====== 统计面板数据来源徽标（服务器累计 / 本机缓存） ====== */
.vs-source-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; margin-bottom: 12px;
}
.vs-source-badge.vs-server { background: #d1fae5; color: #065f46; }
.vs-source-badge.vs-local { background: #fef3c7; color: #92400e; }

@media (max-width: 768px) {
  .cc-local-time { font-size: 40px; }
}
#btnDisclaimer { background: transparent; color: var(--text-muted); border:1px solid var(--border); margin-top: 4px; font-size: 12px; }
#btnDisclaimer:hover { background: #f3f4f6; color: var(--text); }

/* ====== 徽章扩展 ====== */
.badge-bug { background: #fdecec; color: #b71504; }
.badge-feature { background: #e2edf6; color: #07203f; }
.badge-data { background: #d1fae5; color: #065f46; }
.badge-ui { background: #fef3c7; color: #92400e; }
.badge-other { background: #f3f4f6; color: #374151; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-resolved { background: #d1fae5; color: #065f46; }

/* ====== 工具结果免责提示 ====== */
.result-disclaimer {
  font-size: 12px; color: var(--text-muted); text-align: center;
  margin-top: 16px; padding: 10px; background: #f9fafb;
  border-radius: 8px; border: 1px dashed var(--border);
}
.result-disclaimer a { color: var(--primary); text-decoration: none; }
.result-disclaimer a:hover { text-decoration: underline; }

/* ====== v4.4.2 统一免责尾巴（js/site-notice.js 渲染后追加） ======
   不与原有免责块挤在同一行：独立成块、上虚线下弱化，视觉上属于「补充一句」。
   文字色用 --text-muted（#6b7280）配 #f9fafb 底 → 对比度 5.62:1。 */
.sn-tail {
  display: flex; align-items: flex-start; gap: 6px;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 12px; line-height: 1.75; color: var(--text-muted);
  text-align: left;
}
.sn-tail-ico { flex: none; font-size: 12px; line-height: 1.75; opacity: .75; }
.sn-tail-txt { flex: 1 1 auto; min-width: 0; }
.sn-tail a { color: var(--primary); font-weight: 600; text-decoration: none; white-space: nowrap; }
.sn-tail a:hover { text-decoration: underline; }
/* 贴在深色免责块（如 .gs-disclaimer）之后时，浅底白块会把两块分隔开 */
.sn-tail-anchor { background: #fff; border-radius: 8px; padding: 8px 10px; margin-top: 6px; }
/* 独立成条的场合（办公应用页 Hero 下方）：自带浅底与虚线框，不当「尾巴」用 */
.sn-tail.sn-tail-standalone {
  display: flex; margin: 0 0 14px; padding: 9px 12px;
  background: #f7f9fc; border: 1px dashed #cfdcea; border-radius: 8px;
  border-top: 1px dashed #cfdcea;
}
.sn-tail { overflow-wrap: anywhere; }







/* ========= 安全日志表格 ========= */
.log-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.log-table th,
.log-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}

.log-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.log-table tr:hover {
  background: #f8f9fa;
}

/* ========= 会话超时提示 ========= */
.session-timeout-warning {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  max-width: 300px;
}

.session-timeout-warning h4 {
  margin: 0 0 8px 0;
  color: #856404;
}

.session-timeout-warning p {
  margin: 0 0 12px 0;
  color: #856404;
  font-size: 14px;
}

/* ========= 控制台警告 ========= */
console-warning {
  display: none;
}


/* ========= 顶部联系方式 ========= */
.header-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  margin-left: 20px;
  font-size: 13px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}
.header-contact:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.contact-icon {
  font-size: 14px;
}
.contact-link {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
}
.contact-link:hover {
  color: #0a2e5c;
  text-decoration: underline;
}

/* ========= 免责声明横幅 ========= */
.disclaimer-banner {
  background: linear-gradient(90deg, #fff3cd 0%, #ffe5b4 100%);
  border-bottom: 2px solid #ffc107;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #856404;
  position: relative;
  z-index: 99;
}
.banner-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.banner-text {
  flex: 1;
  line-height: 1.5;
}
.banner-text strong {
  color: #d39e00;
}
.banner-text a {
  color: #0a2e5c;
  text-decoration: none;
  font-weight: 500;
}
.banner-text a:hover {
  text-decoration: underline;
}
.banner-link {
  color: #856404;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid #ffc107;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.banner-link:hover {
  background: #ffc107;
  color: #fff;
}
.banner-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #856404;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  flex-shrink: 0;
}
.banner-close:hover {
  color: #c33;
}

/* ========= Footer 免责声明 ========= */
.footer-disclaimer {
  width: 100%;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #856404;
  text-align: justify;
}
.footer-disclaimer strong {
  color: #d39e00;
}
.footer-disclaimer a {
  color: #0a2e5c;
  text-decoration: none;
  font-weight: 500;
}
.footer-disclaimer a:hover {
  text-decoration: underline;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-bottom: 6px;
}
.footer-contact {
  font-size: 12px;
  color: #555;
}
.footer-contact a {
  color: #0a2e5c;
  text-decoration: none;
}
.footer-contact a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Footer（v2.58.0 重排）
   --------------------------------------------------------------------------
   此前 footer 样式经多轮叠加（原有 4 段互有覆盖的 .app-footer 规则），且基础规则
   里写死了 `height: 40px`，一旦内容变多就溢出裁切，宽屏下又呈现为「免责声明拉通整行、
   品牌行漂在中间」的一条细带，观感不协调。本版按「说明归说明、常驻归常驻」重排：
     ① 说明性文字（免责声明 + 公益普法）→ 正文末尾的静态说明区 `.footer-notes`，
        随文档阅读，内容再长也不会遮挡页面；宽度收窄到 1180px 居中，避免宽屏串行。
     ② 底边只留一条常驻品牌条 `.app-footer`（口号 · 联系 · 备案），高约 40px，
        不再侵占视口；免责声明随时可点侧栏「⚖️ 免责声明」按钮查看。
   ========================================================================== */
.app-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  height: auto;
  min-height: 40px;
  background: linear-gradient(180deg, #0d3567 0%, #0a2e5c 46%, #071f3a 100%);
  border-top: 1px solid rgba(201, 169, 97, .55);
  box-shadow: 0 -8px 28px rgba(6, 28, 55, .26);
  padding: 10px 18px 10px calc(18px + var(--rail));
}
.footer-inner {
  max-width: 1052px;   /* = 内容列 1100 − 左右内距各 24，页脚文字与上方卡片左右齐边（v2.62.0） */
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 5px 14px;
  text-align: center;
}
.app-footer > .footer-links { width: 100%; text-align: center; }

/* 品牌口号与版权行：同一 baseline 水平并列，窄屏自动折行居中 */
.footer-slogan {
  display: inline;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.5;
  color: #e2cd97;
  white-space: nowrap;
}
.footer-copy {
  display: inline;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, .74);
}
.footer-copy a { color: #e2cd97; text-decoration: none; }
.footer-copy a:hover { color: #f0e0b8; text-decoration: underline; }
.footer-icp { white-space: nowrap; }
.footer-contact { font-size: 12px; color: rgba(255, 255, 255, .74); }
.footer-contact a { color: #e2cd97; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

/* ---------- 正文末尾的静态说明区（免责声明 + 公益普法） ---------- */
.footer-notes {
  background: linear-gradient(180deg, #fbfcfe 0%, #eef3f9 100%);
  border-top: 1px solid var(--brand-line);
  padding: 18px 18px 20px calc(18px + var(--rail));
}
.footer-notes-inner {
  max-width: 1052px;   /* 同上：与 #main 内卡片同宽，避免说明区比卡片宽出一截（v2.62.0） */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-notes .footer-disclaimer {
  width: auto;
  margin: 0;
  background: #fff8e1;
  border: 1px solid #ffd98a;
  border-radius: 8px;
  padding: 11px 15px;
  font-size: 12.5px;
  line-height: 1.75;
  color: #6a4b16;
  text-align: justify;
  text-justify: inter-ideograph;
}
.footer-notes .footer-disclaimer strong { color: #b8860b; font-weight: 600; }
.footer-notes .footer-disclaimer a { color: var(--brand); text-decoration: none; font-weight: 600; }
.footer-notes .footer-disclaimer a:hover { text-decoration: underline; }

/* 公益普法说明（v2.58.0 新增）：与免责声明并列但性质不同，用金线左标区分「平台性质」与「风险提示」 */
.footer-notes .footer-public {
  width: auto;
  margin: 0;
  background: #fff;
  border: 1px solid var(--gold-line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 11px 15px;
  font-size: 12.5px;
  line-height: 1.75;
  color: #40506a;
  text-align: justify;
  text-justify: inter-ideograph;
}
.footer-notes .footer-public b { color: var(--gold-deep); font-weight: 600; }
.footer-notes .footer-public a { color: var(--brand); text-decoration: none; font-weight: 600; }
.footer-notes .footer-public a:hover { text-decoration: underline; }

/* 底边常驻品牌条：正文按宽度分档让位（品牌行折行时条体变高，留足余量） */
body { padding-bottom: 56px !important; }
@media (max-width: 900px) { body { padding-bottom: 100px !important; } }
@media (max-width: 640px) {
  body { padding-bottom: 76px !important; }
  .footer-slogan { display: none; }
}

/* ========= 老黄历查询结果分组 ========= */
.hl-group {
  margin-top: 12px;
  padding: 12px 14px;
  background: #faf7f0;
  border: 1px solid #efe6d3;
  border-radius: 10px;
}
.hl-group-title {
  font-size: 13px;
  font-weight: 700;
  color: #b8953e;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.hl-group .result-line strong {
  font-size: 15px;
  text-align: right;
  line-height: 1.5;
}

/* ========= 侧栏折叠（默认折叠 + localStorage 记忆） ========= */
/* 折叠按钮：位于侧栏顶部，桌面端明显可见、不遮挡内容 */
.sidebar-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 32px; padding: 0;
  border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text-muted); font-size: 14px; line-height: 1;
  cursor: pointer; transition: .15s; flex-shrink: 0;
}
.sidebar-toggle:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

/* 折叠过渡：width 0.2s，展开/收起流畅（.app-body 为 flex，收窄后 .content 自然让位） */
.sidebar { transition: width .2s ease; }

/* 折叠态：收窄为 52px 窄栏，仅显示工具图标（分组标题/搜索框/底部按钮隐藏） */
.sidebar.collapsed { width: 52px; padding: 16px 6px; }
.sidebar.collapsed .sidebar-toggle { width: 40px; margin: 0 auto; }
.sidebar.collapsed .sidebar-user,
.sidebar.collapsed .search-box,
.sidebar.collapsed .nav-group-title,
.sidebar.collapsed .nav-ctl,
.sidebar.collapsed .sidebar-footer { display: none; }
/* v2.59.0：窄栏图标模式（仅桌面 >768px）强制显示全部分组体（覆盖内联折叠 display:none，只显图标不显文字）；
 * 移动端抽屉不适用——抽屉里折叠状态应被尊重。 */
@media (min-width: 769px) {
  .sidebar.collapsed .nav-group-body { display: block !important; }
}
.sidebar.collapsed .tool-nav a { justify-content: center; gap: 0; padding: 9px 0; }
.sidebar.collapsed .tool-nav a .icon { width: auto; font-size: 16px; }
/* 窄栏只显示图标：文字 span 仍保留在 DOM 中，由 CSS 隐藏（hover title 仍可提示工具名） */
.sidebar.collapsed .tool-nav a span:last-child { display: none; }

/* 「⭐ 常用工具」置顶分组（复用 .nav-group-title，微调强调色） */
.nav-group-title-hot { color: var(--firm-color); font-weight: 700; }

/* 移动端：抽屉机制已有，隐藏折叠按钮；折叠态不影响抽屉全宽列表 */
@media (max-width: 768px) {
  .sidebar-toggle { display: none; }
  /* 保留抽屉 left 滑入动画（同时允许 width 过渡） */
  .sidebar { transition: left .2s, width .2s ease; }
  .sidebar.collapsed { width: 260px; padding: 16px; }
  .sidebar.collapsed .sidebar-user,
  .sidebar.collapsed .search-box,
  .sidebar.collapsed .nav-group-title { display: flex; }
  .sidebar.collapsed .nav-ctl { display: flex; }
  .sidebar.collapsed .sidebar-footer { display: flex; }
  .sidebar.collapsed .tool-nav a { justify-content: flex-start; gap: 10px; padding: 9px 12px; }
  .sidebar.collapsed .tool-nav a .icon { width: 20px; font-size: inherit; }
  .sidebar.collapsed .tool-nav a span:last-child { display: inline; }
}

/* ========= 节庆装饰样式（v2.18.0 中秋+国庆）已于 v2.46.0 整体移除 ========= */

/* ========= 工伤与意外残疾法律分析（v2.19.0） ========= */

/* 顶部免责条：醒目红底，随工具页滚动 */
.gs-disclaimer {
  background: #0a2e5c; color: #fff; border-radius: 8px;
  padding: 10px 16px; font-size: 13px; font-weight: 600;
  margin-bottom: 14px; line-height: 1.6;
}

/* 标签页 */
.gs-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.gs-tab-btn {
  padding: 9px 18px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--card-bg, #fff); color: var(--text); font-size: 14px;
  cursor: pointer; transition: .15s;
}
.gs-tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.gs-tab-btn.active { background: var(--primary, #07203f); color: #fff; border-color: var(--primary, #07203f); }

/* Tab1：人形 SVG + 部位表 */
.gs-body-wrap { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.gs-body-svg-wrap { flex: 0 0 260px; text-align: center; }
.gs-body-svg { max-width: 100%; height: auto; }
.gs-body-tip { font-size: 12px; color: var(--text-muted, #888); margin-top: 6px; }
.gs-body-table-wrap { flex: 1; min-width: 320px; }
/* v2.22.0 修复（QA 实测发现的阻塞缺陷）：v2.19 遗留段曾用 CSS `fill` 给 .gs-region / .gs-figure-base
   上色，而 CSS 声明优先级高于 SVG 表现属性（fill="…"），导致分层配色（layer 切换）在浏览器中被完全覆盖、
   5 个图层颜色不变。故此处移除所有 fill 声明：颜色一律改由 _humanSvg() 输出的 SVG 表现属性 +
   每层渐变（fill="url(#gsGradXxx)"）随图层切换接管；.gs-region / .gs-figure-base 的交互几何属性
   （stroke/cursor/.active 高亮）统一下移至文件末尾 v2.22.0 段，避免重复规则。 */
.gs-table-wrap { overflow-x: auto; }
.gs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gs-table th, .gs-table td { border: 1px solid var(--border, #e5e7eb); padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.55; }
.gs-table thead th { background: #f8f9fb; }
.gs-table tr.gs-zebra td { background: #fafbfc; }

/* 法条引用徽标 */
.gs-lawref {
  display: inline-block; background: #eef3f9; color: #07203f;
  border: 1px solid #c6d7e8; border-radius: 4px;
  font-size: 12px; padding: 1px 6px; margin: 0 3px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
/* 视觉上明确「可点开」——芯片上写着「…全文」，就必须真的能打开全文 */
.gs-lawref:hover, .gs-lawref:focus {
  background: #e2ecf7; border-color: #8fb4d9; outline: none;
}

/* Tab2：表单与结果 */
.gs-calc-panel .gs-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 16px; margin-bottom: 12px; }
.gs-field label { display: block; font-size: 12.5px; color: var(--text-muted, #666); margin-bottom: 4px; }
.gs-field input, .gs-field select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border, #d1d5db);
  border-radius: 6px; font-size: 13.5px; box-sizing: border-box; outline: none;
}
.gs-field input:focus, .gs-field select:focus { border-color: var(--primary, #07203f); }
.gs-calc-cols { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.gs-calc-cols .gs-col { flex: 1 1 420px; min-width: 320px; }
.gs-warn { background: #fff7e6; border: 1px solid #f6c344; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 10px; line-height: 1.6; }
.gs-notes { background: #eef3f9; border: 1px solid #c6d7e8; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 10px; line-height: 1.6; }
.gs-prov-note { font-size: 12.5px; color: var(--text-muted, #666); background: #f8f9fb; border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; line-height: 1.6; }

/* 图表（纯 CSS） */
.gs-chart-panel h4 { margin: 12px 0 8px; }
.gs-bar-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 12.5px; }
.gs-bar-label { flex: 0 0 150px; text-align: right; }
.gs-bar-track { flex: 1; height: 16px; background: #f1f3f5; border-radius: 8px; overflow: hidden; }
.gs-bar-fill { height: 100%; border-radius: 8px; min-width: 2px; transition: width .3s; }
.gs-bar-val { flex: 0 0 auto; color: var(--text-muted, #666); }
.gs-compare { display: flex; justify-content: center; align-items: flex-end; gap: 48px; padding: 10px 0; }
.gs-col-wrap { text-align: center; }
/* v2.29.0 修复：柱体不再承载白色数字（短柱时白字溢出到浅色面板背景导致不可读）；
   数值改为柱体下方的深色标签，无论柱高都清晰可辨 */
.gs-col { width: 72px; border-radius: 6px 6px 0 0; color: #fff; font-size: 12px; display: flex; align-items: flex-start; justify-content: center; padding-top: 6px; box-sizing: border-box; min-height: 6px; }
.gs-col-work { background: linear-gradient(180deg, #0d3567, #07203f); }
.gs-col-civil { background: linear-gradient(180deg, #d4b06a, #b8953e); }
.gs-col-val { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--text, #1f2937); }
.gs-col-label { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--text, #1f2937); }
.gs-range-wrap { display: flex; align-items: center; gap: 10px; font-size: 12.5px; margin: 6px 0 14px; }
.gs-range-low, .gs-range-high { color: var(--text-muted, #666); }
.gs-range-track { flex: 1; height: 10px; background: linear-gradient(90deg, #eef3f9, #0a2e5c); border-radius: 5px; position: relative; }
.gs-range-mark { position: absolute; top: -5px; width: 4px; height: 20px; background: #07203f; border-radius: 2px; transform: translateX(-50%); }
.gs-range-cur { color: #07203f; font-weight: 600; white-space: nowrap; }

/* Tab3：时间线与卡片 */
.gs-timeline { position: relative; padding-left: 22px; }
.gs-tl-item { position: relative; padding-bottom: 16px; border-left: 2px solid rgba(10,46,92,.2); margin-left: 6px; padding-left: 18px; }
.gs-tl-item:last-child { padding-bottom: 0; }
.gs-tl-dot { position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #0a2e5c; border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(201,169,97,.45); }
.gs-tl-body b { font-size: 14px; }
.gs-tl-deadline { display: block; font-size: 12.5px; color: #0a2e5c; margin: 2px 0; }
.gs-tl-body p { margin: 4px 0 0; font-size: 13px; color: var(--text, #333); line-height: 1.6; }
.gs-cols2 { display: flex; gap: 16px; flex-wrap: wrap; }
.gs-cols2 .panel { flex: 1 1 380px; }
.gs-dispute { border-left: 3px solid #c9a961; background: #fdfaf3; border-radius: 0 8px 8px 0; padding: 10px 14px; margin-bottom: 10px; }
.gs-dispute p { margin: 6px 0 0; font-size: 13px; line-height: 1.65; }

/* Tab4：双赔与建设工程 */
.gs-double-cols { display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 0; }
.gs-double-col { flex: 1 1 320px; border-radius: 10px; padding: 12px 16px; font-size: 13px; line-height: 1.6; }
.gs-double-yes { background: #f0fdf4; border: 1px solid #86efac; }
.gs-double-no { background: #fdf4f3; border: 1px solid #f0b0a4; }
.gs-double-col ul { margin: 8px 0 0; padding-left: 18px; }
.gs-double-col li { margin-bottom: 8px; }
.gs-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.gs-card { border: 1px solid var(--border, #e5e7eb); border-left: 4px solid #07203f; border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.6; }
.gs-card p { margin: 6px 0 0; }
.gs-flow { display: flex; flex-direction: column; gap: 4px; max-width: 560px; }
.gs-flow-node { display: flex; align-items: flex-start; gap: 12px; }
.gs-flow-num { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #07203f; color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.gs-flow-node b { font-size: 13.5px; }
.gs-flow-node p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-muted, #666); }
.gs-flow-arrow { margin-left: 9px; color: #0a2e5c; font-weight: 700; line-height: 1; padding: 2px 0; }

/* 双赔提醒卡（Tab2 底部） */
.gs-double-card { background: #fffbeb; border: 1px solid #f6c344; border-radius: 10px; padding: 14px 18px; margin-top: 14px; }
.gs-double-card h4 { margin: 0 0 8px; }
.gs-double-card p { font-size: 13px; line-height: 1.65; }
.gs-double-card ul { padding-left: 18px; font-size: 12.5px; line-height: 1.6; }

/* 移动端适配 */
@media (max-width: 640px) {
  .gs-body-wrap { flex-direction: column; }
  .gs-body-svg-wrap { flex: none; }
  .gs-bar-label { flex: 0 0 110px; font-size: 11.5px; }
  .gs-compare { gap: 28px; }
  .gs-col { width: 52px; font-size: 11px; }
}

/* ===== v2.20.0 遗留样式补全（QA WARN-1）=====
 * .gs-panel 为工伤模块 4 个标签页的外层容器；.gs-body-panel 为部位表卡片容器。
 * 二者原先仅为「透明外层容器」（内部内容自带 .panel 卡片样式），无独立规则。
 * 此处补最简声明：gs-panel 显式占满宽度、gs-body-panel 去除过窄内边距造成的挤压，
 * 语义明确、零视觉回归（不改变既有排版，仅消除「无对应规则」的告警）。 */
.gs-panel { display: block; width: 100%; }
.gs-body-panel { margin: 0; }

/* ===== v2.21.0 更新提示横幅已移除（原 .notice-banner* 样式一并清理，避免死代码）=====
 * 用户要求：不再打扰式提示，仅在低调位置以「更新日志」形式留念。
 * 原 .notice-banner / .notice-banner-icon / -body / -title / -date / -sub / -list / -close 全部删除。
 * 首页更新提示已从 renderHome 移除，Notice.render() 恒返回空串；旧样式不再被任何 DOM 引用。 */

/* ===== v2.21.0 更新日志（低调、典雅）===== */
/* 首页底部低调入口：一行灰色小字，不占版面、无角标 */
.changelog-entry { text-align: center; margin: 18px 0 4px; }
.changelog-entry a {
  color: var(--text-muted, #9aa0a6); font-size: 12px;
  text-decoration: none; opacity: .8; transition: .15s;
}
.changelog-entry a:hover { color: var(--text-muted, #6b7280); opacity: 1; text-decoration: underline; }

.changelog-panel { max-width: 760px; }
.changelog-intro { color: var(--text-muted, #888); font-size: 13px; margin: 0 0 16px; }
.changelog-timeline { list-style: none; margin: 0; padding: 0 0 0 8px; }
.cl-item { position: relative; padding: 0 0 18px 22px; border-left: 2px solid #e5e7eb; margin-left: 4px; }
.cl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.cl-dot {
  position: absolute; left: -7px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: #b9c0c9; border: 2px solid #fff; box-shadow: 0 0 0 1px #e5e7eb;
}
.cl-item:last-child .cl-dot { background: var(--primary, #07203f); }
.cl-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cl-version { font-size: 14px; font-weight: 700; color: var(--text, #333); letter-spacing: .3px; }
.cl-current {
  font-size: 11px; color: var(--primary, #07203f); background: #eef3f9;
  border: 1px solid #c6d7e8; border-radius: 4px; padding: 0 6px; line-height: 1.6;
}
.cl-date { font-size: 12px; color: var(--text-muted, #9aa0a6); }
.cl-title { font-size: 13px; color: var(--text, #333); margin: 4px 0 0; }
.cl-list { margin: 6px 0 0; padding-left: 18px; }
.cl-list li { font-size: 12.5px; color: var(--text-muted, #6b7280); line-height: 1.65; margin-bottom: 2px; }

/* ===== v2.20.0 本地收藏 ===== */
.fav-btn {
  margin-left: auto; flex: 0 0 auto;
  padding: 6px 14px; border: 1px solid var(--border, #d1d5db); border-radius: 6px;
  background: var(--card-bg, #fff); color: var(--text-muted, #666);
  font-size: 13px; cursor: pointer; transition: .15s; white-space: nowrap;
}
.fav-btn:hover { border-color: #f6c344; color: #b8953e; }
.fav-btn.faved { border-color: #f6c344; background: #fffbeb; color: #b8953e; font-weight: 600; }

.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fav-card {
  display: flex; align-items: stretch;
  border: 1px solid var(--border, #e5e7eb); border-left: 4px solid #f6c344;
  border-radius: 8px; background: var(--card-bg, #fff); overflow: hidden;
}
.fav-card-link {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; text-decoration: none; color: inherit;
}
.fav-card-link:hover .fav-card-name { color: var(--primary, #07203f); }
.fav-card-icon { font-size: 22px; flex: 0 0 auto; }
.fav-card-info { display: flex; flex-direction: column; min-width: 0; }
.fav-card-name { font-size: 13.5px; font-weight: 600; color: var(--text, #333); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-card-desc { font-size: 11.5px; color: var(--text-muted, #888); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-card-remove {
  flex: 0 0 auto; width: 40px; border: none; border-left: 1px solid var(--border, #e5e7eb);
  background: #fffbeb; color: #b8953e; font-size: 15px; cursor: pointer; transition: .15s;
}
.fav-card-remove:hover { background: #fdf4f3; color: #0a2e5c; }

@media (max-width: 640px) {
  .fav-grid { grid-template-columns: 1fr; }
}

/* ===== 工伤模块 v2.22.0：分层彩色解剖人形 + 部位信息卡 ===== */

/* 图层切换条（位于 SVG 上方；小屏横向可滚动） */
.gs-layer-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-bottom: 8px; padding: 6px 8px;
  background: #f8f9fb; border: 1px solid var(--border, #e5e7eb); border-radius: 8px;
}
.gs-layer-hint { font-size: 11.5px; color: var(--text-muted, #888); margin-right: 2px; white-space: nowrap; }
.gs-layer-btn {
  padding: 4px 10px; border: 1px solid var(--border, #d1d5db); border-radius: 6px;
  background: var(--card-bg, #fff); color: var(--text, #333); font-size: 12.5px;
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.gs-layer-btn:hover { border-color: var(--primary, #07203f); color: var(--primary, #07203f); }
.gs-layer-btn.active { background: var(--primary, #07203f); color: #fff; border-color: var(--primary, #07203f); }

/* 人体 SVG 体块底色：分层渐变由 inline fill 提供，此处仅为体块描边与圆角观感 */
.gs-body-svg .gs-figure-base { stroke: #b8ae9c; stroke-width: 1.5; }

/* 12 个热区：填充/描边由 inline 属性随图层切换，此处仅承载交互态；
   选中态用高亮暖橙 !important 覆盖 inline，保证所有图层下都醒目 */
.gs-body-svg .gs-region { cursor: pointer; transition: fill .15s, stroke .15s; }
.gs-body-svg .gs-region:hover { filter: brightness(1.08); }
.gs-body-svg .gs-region.active { fill: #c9a961 !important; stroke: #0a2e5c !important; stroke-width: 2.4 !important; }

/* 右侧栏：信息卡 + 部位表 */
.gs-body-right { flex: 1; min-width: 320px; display: flex; flex-direction: column; gap: 12px; }

/* 部位信息卡（模拟"立体结构大图"的替代方案） */
.gs-part-card {
  border: 1px solid var(--border, #e5e7eb); border-top: 4px solid var(--primary, #07203f);
  border-radius: 10px; background: var(--card-bg, #fff); padding: 12px 16px; text-align: center;
}
.gs-part-title { margin: 0 0 6px; font-size: 17px; }
.gs-part-art { display: flex; justify-content: center; margin: 4px 0 8px; }
.gs-part-art svg { max-width: 100%; height: auto; }
.gs-part-desc { font-size: 13px; color: var(--text, #333); line-height: 1.65; text-align: left; margin: 6px 0; }
.gs-part-count { font-size: 13px; color: #07203f; text-align: left; margin: 6px 0; }
.gs-part-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0 6px; text-align: left; }
.gs-legend-cap { font-size: 12px; color: var(--text-muted, #888); }
.gs-legend-item { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text, #333); }
.gs-legend-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(0,0,0,.15); }
.gs-part-ref { margin: 8px 0 0; text-align: left; }

/* 移动端适配：信息卡与 SVG 上下堆叠、图层按钮条横向可滚动 */
@media (max-width: 640px) {
  .gs-body-svg-wrap { flex: none; width: 100%; }
  .gs-body-right { width: 100%; min-width: 0; }
  .gs-layer-bar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .gs-layer-bar::-webkit-scrollbar { height: 4px; }
  .gs-layer-bar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
  .gs-layer-hint { flex: 0 0 auto; }
  .gs-layer-btn { flex: 0 0 auto; }
  .gs-part-art svg { width: 108px; height: 108px; }
}


/* ============================================================
   v2.23.0：鉴定类型总览（Tab5）
   ============================================================ */
.gs-jd-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.gs-jd-fbtn {
  padding: 7px 14px; border: 1px solid var(--border, #dcdfe6); border-radius: 18px;
  background: #fff; color: var(--text-main, #303133); font-size: 13px; cursor: pointer;
  transition: all .18s ease;
}
.gs-jd-fbtn:hover { border-color: #0a2e5c; color: #0a2e5c; }
.gs-jd-fbtn.active { background: #0a2e5c; border-color: #0a2e5c; color: #fff; font-weight: 600; }

.gs-jd-grouphd {
  margin: 22px 0 10px; padding-left: 10px; font-size: 15px; color: #0a2e5c;
  border-left: 4px solid #0a2e5c; line-height: 1.2;
}
.gs-jd-grouphd:first-child { margin-top: 4px; }

.gs-jd-card {
  border: 1px solid var(--border, #dcdfe6); border-left: 3px solid #0a2e5c;
  border-radius: 6px; padding: 12px 14px; margin-bottom: 10px; background: #fff;
  transition: box-shadow .18s ease;
}
.gs-jd-card:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .07); }
.gs-jd-card[data-path="civil"] { border-left-color: #2c6fb5; }

.gs-jd-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.gs-jd-name { font-size: 14.5px; font-weight: 600; color: var(--text-main, #303133); }

.gs-jd-badge {
  display: inline-block; padding: 2px 8px; border-radius: 3px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.gs-jd-badge-work { background: #fdecef; color: #0a2e5c; border: 1px solid #c6d7e8; }
.gs-jd-badge-civil { background: #e9f2fa; color: #2c6fb5; border: 1px solid #bcd9ef; }

.gs-jd-brief { margin: 0 0 8px; font-size: 13px; color: var(--text-sub, #606266); line-height: 1.65; }

.gs-jd-details { margin-top: 6px; }
.gs-jd-details > summary {
  cursor: pointer; font-size: 12.5px; color: #2c6fb5; padding: 5px 0;
  user-select: none; list-style: none;
}
.gs-jd-details > summary::-webkit-details-marker { display: none; }
.gs-jd-details > summary::before { content: '▸ '; font-size: 11px; }
.gs-jd-details[open] > summary::before { content: '▾ '; }
.gs-jd-details > summary:hover { color: #0a2e5c; text-decoration: underline; }

.gs-jd-kv { margin: 5px 0; font-size: 13px; line-height: 1.7; color: var(--text-main, #303133); }
.gs-jd-k {
  display: inline-block; min-width: 96px; color: var(--text-sub, #606266);
  font-weight: 600; vertical-align: top;
}
.gs-jd-subhd {
  margin: 12px 0 5px; font-size: 13px; font-weight: 600; color: #0a2e5c;
  padding-bottom: 3px; border-bottom: 1px dashed #e6e8eb;
}

.gs-jd-stage {
  display: inline-block; padding: 1px 7px; margin-left: 4px; border-radius: 3px;
  background: #f4f4f5; color: #606266; font-size: 11.5px;
}

.gs-jd-flow {
  margin: 4px 0; padding: 8px 10px; background: #fafbfc; border-radius: 4px;
  font-size: 12.5px; line-height: 1.75; color: var(--text-main, #303133);
}

.gs-jd-basis {
  margin: 6px 0; padding: 8px 10px; background: #fbfbfc; border-left: 2px solid #d9dde2;
  border-radius: 3px; font-size: 12.5px; line-height: 1.7;
}
.gs-jd-basistxt { color: var(--text-sub, #606266); }

.gs-jd-list { margin: 4px 0 4px 18px; padding: 0; }
.gs-jd-list li {
  margin: 5px 0; font-size: 12.5px; line-height: 1.75; color: var(--text-main, #303133);
}

.gs-jd-rule {
  margin: 4px 0; padding: 9px 11px; background: #f7fafc; border-left: 3px solid #2c6fb5;
  border-radius: 3px; font-size: 12.5px; line-height: 1.75; color: var(--text-main, #303133);
}
.gs-jd-burden {
  margin: 4px 0; padding: 9px 11px; background: #fff9f0; border-left: 3px solid #e8a33d;
  border-radius: 3px; font-size: 12.5px; line-height: 1.75; color: var(--text-main, #303133);
}

.gs-jd-cmp { margin-top: 22px; }
.gs-jd-table td { vertical-align: top; font-size: 12.5px; line-height: 1.7; }
.gs-jd-table th:nth-child(2) { color: #0a2e5c; }
.gs-jd-table th:nth-child(3) { color: #2c6fb5; }

.gs-jd-coexist, .gs-jd-repeat, .gs-jd-tips { margin-top: 14px; }
.gs-jd-repeat { border-left: 3px solid #e8a33d; }
.gs-jd-tips { border-left: 3px solid #4a9e6b; }

@media (max-width: 640px) {
  .gs-jd-k { min-width: 0; display: block; }
  .gs-jd-filter { gap: 6px; }
  .gs-jd-fbtn { padding: 6px 11px; font-size: 12px; }
  .gs-jd-card { padding: 10px 11px; }
  .gs-jd-name { font-size: 13.5px; }
}

/* ===================================================================
   v2.25.0 新增：顶部导航「辅助法律分析」下拉菜单 + 法律分析模块（la-*）
   =================================================================== */

/* ---- 顶部下拉菜单 ---- */
.nav-dd { position: relative; display: flex; align-items: center; flex: none; }
.nav-dd-toggle { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nav-dd-caret { font-size: 10px; opacity: .75; transition: transform .15s; }
.nav-dd.open .nav-dd-caret { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(680px, calc(100vw - 32px));
  /* v2.47.0：菜单条目扩充至 27 个模块 + 3 个分区标题，放宽可视高度以减少滚动 */
  max-height: min(80vh, 720px); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.16);
  padding: 10px; display: none;
  /* v2.29.0：双列自适应网格，随窗口收缩自动回退单列；不超出屏幕范围 */
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; z-index: 300;
}
.nav-dd.open .nav-dd-menu { display: grid; }
/* 菜单项位于 .top-nav 内，须用后代选择器覆盖 .top-nav a 的白色系样式；
   v2.46.0：顶层导航项已改为 white-space:nowrap，此处必须显式恢复换行，
   否则菜单内的名称/说明会被压成一行溢出 */
.top-nav .nav-dd-menu a {
  color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 400; display: flex; align-items: flex-start; gap: 10px; line-height: 1.35;
  min-width: 0; white-space: normal;
}
.top-nav .nav-dd-menu a:hover { background: var(--primary-light); color: var(--primary); }
.nav-dd-ico { font-size: 18px; line-height: 1.2; flex: none; }
.nav-dd-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nav-dd-txt b { font-weight: 600; font-size: 13.5px; }
.nav-dd-txt small { color: var(--text-muted); font-size: 12px; font-weight: 400; }

/* ---- v2.34.0：下拉菜单聚合分区（「企业破产」） ---- */
/* 分区容器横跨两列；标题为可折叠浅色小标题，组内条目同样双列排布 */
.nav-dd-group { grid-column: 1 / -1; min-width: 0; }
.nav-dd-group-title {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; margin-top: 4px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: var(--primary); background: var(--primary-light);
  border-radius: 8px; cursor: pointer; user-select: none;
}
.nav-dd-group-title:hover { background: #e2edf6; }
.nav-dd-group-caret { font-size: 10px; opacity: .8; transition: transform .15s; }
.nav-dd-group-title.collapsed .nav-dd-group-caret { transform: rotate(-90deg); }
.nav-dd-group-n {
  margin-left: auto; font-size: 11px; font-weight: 600;
  color: var(--primary); opacity: .75;
  background: #fff; border-radius: 999px; padding: 0 7px; line-height: 16px;
}
.nav-dd-group-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }

/* ---- v2.44.0：顶部导航「专题学习」下拉菜单（整合民法典/公司法学习与理解适用等专题入口） ---- */
/* 单列窄菜单，与「辅助法律分析」双列大菜单区分；含分组小标题 */
.nav-dd-menu.nav-dd-study {
  width: min(400px, calc(100vw - 32px));
  grid-template-columns: 1fr;
  gap: 2px;
}
.nav-dd-study .nav-dd-group-title { margin-top: 2px; }
.nav-dd-study .nav-dd-group-title:first-child { margin-top: 0; }
.nav-dd-study .nav-dd-group-body { grid-template-columns: 1fr; }
.nav-dd-study .nav-dd-ext {
  margin-top: 4px; margin-left: 12px; padding: 3px 8px; border-radius: 6px !important;
  font-size: 12.5px !important; color: var(--text-muted) !important; display: inline-flex !important;
  align-items: center; gap: 6px; width: auto !important;
}
.nav-dd-study .nav-dd-ext:hover { background: var(--primary-light) !important; color: var(--primary) !important; }

/* ---- v2.64.0：主导航内容下拉（法规库 / 案例库 / 法律问答 / 思维导图 / 法律导航） ----
   复用 .nav-dd 引擎（点击开合、同时只开一个、Esc / 点外部关闭），此处仅收敛宽度与条目密度：
   5 个菜单的触发点更靠左，620px 宽 + 双列分组既能一屏看清主要内容，又不至溢出视口。 */
.nav-dd-menu.nav-dd-mod { width: min(620px, calc(100vw - 32px)); }
.nav-dd-mod .nav-dd-group-title { margin-top: 2px; }
.nav-dd-mod .nav-dd-group-title:first-child { margin-top: 0; }
.nav-dd-mod .nav-dd-group-body { gap: 1px 4px; }
.top-nav .nav-dd-menu.nav-dd-mod a { padding: 8px 10px; }
.top-nav .nav-dd-menu.nav-dd-mod .nav-dd-txt small { line-height: 1.4; }

/* ---- 分析模块通用容器 ---- */
.la-disclaimer {
  background: var(--primary-light); border: 1px solid #c6d7e8; color: #07203f;
  border-radius: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.6; margin-bottom: 14px;
}
.la-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.la-tab-btn {
  border: none; background: transparent; cursor: pointer; padding: 10px 16px;
  font-size: 14px; font-weight: 500; color: var(--text-muted); border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0; transition: .15s;
}
.la-tab-btn:hover { color: var(--primary); background: var(--primary-light); }
.la-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.la-panel { animation: la-fade .18s ease; }
@keyframes la-fade { from { opacity: 0; } to { opacity: 1; } }

/* 概览 */
.la-intro h3 { margin: 0 0 10px; font-size: 18px; }
.la-intro-p { color: var(--text); line-height: 1.75; margin: 0 0 14px; }
.la-scope { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; }
.la-scope b { display: block; margin-bottom: 6px; }
.la-scope ul { margin: 0; padding-left: 20px; color: var(--text-muted); line-height: 1.8; }
.la-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.la-stat { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; font-size: 13px; color: var(--text-muted); }
.la-stat b { color: var(--primary); font-size: 18px; margin-right: 4px; }
.la-index h3 { margin: 6px 0 12px; font-size: 16px; }
.la-idx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.la-idx-item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; text-decoration: none; color: var(--text); font-size: 13.5px; transition: .15s;
}
.la-idx-item:hover { border-color: var(--primary); background: var(--primary-light); }
.la-idx-n { background: var(--primary); color: #fff; border-radius: 20px; font-size: 12px; padding: 1px 9px; flex: none; }

/* 实务问题分析 */
.la-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.la-fbtn {
  border: 1px solid var(--border); background: var(--card-bg); border-radius: 20px;
  padding: 7px 14px; font-size: 13px; cursor: pointer; color: var(--text-muted); transition: .15s;
}
.la-fbtn:hover { border-color: var(--primary); color: var(--primary); }
.la-fbtn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.la-group-hd { margin: 22px 0 12px; padding: 8px 12px; background: linear-gradient(90deg, var(--primary-light), transparent); border-left: 4px solid var(--primary); border-radius: 4px; font-size: 15px; }
.la-issues .la-group-hd:first-child { margin-top: 0; }
.la-issue { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.la-issue[open] { box-shadow: var(--shadow); }
.la-q { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 14.5px; display: flex; align-items: baseline; gap: 8px; list-style: none; }
.la-q::-webkit-details-marker { display: none; }
.la-q-badge { background: var(--primary); color: #fff; border-radius: 6px; font-size: 12px; padding: 1px 8px; flex: none; font-weight: 600; }
.la-a, .la-basis, .la-practice, .la-risk { padding: 0 16px 12px; }
.la-a { padding-top: 4px; }
.la-label { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 2px 10px; margin-bottom: 6px; }
.la-label-a { background: #eef3f9; color: #0a2e5c; }
.la-label-b { background: #fff4e0; color: #b8953e; }
.la-label-p { background: #e9f7ef; color: #0f8a55; }
.la-a-body, .la-practice-body { line-height: 1.8; font-size: 13.8px; color: var(--text); }
.la-basis-list { display: flex; flex-wrap: wrap; gap: 6px; }
.la-basis-chip { background: #fff8ec; border: 1px solid #f2ddb0; color: #a6853d; border-radius: 6px; padding: 3px 10px; font-size: 12.5px; }
.la-risk { color: #b71504; background: #fdf6f5; border-top: 1px dashed #f0c9c2; padding: 10px 16px; font-size: 13px; line-height: 1.7; }

/* 法律法规全览 */
.la-law-search { display: flex; align-items: center; gap: 8px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin-bottom: 16px; }
.la-law-search-ico { font-size: 15px; opacity: .7; }
.la-law-search input { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; color: var(--text); }
.la-law-clear { border: none; background: #eef1f5; color: var(--text-muted); border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-size: 15px; line-height: 1; }
.la-law-clear:hover { background: #dfe4ea; }
/* v2.29.0：法规全览工具条（总数 + 展开/折叠全部） */
.la-law-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.la-law-total { font-size: 13px; color: var(--text-muted); }
.la-law-total b { color: var(--primary); }
.la-law-tbtns { display: flex; gap: 8px; }
.la-law-tbtn { border: 1px solid var(--border); background: var(--card-bg); color: var(--text); border-radius: 8px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; transition: all .15s; }
.la-law-tbtn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.la-law-group { margin-bottom: 20px; }
.la-law-group-hd { font-size: 15px; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--primary-light); display: flex; justify-content: space-between; align-items: baseline; }
.la-law-group-n { font-size: 12px; color: var(--text-muted); font-weight: 400; }
/* v2.29.0：以「每部法律法规」为单位的折叠单元 */
.la-law-bucket { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; background: var(--card-bg); overflow: hidden; }
.la-law-bucket-hd { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 11px 14px; font-size: 14px; font-weight: 600; color: var(--primary); background: #f7fafc; transition: background .15s; }
.la-law-bucket-hd::-webkit-details-marker { display: none; }
.la-law-bucket-hd:hover { background: var(--primary-light); }
.la-law-caret { display: inline-block; font-size: 11px; transition: transform .18s; color: var(--text-muted); }
.la-law-bucket[open] > .la-law-bucket-hd .la-law-caret { transform: rotate(90deg); }
.la-law-bucket-name { flex: 1; min-width: 0; }
.la-law-bucket-n { font-size: 12px; font-weight: 400; color: var(--text-muted); flex: none; }
.la-law-bucket-body { padding: 10px 12px 4px; }
.la-law-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; }
.la-law-bucket-body .la-law-item { background: #fcfdff; margin-left: 10px; border-left: 3px solid var(--primary-light); }
.la-law-hd { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.la-law-name { font-weight: 600; font-size: 13.5px; color: var(--primary); }
.la-law-art { font-size: 12.5px; color: var(--text-muted); flex: none; }
/* v4.4.10：条号本身可点（就地浮层），与正文引用同一体验 */
.la-art-cite { color: var(--primary); text-decoration: none; border-bottom: 1px dotted var(--primary-light);
  padding: 0 1px; border-radius: 2px; }
.la-art-cite:hover { background: #e2edf6; border-bottom-color: var(--primary); }
.la-art-cite:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.la-law-text { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--text); }
.la-law-note { margin: 6px 0 0; font-size: 12.5px; color: #0f8a55; line-height: 1.6; }
.la-law-noresult { text-align: center; color: var(--text-muted); padding: 24px; font-size: 14px; }

/* 「分析点 → 法条」关联跳转 */
.la-basis-link { cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 3px; transition: background .15s, border-color .15s; }
.la-basis-link:hover { background: #fdeccd; border-color: #e6c474; }
.la-basis-go { font-size: 11px; opacity: .7; }
.la-law-item.la-law-flash { animation: laLawFlash 1.8s ease; border-color: #e6a23c; box-shadow: 0 0 0 2px rgba(201, 169, 97, .25); }
@keyframes laLawFlash { 0% { background: #fff3d6; } 100% { background: var(--card-bg); } }

/* 维权与救济 */
.la-rights-block { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 12px; }
.la-rights-block h3 { margin: 0 0 8px; font-size: 15px; }
.la-rights-ul { margin: 0; padding-left: 20px; line-height: 1.9; font-size: 13.8px; }
.la-rb-claim { border-left: 4px solid var(--success); }
.la-rb-deadline { border-left: 4px solid var(--accent); }
.la-rb-channel { border-left: 4px solid var(--primary); }

/* ===== v2.40.0：全站统一法条引用索引（辅助法律分析模块接入） =====
   与法规库 laws/css/lib.css 保持同一套配色口径；主站变量名不同，故此处用等值色值。 */
.cref { color: #0a2e5c; border-bottom: 1px dashed #aac2db; background: rgba(47,111,208,.05);
  border-radius: 3px; padding: 0 1px; cursor: pointer; text-decoration: none; }
.cref:hover { background: #e2edf6; text-decoration: none; }
a.cref-art { font-weight: 600; background: rgba(10, 46, 92, .045); color: #0d3161; border-bottom-color: #aac2db; }
a.cref-art:hover { background: #e2edf6; }
a.cref-self { background: rgba(31,146,84,.07); color: #1a7a46; border-bottom-color: #a8d8bf; }
a.cref-self:hover { background: #e2f5ea; }
.cref-miss { color: #9aa1ab; background: transparent; border-bottom: 1px dotted #c9ccd1; }
/* 非法规名称（文书、表单、证照、栏目等）：原样呈现，不作引用标记 */
.cref-doc { color: inherit; background: transparent; border: 0; padding: 0; cursor: default; }
a.cref-gone { color: #a6853d; background: rgba(138,109,31,.07); border-bottom: 1px dotted #cbb77a; }
a.cref-gone:hover { background: #faf3dc; }

/* 概览页提示 */
.la-intro-tip { font-size: 12.8px; color: var(--text-muted); line-height: 1.75; margin: 0 0 4px;
  background: #fff8ec; border: 1px solid #f2ddb0; border-radius: 10px; padding: 9px 13px; }
.la-intro-tip b { color: #a6853d; }

/* 法律依据 chip 内的引用链接：弱化底色，继承 chip 语义色；命中本地条目时追加「本站 ↗」 */
.la-basis-chip .cref { background: transparent; padding: 0; border-radius: 0; color: inherit;
  border-bottom: 1px dashed rgba(138,109,31,.55); }
.la-basis-chip a.cref:hover { background: rgba(230,196,116,.4); }
.la-basis-chip a.cref-art { background: transparent; color: #0d3161; font-weight: 700;
  border-bottom-color: rgba(7, 32, 63, .5); }
.la-basis-chip a.cref-art:hover { background: rgba(230,196,116,.4); }
.la-basis-chip a.cref-gone { background: transparent; }
.la-basis-chip .cref-miss { color: inherit; opacity: .6; background: transparent; }
.la-basis-chip.la-basis-linked { padding-right: 4px; }
.la-basis-local { margin-left: 6px; padding-left: 6px; border-left: 1px solid #e6c474;
  font-size: 11px; color: #0a2e5c; text-decoration: none; white-space: nowrap; }
.la-basis-local:hover { text-decoration: underline; }

/* 法律法规全览：「法规库全文 ↗」入口 */
.la-law-full { margin-left: 5px; font-size: 11.5px; color: #0a2e5c; text-decoration: none;
  border-bottom: 1px dashed #aac2db; }
.la-law-full:hover { background: #e2edf6; }
.la-law-fullhint { color: #9aa1ab; font-size: 12px; }

/* 本案法条索引 */
.la-refhead h3 { margin: 0 0 8px; font-size: 17px; }
.la-refintro { color: var(--text-muted); line-height: 1.8; font-size: 13px; margin: 0 0 12px; }
.la-refintro b { color: var(--text); }
.la-refintro .cen-ref-miss { color: #9aa1ab; border-bottom: 1px dotted #c9ccd1; }
.la-refintro .cen-ref-gone { color: #a6853d; border-bottom: 1px dotted #cbb77a; }
.la-stat-warn b { color: #b71504; }
.la-refgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin: 4px 0 18px; }
.la-refcard { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.la-refcard-hd { display: flex; align-items: baseline; gap: 6px; margin-bottom: 7px; }
.la-refcard-name { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; color: #0a2e5c; text-decoration: none; }
.la-refcard-name:hover { text-decoration: underline; }
.la-refcard-cat { flex: none; font-size: 11.5px; color: var(--text-muted); }
.la-refcard-n { flex: none; font-size: 11.5px; color: #b8953e; background: #fff8ec; border-radius: 20px; padding: 1px 8px; }
.la-refcard-arts { display: flex; flex-wrap: wrap; gap: 5px; }
.la-refcard-arts .cref { font-size: 12.5px; padding: 1px 7px; border: 1px solid var(--border);
  border-radius: 6px; background: #fff; border-bottom-width: 1px; border-bottom-style: solid; }
.la-refcard-arts .cref:hover { border-color: var(--primary); background: var(--primary-light); }
.la-refcard-arts .cref-miss { color: #9aa1ab; background: #fafbfc; border-style: dashed; }
.la-refgone { background: #fffdf5; border: 1px solid #efe6cf; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.la-refgone h4 { margin: 0 0 9px; font-size: 14px; color: #6b5217; }
.la-refgone-miss { background: #fafbfc; border-color: var(--border); }
.la-refgone-miss h4 { color: var(--text-muted); }
.la-refgone-list { display: flex; flex-wrap: wrap; gap: 6px; }
.la-refgone-list .cref { font-size: 12.5px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 6px; }
.la-refgone-item { text-decoration: none; }
.la-refgone-item:hover { border-color: var(--primary); background: var(--primary-light); }
.la-refgone-tag { display: inline-block; margin-right: 5px; padding: 0 5px; border-radius: 4px;
  background: #eef1f5; color: #6b7280; font-size: 10.5px; transform: translateY(-1px); }
.la-refgone-c { color: var(--text-muted); font-size: 11px; }
.la-law-full-search { border-bottom-style: dotted; }
.la-refwait h3 { margin: 0 0 8px; font-size: 17px; }
.la-refwait p { color: var(--text-muted); line-height: 1.8; font-size: 13.2px; }

@media (max-width: 768px) {
  /* v3.9.3 修复手机端菜单溢出：
     原规则用 right:0 相对 .nav-dd 定位，小屏时向左展开 328px 会顶出屏幕左侧
     （实测 left=-152，文字被裁切），且高度 592px 超出视口底部。
     改为相对视口固定定位，左右各留 8px，高度不超视口。 */
  .nav-dd-menu {
    position: fixed;
    left: 8px; right: 8px; top: auto;
    transform: none;
    width: auto; max-width: none;
    max-height: calc(100vh - 132px);
    overflow-y: auto; overflow-x: hidden;
    grid-template-columns: 1fr;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
    z-index: 1200;
    -webkit-overflow-scrolling: touch;
  }
  /* 菜单内的分组标题与条目：允许换行，禁止横向溢出 */
  .nav-dd-menu .nav-dd-txt b,
  .nav-dd-menu .nav-dd-txt small { white-space: normal; word-break: break-word; }
  .nav-dd-group-body { grid-template-columns: 1fr; }
  .la-idx-grid { grid-template-columns: 1fr; }
  .la-refgrid { grid-template-columns: 1fr; }
  .la-tab-btn { padding: 8px 12px; font-size: 13px; }
}

/* ========= v2.59.0：12 个新工具（tools-extra.js）共用组件样式 ========= */

/* 文书/清单输出面板（wsmb 文书生成、zjqd 证据清单导出、bqrq 期限表复制导出） */
.lt-pre-doc {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; font-size: 14px; line-height: 1.9; white-space: pre-wrap;
  word-break: break-all; font-family: "FangSong", "SimSun", "STSong", serif; color: var(--text);
  max-height: 520px; overflow-y: auto; margin: 0 0 10px;
}
.lt-pre-doc-copy { margin-bottom: 14px; }

/* 折叠说明块（sfjz 司法救助条件、gjcx 管辖规则附注等） */
.lt-det {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card-bg); margin: 10px 0; overflow: hidden;
}
.lt-det summary {
  padding: 10px 14px; cursor: pointer; font-weight: 600; font-size: 13px;
  color: var(--primary); user-select: none; background: var(--primary-light);
}
.lt-det summary:hover { filter: brightness(0.97); }
.lt-det-body { padding: 12px 16px; font-size: 13px; line-height: 1.8; color: var(--text); }
.lt-det-body p { margin: 6px 0; }

/* 勾选项（zjqd 证据清单、hyhg 用工体检） */
.lt-check, .lt-radio {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
  margin: 6px 0; font-size: 13px; line-height: 1.6; cursor: pointer; transition: .15s;
  background: var(--card-bg);
}
.lt-check:hover, .lt-radio:hover { border-color: var(--primary); background: var(--primary-light); }
.lt-check input, .lt-radio input { margin-top: 4px; flex-shrink: 0; }
.lt-law-hint {
  display: block; width: 100%; margin-top: 4px;
  font-size: 12px; color: var(--text-muted);
}

/* 维权指引四步行动路线（wqzn） */
.lt-step { display: flex; gap: 10px; margin: 10px 0; align-items: flex-start; }
.lt-step b {
  flex-shrink: 0; min-width: 64px; text-align: center;
  background: var(--primary); color: #fff; border-radius: 8px;
  font-size: 12px; padding: 4px 8px; line-height: 1.5;
}
.lt-step p { margin: 2px 0 0; font-size: 13px; line-height: 1.7; }

/* 术语词典卡片（flsy） */
.lt-term {
  border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: 8px; background: var(--card-bg);
  padding: 10px 14px; margin: 8px 0;
}
.lt-term b { color: var(--primary); font-size: 14px; }
.lt-term p { margin: 4px 0 0; font-size: 13px; line-height: 1.7; color: var(--text); }

/* ==========================================================================
   v2.60.1 导航与首页入口位置调整
   --------------------------------------------------------------------------
   ① 主导航末尾新增「全站导航」入口（原页眉右侧金色圆钮移入菜单），金色高亮以示入口级；
   ② Hero 下方原「全站导航」条幅位改为「理论学习专题」入口（红金配色，沿用 .nav-band 结构）。
   条幅由 js/app.js 随首页路由渲染，天然只在首页出现，无需 JS 显隐控制。
   ========================================================================== */
.top-nav a.nav-sitemap {
  display: inline-flex; align-items: center; gap: 5px;
  color: #2B2109; font-weight: 700;
  background: linear-gradient(135deg, #E7D3A4, #C9A961 52%, #B8953E);
  box-shadow: 0 2px 8px rgba(184, 149, 62, .38), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.top-nav a.nav-sitemap:hover,
.top-nav a.nav-sitemap:focus-visible {
  color: #2B2109;
  background: linear-gradient(135deg, #F2E3BE, #D9BC77 52%, #C6A24A);
  box-shadow: 0 4px 12px rgba(184, 149, 62, .5), inset 0 1px 0 rgba(255, 255, 255, .55);
}

/* 注意特异度：css/modern.css 在本文件之后加载，且其中有 .nav-band 基础样式（深蓝渐变）。
   若只写 .nav-band-theory，同特异度下会被后加载的 .nav-band 压过（实测条幅仍是深蓝），
   故此处统一写成 .nav-band.nav-band-theory（0,2,0），不依赖加载顺序。 */
.nav-band.nav-band-theory {
  background:
    radial-gradient(620px 200px at 92% 0%, rgba(255, 238, 205, .13) 0%, rgba(255, 238, 205, 0) 62%),
    linear-gradient(112deg, #C00009 0%, #DE0A0A 48%, #B80009 100%);
  border-color: rgba(201, 169, 97, .46);
  box-shadow: 0 10px 28px rgba(196, 0, 9, .24);
}
.nav-band.nav-band-theory:hover {
  border-color: rgba(231, 211, 164, .80);
  box-shadow: 0 16px 36px rgba(196, 0, 9, .32);
}
/* 条幅党徽（v2.60.3）：改用共产党员网发布的标准党徽图案（金黄色，见根目录 party-emblem.png），
   置于党旗红的金边托盘上。不再使用 ☭ 字符——该字符字形随字体变化，与《中国共产党党徽党旗条例》
   第二条「镰刀和锤头组成的图案」并不一致，且第十四条禁止在党徽上添加文字、符号和图案。 */
.nav-band-theory .nav-band-ico {
  background: linear-gradient(135deg, #C4000A 0%, #A80912 100%);
  border: 1px solid rgba(231, 211, 164, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 4px 12px rgba(94, 10, 15, .36);
  color: transparent;
  font-size: 0;
}
.nav-band-theory .nav-band-emblem { display: block; width: 30px; height: 30px; }
.nav-band-theory .nav-band-body b { color: #FFF7E6; }
.nav-band-theory .nav-band-body span { color: rgba(255, 247, 230, .82); }
.nav-band-theory .nav-band-go { color: #4A070B; }

/* 中屏收紧主导航：v2.62.0 起导航两侧各固定 205px（品牌区 / 时钟区），
   单行可容纳的窗口宽度随之上移 —— 11 项在 1301–1500px 必须收紧才不折行
   （实测 1440px 未收紧时需 958px、可用仅 872px，会挤成两排）。 */
@media (min-width: 1301px) and (max-width: 1500px) {
  .top-nav { margin: 0 2px; gap: 1px; }
  .top-nav a { padding: 8px 10px; font-size: 13.5px; }
  .top-nav a.active::after { left: 10px; right: 10px; }
  .top-nav a.nav-sitemap { gap: 4px; }
}
/* 更窄的桌面窗（1301–1400px）再收紧一档，避免 11 项折行成两排 */
@media (min-width: 1301px) and (max-width: 1400px) {
  .top-nav a { padding: 7px 8px; font-size: 13px; }
  .top-nav a.active::after { left: 8px; right: 8px; }
}
/* ≤1300px 时主导航独占一行（整行可用），同样收紧一档即可单行容纳 11 项，
   避免只把「全站导航」挤到第二行（v2.62.0） */
@media (min-width: 769px) and (max-width: 1300px) {
  .top-nav { gap: 1px; }
  .top-nav a { padding: 7px 8px; font-size: 13px; }
  .top-nav a.active::after { left: 8px; right: 8px; }
}

/* v3.5.2：更新日志按版本折叠（details/summary），默认收起 */
.cl-det > summary.cl-head { cursor: pointer; list-style: none; user-select: none; }
.cl-det > summary.cl-head::-webkit-details-marker { display: none; }
.cl-det > summary.cl-head:hover .cl-version { color: var(--primary, #0a2e5c); }
.cl-caret { display: inline-block; width: 10px; font-size: 10px; color: #9aa4b2; transition: transform .15s ease; }
.cl-det[open] .cl-caret { transform: rotate(90deg); }
.cl-sum { font-size: 12.5px; color: #5c636e; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-det[open] > summary.cl-head { margin-bottom: 2px; }
@media (prefers-reduced-motion: reduce) { .cl-caret { transition: none; } }

/* 显式隐藏收起的明细：不依赖浏览器对 details 的默认处理（站点样式可能干扰） */
.cl-det:not([open]) > .cl-list { display: none !important; }
.cl-det[open] > .cl-list { display: block; }

/* v4.5.0：打印样式。此前只隐藏了浮层，正文之外的头图、导航、按钮、搜索芯片会一起打出来，
   老板键/归档时很不干净。原则：只留正文与免责声明——免责声明属合规内容，必须随稿打印。 */
@media print{
  .app-header,.hd,.site-header,.hd-sitemap,.sites-btn,.nav-ctl-btn,#toTop,.hs-chips,.hs-panel,
  .btn,.tool-actions,.tabs,.ft-nav,.sn-close{display:none!important}
  body{background:#fff!important}
  a{color:#000!important;text-decoration:none!important}
  a[href^="http"]:after{content://!important}
  .card,.panel,.result,.la-a{box-shadow:none!important}
  .ft-art{font-size:12pt!important}
  @page{margin:14mm}
}
