:root {
  /* 企业 VI：凌志源蓝 + 橙色弧线强调色 */
  --primary: #0047ab;
  --primary-dark: #003a8c;
  --primary-2: #0a67d9;
  --primary-soft: #eaf2fc;
  --accent: #f59300;
  --accent-ink: #b45309;
  --accent-soft: #fff3dd;
  --accent-light: #fff3dd;
  --text: #182235;
  --text-light: #5c6675;
  --border: #e4e9f1;
  --border-strong: #cdd7e6;
  --bg: #f4f6fa;
  --card: #ffffff;
  --danger: #d92828;
  --success: #129a52;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-md: 0 10px 28px -14px rgba(16, 24, 40, .22), 0 2px 6px rgba(16, 24, 40, .06);
  --shadow-lg: 0 24px 70px -28px rgba(16, 24, 40, .38);
  --shadow-primary: 0 8px 20px -10px rgba(0, 71, 171, .55);
  --ring: 0 0 0 3px rgba(0, 71, 171, .18);
  --font-sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* 搜索框流光描边的旋转角度（需注册才能被动画驱动；不支持 @property 的浏览器将静态渲染该渐变） */
@property --hero-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 480px at 82% -12%, rgba(0, 71, 171, .10), transparent 58%),
    radial-gradient(820px 420px at -8% 2%, rgba(245, 147, 0, .09), transparent 55%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(228, 233, 241, .9);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 10px 28px -24px rgba(0, 71, 171, .35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 3px 7px rgba(0, 71, 171, .18));
}
.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--border-strong);
}
.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav { display: flex; gap: 6px; flex: 1; }
.nav a {
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color .16s ease, background .16s ease;
}
.nav a:hover { background: var(--primary-soft); color: var(--primary); }
.nav a.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.badge {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  font-weight: 600;
}
.badge.ok { background: #dcfce7; color: var(--success); }
.badge.bad { background: #fee2e2; color: var(--danger); }

.icon-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  transition: border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* ---------- 设置弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-mask[hidden] { display: none; }
.modal {
  background: #fff;
  border-radius: 16px;
  width: min(720px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modal-in .22s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { margin: 0; font-size: 17px; letter-spacing: .5px; }
.modal-body { padding: 18px 22px; overflow-y: auto; }

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.setting-name { font-weight: 650; margin-bottom: 4px; color: var(--text); }
.setting-block { padding: 12px 0; border-bottom: 1px dashed var(--border); }
.setting-block:last-of-type { border-bottom: none; }

.cred-form { display: flex; gap: 8px; margin-top: 10px; }
.cred-form input { flex: 1; min-width: 0; }
.cred-form .btn { flex: none; }

.tabs-config {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
}
.tabs-config label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.stat-cards { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 16px; }
.stat-card {
  flex: 1;
  min-width: 140px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  box-shadow: var(--shadow-sm);
}
.stat-card .num { font-size: 22px; font-weight: 750; color: var(--primary); letter-spacing: .3px; }
.stat-card .lbl { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.stat-card .num.accent-ink { color: var(--accent-ink); }

/* 开关 */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background .2s ease;
  cursor: pointer;
}
.switch .slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .24);
}
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:focus-visible + .slider { box-shadow: var(--ring); }

.container {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 28px 72px;
}

.footer {
  margin-top: auto;
  text-align: center;
  color: var(--text-light);
  font-size: 12px;
  padding: 18px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------- 卡片 / 通用 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.card h3 { margin: 0 0 16px; font-size: 16px; letter-spacing: .3px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 22px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, opacity .16s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(0, 71, 171, .65); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: none; box-shadow: var(--ring), var(--shadow-primary); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn.secondary:hover { border-color: var(--primary); color: var(--primary); background: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn.secondary:focus-visible { box-shadow: var(--ring); }
.btn.small { padding: 5px 13px; font-size: 13px; border-radius: 9px; }

input[type=text], input[type=date], select, textarea {
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: var(--text);
  transition: border-color .16s ease, box-shadow .16s ease;
}
input:hover, select:hover, textarea:hover { border-color: #b9c6da; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: var(--ring); }
input[type=date] { cursor: pointer; }
.date-wrap { position: relative; }
.date-wrap input[type=date] { width: 100%; }
.date-ph {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  background: #fff;
  padding: 2px 8px 2px 4px;
  font-size: 13px;
  pointer-events: none;
  border-radius: 4px;
  white-space: nowrap;
}
textarea { width: 100%; resize: vertical; }

label { font-size: 13px; color: var(--text-light); font-weight: 500; }

/* 统一焦点可见性：键盘操作时给可点击元素清晰指示 */
.btn:focus-visible,
.hero-btn:focus-visible,
.icon-btn:focus-visible,
.mode-tabs button:focus-visible,
.seg-tabs button:focus-visible,
.tabs button:focus-visible,
.pager button:focus-visible,
.back-btn:focus-visible,
.hot-chip:focus-visible,
.history-chip:focus-visible,
.src-more:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* ---------- 检索表单 ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 18px;
}
.form-grid .span2 { grid-column: span 2; }
.form-grid .span4 { grid-column: span 4; }
.field { display: flex; flex-direction: column; gap: 6px; }

.mode-tabs { display: flex; gap: 2px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.mode-tabs button {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  transition: color .16s ease, border-color .16s ease;
}
.mode-tabs button:hover { color: var(--primary); }
.mode-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 650; }

.sources-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0 2px;
  align-items: stretch;
}
.sources-wrap { position: relative; }
/* 行底部「展开/收起」指示按钮 */
.src-more {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 4px 0 0;
  background: linear-gradient(rgba(255,255,255,0) 0%, rgba(255,255,255,.78) 45%, #fff 100%);
  cursor: pointer;
  border: none;
}
.src-more .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 4px 17px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--primary);
  box-shadow: 0 3px 10px rgba(0, 71, 171, .18);
  transition: all .16s ease;
}
.src-more:hover .pill {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.src-more .src-more-ico {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  transition: transform .2s ease;
}
.src-more.ico-up .src-more-ico { transform: rotate(180deg); }
/* 展开状态：按钮转为普通块置于底部，不再遮挡内容 */
.src-more.inline {
  position: static;
  background: none;
  padding: 10px 0 0;
}
.src-toggle {
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
  margin-left: 6px;
  user-select: none;
}
.src-toggle:hover { text-decoration: underline; }
.flag {
  width: 21px;
  height: 14px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
  display: block;
}
.globe-ico {
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
/* 国家/组织分组卡片 */
.source-group-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  background: #fff;
  flex: 1 1 auto;
  min-width: 178px;
  max-width: 292px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.source-group-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.source-group-card:has(.sgc-all:checked) {
  border-color: var(--primary);
  background: #f6f9ff;
  box-shadow: 0 0 0 3px rgba(0, 71, 171, .08);
}
.sgc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 7px;
  margin-bottom: 7px;
  border-bottom: 1px dashed var(--border);
}
.sgc-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
  color: var(--text);
}
.sgc-title input { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }
.sgc-count {
  font-size: 12px;
  color: var(--text-light);
  background: #f1f5f9;
  border-radius: 999px;
  padding: 2px 9px;
}
.sgc-items { display: flex; flex-wrap: wrap; gap: 5px 13px; }
.sgc-items label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  font-size: 12.5px;
  cursor: pointer;
}
.sgc-items input { accent-color: var(--primary); }

.history-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 14px; }

/* 简单检索：整页居中 hero（参考搜索引擎/佰腾工作台风格） */
.hero-page {
  max-width: 940px;
  margin: 0 auto;
  padding: 58px 24px 30px;
  text-align: center;
}
.hero-page > * { animation: hero-rise .5s ease both; }
.hero-page > *:nth-child(2) { animation-delay: .05s; }
.hero-page > *:nth-child(3) { animation-delay: .1s; }
.hero-page > *:nth-child(4) { animation-delay: .15s; }
.hero-page > *:nth-child(5) { animation-delay: .2s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: .5px;
  margin: 0 0 12px;
  line-height: 1.28;
}
.hero-title .accent {
  background: linear-gradient(120deg, var(--primary), var(--primary-2) 55%, #4d8ef7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--text-light);
  font-size: 15px;
  margin: 0 auto 34px;
  line-height: 1.8;
  max-width: 640px;
}
.hero-page .hero-box {
  /* 流光描边角度（@property 注册后方可参与动画；不支持的浏览器静态渲染渐变） */
  --hero-angle: 0deg;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--hero-angle),
      #c3d8f5 0deg,
      #c3d8f5 60deg,
      var(--primary-2) 105deg,
      #7db4f9 135deg,
      #c3d8f5 175deg,
      #c3d8f5 205deg,
      var(--accent) 252deg,
      #ffd98a 272deg,
      #c3d8f5 315deg,
      #c3d8f5 360deg) border-box;
  padding: 6px 6px 6px 24px;
  box-shadow: 0 10px 30px -12px rgba(0, 71, 171, .35);
  transition: box-shadow .18s ease, transform .18s ease;
  /* hero-rise（入场，沿用第3个子元素的 .1s 延迟）+ hero-glow（边框流光） */
  animation: hero-rise .5s ease .1s both, hero-glow 6s linear infinite;
}
@keyframes hero-glow {
  to { --hero-angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-page .hero-box { animation: hero-rise .5s ease .1s both; }
}
.hero-page .hero-box:focus-within {
  box-shadow: 0 16px 42px -14px rgba(0, 71, 171, .5);
  transform: translateY(-1px);
}
.hero-page .hero-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15.5px;
  padding: 11px 0;
  background: transparent;
  min-width: 0;
  box-shadow: none;
}
.hero-btn {
  flex: none;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border-radius: 999px;
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 2px;
  box-shadow: var(--shadow-primary);
  transition: transform .16s ease, box-shadow .16s ease;
}
.hero-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(0, 71, 171, .68); }
.hero-btn:active { transform: translateY(0); }
/* 热门检索 */
.hero-hot {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-hot-label {
  font-size: 13px;
  color: var(--text-light);
}
.hero-hot-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.hot-chip {
  border: 1px solid var(--primary-soft);
  background: #fff;
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 6px 17px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .16s ease;
  box-shadow: var(--shadow-sm);
}
.hot-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}
.hot-clear {
  font-size: 12px;
  color: var(--text-light);
  cursor: pointer;
  text-decoration: underline;
  margin-left: 4px;
}
/* 居中分段模式切换 */
.seg-tabs {
  display: inline-flex;
  background: #e9eef6;
  border-radius: 999px;
  padding: 4px;
  margin-top: 28px;
  border-bottom: none !important;
}
.seg-tabs button {
  border: none !important;
  background: transparent;
  margin: 0 !important;
  padding: 8px 24px !important;
  border-radius: 999px !important;
  color: var(--text-light);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}
.seg-tabs button.active {
  background: #fff;
  color: var(--primary);
  font-weight: 650;
  box-shadow: 0 3px 10px rgba(16, 24, 40, .12);
}
/* 特性三列 */
.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 42px;
}
.feature-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: left;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-item::after {
  content: '';
  position: absolute;
  right: -28px;
  top: -28px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--primary-soft);
  opacity: .5;
}
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature-ico {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary-soft), #f4f8ff);
  margin-bottom: 12px;
}
.feature-item:nth-child(1) .feature-ico { color: var(--primary); }
.feature-item:nth-child(2) .feature-ico { color: #d97706; background: linear-gradient(135deg, #fef3c7, #fff7ed); }
.feature-item:nth-child(3) .feature-ico { color: #0f766e; background: linear-gradient(135deg, #ccfbf1, #f0fdfa); }
.feature-item b { font-size: 14.5px; display: block; margin-bottom: 7px; color: var(--text); }
.feature-item p { margin: 0; color: var(--text-light); font-size: 12.5px; line-height: 1.7; }
/* 检索后收缩 */
.hero-page.compact { padding: 20px 24px 6px; }
.hero-page.compact .hero-title { font-size: 21px; margin-bottom: 8px; }
.hero-page.compact .hero-sub { display: none; }
.hero-page.compact .hero-features { display: none; }
.hero-page.compact .seg-tabs { margin-top: 16px; }
.hero-page.compact .hero-hot { margin-top: 14px; }
.history-chip {
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px;
  cursor: pointer;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background .16s ease;
}
.history-chip:hover { background: #d7e6f8; }

/* ---------- 结果表 ---------- */
.result-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--text-light);
  font-size: 13px;
}
.result-info b { color: var(--primary-dark); font-weight: 700; }

table.grid {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
table.grid th, table.grid td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
table.grid th {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  color: var(--text-light);
  font-weight: 650;
  font-size: 12.5px;
  white-space: nowrap;
  letter-spacing: .3px;
}
table.grid tr.clickable { cursor: pointer; }
table.grid tr.clickable:hover td { background: #f5f9ff; }

.title-cell { font-weight: 650; color: var(--primary-dark); }
.title-cell .c-highligth-default, .hl { color: var(--danger); font-style: normal; background: #fff0f0; border-radius: 3px; padding: 0 1px; }

/* 结果多选与导出工具条 */
.row-check, #checkAll { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }
.sel-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 15px;
  background: #f6f9ff;
  border: 1px solid var(--primary-soft);
  border-radius: 10px;
}
.sel-count { color: var(--primary-dark); font-size: 13px; font-weight: 700; margin-right: auto; }

.muted { color: var(--text-light); font-size: 12px; }
.mono { font-family: "JetBrains Mono", Consolas, Monaco, "Cascadia Code", monospace; font-size: 12.5px; }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.pager button {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  font-weight: 550;
  transition: border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pager button.current { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-color: transparent; box-shadow: var(--shadow-primary); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 详情页 ---------- */
.detail-head h2 { margin: 6px 0 13px; font-size: 22px; line-height: 1.5; letter-spacing: .2px; }
.detail-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.back-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 7px 19px;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: all .16s ease;
}
.back-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.chip {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: 8px;
  padding: 4px 11px;
  font-size: 12.5px;
  font-weight: 550;
}

/* 详情页签：胶囊式带图标 */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 4px 0 12px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tabs button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-light);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition: all .16s ease;
}
.tabs button:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
}
.tabs button.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  color: #fff;
  font-weight: 650;
  box-shadow: 0 4px 12px rgba(0, 71, 171, .28);
}
.tab-ico { font-size: 14px; line-height: 1; }

.tab-panel { min-height: 120px; }
.tab-panel.loading, .loading-block { padding: 44px; text-align: center; color: var(--text-light); }

.kv-table { width: 100%; border-collapse: collapse; }
.kv-table td { padding: 9px 13px; border-bottom: 1px solid var(--border); }
.kv-table td.k { width: 190px; color: var(--text-light); background: #f8fafc; font-weight: 550; vertical-align: top; }

.longtext { line-height: 1.85; white-space: pre-wrap; word-break: break-word; }

/* 平台返回的富文本（权利要求/说明书，含表格） */
.rich-content { white-space: normal; }
.rich-content p { margin: 0 0 9px; }
.rich-content table {
  border-collapse: collapse;
  margin: 12px 0;
  background: #fff;
  max-width: 100%;
  display: block;
  overflow-x: auto;
}
.rich-content th, .rich-content td {
  border: 1px solid var(--border-strong);
  padding: 6px 13px;
  font-size: 13px;
  line-height: 1.55;
  vertical-align: middle;
}
.rich-content th { background: #f1f5f9; font-weight: 650; }
.rich-content th p, .rich-content td p { margin: 0; }
.rich-content sub, .rich-content sup { font-size: .72em; }

.claim-item { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.claim-item .no { color: var(--primary); font-weight: 750; white-space: nowrap; }
.claim-children { margin-left: 30px; }

.score-bar-row { display: flex; align-items: center; gap: 13px; margin: 11px 0; }
.score-bar-row .name { width: 100px; text-align: right; color: var(--text-light); }
.score-track { flex: 1; height: 15px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.score-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #4d8ef7); border-radius: 999px; }
.score-val { width: 50px; font-weight: 700; color: var(--primary-dark); }

/* ---------- 图表 ---------- */
.chart-bars { display: flex; flex-direction: column; gap: 7px; margin: 12px 0; }
.bar-row { display: flex; align-items: center; gap: 11px; font-size: 13px; }
.bar-row .bar-name { width: 250px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.bar-row .bar-track { flex: 1; height: 20px; background: #eef2f7; border-radius: 7px; overflow: hidden; }
.bar-row .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0047ab, #6f9bd4);
  border-radius: 7px;
  min-width: 2px;
}
.bar-row .bar-count { width: 90px; color: var(--text-light); }

/* ---------- 统计页 ---------- */
.ana-toolbar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.ana-toolbar .field { min-width: 170px; }

/* ---------- 帮助 ---------- */
.help-table { width: 100%; border-collapse: collapse; }
.help-table th, .help-table td { padding: 9px 13px; border: 1px solid var(--border); text-align: left; }
.help-table th { background: #f8fafc; font-weight: 650; }

/* 语法帮助页 */
.help-h { margin: 22px 0 9px; font-size: 15px; color: var(--primary); font-weight: 700; }
.help-example {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 9px;
  padding: 12px 16px;
  margin: 9px 0;
}
.help-example .ex-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 5px 0;
  flex-wrap: wrap;
}
.help-example .ex-label {
  color: var(--text-light);
  font-size: 13px;
  flex: none;
}
.help-example code {
  display: inline-block;
  font-family: "JetBrains Mono", Consolas, Monaco, "Cascadia Code", monospace;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 3px 11px;
  border-radius: 6px;
  font-weight: 650;
  font-size: 13.5px;
  word-break: break-all;
}
.help-example .ex-desc {
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.7;
}
.help-faq { margin: 8px 0; padding-left: 22px; }
.help-faq li { margin: 8px 0; line-height: 1.75; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #111827;
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 1000;
  max-width: 80vw;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .28);
  font-size: 13.5px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); }

.empty { padding: 52px; text-align: center; color: var(--text-light); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .topbar { gap: 14px; padding: 0 18px; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .span4, .form-grid .span2 { grid-column: span 2; }
  .hero-title { font-size: 30px; }
  .hero-features { grid-template-columns: 1fr; }
  .container { padding: 18px 18px 60px; }
}

@media (max-width: 560px) {
  .topbar { height: 58px; gap: 8px; padding: 0 12px; }
  .brand-name { display: none; }
  .brand-divider { display: none; }
  .nav { gap: 2px; overflow-x: auto; }
  .nav a { padding: 7px 13px; white-space: nowrap; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span4, .form-grid .span2 { grid-column: span 1; }
  .hero-title { font-size: 26px; }
  .hero-box { padding-left: 18px; }
  .hero-btn { padding: 11px 22px; letter-spacing: 1px; }
  .result-info { flex-direction: column; align-items: flex-start; gap: 6px; }
  .container { padding: 14px 14px 56px; }
  .card { padding: 16px; }
}
