.page-home {
  --home-gap: clamp(18px, 3.4vw, 34px);
  --home-block-gap: clamp(48px, 7.5vw, 88px);
  --home-halo: radial-gradient(circle at 70% 18%, rgba(255, 176, 32, 0.52) 0%, rgba(255, 138, 61, 0.3) 28%, rgba(255, 75, 43, 0.16) 48%, rgba(11, 18, 38, 0) 72%);
  padding-bottom: clamp(40px, 6vw, 76px);
  overflow-x: clip;
}

.page-home a:focus-visible,
.page-home summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.page-home .text-link {
  color: var(--sun);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .text-link:hover {
  color: var(--amber);
}

/* ---------- 页面上下文 ---------- */
.page-home .home-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 6px;
}

.page-home .home-context .breadcrumb {
  margin: 0;
}

.page-home .home-context__note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  align-items: stretch;
  padding-top: 20px;
}

.page-home .hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.page-home .hero-copy h1 {
  margin: 4px 0 0;
  font-size: clamp(29px, 5.6vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.page-home .home-lead {
  margin: 0;
  max-width: 34em;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.78;
  color: var(--text-dim);
}

.page-home .entry-rig {
  position: relative;
  margin-top: 6px;
  padding: clamp(20px, 4vw, 30px);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(22, 32, 58, 0.98), rgba(11, 18, 38, 0.98));
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.page-home .entry-rig::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -130px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--home-halo);
  pointer-events: none;
}

.page-home .entry-rig::after {
  content: "";
  position: absolute;
  left: -100px;
  bottom: -140px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 210, 196, 0.22), rgba(43, 210, 196, 0) 70%);
  pointer-events: none;
}

.page-home .entry-rig > * {
  position: relative;
  z-index: 1;
}

.page-home .version-figure {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 0;
  font-weight: 900;
  line-height: 0.85;
}

.page-home .version-figure__num {
  display: inline-block;
  font-size: clamp(74px, 19vw, 124px);
  letter-spacing: -0.04em;
  color: var(--sun);
  font-variant-numeric: tabular-nums;
  transform: skewX(-2deg);
  text-shadow: 0 10px 44px rgba(255, 176, 32, 0.34);
}

.page-home .version-figure__unit {
  font-size: clamp(15px, 2.2vw, 20px);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-dim);
}

.page-home .entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.page-home .entry-actions .btn {
  min-height: 50px;
  font-size: 16px;
}

.page-home .entry-orbit {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .entry-orbit li {
  display: flex;
}

.page-home .entry-orbit a {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border: 2px solid rgba(36, 48, 77, 0.92);
  border-top-width: 4px;
  border-radius: var(--radius-sm);
  background: rgba(11, 18, 38, 0.72);
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.page-home .entry-orbit li:nth-child(1) a {
  border-top-color: var(--sun);
}

.page-home .entry-orbit li:nth-child(2) a {
  border-top-color: var(--flare);
}

.page-home .entry-orbit li:nth-child(3) a {
  border-top-color: var(--cyan);
}

.page-home .entry-orbit a span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}

.page-home .entry-orbit a:hover {
  background: rgba(22, 32, 58, 0.94);
}

.page-home .hero-visual {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 340px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--space);
  overflow: hidden;
}

.page-home .hero-visual::before {
  content: "";
  position: absolute;
  top: -14%;
  right: -22%;
  width: 120%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--home-halo);
  pointer-events: none;
  animation: home-corona 16s ease-in-out infinite alternate;
}

.page-home .hero-visual::after {
  content: "";
  position: absolute;
  left: -18%;
  bottom: -26%;
  width: 78%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 75, 43, 0.32), rgba(255, 75, 43, 0) 68%);
  pointer-events: none;
}

@keyframes home-corona {
  from {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 0.88;
  }
  to {
    transform: scale(1.12) translate3d(-3%, 4%, 0);
    opacity: 1;
  }
}

.page-home .hero-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
}

.page-home .hero-figure__frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
}

.page-home .hero-figure__frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-height: 320px;
  aspect-ratio: 6 / 7;
  object-fit: cover;
}

/* ---------- 章节骨架 ---------- */
.page-home .home-block {
  padding-top: var(--home-block-gap);
}

.page-home .section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 46em;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.page-home .section-title {
  margin: 0;
  transform: skewX(-2deg);
  transform-origin: left center;
}

.page-home .section-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-dim);
}

/* ---------- 版本速览 ---------- */
.page-home .version-notes {
  padding: clamp(18px, 3vw, 26px);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(22, 32, 58, 0.94), rgba(11, 18, 38, 0.94));
  box-shadow: var(--shadow-panel);
}

.page-home .version-notes > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}

.page-home .version-notes > summary::-webkit-details-marker {
  display: none;
}

.page-home .version-notes > summary::marker {
  content: "";
}

.page-home .version-notes > summary::after {
  content: "＋";
  margin-left: auto;
  font-size: 20px;
  line-height: 1;
  color: var(--sun);
}

.page-home .version-notes[open] > summary::after {
  content: "－";
}

.page-home .version-notes__label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.page-home .version-notes__list {
  list-style: none;
  counter-reset: vnote;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .version-notes__list li {
  position: relative;
  counter-increment: vnote;
  padding: 16px 16px 16px 56px;
  border: 2px solid rgba(36, 48, 77, 0.92);
  border-radius: var(--radius-sm);
  background: rgba(11, 18, 38, 0.62);
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-dim);
}

.page-home .version-notes__list li::before {
  content: counter(vnote, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 15px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--sun);
  color: var(--text-on-sun);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.page-home .home-band {
  margin: clamp(20px, 3vw, 30px) 0 0;
}

.page-home .home-band__frame {
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--space);
}

.page-home .home-band__frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home .home-band .figure__cap {
  margin-top: 10px;
}

/* ---------- 每周节奏 ---------- */
.page-home .week-strip {
  display: grid;
  gap: 16px;
}

.page-home .week-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 32, 58, 0.88);
  box-shadow: var(--shadow-panel);
}

.page-home .week-card:nth-child(2) {
  border-color: rgba(255, 176, 32, 0.5);
}

.page-home .week-card__tag {
  align-self: flex-start;
}

.page-home .week-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.42;
  letter-spacing: -0.01em;
}

.page-home .week-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
}

.page-home .week-band {
  margin: 22px 0 0;
}

.page-home .week-band__frame {
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--space);
}

.page-home .week-band__frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- 按设备找入口 ---------- */
.page-home .device-layout {
  display: grid;
  gap: var(--home-gap);
}

.page-home .device-picker {
  position: relative;
  padding: clamp(18px, 3vw, 26px);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 32, 58, 0.72);
}

.page-home .device-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-home .device-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.page-home .device-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 18, 38, 0.8);
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.page-home .device-tab:hover {
  border-color: rgba(255, 176, 32, 0.55);
  color: var(--text);
}

.page-home #dev-small:checked ~ .device-controls label[for="dev-small"],
.page-home #dev-large:checked ~ .device-controls label[for="dev-large"],
.page-home #dev-pad:checked ~ .device-controls label[for="dev-pad"] {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--text-on-sun);
}

.page-home #dev-small:focus-visible ~ .device-controls label[for="dev-small"],
.page-home #dev-large:focus-visible ~ .device-controls label[for="dev-large"],
.page-home #dev-pad:focus-visible ~ .device-controls label[for="dev-pad"] {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.page-home .device-panel {
  display: none;
}

.page-home #dev-small:checked ~ .device-panels .device-panel--small,
.page-home #dev-large:checked ~ .device-panels .device-panel--large,
.page-home #dev-pad:checked ~ .device-panels .device-panel--pad {
  display: block;
}

.page-home .device-panel__title {
  margin: 0 0 6px;
  font-size: clamp(19px, 2.6vw, 23px);
  line-height: 1.4;
}

.page-home .device-panel__meta {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .device-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .device-steps li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-dim);
}

.page-home .step-dot {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid var(--sun);
  border-radius: 50%;
  color: var(--sun);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.page-home .device-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 2px dashed var(--line);
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .device-visual {
  margin: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--space);
  overflow: hidden;
}

.page-home .device-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .device-visual figcaption {
  padding: 14px 16px;
  border-top: 2px solid var(--line);
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- 常见问题 ---------- */
.page-home .faq-list {
  display: grid;
  gap: 14px;
}

.page-home .faq-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 2px solid var(--line);
  border-left-width: 6px;
  border-left-color: var(--flare);
  border-radius: var(--radius-sm);
  background: rgba(22, 32, 58, 0.74);
}

.page-home .faq-item h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.page-home .faq-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
}

.page-home .faq-foot {
  margin: clamp(20px, 3vw, 28px) 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
}

/* ---------- 响应式 ---------- */
@media (max-width: 420px) {
  .page-home .entry-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

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

@media (min-width: 760px) {
  .page-home .week-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .version-notes__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (min-width: 940px) {
  .page-home .home-hero {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  }

  .page-home .device-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-visual::before {
    animation: none;
  }

  .page-home .entry-orbit a,
  .page-home .device-tab {
    transition: none;
  }
}
