/* components.css — 首页模块组件（hero / 品类索引 / 代表条目 / 判断线 / 对照表 / 场景 / FAQ / 收录说明） */

/* ------------------------------------------------------------- M1 hero */
.hero {
  position: relative;
  height: 356px;
  overflow: hidden;
  background: var(--dark);
  color: var(--ink-invert);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 42%;
  opacity: .92;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(11, 24, 38, .96) 0%, rgba(12, 26, 41, .9) 38%, rgba(14, 30, 47, .5) 62%, rgba(16, 33, 51, .28) 100%),
    linear-gradient(to top, rgba(10, 22, 35, .62), rgba(10, 22, 35, 0) 46%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 24px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  color: rgba(196, 218, 244, .88);
}
.hero-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(196, 218, 244, .6);
}
.hero h1 {
  margin-top: 14px;
  font-size: var(--fs-h1);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -.015em;
  color: #fff;
  max-width: 620px;
}
.hero-lead {
  margin-top: 14px;
  max-width: 820px;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(226, 237, 250, .82);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  border: 1px solid rgba(226, 238, 252, .38);
  color: rgba(240, 247, 255, .95);
}
.btn-ghost:hover { border-color: rgba(240, 247, 255, .8); background: rgba(240, 247, 255, .08); }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 22px;
  font-size: var(--fs-sm);
  color: rgba(214, 229, 246, .76);
}
.hero-stats > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-right: 22px;
  margin-right: 22px;
  border-right: 1px solid rgba(214, 229, 246, .22);
}
.hero-stats > div:last-child { border-right: 0; padding-right: 0; margin-right: 0; }
.hero-stats b {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 21px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.02em;
}

/* --------------------------------------------------- M2 品类索引（8 列） */
.cat-band {
  background: var(--band);
  border-top: 1px solid rgba(31, 111, 224, .06);
  border-bottom: 1px solid rgba(31, 111, 224, .08);
  padding: 16px 0 12px;
}
.cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 10px;
}
.cat-head h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.cat-head p {
  margin-top: 3px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 8px 8px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .0);
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.cat-card:hover,
.cat-card:focus-visible {
  background: #fff;
  border-color: rgba(31, 111, 224, .16);
  transform: translateY(-2px);
}
.cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(18, 38, 58, .07);
}
.cat-icon svg { width: 19px; height: 19px; }
.cat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 5px;
}
.cat-name svg { width: 12px; height: 12px; color: var(--ink-3); }
.cat-desc {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------- M3 三条代表条目 */
.pick { padding: 26px 0 82px; background: var(--bg); }
.pick-head { margin-bottom: 18px; }
.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
}
.pick-card {
  display: grid;
  grid-template-columns: 186px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.pick-thumb {
  position: relative;
  width: 186px;
  aspect-ratio: 186 / 133;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--band);
}
.pick-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pick-body { min-width: 0; display: block; }
.pick-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.4;
}
.pick-name:hover { color: var(--accent-dark); }
.pick-desc {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-3);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.tags:last-child { margin-bottom: 0; }
.tag {
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11.5px;
  font-weight: 600;
}
.tag.muted { background: var(--surface-alt); color: var(--ink-3); }
.pick-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-dark);
}
.pick-link svg { width: 12px; height: 12px; }

/* --------------------------------------------------- M4 选购四条判断线 */
.principles {
  background: var(--band);
  padding: 7px 0 7px;
}
.prin-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 8px;
}
.prin-head h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.prin-head p { font-size: var(--fs-sm); color: var(--ink-3); }
.prin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.prin-item { position: relative; }
.prin-num {
  display: block;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .08em;
  margin-bottom: 2px;
}
.prin-item h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.prin-item p {
  font-size: 10.5px;
  line-height: 1.42;
  color: var(--ink-3);
}

/* --------------------------------------------------- M5 心率对照表 */
.sensor { padding: 16px 0 12px; background: var(--bg); }
.sensor-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 9px;
}
.sensor-head h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.sensor-head p { font-size: var(--fs-sm); color: var(--ink-3); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.data-table thead th {
  text-align: left;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink-3);
  background: var(--band);
  border-bottom: 1px solid rgba(31, 111, 224, .14);
}
.data-table thead th:first-child { border-radius: var(--r-sm) 0 0 0; }
.data-table thead th:last-child { border-radius: 0 var(--r-sm) 0 0; }
.data-table tbody th {
  text-align: left;
  padding: 6px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 6px 16px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(31, 111, 224, .035); }

/* --------------------------------------------------- M6 场景 → 设备 */
.scene { padding: 27px 0 22px; background: var(--bg); }
.scene-head { margin-bottom: 15px; }
.scene-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.scene-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.scene-thumb {
  aspect-ratio: 262 / 114;
  overflow: hidden;
  background: var(--band);
}
.scene-thumb img { width: 100%; height: 100%; object-fit: cover; }
.scene-body { padding: 9px 12px 10px; }
.scene-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}
.scene-row {
  font-size: 11.2px;
  line-height: 1.5;
  color: var(--ink-2);
}
.scene-row + .scene-row { margin-top: 5px; }
.scene-row b { color: var(--accent-dark); font-weight: 600; }
.scene-row span { color: var(--ink-3); }

/* --------------------------------------------------- M7 常见问题 */
.faq { padding: 17px 0 13px; background: var(--band); }
.faq-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 44px;
}
.faq-item {
  border-bottom: 1px solid rgba(31, 111, 224, .13);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 11px 2px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--ink-3);
  transition: transform .2s ease;
}
.faq-item[open] .faq-q svg { transform: rotate(90deg); color: var(--accent); }
.faq-q:hover { color: var(--accent-dark); }
.faq-a {
  padding: 0 24px 12px 2px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* --------------------------------------------------- M8 收录说明 */
.note { padding: 17px 0 13px; background: var(--bg); }
.note-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 0 56px;
  align-items: start;
}
.note-main { grid-column: 1; grid-row: 1; }
.note-list { grid-column: 2; grid-row: 1 / 3; }
.note h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.note-lead {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
}
.note-lead + .note-lead { margin-top: 6px; color: var(--ink-3); }
.note-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.note-list li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--ink-3);
}
.note-list li:last-child { border-bottom: 0; }
.note-list b {
  flex: none;
  width: 60px;
  font-weight: 700;
  color: var(--ink);
  font-size: 11.5px;
}
.note-cta {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
}
.note-cta svg { width: 13px; height: 13px; }

/* ------------------------------------------------------------- 响应式 */
@media (max-width: 1240px) {
  .pick-grid { gap: 28px; }
  .pick-card { grid-template-columns: 148px minmax(0, 1fr); gap: 14px; }
  .pick-thumb { width: 148px; aspect-ratio: 148 / 116; }
  .prin-grid { gap: 24px; }
  .scene-grid { gap: 10px; }
}
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 6px; }
  .hero { height: auto; }
  .hero-inner { padding-top: 46px; padding-bottom: 46px; }
  .prin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
  .scene-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pick-grid { grid-template-columns: 1fr; gap: 18px; }
  .pick-card {
    grid-template-columns: 176px minmax(0, 1fr);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }
  .note-inner { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 780px) {
  .hero { height: auto; }
  .hero h1 { max-width: none; }
  .hero-lead { font-size: 14px; }
  .hero-stats { flex-wrap: wrap; gap: 10px 0; }
  .hero-stats > div { padding-right: 14px; margin-right: 14px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-card { padding: 8px; }
  .pick { padding: 22px 0; }
  .pick-card { grid-template-columns: 1fr; }
  .pick-thumb { width: 100%; aspect-ratio: 16 / 10; }
  .prin-grid { grid-template-columns: 1fr; gap: 16px; }
  .prin-head, .sensor-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .scene-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
  .data-table { font-size: 12px; }
  .data-table thead th, .data-table tbody th, .data-table tbody td { padding: 8px 10px; }
  .note-list b { width: 58px; }
}
@media (max-width: 560px) {
  .scene-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-wrap: wrap; }
  .btn { height: 40px; padding: 0 16px; }
  .hero-stats b { font-size: 18px; }
  .data-table thead th:nth-child(2), .data-table tbody td:nth-child(2) { display: none; }
}

/* ==========================================================================
   内页组件（分类列表页 / 详情页） — 只消费 tokens.css 的语义变量
   ========================================================================== */

/* ------------------------------------------------------------- 面包屑 */
.breadcrumb {
  padding: 16px 0 0;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 7px; }
.breadcrumb li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transform: rotate(-45deg);
}
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------- 页面头 */
.page-hero {
  padding: 18px 0 20px;
  background: var(--band);
  border-bottom: 1px solid rgba(31, 111, 224, .1);
}
.page-hero .breadcrumb { padding: 0 0 12px; }
.page-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.page-title {
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
}
.page-lead {
  margin-top: 10px;
  max-width: 720px;
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--ink-2);
}
.page-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.page-meta b { color: var(--ink); font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 15px; }
.page-count {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.page-count b {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 26px;
  line-height: 1;
  font-weight: 600;
  color: var(--ink);
}
.page-count span { font-size: 11.5px; color: var(--ink-3); }

/* ------------------------------------------------------------- 工具条 */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
}
.filter-groups { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-3);
  margin-right: 2px;
}
.chip {
  height: 28px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink-2);
  transition: border-color .14s ease, color .14s ease, background .14s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.toolbar-right { display: flex; align-items: center; gap: 14px; }
.result-count { font-size: 12.5px; color: var(--ink-3); }
.result-count b { color: var(--ink); font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; }
.sort-wrap { display: flex; align-items: center; gap: 7px; }
.sort-select {
  height: 30px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink-2);
}
.sort-select:hover { border-color: var(--accent); }

/* --------------------------------------------------------- 列表栅格 */
.list-sec { padding: 20px 0 26px; }
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 24px;
}
.list-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.list-card:hover {
  border-color: rgba(31, 111, 224, .34);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.list-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--band); }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.list-name {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -.01em;
}
.list-card:hover .list-name { color: var(--accent-dark); }
.list-desc-text {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-3);
  flex: 1;
}
.list-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.list-go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
}
.list-go svg { width: 12px; height: 12px; }
.empty-state {
  margin: 26px 0 6px;
  padding: 26px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

/* ------------------------------------------------------- 列表说明 */
.list-desc {
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}
.list-desc h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.list-desc-body { max-width: 820px; }
.list-desc-body p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}
.list-desc-body p + p { margin-top: 12px; }

/* ------------------------------------------------------- 品类入口条 */
.cat-links {
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
}
.cat-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.cat-links h2 { font-size: var(--fs-xs); letter-spacing: .1em; color: var(--ink-3); font-weight: 600; }

/* --------------------------------------------------------- 详情页头 */
.article-head {
  padding: 18px 0 20px;
  background: var(--band);
  border-bottom: 1px solid rgba(31, 111, 224, .1);
}
.article-head .breadcrumb { padding: 0 0 12px; }
.article-title {
  max-width: 900px;
  font-size: 36px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.article-subtitle {
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink-2);
}
.article-lead {
  margin-top: 12px;
  max-width: 780px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 14px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.article-meta .tag { font-size: 11.5px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* --------------------------------------------------------- 文章布局 */
.article-layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 48px;
  padding: 26px 0 30px;
  align-items: start;
}
.article-toc {
  position: sticky;
  top: calc(var(--hdr-h) + 14px);
  font-size: 12.5px;
}
.toc-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink-3);
  text-align: left;
}
.toc-toggle-icon { display: none; width: 14px; height: 14px; }
.article-toc ol { display: flex; flex-direction: column; gap: 2px; }
.article-toc a {
  display: block;
  padding: 5px 8px;
  border-left: 2px solid transparent;
  color: var(--ink-3);
  line-height: 1.5;
}
.article-toc a:hover { color: var(--accent-dark); background: var(--accent-tint); }
.article-toc a.is-active {
  border-left-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
  background: var(--accent-tint);
}
.article { max-width: 720px; }
.article > p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}
.article h2 {
  margin: 26px 0 10px;
  font-size: 23px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  scroll-margin-top: calc(var(--hdr-h) + 18px);
}
.article h2:first-of-type { margin-top: 6px; }
.article p + p { margin-top: 12px; }
.article p { font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.article .data-table { margin: 16px 0 4px; }
.article-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-3);
}

/* ----------------------------------------------------- 详情页 FAQ */
.detail-faq { margin-top: 34px; padding-top: 6px; border-top: 1px solid var(--line); }
.detail-faq h2 { font-size: 22px; }
.detail-faq h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 6px;
}
.detail-faq p { font-size: 14px; line-height: 1.8; color: var(--ink-2); }

/* ----------------------------------------------------- 相关条目 */
.related {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
}
.related h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.related-list { display: flex; flex-direction: column; gap: 10px; }
.related-list li { border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.related-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.related-list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.related-list a:hover { color: var(--accent-dark); }
.related-list a svg { width: 12px; height: 12px; color: var(--accent); flex: none; }
.related-list p { margin-top: 4px; font-size: 12.5px; line-height: 1.65; color: var(--ink-3); }

/* ------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
  .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; gap: 18px; }
  .article-toc {
    position: static;
    padding: 10px 12px;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
  }
  .toc-title { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; cursor: pointer; }
  .toc-toggle-icon { display: block; transition: transform .2s ease; }
  .article-toc.is-open .toc-toggle-icon { transform: rotate(180deg); }
  .article-toc ol { display: none; padding-top: 8px; }
  .article-toc.is-open ol { display: flex; }
  .article { max-width: none; }
  .related { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 780px) {
  .page-title { font-size: 26px; }
  .article-title { font-size: 27px; }
  .page-hero-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-count { flex-direction: row; align-items: baseline; gap: 6px; padding: 6px 12px; }
  .page-count b { font-size: 18px; }
  .list-grid { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .filter-groups { gap: 10px 18px; }
  .article h2 { font-size: 20px; margin-top: 22px; }
  .article > p, .article p { font-size: 14.5px; }
  .list-desc-body p { font-size: 13.5px; }
}

/* 分类页页头：标题与计数同行 */
.title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

/* 列表项外壳：li 只做网格单元，卡片本体是 article */
.list-item { display: flex; }
.list-item > .list-card { width: 100%; }

/* 正文配图：分节内穿插，宽度跟随正文栏 */
.article-figure {
  margin: 18px 0 6px;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--band);
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* 分页 */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 26px 0 4px;
  font-size: 13px;
}
.pager-nums { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pager a,
.pager-cur,
.pager-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  background: var(--surface);
}
.pager a:hover { border-color: var(--accent); color: var(--accent-dark); }
.pager-cur {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.pager-gap { border-color: transparent; background: none; color: var(--ink-3); }
.pager-btn { font-weight: 600; }

@media (max-width: 780px) {
  .article-figure img { aspect-ratio: 4/3; }
  .pager { margin-top: 20px; gap: 6px; }
  .pager a, .pager-cur, .pager-gap { min-width: 28px; height: 28px; padding: 0 7px; }
}
