/* =============================================================
   法鼎 · 全国律师资讯门户  —  style.css
   零 CDN：系统字体栈 + 文档内联 SVG 图标，全部本地化
   设计语言：墨蓝 + 天蓝 + 湖青 + 珊瑚（与 law1-7 暖色/金/紫系区分）
   ============================================================= */

/* ---------- 1. 设计变量 ---------- */
:root{
  --ink:        #0e1726;   /* 主墨蓝（深色区背景） */
  --ink-2:      #15243a;   /* 深色区分层 */
  --brand:      #2d7df6;   /* 天蓝（主品牌色） */
  --brand-strong:#1b63d8;
  --aqua:       #13b5a6;   /* 湖青（次强调） */
  --coral:      #ff6f61;   /* 珊瑚（点缀 / 数字 / CTA 高亮） */
  --amber:      #f2b53c;   /* 暖金（编号标签） */
  --paper:      #f3f7fc;   /* 冷调近白底 */
  --surface:    #ffffff;
  --surface-2:  #eef3f9;
  --line:       #dfe7f1;
  --line-strong:#c7d3e2;
  --text:       #15212f;   /* 正文主色 */
  --muted:      #5b6b7c;   /* 次级文字 */
  --muted-2:    #8695a6;
  --on-dark:    #eaf1f8;   /* 深色区文字 */
  --on-dark-mut:#9fb1c6;

  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px -24px rgba(14,23,38,.45);
  --shadow-sm: 0 8px 22px -16px rgba(14,23,38,.4);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN",
          "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --serif: "Songti SC", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas,
          "Liberation Mono", "Courier New", monospace;
}

/* ---------- 2. 复位（svg 与 img 分离，规避经典陷阱） ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth;
      /* 防横向溢出：clip 不破坏 sticky，优于 hidden */
      overflow-x:clip; }
body{ margin:0; overflow-x:clip;
      font-family:var(--font);
      color:var(--text);
      background:var(--paper);
      line-height:1.65;
      font-size:16px;
      -webkit-font-smoothing:antialiased;
      text-rendering:optimizeLegibility; }
img, video{ max-width:100%; height:auto; display:block; border:0; }
/* 内联 svg 图标：绝不与 img 共用复位规则 */
svg{ display:inline-block; vertical-align:-.125em; flex:0 0 auto; }
svg.svg-sprite{ position:absolute; width:0; height:0; overflow:hidden; }
/* 24×24 线性图标兜底尺寸，组件级用 .icon 覆盖为 1em */
svg[viewBox="0 0 24 24"]{ width:16px; height:16px; max-width:none; }

h1,h2,h3,h4,h5,h6{ margin:0; font-weight:800; line-height:1.22;
      letter-spacing:-.01em; color:var(--ink); }
p{ margin:0; }
a{ color:var(--brand-strong); text-decoration:none; }
a:hover{ color:var(--brand); }
ul,ol{ margin:0; padding:0; list-style:none; }
button{ font:inherit; cursor:pointer; }
:focus-visible{ outline:3px solid var(--brand); outline-offset:2px; border-radius:4px; }

/* ---------- 3. 布局工具 ---------- */
/* .wrap 只负责居中收口，绝不使用 padding 简写（避免被修饰类清零左右） */
.wrap{ width:min(var(--maxw), 100% - 48px); margin-inline:auto; }
@media (min-width:1280px){ .wrap{ width:min(var(--maxw), 100% - 64px); } }

.section{ padding-block:clamp(46px, 7vw, 88px); }
.section--tight{ padding-block:clamp(34px, 5vw, 60px); }
.section--paper{ background:var(--paper); }
.section--surface{ background:var(--surface); }
.section--muted{ background:var(--surface-2); }
/* 深色区：显式声明文字色，避免嵌白卡时继承同色隐形 */
.section--dark{ background:var(--ink); color:var(--on-dark); }
.section--dark h1,.section--dark h2,.section--dark h3,
.section--dark h4{ color:var(--on-dark); }
.section--dark .lead{ color:var(--on-dark-mut); }

.lead{ color:var(--muted); max-width:42em; }
.muted{ color:var(--muted); }
.center{ text-align:center; }
.mono{ font-family:var(--mono); font-variant-numeric:tabular-nums; }
.eyebrow{ font-family:var(--mono); font-size:13px; letter-spacing:.18em;
      text-transform:uppercase; color:var(--brand-strong); font-weight:700; }
.eyebrow--coral{ color:var(--coral); }

.grid{ display:grid; gap:24px; }
.grid > *{ min-width:0; }            /* 防栅格子项溢出 */
.cols-2{ grid-template-columns:repeat(2,1fr); }
.cols-3{ grid-template-columns:repeat(3,1fr); }
.cols-4{ grid-template-columns:repeat(4,1fr); }

/* 区块标题 */
.head{ max-width:46em; margin-bottom:clamp(26px,4vw,42px); }
.head__title{ font-size:clamp(24px,3.4vw,36px); }
.head__title .accent{ color:var(--brand); }
.head .lead{ margin-top:12px; }

/* ---------- 4. 按钮 ---------- */
.btn{ display:inline-flex; align-items:center; gap:8px; justify-content:center;
      padding:12px 22px; border-radius:999px; font-weight:700; font-size:15px;
      border:1px solid transparent; transition:transform .15s ease, background .2s, box-shadow .2s; }
.btn svg{ width:18px; height:18px; }
.btn--primary{ background:var(--brand); color:#fff; box-shadow:var(--shadow-sm); }
.btn--primary:hover{ background:var(--brand-strong); color:#fff; transform:translateY(-1px); }
.btn--coral{ background:var(--coral); color:#fff; }
.btn--coral:hover{ background:#f25a4b; color:#fff; transform:translateY(-1px); }
.btn--ghost{ background:transparent; color:var(--ink); border-color:var(--line-strong); }
.btn--ghost:hover{ border-color:var(--brand); color:var(--brand-strong); }
.btn--light{ background:#fff; color:var(--ink); }
.btn--light:hover{ background:var(--surface-2); color:var(--ink); }
.btn--block{ width:100%; }

/* ---------- 5. 头部 / 导航 ---------- */
.skip-link{ position:absolute; left:12px; top:-48px; z-index:200;
      background:var(--ink); color:#fff; padding:10px 16px; border-radius:8px;
      transition:top .2s; }
.skip-link:focus{ top:12px; }
.visually-hidden{ position:absolute; width:1px; height:1px; padding:0; margin:-1px;
      overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

.site-header{ position:sticky; top:0; z-index:60; background:var(--ink);
      color:var(--on-dark); border-bottom:1px solid rgba(255,255,255,.08); }
.header-main{ display:flex; align-items:center; gap:18px; min-height:70px;
      flex-wrap:wrap; }
.brand{ display:inline-flex; align-items:center; gap:11px; color:#fff; font-weight:800;
      font-size:19px; letter-spacing:.02em; }
.brand:hover{ color:#fff; }
.brand__mark{ width:38px; height:38px; border-radius:10px; flex:0 0 auto;
      background:linear-gradient(135deg,var(--brand),var(--aqua));
      display:grid; place-items:center; color:#fff; box-shadow:var(--shadow-sm); }
.brand__mark svg{ width:22px; height:22px; }
.brand__sub{ display:block; font-size:11px; font-weight:600; letter-spacing:.16em;
      color:var(--on-dark-mut); font-family:var(--mono); }

.nav{ margin-left:auto; }
.nav__list{ display:flex; align-items:center; gap:2px; }
.nav__item{ position:relative; }
.nav__link{ display:inline-flex; align-items:center; padding:10px 14px; border-radius:8px;
      color:var(--on-dark-mut); font-weight:600; font-size:15px; }
.nav__link:hover, .nav__item.is-active .nav__link{ color:#fff; background:rgba(255,255,255,.06); }
.nav__item.is-active .nav__link::after{ content:""; position:absolute; left:14px; right:14px;
      bottom:4px; height:2px; border-radius:2px; background:var(--brand); }

.header-cta{ display:flex; align-items:center; gap:10px; }
.header-cta .btn{ padding:9px 16px; font-size:14px; }
.phone-pill{ display:inline-flex; align-items:center; gap:7px; color:#fff; font-weight:700;
      font-family:var(--mono); }
.phone-pill svg{ width:16px; height:16px; color:var(--aqua); }

.nav-toggle{ display:none; margin-left:auto; width:44px; height:44px; border-radius:10px;
      background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); color:#fff;
      align-items:center; justify-content:center; }
.nav-toggle svg{ width:22px; height:22px; }

/* 首页：头部透明覆盖 Hero，滚动后变实 */
body.home .site-header{ background:linear-gradient(to bottom,
      rgba(14,23,38,.82), rgba(14,23,38,0)); border-bottom-color:transparent; }
body.home .site-header.is-scrolled{ background:var(--ink);
      border-bottom-color:rgba(255,255,255,.08); box-shadow:0 10px 30px -22px rgba(0,0,0,.7); }

/* ---------- 6. Hero ---------- */
.hero{ position:relative; overflow:hidden; color:var(--on-dark);
      background:
        radial-gradient(120% 90% at 88% -10%, rgba(45,125,246,.34), transparent 55%),
        radial-gradient(90% 80% at 0% 120%, rgba(19,181,166,.26), transparent 55%),
        var(--ink); }
/* 蓝图网点底纹 */
.hero::before{ content:""; position:absolute; inset:0; opacity:.5;
      background-image:radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.4px);
      background-size:26px 26px; mask-image:linear-gradient(to bottom, #000, transparent 78%); }
.hero__grid{ position:relative; display:grid; grid-template-columns:1.08fr .92fr;
      gap:clamp(28px,4vw,56px); align-items:center;
      padding-block:clamp(54px,8vw,104px); }
.hero__title{ font-size:clamp(30px,4.6vw,54px); color:#fff; line-height:1.12; }
.hero__title .hl{ color:var(--aqua); }
.hero__title .hl2{ color:var(--coral); }
.hero__sub{ margin-top:18px; font-size:clamp(15px,1.6vw,18px); color:var(--on-dark-mut);
      max-width:34em; }
.hero__search{ margin-top:26px; display:flex; gap:10px; background:rgba(255,255,255,.08);
      border:1px solid rgba(255,255,255,.16); padding:8px; border-radius:14px; backdrop-filter:blur(6px); }
.hero__search input{ flex:1; min-width:0; background:transparent; border:0; color:#fff;
      padding:10px 14px; font-size:15px; }
.hero__search input::placeholder{ color:var(--on-dark-mut); }
.hero__search input:focus{ outline:none; }
.hero__actions{ margin-top:22px; display:flex; flex-wrap:wrap; gap:12px; }

.hero__panel{ position:relative; background:rgba(255,255,255,.05);
      border:1px solid rgba(255,255,255,.14); border-radius:18px; padding:26px;
      backdrop-filter:blur(4px); }
.hero__panel h3{ color:#fff; font-size:18px; margin-bottom:16px; }
.stat{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.stat__cell{ background:rgba(14,23,38,.5); border:1px solid rgba(255,255,255,.1);
      border-radius:12px; padding:16px; }
.stat__num{ font-family:var(--mono); font-size:clamp(22px,3vw,30px); font-weight:800;
      color:#fff; line-height:1; }
.stat__num .u{ color:var(--aqua); font-size:.62em; margin-left:2px; }
.stat__label{ margin-top:8px; font-size:13px; color:var(--on-dark-mut); }

/* ---------- 7. 分类信息 ---------- */
.cats{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.cat{ position:relative; display:flex; gap:16px; align-items:flex-start;
      background:var(--surface); border:1px solid var(--line); border-left:4px solid var(--brand);
      border-radius:var(--radius-sm); padding:20px; transition:transform .18s, box-shadow .2s, border-color .2s; }
.cat:nth-child(3n+2){ border-left-color:var(--aqua); }
.cat:nth-child(3n+3){ border-left-color:var(--coral); }
.cat:hover{ transform:translateY(-3px); box-shadow:var(--shadow); border-color:var(--line-strong); }
.cat__idx{ font-family:var(--mono); font-size:13px; font-weight:700; color:var(--amber); }
.cat__icon{ width:46px; height:46px; border-radius:12px; flex:0 0 auto; display:grid;
      place-items:center; background:var(--surface-2); color:var(--brand-strong); }
.cat:nth-child(3n+2) .cat__icon{ color:var(--aqua); }
.cat:nth-child(3n+3) .cat__icon{ color:var(--coral); }
.cat__icon svg{ width:24px; height:24px; }
.cat__body{ min-width:0; }
.cat__title{ font-size:17px; margin-bottom:4px; }
.cat__desc{ font-size:13.5px; color:var(--muted); overflow-wrap:break-word; }

/* ---------- 8. 带缩略图文章卡 ---------- */
.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.post{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
      overflow:hidden; display:flex; flex-direction:column; transition:transform .18s, box-shadow .2s; }
.post:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.post__thumb{ aspect-ratio:16/10; position:relative; overflow:hidden; background:var(--ink); }
.post__thumb svg{ width:100%; height:100%; display:block; }
.post__tag{ position:absolute; left:12px; top:12px; z-index:2; font-family:var(--mono);
      font-size:12px; font-weight:700; letter-spacing:.04em; color:#fff;
      background:rgba(14,23,38,.7); padding:5px 11px; border-radius:999px;
      border:1px solid rgba(255,255,255,.18); }
.post__body{ padding:18px 20px 22px; display:flex; flex-direction:column; gap:10px; flex:1; }
.post__title{ font-size:18px; line-height:1.35; }
.post__title a{ color:var(--ink); }
.post__title a:hover{ color:var(--brand-strong); }
.post__excerpt{ font-size:14px; color:var(--muted); overflow-wrap:break-word; }
.post__meta{ margin-top:auto; display:flex; gap:14px; align-items:center; font-size:13px;
      color:var(--muted-2); font-family:var(--mono); }
.post__meta svg{ width:14px; height:14px; color:var(--muted-2); }

/* 主推文章（首页首屏更大） */
.post--feature{ grid-column:span 1; }
@media (min-width:880px){
  .post--lead{ grid-column:span 2; flex-direction:row; }
  .post--lead .post__thumb{ aspect-ratio:auto; flex:0 0 46%; }
  .post--lead .post__body{ padding:28px; }
  .post--lead .post__title{ font-size:23px; }
}

/* ---------- 9. 无缩略图编辑列表（双列） ---------- */
.lists-2{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(20px,4vw,48px); }
.list-col__title{ font-size:20px; display:flex; align-items:center; gap:9px; margin-bottom:6px; }
.list-col__title svg{ width:20px; height:20px; color:var(--brand); }
.rule{ border:0; border-top:1px solid var(--line); margin:14px 0 4px; }
.nlist li a{ display:flex; align-items:baseline; gap:14px; padding:13px 4px;
      border-bottom:1px dashed var(--line); color:var(--ink); }
.nlist li:last-child a{ border-bottom:0; }
.nlist__date{ font-family:var(--mono); font-size:13px; color:var(--muted-2);
      flex:0 0 auto; min-width:78px; }
.nlist__txt{ min-width:0; font-weight:600; overflow-wrap:break-word; }
.nlist li a:hover .nlist__txt{ color:var(--brand-strong); }
.nlist__cat{ font-family:var(--mono); font-size:11px; color:var(--aqua); margin-left:auto;
      flex:0 0 auto; }

/* ---------- 10. 深色表单区 ---------- */
.cta{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(28px,4vw,56px); align-items:center; }
.cta__copy h2{ color:#fff; font-size:clamp(24px,3.2vw,34px); }
.cta__copy .lead{ margin-top:12px; }
.cta__points{ margin-top:20px; display:grid; gap:12px; }
.cta__points li{ display:flex; gap:10px; align-items:flex-start; color:var(--on-dark); }
.cta__points svg{ width:20px; height:20px; color:var(--aqua); flex:0 0 auto; margin-top:2px; }

/* 白卡必须显式声明文字色，否则继承深色区同色隐形 */
.form-card{ background:var(--surface); color:var(--ink); border-radius:var(--radius);
      padding:clamp(22px,3vw,32px); box-shadow:var(--shadow); }
.form-card h3{ color:var(--ink); font-size:20px; margin-bottom:4px; }
.form-card .sub{ color:var(--muted); font-size:14px; margin-bottom:18px; }
.field{ margin-bottom:14px; }
.field label{ display:block; font-size:14px; font-weight:600; margin-bottom:6px; }
.field label .req{ color:var(--coral); }
.field input, .field select, .field textarea{
      width:100%; padding:11px 14px; border:1px solid var(--line-strong);
      border-radius:10px; font:inherit; color:var(--ink); background:var(--surface);
      transition:border-color .15s, box-shadow .15s; }
.field textarea{ resize:vertical; min-height:96px; }
.field input:focus, .field select:focus, .field textarea:focus{
      outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(45,125,246,.18); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select{
      border-color:var(--coral); box-shadow:0 0 0 3px rgba(255,111,97,.16); }
.field__err{ display:none; color:var(--coral); font-size:12.5px; margin-top:5px; }
.field.is-invalid .field__err{ display:block; }
.form-alert{ display:none; margin-bottom:14px; padding:12px 14px; border-radius:10px;
      font-size:14px; font-weight:600; }
.form-alert--ok{ display:block; background:rgba(19,181,166,.14); color:#0c6b62;
      border:1px solid rgba(19,181,166,.4); }
.form-alert--err{ display:block; background:rgba(255,111,97,.14); color:#c33;
      border:1px solid rgba(255,111,97,.4); }

/* ---------- 11. FAQ（原生 details） ---------- */
.faq{ display:grid; gap:12px; }
.faq details{ background:var(--surface); border:1px solid var(--line);
      border-radius:var(--radius-sm); padding:0 18px; }
.faq details[open]{ border-color:var(--brand); box-shadow:var(--shadow-sm); }
.faq summary{ list-style:none; cursor:pointer; display:flex; align-items:center;
      gap:12px; padding:16px 0; font-weight:700; color:var(--ink); }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::marker{ content:""; }
.faq summary .q-num{ font-family:var(--mono); color:var(--amber); font-size:13px;
      flex:0 0 auto; }
.faq summary .ico{ margin-left:auto; flex:0 0 auto; width:22px; height:22px;
      color:var(--brand-strong); transition:transform .2s; }
.faq details[open] summary .ico{ transform:rotate(45deg); }
.faq__body{ padding:0 0 18px; color:var(--muted); overflow-wrap:break-word; }

/* ---------- 12. 友情链接 ---------- */
.flinks{ display:flex; flex-wrap:wrap; gap:12px; }
.flinks a{ display:inline-flex; align-items:center; gap:8px; padding:10px 16px;
      background:var(--surface); border:1px solid var(--line); border-radius:999px;
      color:var(--ink); font-weight:600; font-size:14px; transition:border-color .15s, color .15s; }
.flinks a svg{ width:15px; height:15px; color:var(--muted-2); }
.flinks a:hover{ border-color:var(--brand); color:var(--brand-strong); }

/* ---------- 13. 页脚 ---------- */
.site-footer{ background:var(--ink); color:var(--on-dark); }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:32px;
      padding-block:clamp(40px,6vw,64px); }
.footer-brand .brand{ color:#fff; margin-bottom:14px; }
.footer-brand p{ color:var(--on-dark-mut); font-size:14px; max-width:30em; }
.footer-col h4{ color:#fff; font-size:15px; margin-bottom:14px; letter-spacing:.02em; }
.footer-col a{ display:block; color:var(--on-dark-mut); font-size:14px; padding:5px 0; }
.footer-col a:hover{ color:#fff; }
.footer-contact li{ display:flex; gap:10px; align-items:flex-start; color:var(--on-dark-mut);
      font-size:14px; padding:6px 0; }
.footer-contact svg{ width:17px; height:17px; color:var(--aqua); flex:0 0 auto; margin-top:3px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.1); padding-block:20px;
      display:flex; flex-wrap:wrap; gap:10px 22px; align-items:center;
      font-size:13px; color:var(--on-dark-mut); }
.footer-bottom a{ color:var(--on-dark-mut); }
.footer-bottom a:hover{ color:#fff; }
.footer-bottom .dot{ width:4px; height:4px; border-radius:50%; background:var(--on-dark-mut); }

/* ---------- 14. 面包屑 / 内页 banner ---------- */
.page-banner{ position:relative; overflow:hidden; color:var(--on-dark);
      background:
        radial-gradient(100% 120% at 85% 0%, rgba(45,125,246,.3), transparent 60%),
        radial-gradient(80% 100% at 0% 100%, rgba(19,181,166,.22), transparent 55%),
        var(--ink); }
.page-banner::before{ content:""; position:absolute; inset:0; opacity:.45;
      background-image:radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.4px);
      background-size:24px 24px; mask-image:linear-gradient(to bottom,#000,transparent 80%); }
.page-banner__in{ position:relative; padding-block:clamp(40px,6vw,72px); }
.crumb{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:13.5px;
      color:var(--on-dark-mut); font-family:var(--mono); margin-bottom:16px; }
.crumb a{ color:var(--on-dark-mut); }
.crumb a:hover{ color:#fff; }
.crumb .sep{ color:var(--muted-2); }
.crumb .cur{ color:#fff; }
.page-banner h1{ color:#fff; font-size:clamp(26px,3.6vw,40px); }
.page-banner .lead{ margin-top:12px; color:var(--on-dark-mut); }

/* 列表页筛选（details 增强，纯 CSS 可用） */
.filters{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:28px; }
.filters a{ padding:9px 16px; border-radius:999px; border:1px solid var(--line-strong);
      color:var(--ink); font-weight:600; font-size:14px; background:var(--surface); }
.filters a.is-active, .filters a:hover{ background:var(--brand); color:#fff; border-color:var(--brand); }

/* ---------- 15. 文章页 ---------- */
.layout{ display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:clamp(28px,4vw,52px);
      align-items:start; }
.article{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
      padding:clamp(22px,3.4vw,42px); }
.article__head{ border-bottom:1px solid var(--line); padding-bottom:20px; margin-bottom:24px; }
.article__title{ font-size:clamp(24px,3.2vw,34px); line-height:1.25; }
.article__meta{ margin-top:14px; display:flex; flex-wrap:wrap; gap:16px; align-items:center;
      color:var(--muted); font-size:13.5px; font-family:var(--mono); }
.article__meta svg{ width:15px; height:15px; color:var(--muted-2); }
.article__body{ font-size:16.5px; color:var(--text); }
/* 正文栏宽用 em（中文约等于字数），绝不用 ch */
.article__body > p{ max-width:36em; margin:0 0 18px; overflow-wrap:break-word; }
.article__body h2{ font-size:24px; margin:34px 0 14px; padding-left:14px;
      border-left:4px solid var(--brand); }
.article__body h3{ font-size:19px; margin:26px 0 10px; }
.article__body ul, .article__body ol{ max-width:36em; margin:0 0 18px; padding-left:22px; }
.article__body ul{ list-style:disc; }
.article__body ol{ list-style:decimal; }
.article__body li{ margin:6px 0; overflow-wrap:break-word; }
.article__body blockquote{ max-width:36em; margin:22px 0; padding:16px 20px;
      border-left:4px solid var(--aqua); background:var(--surface-2); border-radius:0 10px 10px 0;
      color:var(--ink); font-style:italic; }
.article__body .tip{ max-width:36em; margin:22px 0; padding:16px 18px; border-radius:12px;
      background:rgba(45,125,246,.08); border:1px solid rgba(45,125,246,.25); color:var(--ink); }
.article__body .tip b{ color:var(--brand-strong); }

/* TOC（details） */
.toc{ background:var(--surface-2); border:1px solid var(--line); border-radius:12px;
      padding:6px 18px; margin:0 0 26px; }
.toc summary{ list-style:none; cursor:pointer; font-weight:700; padding:12px 0;
      display:flex; align-items:center; gap:8px; color:var(--ink); }
.toc summary::-webkit-details-marker{ display:none; }
.toc summary::marker{ content:""; }
.toc summary svg{ width:18px; height:18px; color:var(--brand); }
.toc ol{ list-style:none; padding:0 0 12px; }
.toc li a{ display:block; padding:6px 0; color:var(--muted); font-size:14px; }
.toc li a:hover{ color:var(--brand-strong); }

/* 上下篇 */
.pager{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:34px;
      border-top:1px solid var(--line); padding-top:24px; }
.pager a{ display:block; padding:16px 18px; border:1px solid var(--line); border-radius:12px;
      background:var(--surface); transition:border-color .15s, transform .15s; }
.pager a:hover{ border-color:var(--brand); transform:translateY(-2px); }
.pager .lab{ font-family:var(--mono); font-size:12px; color:var(--muted-2); }
.pager .tt{ font-weight:700; color:var(--ink); margin-top:4px; overflow-wrap:break-word; }
.pager .next{ text-align:right; }

/* 侧栏 widget（相关 / 最新，均无缩略图） */
.widget{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
      padding:20px; margin-bottom:22px; }
.widget__title{ font-size:17px; display:flex; align-items:center; gap:9px; margin-bottom:14px;
      padding-bottom:12px; border-bottom:1px solid var(--line); }
.widget__title svg{ width:19px; height:19px; color:var(--brand); }
.wlist li a{ display:flex; gap:12px; align-items:baseline; padding:11px 2px;
      border-bottom:1px dashed var(--line); color:var(--ink); }
.wlist li:last-child a{ border-bottom:0; }
.wlist__date{ font-family:var(--mono); font-size:12px; color:var(--muted-2); flex:0 0 auto; }
.wlist__txt{ min-width:0; font-weight:600; font-size:14.5px; overflow-wrap:break-word; }
.wlist li a:hover .wlist__txt{ color:var(--brand-strong); }
.wlist__cat{ font-family:var(--mono); font-size:11px; color:var(--aqua); margin-left:auto;
      flex:0 0 auto; }

/* 分页 */
.pagination{ display:flex; flex-wrap:wrap; gap:8px; margin-top:30px; justify-content:center; }
.pagination a, .pagination span{ min-width:42px; height:42px; padding:0 12px;
      display:inline-flex; align-items:center; justify-content:center; border-radius:10px;
      border:1px solid var(--line-strong); color:var(--ink); font-weight:600; font-size:14px; }
.pagination a:hover{ border-color:var(--brand); color:var(--brand-strong); }
.pagination .cur{ background:var(--brand); color:#fff; border-color:var(--brand); }
.pagination .dots{ border:0; color:var(--muted-2); }

/* 文章页底部咨询条 */
.article-cta{ margin-top:30px; display:flex; flex-wrap:wrap; gap:16px; align-items:center;
      justify-content:space-between; background:linear-gradient(120deg,var(--brand),var(--aqua));
      color:#fff; border-radius:var(--radius); padding:22px 26px; }
.article-cta h3{ color:#fff; font-size:19px; }
.article-cta p{ color:rgba(255,255,255,.92); font-size:14px; margin-top:4px; }

/* ---------- 16. 移动端底部操作条 ---------- */
.mobile-bar{ display:none; position:fixed; left:0; right:0; bottom:0; z-index:80;
      background:rgba(14,23,38,.96); backdrop-filter:blur(8px);
      border-top:1px solid rgba(255,255,255,.12); padding:10px 14px calc(10px + env(safe-area-inset-bottom)); }
.mobile-bar a{ display:inline-flex; align-items:center; justify-content:center; gap:8px;
      color:#fff; font-weight:700; font-size:15px; padding:12px; border-radius:12px; }
.mobile-bar a svg{ width:18px; height:18px; }
.mobile-bar .b-consult{ background:var(--coral); }
.mobile-bar .b-tel{ background:rgba(255,255,255,.12); }

/* ---------- 17. reveal 渐进增强 ---------- */
/* 默认可见；仅当 JS 标记 html.js-reveal 才隐藏，避免脚本失效白屏 */
.reveal{ opacity:1; transform:none; }
html.js-reveal .reveal{ opacity:0; transform:translateY(22px);
      transition:opacity .6s ease, transform .6s ease; }
html.js-reveal .reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  html.js-reveal .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
}

/* ---------- 18. 响应式 ---------- */
@media (max-width:1080px){
  .cats{ grid-template-columns:repeat(2,1fr); }
  .cards{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .layout{ grid-template-columns:1fr; }
  .aside{ order:-1; }
}
@media (max-width:860px){
  .header-main{ flex-wrap:wrap; }
  .nav{ flex:1 0 100%; order:3; }
  .nav__list{ flex-wrap:wrap; gap:4px; }
  .nav__link{ padding:12px 12px; }
  .nav-toggle{ display:inline-flex; }
  /* 无 JS 降级：导航直接换行铺开，依旧可点 */
  .site-header:not(.is-collapsible) .nav{ max-height:none; overflow:visible; }
  .site-header:not(.is-collapsible) .nav__list{ flex-direction:row; }
  /* JS 接管后：折叠抽屉 */
  .site-header.is-collapsible .nav{ max-height:0; overflow:hidden;
      transition:max-height .3s ease; }
  .site-header.is-collapsible .nav.open{ max-height:520px; overflow:visible; }
  .site-header.is-collapsible .nav__list{ flex-direction:column; align-items:stretch; }
  .header-cta .phone-pill{ display:none; }
  .hero__grid{ grid-template-columns:1fr; }
  .cta{ grid-template-columns:1fr; }
  .lists-2{ grid-template-columns:1fr; }
  .post--lead{ flex-direction:column; }
  .post--lead .post__thumb{ flex:none; aspect-ratio:16/10; }
}
@media (max-width:680px){
  .cats{ grid-template-columns:1fr; }
  .cards{ grid-template-columns:1fr; }
  .stat{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr; gap:24px; }
  .pager{ grid-template-columns:1fr; }
  .pager .next{ text-align:left; }
  /* 顶栏放不下时隐藏 CTA，入口交给底部操作条 */
  .header-cta{ display:none; }
  /* 栅格直接写在 .mobile-bar 上，漏写包装层会堆叠成两行 */
  .mobile-bar{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
  body{ padding-bottom:64px; }
}
@media (max-width:420px){
  .wrap{ width:min(var(--maxw), calc(100% - 32px)); }
  .hero__search{ flex-direction:column; }
  .hero__search .btn{ width:100%; }
}
