/* ============================================================
   style.css · 园艺种植工具大全 首页 + 内页骨架
   设计宽度 1440；分区预算（见 03-ui/compare-log.md 第一节）：
   M0 67 / M1 411 / M2 429 / M3 236 / M4 336 / M5 211 / M6 161 / M7 309 = 2160
   ============================================================ */

/* ------------------------------------------------ M1 hero-split */
.hero {
  position: relative;
  height: var(--hero-h);
  background: var(--bg-hero);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-copy {
  width: 520px;
  max-width: 100%;
  padding: 6px 0 0;
}

.hero h1 {
  font-size: var(--fs-11);
  line-height: 1.02;
  letter-spacing: -.005em;
}

.hero-lead {
  margin-top: 24px;
  max-width: 508px;
  font-size: 19px;
  line-height: 1.78;
  color: var(--ink-2);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  margin-top: 26px;
  font-size: var(--fs-5);
  color: var(--ink-2);
}
.hero-stats li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-variant-numeric: tabular-nums;
}
.hero-stats svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 26px;
}

.hero-art {
  position: absolute;
  top: 0;
  bottom: 0;
  right: max(0px, calc((100% - var(--wrap)) / 2));
  width: 58.5%;
  z-index: 1;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 92px;
  background: linear-gradient(90deg, var(--bg-hero), rgba(227, 236, 185, 0));
  pointer-events: none;
}

/* ------------------------------------------------ M2 stage-index */
/* 稿面预算：478–907（429）＝ padding 37 + 标题 36 + 21 + 卡 118 + 40 + 卡 118 + padding 59 */
.stages {
  background: var(--bg-tint);
  padding: 37px 0 59px;
}
.stages .section-title {
  font-size: var(--fs-10);
  line-height: 36px;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 20px;
  margin-top: 21px;
}
.stage-card {
  display: flex;
  flex-direction: column;
  height: 118px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stage-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.stage-thumb {
  display: block;
  flex: none;
  height: 40px;
  background: var(--bg-tint-2);
  overflow: hidden;
}
.stage-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.stage-card:hover .stage-thumb img { transform: scale(1.06); }

.stage-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0 6px;
  padding: 5px 12px 6px;
}
.stage-num {
  font-family: var(--font-serif);
  font-size: var(--fs-2);
  font-weight: 700;
  line-height: 20px;
  color: var(--warm);
  font-variant-numeric: tabular-nums;
}
.stage-name {
  font-family: var(--font-serif);
  font-size: var(--fs-5);
  font-weight: 700;
  line-height: 20px;
  color: var(--ink);
  white-space: nowrap;
}
.stage-count {
  font-size: var(--fs-1);
  line-height: 20px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.stage-desc {
  grid-column: 1 / -1;
  margin-top: 1px;
  font-size: var(--fs-1);
  line-height: 15px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------------------ M3 tool-grid */
/* 稿面预算：907–1143（236）＝ 16 + 标题 34 + 8 + 图标 100 + 8 + 名 18 + 4 + 规格 14 + 34 */
.tools {
  background: var(--bg-tint-2);
  padding: 16px 0 38px;
}
.tools .section-title {
  font-size: var(--fs-10);
  line-height: 34px;
}

.tool-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  border-radius: var(--radius);
  color: inherit;
  text-align: center;
  transition: background .16s ease;
}
.tool-card:hover { background: rgba(255, 255, 255, .55); }
.tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  color: var(--accent);
}
.tool-icon svg { width: 62px; height: 62px; }
.tool-card:hover .tool-icon { color: var(--accent-dark); }
.tool-name {
  font-size: var(--fs-4);
  font-weight: 700;
  line-height: 18px;
  color: var(--ink);
  white-space: nowrap;
}
.tool-spec {
  font-size: var(--fs-1);
  line-height: 14px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ------------------------------------------------ M4 stage-path */
/* 稿面预算：1143–1479（336）＝ pad 18 + 面板（pad 16 + 标题 34 + 20 + 图 96 + 18 + 名 24 + 6 + 说明 3 行 66 + pad 18 + 2*间隙） */
.path {
  background: var(--bg-tint);
  padding: 18px 0 20px;
}
.path-panel {
  background: var(--bg-band);
  border-radius: var(--radius-lg);
  padding: 16px 34px 18px;
  height: 298px;
}
.path-title {
  font-size: var(--fs-9);
  line-height: 34px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 20px;
}
.step {
  position: relative;
  padding: 0 22px;
}
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step + .step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: var(--line);
}
.step-thumb {
  display: block;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 96px;
  background: var(--bg-tint-2);
}
.step-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step-label {
  font-family: var(--font-serif);
  font-size: var(--fs-1);
  line-height: 16px;
  letter-spacing: .18em;
  color: var(--warm);
}
.step-name {
  margin-top: 4px;
  font-size: var(--fs-5);
  line-height: 24px;
}
.step-text {
  margin-top: 6px;
  font-size: var(--fs-2);
  line-height: 22px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------------------ M5 care-safety */
/* 稿面预算：1479–1690（211）＝ pad 20 + 标题 34 + 18 + 内容 139。稿面这一带只有左侧一张实拍，
   右侧是四段文字列，因此取「左图 + 四列文字」的横排，不套竖图卡。 */
.care {
  background: var(--bg);
  padding: 20px 0 0;
}
.care-title {
  font-size: var(--fs-10);
  line-height: 34px;
}

.care-row {
  display: grid;
  grid-template-columns: 230px repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 0 40px;
  margin-top: 18px;
}
.care-media {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 139px;
}
.care-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.care-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.care-body h3 {
  font-size: var(--fs-4);
  font-weight: 700;
  line-height: 20px;
}
.care-body p {
  margin-top: 4px;
  font-size: var(--fs-2);
  line-height: 21px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------------------ M6 editorial-note */
/* 稿面预算：1690–1851（161）＝ pad 20 + 面板 118 + pad 23 */
.note {
  background: var(--bg-band);
  padding: 20px 0 23px;
}
.note-panel {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 118px;
  background: var(--bg-note);
  border-radius: var(--radius-lg);
  padding: 14px 34px;
}
.note-copy { flex: 1 1 auto; max-width: 1040px; }
.note-copy h2 {
  font-size: var(--fs-7);
  line-height: 20px;
  letter-spacing: .06em;
}
.note-copy p {
  margin-top: 5px;
  font-size: var(--fs-1);
  line-height: 18px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-art {
  flex: none;
  width: 76px;
  height: 92px;
  color: var(--line-dark);
  opacity: .85;
}

/* ------------------------------------------------ M7 site-footer */
/* 稿面预算：1851–2160（309）＝ 暖米 154（pad 33 + 内容 75 + 46）+ 深绿 153 */
.site-footer { background: var(--footer); padding: 0; }

.footer-top {
  background: var(--cream);
  height: 154px;
  padding: 33px 0 0;
  overflow: hidden;
}
.footer-top-inner {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}
.footer-brand { flex: none; }
.footer-name {
  font-family: var(--font-serif);
  font-size: var(--fs-6);
  font-weight: 700;
  line-height: 24px;
  color: var(--ink);
  letter-spacing: .04em;
}
.footer-tagline {
  margin-top: 6px;
  font-size: var(--fs-2);
  line-height: 18px;
  color: var(--muted);
}
.footer-nav { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-left: 20px; }
.footer-label {
  font-size: var(--fs-2);
  line-height: 18px;
  letter-spacing: .16em;
  color: var(--muted-2);
}
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-nav a {
  font-size: var(--fs-3);
  line-height: 20px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.footer-nav a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); }
.footer-note {
  margin-left: auto;
  max-width: 300px;
  font-size: var(--fs-2);
  line-height: 18px;
  color: var(--muted-2);
}

.footer-bottom { background: var(--footer); height: 153px; padding: 32px 0 0; overflow: hidden; }
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 38px;
}
.footer-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  flex: none;
}
.footer-top-link {
  font-size: var(--fs-3);
  line-height: 20px;
  color: var(--on-dark-muted);
}
.footer-top-link:hover { color: var(--on-dark); }

/* ============================================================
   内页：分类页 / 详情页（共用组件在 components.css）
   ============================================================ */

.page-hero {
  background: var(--bg-hero);
  padding: 24px 0 34px;
}
.page-hero .breadcrumb { margin-bottom: 16px; }
.page-hero h1 {
  font-size: var(--fs-13);
  line-height: 1.14;
}
.page-hero-lead {
  margin-top: 16px;
  max-width: 760px;
  font-size: var(--fs-6);
  line-height: 1.8;
  color: var(--ink-2);
}

.list-section { padding: 30px 0 10px; }
.section-intro {
  margin-top: 12px;
  max-width: 780px;
  font-size: var(--fs-4);
  line-height: 1.8;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
  margin-top: 22px;
}
.list-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.list-card-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 18px 16px;
  color: inherit;
}
.list-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.list-card:focus-within { border-color: var(--accent); box-shadow: var(--shadow-md); }
.list-card-link:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; border-radius: var(--radius-sm); }
.list-card-tag {
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: var(--fs-1);
  letter-spacing: .06em;
}
.list-card-title {
  margin-top: 10px;
  font-size: var(--fs-7);
  line-height: 1.4;
}
.list-card-text {
  margin-top: 8px;
  font-size: var(--fs-3);
  line-height: 1.7;
  color: var(--muted);
}
.list-card-spec {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-2);
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.list-description { padding: 34px 0 24px; }
.list-description-inner { max-width: 800px; }
.list-description h2 {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-2);
  letter-spacing: .22em;
  color: var(--muted-2);
}
.list-description p {
  margin-top: 16px;
  font-size: var(--fs-6);
  line-height: 1.9;
  color: var(--ink-2);
}
.list-description p:first-of-type { margin-top: 20px; }

.related { padding: 8px 0 48px; }
.related-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.related-card {
  position: relative;
  display: block;
  padding: 20px 52px 20px 20px;
  background: var(--bg-tint);
  border-radius: var(--radius);
  color: inherit;
  transition: background .18s ease;
}
.related-card:hover { background: var(--accent-soft); }
.related-card::after {
  content: "→";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 19px;
}
.related-name {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--fs-7);
  font-weight: 700;
  color: var(--ink);
}
.related-text {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-3);
  line-height: 1.65;
  color: var(--muted);
}

/* ------------------------------------------------ 详情页 */
.article-head {
  background: var(--bg-hero);
  padding: 24px 0 32px;
}
.article-head .breadcrumb { margin-bottom: 18px; }
.article-head h1 {
  font-size: var(--fs-13);
  line-height: 1.14;
}
.article-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(47, 107, 58, .12);
  color: var(--accent-dark);
  font-size: var(--fs-2);
  letter-spacing: .06em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
  font-size: var(--fs-2);
  color: var(--muted);
}
.article-lead {
  margin-top: 16px;
  max-width: 780px;
  font-size: var(--fs-6);
  line-height: 1.85;
  color: var(--ink-2);
}

.article-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 34px 0 30px;
}
.article-main { min-width: 0; max-width: 800px; }
.article-content h2 {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-12);
  line-height: 1.35;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.article-content h2:first-of-type { margin-top: 8px; padding-top: 0; border-top: 0; }
.article-content p {
  margin-top: 14px;
  font-size: var(--fs-6);
  line-height: 1.92;
  color: var(--ink-2);
}
.article-intro {
  padding: 12px 16px;
  background: var(--bg-tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--fs-4) !important;
  color: var(--muted) !important;
}

.spec-section { margin-top: 36px; }
.spec-section .section-title { font-size: var(--fs-8); }
.table-wrap { margin-top: 16px; overflow-x: auto; }
.table-note {
  margin-top: 10px;
  font-size: var(--fs-2);
  color: var(--muted-2);
}

/* ------------------------------------------------ 响应式 */
@media (max-width: 1180px) {
  :root { --gutter: 28px; }
  .hero-copy { width: 460px; }
  .main-nav a { padding: 6px 7px; }
  .article-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 980px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 11px 4px; font-size: var(--fs-5); }
  .main-nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--line); }

  .hero { height: auto; min-height: 0; padding: 30px 0; }
  .hero-inner { display: block; }
  .hero-copy { width: 100%; max-width: 560px; }
  .hero-art { position: static; width: 100%; margin-top: 26px; aspect-ratio: 16 / 9; }
  .hero-art::after { display: none; }
  .hero h1 { font-size: 46px; }

  .stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; }
  .step:nth-child(odd) { padding-left: 0; }
  .step:nth-child(3)::before { display: none; }
  .care-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note-panel { flex-direction: column; align-items: flex-start; gap: 14px; }
  .note-art { display: none; }
  .footer-top-inner { flex-wrap: wrap; gap: 16px; }
  .footer-note { margin-left: 0; max-width: none; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 24px; }
  .article-main { max-width: 100%; }
  .article-toc { position: static; margin-bottom: 22px; }
}

@media (max-width: 700px) {
  :root { --gutter: 20px; --fs-11: 40px; --fs-10: 27px; --fs-13: 26px; --fs-9: 22px; }

  .hero h1 { font-size: 38px; }
  .hero-lead { margin-top: 18px; font-size: var(--fs-6); line-height: 1.8; }
  .hero-stats { gap: 6px 20px; margin-top: 20px; font-size: var(--fs-4); }
  .hero-actions { margin-top: 22px; flex-wrap: wrap; }
  .btn { min-height: 48px; padding: 0 20px; }

  .stages { padding: 24px 0 20px; }
  .stage-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .stage-thumb { aspect-ratio: 3 / 1; }

  .tools { padding: 22px 0 16px; }
  .tool-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tool-icon { height: 76px; }
  .tool-icon svg { width: 52px; height: 52px; }

  .path { padding: 14px 0 16px; }
  .path-panel { padding: 18px 18px 20px; border-radius: var(--radius); }
  .step-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { padding: 16px 0 0; }
  .step + .step::before {
    top: 0; left: 0; right: 0; bottom: auto;
    width: auto; height: 1px;
  }
  .step:first-child { padding-top: 0; }
  .step:first-child::before { display: none; }
  .step:nth-child(3)::before { display: block; }

  .care { padding: 20px 0 16px; }
  .care-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .care-card img { aspect-ratio: 16 / 9; }

  .note-panel { padding: 16px 18px; }
  .note-copy p { font-size: var(--fs-3); }

  .footer-top { padding: 18px 0 16px; }
  .footer-nav { margin-left: 0; }
  .footer-nav ul { gap: 6px 14px; }
  .footer-bottom { padding: 16px 0 18px; }

  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .related-row { grid-template-columns: minmax(0, 1fr); }
  .article-head h1 { font-size: var(--fs-15); }
  .page-hero h1 { font-size: var(--fs-15); }
  .article-content h2 { font-size: var(--fs-12); margin-top: 26px; padding-top: 18px; }
  .article-content p { font-size: var(--fs-5); line-height: 1.9; }
}

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

/* M4 步骤卡：稿面每列顶部一张 16:9 实拍，下方序号/步骤名/说明 */
.step-thumb {
  display: block;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 27 / 10;
  background: var(--bg-tint-2);
}
.step-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   对接补充：列表缩略图 / 分页 / 详情图文 / 页脚四栏 / 无汉堡导航
   ============================================================ */

/* ---------- 列表卡片缩略图 ---------- */
.list-card-thumb {
  display: block;
  margin-bottom: 12px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  background: var(--bg-tint-2);
  overflow: hidden;
}
.list-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.list-card:hover .list-card-thumb img { transform: scale(1.05); }
.list-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.list-card-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* ---------- 分类 chips：服务端跳转的当前项 ---------- */
.chip[aria-current="page"] {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--on-dark);
}

/* ---------- 分类页统计行 ---------- */
.page-hero-stat {
  margin-top: 14px;
  font-size: var(--fs-3);
  line-height: 20px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: var(--fs-4);
}
.pager a,
.pager-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pager a:hover { border-color: var(--accent); color: var(--accent-dark); }
.pager-current {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--on-dark);
}
.pager-gap { padding: 0 4px; color: var(--muted-2); }
.pager-info {
  margin-left: auto;
  font-size: var(--fs-2);
  color: var(--muted-2);
}

/* ---------- 相关分类：不足 3 卡时铺满 ---------- */
.related-row-fit { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- 详情页图文 ---------- */
.article-figure { margin-top: 18px; }
.article-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.article-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.article-pager a {
  flex: 1 1 240px;
  display: block;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  transition: border-color .18s ease, background .18s ease;
}
.article-pager a:hover { border-color: var(--accent); background: var(--bg-tint); }
.article-pager span {
  display: block;
  font-size: var(--fs-2);
  color: var(--muted-2);
  letter-spacing: .06em;
}
.article-pager strong {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-4);
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  word-break: break-word;
}
.article-back { margin-top: 22px; font-size: var(--fs-4); }
.article-back a { color: var(--accent-dark); border-bottom: 1px solid var(--accent); }

/* 无目录时详情正文占满整行 */
.article-layout.is-plain { grid-template-columns: minmax(0, 1fr); }
.article-layout.is-plain .article-main { max-width: 860px; }

/* ---------- 页脚四栏（品牌 / 分类 / 专题 / 关于） ---------- */
.footer-top {
  height: auto;
  padding: 33px 0 30px;
  overflow: visible;
}
.footer-top-inner { flex-wrap: wrap; gap: 24px 36px; }
.footer-nav { margin-left: 0; }
.footer-nav-sub { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.footer-about {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: auto;
  max-width: 320px;
}
.footer-about .footer-note { margin-left: 0; max-width: none; }
.footer-icp,
.footer-copy {
  font-size: var(--fs-2);
  line-height: 18px;
  color: var(--muted-2);
}
.footer-bottom {
  height: auto;
  padding: 32px 0 30px;
  overflow: visible;
}

/* ---------- 无汉堡：≤980 导航常显横滚 ---------- */
@media (max-width: 980px) {
  .site-header { height: auto; }
  .header-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 0 6px;
    row-gap: 2px;
  }
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    inset: auto;
    order: 3;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    width: 100%;
    margin-left: 0;
    padding: 2px 0 0;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 8px 10px; font-size: var(--fs-4); }
  .main-nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--accent); }
  .article-content h2 { scroll-margin-top: 132px; }
  .footer-about { margin-left: 0; max-width: none; }
  .footer-top { padding: 22px 0 22px; }
  .footer-bottom { padding: 22px 0 24px; }
  .footer-bottom-inner { gap: 20px; }
  .pager-info { margin-left: 0; width: 100%; }
}

@media (max-width: 700px) {
  .article-pager a { flex: 1 1 100%; }
  .article-figure { margin-top: 14px; }
  .footer-top-inner { flex-direction: column; gap: 18px; }
}

/* ---------- 首页最新条目：长中文标题不得撑破 8 列轨道 ---------- */
.tool-name {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  max-width: 100%;
}
.tool-spec {
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
}
