/* ==========================================================================
   MedDocs · 医疗器械 PDF 资料目录库
   设计基底：临床档案馆 (Clinical Archive) — 纸感底色 / 墨色骨架 / 青色信号
   ========================================================================== */

:root {
  /* ---------- 字体阶梯（11 级） ---------- */
  --fs-2xs: 10.5px;   /* 微型标签、编号、徽标 */
  --fs-xs:  11.5px;   /* 元信息、页脚、说明 */
  --fs-sm:  12.5px;   /* 标签、次要说明、卡片元信息 */
  --fs-md:  13.5px;   /* 控件文字、筛选项 */
  --fs-lg:  15px;     /* 正文 */
  --fs-xl:  16.5px;   /* 导语、卡片标题 */
  --fs-2xl: 19px;     /* 区块小标题 */
  --fs-3xl: 24px;     /* 页面标题、区块标题 */
  --fs-4xl: 30px;     /* 大标题 */
  --fs-5xl: 38px;     /* 展示型标题 */
  --fs-6xl: 52px;     /* 首屏主标题 */

  /* ---------- 间距阶梯（4 的倍数） ---------- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-14: 56px; --sp-16: 64px; --sp-20: 80px;

  /* ---------- 容器 ---------- */
  --container: 1280px;
  --gutter: 24px;
  --measure: 68ch;      /* 正文最佳行长 */

  /* 墨色骨架 */
  --ink:        #0B1622;
  --ink-2:      #12212F;
  --ink-3:      #1B2F40;
  --slate:      #3D5265;
  --muted:      #6B7C8A;
  --faint:      #9AA7B2;

  /* 纸面 */
  --paper:      #F5F3EE;
  --paper-2:    #FBFAF7;
  --white:      #FFFFFF;
  --line:       #E3E8EB;
  --line-soft:  #EDF1F3;

  /* 信号色 */
  --teal:       #0E7C86;
  --teal-d:     #0A5A62;
  --teal-l:     #E7F1F1;
  --terra:      #C0552C;
  --terra-l:    #F8EDE7;
  --amber:      #B8860B;
  --violet:     #6B4E9E;

  --radius-s: 4px;
  --radius:   8px;
  --radius-l: 14px;

  --font-sans: "PingFang SC","Microsoft YaHei","Hiragino Sans GB","Source Han Sans SC","Noto Sans SC",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-serif: "Songti SC","Source Han Serif SC","Noto Serif SC",Georgia,"Times New Roman",serif;
  --font-mono: "Cascadia Mono","JetBrains Mono",Consolas,"SF Mono","Courier New",monospace;

  --ease: cubic-bezier(.22,.7,.3,1);
  --shadow-s: 0 1px 2px rgba(11,22,34,.05), 0 2px 8px rgba(11,22,34,.04);
  --shadow: 0 2px 6px rgba(11,22,34,.07), 0 12px 32px rgba(11,22,34,.08);
  --shadow-l: 0 4px 10px rgba(11,22,34,.09), 0 24px 60px rgba(11,22,34,.14);
}

* { box-sizing: border-box; }

/* hidden 属性必须始终生效（否则组件显式 display 会覆盖 UA 样式） */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-y: scroll;
}

body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(circle at 1px 1px, rgba(11,22,34,.028) 1px, transparent 0);
  background-size: 22px 22px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: rgba(14,124,134,.18); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: var(--sp-3) var(--sp-5); border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- 顶部条 ---------- */
.topstrip {
  background: var(--ink); color: rgba(255,255,255,.72);
  font-size: var(--fs-sm); border-bottom: 1px solid rgba(255,255,255,.08);
}
.topstrip-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); height: 36px; }
.demo-badge { display: inline-flex; align-items: center; gap: var(--sp-2); letter-spacing: .02em; }
.demo-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--terra);
  box-shadow: 0 0 0 3px rgba(192,85,44,.20); animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .45 } }
.topstrip-nav { display: flex; align-items: center; gap: var(--sp-5); }
.topstrip-nav a { color: rgba(255,255,255,.66); transition: color .18s var(--ease); }
.topstrip-nav a:hover { color: #fff; }
.topstrip-meta { color: rgba(255,255,255,.38); letter-spacing: .1em; font-size: var(--fs-xs); }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,250,247,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--sp-6); height: 68px; }

.brand { display: flex; align-items: center; gap: var(--sp-3); flex: 0 0 auto; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: #fff;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(11,22,34,.18);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-xl); letter-spacing: .16em; }
.brand-cn { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .06em; }

.main-nav { display: flex; align-items: center; gap: var(--sp-1); margin-left: 8px; }
.main-nav a {
  position: relative; padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-s);
  font-size: var(--fs-lg); color: var(--slate); transition: color .18s var(--ease), background .18s var(--ease);
}
.main-nav a:hover { color: var(--ink); background: rgba(11,22,34,.045); }
.main-nav a.active { color: var(--ink); font-weight: 600; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  background: var(--teal); border-radius: 2px;
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); }
.icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: var(--radius);
  border: 1px solid transparent; background: transparent; display: grid; place-items: center;
  color: var(--slate); transition: all .18s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--white); border-color: var(--line); color: var(--ink); }
.fav-count {
  position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; padding: 0 var(--sp-1);
  border-radius: 8px; background: var(--terra); color: #fff; font-size: var(--fs-2xs); line-height: 16px;
  text-align: center; font-weight: 600;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--radius); border: 1px solid transparent;
  font-size: var(--fs-lg); font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  transition: all .18s var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(11,22,34,.2); }
.btn-primary:hover { background: var(--teal-d); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(10,90,98,.28); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-d); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--slate); }
.btn-ghost:hover { background: var(--white); border-color: var(--faint); color: var(--ink); }
.btn-sm { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-md); }
.btn-block { width: 100%; }

/* ---------- 区块标题 ---------- */
.section { padding: var(--sp-16) 0; }
.section + .section { padding-top: 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: ; margin-bottom: 30px; }
.section-eyebrow {
  display: flex; align-items: center; gap: var(--sp-3); margin-bottom: 10px;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .2em; color: var(--teal); text-transform: uppercase;
}
.section-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--teal); }
.section-title { font-size: var(--fs-4xl); line-height: 1.24; font-weight: 800; letter-spacing: -.015em; margin: 0; }
.section-desc { margin: var(--sp-3) 0 0; color: var(--muted); font-size: var(--fs-lg); max-width: 62ch; }
.section-more {
  display: inline-flex; align-items: center; gap: var(--sp-2); flex: 0 0 auto;
  font-size: var(--fs-md); color: var(--teal); font-weight: 600; padding: var(--sp-2) 0;
}
.section-more:hover { gap: var(--sp-3); }
.section-more svg { width: 15px; height: 15px; }

/* ---------- 文档卡片 ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: var(--sp-6) ; }
.doc-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.doc-card { display: flex; flex-direction: column; min-width: 0; }
.doc-cover {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-s); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  aspect-ratio: 1 / 1.414;
}
.doc-cover:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); border-color: #D2DAE0; }
.doc-cover canvas, .doc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc-cover .cover-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(150deg, #10202E, #0B1622 60%);
  color: rgba(255,255,255,.34);
}
.doc-cover .cover-ph span { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .18em; }

.cover-type {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  padding: 3px var(--sp-2); border-radius: 20px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em;
  color: #fff; background: var(--teal); box-shadow: 0 2px 8px rgba(11,22,34,.22);
}
.cover-pages {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  padding: 2px var(--sp-2); border-radius: 20px; font-family: var(--font-mono); font-size: var(--fs-2xs);
  color: #fff; background: rgba(11,22,34,.66); backdrop-filter: blur(4px);
}
.cover-fav {
  position: absolute; top: 6px; right: 6px; z-index: 3; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--slate);
  opacity: 0; transform: scale(.85); transition: all .2s var(--ease); border: none; box-shadow: var(--shadow-s);
}
.cover-fav svg { width: 16px; height: 16px; }
.doc-cover:hover .cover-fav { opacity: 1; transform: scale(1); }
.cover-fav:hover { color: var(--terra); }
.cover-fav.on { opacity: 1; transform: scale(1); color: var(--terra); }
.cover-fav.on svg { fill: var(--terra); }

.cover-cta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-2); background: rgba(11,22,34,.90); color: #fff; font-size: var(--fs-sm); font-weight: 600;
  transform: translateY(100%); transition: transform .24s var(--ease);
}
.doc-cover:hover .cover-cta { transform: translateY(0); }
.cover-cta svg { width: 14px; height: 14px; }

.doc-body { padding: var(--sp-4) 2px 0; }
.doc-brand { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); margin-bottom: 6px; }
.brand-chip {
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 700; color: #fff; letter-spacing: .02em;
}
.doc-title {
  font-size: var(--fs-lg); font-weight: 700; line-height: 1.42; margin: 0; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .18s var(--ease);
}
.doc-card:hover .doc-title { color: var(--teal-d); }
.doc-sub {
  margin: var(--sp-1) 0 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.doc-meta {
  margin-top: 9px; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--faint);
}
.doc-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--line); display: inline-block; }
.doc-meta .cat-tag { color: var(--teal); }

/* ---------- 列表视图 ---------- */
.doc-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.doc-row {
  display: grid; grid-template-columns: 62px 1fr auto; gap: var(--sp-4); align-items: center;
  padding: var(--sp-3) var(--sp-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: all .18s var(--ease);
}
.doc-row:hover { border-color: #CFD8DE; box-shadow: var(--shadow-s); transform: translateX(2px); }
.doc-row .row-cover { width: 62px; aspect-ratio: 1/1.414; border-radius: 4px; overflow: hidden; background: var(--ink); position: relative; }
.doc-row .row-cover canvas { width: 100%; height: 100%; object-fit: cover; }
.doc-row .row-main { min-width: 0; }
.doc-row .row-title { font-size: var(--fs-lg); font-weight: 700; margin: 0 0 3px; }
.doc-row .row-sub { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.doc-row .row-meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--faint); display: flex; gap: var(--sp-2); }
.doc-row .row-actions { display: flex; gap: var(--sp-2); }

/* ---------- 标签 / 药丸 ---------- */
.pill {
  display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) var(--sp-3); border-radius: 20px;
  font-size: var(--fs-sm); background: var(--teal-l); color: var(--teal-d); font-weight: 600; border: 1px solid transparent;
  transition: all .16s var(--ease); cursor: pointer;
}
.pill:hover { background: #DAEBEB; }
.pill.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.pill.ghost:hover { border-color: var(--teal); color: var(--teal); }
.pill.on { background: var(--ink); color: #fff; }
.pill-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ---------- 表单 ---------- */
.field {
  width: 100%; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--white); font-size: var(--fs-lg); transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,134,.13); }
select.field { appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7C8A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 15px;
}
.check { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) 0; cursor: pointer; font-size: var(--fs-md); color: var(--slate); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 15px; height: 15px; border-radius: 3px; border: 1.5px solid #C9D3DA; background: #fff;
  display: grid; place-items: center; flex: 0 0 auto; transition: all .15s var(--ease);
}
.check .box svg { width: 10px; height: 10px; opacity: 0; transform: scale(.6); transition: all .15s var(--ease); color: #fff; }
.check input:checked + .box { background: var(--teal); border-color: var(--teal); }
.check input:checked + .box svg { opacity: 1; transform: scale(1); }
.check .cnt { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--faint); }
.check:hover { color: var(--ink); }

/* ---------- 搜索浮层 ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(11,22,34,.62);
  backdrop-filter: blur(3px); display: flex; justify-content: center; padding-top: 12vh;
  animation: fadeIn .16s var(--ease);
}
.search-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.search-overlay-panel {
  width: min(680px, calc(100vw - 40px)); background: var(--paper-2); border-radius: var(--radius-l);
  box-shadow: var(--shadow-l); overflow: hidden; align-self: flex-start;
  animation: slideUp .22s var(--ease);
}
@keyframes slideUp { from { transform: translateY(-14px); opacity: 0 } to { transform: none; opacity: 1 } }
.search-overlay-head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); background: var(--white); }
.so-icon { width: 20px; height: 20px; color: var(--faint); flex: 0 0 auto; }
#overlay-input { flex: 1; border: none; outline: none; background: transparent; font-size: var(--fs-2xl); }
#overlay-input::placeholder { color: var(--faint); }
.so-close {
  font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--muted); background: var(--paper);
  border: 1px solid var(--line); border-radius: 5px; padding: 3px var(--sp-2);
}
.search-suggest { max-height: 52vh; overflow-y: auto; padding: var(--sp-2) 0; }
.sug-group-label {
  padding: var(--sp-3) var(--sp-5) var(--sp-1); font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .16em;
  color: var(--faint); text-transform: uppercase;
}
.sug-item {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-5); cursor: pointer;
  border-left: 2px solid transparent; transition: background .12s var(--ease);
}
.sug-item:hover, .sug-item.active { background: var(--white); border-left-color: var(--teal); }
.sug-icon { width: 30px; height: 30px; border-radius: 7px; background: var(--teal-l); color: var(--teal-d); display: grid; place-items: center; flex: 0 0 auto; }
.sug-icon svg { width: 15px; height: 15px; }
.sug-text { min-width: 0; flex: 1; }
.sug-title { font-size: var(--fs-lg); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-sub { font-size: var(--fs-xs); color: var(--muted); font-family: var(--font-mono); }
.sug-kind { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--faint); letter-spacing: .1em; }
.sug-empty { padding: var(--sp-8) var(--sp-5); text-align: center; color: var(--muted); font-size: var(--fs-md); }
.search-overlay-foot {
  display: flex; justify-content: space-between; padding: var(--sp-3) var(--sp-5); border-top: 1px solid var(--line);
  background: var(--white); font-size: var(--fs-xs); color: var(--faint);
}

/* ---------- 提示条 ---------- */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: var(--sp-2); }
.toast {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius);
  background: var(--ink); color: #fff; font-size: var(--fs-md); box-shadow: var(--shadow-l);
  animation: toastIn .22s var(--ease);
}
.toast svg { width: 16px; height: 16px; color: #6FD3C7; }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0 } to { transform: none; opacity: 1 } }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.62); padding: var(--sp-14) 0 0; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-10); padding-bottom: 44px; }
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-cn { color: rgba(255,255,255,.45); }
.brand-footer .brand-mark { background: var(--teal); }
.footer-note { margin: var(--sp-5) 0 0; font-size: var(--fs-md); line-height: 1.8; max-width: 42ch; }
.footer-disclaimer { margin: var(--sp-4) 0 0; font-size: var(--fs-sm); line-height: 1.75; color: rgba(255,255,255,.38); max-width: 46ch; }
.footer-h { font-size: var(--fs-sm); font-family: var(--font-mono); letter-spacing: .16em; color: rgba(255,255,255,.42); margin: 0 0 var(--sp-4); text-transform: uppercase; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-md); }
.footer-list a { color: rgba(255,255,255,.66); transition: color .16s var(--ease); }
.footer-list a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: var(--sp-5); padding: var(--sp-4) var(--gutter);
  border-top: 1px solid rgba(255,255,255,.10); font-size: var(--fs-xs); color: rgba(255,255,255,.34); letter-spacing: .08em;
}

/* ---------- 通用工具 ---------- */
.breadcrumb { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-md); color: var(--muted); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { color: var(--line); }
.empty-state { text-align: center; padding: var(--sp-16) var(--sp-5); color: var(--muted); }
.empty-state svg { width: 42px; height: 42px; color: var(--line); margin-bottom: 14px; }
.empty-state h3 { margin: 0 0 var(--sp-2); font-size: var(--fs-2xl); color: var(--ink); }
.empty-state p { margin: 0 0 var(--sp-5); font-size: var(--fs-md); }
.skeleton { background: linear-gradient(90deg, #EDEFF1 25%, #F5F6F7 37%, #EDEFF1 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite linear; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}
@media (max-width: 860px) {
  :root { --gutter: 18px; }
  .main-nav { display: none; }
  .header-search-btn { display: none; }
  .section { padding: var(--sp-12) 0; }
  .section-title { font-size: var(--fs-3xl); }
  .topstrip-nav a:not(:last-child) { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-5) var(--sp-4); }
  .footer-bottom { flex-direction: column; gap: var(--sp-2); }
}
