.page-home {
  --home-radius: 16px;
  --home-border: 2px solid var(--edge);
  background: var(--ink);
  color: var(--bone);
  overflow-x: hidden;
}

/* ---------- 首屏拼贴 ---------- */
.page-home .home-hero {
  position: relative;
  padding: clamp(20px, 4vw, 40px) 0 clamp(36px, 6vw, 72px);
  background:
    radial-gradient(120% 90% at 82% 4%, rgba(22, 224, 198, 0.20), transparent 62%),
    radial-gradient(80% 62% at 2% 94%, rgba(255, 138, 61, 0.13), transparent 66%),
    linear-gradient(180deg, #08201a 0%, var(--ink) 80%);
  overflow: hidden;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(124, 245, 228, 0.05) 0 1px, transparent 1px 7px);
  pointer-events: none;
  mix-blend-mode: screen;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 30px);
}

.page-home .home-hero__main { order: 1; min-width: 0; }
.page-home .home-hero__rail { order: 2; min-width: 0; }
.page-home .home-hero__media { order: 3; min-width: 0; }

.page-home .home-hero__main .breadcrumb {
  margin-bottom: 14px;
}

.page-home .home-hero__main h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 6.2vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin: 8px 0 16px;
  color: var(--bone);
  text-shadow: 0 3px 0 rgba(3, 8, 6, 0.8), 0 0 30px rgba(22, 224, 198, 0.22);
  overflow-wrap: break-word;
}

.page-home .home-hero__main .lede {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.78;
  color: var(--bone);
  opacity: 0.9;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .home-hero__actions .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-home .home-hero__hint {
  margin: 18px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mute);
  max-width: 46ch;
}

.page-home .home-version {
  position: relative;
  padding: 18px 18px 16px;
  border: var(--home-border);
  border-radius: var(--home-radius);
  box-shadow: var(--shadow-mid);
  background: linear-gradient(155deg, var(--felt-hi), var(--felt) 72%);
}

.page-home .home-version::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.page-home .home-version__k {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.page-home .home-version__v {
  margin: 2px 0 12px;
  font-size: clamp(19px, 3.4vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cyan);
}

.page-home .home-version__v + .home-version__k { margin-top: 0; }

.page-home .home-version__note {
  margin: 8px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(138, 168, 160, 0.3);
  font-size: 13px;
  line-height: 1.72;
  color: var(--mute);
}

.page-home .home-hero__media { position: relative; }

.page-home .home-hero__figure {
  margin: 0;
  border: var(--home-border);
  border-radius: var(--home-radius);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  background: var(--felt);
  transform: rotate(0.7deg);
}

.page-home .home-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-hero__sticker {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 7px 11px;
  border: var(--home-border);
  box-shadow: var(--shadow-mid);
  transform: rotate(-2.5deg);
}

/* ---------- 通用区块小标题 ---------- */
.page-home .home-sec-head {
  max-width: 62ch;
}

.page-home .home-sec-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 4.4vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin: 8px 0 12px;
  color: var(--bone);
}

.page-home .home-sec-head__lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mute);
}

/* ---------- 三步核对 ---------- */
.page-home .home-steps {
  position: relative;
  padding: clamp(44px, 7vw, 88px) 0;
  border-top: var(--home-border);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(22, 224, 198, 0.10), transparent 60%),
    var(--felt);
}

.page-home .home-steps__list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.page-home .home-step {
  position: relative;
  padding: 22px 18px 18px;
  border: var(--home-border);
  border-radius: var(--home-radius);
  background: linear-gradient(150deg, #143c30, var(--felt-hi) 58%, #0b241c);
  box-shadow: var(--shadow-mid);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms var(--ease);
}

.page-home .home-step:hover {
  transform: translate(-2px, -3px);
  box-shadow: var(--shadow-hard);
  border-color: var(--cyan);
}

.page-home .home-step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(38px, 7vw, 56px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--cyan);
  text-shadow: 0 0 26px rgba(22, 224, 198, 0.35);
}

.page-home .home-step--hot .home-step__num {
  color: var(--orange);
  text-shadow: 0 0 26px rgba(255, 138, 61, 0.4);
}

.page-home .home-step h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 12px 0 8px;
  color: var(--bone);
}

.page-home .home-step > p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--mute);
}

.page-home .home-more {
  margin-top: 14px;
  border-top: 1px dashed rgba(138, 168, 160, 0.32);
  padding-top: 6px;
}

.page-home .home-more summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-home .home-more summary::-webkit-details-marker { display: none; }

.page-home .home-more summary::after {
  content: "+";
  font-size: 17px;
  line-height: 1;
  color: var(--cyan);
}

.page-home .home-more[open] summary::after { content: "−"; }

.page-home .home-more p {
  margin: 4px 0 8px;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--mute);
}

.page-home .home-steps__figure {
  position: relative;
  margin: 28px 0 0;
  border: var(--home-border);
  border-radius: var(--home-radius);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  background: var(--felt);
}

.page-home .home-steps__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-steps__cap {
  display: block;
  padding: 10px 14px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mute);
  background: rgba(3, 8, 6, 0.55);
  border-top: var(--home-border);
}

/* ---------- 案例合集 ---------- */
.page-home .home-cases {
  padding: clamp(44px, 7vw, 88px) 0;
  border-top: var(--home-border);
  background: var(--ink);
}

.page-home .home-cases__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 36px);
}

.page-home .home-cases__head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 4.2vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin: 8px 0 12px;
  color: var(--bone);
}

.page-home .home-cases__lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mute);
}

.page-home .home-cases__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.page-home .home-cases__tags .tag {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  border: 2px solid rgba(124, 245, 228, 0.32);
  background: rgba(22, 224, 198, 0.07);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}

.page-home .home-cases__tags .tag:hover,
.page-home .home-cases__tags .tag:focus-visible {
  border-color: var(--cyan);
  color: var(--bone);
  background: rgba(22, 224, 198, 0.18);
}

.page-home .home-cases__tags .tag.is-active {
  background: var(--cyan);
  color: var(--ink);
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(22, 224, 198, 0.2);
}

.page-home .home-cases__more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 2px solid rgba(22, 224, 198, 0.45);
}

.page-home .home-cases__figure {
  margin: 0 0 22px;
  border: var(--home-border);
  border-radius: var(--home-radius);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  background: var(--felt);
  transform: rotate(-0.6deg);
}

.page-home .home-cases__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-case-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .home-case {
  padding: 16px 18px 18px;
  border: var(--home-border);
  border-radius: 14px;
  background: linear-gradient(140deg, var(--felt-hi), var(--felt) 80%);
  box-shadow: var(--shadow-mid);
  scroll-margin-top: 92px;
}

.page-home .home-case__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.page-home .home-case__tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  border: var(--home-border);
  background: var(--amber);
  color: var(--edge);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  transform: rotate(-1.5deg);
}

.page-home .home-case:nth-child(2n) .home-case__tag { background: var(--mist); }
.page-home .home-case:nth-child(3n) .home-case__tag { background: var(--orange); }

.page-home .home-case__id {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mute);
}

.page-home .home-case h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 8px;
  color: var(--bone);
}

.page-home .home-case p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mute);
}

/* ---------- 换设备 ---------- */
.page-home .home-switch {
  padding: clamp(44px, 7vw, 88px) 0;
  border-top: var(--home-border);
  background:
    radial-gradient(80% 90% at 0% 100%, rgba(255, 138, 61, 0.12), transparent 62%),
    linear-gradient(170deg, var(--felt) 0%, var(--ink) 76%);
}

.page-home .home-switch__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 36px);
}

.page-home .home-switch__text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 4.2vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin: 8px 0 12px;
  color: var(--bone);
}

.page-home .home-switch__lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mute);
}

.page-home .home-flow {
  list-style: none;
  counter-reset: hf;
  margin: 26px 0 0;
  padding: 0;
}

.page-home .home-flow li {
  position: relative;
  margin-left: 20px;
  padding: 4px 0 22px 46px;
  border-left: 2px solid rgba(22, 224, 198, 0.3);
}

.page-home .home-flow li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.page-home .home-flow li::before {
  counter-increment: hf;
  content: counter(hf, decimal-leading-zero);
  position: absolute;
  left: -20px;
  top: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--ink);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.page-home .home-flow h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin: 6px 0 6px;
  color: var(--bone);
}

.page-home .home-flow p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mute);
}

.page-home .home-switch__figure {
  margin: 0;
  border: var(--home-border);
  border-radius: var(--home-radius);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  background: var(--felt);
  align-self: start;
}

.page-home .home-switch__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 症状分流 ---------- */
.page-home .home-triage {
  padding: clamp(44px, 7vw, 88px) 0;
  border-top: var(--home-border);
  background: var(--ink);
}

.page-home .home-triage__list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-home .home-triage__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 16px 18px;
  border: var(--home-border);
  border-radius: 14px;
  background: linear-gradient(120deg, var(--felt-hi), var(--felt));
  box-shadow: var(--shadow-mid);
  text-decoration: none;
  color: var(--bone);
  transition: transform 150ms var(--ease), border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.page-home .home-triage__item:hover,
.page-home .home-triage__item:focus-visible {
  transform: translate(-2px, -2px);
  border-color: var(--orange);
  box-shadow: var(--shadow-hard);
}

.page-home .home-triage__label {
  font-size: 15px;
  line-height: 1.6;
}

.page-home .home-triage__go {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  white-space: nowrap;
}

.page-home .home-triage__go::after {
  content: " →";
}

/* ---------- 更新与信任 ---------- */
.page-home .home-trust {
  padding: clamp(44px, 7vw, 88px) 0;
  border-top: var(--home-border);
  background:
    radial-gradient(100% 80% at 100% 0%, rgba(22, 224, 198, 0.12), transparent 62%),
    var(--felt);
}

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

.page-home .home-stats li {
  padding: 18px 16px;
  border: var(--home-border);
  border-radius: 14px;
  background: rgba(7, 28, 23, 0.72);
  box-shadow: var(--shadow-mid);
}

.page-home .home-stats__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--cyan);
}

.page-home .home-stats__label {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--mute);
}

.page-home .home-trust__note {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed rgba(138, 168, 160, 0.32);
}

.page-home .home-trust__note p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mute);
  max-width: 68ch;
}

.page-home .home-trust__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 2px solid rgba(22, 224, 198, 0.45);
}

/* ---------- 求助浮岛 ---------- */
.page-home .home-help {
  padding: clamp(44px, 7vw, 88px) 0 clamp(64px, 9vw, 104px);
  border-top: var(--home-border);
  background: linear-gradient(180deg, var(--ink), #0a231c);
}

.page-home .home-help__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 36px);
  padding: clamp(22px, 4vw, 40px);
  border: var(--home-border);
  border-radius: 20px;
  box-shadow: var(--shadow-hard);
  background:
    radial-gradient(95% 140% at 100% 0%, rgba(255, 138, 61, 0.24), transparent 62%),
    linear-gradient(150deg, var(--felt-hi), var(--ink));
}

.page-home .home-help__text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(23px, 4vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 8px 0 12px;
  color: var(--bone);
}

.page-home .home-help__text p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mute);
  max-width: 56ch;
}

.page-home .home-help__note {
  color: var(--amber) !important;
}

.page-home .home-help__card {
  padding: 20px 18px;
  border: var(--home-border);
  border-radius: 14px;
  background: rgba(3, 8, 6, 0.55);
  box-shadow: var(--shadow-mid);
}

.page-home .home-help__label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mute);
}

.page-home .home-help__mail {
  display: inline-block;
  margin: 6px 0 16px;
  font-family: var(--font-mono);
  font-size: clamp(13px, 2.2vw, 16px);
  line-height: 1.5;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 2px solid rgba(22, 224, 198, 0.45);
  word-break: break-all;
}

.page-home .home-help__line {
  margin: 6px 0 18px;
  font-size: 15px;
  color: var(--bone);
}

.page-home .home-help__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: 100%;
}

/* ---------- 移动端底部快捷条 ---------- */
.page-home .home-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 10px;
  padding: 10px clamp(16px, 4vw, 24px) calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, rgba(7, 28, 23, 0.98), rgba(7, 28, 23, 0.78));
  border-top: var(--home-border);
  backdrop-filter: blur(6px);
}

.page-home .home-dock .btn {
  flex: 1;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-home { padding-bottom: 82px; }

/* ---------- 断点 ---------- */
@media (min-width: 700px) {
  .page-home .home-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 900px) {
  .page-home { padding-bottom: 0; }

  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 5.2fr) minmax(0, 3.8fr);
    align-items: start;
  }

  .page-home .home-hero__main { order: 2; grid-column: 2; grid-row: 1; }
  .page-home .home-hero__rail { order: 1; grid-column: 1; grid-row: 1; padding-top: 42px; }
  .page-home .home-hero__media { order: 3; grid-column: 3; grid-row: 1; padding-top: 42px; }

  .page-home .home-steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }

  .page-home .home-step:nth-child(2) { margin-top: 28px; }
  .page-home .home-step:nth-child(3) { margin-top: 56px; }

  .page-home .home-steps__figure {
    margin-top: -18px;
  }

  .page-home .home-cases__layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }

  .page-home .home-cases__head {
    position: sticky;
    top: 24px;
  }

  .page-home .home-switch__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: start;
  }

  .page-home .home-help__panel {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }

  .page-home .home-help__btn { width: auto; }
}

@media (min-width: 1024px) {
  .page-home .home-dock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-step,
  .page-home .home-triage__item,
  .page-home .home-cases__tags .tag {
    transition: none;
  }

  .page-home .home-hero__figure,
  .page-home .home-cases__figure,
  .page-home .home-hero__sticker,
  .page-home .home-case__tag {
    transform: none;
  }

  .page-home .home-step:hover,
  .page-home .home-triage__item:hover,
  .page-home .home-triage__item:focus-visible {
    transform: none;
  }
}
