
/* ========= 全局现代化样式 ========= */
:root {
  --color-primary: #0a2e5c;        /* 品牌深蓝（nuochi 主色） */
  --color-primary-light: #1a4a7c;  /* 深蓝·提亮 */
  --color-gold: #c9a961;           /* 品牌金（nuochi 辅色） */
  --color-gold-deep: #b8953e;
  --color-accent: #c9a961;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-bg: #f8fafc;
  --color-border: #e5e7eb;
  --color-card: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 26px rgba(10,46,92,0.09);
  --shadow-lg: 0 18px 48px rgba(6,28,55,0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* ==========================================================================
   Hero 区域（首页）
   --------------------------------------------------------------------------
   v2.54.0 视觉重做（第二版）：
     第一版是「浅底 + 暖红光晕」，色调与 nuochi.cn 不一致。现将 Hero 改为
     **nuochi 同款的深蓝品牌主视觉** —— 深蓝斜向渐变打底、金色细网格与柔光、
     白色主标题 + 金色眉题（上下各一道金色细线，复刻 nuochi 的「EXCELLENCE
     IN LAW」处理）、金色主 CTA + 白描边次 CTA，右侧为玻璃质感数据面板。
     整体层次：眉题 → 主标题 → 副标语 → 说明 → 按钮；比 nuochi 原版更精细
     （网格纹理、渐变文字、金色描边、悬浮卡片）。
   ========================================================================== */
.home-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1100px 420px at 88% -12%, rgba(201,169,97,.20) 0%, rgba(201,169,97,0) 62%),
    linear-gradient(135deg, #061c37 0%, #0a2e5c 46%, #0d3a70 78%, #0a2e5c 100%);
  border: 1px solid rgba(201,169,97,.28);
  border-radius: 18px;
  padding: 46px 48px;
  margin-bottom: 28px;
  box-shadow: 0 18px 48px rgba(6,28,55,.24), inset 0 1px 0 rgba(255,255,255,.07);
  /* 覆盖 style.css 遗留的 .hero{text-align:center}（首页 Hero 改为左对齐层次排版） */
  text-align: left;
}
/* 细网格纹理：nuochi 蓝底上的细腻肌理，避免大色块平板 */
.home-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px, 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 82% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 82% 0%, #000 0%, transparent 72%);
}
/* 金色收口细线（顶部） */
.home-hero::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, rgba(201,169,97,0), #c9a961 18%, #e6d5a8 50%, #c9a961 82%, rgba(201,169,97,0));
  pointer-events: none;
}
.home-hero .hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.home-hero .hero-orb.o1 {
  top: -170px; right: -110px; width: 430px; height: 430px;
  background: radial-gradient(circle, rgba(201, 169, 97, .20) 0%, rgba(201, 169, 97, 0) 68%);
}
.home-hero .hero-orb.o2 {
  bottom: -190px; left: -90px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(120, 170, 232, .16) 0%, rgba(120, 170, 232, 0) 70%);
}
.home-hero .hero-in {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 44px;
}
.hero-main { flex: 1 1 auto; min-width: 0; }
/* 眉题：金色细线 + 金色字，复刻 nuochi 主视觉的「EXCELLENCE IN LAW」 */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 3.5px; text-transform: uppercase;
  color: #e2cd97; margin-bottom: 18px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: ''; width: 30px; height: 1px; border-radius: 1px;
  background: linear-gradient(90deg, rgba(201,169,97,0), #c9a961);
}
.hero-eyebrow::after { background: linear-gradient(90deg, #c9a961, rgba(201,169,97,0)); }
.home-hero h1 {
  margin: 0 0 14px;
  font-size: 44px; line-height: 1.14; letter-spacing: 1.5px; font-weight: 800;
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 52%, #e8d9ae 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #fff;
}
/* 副标语 / 说明段落：用 .home-hero p.xxx 提高优先级，
   以覆盖 style.css 中遗留的 `.hero p { color: var(--text-muted); font-size: 14px; margin: 0 }` */
.home-hero p.hero-sub {
  margin: 0 0 14px; font-size: 15px; font-weight: 600;
  letter-spacing: 2.5px; color: #e2cd97;
}
.home-hero p.hero-desc {
  margin: 0 0 26px; max-width: 680px;
  font-size: 14.5px; line-height: 1.9; color: rgba(255,255,255,.80);
}
.home-hero p.hero-desc strong { color: #f0e0b8; font-weight: 700; }
/* 右侧数据面板：深蓝玻璃质感 + 金色描边 */
.hero-kpis {
  flex: 0 0 252px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 14px; border-radius: 15px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(201,169,97,.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  backdrop-filter: blur(4px);
}
.hero-kpis .kpi { display: flex; flex-direction: column; gap: 3px; padding: 9px 6px; text-align: center; }
.hero-kpis .kpi b { font-size: 22px; font-weight: 800; color: #f0e0b8; line-height: 1.1; }
.hero-kpis .kpi span { font-size: 11.5px; color: rgba(255,255,255,.72); letter-spacing: .5px; }
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* v4.4.2：首页 hero 四入口（法律计算 / 办公应用 / 法律问答 / 场景导航）
   —— 用 Grid 而非 Flex 换行：4 列等宽一次成型，宽度不足时整列折成 2×2，
   不会出现「3+1」的错位断行；按钮统一 width:100% 保证四个按钮严格等宽。 */
.home-hero .hero-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
}
/* 四个按钮等宽等高：min-height 兜住 44px 的可点区域（窄屏收紧内边距后仍达标） */
.home-hero .hero-actions .btn-lg {
  width: 100%;
  min-height: 46px;
  padding: 13px 16px;
  gap: 8px;
}
/* 图标与文字分列：图标不参与换行，文字 nowrap，避免窄屏把「法律计算」拆成两行 */
.home-hero .hero-actions .hero-btn-ico {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}
.home-hero .hero-actions .hero-btn-txt { white-space: nowrap; }
/* 中屏：hero 主栏被右侧数据面板挤窄，四列改 2×2（宽块限死，按钮不被拉散） */
@media (max-width: 1100px) {
  .home-hero .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 340px;
  }
}
/* 窄屏：两列保留，收紧内边距与字号，320px 下仍能两列并排且不横向溢出 */
@media (max-width: 420px) {
  .home-hero .hero-actions { max-width: none; gap: 12px 10px; }
  .home-hero .hero-actions .btn-lg { padding: 12px 8px; font-size: 14px; gap: 6px; }
  .home-hero .hero-actions .hero-btn-ico { font-size: 15px; }
}
.btn-lg {
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
}
/* 主 CTA：nuochi 同款金色实心按钮（深色字） */
.btn-primary,
.home-hero .btn-primary {
  background: linear-gradient(135deg, #e2cd97 0%, #c9a961 48%, #b8953e 100%);
  color: #2b2109;
  border: none;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(184,149,62,.34), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-primary:hover,
.home-hero .btn-primary:hover {
  background: linear-gradient(135deg, #e8d7a8 0%, #d2b46d 48%, #c09b44 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(184,149,62,.46), inset 0 1px 0 rgba(255,255,255,.5);
}
/* Hero 内次级按钮：深蓝底上的白描边按钮 */
.home-hero .btn-secondary {
  background: rgba(255,255,255,.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,.52);
}
.home-hero .btn-secondary:hover {
  background: rgba(255,255,255,.16); border-color: #fff; color: #fff;
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  .home-hero { padding: 30px 22px; border-radius: 14px; }
  .home-hero .hero-in { flex-direction: column; align-items: stretch; gap: 22px; }
  .home-hero h1 { font-size: 30px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: 2.6px; }
  .hero-eyebrow::before, .hero-eyebrow::after { width: 18px; }
  .hero-kpis { flex: none; }
}

/* ========= 数据统计卡片 ========= */
.home-stats {
  display: grid;
  /* v2.60.3：固定 3 列 —— 6 张卡正好 2 行 × 3 列，不留单张空行
     （原来 auto-fit 在 4 列时 5 张卡 → 4 + 1，末行只剩一张）。 */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
  border-left: 4px solid transparent;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
/* v2.54.0：五张统计卡改为 nuochi 同族配色（深蓝 / 香槟金 / 点缀红 / 钢蓝 / 深蓝），
   避免原先紫、青、橙与品牌色打架 */
.stat-blue { border-left-color: #0a2e5c; }
.stat-green { border-left-color: #c9a961; }
.stat-orange { border-left-color: #b8953e; }
.stat-purple { border-left-color: #d81e06; }
.stat-teal { border-left-color: #1a4a7c; }
.stat-icon {
  font-size: 36px;
  line-height: 1;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* ========= 章节卡片（v2.54.0：深蓝描边 + 柔和投影 + 标题金色收口） ========= */
.section-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #e9eef5;
  box-shadow: 0 6px 22px rgba(10,46,92,.055), 0 1px 2px rgba(10,46,92,.04);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e9eef5;
  position: relative;
}
/* 标题下方短金线：nuochi 风格的「金色收口」，替代整行灰线 */
.section-header::after {
  content: ''; position: absolute; left: 0; bottom: -1px; width: 58px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, #0a2e5c, #c9a961);
}
.section-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0a2e5c;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-header h2::before {
  content: ''; width: 4px; height: 18px; border-radius: 2px; flex: none;
  background: linear-gradient(180deg, #1a4a7c, #07203f);
}
.section-more {
  color: #0a2e5c;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.section-more:hover {
  text-decoration: underline;
}

/* ========= 工具分类卡片（现代化） ========= */
.cat-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.cat-card-modern {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.cat-card-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}
.cat-card-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.cat-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}
.cat-card-count {
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}
.cat-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tool-chip {
  background: #eef3f9;
  color: #07203f;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}
.tool-chip-more {
  background: #f3f4f6;
  color: #6b7280;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

/* ========= 热门工具网格 ========= */
.hot-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.hot-tool-card {
  display: flex;
  align-items: center;
  gap: 12px;
  /* v4.4.2：网格项默认 min-width:auto，320px 视口下卡片按 min-content（295px）撑破轨道，
     导致整页横向溢出 16px。归零后由轨道宽度决定，宽屏下无任何视觉变化。 */
  min-width: 0;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.hot-tool-card:hover {
  background: #eef3f9;
  border-color: var(--color-primary-light);
  transform: translateX(4px);
}
.hot-tool-icon {
  font-size: 28px;
  line-height: 1;
}
.hot-tool-info {
  flex: 1;
  min-width: 0;
}
.hot-tool-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hot-tool-desc {
  font-size: 12px;
  color: var(--color-text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========= 核心功能卡片 ========= */
.features-grid {
  display: grid;
  /* v2.60.3：固定 3 列 —— 6 张功能卡正好 2 行 × 3 列，不留单张空行 */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .features-grid { grid-template-columns: 1fr; }
}
.feature-card {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--color-border);
  transition: all 0.2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.feature-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ========= 法律导航页面重构 ========= */
.nav-hero {
  background: linear-gradient(135deg, #0a2e5c 0%, #07203f 100%);
  color: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  text-align: center;
}
.nav-hero h2 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.nav-hero p {
  font-size: 15px;
  opacity: 0.9;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.nav-hero strong {
  color: #fbbf24;
  font-size: 18px;
}

.nav-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.nav-stat-item {
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.nav-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}
.nav-stat-label {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 6px;
}

.nav-search-box {
  position: relative;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
}
.nav-search-box .search-icon {
  padding: 0 16px;
  font-size: 18px;
  color: var(--color-text-light);
}
.nav-search-box input {
  flex: 1;
  padding: 14px 0;
  border: none;
  font-size: 14px;
  outline: none;
  background: transparent;
}
.btn-search-clear {
  padding: 0 16px;
  background: transparent;
  border: none;
  color: var(--color-text-light);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.btn-search-clear:hover {
  color: #d81e06;
}

.nav-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 16px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.nav-cat-tab {
  padding: 6px 14px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-cat-tab:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-1px);
}

.nav-group {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  scroll-margin-top: 80px;
}
.nav-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}
.nav-group-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
}
.nav-group-count {
  background: #eef3f9;
  color: #07203f;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.nav-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.nav-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  position: relative;
}
.nav-card:hover {
  background: white;
  border-color: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.nav-card-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0a2e5c 0%, #07203f 100%);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}
.nav-card-content {
  flex: 1;
  min-width: 0;
}
.nav-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-desc {
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-url {
  font-size: 11px;
  color: #94a3b8;
  font-family: monospace;
}
.nav-go {
  color: var(--color-primary-light);
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}

/* ========= 响应式 ========= */
@media (max-width: 768px) {
  .home-hero { padding: 34px 18px; border-radius: 14px; }
  .home-hero h1 { font-size: 24px; }
  .home-hero h2 { font-size: 20px; }
  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-stats { grid-template-columns: repeat(2, 1fr); }
  .cat-grid-modern { grid-template-columns: 1fr; }
  .hot-tools-grid { grid-template-columns: 1fr; }
  .nav-list { grid-template-columns: 1fr; }
  .nav-group-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}


/* ========= 工具索引页样式 ========= */
.tools-index-hero {
  background: linear-gradient(135deg, #0a2e5c 0%, #07203f 100%);
  color: white;
  padding: 32px 40px;
  border-radius: var(--radius-lg, 16px);
  margin-bottom: 24px;
  text-align: center;
}
.tools-index-hero h2 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.tools-index-hero p {
  font-size: 15px;
  color: #ffffff !important;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.tools-search-box {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
}
.tools-search-icon {
  padding: 0 16px;
  font-size: 18px;
  color: #6b7280;
}
.tools-search-box input {
  flex: 1;
  padding: 16px 0;
  border: none;
  font-size: 15px;
  outline: none;
  background: transparent;
  color: #1f2937;
}
.tools-search-box input::placeholder {
  color: #9ca3af;
}
.tools-search-clear {
  padding: 0 18px;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.tools-search-clear:hover {
  color: #d81e06;
}
.tools-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
}
.tools-cat-tab {
  padding: 6px 14px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tools-cat-tab:hover {
  background: #eef3f9;
  color: #07203f;
  transform: translateY(-1px);
}
.tools-cat-tab.active {
  background: #07203f;
  color: #ffffff;
}
.cat-tab-count {
  background: rgba(255,255,255,0.25);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.tools-cat-tab:not(.active) .cat-tab-count {
  background: #e5e7eb;
  color: #6b7280;
}
.tools-search-stats {
  background: #eef3f9;
  border: 1px solid #c6d7e8;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #07203f;
  text-align: center;
}
.tools-search-stats strong {
  color: #07203f;
  font-size: 16px;
}
.tools-no-result {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}
.tools-no-result .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.tools-no-result p {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1f2937;
}
.tools-no-result small {
  font-size: 13px;
  color: #9ca3af;
}
.cat-block h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.tool-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.tool-card:hover {
  border-color: #0a2e5c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(10, 46, 92, .12);
}
.tool-card .icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.tool-card .title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}
.tool-card .desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .tools-index-hero { padding: 24px 20px; }
  .tools-index-hero h2 { font-size: 22px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
}


/* ========= LPR 历史数据展示 ========= */
.lpr-history-panel {
  margin-top: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #eef3f9;
  border-radius: 12px;
  padding: 20px 24px;
}
.lpr-history-panel h3 {
  color: #07203f;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.lpr-history-panel > p {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 16px;
}
.lpr-history-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.lpr-stat {
  background: white;
  border: 1px solid #eef3f9;
  border-left: 4px solid #0a2e5c;
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}
.lpr-stat-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}
.lpr-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #07203f;
  line-height: 1.2;
}
.lpr-stat-date {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}
.lpr-history-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.lpr-history-controls input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.lpr-history-controls input:focus {
  border-color: #0a2e5c;
  box-shadow: 0 0 0 3px rgba(10, 46, 92, .1);
}
.lpr-history-controls select {
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  outline: none;
  min-width: 120px;
}
.lpr-history-table-wrap {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 12px;
}
.lpr-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.lpr-history-table thead {
  position: sticky;
  top: 0;
  background: #07203f;
  color: white;
  z-index: 1;
}
.lpr-history-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.lpr-history-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #f3f4f6;
  white-space: nowrap;
}
.lpr-history-table tbody tr:hover {
  background: #f7fafc;
}
.lpr-history-table tbody tr:nth-child(even) {
  background: #fafbfc;
}
.lpr-history-table tbody tr:nth-child(even):hover {
  background: #f7fafc;
}
.lpr-history-table .lpr-up {
  color: #d81e06;
  font-weight: 600;
}
.lpr-history-table .lpr-down {
  color: #16a34a;
  font-weight: 600;
}
.lpr-history-table .lpr-same {
  color: #9ca3af;
}
.lpr-history-footer {
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
}
.lpr-history-footer small {
  line-height: 1.6;
}
@media (max-width: 768px) {
  .lpr-history-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .lpr-history-controls {
    flex-direction: column;
  }
  .lpr-history-table th,
  .lpr-history-table td {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* ========= AI 导航子类（T04） ========= */
.nav-subcat { margin-top: 16px; }
.nav-subcat-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin: 14px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--color-primary-light);
}
.nav-subcat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  padding-left: 14px;
  border-left: 1px dashed var(--color-border);
}

/* ========= 法条 / 文书模板列表（T04） ========= */
.lib-list { display: flex; flex-direction: column; gap: 14px; }
.lib-item {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.lib-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.lib-title { font-size: 15px; font-weight: 600; color: var(--color-text); }
.lib-meta { display: flex; gap: 6px; flex-shrink: 0; }
.lib-cat, .lib-type {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 12px;
  background: #eef3f9;
  color: #07203f;
  font-weight: 500;
}
.lib-type { background: #ecfdf5; color: #047857; }
.lib-content {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 10px 0 12px;
  white-space: normal;
  max-height: 320px;
  overflow-y: auto;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.lib-actions { display: flex; gap: 8px; }

/* ========= 诉讼时效说明（T04） ========= */
.sxsq-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.sxsq-note summary { cursor: pointer; font-weight: 600; color: var(--color-primary); }
.sxsq-note-body { margin-top: 10px; font-size: 13px; color: var(--color-text-light); line-height: 1.7; }
.sxsq-note-body p { margin: 8px 0; }
.sxsq-result { margin-top: 16px; }

/* ========= 详细计算步骤（分段区间类工具） ========= */
.calc-steps { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border, #ddd); }
.calc-steps h5 { margin: 0 0 8px; color: var(--primary, #07203f); }
.calc-steps table { width: 100%; border-collapse: collapse; font-size: 13px; }
.calc-steps th, .calc-steps td { border: 1px solid var(--border, #e3e6ea); padding: 6px 8px; text-align: left; }
.calc-steps th { background: var(--primary-light, #eef3f9); }
.calc-steps td strong { color: var(--primary, #07203f); }
.calc-steps tr:nth-child(even) td { background: rgba(0,0,0,0.015); }


/* =====================================================================
   v2.24.0 工具元数据统一展示块（ToolMeta）+ 导航分组折叠 + 首页快速查找
   ===================================================================== */

/* ---------- ① 维权引导条（结果卡片顶部，醒目但不打扰） ---------- */
.tm-rights-bar {
  border-left: 4px solid var(--primary, #0a2e5c);
  background: #f7fafc;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.tm-rights-head {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary, #0a2e5c);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.tm-rights-icon { font-size: 15px; }
.tm-rights-list { list-style: none; margin: 0; padding: 0; }
.tm-rights-item {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #444;
}
.tm-rights-k {
  flex: 0 0 auto;
  color: #0a2e5c;
  font-weight: 600;
  background: rgba(10, 46, 92, 0.08);
  border-radius: 4px;
  padding: 0 6px;
  height: 20px;
  line-height: 20px;
  font-size: 12px;
  margin-top: 2px;
}
.tm-rights-v { flex: 1 1 auto; word-break: break-word; }

/* ---------- ② 法条依据卡（折叠） ---------- */
.tm-law-card {
  background: #f8fafc;
  border: 1px solid #e6ebf1;
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 12px;
}
.tm-law-summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  list-style: none;
  outline: none;
}
.tm-law-summary::-webkit-details-marker { display: none; }
.tm-law-summary::before { content: '▸ '; color: #64748b; }
.tm-law-card[open] .tm-law-summary::before { content: '▾ '; }
.tm-law-list { list-style: none; margin: 8px 0 0; padding: 0; }
.tm-law-item { padding: 8px 0; border-top: 1px dashed #e2e8f0; }
.tm-law-name { font-weight: 600; color: #1e293b; font-size: 13px; }
.tm-law-art {
  font-weight: 600;
  color: #b71504;
  font-size: 13px;
  margin-left: 6px;
}
.tm-law-text {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #475569;
}
.tm-law-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

/* ---------- ③ 场景说明条 ---------- */
.tm-scene-bar {
  background: #f7fafc;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 12px;
}
.tm-scene-head {
  font-size: 13px;
  font-weight: 600;
  color: #0a2e5c;
  margin-bottom: 4px;
}
.tm-scene-list { list-style: none; margin: 0; padding: 0; }
.tm-scene-item {
  font-size: 13px;
  line-height: 1.7;
  color: #475569;
  padding-left: 14px;
  position: relative;
}
.tm-scene-item::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: #0a2e5c;
  font-weight: 700;
}

/* ---------- ④ 侧栏分类分组折叠 ---------- */
.nav-group-title[role="button"] { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 4px; }
.nav-group-caret { font-size: 11px; transition: transform .15s; }
.nav-group-title.collapsed .nav-group-caret { transform: rotate(-90deg); }
.nav-group-n {
  font-size: 11px;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  padding: 0 6px;
  margin-left: auto;
}
.nav-group-body { display: block; }

/* ---------- ⑤ 移动端抽屉入口按钮 ---------- */
.drawer-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  padding: 8px 10px;
  cursor: pointer;
}

/* ---------- ⑥ 首页「快速查找工具」 ---------- */
.home-quickfind-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.home-quickfind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

/* ---------- 移动端适配（<768px） ---------- */
@media (max-width: 768px) {
  .drawer-toggle { display: inline-block; }
  .tm-rights-bar,
  .tm-law-card,
  .tm-scene-bar { font-size: 12.5px; margin-top: 10px; }
  .tm-rights-bar { position: static; }
  .home-quickfind-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .home-quickfind-grid { grid-template-columns: 1fr; }
}




/* ========= 民法典学习板块（v2.36.0 新增） ========= */
.cc-table-wrap { overflow-x: auto; margin-top: 12px; }
.cc-table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cc-table-wrap th { background: #f2f5f9; color: #33415c; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--color-border); white-space: nowrap; text-align: center; }
.cc-table-wrap td { padding: 8px 10px; border-bottom: 1px solid #eef1f5; color: var(--color-text); vertical-align: top; text-align: center; }
.cc-table-wrap tbody tr:nth-child(even) { background: #fafbfc; }
.cc-table-wrap a { color: var(--color-primary-light); text-decoration: none; }
.cc-table-wrap a:hover { text-decoration: underline; }
.cc-guides { margin: 0; padding-left: 20px; font-size: 13px; line-height: 2; color: #444; }
.cc-guides li strong { color: #0a2e5c; font-weight: 600; }
.cc-dim { color: var(--color-text-light); font-size: 12px; }
.ftck-meta { font-size: 12px; color: #0a2e5c; margin-bottom: 4px; }
.ftck-title { margin: 0 0 6px; font-size: 15px; color: var(--color-text); }
.ftck-text { font-size: 13px; line-height: 1.9; color: #333; white-space: pre-wrap; }
/* ===== v2.40.0：法条速查接入全站统一法条索引 ===== */
.ftck-tip { margin: 0 0 12px; padding: 8px 12px; background: #f7fafc; border-left: 3px solid #0a2e5c;
  border-radius: 6px; color: #4a5568; line-height: 1.85; }
.ftck-art { color: #0d3161; font-weight: 600; text-decoration: none; border-bottom: 1px dashed #aac2db;
  cursor: pointer; padding: 0 2px; }
.ftck-art:hover { background: #e2edf6; }
.ftck-art-demo { pointer-events: none; }
.ftck-full { margin-left: 6px; font-size: 12px; color: #0a2e5c; text-decoration: none;
  border-bottom: 1px dotted #aac2db; padding: 0 3px; border-radius: 4px; }
.ftck-full:hover { background: #e2edf6; text-decoration: none; }
.ftck-full-search { border-bottom-style: dashed; }
.ftck-tip .cref-gone { color: #a6853d; background: rgba(138,109,31,.07); border-bottom: 1px dotted #cbb77a;
  border-radius: 3px; padding: 0 1px; }

/* ==========================================================================
   v2.46.0 首页「功能总览」板块入口卡 + 内页总览 Hero + 导航补充入口
   —— 与既有 --primary/--text/--border 令牌保持一致，浅色主题。
   ========================================================================== */

/* ---- Hero 副标语样式已并入 v2.54.0 新版 .hero-sub（见文件顶部 Hero 段） ---- */

/* ---- 板块入口卡网格 ---- */
.pillar-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.pillar-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px 14px 20px;
  border-radius: 12px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e5e7eb);
  color: var(--text, #1f2937);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  /* v3.5.1：左侧色条改由 ::before 绘制。
     原因：border-left-width(4px) 与其余边(1px) 不等时，圆角处按 45° 斜接，
     左上/左下会出现彩色斜切三角，视觉上像「错位」。改为绝对定位竖条 + overflow 裁切后，
     色条随圆角自然内收，不再有斜切。 */
  overflow: hidden;
}
.pillar-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--pc, #0a2e5c);
  pointer-events: none;
}
.pillar-card:hover,
.pillar-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .10);
  border-color: var(--primary, #0a2e5c);
  text-decoration: none;
  outline: none;
}
.pillar-ico { font-size: 24px; line-height: 1.25; flex: none; }
.pillar-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.pillar-name {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 15px; font-weight: 700; line-height: 1.4;
}
.pillar-meta {
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  color: var(--primary, #0a2e5c);
  background: var(--primary-light, #eef3f9);
  border-radius: 20px; padding: 1px 9px;
}
.pillar-desc { font-size: 12.5px; line-height: 1.6; color: var(--text-muted, #6b7280); }
.pillar-go {
  flex: none; align-self: center;
  font-size: 16px; color: var(--primary, #0a2e5c);
  opacity: .45; transition: opacity .15s, transform .15s;
}
.pillar-card:hover .pillar-go { opacity: 1; transform: translateX(2px); }

/* 强调色：左侧色条 + 徽章配色，用于区分板块语义
   （v2.54.0 统一到 nuochi 色族：深蓝 / 香槟金 / 点缀红 / 钢蓝 / 松绿） */
.pillar-card.pc-blue { --pc: #0a2e5c; }
.pillar-card.pc-blue .pillar-meta { color: #0a2e5c; background: #eef3f9; }
.pillar-card.pc-orange { --pc: #c9a961; }
.pillar-card.pc-orange .pillar-meta { color: #8a6a1e; background: #faf5e9; }
.pillar-card.pc-purple { --pc: #d81e06; }
.pillar-card.pc-purple .pillar-meta { color: #a81505; background: #fdecec; }
.pillar-card.pc-teal { --pc: #1a4a7c; }
.pillar-card.pc-teal .pillar-meta { color: #12406e; background: #e2edf6; }
.pillar-card.pc-green { --pc: #1f9254; }
.pillar-card.pc-green .pillar-meta { color: #14663a; background: #e8f6ee; }

/* ---- 内页总览 Hero（法律分析总览等） ---- */
.page-hero {
  background: linear-gradient(135deg, #0a2e5c 0%, #07203f 100%);
  color: #fff;
  border-radius: 16px;
  padding: 26px 30px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(30, 58, 138, .18);
}
.page-hero h1 { margin: 0 0 8px; font-size: 26px; font-weight: 700; letter-spacing: 1px; }
.page-hero p { margin: 0; font-size: 14px; line-height: 1.85; opacity: .95; max-width: 960px; }
.page-hero strong { color: #fbbf24; font-size: 17px; }
.page-hero .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; justify-content: flex-start; }

/* ---- 区块副标题 ---- */
.section-sub {
  margin: -6px 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted, #6b7280);
}

/* ---- 顶部下拉内的补充入口（如「分析模块总览」） ---- */
.top-nav .nav-dd-menu a.nav-dd-more {
  grid-column: 1 / -1;
  background: var(--primary-light, #eef3f9);
  color: var(--primary, #0a2e5c);
  font-weight: 600;
  margin-top: 3px;
}
.top-nav .nav-dd-menu a.nav-dd-more:hover { background: #e2edf6; color: var(--primary, #0a2e5c); }
.top-nav .nav-dd-menu a.nav-dd-more .nav-dd-txt small { color: #0a2e5c; }
.top-nav .nav-dd-menu a.nav-dd-more b { font-size: 13.5px; }

/* ---- 响应式 ---- */
@media (max-width: 560px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 20px 18px; border-radius: 12px; }
  .page-hero h1 { font-size: 21px; }
}

/* ========= 可点击统计卡（v2.54.0：累计访问 → 明细面板） ========= */
.stat-card.stat-clickable { cursor: pointer; position: relative; }
.stat-card.stat-clickable:focus-visible { outline: 2px solid var(--primary, #0a2e5c); outline-offset: 2px; }
.stat-card.stat-clickable:hover { border-left-color: var(--primary, #0a2e5c); }
.stat-badge {
  display: inline-block; vertical-align: middle; margin-left: 4px;
  font-size: 10.5px; line-height: 1; padding: 3px 6px; border-radius: 999px;
  background: #f1f3f5; color: #6b7280; border: 1px solid #e5e7eb; font-weight: 600;
}
.stat-badge.on { background: #eef3f9; color: #0a2e5c; border-color: #c6d7e8; }
.stat-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-more {
  margin-top: 3px; font-size: 11.5px; font-weight: 600;
  color: var(--brand, #0a2e5c); opacity: .72; letter-spacing: .3px;
  white-space: nowrap;
}
.stat-card.stat-clickable:hover .stat-more { opacity: 1; }

/* ========= 访问统计明细面板 ========= */
#visitPanel { position: fixed; inset: 0; z-index: 3000; }
#visitPanel .vmask {
  position: absolute; inset: 0; background: rgba(17,24,39,.45);
  backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
#visitPanel .vmodal {
  width: 100%; max-width: 960px; max-height: 90vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 16px;
  border: 1px solid rgba(201,169,97,.34);
  box-shadow: 0 28px 68px rgba(6,28,55,.34), 0 2px 6px rgba(6,28,55,.10);
  overflow: hidden; animation: vIn .18s ease-out;
}
@keyframes vIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
#visitPanel .vhead {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid #e7edf4;
  background:
    radial-gradient(520px 160px at 90% -30%, rgba(201,169,97,.20) 0%, rgba(201,169,97,0) 66%),
    linear-gradient(135deg, #ffffff, #f5f9fc);
}
#visitPanel .vhead h3 { margin: 0; font-size: 17px; color: #0a2e5c; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#visitPanel .vclose {
  border: none; background: #f3f4f6; color: #4b5563; width: 30px; height: 30px; border-radius: 8px;
  cursor: pointer; font-size: 14px; line-height: 1; flex: none;
}
#visitPanel .vclose:hover { background: #e9ecef; color: #0a2e5c; }
#visitPanel .vbody { padding: 18px 20px 22px; overflow-y: auto; }
#visitPanel .vscope {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .3px;
}
#visitPanel .vscope.ok { background: #e8f5e9; color: #1b7f3b; border: 1px solid #bfe3c8; }
#visitPanel .vscope.local { background: #fff4e5; color: #b26a00; border: 1px solid #f3d9ac; }
#visitPanel .vkpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
#visitPanel .vkpi {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #f7fafd, #fbfcfe);
  border: 1px solid #e7edf4; border-radius: 12px; padding: 13px 10px 12px; text-align: center;
}
#visitPanel .vkpi::before {
  content: ''; position: absolute; top: 0; left: 18%; right: 18%; height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, rgba(201,169,97,0), #c9a961 50%, rgba(201,169,97,0));
}
#visitPanel .vkpi b { display: block; font-size: 22px; color: #0a2e5c; line-height: 1.15; }
#visitPanel .vkpi span { font-size: 12px; color: #6b7280; }
#visitPanel .vmeta {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px;
  font-size: 12.5px; color: #6b7280;
}
#visitPanel .vmeta b { color: #374151; font-weight: 600; }
#visitPanel .vnote {
  font-size: 12px; line-height: 1.7; color: #92600a; background: #fffaf0;
  border: 1px solid #f6e4c3; border-radius: 10px; padding: 9px 12px; margin-bottom: 14px;
}
#visitPanel .vgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
#visitPanel .vcard {
  border: 1px solid #e7edf4; border-radius: 12px; padding: 13px 14px;
  background: linear-gradient(180deg, #ffffff, #fcfdfe);
  transition: border-color .15s, box-shadow .15s;
}
#visitPanel .vcard:hover { border-color: #cfdff0; box-shadow: 0 4px 14px rgba(10,46,92,.06); }
#visitPanel .vcard-t {
  font-size: 13px; font-weight: 700; color: #12395f; margin-bottom: 11px;
  display: flex; align-items: center; gap: 7px;
}
#visitPanel .vcard-t::before {
  content: ''; width: 3px; height: 13px; border-radius: 2px; flex: none;
  background: linear-gradient(180deg, #e2cd97, #b8953e);
}
#visitPanel .vrow { display: flex; align-items: center; gap: 9px; margin: 6px 0; font-size: 12.5px; }
#visitPanel .vk {
  flex: none; width: 116px; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#visitPanel .vt { flex: 1; height: 9px; background: #f3f4f6; border-radius: 999px; overflow: hidden; }
#visitPanel .vt > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #12395f, #0a2e5c 78%, #1a4a7c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
#visitPanel .vv { flex: none; width: 52px; text-align: right; color: #374151; font-variant-numeric: tabular-nums; }
#visitPanel .vtrend { display: flex; align-items: flex-end; gap: 5px; height: 108px; padding-top: 4px; }
#visitPanel .vtcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
#visitPanel .vtcol > i {
  width: 100%; max-width: 26px; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #2b5b8f, #0a2e5c 72%, #07203f); min-height: 2px;
  box-shadow: inset 0 1.5px 0 rgba(201,169,97,.85);
  transition: filter .15s;
}
#visitPanel .vtcol:hover > i { filter: brightness(1.18); }
#visitPanel .vtcol > span {
  font-size: 10px; color: #9ca3af; margin-top: 5px; white-space: nowrap;
  transform: rotate(-38deg); transform-origin: center; height: 14px;
}
#visitPanel .vhours .vtcol > span { transform: none; font-size: 9.5px; }
#visitPanel .vempty { font-size: 12.5px; color: #9ca3af; padding: 14px 0; text-align: center; }
#visitPanel .vtip {
  margin-top: 16px; font-size: 12px; line-height: 1.75; color: #4b5563;
  background: #f8fafc; border: 1px solid #eef0f2; border-radius: 10px; padding: 11px 13px;
}
#visitPanel .vtip code { background: #eef0f2; padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }
#visitPanel .vfoot { margin-top: 12px; font-size: 11.5px; color: #9ca3af; line-height: 1.7; }

@media (max-width: 720px) {
  #visitPanel .vgrid { grid-template-columns: 1fr; }
  #visitPanel .vkpis { grid-template-columns: repeat(2, 1fr); }
  #visitPanel .vmask { padding: 12px; }
  #visitPanel .vmodal { max-height: 94vh; }
  #visitPanel .vk { width: 92px; }
}

/* ==========================================================================
   全站导航条幅（v2.54.0）
   --------------------------------------------------------------------------
   位置：首页 Hero 正下方、功能总览之上 —— 用户一眼即可看到的第一层入口。
   形态：深蓝渐变 + 金色描边与图标底、右侧金色胶囊按钮，与页眉的
   金色「全站导航」按钮呼应，形成「上固定入口 + 首屏醒目条幅」双层引导。
   ========================================================================== */
.nav-band {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px; margin: 0 0 26px;
  border-radius: 14px; text-decoration: none;
  background:
    radial-gradient(600px 200px at 92% 0%, rgba(201,169,97,.20) 0%, rgba(201,169,97,0) 62%),
    linear-gradient(120deg, #071f3a 0%, #0a2e5c 54%, #0d3567 100%);
  border: 1px solid rgba(201,169,97,.34);
  box-shadow: 0 10px 28px rgba(6,28,55,.18);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.nav-band:hover {
  transform: translateY(-2px); border-color: rgba(201,169,97,.62);
  box-shadow: 0 16px 36px rgba(6,28,55,.26); text-decoration: none;
}
.nav-band-ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 23px; line-height: 1;
  background: linear-gradient(135deg, #e2cd97, #c9a961 55%, #b8953e);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 12px rgba(184,149,62,.34);
}
.nav-band-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nav-band-body b {
  font-size: 17px; font-weight: 800; letter-spacing: 1px; color: #fff;
}
.nav-band-body span {
  font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,.76);
  overflow: hidden; text-overflow: ellipsis;
}
.nav-band-go {
  flex: none; padding: 9px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: #2b2109; white-space: nowrap;
  background: linear-gradient(135deg, #e2cd97, #c9a961 50%, #b8953e);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
@media (max-width: 720px) {
  .nav-band { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .nav-band-body { flex: 1 1 100%; order: 2; }
  .nav-band-go { order: 3; margin-left: auto; }
  .nav-band-ico { order: 1; }
}

/* ==========================================================================
   首页「我要办的事」全站检索（v2.54.0 新增）
   --------------------------------------------------------------------------
   位置：Hero 与「全站导航」条幅之后、「功能总览」之前 —— 首页第二视觉焦点。
   风格：深蓝品牌面 + 金色点睛，与 nuochi 色调一致；卡片组按类型着色（同族色），
        结果区支持类型标签筛选与键盘上下选择。
   ========================================================================== */
.hs {
  position: relative;
  margin: 0 0 28px;
  border: 1px solid rgba(10,46,92,.14);
  border-left: 4px solid var(--color-gold, #c9a961);
  border-radius: 16px;
  background:
    radial-gradient(900px 300px at 92% -30%, rgba(201,169,97,.14) 0%, rgba(201,169,97,0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
  box-shadow: 0 12px 34px rgba(10,46,92,.10);
  padding: 22px 24px 20px;
}
.hs-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.hs-header-ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 23px;
  background: linear-gradient(135deg, #0d3567, #0a2e5c 60%, #061c37);
  border: 1px solid rgba(201,169,97,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 16px rgba(6,28,55,.22);
}
.hs-header-txt { min-width: 0; }
.hs-header-txt h2 {
  margin: 0 0 4px; font-size: 19px; font-weight: 800; letter-spacing: .5px;
  color: var(--color-primary, #0a2e5c); position: relative; padding-left: 12px;
}
.hs-header-txt h2::before {
  content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px;
  border-radius: 2px; background: linear-gradient(180deg, #c9a961, #b8953e);
}
.hs-header-txt p { margin: 0; font-size: 12.5px; line-height: 1.7; color: #64748b; }
.hs-header-txt p b { color: var(--color-primary, #0a2e5c); font-weight: 700; }

/* ---- 搜索框 ---- */
.hs-searchbar {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 16px;
  border: 1.5px solid rgba(10,46,92,.22);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(10,46,92,.07);
  transition: border-color .18s, box-shadow .18s;
}
.hs-searchbar:focus-within {
  border-color: rgba(201,169,97,.85);
  box-shadow: 0 0 0 4px rgba(201,169,97,.16), 0 8px 22px rgba(10,46,92,.10);
}
.hs-sico { flex: none; font-size: 16px; opacity: .75; }
.hs-input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 15px; line-height: 1.5; color: #1f2937; padding: 9px 0;
  font-family: inherit;
}
.hs-input::placeholder { color: #9aa6b5; font-size: 13.5px; }
.hs-clear {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer;
  background: #eef2f7; color: #64748b; font-size: 12px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.hs-clear:hover { background: #e2e8f0; color: #334155; }
.hs-go {
  flex: none; border: 0; cursor: pointer; padding: 10px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 800; letter-spacing: .5px; color: #2b2109;
  font-family: inherit;
  background: linear-gradient(135deg, #e2cd97, #c9a961 50%, #b8953e);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 12px rgba(184,149,62,.32);
  transition: transform .14s, box-shadow .14s;
}
.hs-go:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 18px rgba(184,149,62,.42); }
.hs-go:active { transform: translateY(0); }

/* ---- 面板 / 空态 / 加载 ---- */
.hs-panel { margin-top: 14px; }
.hs-idle-t {
  font-size: 12px; font-weight: 700; letter-spacing: .5px; color: #0a2e5c;
  margin: 4px 0 9px; display: flex; align-items: center; gap: 7px;
}
.hs-idle-t2 { margin-top: 14px; color: #7c8b9c; font-weight: 600; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-chip {
  cursor: pointer; font-family: inherit;
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px; line-height: 1.4;
  color: #12395f; background: #fff;
  border: 1px solid rgba(10,46,92,.16);
  transition: all .16s;
}
.hs-chip:hover {
  color: #2b2109; border-color: rgba(201,169,97,.85);
  background: linear-gradient(135deg, #fbf4e4, #f4e8cd);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184,149,62,.20);
}
.hs-chips-2 .hs-chip { color: #55677c; border-color: rgba(10,46,92,.10); background: #fbfcfe; }
.hs-tip {
  margin-top: 14px; padding: 10px 14px; border-radius: 10px;
  font-size: 12px; line-height: 1.75; color: #5b6b7f;
  background: rgba(201,169,97,.09); border-left: 3px solid rgba(201,169,97,.6);
}
.hs-loading {
  display: flex; align-items: center; gap: 10px; padding: 20px 4px;
  font-size: 13px; color: #64748b;
}
.hs-spin {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  border: 2px solid rgba(10,46,92,.18); border-top-color: var(--color-gold, #c9a961);
  animation: hs-spin .8s linear infinite;
}
@keyframes hs-spin { to { transform: rotate(360deg); } }
.hs-empty { padding: 20px 6px 8px; text-align: center; }
.hs-empty-ico { font-size: 34px; line-height: 1; margin-bottom: 10px; }
.hs-empty-t { font-size: 15px; font-weight: 700; color: #0a2e5c; margin-bottom: 8px; }
.hs-empty-d { font-size: 12.5px; line-height: 1.8; color: #64748b; max-width: 640px; margin: 0 auto 14px; }
.hs-empty-d b { color: #0a2e5c; }
.hs-empty .hs-chips { justify-content: center; }
.hs-empty-a { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.hs-btn-line {
  padding: 8px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: #0a2e5c; text-decoration: none; background: #fff;
  border: 1px solid rgba(10,46,92,.18);
}
.hs-btn-line:hover { border-color: rgba(201,169,97,.85); background: #fbf4e4; color: #2b2109; }

/* ---- 结果条 / 类型标签 ---- */
.hs-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.hs-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-tab {
  cursor: pointer; font-family: inherit;
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: #55677c; background: #fff; border: 1px solid rgba(10,46,92,.13);
  transition: all .15s;
}
.hs-tab b { font-weight: 800; opacity: .72; margin-left: 2px; }
.hs-tab:hover { border-color: rgba(201,169,97,.7); color: #12395f; }
.hs-tab.on {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, #0d3567, #0a2e5c 60%, #061c37);
  box-shadow: 0 4px 12px rgba(10,46,92,.24);
}
.hs-tab.on b { opacity: .9; color: #e2cd97; }
.hs-count { font-size: 12px; color: #7c8b9c; white-space: nowrap; }
.hs-count b { color: #0a2e5c; }
.hs-list { display: flex; flex-direction: column; gap: 8px; }
.hs-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 13px; border-radius: 11px;
  text-decoration: none; color: inherit;
  background: #fff; border: 1px solid rgba(10,46,92,.10);
  border-left: 3px solid rgba(10,46,92,.22);
  transition: all .15s;
}
.hs-item:hover, .hs-item.hi, .hs-item:focus {
  outline: none;
  border-color: rgba(201,169,97,.75);
  border-left-color: var(--color-gold, #c9a961);
  background: linear-gradient(90deg, #fffdf8, #ffffff 55%);
  transform: translateX(2px);
  box-shadow: 0 8px 20px rgba(10,46,92,.10);
}
.hs-badge {
  flex: none; padding: 3px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px; white-space: nowrap;
  color: #0a2e5c; background: rgba(10,46,92,.07);
  border: 1px solid rgba(10,46,92,.12);
}
.hs-i-tool .hs-badge { color: #0d4a8a; background: rgba(13,74,138,.09); border-color: rgba(13,74,138,.18); }
.hs-i-ana  .hs-badge { color: #8a6a1e; background: rgba(201,169,97,.16); border-color: rgba(201,169,97,.4); }
.hs-i-law  .hs-badge { color: #0f3d7a; background: rgba(15,61,122,.09); border-color: rgba(15,61,122,.2); }
.hs-i-case .hs-badge { color: #1a6a6a; background: rgba(26,106,106,.10); border-color: rgba(26,106,106,.22); }
.hs-i-qa   .hs-badge { color: #2f6b46; background: rgba(47,107,70,.10); border-color: rgba(47,107,70,.22); }
.hs-i-map  .hs-badge { color: #6a4a8a; background: rgba(106,74,138,.10); border-color: rgba(106,74,138,.22); }
.hs-ico { flex: none; width: 22px; text-align: center; font-size: 15px; line-height: 1; }
.hs-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hs-name {
  font-size: 14px; font-weight: 700; color: #12395f; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hs-name mark {
  background: linear-gradient(180deg, transparent 58%, rgba(201,169,97,.45) 58%);
  color: inherit; padding: 0 1px; border-radius: 2px;
}
.hs-sub {
  font-size: 12px; color: #7c8b9c; line-height: 1.6;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hs-arrow { flex: none; font-size: 13px; color: #b9c3cf; transition: all .15s; }
/* v4.4.15：检索结果里的「已废止」徽章 —— 配色与法规库列表 .tg.dead 完全一致，
   全站看到同一个红就等于同一件事，不需要第二套语义。 */
.hs-dead {
  flex: none; white-space: nowrap;
  padding: 2px 7px; border-radius: 5px; margin-left: 2px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  background: #fdecea; color: #8a1c1c; border: 1px solid #f5c2c0;
}
.hs-item:hover .hs-arrow { color: var(--color-gold, #c9a961); transform: translate(2px,-2px); }
.hs-foot {
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(10,46,92,.12);
  font-size: 11.5px; color: #8c99a8; text-align: center;
}
.hs-foot a { color: #0a2e5c; font-weight: 700; text-decoration: none; }
.hs-foot a:hover { color: #b8953e; }

@media (max-width: 720px) {
  .hs { padding: 18px 15px 16px; border-radius: 14px; }
  .hs-header-ico { width: 40px; height: 40px; font-size: 20px; }
  .hs-header-txt h2 { font-size: 17px; }
  .hs-searchbar { flex-wrap: wrap; border-radius: 16px; padding: 8px 10px 8px 14px; }
  .hs-input { font-size: 14px; }
  .hs-go { width: 100%; }
  .hs-name, .hs-sub { white-space: normal; }
  .hs-item { align-items: flex-start; }
  .hs-badge { margin-top: 2px; }
  .hs-dead { margin-top: 2px; }
}

/* 超窄屏（≤430px）：统计卡栅格降为单列，避免两列时数字/说明文字横向挤出 */
@media (max-width: 430px) {
  .home-stats, .nav-stats { grid-template-columns: 1fr; }
  .stat-card { padding: 18px 16px; }
}

/* v2.72：检索提示与最近搜索（错字纠正 / 同义词扩展的说明行） */
.hs-note{margin:6px 0 10px;padding:8px 12px;border-radius:8px;background:#fff8e6;border:1px solid #f0e3bd;color:#7a6320;font-size:13px;line-height:1.7}
.hs-hist-clear{margin-left:8px;border:0;background:transparent;color:#8a9099;font:inherit;font-size:12px;text-decoration:underline;cursor:pointer}
.hs-hist-clear:hover{color:#0a2e5c}

/* v4.4.18：移动端可点区域过小（实测 .hs-chip 高约 34px、.tab 约 34px、搜索框 32px），
   手指容易按偏。窄屏统一抬到 40px（含内边距），桌面端不受影响。 */
@media (max-width:640px){
  .hs-chip{min-height:40px;display:inline-flex;align-items:center;padding:9px 14px}
  .tab{min-height:40px;padding:9px 13px}
  input.q,.q{min-height:40px}
}
