/* style.css — 首页与三页共享骨架（来自 03-ui/home-ui-desktop.png 量稿） */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-4);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
[id] { scroll-margin-top: calc(var(--header-h) + 18px); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
::selection { background: var(--accent); color: var(--white); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-1);
  background: var(--accent-dark);
  color: var(--white);
  font-size: var(--fs-2);
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* ------------------------------------------------------------ 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(252, 245, 228, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(211, 198, 164, .45);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.01em;
}
.brand-mark { width: 34px; height: 34px; color: var(--accent); flex: 0 0 auto; }
.main-nav {
  margin-left: 34px;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 21px;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
}
.main-nav a { position: relative; padding: 6px 0; transition: color .15s ease; }
.main-nav a:hover { color: var(--accent-dark); }
.main-nav a[aria-current="page"] { color: var(--accent-dark); font-weight: 600; }
.main-nav a[aria-current="page"]::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.nav-cta {
  margin-left: 4px;
  padding: 7px 16px !important;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--accent-dark);
  background: var(--surface-2);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent-soft); }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-2);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.7px;
  border-radius: 2px;
  background: var(--accent-dark);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.7px) rotate(-45deg); }

/* ------------------------------------------------------------ 首屏 */
.hero {
  position: relative;
  min-height: 422px;
  overflow: hidden;
  background: var(--bg);
}
.hero-inner {
  min-height: 422px;
  padding: 38px 0 40px;
  display: flex;
  align-items: flex-start;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 52%;
  max-width: 700px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 13px;
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  color: var(--accent-ink);
  background: rgba(233, 236, 216, .55);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1 {
  margin-top: 26px;
  font-family: var(--font-serif);
  font-size: 58px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.015em;
  color: #272B1D;
}
.hero-lead {
  margin-top: 14px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}
.hero-text {
  margin-top: 30px;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
}
.hero-actions { margin-top: 31px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 45px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn svg { width: 15px; height: 15px; }
.btn-solid { background: var(--accent); color: var(--white); }
.btn-solid:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); background: rgba(255, 251, 240, .7); color: var(--accent-dark); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); }
.hero-media {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 56%;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 46%; }
.hero-stats {
  position: absolute;
  z-index: 3;
  right: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  bottom: 28px;
  display: flex;
  align-items: stretch;
  padding: 12px 10px;
  border: 1px solid rgba(255, 251, 240, .55);
  border-radius: var(--r-3);
  background: rgba(252, 245, 228, .88);
  backdrop-filter: blur(7px);
  box-shadow: var(--shadow-2);
}
.stat {
  display: grid;
  grid-template-columns: 26px auto;
  grid-template-areas: "icon value" "icon label";
  column-gap: 10px;
  align-items: center;
  padding: 0 44px;
}
.stat + .stat { border-left: 1px solid var(--line-strong); }
.stat svg { grid-area: icon; width: 24px; height: 24px; color: var(--accent); }
.stat strong { grid-area: value; font-size: 21px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat span { grid-area: label; font-size: 11.5px; line-height: 1.2; color: var(--muted); }

/* ------------------------------------------------------------ 通用区块 */
.section { position: relative; }
.section-head { display: flex; align-items: baseline; gap: 18px; }
.section-head h2 {
  font-size: 29px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink);
  flex: 0 0 auto;
}
.section-head p { font-size: 14px; color: var(--muted); }
.section-link {
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--accent-dark);
  font-weight: 600;
}
.section-link svg { width: 14px; height: 14px; }
.section-link:hover { color: var(--accent); }

/* 分类 */
.categories { padding: 36px 0 40px; }
.cat-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.cat-card {
  min-height: 125px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.cat-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.cat-icon svg { width: 20px; height: 20px; }
.cat-card h3 { font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.cat-card p { margin-top: 3px; font-size: 12.2px; line-height: 1.5; color: var(--muted); }

/* 编辑精选 */
.featured { padding: 22px 0 10px; }
.feat-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  height: 138px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.feat-card .thumb { display: block; height: 100%; overflow: hidden; background: var(--accent-soft); }
.feat-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.feat-card:hover .thumb img { transform: scale(1.04); }
.feat-body { padding: 11px 15px 10px; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.feat-body h3 {
  margin-top: 6px;
  font-size: 15.5px;
  line-height: 1.4;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feat-body p {
  margin-top: 4px;
  font-size: 12.2px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 最新笔记 */
.latest { padding: 24px 0 30px; }
.latest-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; }
.latest-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 110px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  transition: transform .18s ease, box-shadow .18s ease;
}
.latest-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.latest-card .thumb { display: block; height: 100%; overflow: hidden; background: var(--accent-soft); }
.latest-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.latest-card:hover .thumb img { transform: scale(1.05); }
.latest-body { padding: 7px 10px 8px; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.latest-body .tag { padding: 1px 7px; font-size: 10.5px; }
.latest-body h3 {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.latest-body p {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------------------------------ 分类内容模块 */
.modules { padding: 24px 0 30px; }
.cat-module {
  margin-top: 14px;
  padding: 15px 20px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
}
.cat-module-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
}
.cat-module-head h3 { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.cat-module-count {
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.cat-module-more {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
}
.cat-module-more:hover { color: var(--accent); }
.mod-list { margin-top: 4px; }
.mod-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.mod-list li:last-child { border-bottom: 0; }
.mod-list a {
  flex: 0 1 auto;
  max-width: 52%;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mod-list a:hover { color: var(--accent-dark); }
.mod-list span {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.6px;
  line-height: 1.6;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------ 速查三栏 */
.lower { padding: 22px 0; }
.lower-grid {
  display: grid;
  grid-template-columns: 1.15fr .92fr 1fr;
  align-items: stretch;
  gap: 16px;
}
.panel {
  min-width: 0;
  padding: 20px 20px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
}
.panel-head { display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; row-gap: 2px; margin-bottom: 14px; }
.panel-icon { grid-row: 1 / span 2; width: 26px; height: 26px; color: var(--accent); }
.panel-icon svg { width: 24px; height: 24px; }
.panel-head h2 { font-size: 22px; line-height: 1.25; font-weight: 700; }
.panel-head p { font-size: 12px; color: var(--muted); line-height: 1.4; }

.quick-table table { width: 100%; border-collapse: collapse; font-size: 12.3px; }
.quick-table th, .quick-table td { padding: 10px 8px; text-align: left; vertical-align: middle; line-height: 1.45; }
.quick-table thead th {
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  border-right: 1px solid rgba(255, 253, 246, .22);
  padding-top: 8px;
  padding-bottom: 8px;
}
.quick-table thead th:last-child { border-right: 0; }
.quick-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.quick-table tbody td { color: var(--ink-2); }
.quick-table tbody td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.quick-table tbody tr:nth-child(odd) { background: rgba(246, 239, 221, .8); }
.quick-table tbody tr { border-bottom: 1px solid var(--line); }
.quick-table tbody tr:last-child { border-bottom: 0; }

.check-list { border-top: 1px dashed var(--line-strong); }
.check-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  grid-template-areas: "box text" "box hint";
  column-gap: 10px;
  align-items: start;
  padding: 2px 0;
  border-bottom: 1px dashed var(--line);
}
.check-row input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.check-box {
  grid-area: box;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-2);
  position: relative;
  transition: background .15s ease, border-color .15s ease;
}
.check-row input:checked + .check-box { background: var(--accent); border-color: var(--accent); }
.check-row input:checked + .check-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid var(--white);
  border-width: 0 1.7px 1.7px 0;
  transform: rotate(42deg);
}
.check-row input:focus-visible + .check-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-text { grid-area: text; font-size: 12.8px; font-weight: 600; line-height: 1.4; }
.check-hint { grid-area: hint; font-size: 11.3px; line-height: 1.4; color: var(--muted); }
.check-note { margin-top: 9px; font-size: 10.8px; line-height: 1.5; color: var(--muted-2); }
.check-toolbar {
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.3px;
  color: var(--muted);
}
.check-toolbar button {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  padding: 3px 10px;
  font-size: 10.8px;
  color: var(--accent-dark);
}
.check-toolbar button:hover { background: var(--accent-soft); }

.faq-list { border-top: 1px dashed var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 12.8px;
  font-weight: 600;
  line-height: 1.4;
}
.faq-item button svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--accent); transition: transform .2s ease; }
.faq-item button[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-item button:hover { color: var(--accent-dark); }
.faq-panel p { padding: 0 4px 13px 0; font-size: 11.8px; line-height: 1.65; color: var(--muted); }

/* ------------------------------------------------------------ 提示条与页脚 */
.notice { padding: 0 0 28px; }
.notice-inner {
  min-height: 59px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: var(--notice);
  border: 1px solid var(--notice-line);
  border-radius: var(--r-2);
}
.notice-inner svg { width: 22px; height: 22px; flex: 0 0 auto; color: #8A7A2E; }
.notice-inner strong { font-size: 13px; white-space: nowrap; color: #5D5424; }
.notice-inner p { font-size: 12.3px; line-height: 1.5; color: #6B6233; }

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding-top: 34px;
  min-height: 231px;
}
.footer-top {
  display: grid;
  grid-template-columns: 36% minmax(0, 1fr);
  gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-mark { width: 44px; height: 44px; color: var(--footer-ink); margin-bottom: 8px; }
.footer-brand strong { font-size: 19px; font-weight: 700; letter-spacing: .01em; }
.footer-brand p { margin-top: 6px; max-width: 330px; font-size: 12px; line-height: 1.6; color: var(--footer-muted); }
.footer-links { padding-top: 2px; }
.footer-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(237, 236, 217, .14);
  font-size: 11.8px;
}
.footer-row:last-child { border-bottom: 0; }
.footer-label { color: var(--footer-muted); font-size: 11px; letter-spacing: .08em; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 4px 13px; }
.footer-row a { color: var(--footer-muted); transition: color .15s ease; }
.footer-row a:hover { color: var(--footer-ink); }
.footer-row p { color: var(--footer-muted); line-height: 1.55; }
.footer-bottom {
  margin-top: 26px;
  padding: 11px 0 18px;
  border-top: 1px solid rgba(237, 236, 217, .16);
  display: flex;
  justify-content: flex-end;
  color: var(--footer-muted);
  font-size: 11px;
  letter-spacing: .02em;
}

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 1240px) {
  .main-nav { gap: 12px; font-size: 12.8px; }
  .brand { font-size: 20px; }
  .brand-mark { width: 31px; height: 31px; }
  .hero h1 { font-size: 52px; }
  .hero-lead { font-size: 22px; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    padding: 14px var(--gutter) 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(76, 83, 45, .08);
    font-size: 15px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 10px 2px; border-bottom: 1px solid rgba(228, 218, 193, .55); }
  .main-nav a[aria-current="page"]::after, .main-nav a:hover::after { display: none; }
  .nav-cta { margin: 12px 0 0; text-align: center; border-bottom: 0 !important; }
  .section-link { position: static; margin-top: 12px; justify-content: flex-end; }
}

@media (max-width: 980px) {
  :root { --gutter: 28px; }
  .hero { min-height: 0; }
  .hero-inner { min-height: 0; padding: 34px 0 30px; display: block; }
  .hero-copy { width: 100%; max-width: none; }
  .hero h1 { font-size: 46px; }
  .hero-media {
    position: relative;
    width: 100%;
    height: 250px;
    margin-top: 22px;
    -webkit-mask-image: none;
    mask-image: none;
    border-radius: var(--r-3);
  }
  .hero-stats {
    position: static;
    margin-top: 14px;
    justify-content: space-between;
    width: 100%;
  }
  .stat { flex: 1; padding: 0 10px; }
  .stat strong { font-size: 17px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feat-card { grid-template-columns: 132px minmax(0, 1fr); }
  .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-list a { max-width: 46%; }
  .lower-grid { grid-template-columns: 1fr; }
  .panel { padding: 24px 0; }
  .panel:first-child { padding-top: 0; }
  .panel:last-child { padding-bottom: 0; }
  .panel + .panel { border-left: 0; border-top: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand p { max-width: none; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --header-h: 64px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 29px; height: 29px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 19px; }
  .hero-text { font-size: 14px; }
  .hero-media { height: 210px; }
  .hero-stats { flex-wrap: wrap; gap: 8px 0; padding: 9px 4px; }
  .stat { min-width: 33.33%; }
  .section-head { flex-direction: column; gap: 4px; align-items: flex-start; }
  .section-head h2 { font-size: 25px; }
  .section-head p { font-size: 13px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-card { min-height: 126px; padding: 13px 10px 11px; }
  .cat-card h3 { font-size: 16px; }
  .cat-card p { font-size: 11.5px; }
  .feat-grid { grid-template-columns: 1fr; gap: 12px; }
  .feat-card { height: 132px; grid-template-columns: 128px minmax(0, 1fr); }
  .latest-grid { grid-template-columns: 1fr; }
  .cat-module { padding: 13px 14px 10px; }
  .cat-module-head { flex-wrap: wrap; gap: 6px 10px; }
  .cat-module-more { margin-left: 0; flex-basis: 100%; }
  .mod-list li { flex-direction: column; gap: 2px; }
  .mod-list a, .mod-list span { max-width: 100%; width: 100%; white-space: normal; }
  .lower { padding: 30px 0; }
  .quick-table { overflow-x: auto; }
  .quick-table table { min-width: 0; table-layout: fixed; }
  .quick-table th, .quick-table td { font-size: 11px; padding: 9px 5px; }
  .quick-table tbody td:nth-child(2) { white-space: normal; }
  .notice-inner { flex-wrap: wrap; gap: 6px 10px; padding: 12px 14px; }
  .notice-inner p { flex-basis: 100%; padding-left: 32px; }
  .footer-top { gap: 18px; }
  .footer-bottom { justify-content: flex-start; }
  .footer-row { grid-template-columns: 42px minmax(0, 1fr); }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 36px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stat { padding: 0 4px; }
  .stat strong { font-size: 15px; }
  .stat span { font-size: 10.5px; }
  .check-toolbar { flex-wrap: wrap; gap: 6px; }
}

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