.page-home{
  --home-radius: var(--radius-l);
  --home-pad: clamp(20px, 4vw, 44px);
  position: relative;
  padding: clamp(18px, 3vw, 30px) clamp(16px, 4vw, 52px) clamp(48px, 7vw, 92px);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  background:
    radial-gradient(110% 70% at 94% -6%, rgba(232,174,71,.15), transparent 58%),
    radial-gradient(80% 60% at -10% 34%, rgba(57,230,214,.10), transparent 62%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-3) 100%);
}

.page-home *,
.page-home *::before,
.page-home *::after{ box-sizing: border-box; }

.page-home p,
.page-home li,
.page-home dd{ margin: 0; }

.page-home h1,
.page-home h2,
.page-home h3,
.page-home h4{ margin: 0; }

.page-home img{ display: block; max-width: 100%; height: auto; }

/* ---------- 顶部上下文条 ---------- */
.page-home .home-context{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-bottom: 13px;
  margin-bottom: clamp(18px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .12em;
}
.page-home .home-context .breadcrumb{ margin: 0; display: inline-flex; align-items: center; }
.page-home .home-context .breadcrumb__current{
  color: var(--paper);
  font-size: 12px;
  letter-spacing: .18em;
}
.page-home .home-context .breadcrumb__sep{
  margin: 0 8px;
  color: rgba(159,179,200,.5);
}
.page-home .home-context .mono{ color: var(--mist); }
.page-home .context-status{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mist);
  font-size: 11px;
  letter-spacing: .12em;
}
.page-home .context-status .dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(57,230,214,.16);
  animation: home-pulse 3.4s var(--ease) infinite;
}
@keyframes home-pulse{
  0%, 100%{ opacity: 1; }
  50%{ opacity: .4; }
}

/* ---------- 首屏框景 ---------- */
.page-home .hero{
  position: relative;
  display: grid;
  gap: clamp(22px, 3.4vw, 34px);
  padding: var(--home-pad);
  border: 1px solid var(--line-strong);
  border-radius: var(--home-radius);
  background:
    linear-gradient(158deg, rgba(16,36,59,.94) 0%, rgba(8,20,38,.96) 68%);
  box-shadow: 0 40px 90px -70px rgba(57,230,214,.65);
  overflow: hidden;
}
.page-home .hero::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 9px;
  background-image: repeating-linear-gradient(90deg, rgba(232,174,71,.6) 0 1px, transparent 1px 14px);
  opacity: .55;
}
.page-home .hero::after{
  content: "";
  position: absolute;
  right: -16%;
  top: -38%;
  width: 62%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(232,174,71,.24), transparent 66%);
  pointer-events: none;
}
.page-home .hero__index{
  position: absolute;
  right: clamp(6px, 2vw, 26px);
  bottom: clamp(-16px, -1vw, 6px);
  font-size: clamp(110px, 24vw, 220px);
  line-height: .72;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232,174,71,.24);
  pointer-events: none;
  user-select: none;
}
.page-home .hero__body{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 24px);
}
.page-home .hero__kicker{
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--cyan);
  text-transform: uppercase;
}
.page-home .hero__title{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 8vw, 76px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--white);
  max-width: 16ch;
}
.page-home .hero__lead{
  max-width: 52ch;
  color: var(--paper);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
}
.page-home .hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 四条入口索引卡 */
.page-home .entry-index{
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-top: 4px;
}
.page-home .entry-card{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(8,20,38,.6);
  text-decoration: none;
  color: var(--paper);
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.page-home .entry-card:hover,
.page-home .entry-card:focus-visible{
  border-color: rgba(232,174,71,.55);
  background: rgba(16,36,59,.9);
  transform: translateY(-2px);
}
.page-home .entry-card__num{
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232,174,71,.5);
  border-radius: 50%;
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0;
}
.page-home .entry-card__text{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.page-home .entry-card__title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}
.page-home .entry-card__note{
  font-size: 12.5px;
  color: var(--mist);
  line-height: 1.6;
}

/* 首屏数据 */
.page-home .hero__stats{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  padding-top: 18px;
  margin: 0;
  border-top: 1px dashed rgba(159,179,200,.24);
}
.page-home .stat dt{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist);
  text-transform: uppercase;
}
.page-home .stat dd{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--amber-soft);
  line-height: 1.4;
}

.page-home .hero__figure{
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--ink-2);
}
.page-home .hero__figure img{
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.page-home .hero__caption{
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--cyan);
  background: rgba(8,20,38,.72);
  padding: 4px 9px;
  border-radius: 999px;
}

/* ---------- 章节导航 ---------- */
.page-home .chapter-bar{
  position: sticky;
  top: calc(var(--strip-h) + 10px);
  z-index: 20;
  display: flex;
  gap: 6px;
  margin: clamp(20px, 4vw, 42px) 0 clamp(14px, 2.4vw, 24px);
  padding: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8,20,38,.9);
  backdrop-filter: blur(8px);
}
.page-home .chapter-bar::-webkit-scrollbar{ display: none; }
.page-home .chapter-link{
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.page-home .chapter-link:hover,
.page-home .chapter-link:focus-visible{
  color: var(--amber-soft);
  border-color: rgba(232,174,71,.35);
}
.page-home .chapter-link.is-active{
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}

/* ---------- 章节通用 ---------- */
.page-home .sec{
  margin-top: clamp(38px, 6vw, 74px);
  scroll-margin-top: calc(var(--strip-h) + 92px);
}
.page-home .sec-head{
  display: grid;
  gap: 8px;
  margin-bottom: clamp(18px, 3vw, 28px);
}
.page-home .sec-head__num{
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--amber);
}
.page-home .sec-head__title{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--white);
  max-width: 24ch;
}
.page-home .sec-head__note{
  max-width: 62ch;
  color: var(--mist);
  font-size: 14.5px;
}

/* ---------- 三条快速路径 ---------- */
.page-home .paths{
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.page-home .path{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: linear-gradient(178deg, rgba(16,36,59,.88), rgba(8,20,38,.74));
}
.page-home .path::before{
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--amber), rgba(232,174,71,0));
}
.page-home .path--cyan::before{
  background: linear-gradient(180deg, var(--cyan), rgba(57,230,214,0));
}
.page-home .path__num{
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--mist);
}
.page-home .path--amber .path__num{ color: var(--amber); }
.page-home .path--cyan .path__num{ color: var(--cyan); }
.page-home .path__title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.35;
  color: var(--white);
}
.page-home .path__text{
  font-size: 14.5px;
  color: rgba(244,235,221,.86);
}
.page-home .path__list{
  list-style: none;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 13.5px;
  color: var(--mist);
}
.page-home .path__list li{
  position: relative;
  padding-left: 16px;
}
.page-home .path__list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.page-home .path__link{
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--amber-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(232,174,71,.4);
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.page-home .path__link:hover,
.page-home .path__link:focus-visible{
  color: var(--white);
  border-color: var(--amber-soft);
}

/* ---------- 规则层级 ---------- */
.page-home .rules-layout{
  display: grid;
  gap: clamp(16px, 3vw, 26px);
  grid-template-columns: 1fr;
}
.page-home .rules{
  display: grid;
  gap: 10px;
  align-content: start;
}
.page-home .rule{
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(16,36,59,.55);
  overflow: hidden;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.page-home .rule[open]{
  border-color: var(--line-strong);
  background: rgba(16,36,59,.9);
}
.page-home .rule > summary{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--paper);
}
.page-home .rule > summary::-webkit-details-marker{ display: none; }
.page-home .rule > summary::after{
  content: "+";
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--amber);
}
.page-home .rule[open] > summary::after{ content: "−"; }
.page-home .rule__num{
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--amber);
}
.page-home .rule__name{ flex: 0 1 auto; }
.page-home .rule__hint{
  margin-left: auto;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--mist);
}
.page-home .rule__body{
  padding: 0 18px 18px;
  font-size: 14px;
  color: rgba(244,235,221,.82);
  border-top: 1px solid rgba(159,179,200,.14);
  margin-top: -2px;
  padding-top: 14px;
}

.page-home .img-frame{
  margin: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--ink-2);
}
.page-home .img-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-home .img-frame--tall img{ aspect-ratio: 5 / 4; }
.page-home .img-frame--wide img{ aspect-ratio: 3 / 2; }
.page-home .img-frame--square img{ aspect-ratio: 1 / 1; }
.page-home .img-frame__caption{
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--cyan);
  background: rgba(8,20,38,.78);
  padding: 4px 9px;
  border-radius: 999px;
}

/* ---------- 设备与面板 ---------- */
.page-home .devices{
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: 1fr;
}
.page-home .devices__body{
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.page-home .note-block{
  padding: 18px 18px 20px;
  border-left: 1px solid rgba(57,230,214,.4);
  background: linear-gradient(90deg, rgba(57,230,214,.07), transparent 70%);
}
.page-home .note-block__tag{
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--cyan);
}
.page-home .note-block__title{
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--white);
  line-height: 1.4;
}
.page-home .note-block p{
  font-size: 14.5px;
  color: rgba(244,235,221,.84);
}
.page-home .panel-tiles{
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.page-home .tile{
  padding: 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: rgba(8,20,38,.56);
}
.page-home .tile__num{
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--amber);
}
.page-home .tile__title{
  margin: 6px 0 5px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--paper);
}
.page-home .tile__text{
  font-size: 13px;
  line-height: 1.65;
  color: var(--mist);
}

/* ---------- 服务通道 ---------- */
.page-home .channel{
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  grid-template-columns: 1fr;
  align-items: start;
}
.page-home .flow{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}
.page-home .flow__step{
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 6px 14px;
  padding: 14px 3px 16px 0;
  border-top: 1px solid rgba(159,179,200,.16);
}
.page-home .flow__step:first-child{ border-top: 0; }
.page-home .flow__num{
  font-size: 15px;
  letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232,174,71,.7);
  line-height: 1.5;
}
.page-home .flow__title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--white);
  line-height: 1.4;
}
.page-home .flow__step p{
  margin-top: 3px;
  font-size: 14px;
  color: var(--mist);
}

/* ---------- 人工通道（暖纸面板） ---------- */
.page-home .contact-band{
  margin-top: clamp(42px, 6.5vw, 84px);
  padding: clamp(22px, 4vw, 42px);
  border-radius: var(--home-radius);
  background: linear-gradient(152deg, var(--paper) 0%, #EDDFC9 100%);
  color: var(--ink);
  display: grid;
  gap: clamp(18px, 3vw, 26px);
}
.page-home .contact-band__tag{
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--teal);
}
.page-home .contact-band__title{
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(21px, 3.4vw, 30px);
  line-height: 1.25;
  color: var(--ink);
  max-width: 22ch;
}
.page-home .contact-band__text{
  max-width: 60ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(8,20,38,.78);
}
.page-home .contact-band__grid{
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.page-home .contact-row{
  padding-top: 12px;
  border-top: 1px solid rgba(8,20,38,.16);
}
.page-home .contact-row__label{
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--teal);
}
.page-home .contact-row__value{
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.page-home .contact-row__value a{
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(8,20,38,.35);
}
.page-home .contact-row__value a:hover,
.page-home .contact-row__value a:focus-visible{
  color: var(--teal);
  border-color: var(--teal);
}
.page-home .copy-btn{
  margin-top: 10px;
  padding: 7px 15px;
  border: 1px solid rgba(8,20,38,.4);
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.page-home .copy-btn:hover,
.page-home .copy-btn:focus-visible{
  background: var(--amber-soft);
  transform: translateY(-1px);
}
.page-home .copy-status{
  display: inline-block;
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--teal);
}
.page-home .contact-band__foot{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(8,20,38,.16);
}
.page-home .contact-band__meta{
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(8,20,38,.62);
}
.page-home .contact-band__links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.page-home .contact-band .path__link{
  color: var(--teal);
  border-color: rgba(8,122,117,.45);
}
.page-home .contact-band .path__link:hover,
.page-home .contact-band .path__link:focus-visible{
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- 断点 ---------- */
@media (min-width: 560px){
  .page-home .entry-index{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .hero__stats{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-home .contact-band__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px){
  .page-home .paths{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-home .rules-layout{ grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); }
  .page-home .rules__figure{ position: sticky; top: calc(var(--strip-h) + 84px); }
  .page-home .devices{ grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .page-home .channel{ grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
}

@media (min-width: 1040px){
  .page-home .hero{
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr);
    align-items: start;
  }
  .page-home .hero__body{ grid-column: 1; }
  .page-home .hero__figure{ grid-column: 2; align-self: stretch; }
  .page-home .hero__figure img{ height: 100%; aspect-ratio: auto; min-height: 340px; }
  .page-home .hero__index{ bottom: -22px; right: -6px; }
}

@media (max-width: 559px){
  .page-home .contact-band__foot{ flex-direction: column; align-items: flex-start; }
  .page-home .chapter-bar{ border-radius: var(--radius-m); }
}

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