@charset "utf-8";
/* ============================================================
   暖光心育 · 青少年心理知识库
   Design system  |  brand-matched warm palette
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* brand */
  --ng-primary: #E08A2E;
  --ng-primary-deep: #A85C14;
  --ng-primary-soft: #FBE6C8;
  --ng-cream: #FBF1E2;
  --ng-bg: #FFFCF7;
  --ng-surface: #FFFFFF;

  /* ink */
  --ng-ink: #2A2119;
  --ng-ink-2: #5E4E3D;
  --ng-ink-3: #8B7862;
  --ng-line: rgba(168, 92, 20, .14);
  --ng-line-strong: rgba(168, 92, 20, .28);

  /* state */
  --ng-focus: #1D5FBF;

  /* elevation */
  --ng-sh-1: 0 1px 2px rgba(74, 46, 12, .05), 0 2px 8px rgba(74, 46, 12, .045);
  --ng-sh-2: 0 2px 6px rgba(74, 46, 12, .06), 0 12px 28px rgba(74, 46, 12, .09);
  --ng-sh-3: 0 4px 12px rgba(74, 46, 12, .08), 0 24px 48px rgba(74, 46, 12, .12);

  /* geometry */
  --ng-r-s: 8px;
  --ng-r-m: 14px;
  --ng-r-l: 20px;
  --ng-r-xl: 28px;
  --ng-max: 1200px;
  --ng-gut: 24px;

  /* type */
  --ng-sans: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB",
             "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --ng-serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;

  /* category accents (muted earth family) */
  --c-yiyu: #6F86A6;
  --c-yanxue: #D2802F;
  --c-panni: #C1613C;
  --c-zibi: #7F9273;
  --c-qutihua: #AC7A50;
  --c-chuangshang: #9C7189;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ng-bg);
  color: var(--ng-ink);
  font-family: var(--ng-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
input, select { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 3. A11y helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 999;
  background: var(--ng-primary-deep); color: #fff;
  padding: 10px 18px; border-radius: 0 0 var(--ng-r-s) var(--ng-r-s);
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }
:focus-visible {
  outline: 3px solid var(--ng-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: var(--ng-max); margin: 0 auto; padding: 0 var(--ng-gut); }
.stack > * + * { margin-top: 16px; }
main { display: block; min-height: 60vh; }

/* ---------- 5. Header ---------- */
.ng-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 252, 247, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--ng-line);
}
.ng-topbar {
  background: linear-gradient(90deg, var(--ng-primary-deep), #C97620 55%, var(--ng-primary));
  color: #FFF4E4; font-size: 13px; line-height: 34px;
}
.ng-topbar .wrap { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.ng-topbar b { color: #fff; letter-spacing: .02em; }
.ng-topbar .tb-hide { display: none; }
.ng-nav-row {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
}
.ng-logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.ng-logo-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  background: radial-gradient(circle at 32% 28%, #FFD79A, var(--ng-primary) 58%, var(--ng-primary-deep));
  box-shadow: 0 3px 10px rgba(224, 138, 46, .38);
  position: relative;
}
.ng-logo-mark::after {
  content: ""; position: absolute; inset: 11px;
  border-radius: 50%; background: rgba(255, 255, 255, .9);
}
.ng-logo-txt { display: flex; flex-direction: column; line-height: 1.2; }
.ng-logo-txt strong { font-size: 18px; letter-spacing: .04em; color: var(--ng-ink); }
.ng-logo-txt span { font-size: 11px; color: var(--ng-ink-3); letter-spacing: .16em; font-family: var(--ng-serif); }

.ng-nav { margin-left: auto; }
.ng-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.ng-nav a {
  display: block; padding: 9px 14px; border-radius: 999px;
  font-size: 15px; color: var(--ng-ink-2);
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}
.ng-nav a:hover { background: var(--ng-primary-soft); color: var(--ng-primary-deep); }
.ng-nav a[aria-current="page"] {
  background: var(--ng-primary-deep); color: #fff; font-weight: 600;
}
.ng-cta-tel {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--ng-primary-deep); background: var(--ng-primary-soft);
  border: 1px solid var(--ng-line-strong);
}
.ng-burger {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--ng-line-strong); background: var(--ng-surface);
  cursor: pointer; align-items: center; justify-content: center;
}
.ng-burger span, .ng-burger span::before, .ng-burger span::after {
  content: ""; display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--ng-primary-deep); position: relative;
}
.ng-burger span::before { position: absolute; top: -6px; }
.ng-burger span::after { position: absolute; top: 6px; }

@media (max-width: 960px) {
  .ng-topbar .tb-hide { display: none; }
  .ng-burger { display: inline-flex; }
  .ng-cta-tel { display: none; }
  .ng-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ng-surface); border-bottom: 1px solid var(--ng-line);
    box-shadow: var(--ng-sh-2); display: none; padding: 8px 0 14px;
  }
  .ng-nav.open { display: block; }
  .ng-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 0 16px; }
  .ng-nav a { padding: 12px 14px; border-radius: var(--ng-r-s); }
  .ng-nav-row { position: relative; }
}

/* ---------- 6. Breadcrumb ---------- */
.ng-crumb { padding: 18px 0 4px; font-size: 13.5px; color: var(--ng-ink-3); }
.ng-crumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ng-crumb li::after { content: "/"; margin-left: 8px; color: var(--ng-line-strong); }
.ng-crumb li:last-child::after { content: ""; }
.ng-crumb a:hover { color: var(--ng-primary-deep); text-decoration: underline; }
.ng-crumb [aria-current="page"] { color: var(--ng-ink-2); }

/* ---------- 7. Hero ---------- */
.kb-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -12%, rgba(224, 138, 46, .20), transparent 62%),
    radial-gradient(700px 380px at 4% 108%, rgba(168, 92, 20, .13), transparent 60%),
    linear-gradient(178deg, var(--ng-cream), var(--ng-bg) 82%);
  border-bottom: 1px solid var(--ng-line);
}
.kb-hero .wrap { padding-top: 46px; padding-bottom: 52px; }
.kb-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ng-primary-deep); font-family: var(--ng-serif); font-weight: 700;
  background: rgba(255, 255, 255, .72); border: 1px solid var(--ng-line-strong);
  padding: 6px 15px; border-radius: 999px;
}
.kb-eyebrow i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ng-primary); display: block;
}
.kb-hero h1 {
  margin: 20px 0 0; font-size: clamp(30px, 5vw, 46px); letter-spacing: -.02em;
}
.kb-hero h1 em {
  font-style: normal; color: var(--ng-primary-deep);
  background: linear-gradient(180deg, transparent 62%, rgba(224, 138, 46, .3) 62%);
}
.kb-lede {
  margin-top: 14px; max-width: 62ch; font-size: 16.5px; color: var(--ng-ink-2);
}

/* search */
.kb-search { margin-top: 26px; max-width: 620px; position: relative; }
.kb-search input {
  width: 100%; padding: 15px 116px 15px 46px;
  border-radius: 999px; border: 1px solid var(--ng-line-strong);
  background: var(--ng-surface); box-shadow: var(--ng-sh-1);
  font-size: 15.5px;
}
.kb-search input::placeholder { color: var(--ng-ink-3); }
.kb-search .ico {
  position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; opacity: .55; pointer-events: none;
}
.kb-search button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  padding: 10px 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ng-primary-deep); color: #fff; font-weight: 600;
  transition: background .18s ease;
}
.kb-search button:hover { background: #8E4C0E; }

.kb-stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 30px; list-style: none; }
.kb-stats b {
  display: block; font-family: var(--ng-serif); font-size: 30px; line-height: 1;
  color: var(--ng-primary-deep);
}
.kb-stats span { font-size: 13px; color: var(--ng-ink-3); }

/* ---------- 8. Section head ---------- */
.sec { padding: 56px 0; }
.sec-head { margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(22px, 3vw, 28px); }
.sec-head p { margin-top: 8px; color: var(--ng-ink-3); font-size: 15px; }
.sec-head .rule {
  width: 46px; height: 3px; border-radius: 3px; margin-bottom: 14px;
  background: linear-gradient(90deg, var(--ng-primary), var(--ng-primary-soft));
}

/* ---------- 9. Category cards ---------- */
.cat-grid {
  display: grid; gap: 20px; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.cat-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 26px 24px 22px; background: var(--ng-surface);
  border: 1px solid var(--ng-line); border-radius: var(--ng-r-l);
  box-shadow: var(--ng-sh-1);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease, border-color .22s ease;
  overflow: hidden; height: 100%;
}
.cat-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: var(--accent, var(--ng-primary));
  opacity: .85;
}
.cat-card::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--accent, var(--ng-primary)); opacity: .07;
  transition: transform .3s ease;
}
.cat-card:hover, .cat-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--ng-sh-2);
  border-color: var(--ng-line-strong);
}
.cat-card:hover::after { transform: scale(1.25); }
.cat-ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--ng-cream); /* 旧浏览器回退 */
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent); font-size: 22px; line-height: 1;
}
.cat-card h3 { font-size: 20px; }
.cat-card h3 a::after { content: ""; position: absolute; inset: 0; }
.cat-card p { color: var(--ng-ink-2); font-size: 14.5px; line-height: 1.7; }
.cat-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: auto; padding-top: 6px; }
.cat-tags li {
  font-size: 12px; padding: 3px 9px; border-radius: 999px;
  background: var(--ng-cream); color: var(--ng-ink-2); border: 1px solid var(--ng-line);
}
.cat-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; margin-top: 4px; border-top: 1px dashed var(--ng-line-strong);
  font-size: 13.5px; color: var(--ng-ink-3);
}
.cat-foot .go { color: var(--accent); font-weight: 600; }

/* ---------- 10. Doc list ---------- */
.doc-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 14px 16px; margin-bottom: 20px;
  background: var(--ng-surface); border: 1px solid var(--ng-line);
  border-radius: var(--ng-r-m); box-shadow: var(--ng-sh-1);
}
.doc-toolbar .grow { flex: 1 1 220px; position: relative; }
.doc-toolbar input[type="search"] {
  width: 100%; padding: 10px 14px 10px 38px; border-radius: var(--ng-r-s);
  border: 1px solid var(--ng-line-strong); background: var(--ng-bg);
}
.doc-toolbar .ico-s {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; opacity: .5; pointer-events: none;
}
.doc-toolbar select {
  padding: 10px 14px; border-radius: var(--ng-r-s);
  border: 1px solid var(--ng-line-strong); background: var(--ng-bg); cursor: pointer;
}
.doc-count { font-size: 13.5px; color: var(--ng-ink-3); }

.doc-list { list-style: none; display: grid; gap: 14px; }
.doc-item {
  position: relative; display: grid; gap: 18px;
  grid-template-columns: 74px 1fr auto; align-items: start;
  padding: 20px 22px; background: var(--ng-surface);
  border: 1px solid var(--ng-line); border-radius: var(--ng-r-m);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.doc-item:hover, .doc-item:focus-within {
  transform: translateY(-2px); box-shadow: var(--ng-sh-2); border-color: var(--ng-line-strong);
}
.doc-thumb {
  width: 74px; height: 96px; border-radius: 7px; position: relative;
  background: linear-gradient(160deg, #fff, var(--ng-cream));
  border: 1px solid var(--ng-line-strong);
  box-shadow: 2px 3px 0 rgba(168, 92, 20, .08);
  display: grid; place-items: end center; padding-bottom: 9px; overflow: hidden;
}
.doc-thumb::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: 14px; height: 4px;
  border-radius: 2px; background: var(--accent, var(--ng-primary)); opacity: .5;
  box-shadow: 0 9px 0 rgba(168,92,20,.13), 0 18px 0 rgba(168,92,20,.13), 0 27px 0 rgba(168,92,20,.13);
}
.doc-thumb b {
  font-family: var(--ng-serif); font-size: 11px; letter-spacing: .1em;
  color: #C0392B; background: #fff; padding: 1px 6px; border-radius: 3px;
  border: 1px solid rgba(192, 57, 43, .3);
}
.doc-main h3 { font-size: 17.5px; line-height: 1.5; }
.doc-main h3 a::after { content: ""; position: absolute; inset: 0; }
.doc-main h3 a:hover { color: var(--ng-primary-deep); }
.doc-sum {
  margin-top: 7px; font-size: 14.5px; color: var(--ng-ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.doc-meta {
  margin-top: 11px; display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: 12.5px; color: var(--ng-ink-3); list-style: none;
}
.doc-meta li { display: inline-flex; align-items: center; gap: 5px; }
.doc-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.badge {
  font-size: 12px; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.badge-ok { background: #EAF5EC; color: #2E6B3D; border-color: #CBE5D2; }
.badge-soon { background: var(--ng-cream); color: var(--ng-ink-3); border-color: var(--ng-line-strong); }
.badge-new { background: #FDECE1; color: #B4531B; border-color: #F6D3BB; }

.doc-item.is-soon { opacity: .72; background: #FFFDF9; }
.doc-item.is-soon:hover { transform: none; box-shadow: none; }

/* ---------- 11. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ng-primary-deep); color: #fff; }
.btn-primary:hover { background: #8E4C0E; }
.btn-ghost {
  background: var(--ng-surface); color: var(--ng-primary-deep); border-color: var(--ng-line-strong);
}
.btn-ghost:hover { background: var(--ng-primary-soft); }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- 12. Category page hero ---------- */
.cat-hero {
  background: linear-gradient(178deg, var(--ng-cream), var(--ng-bg) 88%); /* 回退 */
  background:
    radial-gradient(720px 320px at 92% -30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%),
    linear-gradient(178deg, var(--ng-cream), var(--ng-bg) 88%);
  border-bottom: 1px solid var(--ng-line);
  padding-bottom: 40px;
}
.cat-hero h1 { font-size: clamp(26px, 4vw, 38px); margin-top: 12px; }
.cat-hero .kb-lede { margin-top: 12px; }
.cat-hero .kb-eyebrow { color: var(--accent); }
.cat-hero .kb-eyebrow i { background: var(--accent); }

/* ---------- 13. Doc detail ---------- */
.doc-layout {
  display: grid; gap: 26px; align-items: start;
  grid-template-columns: minmax(0, 1fr) 340px;
  padding: 26px 0 60px;
}
@media (max-width: 1024px) { .doc-layout { grid-template-columns: 1fr; } }

.viewer-card {
  background: var(--ng-surface); border: 1px solid var(--ng-line);
  border-radius: var(--ng-r-l); box-shadow: var(--ng-sh-1); overflow: hidden;
}
.viewer-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 11px 14px; background: var(--ng-cream); border-bottom: 1px solid var(--ng-line);
  position: sticky; top: 68px; z-index: 20;
}
.viewer-bar .vb-group { display: inline-flex; align-items: center; gap: 6px; }
.viewer-bar .vb-spacer { flex: 1 1 auto; }
.vbtn {
  width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer;
  border-radius: 9px; border: 1px solid var(--ng-line-strong); background: var(--ng-surface);
  color: var(--ng-primary-deep); font-size: 15px; line-height: 1;
  transition: background .16s ease;
}
.vbtn:hover { background: var(--ng-primary-soft); }
.vbtn[disabled] { opacity: .4; cursor: not-allowed; }
.vpage {
  font-size: 13.5px; color: var(--ng-ink-2); font-family: var(--ng-serif);
  display: inline-flex; align-items: center; gap: 6px;
}
.vpage input {
  width: 48px; text-align: center; padding: 5px 4px; border-radius: 7px;
  border: 1px solid var(--ng-line-strong); background: var(--ng-surface);
}
.viewer-stage {
  background: #F3EADC; padding: 18px 12px; max-height: 78vh; overflow: auto;
  scroll-behavior: smooth;
}
.viewer-stage canvas {
  display: block; margin: 0 auto 16px; background: #fff;
  box-shadow: var(--ng-sh-2); border-radius: 3px; max-width: 100%; height: auto;
}
.viewer-stage iframe {
  width: 100%; height: 74vh; border: 0; background: #fff; border-radius: 6px;
  box-shadow: var(--ng-sh-2);
}
.viewer-note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px; font-size: 13.5px; line-height: 1.65;
  background: #FFF7E9; border-bottom: 1px solid var(--ng-line); color: var(--ng-ink-2);
}
.viewer-note b { color: var(--ng-primary-deep); }
.viewer-loading {
  display: grid; place-items: center; gap: 12px; padding: 70px 20px; color: var(--ng-ink-3);
}
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--ng-primary-soft); border-top-color: var(--ng-primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.side-card {
  background: var(--ng-surface); border: 1px solid var(--ng-line);
  border-radius: var(--ng-r-l); box-shadow: var(--ng-sh-1);
  padding: 22px; margin-bottom: 18px;
}
.side-card h2 { font-size: 16px; margin-bottom: 14px; }
.side-card h2 .rule { width: 30px; height: 3px; border-radius: 3px; background: var(--ng-primary); margin-bottom: 9px; }
.kv { list-style: none; display: grid; gap: 10px; font-size: 14px; }
.kv li { display: flex; justify-content: space-between; gap: 14px; }
.kv .k { color: var(--ng-ink-3); flex: 0 0 auto; }
.kv .v { color: var(--ng-ink); text-align: right; }
.side-cta {
  background: linear-gradient(165deg, var(--ng-primary-deep), #C4741C);
  color: #FFF6E8; border: 0;
}
.side-cta h2, .side-cta p { color: #fff; }
.side-cta p { font-size: 14px; margin-top: 8px; color: #FFEBD2; }
.side-cta .btn-ghost { background: #fff; border-color: #fff; margin-top: 16px; }
.side-cta .rule { background: rgba(255,255,255,.7); }

.rel-list { list-style: none; display: grid; gap: 12px; }
.rel-list a { display: block; font-size: 14.5px; line-height: 1.6; color: var(--ng-ink-2); }
.rel-list a:hover { color: var(--ng-primary-deep); }
.rel-list li { padding-bottom: 12px; border-bottom: 1px dashed var(--ng-line); }
.rel-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.doc-title-block { padding: 8px 0 18px; }
.doc-title-block h1 { font-size: clamp(23px, 3.4vw, 32px); }
.doc-title-block .doc-meta { margin-top: 14px; font-size: 13.5px; }
.doc-abstract {
  margin-top: 18px; padding: 18px 20px; border-radius: var(--ng-r-m);
  background: var(--ng-cream); border-left: 4px solid var(--ng-primary);
  font-size: 15px; color: var(--ng-ink-2); line-height: 1.8;
}

/* ---------- 14. Notice band ---------- */
.notice {
  background: var(--ng-cream); border-top: 1px solid var(--ng-line);
  border-bottom: 1px solid var(--ng-line);
}
.notice .wrap { padding: 28px var(--ng-gut); display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.notice h3 { font-size: 15px; color: var(--ng-primary-deep); margin-bottom: 6px; }
.notice p { font-size: 13.5px; color: var(--ng-ink-2); line-height: 1.75; }

/* ---------- 15. Empty state ---------- */
.empty {
  text-align: center; padding: 60px 20px; color: var(--ng-ink-3);
  background: var(--ng-surface); border: 1px dashed var(--ng-line-strong);
  border-radius: var(--ng-r-m);
}
.empty b { display: block; font-size: 17px; color: var(--ng-ink); margin-bottom: 8px; }

/* ---------- 16. Footer ---------- */
.ng-footer {
  background: #2E2419; color: #CDBBA4; margin-top: 20px;
  font-size: 14px; line-height: 1.9;
}
.ng-footer a { color: #CDBBA4; }
.ng-footer a:hover { color: var(--ng-primary); }
.ng-foot-grid {
  display: grid; gap: 30px; padding: 44px 0 30px;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}
@media (max-width: 900px) { .ng-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ng-foot-grid { grid-template-columns: 1fr; } }
.ng-footer h4 { color: #FFF2DE; font-size: 15px; margin-bottom: 12px; }
.ng-footer ul { list-style: none; }
.ng-footer .brand-line { color: #FFF2DE; font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.ng-footer .tel { font-family: var(--ng-serif); font-size: 22px; color: var(--ng-primary); }
.ng-copy {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0 26px;
  font-size: 12.5px; color: #9B8A75;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}
.ng-disclaimer {
  padding: 14px 0 0; font-size: 12.5px; color: #8E7E6B; line-height: 1.8;
}

/* ---------- 17. Responsive tweaks ---------- */
@media (max-width: 720px) {
  :root { --ng-gut: 16px; }
  .doc-item { grid-template-columns: 56px 1fr; padding: 16px; gap: 14px; }
  .doc-thumb { width: 56px; height: 74px; }
  .doc-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .viewer-bar { top: 60px; }
  .viewer-stage { max-height: 70vh; padding: 12px 6px; }
  .kb-stats { gap: 20px; }
  .sec { padding: 40px 0; }
}
