/* 骑行改装装备大全 · components
   公共组件：页头、页脚、按钮、卡片、表格、折叠层。三页共用。 */

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 67px;
  background: var(--navy);
  color: #cfd8e6;
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: 67px;
  max-width: none;
  padding: 0 var(--gutter);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--white);
  flex: 0 0 auto;
}

.brand__mark {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.brand__mark--deco::before {
  content: "BIKE";
}

.brand__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand__tagline {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid rgba(207, 216, 230, 0.28);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(207, 216, 230, 0.72);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.site-nav__link {
  font-size: 12.5px;
  color: rgba(207, 216, 230, 0.82);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--gold);
}

.site-nav__item {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  max-height: 360px;
  overflow-y: auto;
  padding: 8px 14px;
  background: var(--navy);
  border-top: 1px solid rgba(207, 216, 230, 0.16);
  box-shadow: 0 12px 24px rgba(11, 24, 42, 0.28);
  z-index: 50;
}

.dropdown-menu a {
  display: block;
  padding: 7px 0;
  font-size: 12.5px;
  color: rgba(207, 216, 230, 0.82);
  white-space: nowrap;
  transition: color 0.16s var(--ease);
}

.dropdown-menu a:hover {
  color: var(--white);
}

.site-nav__item:hover .dropdown-menu {
  display: block;
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  background: none;
  border: 1px solid rgba(207, 216, 230, 0.35);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1px;
  background: #cfd8e6;
  transform: translateX(-50%);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  content: "";
}

.nav-toggle span {
  top: 19px;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateX(-50%) translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateX(-50%) translateY(-5px) rotate(-45deg);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

.btn--primary {
  background: var(--gold);
  color: var(--ink);
}

.btn--primary:hover {
  background: #efc246;
}

.btn--ghost {
  border-color: rgba(207, 216, 230, 0.42);
  color: #e7edf6;
}

.btn--ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn--solid {
  background: var(--blue);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--blue-deep);
}

/* ------------------------------------------------------------------ links */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--blue);
  border-bottom: 1px solid rgba(37, 73, 125, 0.28);
  padding-bottom: 2px;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.link-arrow::after {
  content: "→";
  font-size: 12px;
}

.link-arrow:hover {
  color: var(--blue-deep);
  border-bottom-color: var(--blue-deep);
}

/* ------------------------------------------------------------- section head */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.sec-head__title {
  font-size: var(--h2);
  line-height: 1.25;
  color: var(--ink);
}

.sec-head__note {
  margin-top: 8px;
  max-width: 760px;
  font-size: 13.5px;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ------------------------------------------------------------------- cards */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent;
}

.card__thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
}

.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.card:hover .card__thumb img {
  transform: scale(1.03);
}

.card__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  background: rgba(11, 24, 42, 0.78);
  color: #e8eef7;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
}

.card__title {
  margin-top: 14px;
  font-size: var(--h3);
  line-height: 1.5;
  font-weight: 600;
}

.card__summary {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.72;
  color: var(--muted);
}

/* --------------------------------------------------------------- spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.spec-table thead th {
  background: var(--blue);
  color: var(--white);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 9px 14px;
}

.spec-table tbody th,
.spec-table tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.6;
}

.spec-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.spec-table tbody td {
  color: var(--muted);
}

.spec-table tbody td:first-of-type {
  color: var(--ink);
}

.spec-table tbody td:last-child {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  color: var(--blue);
  width: 72px;
}

/* -------------------------------------------------------------------- steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 20px 24px 0 0;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step__num {
  display: inline-block;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 12px;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
}

.step__title {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
}

.step__copy {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------------------------------------------------------------------- faq */
.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::before {
  content: "+";
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 14px;
  color: var(--blue);
  flex: 0 0 auto;
}

.faq__item[open] summary::before {
  content: "−";
}

.faq__item p {
  padding: 0 0 14px 26px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* ------------------------------------------------------------------- notice */
.notice {
  height: 100%;
  padding: 24px 28px;
  background: var(--cream);
  border-radius: var(--radius);
}

.notice__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.notice__copy {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.78;
  color: #5d5340;
}

/* ------------------------------------------------------------------- footer */
.site-footer {
  background: var(--navy-footer);
  color: rgba(207, 216, 230, 0.78);
  padding: 28px 0 26px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px 40px;
}

.site-footer__col {
  flex: 1 1 180px;
  min-width: 170px;
}

.site-footer__brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.site-footer__copy {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.72;
  color: rgba(207, 216, 230, 0.66);
  max-width: 340px;
}

.site-footer__label {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(207, 216, 230, 0.5);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px;
}

.site-footer__links a {
  font-size: 12.5px;
  color: rgba(207, 216, 230, 0.82);
  transition: color 0.16s var(--ease);
}

.site-footer__links a:hover {
  color: var(--white);
}

.site-footer__note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.72;
  color: rgba(207, 216, 230, 0.6);
}

/* --------------------------------------------------------------- filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-bar__label {
  font-size: 12px;
  color: var(--muted-2);
  margin-right: 4px;
}

.chip {
  height: 32px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.16s var(--ease);
}

.chip:hover {
  border-color: var(--navy-2);
  color: var(--ink);
}

.chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.sort {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.sort select {
  height: 32px;
  padding: 0 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
}

.result-count {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 12px;
  color: var(--muted-2);
}

/* ------------------------------------------------------------- empty state */
.empty-state {
  padding: 56px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.empty-state[hidden] {
  display: none;
}

.empty-state button {
  margin-top: 14px;
  height: 36px;
  padding: 0 18px;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: var(--radius);
  font-size: 12.5px;
  cursor: pointer;
}

/* --------------------------------------------------------------------- TOC */
.toc__link {
  display: block;
  padding: 7px 0 7px 12px;
  border-left: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.toc__link:hover,
.toc__link[aria-current="true"] {
  color: var(--ink);
  border-left-color: var(--gold);
}

/* ------------------------------------------------------------------- bread */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-2);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb__sep {
  color: var(--line);
}

/* ------------------------------------------------------------------ badges */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 12.5px;
  color: var(--muted);
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-row b {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-weight: 500;
  color: var(--ink);
}

/* ================================================================
   内页组件（category.html / detail.html 专用，环节 6 追加）
   颜色与尺寸一律走 tokens.css，不写第二套字面量。
   ================================================================ */

/* ---------------------------------------------------------- 分类页标题区 */
.page-hero {
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--line);
}

.page-hero__eyebrow {
  display: block;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.page-hero h1 {
  margin-top: 8px;
  font-size: 42px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-hero h1 .dot {
  color: var(--gold);
}

.page-hero__lead {
  margin-top: 10px;
  max-width: 760px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--muted);
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.page-hero__meta b {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-weight: 600;
  color: var(--ink);
}

/* -------------------------------------------------------- 分类锚点条（7 类） */
.cat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.cat-strip a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.cat-strip a:hover,
.cat-strip a[aria-current='true'] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* --------------------------------------------------------------- 列表卡片 */
.list-section {
  padding: 22px 0 0;
}

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

.item-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.item-card__thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
  aspect-ratio: 16 / 10;
}

.item-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.item-card:hover .item-card__thumb img {
  transform: scale(1.03);
}

.item-card__tag {
  display: inline-block;
  margin-top: 11px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
}

.item-card__title {
  margin-top: 3px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--ink);
}

.item-card__title a:hover {
  color: var(--blue);
}

.item-card__summary {
  display: -webkit-box;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.68;
  color: var(--muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------------------------------- 细分方向 */
.subcat-section {
  padding: 30px 0 0;
}

.subcat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 14px;
}

.subcat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.subcat__index {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
}

.subcat__name {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.subcat__copy {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.68;
  color: var(--muted);
}

/* ------------------------------------------------------------- 列表说明 */
.list-desc {
  padding: 34px 0 0;
}

.list-desc h2 {
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink);
}

.list-desc p {
  margin-top: 12px;
  max-width: 880px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.list-desc__scope {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.list-desc__scope h2 {
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
}

.list-desc__scope p {
  margin-top: 10px;
  max-width: 880px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

/* 条目卡整卡可点（缩略图与标题链同一目标） */
.item-card__thumb img {
  display: block;
}

/* --------------------------------------------------------------- 继续看 */
.continue-section {
  padding: 34px 0 40px;
}

.continue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 14px;
}

.continue-item {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.continue-item__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.continue-item__copy {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.66;
  color: var(--muted);
}

/* --------------------------------------------------------------- 详情页 */
.article-wrap {
  padding: 20px 0 44px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 244px;
  gap: 56px;
  align-items: start;
}

.article-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.article-head h1 {
  margin-top: 10px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.article-head__lead {
  margin-top: 12px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.article-head .meta-row {
  margin-top: 14px;
}

.article-head__tag {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 9px;
  background: var(--navy);
  color: #e8eef7;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
}

.article-body {
  padding-top: 18px;
}

.article-body figure {
  margin: 22px 0 0;
}

.article-body figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--paper-2);
}

.article-body > p {
  max-width: 700px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.article-body h2 {
  margin-top: 30px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
}

.article-body h2 + p {
  margin-top: 12px;
  max-width: 700px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

/* 目录（详情页侧栏，窄屏变顶部横排） */
.toc {
  position: sticky;
  top: 84px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.toc__title {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.toc__list {
  margin-top: 8px;
}

.toc__toggle {
  display: none;
  width: 100%;
  margin-top: 8px;
  height: 30px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

.toc__toggle::after {
  content: "⌄";
  margin-left: 6px;
}

.toc__toggle[aria-expanded='true']::after {
  content: "⌃";
}

.toc .toc__link[aria-current='true'] {
  color: var(--ink);
  border-left-color: var(--gold);
  font-weight: 600;
}

/* 检查清单（详情页装完核查项） */
.checklist {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.checklist__title {
  font-size: 20px;
  color: var(--ink);
}

.checklist__list {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
}

.checklist__item {
  min-width: 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}

.checklist__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.checklist__copy {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .list-grid,
  .continue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc {
    position: static;
  }

  .toc__toggle {
    display: block;
  }

  .toc__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
  }

  .toc__list:not(.is-open) {
    display: none;
  }

  .toc__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
  }

  .toc .toc__link {
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding: 4px 0;
  }

  .toc .toc__link[aria-current='true'] {
    border-left: 0;
    border-bottom-color: var(--gold);
  }
}

@media (max-width: 900px) {
  .page-hero h1 {
    font-size: 32px;
  }

  .article-head h1 {
    font-size: 28px;
  }

  .subcat-grid,
  .checklist__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .list-grid,
  .continue-grid {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 26px;
  }
}

/* ------------------------------------------------------------------- 分页 */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
}

.pager__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.pager__link:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.pager__link[aria-current='page'] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.pager__gap {
  padding: 0 2px;
  font-size: 12.5px;
  color: var(--muted-2);
}
