/* =========================================================
   沪上用工合规通 — 样式表
   断点：≥1200 两栏 / 768-1199 右栏窄化 / <768 单栏
   主题：浅色默认 + 深色模式 · WCAG AA 对比度 · 键盘可达
   ========================================================= */

:root {
  --bg: #f5f7fc;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --text: #1c2433;
  --text-2: #535e78;
  --text-3: #8791a8;
  --border: #e2e7f1;
  --primary: #1e5bb8;
  --primary-strong: #16468f;
  --primary-soft: #e7effc;
  --accent: #b45309;
  --success: #14653a;
  --danger: #a11e22;
  --purple: #5b21b6;
  --teal: #0f5e5e;
  --shadow: 0 1px 2px rgba(20, 38, 80, .06), 0 10px 28px rgba(20, 38, 80, .08);
  --radius: 14px;
  --maxw: 1240px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: #0e1420;
  --bg-soft: #151c2c;
  --surface: #1a2236;
  --surface-2: #242e47;
  --text: #e9edf6;
  --text-2: #aab4cc;
  --text-3: #7c88a4;
  --border: #2b3752;
  --primary: #6fa3f0;
  --primary-strong: #8db4f5;
  --primary-soft: #212e4e;
  --accent: #f0b95c;
  --success: #4ade80;
  --danger: #f07373;
  --purple: #c4b5fd;
  --teal: #67d1d1;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
img, svg { display: inline-block; vertical-align: middle; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--primary); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 120;
}
.skip-link:focus { left: 0; color: #fff; text-decoration: none; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.4) blur(10px);
}
.nav { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 8px; color: var(--text); margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 24px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.brand-tag { font-size: 11px; color: var(--text-3); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; }

.nav-menu { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-menu a { display: block; padding: 8px 14px; border-radius: 8px; color: var(--text-2); font-size: 15px; font-weight: 500; }
.nav-menu a:hover { color: var(--primary); background: var(--surface-2); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn { border: none; border-radius: 12px; font-weight: 700; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(30, 91, 184, .32); }
.btn-primary:hover { background: var(--primary-strong); }
[data-theme="dark"] .btn-primary { color: #0e1420; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
.nav-toggle .bar { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.theme-toggle { background: none; border: 1px solid var(--border); border-radius: 10px; padding: 7px 10px; font-size: 16px; line-height: 1; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: inline; }

/* ---------- 两栏布局 ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  padding-top: 28px;
  align-items: start;
}
.main-col { min-width: 0; }
.side-col { position: sticky; top: 88px; }

/* ---------- 主区首屏 ---------- */
.hero {
  padding: 26px 26px 22px;
  background:
    radial-gradient(900px 380px at 85% -10%, var(--primary-soft), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.hero-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.25; letter-spacing: .3px; }
.hero-subtitle { margin-top: 10px; color: var(--text-2); font-size: 15px; max-width: 660px; }
.hero-subtitle strong { color: var(--text); }

.search-form { display: flex; gap: 10px; margin-top: 20px; }
.search-box {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--bg);
  border: 2px solid var(--border); border-radius: 12px; padding: 0 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.search-icon { color: var(--text-3); flex-shrink: 0; }
.search-box input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: var(--text); font-size: 16px; padding: 13px 0; font-family: inherit; }
.search-box input::placeholder { color: var(--text-3); }
.search-clear { border: none; background: var(--surface-2); color: var(--text-2); width: 24px; height: 24px; border-radius: 50%; font-size: 12px; flex-shrink: 0; line-height: 1; }
.search-clear:hover { background: var(--border); color: var(--text); }
.btn-search { padding: 0 28px; font-size: 16px; }

/* 角色选择 */
.role-field { border: none; margin-top: 18px; }
.role-legend { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; padding: 0; }
.role-options { display: flex; gap: 10px; }
.role-field { display: flex; gap: 10px; flex-wrap: wrap; }
.role-option { position: relative; flex: 1; min-width: 220px; cursor: pointer; }
.role-option input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.role-card {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--border); border-radius: 12px;
  padding: 12px 16px; background: var(--bg);
  transition: border-color .2s ease, background .2s ease;
}
.role-option input:checked + .role-card { border-color: var(--primary); background: var(--primary-soft); }
.role-option input:focus-visible + .role-card { box-shadow: 0 0 0 4px var(--primary-soft); outline: 2px solid var(--primary); outline-offset: 2px; }
.role-icon { font-size: 22px; }
.role-text { display: flex; flex-direction: column; }
.role-text strong { font-size: 14px; }
.role-text small { font-size: 12px; color: var(--text-3); }

/* 热门问题 */
.hot-questions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.hot-label { font-size: 13px; color: var(--text-3); }
.tag {
  border: 1px dashed var(--border); background: var(--surface); color: var(--primary);
  border-radius: 999px; padding: 6px 14px; font-size: 13px;
  transition: all .2s ease;
}
.tag:hover { background: var(--primary-soft); border-style: solid; border-color: var(--primary); }

/* ---------- 搜索结果 ---------- */
.result-area { margin-top: 22px; min-height: 120px; }

.fallback-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 40px 28px; text-align: center; box-shadow: var(--shadow);
}
.fallback-box .fb-icon { font-size: 40px; }
.fallback-box h2 { font-size: 22px; margin: 12px 0 8px; }
.fallback-box p { color: var(--text-2); font-size: 15px; max-width: 560px; margin: 0 auto 18px; }

.result-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 26px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.result-card .rc-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.result-card .rc-title { font-size: 21px; font-weight: 800; line-height: 1.35; }
.rc-summary {
  margin: 8px 0 18px; padding: 14px 16px; border-left: 4px solid var(--primary);
  background: var(--primary-soft); border-radius: 0 10px 10px 0; font-size: 15px;
}
.rc-summary strong { color: var(--primary-strong); }
[data-theme="dark"] .rc-summary strong { color: var(--primary); }

.result-section { margin-top: 22px; }
.result-section h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 800; margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.sec-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 8px; background: var(--primary); color: #fff;
  font-size: 13px; flex-shrink: 0;
}
[data-theme="dark"] .sec-num { color: #0e1420; }
.sec-tag { font-size: 12px; font-weight: 600; color: var(--text-3); margin-left: auto; }

/* 条例列表 */
.law-list { display: flex; flex-direction: column; gap: 10px; }
.law-item {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  background: var(--bg);
}
.law-item .law-name { font-weight: 700; font-size: 15px; }
.law-item .law-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; font-size: 13px; color: var(--text-3); }
.law-item .law-clause { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.law-item .law-clause b { color: var(--primary); font-weight: 700; }
.law-item .law-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; }

/* 解释列表 */
.explain-list { display: flex; flex-direction: column; gap: 12px; }
.explain-item { padding: 0 2px; }
.explain-item p { font-size: 14.5px; color: var(--text-2); }
.explain-item .explain-src { margin-top: 6px; font-size: 12.5px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* 案例列表 */
.case-list { display: flex; flex-direction: column; gap: 12px; }
.case-item {
  border: 1px solid var(--border); border-left: 4px solid var(--purple);
  border-radius: 12px; padding: 14px 16px; background: var(--bg);
}
.case-item h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.case-item p { font-size: 13.5px; color: var(--text-2); }
.case-item .case-focus { margin-top: 6px; }
.case-item .case-result { margin-top: 6px; }
.case-item .case-result b { color: var(--success); font-weight: 700; }
.case-item a { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; }
.case-label { font-size: 12px; color: var(--text-3); font-weight: 600; margin-right: 4px; }

/* 指引列表 */
.guide-list { display: flex; flex-direction: column; gap: 10px; }
.guide-item {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px; background: var(--bg);
}
.guide-item .g-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2); color: var(--primary); font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.guide-item .g-body { flex: 1; min-width: 0; }
.guide-item .g-body strong { font-size: 14.5px; display: block; }
.guide-item .g-org { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.guide-item .g-limit {
  margin-top: 6px; font-size: 12.5px; color: var(--accent);
  background: #fdf6e7; border-radius: 8px; padding: 5px 10px; display: inline-block;
}
[data-theme="dark"] .guide-item .g-limit { background: #33290f; }
.guide-item a { font-size: 13px; font-weight: 600; display: inline-block; margin-top: 4px; }

/* 角色化风险提示（企业视角） */
.risk-list { display: flex; flex-direction: column; gap: 10px; }
.risk-item {
  border: 1px solid var(--border); border-left: 4px solid var(--danger);
  border-radius: 12px; padding: 13px 16px; background: var(--bg);
}
.risk-item h4 { font-size: 14.5px; font-weight: 700; }
.risk-item p { font-size: 13.5px; color: var(--text-2); margin-top: 4px; }
.risk-item a { font-size: 13px; font-weight: 600; display: inline-block; margin-top: 6px; }

.role-banner {
  display: flex; align-items: center; gap: 10px; margin-top: 20px;
  font-size: 13px; color: var(--text-2); padding: 10px 14px;
  background: var(--surface-2); border-radius: 10px;
}
.role-banner button {
  margin-left: auto; border: none; background: var(--primary); color: #fff;
  border-radius: 8px; padding: 6px 14px; font-size: 13px; font-weight: 700;
}
[data-theme="dark"] .role-banner button { color: #0e1420; }

/* 相关问答推荐 */
.related-box { padding-top: 8px; }
.related-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.related-tags .tag { cursor: pointer; border-style: dashed; }

/* ============ v3.0 候选列表 ============ */
.candidates-box {
  margin-top: 24px; padding: 16px 18px 18px;
  background: linear-gradient(180deg, var(--surface-2), transparent 50%);
  border: 1px solid var(--border); border-radius: 14px;
}
.candidates-box h3 { border-bottom-color: transparent; margin-bottom: 6px; }
.candidate-list {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; flex-direction: column; gap: 9px;
}
.candidate-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px;
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.candidate-item:hover {
  transform: translateY(-1px); border-color: var(--primary);
  box-shadow: var(--shadow);
}
.candidate-item.is-best {
  background: var(--primary-soft);
  border-color: var(--primary);
}
.c-rank {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); color: var(--primary);
  font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.candidate-item.is-best .c-rank {
  background: var(--primary); color: #fff;
}
[data-theme="dark"] .candidate-item.is-best .c-rank { color: #0e1420; }
.c-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.c-body strong { font-size: 14.5px; color: var(--text); font-weight: 700; }
.c-hits {
  font-size: 11.5px; color: var(--text-3);
  background: var(--bg); border-radius: 6px; padding: 2px 8px;
  display: inline-block; align-self: flex-start; word-break: break-all;
}
.c-score {
  font-size: 11px; color: var(--success); font-weight: 700;
  display: inline-block; align-self: flex-start;
}
.c-go {
  flex-shrink: 0; border: 1px solid var(--primary); background: transparent;
  color: var(--primary); border-radius: 10px; padding: 6px 12px;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.c-go:hover { background: var(--primary); color: #fff; }
[data-theme="dark"] .c-go:hover { color: #0e1420; }
@media (max-width: 600px) {
  .candidate-item { flex-wrap: wrap; }
  .c-go { width: 100%; margin-top: 6px; }
}

/* URL 智能改写标识 */
.is-search {
  background: var(--primary-soft);
  padding: 2px 8px; border-radius: 8px;
  font-weight: 700;
}

/* ---------- 官方渠道实时检索 ---------- */
.official-search {
  background: linear-gradient(180deg, var(--primary-soft), transparent 75%);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px 18px; margin-top: 24px;
}
.official-search h3 { border-bottom-color: transparent; margin-bottom: 8px; }
.os-hint { font-size: 13px; color: var(--text-2); margin-bottom: 14px; line-height: 1.6; }
.os-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.os-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; color: var(--text);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.os-card:hover { transform: translateY(-2px); border-color: var(--primary); text-decoration: none; box-shadow: var(--shadow); }
.os-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.os-name { font-size: 14px; font-weight: 700; display: flex; flex-direction: column; gap: 2px; }
.os-org { font-size: 12px; font-weight: 500; color: var(--text-3); }
.os-cta { margin-top: auto; font-size: 12.5px; font-weight: 700; color: var(--primary); }
.os-direct { border-style: dashed; }
.os-direct:hover { border-style: solid; }
[data-theme="dark"] .official-search { background: linear-gradient(180deg, var(--primary-soft), transparent 75%); }

.disclaimer-line {
  margin-top: 18px; font-size: 12.5px; color: var(--text-3);
  border-top: 1px dashed var(--border); padding-top: 14px;
}

/* ---------- 右侧信息流 ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
}
.news-panel .panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 16px 18px 12px;
}
.news-panel .panel-head h2 { font-size: 15.5px; font-weight: 800; line-height: 1.4; }
.panel-badge { font-size: 11px; color: var(--success); background: #e8f7ee; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
[data-theme="dark"] .panel-badge { background: #12301f; }
[data-theme="dark"] .news-group-title { background: var(--bg); }
[data-theme="dark"] .news-level-shanghai { color: #fcd34d; background: #451a03; }
[data-theme="dark"] .news-level-national { color: #93c5fd; background: #1e3a8a; }
.news-scroll { max-height: 560px; overflow-y: auto; padding: 0 18px 6px; }
.news-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: none; }
.news-date { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.news-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.news-item h3 { font-size: 14px; font-weight: 700; line-height: 1.45; margin: 6px 0; }
.news-item h3 a { color: var(--text); }
.news-item h3 a:hover { color: var(--primary); text-decoration: none; }
.news-item p { font-size: 13px; color: var(--text-2); line-height: 1.55; }
.news-item .news-org { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--primary); background: var(--primary-soft); border-radius: 6px; padding: 2px 8px; }
.news-empty { padding: 30px 18px; text-align: center; color: var(--text-3); font-size: 14px; }
.news-group { padding-top: 4px; }
.news-group + .news-group { margin-top: 6px; border-top: 1px dashed var(--border); }
.news-group-title {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 800; color: var(--text-2);
  background: var(--bg); padding: 10px 0 4px; margin-bottom: 2px;
}
.news-level {
  margin-left: auto; flex-shrink: 0;
  font-size: 11px; font-weight: 700; line-height: 1;
  border-radius: 6px; padding: 3px 6px;
}
.news-level-shanghai { color: #b45309; background: #fef3c7; }
.news-level-national { color: #1d4ed8; background: #dbeafe; }
.panel-foot { padding: 10px 18px 14px; font-size: 11.5px; color: var(--text-3); border-top: 1px solid var(--border); line-height: 1.7; }

/* ---------- 官方信源（紧凑版 v2：3 列密排）---------- */
.official { padding: 28px 20px 12px; }
.section-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; letter-spacing: .3px; }
.section-desc { color: var(--text-2); font-size: 13.5px; line-height: 1.7; margin-bottom: 14px; }

.source-group { margin-bottom: 14px; }
.source-group h3 {
  font-size: 14px; font-weight: 800; margin-bottom: 7px; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.source-group h3 .sg-icon { font-size: 14.5px; }
.source-group .sg-count { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.source-card {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; color: var(--text);
  transition: border-color .15s ease, background .15s ease;
  min-width: 0;
}
.source-card:hover { border-color: var(--primary); background: var(--surface-2); text-decoration: none; }
.source-card > div { min-width: 0; flex: 1; }
.source-card h4 {
  font-size: 13.5px; font-weight: 700; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.source-card span {
  font-size: 11.5px; color: var(--text-3); line-height: 1.4;
  display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.source-arrow { margin-left: auto; color: var(--primary); font-weight: 800; flex-shrink: 0; font-size: 12px; }

.hotline-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hotline-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 12px; font-size: 12px;
}
.hotline-chip b { color: var(--primary); font-size: 13.5px; }
.hotline-chip small { color: var(--text-3); font-size: 11px; }

/* ---------- 免责声明 ---------- */
.disclaimer { padding: 36px 20px 20px; }
.disclaimer-box {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow);
}
.disclaimer-box p { font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.disclaimer-box p:last-child { margin-bottom: 0; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 30px 0; text-align: center; margin-top: 40px; }
.footer-meta { margin-top: 8px; font-size: 13px; color: var(--text-3); line-height: 1.9; }
.footer-icp { margin-top: 6px; font-size: 12px; color: var(--text-3); }
.footer-icp a { color: var(--text-3); text-decoration: none; transition: color .15s ease; }
.footer-icp a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- 响应式 ---------- */

/* 平板：右栏窄化 */
@media (max-width: 1199px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; }
}

/* 平板以下：单栏 */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .side-col { position: static; order: 0; }
  .news-scroll { max-height: 340px; }
  .source-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 手机 */
@media (max-width: 720px) {
  .nav { height: 58px; }
  .brand-tag { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 58px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px; gap: 2px; display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 12px 14px; font-size: 16px; }

  .layout { padding-top: 16px; }
  .hero { padding: 20px 18px; border-radius: 14px; }
  .search-form { flex-direction: column; gap: 10px; }
  .btn-search { padding: 13px 0; width: 100%; }
  .role-field { flex-direction: column; }
  .role-option { min-width: 0; }

  .result-card { padding: 20px 16px; }
  .result-card .rc-title { font-size: 18px; }
  .law-item, .case-item, .risk-item, .guide-item { padding: 12px; }
}

/* 超小屏 */
@media (max-width: 380px) {
  .brand-name { font-size: 17px; }
  .source-grid { grid-template-columns: 1fr; }
}

/* 减弱动画偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
