/* =========================================================
   page-home — 首页专属样式
   ========================================================= */

.page-home {
  --hm-space: clamp(56px, 8vw, 116px);
  --hm-gap: clamp(18px, 2.4vw, 36px);
  --hm-rule: 1px solid var(--line);
  background-color: var(--ink-900);
  background-image: radial-gradient(rgba(42, 48, 56, 0.55) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: 0 0;
}

.page-home .section {
  padding-block: var(--hm-space);
}

.page-home .section + .section {
  border-top: var(--hm-rule);
}

/* ---------- 通用小件 ---------- */

.page-home .hm-breadcrumb {
  margin-bottom: clamp(20px, 3vw, 36px);
}

.page-home .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.page-home .section-head.hm-head {
  max-width: 68ch;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.page-home .hm-head .section-index {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
}

.page-home .hm-head .section-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-home .hm-lede {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(15.5px, 1.2vw, 17px);
  line-height: 1.8;
  color: var(--muted);
}

.page-home .media-caption.hm-caption {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .hm-inline-link {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.page-home .hm-inline-link:hover,
.page-home .hm-inline-link:focus-visible {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ---------- 首屏 ---------- */

.page-home .hm-hero {
  padding-top: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(44px, 6vw, 96px);
}

.page-home .hm-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hm-gap);
}

.page-home .hm-note-coord {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
}

.page-home .hm-note-line {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--white);
}

.page-home .hm-note-line.hm-note-dim {
  color: var(--muted);
  font-size: 12px;
}

.page-home .hm-kicker {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-home .hm-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--white);
}

.page-home .hm-hero-title::after {
  content: "";
  display: block;
  width: 76px;
  height: 6px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.page-home .hm-hero-sub {
  margin: 22px 0 0;
  max-width: 52ch;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.8;
  color: var(--white);
  opacity: 0.9;
}

/* 纵向内容目录 */

.page-home .hm-index {
  margin-top: clamp(30px, 4vw, 52px);
  border-top: var(--hm-rule);
}

.page-home .hm-index-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-index-link {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: var(--hm-rule);
  text-decoration: none;
  color: inherit;
}

.page-home .hm-index-num {
  display: block;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .hm-index-link:hover .hm-index-num,
.page-home .hm-index-link:focus-visible .hm-index-num {
  color: var(--blue);
  transform: translateX(4px);
}

.page-home .hm-index-text {
  display: block;
  min-width: 0;
}

.page-home .hm-index-title {
  display: block;
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  transition: color 0.2s var(--ease);
}

.page-home .hm-index-link:hover .hm-index-title {
  color: var(--blue);
}

.page-home .hm-index-desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* 首屏侧图 */

.page-home .hm-hero-aside {
  min-width: 0;
}

.page-home .hm-frame-tall {
  aspect-ratio: 3 / 4;
}

/* ---------- 四条产品线 ---------- */

.page-home .hm-lines-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: var(--hm-rule);
}

.page-home .hm-line {
  background: var(--ink-900);
  border-top: 2px solid transparent;
  padding: clamp(22px, 3vw, 40px);
  min-width: 0;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.page-home .hm-line:hover {
  border-top-color: var(--blue);
  background: var(--ink-800);
}

.page-home .hm-line-tag {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
}

.page-home .hm-line-name {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 2.2vw, 28px);
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-home .hm-line-desc {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .hm-line-points {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.page-home .hm-line-points li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--white);
  opacity: 0.86;
}

.page-home .hm-line-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--blue);
}

.page-home .hm-line-fit {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .hm-line-fit-label {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--blue);
}

.page-home .hm-line-link {
  display: inline-block;
  font-size: 13.5px;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .hm-line-link:hover,
.page-home .hm-line-link:focus-visible {
  color: var(--green);
  border-bottom-color: var(--green);
}

.page-home .hm-frame-inline {
  aspect-ratio: 16 / 9;
  margin-top: 22px;
}

/* ---------- 双端选择 ---------- */

.page-home .hm-dual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 52px);
  align-items: start;
}

.page-home .hm-dual-figure {
  min-width: 0;
}

.page-home .hm-frame-wide {
  aspect-ratio: 21 / 9;
}

.page-home .hm-dual-panel {
  min-width: 0;
  border: var(--hm-rule);
  background: var(--ink-800);
}

.page-home .hm-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
  border-bottom: var(--hm-rule);
}

.page-home .hm-tab-bar .tab-btn {
  flex: 1 1 auto;
  min-width: 96px;
  padding: 13px 14px;
  border: 0;
  background: var(--ink-800);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.page-home .hm-tab-bar .tab-btn[aria-selected="true"] {
  background: var(--ink-900);
  color: var(--blue);
  box-shadow: inset 0 -2px 0 0 var(--blue);
}

.page-home .hm-tab-bar .tab-btn:hover {
  color: var(--white);
}

.page-home .hm-tab-panel {
  padding: clamp(20px, 2.6vw, 32px);
}

.page-home .hm-tab-lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--white);
}

.page-home .hm-tab-spec {
  margin: 0;
}

.page-home .hm-tab-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 12px 0;
  border-top: var(--hm-rule);
}

.page-home .hm-tab-row dt {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-home .hm-tab-row dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--white);
}

/* ---------- 参数与误差区间 ---------- */

.page-home .hm-spec-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.page-home .hm-spec-table {
  min-width: 0;
  border: var(--hm-rule);
}

.page-home .hm-table-caption {
  caption-side: top;
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--ink-800);
  border-bottom: var(--hm-rule);
}

.page-home .hm-td-range {
  min-width: 120px;
}

.page-home .hm-band {
  display: block;
  position: relative;
  height: 4px;
  margin-top: 9px;
  background: var(--ink-700);
  border-radius: 2px;
  overflow: hidden;
}

.page-home .hm-band-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.page-home .hm-spec-aside {
  min-width: 0;
}

.page-home .hm-frame-square {
  aspect-ratio: 1 / 1;
}

.page-home .hm-legend {
  margin: 20px 0 0;
}

.page-home .hm-aside-note {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .hm-aside-note--dim {
  font-size: 12.5px;
  color: var(--muted);
  opacity: 0.8;
}

.page-home .hm-aside-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .hm-aside-link:hover,
.page-home .hm-aside-link:focus-visible {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ---------- 保修与售后 ---------- */

.page-home .hm-care-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: var(--hm-rule);
}

.page-home .hm-care-card {
  background: var(--ink-900);
  padding: clamp(22px, 2.8vw, 36px);
  min-width: 0;
}

.page-home .hm-care-big {
  margin: 0 0 8px;
  font-size: clamp(42px, 5.4vw, 66px);
  font-weight: 500;
  line-height: 1;
  color: var(--green);
}

.page-home .hm-care-unit {
  margin-left: 6px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .hm-care-name {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
}

.page-home .hm-care-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .hm-care-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 36px);
  margin-top: clamp(28px, 3.6vw, 48px);
  padding-top: clamp(22px, 3vw, 34px);
  border-top: var(--hm-rule);
}

.page-home .hm-care-note {
  margin: 0 0 10px;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .hm-care-foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

/* ---------- 资料修订与下载 ---------- */

.page-home .hm-release-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.page-home .hm-dl-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--hm-rule);
}

.page-home .hm-dl-item {
  border-bottom: var(--hm-rule);
}

.page-home .hm-dl-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.2s var(--ease), background-color 0.2s var(--ease);
}

.page-home .hm-dl-link:hover {
  padding-left: 8px;
}

.page-home .hm-dl-coord {
  display: inline-block;
  padding: 3px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.page-home .hm-dl-body {
  min-width: 0;
}

.page-home .hm-dl-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.page-home .hm-dl-meta {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--muted);
}

.page-home .hm-dl-go {
  font-size: 16px;
  color: var(--muted);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .hm-dl-link:hover .hm-dl-go {
  color: var(--orange);
  transform: translateX(4px);
}

.page-home .hm-release-aside {
  min-width: 0;
  border: var(--hm-rule);
  background: var(--ink-800);
  padding: clamp(20px, 2.6vw, 32px);
}

.page-home .hm-aside-label {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-home .hm-version-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .hm-version-list .copy-btn {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-900);
  font-size: 12.5px;
  color: var(--white);
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.page-home .hm-version-list .copy-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.page-home .hm-version-list .copy-btn[data-copied] {
  border-color: var(--green);
  color: var(--green);
}

.page-home .hm-aside-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* ---------- 响应式 ---------- */

@media (min-width: 700px) {
  .page-home .hm-tab-row {
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
  }

  .page-home .hm-care-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .hm-lines-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .page-home .hm-line {
    grid-column: span 7;
  }

  .page-home .hm-line:nth-child(even) {
    grid-column: span 5;
  }
}

@media (min-width: 960px) {
  .page-home .hm-hero-inner {
    grid-template-columns: minmax(0, 2fr) minmax(0, 6.2fr) minmax(0, 3.4fr);
    gap: clamp(24px, 3vw, 56px);
    align-items: start;
  }

  .page-home .hm-note {
    padding-right: clamp(16px, 2vw, 28px);
    border-right: var(--hm-rule);
  }

  .page-home .hm-dual-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-home .hm-spec-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-home .hm-release-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-home .hm-care-foot {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-home .hm-care-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .page-home .hm-hero-main {
    padding-right: clamp(0px, 1.5vw, 24px);
  }
}

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