/* components.css — 首页与内页共享组件（三页同一套） */

/* ---------------------------------------------------------------- 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand__mark {
  display: inline-flex;
  width: 26px;
  height: 26px;
  color: var(--brand);
}
.brand__mark svg {
  width: 100%;
  height: 100%;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: visible;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 11px;
  color: var(--ink-2);
  font-size: 15px;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover {
  color: var(--brand);
  background: var(--brand-soft);
}
.nav__link.is-active {
  color: var(--ink);
  font-weight: 600;
}
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}
.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav__drop {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: none;
  min-width: 168px;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-raise);
}
.nav__item:hover .nav__drop {
  display: block;
}
.nav__drop a {
  display: block;
  padding: 7px 10px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav__drop a:hover {
  color: var(--brand);
  background: var(--brand-soft);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}
.nav-toggle .nav-toggle__close {
  display: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

/* ------------------------------------------------------------- 区块标题 */
.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.section-head::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--brand);
}
.section-head__note {
  margin-left: auto;
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--ink-3);
}

/* --------------------------------------------------------------- 胶囊 */
.chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.chip:hover {
  border-color: var(--brand-line);
  color: var(--brand);
  background: var(--brand-soft);
}
.chip[aria-pressed="true"],
.chip.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: var(--fs-xs);
  line-height: 1;
}
.arrow {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--brand-line);
  color: var(--brand);
  transition: all var(--dur) var(--ease);
}
.arrow svg {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------- 分类索引网格 */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: cat;
}
.cat-grid > li,
.feat-grid > li,
.entry-grid > li,
.cat-grid > li,
.feat-grid > li {
  display: flex;
}
.entry-grid > li[hidden],
.cat-grid > li[hidden],
.feat-grid > li[hidden] {
  display: none;
}
.cat-grid > li > .cat-card,
.feat-grid > li > .feat-card,
.entry-grid > li > .entry-card {
  width: 100%;
}
.cat-card {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.cat-card:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-raise);
  transform: translateY(-2px);
}
.cat-card:hover .arrow {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.cat-card__thumb {
  min-height: 0;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-3);
}
.cat-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-card__body {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.cat-card__name {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
}
.cat-card__desc {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-2);
}
.cat-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cat-card__arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
}

/* ----------------------------------------------------------- 精选条目卡 */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.feat-card {
  display: grid;
  grid-template-columns: 44% minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feat-card:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-raise);
}
.feat-card:hover .arrow {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.feat-card__thumb {
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-3);
}
.feat-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feat-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.feat-card__meta {
  font-size: var(--fs-xs);
  color: var(--brand);
  letter-spacing: 0.02em;
}
.feat-card__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
}
.feat-card__desc {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feat-card__foot {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

/* --------------------------------------------------------- 容易混淆对照 */
.confusion {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.confusion__card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: var(--surface-2);
  border-radius: var(--radius);
}
.confusion__thumb {
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-3);
}
.confusion__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.confusion__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.confusion__desc {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-2);
}

/* ------------------------------------------------------------- 四步核对 */
.checklist {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
  padding: 44px var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--brand-deep);
  color: var(--ink-invert);
  background-image: radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.08), transparent 60%);
}
.checklist__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}
.checklist__title small {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-sm);
  font-weight: 400;
  color: rgba(243, 246, 250, 0.72);
}
.checklist__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checklist__step {
  position: relative;
  padding-left: 38px;
}
.checklist__step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
}
.checklist__step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transform: rotate(-45deg);
}
.checklist__step h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.checklist__step p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: rgba(243, 246, 250, 0.78);
}

/* --------------------------------------------------------------- 参数表 */
.param-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: var(--fs-body);
}
.param-table caption {
  caption-side: top;
  text-align: left;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  padding-bottom: 8px;
}
.param-table th,
.param-table td {
  padding: 4px 16px;
  height: 32px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.param-table thead th {
  background: var(--brand-deep);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}
.param-table tbody tr:nth-child(even) {
  background: var(--surface-2);
}
.param-table tbody tr:last-child td {
  border-bottom: 0;
}
.param-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* ------------------------------------------------------------- 收录说明 */
.note {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.note__intro {
  padding: 30px;
  background: var(--surface-2);
  border-radius: var(--radius);
}
.note__intro p {
  margin-top: 10px;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink-2);
}
.note__body {
  position: relative;
  padding: 32px 28px 32px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.note__body p {
  font-size: var(--fs-body);
  line-height: 2;
  color: var(--ink-2);
}
.note__body p + p {
  margin-top: 10px;
}

/* --------------------------------------------------------------- 页脚 */
.site-footer {
  background: var(--brand-dark);
  color: rgba(243, 246, 250, 0.78);
  margin-top: var(--space-8);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(0, 2.6fr);
  gap: var(--space-6);
  padding: 24px 0 18px;
}
.site-footer .brand {
  color: #fff;
  font-size: 18px;
}
.site-footer .brand__mark {
  color: #fff;
}
.site-footer__tagline {
  margin-top: 8px;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: rgba(243, 246, 250, 0.62);
  max-width: 22em;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
.site-footer__col h2 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(243, 246, 250, 0.55);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__links a {
  font-size: var(--fs-sm);
  color: rgba(243, 246, 250, 0.86);
  transition: color var(--dur) var(--ease);
}
.site-footer__links a:hover {
  color: #fff;
}
.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 0 12px;
  font-size: var(--fs-xs);
  color: rgba(243, 246, 250, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
}

/* ------------------------------------------------------------- 内页页头 */
.page-hero {
  padding: 30px 0 26px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: end;
}
.page-hero h1 {
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-top: 10px;
}
.page-hero__sub {
  margin-top: 8px;
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.page-hero__lead {
  margin-top: 10px;
  max-width: 46em;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink-2);
}
.page-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.breadcrumb a {
  color: var(--ink-2);
}
.breadcrumb a:hover {
  color: var(--brand);
}
.breadcrumb__sep {
  color: var(--line-strong);
}

/* --------------------------------------------------------- 筛选与排序条 */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.toolbar__label {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.toolbar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toolbar__sort {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.toolbar__sort select {
  height: 32px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-sm);
  cursor: pointer;
}

/* ----------------------------------------------------------- 条目卡网格 */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.entry-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.entry-card:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-raise);
  transform: translateY(-2px);
}
.entry-card__thumb {
  min-height: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-3);
}
.entry-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.entry-card__thumb::after {
  content: attr(data-material);
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(31, 54, 81, 0.82);
  color: #fff;
  font-size: var(--fs-xs);
  line-height: 1;
}
.entry-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  flex: 1;
}
.entry-card__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
}
.entry-card__desc {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-2);
}
.entry-card__foot {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}
.entry-grid__empty {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  padding: 40px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: var(--fs-body);
}

/* ----------------------------------------------------------- 分类说明块 */
.list-desc {
  max-width: 720px;
}
.list-desc h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}
.list-desc p {
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--ink-2);
}
.list-desc p + p {
  margin-top: 14px;
}

/* ------------------------------------------------------------- 相邻分类 */
.related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.related__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.related__card:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-card);
}
.related__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--brand-dark);
}
.related__title svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}
.related__desc {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-2);
}

/* ------------------------------------------------------------- 文章页头 */
.article-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.article-head__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: var(--space-6);
  align-items: center;
  padding: 26px 0;
}
.article-head h1 {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 800;
  color: var(--ink);
  margin-top: 10px;
  letter-spacing: 0.01em;
}
.article-head__meta {
  margin-top: 10px;
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 44em;
}
.article-head__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.article-head__media {
  min-height: 0;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-3);
}
.article-head__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------- 文章布局 */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 260px;
  justify-content: space-between;
  gap: var(--space-7);
  align-items: start;
  padding: 38px 0 var(--space-6);
}
.article-body {
  max-width: 720px;
  min-width: 0;
}
.article-body section {
  scroll-margin-top: 88px;
}
.article-body section + section {
  margin-top: 34px;
}
.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.article-body p {
  font-size: var(--fs-body);
  line-height: 1.95;
  color: var(--ink-2);
}
.article-body p + p {
  margin-top: 13px;
}
.toc {
  position: sticky;
  top: 92px;
  padding: 18px;
  background: var(--surface-2);
  border-radius: var(--radius);
}
.toc__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
}
.toc a {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-2);
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.toc a:hover,
.toc a.is-current {
  color: var(--brand);
  border-left-color: var(--brand);
}
.toc a.is-current::before {
  color: var(--brand);
}

/* --------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feat-grid,
  .confusion,
  .related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .checklist {
    grid-template-columns: minmax(0, 1fr);
  }
  .checklist__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .checklist__step:not(:last-child)::after {
    display: none;
  }
  .note {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 860px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-head__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-head__media {
  min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    gap: var(--space-3);
  }
  .nav {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    min-width: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav__link {
    padding: 8px 9px;
    font-size: var(--fs-sm);
    border-radius: 0;
  }
  .nav__link.is-active::after {
    display: none;
  }
  .nav__item {
    position: static;
  }
  .nav__drop {
    position: static;
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav__drop a {
    padding: 8px 9px;
    font-size: var(--fs-sm);
    white-space: nowrap;
  }
  .cat-grid,
  .feat-grid,
  .confusion,
  .entry-grid,
  .related,
  .checklist__steps,
  .cat-grid--entries {
    grid-template-columns: minmax(0, 1fr);
  }
  .feat-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .feat-card__thumb {
  min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .page-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .page-hero__tags {
    justify-content: flex-start;
  }
  .toolbar__sort {
    margin-left: 0;
    width: 100%;
  }
  .site-footer__cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .param-table {
    font-size: var(--fs-sm);
  }
  .param-table th,
  .param-table td {
    padding: 9px 10px;
  }
}

/* ------------------------------------------------- 首页分类内容模块条目 */
.cat-intro {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--ink-2);
}
.cat-grid--entries {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cat-grid--entries .cat-card {
  align-items: start;
}
.cat-grid--entries .cat-card__name {
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.cat-grid--entries .cat-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.cat-grid--entries .cat-card__body {
  padding-bottom: 22px;
}
.feat-card__title a {
  color: inherit;
}
.feat-card__title a:hover {
  color: var(--brand);
}

/* --------------------------------------------------------------- 分页条 */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  list-style: none;
  padding: 0;
}
.pager__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1;
}
a.pager__item:hover {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand);
}
.pager__item.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.pager__item.is-disabled {
  color: var(--ink-3);
  background: var(--surface-2);
  cursor: default;
}
.pager__gap {
  min-width: 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: var(--fs-sm);
}
.pager__info {
  width: 100%;
  text-align: center;
  margin-top: 4px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

@media (max-width: 720px) {
  .cat-grid--entries {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------- 详情页补充 */
.article-head__inner--solo {
  grid-template-columns: minmax(0, 1fr);
}
.article-layout--plain {
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
}
.article-layout--plain .article-body {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.article-figure {
  margin: 18px 0 4px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-3);
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
a.article-nav__item {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s ease, background 0.18s ease;
}
a.article-nav__item:hover {
  border-color: var(--brand-line);
  background: var(--brand-soft);
}
a.article-nav__item[rel="next"] {
  text-align: right;
}
.article-nav__label {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.article-nav__title {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .article-layout--plain .article-body {
    max-width: none;
  }
}
