.page-home {
  --home-gap: clamp(52px, 8vw, 96px);
  --home-line: 1px solid var(--line);
  padding-bottom: clamp(48px, 7vw, 84px);
  color: var(--snow);
}

/* ---------- 页面上下文 ---------- */
.page-home .home-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mist);
}
.page-home .ctx-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.page-home .ctx-meta {
  margin: 0;
  color: var(--mint-deep);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px 0 var(--home-gap);
  border-bottom: var(--home-line);
}
.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: -8% -18% auto;
  height: 132%;
  z-index: -1;
  background-image:
    repeating-linear-gradient(to right, rgba(19, 38, 61, 0.75) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(to bottom, rgba(19, 38, 61, 0.75) 0 1px, transparent 1px 78px);
  -webkit-mask-image: radial-gradient(120% 95% at 18% 0%, #000 18%, transparent 76%);
  mask-image: radial-gradient(120% 95% at 18% 0%, #000 18%, transparent 76%);
  opacity: 0.6;
}
.page-home .home-hero::after {
  content: "";
  position: absolute;
  right: -14%;
  top: -20%;
  width: min(620px, 72vw);
  aspect-ratio: 1;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, rgba(0, 245, 200, 0.15), transparent 68%);
}

.page-home .hero-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

.page-home .hero-rail {
  display: grid;
  gap: 16px;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--mint);
}
.page-home .hero-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--mint);
  text-transform: uppercase;
}
.page-home .hero-rail h1 {
  margin: 0;
  font-size: clamp(30px, 6.6vw, 54px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-home .hero-lede {
  margin: 0;
  max-width: 56ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--mist);
}
.page-home .hero-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
}
.page-home .hero-keys {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border-top: var(--home-line);
}
.page-home .hero-keys li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: var(--home-line);
  font-size: 14px;
}
.page-home .k-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mint);
}
.page-home .hero-keys a {
  color: var(--snow);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.page-home .hero-keys a:hover,
.page-home .hero-keys a:focus-visible {
  color: var(--mint);
  border-bottom-color: var(--mint);
}

.page-home .hero-feed {
  position: relative;
  padding: 14px;
  border: var(--home-line);
  background: linear-gradient(180deg, rgba(12, 27, 46, 0.96), rgba(7, 17, 31, 0.92));
}
.page-home .hero-figure {
  position: relative;
  margin: 0 0 16px;
  overflow: hidden;
}
.page-home .hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.06);
}
.page-home .hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(7, 17, 31, 0.94));
}
.page-home .hero-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .feed-wrap {
  position: relative;
}
.page-home .feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.page-home .feed-head h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.page-home .feed-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.page-home .feed-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.page-home .feed-chips label {
  display: inline-block;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--mist);
  border: var(--home-line);
  background: rgba(19, 38, 61, 0.45);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.page-home .feed-chips label:hover {
  color: var(--snow);
  border-color: var(--mint-deep);
}
.page-home .feed-wrap:has(.feed-radio:focus-visible) .feed-chips {
  outline: 2px solid var(--mint);
  outline-offset: 5px;
}
.page-home #feed-all:checked ~ .feed-chips label[for="feed-all"],
.page-home #feed-ball:checked ~ .feed-chips label[for="feed-ball"],
.page-home #feed-foot:checked ~ .feed-chips label[for="feed-foot"],
.page-home #feed-bad:checked ~ .feed-chips label[for="feed-bad"],
.page-home #feed-run:checked ~ .feed-chips label[for="feed-run"],
.page-home #feed-mix:checked ~ .feed-chips label[for="feed-mix"] {
  color: var(--ink);
  background: var(--mint);
  border-color: var(--mint);
}
.page-home .feed-wrap:has(#feed-ball:checked) .feed-list > li:not(.c-ball),
.page-home .feed-wrap:has(#feed-foot:checked) .feed-list > li:not(.c-foot),
.page-home .feed-wrap:has(#feed-bad:checked) .feed-list > li:not(.c-bad),
.page-home .feed-wrap:has(#feed-run:checked) .feed-list > li:not(.c-run),
.page-home .feed-wrap:has(#feed-mix:checked) .feed-list > li:not(.c-mix) {
  display: none;
}

.page-home .feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.page-home .feed-list li {
  border-top: var(--home-line);
}
.page-home .feed-list li:first-child {
  border-top: 0;
}
.page-home .feed-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 13px 6px;
  color: var(--snow);
  text-decoration: none;
  transition: background 0.18s var(--ease);
}
.page-home .feed-list a:hover,
.page-home .feed-list a:focus-visible {
  background: rgba(0, 245, 200, 0.06);
}
.page-home .feed-time {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--amber);
}
.page-home .feed-title {
  grid-column: 1;
  font-size: 14.5px;
  line-height: 1.55;
}
.page-home .feed-tag {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--mist);
  border: var(--home-line);
  white-space: nowrap;
}

/* ---------- 通用章节 ---------- */
.page-home .home-section {
  padding-top: var(--home-gap);
}
.page-home .home-head {
  display: grid;
  gap: 12px;
  max-width: 800px;
  margin-bottom: 26px;
}
.page-home .eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
}
.page-home .home-head h2 {
  margin: 0;
  font-size: clamp(23px, 4.2vw, 36px);
  line-height: 1.24;
  letter-spacing: -0.01em;
}
.page-home .head-lede {
  margin: 0;
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

/* ---------- V4 刻度 ---------- */
.page-home .v4-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.page-home .v4-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: var(--home-line);
}
.page-home .v4-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  padding: 18px 0;
  border-bottom: var(--home-line);
}
.page-home .v4-k {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--mint);
}
.page-home .v4-v {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: clamp(21px, 3.6vw, 29px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--snow);
}
.page-home .v4-l {
  grid-column: 2;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}
.page-home .v4-figure {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 10px;
  border: var(--home-line);
  background: rgba(12, 27, 46, 0.62);
  align-content: start;
}
.page-home .v4-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.page-home .v4-figure figcaption {
  padding: 0 2px 2px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 案例合集 ---------- */
.page-home .case-figure {
  margin: 0 0 22px;
  border: var(--home-line);
  overflow: hidden;
  background: rgba(12, 27, 46, 0.5);
}
.page-home .case-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.page-home .case-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.page-home .case-card {
  display: grid;
  gap: 8px;
  height: 100%;
  padding: 16px;
  border: var(--home-line);
  background: rgba(12, 27, 46, 0.72);
  color: var(--snow);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}
.page-home .case-card:hover,
.page-home .case-card:focus-visible {
  border-color: var(--mint);
  background: rgba(12, 27, 46, 0.96);
  transform: translateY(-3px);
}
.page-home .case-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--mint);
}
.page-home .case-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.page-home .case-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
}
.page-home .case-more {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mint-deep);
}

/* ---------- 服务清单 ---------- */
.page-home .svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--home-line);
}
.page-home .svc-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 18px 0;
  border-bottom: var(--home-line);
}
.page-home .svc-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.page-home .svc-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  cursor: pointer;
}
.page-home .svc-num {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--mint);
}
.page-home .svc-text {
  grid-column: 2;
  grid-row: 1;
}
.page-home .svc-name {
  display: block;
  font-size: 16.5px;
  font-weight: 700;
  transition: color 0.18s var(--ease);
}
.page-home .svc-scene {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}
.page-home .svc-state {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  margin-top: 10px;
  padding: 2px 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
  border: var(--home-line);
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.page-home .svc-state::before {
  content: "标记";
}
.page-home .svc-check:checked ~ .svc-main .svc-state {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}
.page-home .svc-check:checked ~ .svc-main .svc-state::before {
  content: "已标记";
}
.page-home .svc-check:checked ~ .svc-main .svc-name {
  color: var(--mint);
}
.page-home .svc-check:focus-visible ~ .svc-main {
  outline: 2px solid var(--mint);
  outline-offset: 5px;
}
.page-home .svc-go {
  justify-self: start;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--mint);
  text-decoration: none;
  border: var(--home-line);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.page-home .svc-go:hover,
.page-home .svc-go:focus-visible {
  border-color: var(--mint);
  background: rgba(0, 245, 200, 0.1);
}

/* ---------- 移动端路径 ---------- */
.page-home .mobile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.page-home .mobile-figure {
  margin: 0;
  padding: 10px;
  border: var(--home-line);
  background: rgba(12, 27, 46, 0.62);
}
.page-home .mobile-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.page-home .mobile-figure figcaption {
  padding: 10px 2px 2px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mist);
}
.page-home .mobile-steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: var(--home-line);
}
.page-home .mobile-steps .step {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: var(--home-line);
}
.page-home .step-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--amber);
}
.page-home .mobile-steps h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}
.page-home .mobile-steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 服务体量 ---------- */
.page-home .scale-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
.page-home .scale-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: var(--home-line);
}
.page-home .scale-stats li {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  border-bottom: var(--home-line);
}
.page-home .stat-num {
  font-family: var(--font-mono);
  font-size: clamp(19px, 3vw, 24px);
  font-weight: 700;
  color: var(--mint);
  letter-spacing: -0.01em;
}
.page-home .stat-label {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mist);
}
.page-home .timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  position: relative;
  display: grid;
  gap: 14px;
  border-left: 1px solid var(--line);
}
.page-home .timeline li {
  position: relative;
}
.page-home .timeline li::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--hold);
  border: 1px solid var(--mint-deep);
  border-radius: 50%;
}
.page-home .tl-year {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--snow);
}
.page-home .timeline p {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 反馈 ---------- */
.page-home .feedback-panel {
  display: grid;
  gap: 18px;
  padding: 24px 18px;
  border: var(--home-line);
  background: linear-gradient(135deg, rgba(0, 245, 200, 0.09), rgba(12, 27, 46, 0.92) 52%);
}
.page-home .feedback-copy {
  display: grid;
  gap: 10px;
}
.page-home .feedback-copy h2 {
  margin: 0;
  font-size: clamp(21px, 3.6vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.page-home .feedback-copy p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mist);
}
.page-home .feedback-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 560px) {
  .page-home .hero-cta,
  .page-home .feedback-actions {
    grid-template-columns: 1fr 1fr;
  }
  .page-home .case-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-home .scale-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0 22px;
  }
}

@media (min-width: 720px) {
  .page-home .svc-item {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
  }
  .page-home .feedback-panel {
    padding: 32px 30px;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 28px;
  }
  .page-home .feedback-actions {
    grid-template-columns: 1fr;
    align-content: center;
  }
}

@media (min-width: 900px) {
  .page-home .v4-grid,
  .page-home .mobile-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
  }
  .page-home .scale-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 40px;
    align-items: start;
  }
  .page-home .case-figure img {
    aspect-ratio: 21 / 9;
  }
}

@media (min-width: 960px) {
  .page-home .hero-shell {
    grid-template-columns: 5fr 7fr;
    gap: 40px;
  }
  .page-home .hero-feed {
    padding: 34px 22px 22px;
    clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%);
  }
  .page-home .hero-figure img {
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 1040px) {
  .page-home .case-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .page-home .scale-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .case-card,
  .page-home .hero-keys a,
  .page-home .feed-chips label,
  .page-home .svc-state,
  .page-home .svc-go {
    transition: none;
  }
  .page-home .case-card:hover,
  .page-home .case-card:focus-visible {
    transform: none;
  }
}
