.page-home {
  --home-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --home-hover: 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --home-tint: color-mix(in srgb, var(--color-primary-soft) 62%, var(--color-surface));
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  padding: var(--space-6) 0 var(--space-8);
  border-bottom: var(--border-thin) solid var(--color-line);
  background:
    linear-gradient(180deg, var(--home-tint) 0%, var(--color-surface) 78%);
  overflow: hidden;
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

@media (min-width: 960px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: var(--space-6);
    align-items: stretch;
  }
}

.page-home .home-hero__main {
  position: relative;
  padding-top: var(--space-3);
}

.page-home .home-hero__main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 3px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
}

.page-home .home-hero__title {
  margin: var(--space-3) 0 0;
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  max-width: 16ch;
}

.page-home .home-hero__lede {
  margin-top: var(--space-3);
  max-width: 58ch;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.page-home .home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2) var(--space-3);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 680px) {
  .page-home .home-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .home-stat {
  padding-top: var(--space-1);
  border-top: var(--border-thin) solid var(--color-line);
}

.page-home .home-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-accent);
}

.page-home .home-stat__label {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* ---------- 首屏右侧索引卡 ---------- */
.page-home .home-index {
  display: flex;
  flex-direction: column;
  border: var(--border-thin) solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.page-home .home-index__media {
  border-bottom: var(--border-thin) solid var(--color-line);
  background: var(--color-surface-deep);
}

.page-home .home-index__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 520;
  object-fit: cover;
}

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

.page-home .home-index__item + .home-index__item {
  border-top: var(--border-thin) solid var(--color-line);
}

.page-home .home-index__item a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2);
  align-items: baseline;
  padding: var(--space-2) var(--space-3);
  color: inherit;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: border-color var(--home-hover), background-color var(--home-hover), box-shadow var(--home-hover);
}

.page-home .home-index__item a:hover,
.page-home .home-index__item a:focus-visible {
  border-left-color: var(--color-primary);
  background: var(--color-primary-soft);
  box-shadow: var(--shadow-1);
}

.page-home .home-index__no {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}

.page-home .home-index__text {
  display: block;
}

.page-home .home-index__text strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.35;
}

.page-home .home-index__text em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  line-height: 1.5;
}

/* ---------- 重点栏目导览 ---------- */
.page-home .home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-4);
}

@media (min-width: 780px) {
  .page-home .home-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.page-home .home-col-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  border: var(--border-thin) solid var(--color-line);
  border-left-width: 3px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
  transition: border-color var(--home-hover), transform var(--home-hover), box-shadow var(--home-hover);
}

.page-home .home-col-card[data-key="p"] { border-left-color: var(--color-primary); }
.page-home .home-col-card[data-key="r"] { border-left-color: var(--color-accent); }
.page-home .home-col-card[data-key="s"] { border-left-color: var(--color-contrast-surface); }

.page-home .home-col-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.page-home .home-col-card__media {
  margin: calc(var(--space-3) * -1) calc(var(--space-3) * -1) var(--space-3);
  border-bottom: var(--border-thin) solid var(--color-line);
  background: var(--color-surface-deep);
}

.page-home .home-col-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 360;
  object-fit: cover;
}

.page-home .home-col-card__code {
  margin: 0 0 var(--space-1);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-ink-muted);
}

.page-home .home-col-card__title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-ink);
}

.page-home .home-col-card__lede {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-ink-soft);
}

.page-home .home-col-card__list {
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-1);
}

.page-home .home-col-card__list li {
  position: relative;
  padding-left: 14px;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.page-home .home-col-card__list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--color-line);
}

.page-home .home-col-card__link {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: var(--border-thin) solid transparent;
  align-self: flex-start;
}

.page-home .home-col-card__link:hover,
.page-home .home-col-card__link:focus-visible {
  border-bottom-color: var(--color-primary);
}

/* ---------- 三步上手 ---------- */
.page-home .home-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}

@media (min-width: 960px) {
  .page-home .home-steps {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-6);
    align-items: start;
  }
}

.page-home .home-steps__figure {
  margin: 0;
  border: var(--border-thin) solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface-deep);
  padding: var(--space-2);
}

.page-home .home-steps__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 450;
  object-fit: cover;
  border: var(--border-thin) solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.page-home .home-steps__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.page-home .home-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: var(--border-thin) solid var(--color-line);
}

.page-home .home-step:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .home-step__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  min-width: 2.4em;
}

.page-home .home-step__title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-ink);
}

.page-home .home-step__body p {
  margin: var(--space-1) 0 0;
  font-size: var(--text-sm);
  line-height: 1.66;
  color: var(--color-ink-soft);
}

.page-home .home-step__done {
  display: inline-block;
  padding: 3px var(--space-1);
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  color: var(--color-primary) !important;
  font-size: var(--text-xs) !important;
  font-weight: 700;
}

/* ---------- 定价速览 ---------- */
.page-home .home-pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (min-width: 960px) {
  .page-home .home-pricing {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-6);
    align-items: start;
  }
}

.page-home .home-pricing__panel {
  border: var(--border-thin) solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-3);
  box-shadow: var(--shadow-1);
}

.page-home .home-pricing__panel .tabs {
  margin-bottom: var(--space-3);
}

.page-home .home-pricing__sub {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-ink);
}

.page-home .home-pricing__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.page-home .home-pricing__list li {
  padding-left: var(--space-2);
  border-left: 3px solid var(--color-highlight);
  font-size: var(--text-sm);
  line-height: 1.66;
  color: var(--color-ink-soft);
}

.page-home .home-pricing__k {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 2px;
}

.page-home .home-pricing__note {
  margin: var(--space-3) 0 0;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-highlight);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-ink);
}

.page-home .home-pricing__link {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: var(--border-thin) solid var(--color-primary);
}

.page-home .home-pricing__figure {
  margin: 0;
  padding: var(--space-2);
  border: var(--border-thin) solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
}

.page-home .home-pricing__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 400;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ---------- 反馈与资料（唯一深色块） ---------- */
.page-home .home-feedback {
  margin-top: var(--section-y);
  padding: var(--space-8) 0;
  background: var(--color-contrast-surface);
  color: var(--color-contrast-ink);
}

.page-home .home-feedback__eyebrow {
  color: var(--color-contrast-accent);
}

.page-home .home-feedback__eyebrow .eyebrow-index {
  border-color: var(--color-contrast-line);
  color: var(--color-contrast-ink);
}

.page-home .home-feedback__title {
  margin: var(--space-2) 0 0;
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--color-contrast-ink);
  max-width: 26ch;
}

.page-home .home-feedback__lede {
  margin: var(--space-2) 0 0;
  max-width: 62ch;
  font-size: var(--text-base);
  line-height: 1.66;
  color: color-mix(in srgb, var(--color-contrast-ink) 78%, var(--color-contrast-surface));
}

.page-home .home-feedback__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (min-width: 860px) {
  .page-home .home-feedback__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

.page-home .home-feedback__block {
  padding: var(--space-3);
  border: var(--border-thin) solid var(--color-contrast-line);
  border-radius: var(--radius-md);
}

.page-home .home-feedback__sub {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-contrast-ink);
}

.page-home .home-feedback__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.page-home .home-feedback__list li {
  font-size: var(--text-sm);
  line-height: 1.66;
  color: color-mix(in srgb, var(--color-contrast-ink) 82%, var(--color-contrast-surface));
}

.page-home .home-feedback__code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-contrast-accent);
  margin-right: var(--space-1);
}

.page-home .home-feedback__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.page-home .home-feedback__steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.66;
  color: color-mix(in srgb, var(--color-contrast-ink) 82%, var(--color-contrast-surface));
}

.page-home .home-feedback__step-no {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-contrast-accent);
}

.page-home .home-feedback__link {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-contrast-accent);
  text-decoration: none;
  border-bottom: var(--border-thin) solid var(--color-contrast-accent);
}

.page-home .home-feedback__note {
  margin: var(--space-3) 0 0;
  font-size: var(--text-xs);
  line-height: 1.7;
  color: color-mix(in srgb, var(--color-contrast-ink) 62%, var(--color-contrast-surface));
}

.page-home .home-copy {
  padding: 0 4px;
  border: 0;
  border-bottom: var(--border-thin) dashed var(--color-contrast-accent);
  background: transparent;
  color: var(--color-contrast-accent);
  font-family: var(--font-mono);
  font-size: inherit;
  cursor: pointer;
}

.page-home .home-copy:hover,
.page-home .home-copy:focus-visible {
  border-bottom-style: solid;
}

.page-home .home-copy[data-copied="true"]::after {
  content: " · 已复制";
  font-family: var(--font-body);
  font-size: var(--text-xs);
}

/* ---------- 批次与索引刻度 ---------- */
.page-home .home-scale {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--border-thin) solid var(--color-line);
}

.page-home .home-scale__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) var(--space-6) auto;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: var(--border-thin) solid var(--color-line);
}

@media (min-width: 720px) {
  .page-home .home-scale__row {
    grid-template-columns: auto minmax(0, 14ch) minmax(0, 1fr) auto;
    gap: var(--space-3);
  }
}

.page-home .home-scale__no {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-ink-muted);
}

.page-home .home-scale__name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-ink);
}

.page-home .home-scale__bar {
  display: block;
  height: 6px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-deep);
  overflow: hidden;
}

.page-home .home-scale__bar > span {
  display: block;
  height: 100%;
  background: var(--color-primary);
}

.page-home .home-scale__row:nth-child(1) .home-scale__bar > span { width: 22%; }
.page-home .home-scale__row:nth-child(2) .home-scale__bar > span { width: 28%; background: var(--color-accent); }
.page-home .home-scale__row:nth-child(3) .home-scale__bar > span { width: 24%; }
.page-home .home-scale__row:nth-child(4) .home-scale__bar > span { width: 13%; }
.page-home .home-scale__row:nth-child(5) .home-scale__bar > span { width: 13%; }

.page-home .home-scale__count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-ink);
  text-align: right;
}

.page-home .home-cadence {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (min-width: 860px) {
  .page-home .home-cadence {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: var(--space-6);
  }
}

.page-home .home-cadence__block p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-ink-soft);
  max-width: 58ch;
}

.page-home .home-cadence__title {
  margin: 0 0 var(--space-2);
  padding-top: var(--space-2);
  border-top: 3px solid var(--color-primary);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-ink);
}

.page-home .home-cadence__codes {
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1);
}

@media (min-width: 560px) {
  .page-home .home-cadence__codes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-home .home-cadence__codes li {
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.page-home .home-cadence__codes .num {
  display: inline-block;
  min-width: 4.2em;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--color-primary);
}

.page-home .home-cadence__links {
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.page-home .home-cadence__links a {
  display: block;
  padding: var(--space-2);
  border: var(--border-thin) solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-ink-soft);
  text-decoration: none;
  transition: border-color var(--home-hover), background-color var(--home-hover);
}

.page-home .home-cadence__links a:hover,
.page-home .home-cadence__links a:focus-visible {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.page-home .home-cadence__links .num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-accent);
  margin-right: var(--space-1);
}

.page-home .home-cadence__note {
  margin-top: var(--space-3) !important;
  font-size: var(--text-xs) !important;
  color: var(--color-ink-muted) !important;
}

.page-home .home-cadence__note a {
  color: var(--color-primary);
  font-weight: 700;
}

/* ---------- 焦点可见性 ---------- */
.page-home a:focus-visible,
.page-home button:focus-visible,
.page-home .tab:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* ---------- 窄屏兜底 ---------- */
@media (max-width: 599px) {
  .page-home .home-hero__title {
    max-width: none;
  }

  .page-home .home-step__num {
    font-size: var(--text-2xl);
    min-width: 2em;
  }

  .page-home .home-scale__row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .page-home .home-scale__bar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-col-card,
  .page-home .home-index__item a,
  .page-home .home-cadence__links a {
    transition: none;
  }

  .page-home .home-col-card:hover {
    transform: none;
  }
}
