/* ============================================================
   HTH 主站 · /assets/site.css
   夜巷墨绿 × 信号橙 · 城市街角坐标体系 · 共享外壳与基础组件
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 色彩 */
  --ink: #0B1F1A;          /* 夜巷墨绿 · 主背景 */
  --coal: #12161A;         /* 街面炭黑 · 次级背景 */
  --panel: #1F2E28;        /* 路牌灰绿 · 卡片 */
  --paper: #F4F1EA;        /* 暖白纸 · 反白底 */
  --orange: #FF6B1A;       /* 信号橙 · 唯一强强调 */
  --orange-soft: #FFA76B;  /* 浅信号橙 */
  --grass: #3FA34D;        /* 球场草绿 · 状态 */
  --mist: #8FA39B;         /* 雾灰绿 · 次级文字 */
  --line: #2E4A40;         /* 边线深绿 · 边框 */

  --on-paper: #12161A;
  --paper-82: rgba(244, 241, 234, 0.82);
  --paper-62: rgba(244, 241, 234, 0.62);
  --paper-40: rgba(244, 241, 234, 0.40);
  --paper-08: rgba(244, 241, 234, 0.08);
  --paper-04: rgba(244, 241, 234, 0.04);

  /* 字体 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  /* 字阶 */
  --fs-display-xl: clamp(48px, 9vw, 112px);
  --fs-display-l: clamp(38px, 6.4vw, 80px);
  --fs-display-m: clamp(30px, 4.4vw, 56px);
  --fs-display-s: clamp(24px, 3.2vw, 40px);
  --fs-body: 17px;
  --fs-mono: 14px;

  /* 尺寸 */
  --w-max: 1240px;
  --gutter: 24px;
  --radius: 2px;
  --header-h: 118px;

  /* 动效 */
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 260ms;
  --ease: ease-out;
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  font-weight: 400;
  color: var(--paper-82);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-stretch: condensed;
  color: var(--paper);
}

h1 { font-size: var(--fs-display-xl); }
h2 { font-size: var(--fs-display-l); }
h3 { font-size: var(--fs-display-m); }
h4 { font-size: var(--fs-display-s); }

p { max-width: 42ch; }

strong, b { font-weight: 700; color: var(--paper); }

::selection {
  background: var(--orange);
  color: #12161A;
}

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

/* ---------- 4. 栅格与容器 ---------- */
.hth-container {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hth-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px var(--gutter);
}

.hth-col-index { grid-column: 1 / span 5; }
.hth-col-main  { grid-column: 6 / span 7; }

.hth-section {
  padding-block: clamp(48px, 7vw, 96px);
  position: relative;
}

.hth-section--coal { background-color: var(--coal); }

.hth-section--paper {
  background-color: var(--paper);
  color: var(--on-paper);
}
.hth-section--paper h1,
.hth-section--paper h2,
.hth-section--paper h3,
.hth-section--paper h4,
.hth-section--paper strong { color: var(--on-paper); }
.hth-section--paper p { color: rgba(18, 22, 26, 0.78); }

.hth-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.hth-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 5. 头部 · 双层路标 ---------- */
.hth-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: var(--ink);
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}

.hth-skip {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background-color: var(--orange);
  color: #12161A;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top var(--dur-base) var(--ease);
}
.hth-skip:focus { top: 0; }

/* 上层：品牌说明 + 站点状态 */
.hth-topbar {
  background-color: rgba(11, 31, 26, 0.98);
  border-bottom: 1px solid rgba(46, 74, 64, 0.6);
}

.hth-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  min-height: 52px;
  padding-block: 8px;
}

.hth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hth-brand__mark {
  width: 11px;
  height: 11px;
  flex: none;
  background-color: var(--orange);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.14);
}

.hth-brand__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
  white-space: nowrap;
}

.hth-brand__tagline {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.hth-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
  max-width: none;
}

.hth-status__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.hth-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--grass);
  box-shadow: 0 0 0 3px rgba(63, 163, 77, 0.18);
  flex: none;
}

.hth-status__item--round { color: var(--paper-62); }

.hth-status__item--ver {
  color: var(--orange);
  border: 1px solid rgba(255, 107, 26, 0.4);
  border-radius: var(--radius);
  padding: 1px 7px;
}

/* 下层：栏目路标带 */
.hth-navbar {
  position: relative;
  background-color: var(--ink);
}

.hth-navbar__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.hth-nav {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.hth-nav__list {
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.hth-nav__item { display: flex; }

.hth-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 0 15px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--paper-62);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.hth-nav__link:hover {
  color: var(--paper);
  background-color: var(--paper-04);
}

.hth-nav__link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -4px;
}

.hth-nav__link[aria-current="page"] {
  color: var(--paper);
  font-weight: 700;
  border-bottom-color: var(--orange);
}

.hth-nav__pulse {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--orange);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.hth-nav__link[aria-current="page"] .hth-nav__pulse {
  opacity: 1;
  transform: scale(1);
  animation: hth-pulse 1.6s ease-in-out infinite;
}

@keyframes hth-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 26, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 107, 26, 0); }
}

.hth-cta {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  background-color: var(--orange);
  color: #12161A;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}
.hth-cta:hover { background-color: var(--orange-soft); }
.hth-cta:active { transform: translateY(1px); }

/* 移动端开关 */
.hth-nav-toggle {
  display: none;
  align-self: center;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease);
}
.hth-nav-toggle:hover { border-color: var(--orange-soft); }

.hth-nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  transition: background-color var(--dur-base) var(--ease);
}
.hth-nav-toggle__bars::before,
.hth-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--dur-base) var(--ease),
              top var(--dur-base) var(--ease);
}
.hth-nav-toggle__bars::before { top: -6px; }
.hth-nav-toggle__bars::after  { top: 6px; }

.hth-nav-toggle[aria-expanded="true"] .hth-nav-toggle__bars { background-color: transparent; }
.hth-nav-toggle[aria-expanded="true"] .hth-nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.hth-nav-toggle[aria-expanded="true"] .hth-nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

.hth-nav-toggle__text { line-height: 1; }

/* 滚动进度条 */
.hth-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background-color: rgba(46, 74, 64, 0.7);
}

.hth-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background-color: var(--orange);
  transition: width 120ms linear;
}

/* ---------- 6. 页脚 ---------- */
.hth-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
  color: var(--mist);
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 72px) 28px;
}

.hth-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(46, 74, 64, 0.38) 0,
    rgba(46, 74, 64, 0.38) 1px,
    transparent 1px,
    transparent 96px
  );
  opacity: 0.55;
}

.hth-footer > .hth-container { position: relative; z-index: 1; }

.hth-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.3fr;
  gap: 44px 32px;
}

.hth-footer__col { min-width: 0; }

.hth-footer__coord {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--orange);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 9px;
  margin-bottom: 16px;
}

.hth-footer__name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--paper);
  max-width: none;
}

.hth-footer__tagline {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
  max-width: 26ch;
}

.hth-footer__sync {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--paper-62);
  max-width: none;
}

.hth-sync-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--grass);
  box-shadow: 0 0 0 3px rgba(63, 163, 77, 0.16);
  animation: hth-sync-pulse 2.4s ease-in-out infinite;
}

@keyframes hth-sync-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(63, 163, 77, 0.45); }
  50%      { box-shadow: 0 0 0 7px rgba(63, 163, 77, 0); }
}

.hth-footer__heading {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.hth-footer__list {
  display: grid;
  gap: 4px;
}

.hth-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--mist);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.hth-footer__link::before {
  content: "";
  flex: none;
  width: 6px;
  height: 1px;
  background-color: currentColor;
  opacity: 0.6;
  transition: width var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease),
              opacity var(--dur-fast) var(--ease);
}

.hth-footer__link:hover { color: var(--orange); }
.hth-footer__link:hover::before {
  width: 14px;
  opacity: 1;
  background-color: var(--orange);
}

.hth-footer__contact {
  display: grid;
  gap: 12px;
}

.hth-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--mist);
  max-width: none;
  word-break: break-word;
}

.hth-footer__contact-label {
  flex: none;
  width: 34px;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--orange-soft);
}

.hth-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.hth-footer__legal,
.hth-footer__copy { max-width: none; }

.hth-footer__note {
  margin-top: 14px;
  max-width: 66ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(143, 163, 155, 0.85);
}

/* ---------- 7. 按钮 ---------- */
.hth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}

.hth-btn:hover {
  border-color: var(--orange-soft);
  color: var(--orange-soft);
}

.hth-btn--primary {
  background-color: var(--orange);
  border-color: var(--orange);
  color: #12161A;
}
.hth-btn--primary:hover {
  background-color: var(--orange-soft);
  border-color: var(--orange-soft);
  color: #12161A;
}

.hth-btn--ghost { border-color: rgba(244, 241, 234, 0.24); }

.hth-btn:active { transform: translateY(1px); }

.hth-section--paper .hth-btn {
  border-color: rgba(18, 22, 26, 0.22);
  color: var(--on-paper);
}
.hth-section--paper .hth-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.hth-section--paper .hth-btn--primary {
  border-color: var(--orange);
  background-color: var(--orange);
  color: #12161A;
}

/* ---------- 8. 面包屑 ---------- */
.hth-breadcrumb {
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--mist);
}

.hth-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.hth-breadcrumb__link {
  color: var(--mist);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.hth-breadcrumb__link:hover { color: var(--orange-soft); }

.hth-breadcrumb__sep {
  color: var(--line);
  user-select: none;
}

.hth-breadcrumb__current { color: var(--paper); }

/* ---------- 9. 正文容器 ---------- */
.hth-prose {
  max-width: 42em;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--paper-82);
}

.hth-prose > * + * { margin-top: 1.05em; }

.hth-prose p { max-width: 42ch; }

.hth-prose h2 {
  font-size: var(--fs-display-s);
  line-height: 1.25;
  margin-top: 2em;
}

.hth-prose h3 {
  font-size: 20px;
  line-height: 1.4;
  margin-top: 1.8em;
}

.hth-prose a {
  color: var(--orange-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.hth-prose a:hover { color: var(--orange); }

.hth-prose ul,
.hth-prose ol {
  padding-left: 1.1em;
  max-width: 42ch;
}
.hth-prose ul > li { list-style: none; position: relative; padding-left: 0.9em; }
.hth-prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 1px;
  background-color: var(--orange);
}
.hth-prose ol { list-style: decimal; }
.hth-prose ol > li::marker { color: var(--orange); font-family: var(--font-mono); }
.hth-prose li + li { margin-top: 0.4em; }

.hth-section--paper .hth-prose { color: rgba(18, 22, 26, 0.8); }
.hth-section--paper .hth-prose h2,
.hth-section--paper .hth-prose h3 { color: var(--on-paper); }
.hth-section--paper .hth-prose a { color: #C84C08; }

/* ---------- 10. 索引行 ---------- */
.hth-index-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hth-index-row__no {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.hth-index-row__text {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--paper-62);
}

.hth-section--paper .hth-index-row { border-color: rgba(18, 22, 26, 0.16); }
.hth-section--paper .hth-index-row__text { color: rgba(18, 22, 26, 0.66); }

/* ---------- 11. 面板 / 卡片 ---------- */
.hth-panel {
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.hth-panel--glass {
  background-color: rgba(31, 46, 40, 0.55);
  border-color: rgba(244, 241, 234, 0.10);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hth-section--paper .hth-panel {
  background-color: #FFFFFF;
  border-color: rgba(18, 22, 26, 0.12);
}

/* ---------- 12. 图片容器（页面阶段使用） ---------- */
.hth-media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--coal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hth-media img,
.hth-media video,
.hth-media svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hth-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(244, 241, 234, 0.035) 0,
    rgba(244, 241, 234, 0.035) 1px,
    transparent 1px,
    transparent 7px
  );
}

.hth-media--wide   { aspect-ratio: 21 / 9; }
.hth-media--square { aspect-ratio: 1 / 1; }
.hth-media--tall   { aspect-ratio: 3 / 4; }

.hth-media__coord {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--orange);
  background-color: rgba(11, 31, 26, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px 8px;
}

.hth-media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 26px 16px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--paper);
  background-image: linear-gradient(
    0deg,
    rgba(11, 31, 26, 0.94) 0%,
    rgba(11, 31, 26, 0) 100%
  );
}

/* ---------- 13. 标签 ---------- */
.hth-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mist);
  line-height: 1.7;
}

.hth-tag--hot {
  border-color: rgba(255, 107, 26, 0.5);
  color: var(--orange);
}

.hth-tag--ok {
  border-color: rgba(63, 163, 77, 0.5);
  color: var(--grass);
}

/* ---------- 14. 筛选组件 ---------- */
.hth-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hth-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--mist);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease);
}

.hth-filter__btn:hover {
  color: var(--paper);
  border-color: var(--orange-soft);
}

.hth-filter__btn[aria-pressed="true"] {
  color: var(--paper);
  border-color: var(--orange);
  background-color: rgba(255, 107, 26, 0.14);
}

.hth-filter__btn[aria-pressed="true"]::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background-color: var(--orange);
}

.hth-filter__count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
  max-width: none;
}

.hth-filter__count strong {
  color: var(--orange);
  font-weight: 500;
}

.hth-filter__empty {
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
  max-width: 56ch;
}

.hth-filter__empty a {
  color: var(--orange-soft);
  text-underline-offset: 3px;
}

[data-filter-item][hidden] { display: none !important; }

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1080px) {
  .hth-nav__link { padding: 0 11px; font-size: 14.5px; }
  .hth-footer__grid { grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr; gap: 36px 26px; }
}

@media (max-width: 960px) {
  :root { --gutter: 22px; }

  .hth-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 20px; }
  .hth-col-index,
  .hth-col-main { grid-column: 1 / -1; }

  .hth-brand__tagline { display: none; }

  .hth-nav-toggle { display: inline-flex; }

  .hth-navbar__inner { min-height: 60px; }

  .hth-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 40;
    padding: 6px var(--gutter) 16px;
    background-color: var(--coal);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55);
  }

  .hth-nav[data-open] { display: block; }

  .hth-nav__list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .hth-nav__item { width: 100%; }

  .hth-nav__link {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    font-size: 16px;
    border-bottom: 1px solid rgba(46, 74, 64, 0.5);
    border-left: 3px solid transparent;
  }

  .hth-nav__link[aria-current="page"] {
    border-bottom-color: rgba(46, 74, 64, 0.5);
    border-left-color: var(--orange);
    background-color: rgba(255, 107, 26, 0.08);
  }

  .hth-cta { min-height: 38px; padding: 0 14px; font-size: 13px; }

  .hth-footer__grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .hth-footer__col:first-child { grid-column: 1 / -1; }

  .hth-footer__base { margin-top: 34px; }
}

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
    --fs-body: 16.5px;
  }

  html { scroll-padding-top: 112px; }

  .hth-topbar__inner { min-height: 46px; padding-block: 7px; }
  .hth-status { font-size: 11px; gap: 4px 12px; }
  .hth-status__item--round { display: none; }

  .hth-navbar__inner { min-height: 56px; gap: 12px; }
  .hth-nav__link { min-height: 50px; }

  .hth-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .hth-footer__col:first-child { grid-column: auto; }
  .hth-footer__tagline { max-width: none; }
  .hth-footer__base { flex-direction: column; align-items: flex-start; }

  .hth-panel { padding: 18px; }
  .hth-filter__btn { padding: 0 13px; font-size: 13.5px; }
}

@media (max-width: 420px) {
  .hth-brand__name { font-size: 15px; }
  .hth-cta { padding: 0 11px; font-size: 12.5px; }
  .hth-nav-toggle { padding: 0 11px; }
  .hth-nav-toggle__text { display: none; }
}

/* ---------- 16. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hth-nav__link[aria-current="page"] .hth-nav__pulse {
    animation: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.35);
  }

  .hth-sync-dot {
    animation: none;
    box-shadow: 0 0 0 3px rgba(63, 163, 77, 0.28);
  }

  .hth-progress__bar { transition: none; }
  .hth-cta:active,
  .hth-btn:active { transform: none; }
}
