.page-home {
  --home-pad: clamp(20px, 5vw, 48px);
  --home-rule: rgba(10, 43, 78, 0.14);
  --home-ink-soft: rgba(244, 247, 250, 0.62);
}

.page-home .home-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--home-pad);
}

/* ---------- 首屏分屏 ---------- */
.page-home .hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(0, 229, 199, 0.16) 0%, rgba(0, 229, 199, 0) 55%),
    linear-gradient(158deg, var(--sea-900) 0%, var(--sea-800) 58%, #0d3358 100%);
  color: var(--paper);
  padding-block: clamp(44px, 7vw, 84px) clamp(56px, 8vw, 104px);
  overflow: hidden;
}

.page-home .hero__grid {
  display: grid;
  gap: clamp(34px, 5vw, 60px);
  align-items: center;
}

.page-home .hero__crumb {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.page-home .hero__crumb-home {
  color: var(--cyan);
}

.page-home .hero__badge {
  display: inline-block;
  margin: 0 0 20px;
  padding: 5px 12px;
  border: 1px solid rgba(0, 229, 199, 0.45);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(0, 229, 199, 0.08);
}

.page-home .hero__title {
  margin: 0 0 22px;
  font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.page-home .hero__lead {
  max-width: 34em;
  margin: 0 0 30px;
  color: rgba(244, 247, 250, 0.82);
  font-size: 17px;
  line-height: 1.85;
}

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

.page-home .hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.page-home .hero__stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}

.page-home .hero__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 4.4vw, 2.3rem);
  line-height: 1;
  color: var(--cyan);
}

.page-home .hero__unit {
  font-size: 12px;
  color: var(--cyan-soft);
}

.page-home .hero__label {
  flex: 0 0 100%;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

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

.page-home .hero__figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 199, 0.24);
  background: rgba(244, 247, 250, 0.05);
  box-shadow: var(--shadow-1);
}

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

.page-home .hero__flow {
  position: absolute;
  left: -6%;
  bottom: -18px;
  width: 78%;
  height: auto;
  pointer-events: none;
}

.page-home .hero__flow path,
.page-home .hero__flow circle {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.2;
  opacity: 0.6;
}

.page-home .hero__flow circle {
  fill: var(--cyan);
  stroke: none;
}

.page-home .hero__flow path {
  stroke-dasharray: 10 8;
  animation: home-flow 9s linear infinite;
}

@keyframes home-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -180; }
}

/* ---------- 版本对照台 ---------- */
.page-home .ver-section {
  padding-block: clamp(56px, 8vw, 96px);
}

.page-home .section-head {
  max-width: 46em;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.page-home .section-head--tight {
  margin-bottom: 24px;
}

.page-home .section-head__index {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--steel);
}

.page-home .section-head__title {
  margin: 0 0 14px;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.2;
}

.page-home .section-head__lead {
  margin: 0;
  color: var(--graphite);
  font-size: 17px;
  line-height: 1.8;
}

.page-home .ver-figure {
  margin: 0 0 clamp(28px, 4vw, 44px);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: linear-gradient(135deg, var(--sea-800), var(--sea-900));
}

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

.page-home .ver-figure__caption {
  padding: 12px 20px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--home-ink-soft);
}

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

.page-home .ver__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .ver__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.page-home .ver__tab {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 148px;
  padding: 12px 20px;
  border: 1px solid var(--home-rule);
  border-radius: var(--radius-m);
  background: transparent;
  color: var(--graphite);
  cursor: pointer;
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.page-home .ver__tab:hover {
  border-color: var(--cyan);
}

.page-home .ver__tab-name {
  font-size: 16px;
  font-weight: 600;
}

.page-home .ver__tab-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.page-home #home-ver-slim:checked ~ .ver__tabs .ver__tab[for="home-ver-slim"],
.page-home #home-ver-main:checked ~ .ver__tabs .ver__tab[for="home-ver-main"] {
  background: var(--sea-800);
  border-color: var(--sea-800);
  color: var(--paper);
}

.page-home #home-ver-slim:checked ~ .ver__tabs .ver__tab[for="home-ver-slim"] .ver__tab-note,
.page-home #home-ver-main:checked ~ .ver__tabs .ver__tab[for="home-ver-main"] .ver__tab-note {
  color: var(--cyan);
}

.page-home .ver__input:focus-visible ~ .ver__tabs .ver__tab[for="home-ver-slim"],
.page-home .ver__input:focus-visible ~ .ver__tabs .ver__tab[for="home-ver-main"] {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-home .ver__panel {
  display: none;
  gap: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--home-rule);
  border-radius: var(--radius-m);
  background: #ffffff;
}

.page-home #home-ver-slim:checked ~ .ver__panels .ver__panel[data-ver="slim"],
.page-home #home-ver-main:checked ~ .ver__panels .ver__panel[data-ver="main"] {
  display: grid;
  animation: home-panel 0.24s var(--ease);
}

@keyframes home-panel {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.page-home .ver__row {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--home-rule);
}

.page-home .ver__row:first-child {
  padding-top: 0;
}

.page-home .ver__key {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.page-home .ver__val {
  font-size: 16px;
  line-height: 1.7;
  color: var(--graphite);
}

.page-home .ver__go {
  justify-self: start;
  margin-top: 22px;
}

/* ---------- Bento 类目板 ---------- */
.page-home .cat-section {
  padding-block: clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, var(--paper) 0%, #eaf0f6 100%);
}

.page-home .bento-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.page-home .bento-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--home-rule);
  border-radius: var(--radius-m);
  background: #ffffff;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.page-home .bento-cell:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 26px 46px -32px rgba(6, 26, 49, 0.55);
}

.page-home .bento-cell h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
}

.page-home .bento-cell__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--graphite);
}

.page-home .bento-cell .tag {
  margin-top: auto;
  align-self: flex-start;
}

.page-home .bento-cell--dark {
  background: linear-gradient(150deg, var(--sea-900), var(--sea-800));
  border-color: rgba(0, 229, 199, 0.28);
  color: var(--paper);
}

.page-home .bento-cell--dark h3 {
  color: var(--paper);
}

.page-home .bento-cell--dark .bento-cell__text {
  color: rgba(244, 247, 250, 0.78);
}

.page-home .bento-cell__figure {
  margin: 8px 0 12px;
  border-radius: var(--radius-s);
  overflow: hidden;
}

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

.page-home .bento-cell--accent {
  background: linear-gradient(120deg, rgba(0, 229, 199, 0.14), rgba(255, 122, 69, 0.1));
  border-color: rgba(0, 229, 199, 0.4);
}

.page-home .index {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--steel);
}

.page-home .index--light {
  color: var(--cyan-soft);
}

/* ---------- 更新与文档 ---------- */
.page-home .up-section {
  padding-block: clamp(56px, 8vw, 96px);
}

.page-home .up-grid {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  align-items: start;
}

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

.page-home .updates__row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 20px 0;
  border-top: 1px solid var(--home-rule);
}

.page-home .updates__row:last-child {
  border-bottom: 1px solid var(--home-rule);
}

.page-home .updates__idx {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  padding-top: 4px;
}

.page-home .updates__body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.page-home .updates__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--graphite);
}

.page-home .updates__when {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.page-home .up-note {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--steel);
}

.page-home .up-link {
  color: var(--sea-800);
  border-bottom: 1px solid var(--cyan);
  text-decoration: none;
}

.page-home .up-link:hover {
  color: var(--orange);
}

.page-home .doc-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-l);
  background: linear-gradient(155deg, var(--ink), var(--sea-900));
  color: var(--paper);
}

.page-home .doc-panel__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 600;
}

.page-home .doc-panel__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 247, 250, 0.78);
}

.page-home .doc-panel__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .doc-panel__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: rgba(244, 247, 250, 0.86);
}

.page-home .doc-panel__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.page-home .doc-panel .btn {
  align-self: flex-start;
  margin-top: 6px;
}

/* ---------- 使用场景 ---------- */
.page-home .scene-section {
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--sea-900);
  color: var(--paper);
}

.page-home .scene-section .section-head__title {
  color: var(--paper);
}

.page-home .scene-section .section-head__index {
  color: var(--cyan);
}

.page-home .scene-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.page-home .scene-list {
  display: grid;
  gap: 0;
}

.page-home .scene {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0 14px;
  padding: 24px 0;
  border-top: 1px solid var(--line-dark);
}

.page-home .scene:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.page-home .scene__no {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--cyan);
}

.page-home .scene h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--paper);
}

.page-home .scene p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 247, 250, 0.74);
}

.page-home .scene-figure {
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 199, 0.24);
  background: rgba(244, 247, 250, 0.05);
}

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

.page-home .scene-figure__caption {
  padding: 12px 18px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--home-ink-soft);
}

/* ---------- 收束带 ---------- */
.page-home .tail {
  padding-block: clamp(44px, 6vw, 72px);
  background: linear-gradient(100deg, var(--sea-800), var(--sea-900));
  color: var(--paper);
}

.page-home .tail__inner {
  display: grid;
  gap: 24px;
  align-items: center;
}

.page-home .tail__title {
  margin: 0 0 12px;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.page-home .tail__text {
  margin: 0;
  max-width: 44em;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(244, 247, 250, 0.76);
}

.page-home .tail__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 平板 ---------- */
@media (min-width: 720px) {
  .page-home .updates__row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: start;
  }

  .page-home .updates__when {
    grid-column: 3;
    padding-top: 6px;
    white-space: nowrap;
  }

  .page-home .updates__row .updates__body {
    grid-column: 2;
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 960px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  }

  .page-home .bento-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "a a b b b b"
      "c c b b b b"
      "d d d e e e";
  }

  .page-home .cell-a { grid-area: a; }
  .page-home .cell-b { grid-area: b; }
  .page-home .cell-c { grid-area: c; }
  .page-home .cell-d { grid-area: d; }
  .page-home .cell-e { grid-area: e; }

  .page-home .up-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  }

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

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

  .page-home .tail__links {
    justify-content: flex-end;
  }
}

@media (min-width: 1180px) {
  .page-home .bento-cell--dark {
    padding-block: clamp(28px, 3vw, 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__flow path {
    animation: none;
  }

  .page-home .bento-cell:hover {
    transform: none;
  }
}
