/* ===== 首页 · 总览面板 ===== */
.page-home {
  --home-glow: rgba(47, 224, 200, .14);
  --home-tint: rgba(47, 224, 200, .06);
}

.page-home .home-block {
  padding-block: clamp(52px, 8vw, 104px);
}

/* ---------- 章节行 ---------- */
.page-home .home-chapter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: clamp(14px, 3vw, 32px);
  padding-bottom: clamp(14px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 4vw, 52px);
}

.page-home .home-chapter__body {
  padding-bottom: 4px;
  min-width: 0;
}

.page-home .home-chapter .chapter-index {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 500;
  line-height: .82;
  letter-spacing: -.02em;
  color: rgba(47, 224, 200, .22);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(36px, 7vw, 78px));
  padding-bottom: clamp(36px, 6vw, 76px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .55;
  -webkit-mask-image: radial-gradient(80% 70% at 65% 35%, #000 0%, transparent 82%);
  mask-image: radial-gradient(80% 70% at 65% 35%, #000 0%, transparent 82%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -12%;
  z-index: -1;
  width: min(760px, 78vw);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  background: radial-gradient(circle, var(--home-glow) 0%, rgba(47, 224, 200, 0) 66%);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(34px, 6vw, 60px);
  align-items: center;
}

@media (min-width: 940px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(36px, 5vw, 72px);
  }
}

.page-home .home-hero__copy { min-width: 0; }

.page-home .home-hero__eyebrow { margin: 0; }

.page-home .home-hero__title {
  margin: 20px 0 0;
  line-height: 1.02;
  max-width: 15em;
}

.page-home .home-hero__lede {
  margin: 22px 0 0;
  max-width: 30em;
  color: var(--text-soft);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(26px, 3vw, 36px);
}

.page-home .home-hero__facts {
  list-style: none;
  margin: clamp(26px, 3vw, 34px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--muted);
}

.page-home .home-hero__facts li {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.page-home .home-hero__facts .mono {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--cyan);
}

.page-home .home-hero__visual {
  display: grid;
  place-items: center;
  min-width: 0;
}

/* ---------- 首屏环形仪表 ---------- */
.page-home .hero-dial {
  width: min(100%, 520px);
  height: auto;
  overflow: visible;
}

.page-home .dial-tick {
  fill: none;
  stroke: var(--line);
  stroke-width: 12;
  stroke-dasharray: 1.6 22;
  transform-origin: 260px 260px;
  animation: home-dial-spin 120s linear infinite;
}

.page-home .dial-arc-bg {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-dasharray: 4 10;
}

.page-home .dial-arc {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 820 1105.84;
  transform: rotate(-90deg);
  transform-origin: 260px 260px;
  animation: home-dial-in 1700ms var(--ease) 120ms both;
}

.page-home .dial-inner {
  fill: none;
  stroke: rgba(47, 224, 200, .32);
  stroke-width: 1;
}

.page-home .dial-dot {
  fill: var(--cyan);
  animation: home-dot-pulse 3.6s ease-in-out infinite;
}

.page-home .dial-dot--b {
  fill: var(--orange);
  animation-delay: 1.1s;
}

.page-home .dial-dot--c { animation-delay: 2.2s; }

.page-home .dial-value {
  fill: var(--text);
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: .04em;
}

.page-home .dial-caption {
  fill: var(--cyan);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: .24em;
}

@keyframes home-dial-spin {
  to { transform: rotate(360deg); }
}

@keyframes home-dial-in {
  from { stroke-dashoffset: 820; }
  to { stroke-dashoffset: 0; }
}

@keyframes home-dot-pulse {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

/* ---------- 首屏下方视觉带 ---------- */
.page-home .home-band {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.page-home .home-band img {
  display: block;
  width: 100%;
  height: clamp(200px, 34vw, 420px);
  object-fit: cover;
  object-position: center;
  opacity: .78;
}

.page-home .home-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 17, 32, .94) 0%, rgba(10, 17, 32, .12) 46%, rgba(10, 17, 32, .96) 100%);
}

/* ---------- V3.1 升级要点 ---------- */
.page-home .v31-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

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

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

.page-home .v31-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--panel);
}

.page-home .v31-item__no {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--cyan);
}

.page-home .v31-item h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.page-home .v31-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 五个舱位 ---------- */
.page-home .berths {
  display: grid;
  gap: 16px;
}

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

@media (min-width: 1080px) {
  .page-home .berths {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
  }
  .page-home .berth--lead { grid-column: span 3; }
  .page-home .berth--side { grid-column: span 2; }
}

.page-home .berth {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 220ms var(--ease), background-color 220ms var(--ease), transform 220ms var(--ease);
}

.page-home .berth::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(47, 224, 200, .6), transparent);
  transition: opacity 220ms var(--ease);
}

.page-home .berth:hover,
.page-home .berth:focus-visible {
  border-color: var(--cyan);
  background-color: var(--home-tint);
  transform: translateY(-4px);
}

.page-home .berth:hover::before,
.page-home .berth:focus-visible::before { opacity: 1; }

.page-home .berth__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--cyan);
}

.page-home .berth__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.page-home .berth__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .berth__go {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange);
}

/* ---------- 本周节奏 ---------- */
.page-home .rhythm-banner {
  margin: 0 0 clamp(24px, 4vw, 40px);
}

.page-home .rhythm-banner img {
  display: block;
  width: 100%;
  height: clamp(170px, 26vw, 310px);
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-home .home-beat {
  flex: 0 0 auto;
  width: min(76vw, 330px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.page-home .home-beat__when {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--cyan);
}

.page-home .home-beat__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
}

.page-home .home-beat__bar {
  display: block;
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: var(--amber);
}

.page-home .home-beat__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .rhythm-side {
  display: grid;
  gap: 18px;
  margin-top: clamp(24px, 4vw, 40px);
}

@media (min-width: 900px) {
  .page-home .rhythm-side {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: stretch;
    gap: clamp(18px, 3vw, 28px);
  }
}

.page-home .rhythm-side__figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-home .rhythm-side__figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.page-home .rhythm-note {
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius);
}

.page-home .rhythm-note__title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.page-home .rhythm-note p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-soft);
}

/* ---------- 面板状态一览 ---------- */
.page-home .status-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

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

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

.page-home .status-cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(26px, 4vw, 42px) clamp(20px, 3vw, 32px);
  background: var(--ink);
}

.page-home .status-cell::before {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: var(--cyan);
}

.page-home .status-cell__row {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.page-home .status-cell__num {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 6.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--text);
}

.page-home .status-cell__unit {
  font-size: 14px;
  color: var(--muted);
}

.page-home .status-cell__label {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cyan);
}

.page-home .status-cell__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .status-band {
  margin: clamp(34px, 6vw, 60px) 0 0;
}

.page-home .status-band img {
  display: block;
  width: 100%;
  height: clamp(190px, 30vw, 370px);
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- 从这里开始 ---------- */
.page-home .home-start__box {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(47, 224, 200, .12) 0%, rgba(47, 224, 200, 0) 58%),
    var(--panel);
}

@media (min-width: 900px) {
  .page-home .home-start__box {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.page-home .home-start__text {
  margin: 14px 0 0;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-soft);
}

.page-home .home-start__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- 窄屏收敛 ---------- */
@media (max-width: 560px) {
  .page-home .home-hero__actions .btn,
  .page-home .home-start__actions .btn {
    width: 100%;
    text-align: center;
  }

  .page-home .home-beat { width: min(84vw, 320px); }

  .page-home .home-chapter { align-items: center; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .dial-tick,
  .page-home .dial-dot {
    animation: none;
  }

  .page-home .dial-dot { opacity: 1; }

  .page-home .dial-arc {
    animation: none;
    stroke-dashoffset: 0;
  }

  .page-home .berth {
    transition: none;
  }

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