/* ==========================================================================
   PZG 供应链物流知识库 — 样式表
   ========================================================================== */

:root {
  --navy-900: #0a2140;
  --navy-800: #123a6b;
  --navy-700: #1b4f9c;
  --blue-600: #1a56db;
  --blue-500: #3b76e8;
  --amber: #f6b73c;
  --amber-deep: #d99413;
  --bg: #f4f6fa;
  --bg-soft: #eef2f8;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --ink: #101a2b;
  --ink-soft: #46566e;
  --ink-mute: #7b8aa0;
  --line: #e3e9f2;
  --line-strong: #d3dce9;
  --ok: #0f7b5f;
  --err: #b42318;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 26, 43, .05);
  --shadow: 0 8px 24px -12px rgba(16, 26, 43, .18);
  --shadow-lg: 0 24px 60px -28px rgba(16, 26, 43, .35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
          "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
  --wrap: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c131f;
    --bg-soft: #111b2b;
    --surface: #121d2e;
    --surface-2: #16233a;
    --ink: #e9eff8;
    --ink-soft: #a9b8cd;
    --ink-mute: #7d8ea6;
    --line: #22314a;
    --line-strong: #2c3e5c;
    --shadow: 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 60px -28px rgba(0, 0, 0, .75);
  }
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0; }

button { font-family: inherit; }

::selection { background: rgba(26, 86, 219, .18); }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

.muted { color: var(--ink-mute); }
.ta-r { text-align: right; }

/* ------------------------------------------------------------------ Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15.5px; letter-spacing: -.01em; }
.brand-text small {
  font-size: 11.5px;
  color: var(--ink-mute);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.nav > a, .nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  background: none;
  border: 0;
  cursor: pointer;
  transition: background .16s, color .16s;
}
.nav > a:hover, .nav-drop-btn:hover { background: var(--bg-soft); color: var(--ink); }
.nav > a.active, .nav-drop-btn.active { color: var(--blue-600); background: rgba(26, 86, 219, .08); }

.nav-drop { position: relative; }
.drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .16s ease;
}
.nav-drop:hover .drop-menu,
.nav-drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 9px;
  transition: background .14s;
}
.drop-menu a:hover { background: var(--bg-soft); }
.dot {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  color: #fff;
  background: var(--c, var(--blue-600));
  flex: 0 0 auto;
}
.drop-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.drop-text b { font-size: 14px; }
.drop-text em { font-style: normal; font-size: 11.5px; color: var(--ink-mute); }

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--ink-mute);
  transition: border-color .16s, background .16s;
  width: 232px;
}
.header-search:focus-within { border-color: var(--blue-600); background: var(--surface); }
.header-search input {
  border: 0; background: none; outline: none;
  font-size: 13.5px; color: var(--ink); width: 100%; font-family: inherit;
}
.header-search input::placeholder { color: var(--ink-mute); }

.nav-toggle { display: none; }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, background .16s, border-color .16s, box-shadow .16s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 18px -10px rgba(26, 86, 219, .9); }
.btn-primary:hover { background: var(--blue-500); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-danger { background: rgba(180, 35, 24, .08); color: var(--err); border-color: rgba(180, 35, 24, .18); }
.btn-danger:hover { background: rgba(180, 35, 24, .14); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn-xs { padding: 4px 9px; font-size: 12px; border-radius: 6px; }

.link-more { font-size: 13.5px; color: var(--blue-600); font-weight: 600; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 15% 0%, #1c4d92 0%, #102f5c 42%, #0a1c36 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.hero-bg { position: absolute; inset: 0; opacity: .9; }
.hero-bg svg { width: 100%; height: 100%; display: block; }
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: .16em;
  color: #a9c6ef;
  border: 1px solid rgba(169, 198, 239, .3);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.18;
  letter-spacing: -.025em;
  margin-bottom: 18px;
}
.hero-copy > p {
  color: #c3d4ea;
  font-size: 16px;
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 7px 7px 7px 16px;
  max-width: 560px;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6);
  color: #64748b;
}
.hero-search input {
  flex: 1;
  border: 0; outline: none; background: none;
  font-size: 15px; color: #0f172a; font-family: inherit;
  min-width: 0;
}
.hero-search button {
  border: 0;
  background: var(--blue-600);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
}
.hero-search button:hover { background: var(--blue-500); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 18px; font-size: 12.5px; color: #93aecf; }
.hero-tags a { color: #cfe0f6; border-bottom: 1px dashed rgba(207, 224, 246, .4); padding-bottom: 1px; }
.hero-tags a:hover { color: #fff; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 20px 18px;
  backdrop-filter: blur(6px);
}
.stat strong {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 12.5px; color: #a9c2df; }

/* ------------------------------------------------------------------ Sections */
.section { padding: 54px 24px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.section-head h2 { font-size: 23px; letter-spacing: -.02em; }
.section-head p { color: var(--ink-mute); font-size: 14px; margin-top: 5px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.cat-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative;
  overflow: hidden;
}
.cat-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 120px; height: 120px;
  background: var(--c);
  opacity: .07;
  border-radius: 50%;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
.cat-icon {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: var(--c);
  font-weight: 700;
  font-size: 15px;
}
.cat-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cat-body strong { font-size: 14.5px; }
.cat-body em {
  font-style: normal;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-count { margin-left: auto; font-size: 11.5px; color: var(--ink-mute); white-space: nowrap; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 10%, var(--surface)), var(--surface) 62%);
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c), transparent 85%);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-pill {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
.feature-card h3 { font-size: 18px; line-height: 1.45; letter-spacing: -.01em; }
.feature-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-meta { margin-top: auto; font-size: 12px; color: var(--ink-mute); padding-top: 8px; }

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}
.split-main { min-width: 0; }
.split-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }

.list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.list-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.article-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--pill, var(--blue-600));
  background: color-mix(in srgb, var(--pill, var(--blue-600)) 11%, transparent);
  white-space: nowrap;
}
.card-date { font-size: 12px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.card-title { font-size: 16.5px; line-height: 1.5; letter-spacing: -.01em; }
.card-title a:hover { color: var(--blue-600); }
.card-summary {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot { display: flex; gap: 14px; margin-top: auto; padding-top: 4px; }
.meta-item { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-mute); }
.meta-item svg { opacity: .75; }

/* ------------------------------------------------------------------ Panel */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.panel-quiet { background: var(--surface-2); }
.panel-flush { padding: 0; overflow: hidden; }
.panel-title { font-size: 14.5px; margin-bottom: 14px; letter-spacing: -.005em; }
.panel-title-gap { margin-top: 26px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: rank; }
.rank-list li { display: flex; flex-direction: column; gap: 2px; counter-increment: rank; padding-left: 26px; position: relative; }
.rank-list li::before {
  content: counter(rank);
  position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px;
  border-radius: 5px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  color: var(--ink-mute);
  background: var(--bg-soft);
}
.rank-list li:nth-child(-n+3)::before { color: #fff; background: var(--navy-800); }
.rank-list a { font-size: 13.5px; line-height: 1.5; font-weight: 500; }
.rank-list a:hover { color: var(--blue-600); }
.rank-meta { font-size: 11.5px; color: var(--ink-mute); }

.mini-comments { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mini-head { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.mini-head b { font-size: 12.5px; }
.mini-head time { margin-left: auto; color: var(--ink-mute); font-size: 11px; }
.mini-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #2f6fd0, #123a6b);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  flex: 0 0 auto;
}
.mini-avatar.is-admin { background: linear-gradient(140deg, #e8a92b, #b8790a); }
.mini-comments p { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.55; }

.empty-note { font-size: 13.5px; color: var(--ink-mute); padding: 12px 0; }
.side-note { font-size: 13px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 14px; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 34px 38px;
  border-radius: 18px;
  background: linear-gradient(120deg, #102f5c, #1b4f9c 60%, #235ea9);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; right: -60px; top: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(246, 183, 60, .16);
}
.cta-band h2 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.cta-band p { color: #c4d6ee; font-size: 14px; }
.cta-band .btn-primary { background: #fff; color: #123a6b; box-shadow: none; }
.cta-band .btn-primary:hover { background: #eef4ff; }

/* ------------------------------------------------------------------ Page head */
.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 30px;
}
.page-head-dark {
  background: linear-gradient(120deg, #0a2140, #123a6b 70%);
  border-bottom: 0;
  color: #fff;
}
.page-head-dark h1 { color: #fff; }
.page-head-dark p { color: #b9cde6; }
.page-head-dark .crumbs a { color: #9ab4d4; }
.page-head-dark .crumbs em { color: #d6e4f5; }
.page-head h1 { font-size: clamp(24px, 3vw, 32px); margin: 8px 0 8px; letter-spacing: -.025em; }
.page-head > .wrap > p { color: var(--ink-mute); font-size: 14.5px; max-width: 720px; }
.page-head-row { display: flex; align-items: center; gap: 16px; }
.page-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 700;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 11%, transparent);
  flex: 0 0 auto;
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-mute); }
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--blue-600); }
.crumbs em { font-style: normal; color: var(--ink-soft); }
.crumbs span { opacity: .45; }

/* ------------------------------------------------------------------ Article */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--blue-600), var(--amber));
  z-index: 80;
  transition: width .1s linear;
}
.article-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 30px 0 34px; }
.article-head { margin-top: 14px; }
.article-head h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.3;
  letter-spacing: -.025em;
  margin: 14px 0 14px;
}
.article-lead {
  font-size: 16.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 800px;
  padding-left: 16px;
  border-left: 3px solid color-mix(in srgb, var(--blue-600) 40%, transparent);
}
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 44px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 60px;
}
.article-main { min-width: 0; }
.article-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }

.prose { font-size: 16.5px; line-height: 1.88; color: var(--ink); }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: 21px;
  margin: 42px 0 14px;
  padding-left: 13px;
  border-left: 4px solid var(--blue-600);
  line-height: 1.4;
}
.prose h3 { font-size: 17.5px; margin: 30px 0 10px; }
.prose h4 { font-size: 16px; margin: 24px 0 8px; }
.prose p { margin: 14px 0; }
.prose ul, .prose ol { margin: 14px 0; padding-left: 24px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--blue-600); }
.prose strong { font-weight: 700; }
.prose a { color: var(--blue-600); border-bottom: 1px solid rgba(26, 86, 219, .3); }
.prose a:hover { border-bottom-color: var(--blue-600); }
.prose blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  background: var(--bg-soft);
  border-left: 4px solid var(--line-strong);
  border-radius: 0 10px 10px 0;
  color: var(--ink-soft);
}
.prose blockquote p { margin: 0; }
.prose code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 5px;
  color: #b42318;
  border: 1px solid var(--line);
}
.prose pre {
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: #0e1b2e;
  overflow-x: auto;
  border: 1px solid #1c2f4c;
}
.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  color: #d7e3f5;
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 14.5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: block;
  overflow-x: auto;
}
.prose thead { background: var(--bg-soft); }
.prose th, .prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th { font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.prose img { border-radius: 10px; margin: 18px 0; }

.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-tags > span { font-size: 12.5px; color: var(--ink-mute); margin-right: 4px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-soft);
  transition: all .15s;
}
.chip:hover { border-color: var(--blue-600); color: var(--blue-600); background: var(--surface); }

.article-share { display: flex; gap: 10px; margin-top: 22px; }

.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 34px 0 10px; }
.pn-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all .18s;
}
.pn-card span { font-size: 11.5px; color: var(--ink-mute); }
.pn-card strong { font-size: 14px; font-weight: 600; line-height: 1.5; }
.pn-card:hover { border-color: var(--blue-600); transform: translateY(-2px); }
.pn-next { text-align: right; }
.pn-card.is-empty { border: 0; background: none; }

/* TOC */
.toc-panel { position: sticky; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--ink-soft);
  border-left: 2px solid var(--line);
  line-height: 1.5;
  transition: all .15s;
}
.toc a:hover, .toc a.is-active { color: var(--blue-600); border-left-color: var(--blue-600); background: var(--bg-soft); }
.toc ul ul a { padding-left: 22px; font-size: 12.5px; }

.rel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.rel-list a { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.rel-list a:hover { color: var(--blue-600); }

/* ------------------------------------------------------------------ Comments */
.comments-section { margin-top: 46px; padding-top: 30px; border-top: 2px solid var(--line); }
.comments-head h2 { font-size: 20px; }
.comments-head h2 small { font-size: 13px; font-weight: 500; color: var(--ink-mute); margin-left: 6px; }
.comments-head p { font-size: 13px; color: var(--ink-mute); margin: 6px 0 22px; }

.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.comment { display: flex; gap: 12px; }
.comment-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #2f6fd0, #123a6b);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}
.comment-avatar.is-admin { background: linear-gradient(140deg, #e8a92b, #b8790a); }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment-name { font-weight: 600; font-size: 14px; }
.badge-admin {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(246, 183, 60, .16);
  color: var(--amber-deep);
}
.comment-time { font-size: 12px; color: var(--ink-mute); }
.comment-text { font-size: 14.5px; line-height: 1.75; margin-top: 5px; white-space: pre-wrap; word-break: break-word; }
.comment-subject { font-size: 14.5px; font-weight: 600; margin-top: 4px; }
.comment-reply-btn {
  margin-top: 7px;
  background: none;
  border: 0;
  padding: 0;
  font-size: 12.5px;
  color: var(--blue-600);
  cursor: pointer;
  font-weight: 500;
}
.comment-reply-btn:hover { text-decoration: underline; }
.comment-children { margin-top: 18px; padding-left: 18px; border-left: 2px solid var(--line); }
.comment-children .comment-list { gap: 16px; }

.comment-form {
  margin-top: 30px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.reply-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: rgba(26, 86, 219, .07);
  border-radius: 8px;
  font-size: 13px;
  color: var(--blue-600);
}
.reply-chip button { margin-left: auto; border: 0; background: none; font-size: 17px; cursor: pointer; color: inherit; line-height: 1; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field > span i { color: var(--err); font-style: normal; }
.field > span small { font-weight: 400; color: var(--ink-mute); font-size: 11.5px; margin-left: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="number"], .field input[type="search"], .field select, .field textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, .12);
}
.field textarea { resize: vertical; line-height: 1.7; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-hint { font-size: 12px; color: var(--ink-mute); margin-top: 10px; }

.empty-state { text-align: center; padding: 64px 20px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state h3 { font-size: 17px; margin-bottom: 8px; }
.empty-state p { font-size: 13.5px; color: var(--ink-mute); margin-bottom: 18px; }

/* ------------------------------------------------------------------ Board */
.board-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.board-side { position: sticky; top: 92px; }
.board-form { padding: 24px; }
.board-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.board-item {
  display: flex;
  gap: 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s;
}
.board-item:hover { border-color: var(--line-strong); }
.board-body { flex: 1; min-width: 0; }
.board-subject { font-size: 16px; margin: 6px 0 4px; }
.board-replies { list-style: none; margin: 16px 0 0; padding: 14px 16px; background: var(--bg-soft); border-radius: 10px; display: flex; flex-direction: column; gap: 14px; }
.board-replies li { display: flex; gap: 10px; }
.board-replies .comment-avatar { width: 28px; height: 28px; font-size: 12px; }

/* ------------------------------------------------------------------ Search / tags */
.search-big {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 6px 6px 6px 15px;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  max-width: 640px;
  color: var(--ink-mute);
}
.search-big:focus-within { border-color: var(--blue-600); background: var(--surface); }
.search-big input { flex: 1; border: 0; background: none; outline: none; font-size: 15px; color: var(--ink); font-family: inherit; min-width: 0; }
.search-big button { border: 0; background: var(--blue-600); color: #fff; padding: 9px 20px; border-radius: 7px; font-size: 14px; font-weight: 600; cursor: pointer; }
.result-count { font-size: 14px; color: var(--ink-mute); margin-bottom: 20px; }
.result-count strong { color: var(--ink); }
mark { background: rgba(246, 183, 60, .38); color: inherit; padding: 0 2px; border-radius: 3px; }
.search-suggest { text-align: center; padding: 40px 0; }
.search-suggest h3 { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 11px; }
.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  transition: all .16s;
}
.tag-item em { font-style: normal; font-size: 11px; color: var(--ink-mute); background: var(--bg-soft); padding: 1px 7px; border-radius: 999px; }
.tag-item:hover { border-color: var(--blue-600); color: var(--blue-600); transform: translateY(-2px); }

/* ------------------------------------------------------------------ About */
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 42px; align-items: start; }
.about-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.about-prose { max-width: 760px; }

/* ------------------------------------------------------------------ Errors */
.error-page { text-align: center; padding: 90px 24px 110px; }
.error-code { font-size: 84px; font-weight: 800; letter-spacing: -.04em; color: var(--line-strong); line-height: 1; }
.error-page h1 { font-size: 24px; margin: 12px 0 10px; }
.error-page p { color: var(--ink-mute); font-size: 14.5px; }
.error-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }

/* ------------------------------------------------------------------ Footer */
.site-footer { background: #0b1c33; color: #a9bdd6; margin-top: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-top: 48px;
  padding-bottom: 36px;
}
.brand-footer strong { color: #fff; font-size: 15.5px; }
.footer-brand p { font-size: 13px; line-height: 1.75; margin-top: 14px; max-width: 340px; color: #8fa6c2; }
.footer-note { font-size: 12px !important; color: #6f87a5 !important; margin-top: 10px !important; }
.footer-col h4 { color: #fff; font-size: 13.5px; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13px; color: #8fa6c2; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: #6f87a5; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: #6f87a5; }
.footer-legal a:hover { color: #fff; }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s;
  z-index: 50;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--blue-600); border-color: var(--blue-600); }

/* ------------------------------------------------------------------ Toast */
.toast-stack {
  position: fixed;
  top: 86px;
  right: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}
.toast {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-600);
  box-shadow: var(--shadow);
  animation: toastIn .25s ease;
}
.toast-ok { border-left-color: var(--ok); }
.toast-error { border-left-color: var(--err); }
.toast.is-hiding { opacity: 0; transform: translateX(12px); transition: all .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }
.toast-inline { position: static; margin-bottom: 18px; max-width: none; }

/* ------------------------------------------------------------------ Login */
.login-body { background: var(--bg); }
.login-wrap { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login-aside {
  background: radial-gradient(120% 130% at 20% 10%, #1b4f9c, #0d2b52 40%, #071628);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-aside-inner { max-width: 400px; }
.login-logo {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
  margin-bottom: 26px;
}
.login-aside h1 { color: #fff; font-size: 27px; line-height: 1.35; margin-bottom: 12px; }
.login-aside p { color: #b6cbe4; font-size: 14.5px; }
.login-points { list-style: none; padding: 0; margin: 30px 0; display: flex; flex-direction: column; gap: 12px; }
.login-points li { font-size: 13.5px; color: #cfe0f2; padding-left: 24px; position: relative; }
.login-points li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg);
}
.login-back { font-size: 13px; color: #9db6d4; }
.login-back:hover { color: #fff; }
.login-panel { display: grid; place-items: center; padding: 40px; }
.login-form { width: 100%; max-width: 360px; }
.login-form h2 { font-size: 24px; margin-bottom: 6px; }
.login-sub { font-size: 13.5px; color: var(--ink-mute); margin-bottom: 26px; }
.alert { padding: 10px 14px; border-radius: 9px; font-size: 13.5px; margin-bottom: 16px; }
.alert-error { background: rgba(180, 35, 24, .08); color: var(--err); border: 1px solid rgba(180, 35, 24, .16); }
.alert-ok { background: rgba(15, 123, 95, .08); color: var(--ok); border: 1px solid rgba(15, 123, 95, .16); }

/* ------------------------------------------------------------------ Admin */
.admin-body { background: var(--bg); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 236px;
  flex: 0 0 236px;
  background: #0b1c33;
  color: #b7c8dd;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 14px 18px;
}
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 22px; }
.admin-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(140deg, #2f6fd0, #1b4f9c);
  display: grid; place-items: center;
  color: #fff; font-weight: 800;
  flex: 0 0 auto;
}
.admin-brand strong { display: block; color: #fff; font-size: 13.5px; line-height: 1.4; }
.admin-brand small { font-size: 11px; color: #6f87a5; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: #a3b8d1;
  transition: background .15s, color .15s;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-nav a.active { background: rgba(47, 111, 208, .22); color: #fff; }
.admin-nav svg { opacity: .8; }
.admin-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; }
.admin-side-foot a { color: #8299b6; }
.admin-side-foot a:hover { color: #fff; }

.admin-main { flex: 1; min-width: 0; padding: 26px 30px 60px; }
.admin-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-top h1 { font-size: 22px; letter-spacing: -.02em; }
.admin-top p { font-size: 13px; color: var(--ink-mute); margin-top: 4px; }
.admin-top-actions { display: flex; gap: 10px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-card.is-alert { border-color: rgba(246, 183, 60, .5); background: linear-gradient(160deg, rgba(246, 183, 60, .07), var(--surface)); }
.stat-label { font-size: 12.5px; color: var(--ink-mute); }
.stat-value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-hint { font-size: 12px; color: var(--ink-mute); }
.stat-hint a { color: var(--blue-600); }

.admin-grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.admin-grid-wide { grid-template-columns: 1.6fr 1fr; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  padding: 11px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table-hover tbody tr:hover { background: var(--surface-2); }
.cell-title a { font-weight: 600; font-size: 13.5px; }
.cell-title a:hover { color: var(--blue-600); }
.cell-title small { display: block; font-size: 11.5px; margin-top: 2px; }
.empty-cell { text-align: center; color: var(--ink-mute); padding: 40px 0 !important; }

.status-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.status-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); }
.status-dot.published::before { background: var(--ok); }
.status-dot.draft::before { background: var(--amber-deep); }
.badge-star { font-size: 11.5px; color: var(--amber-deep); background: rgba(246, 183, 60, .15); padding: 1px 7px; border-radius: 999px; }
.inline-form { display: inline; }

.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-bar input[type="search"], .filter-bar select {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
}
.filter-bar input[type="search"] { width: 240px; }
.filter-bar .tab-group { display: flex; gap: 4px; margin-left: auto; }
.tab-group + .tab-group { margin-left: 18px; }
.tab-link {
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
}
.tab-link b { font-weight: 600; margin-left: 3px; color: var(--ink-mute); }
.tab-link.is-active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.tab-link.is-active b { color: rgba(255, 255, 255, .75); }

.admin-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.admin-feed li { display: flex; gap: 10px; }
.feed-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.feed-head .muted { margin-left: auto; font-size: 11px; }
.admin-feed p { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }

.comment-admin-list { display: flex; flex-direction: column; gap: 14px; }
.comment-admin { padding: 18px 20px; }
.comment-admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.comment-admin-id { display: flex; gap: 11px; }
.comment-admin-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.micro { font-size: 11.5px; margin-top: 3px; }
.status-pill { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; font-weight: 600; }
.status-pill.pending { background: rgba(246, 183, 60, .18); color: var(--amber-deep); }
.status-pill.approved { background: rgba(15, 123, 95, .12); color: var(--ok); }
.status-pill.spam { background: rgba(180, 35, 24, .1); color: var(--err); }
.comment-admin .comment-text { margin-top: 10px; }
.reply-form { display: flex; gap: 8px; margin-top: 12px; }
.reply-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 13px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
}
.reply-form input:focus { outline: none; border-color: var(--blue-600); }

/* Editor */
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.editor-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.editor-side { position: sticky; top: 20px; }
.editor-panel { padding: 0; overflow: hidden; }
.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  flex-wrap: wrap;
}
.editor-tabs { display: flex; gap: 3px; }
.editor-tabs .tab {
  padding: 5px 13px;
  border-radius: 7px;
  border: 0;
  background: none;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 500;
}
.editor-tabs .tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.editor-tools { display: flex; gap: 4px; flex-wrap: wrap; }
.tool-btn {
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 11.5px;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
}
.tool-btn:hover { border-color: var(--blue-600); color: var(--blue-600); }
.upload-btn { display: inline-flex; align-items: center; }
#contentMd, .editor-preview {
  display: block;
  width: 100%;
  border: 0;
  padding: 20px 22px;
  min-height: 560px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.85;
  background: var(--surface);
  color: var(--ink);
  resize: vertical;
  outline: none;
}
.editor-preview { font-family: var(--font); font-size: 15px; }
.editor-preview[hidden] { display: none; }

.check-field { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; cursor: pointer; }
.check-field input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--blue-600); }
.stack-form .field:last-of-type { margin-bottom: 18px; }
.stack-col { display: flex; flex-direction: column; gap: 16px; }

.cat-inline-form { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.cat-dot { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; background: var(--c); flex: 0 0 auto; }
.input-mini, .input-desc, .input-num { padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 12.5px; background: var(--surface); color: var(--ink); font-family: inherit; }
.input-mini { width: 96px; font-weight: 600; }
.input-desc { width: 190px; }
.input-num { width: 58px; }
.input-color { width: 30px; height: 27px; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; background: none; cursor: pointer; }
.input-color-wide { width: 100%; height: 34px; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: none; cursor: pointer; }
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.info-list li { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); }
.info-list b { color: var(--ink); font-weight: 600; }

/* Pager */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 36px; }
.pager-btn {
  padding: 8px 18px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 500;
}
.pager-btn:hover { border-color: var(--blue-600); color: var(--blue-600); }
.pager-btn.is-disabled { opacity: .4; pointer-events: none; }
.pager-info { font-size: 12.5px; color: var(--ink-mute); }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1120px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-split { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 30px; }
  .header-search { width: 190px; }
}

@media (max-width: 980px) {
  .header-search { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 56px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .article-layout, .board-layout, .about-layout { grid-template-columns: 1fr; }
  .article-side, .board-side, .about-side, .split-side { position: static; top: auto; }
  .article-side { order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .toc-panel { grid-column: 1 / -1; }
  .list-grid-3 { grid-template-columns: 1fr 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid-2, .admin-grid-wide { grid-template-columns: 1fr; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-side { position: static; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .admin-shell { flex-direction: column; }
  .admin-side { width: 100%; flex: none; height: auto; position: static; flex-direction: row; align-items: center; gap: 10px; overflow-x: auto; padding: 10px 14px; }
  .admin-brand { padding: 0 10px 0 0; }
  .admin-brand small { display: none; }
  .admin-nav { flex-direction: row; gap: 2px; }
  .admin-nav a { white-space: nowrap; padding: 8px 11px; }
  .admin-side-foot { margin: 0 0 0 auto; flex-direction: row; border: 0; padding: 0; gap: 14px; }
  .admin-main { padding: 20px 18px 50px; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .header-inner { height: 64px; gap: 10px; }
  .brand-text small { display: none; }
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 10px 14px 16px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 70;
  }
  .nav.is-open { display: flex; }
  .nav-drop .drop-menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0; display: none; }
  .nav-drop.is-open .drop-menu { display: grid; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 38px; height: 38px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    cursor: pointer;
    padding: 0 9px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink-soft); border-radius: 2px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .section { padding: 38px 18px; }
  .hero h1 { font-size: 30px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .list-grid, .list-grid-3 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .article-layout { padding-top: 26px; gap: 26px; }
  .article-side { grid-template-columns: 1fr; }
  .article-lead { font-size: 15px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 19px; }
  .prev-next { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .article-meta { gap: 12px; }
  .btn { padding: 9px 15px; }
  .toast-stack { left: 14px; right: 14px; top: 74px; max-width: none; }
  .admin-top { flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .tab-group { margin-left: 0 !important; }
  .filter-bar .tab-group { margin-left: 0; }
  .table { font-size: 12.5px; }
  .table th, .table td { padding: 9px 10px; }
}

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