.page-home {
  position: relative;
  isolation: isolate;
  width: min(100% - 2rem, 1320px);
  margin-inline: auto;
  padding: 2rem 0 4rem;
  overflow-x: clip;
}

.page-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, rgba(30, 140, 90, 0.22), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(0, 255, 135, 0.09), transparent 26rem),
    radial-gradient(circle at 80% 65%, rgba(212, 175, 55, 0.08), transparent 24rem),
    linear-gradient(180deg, var(--space-deep-2) 0%, var(--space-deep) 100%);
}

.page-home [id] {
  scroll-margin-top: 6rem;
}

.page-home a {
  -webkit-tap-highlight-color: transparent;
}

.page-home .home-hero {
  display: grid;
  gap: 2rem;
}

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

.page-home .home-rail {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.page-home .rail-heading {
  margin: 0;
  font-family: var(--font-num);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}

.page-home .rail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  padding: 0.125rem 0;
}

.page-home .rail-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ice);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-home .rail-nav-link span {
  color: var(--neon);
  font-family: var(--font-num);
  font-size: 0.75rem;
}

.page-home .rail-nav-link:hover,
.page-home .rail-nav-link:focus-visible {
  background: rgba(0, 255, 135, 0.14);
  border-color: rgba(0, 255, 135, 0.35);
  transform: translateX(4px);
  outline: none;
}

.page-home .rail-status {
  display: block;
  padding: 1.25rem;
}

.page-home .rail-state-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.page-home .status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 0.25rem rgba(0, 255, 135, 0.15);
}

.page-home .rail-status-num {
  margin: 0.5rem 0 0;
  font-family: var(--font-num);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--neon);
}

.page-home .rail-status-label {
  margin: 0.375rem 0 0;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.page-home .rail-status-desc {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(217, 242, 242, 0.75);
}

.page-home .home-promise {
  margin: 1rem 0 0;
  padding: 0.875rem 1rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: rgba(212, 175, 55, 0.07);
  color: rgba(217, 242, 242, 0.88);
  font-size: 0.85rem;
  line-height: 1.65;
}

.page-home .main-entry-grid {
  display: grid;
  gap: 1.25rem;
}

.page-home .intro-block {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(30, 140, 90, 0.2), rgba(11, 29, 51, 0.6));
  overflow: hidden;
}

.page-home .home-section-index {
  margin: 0;
  font-family: var(--font-num);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--neon);
}

.page-home h1 {
  margin: 0.75rem 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.page-home .title-divider {
  color: var(--gold);
  font-weight: 400;
  margin: 0 0.15em;
}

.page-home .title-mark {
  display: inline-block;
  color: var(--gold);
  transform: skew(var(--skew));
}

.page-home .intro-lead {
  max-width: 62ch;
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--neon);
  color: var(--ice);
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.92;
}

.page-home .intro-visual {
  aspect-ratio: 8 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--slate);
}

.page-home .intro-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .section-block {
  margin-top: 4.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .home-section-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.page-home .home-section-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.page-home .home-section-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(217, 242, 242, 0.72);
}

.page-home .today-zone {
  background: linear-gradient(90deg, rgba(0, 255, 135, 0.05), transparent 70%);
}

.page-home .log-grid {
  display: grid;
  gap: 1.5rem;
}

.page-home .log-list {
  position: relative;
  padding-left: 1.5rem;
}

.page-home .log-list::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--neon), var(--gui-zhou));
  opacity: 0.6;
}

.page-home .log-item {
  position: relative;
  margin-bottom: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--neon);
  background: rgba(42, 59, 76, 0.5);
}

.page-home .log-item::before {
  content: "";
  position: absolute;
  left: -1.65rem;
  top: 1.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(0, 255, 135, 0.7);
}

.page-home .log-item h3 {
  margin: 0 0 0.375rem;
  font-size: 1.05rem;
}

.page-home .log-item p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(217, 242, 242, 0.78);
}

.page-home .log-time {
  margin: 0 0 0.25rem;
  font-family: var(--font-num);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.page-home .clip-preview {
  align-self: start;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 140, 90, 0.16), rgba(11, 29, 51, 0.55));
  overflow: hidden;
}

.page-home .clip-media {
  aspect-ratio: 8 / 5;
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .clip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .clip-body {
  margin-top: 1rem;
  padding: 1rem;
}

.page-home .clip-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

.page-home .clip-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.page-home .clip-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0;
}

.page-home .clip-item summary {
  cursor: pointer;
  color: var(--ice);
  font-weight: 600;
  font-size: 0.9rem;
  list-style-position: outside;
  transition: color 0.3s var(--ease);
}

.page-home .clip-item summary:hover,
.page-home .clip-item summary:focus-visible {
  color: var(--neon);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-home .clip-item p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(217, 242, 242, 0.78);
}

.page-home .clip-btn {
  margin-top: 1rem;
}

.page-home .status-zone {
  border-top-color: rgba(0, 255, 135, 0.18);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 20%, rgba(30, 140, 90, 0.22), transparent 50%),
    rgba(11, 29, 51, 0.45);
}

.page-home .status-zone .home-section-note {
  border-left: 3px solid var(--neon);
  padding-left: 0.75rem;
}

.page-home .status-grid {
  display: grid;
  gap: 1.5rem;
}

.page-home .status-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
}

.page-home .status-ring {
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 62%),
    conic-gradient(from 210deg, var(--neon), var(--slate), var(--neon));
}

.page-home .status-ring-inner {
  width: 8.5rem;
  height: 8.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--space-deep-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 30px rgba(0, 255, 135, 0.2);
}

.page-home .status-ring strong {
  display: block;
  font-family: var(--font-num);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--neon);
}

.page-home .status-ring small {
  margin-top: 0.375rem;
  font-size: 0.8rem;
  color: var(--ice);
  opacity: 0.8;
}

.page-home .status-details {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 0.625rem;
}

.page-home .status-details > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.page-home .status-details dt {
  color: rgba(217, 242, 242, 0.7);
  font-size: 0.875rem;
}

.page-home .status-details dd {
  margin: 0;
  color: var(--ice);
  font-weight: 600;
  font-size: 0.875rem;
}

.page-home .status-details dd.num {
  font-family: var(--font-num);
  color: var(--neon);
}

.page-home .trend-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--slate);
  display: flex;
  flex-direction: column;
}

.page-home .trend-title {
  margin: 0 0 1rem;
  color: var(--ice);
  font-weight: 600;
}

.page-home .trend-chart {
  display: block;
  width: 100%;
  height: 11rem;
  overflow: visible;
}

.page-home .trend-chart polyline {
  fill: none;
  stroke: var(--neon);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(0, 255, 135, 0.6));
}

@media (prefers-reduced-motion: no-preference) {
  .page-home .trend-chart polyline {
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
    animation: page-home-draw 1.6s var(--ease) forwards;
  }
}

@keyframes page-home-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.page-home .trend-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(217, 242, 242, 0.72);
}

.page-home .focus-zone {
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 107, 0, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(42, 59, 76, 0.35), transparent);
}

.page-home .focus-grid {
  display: grid;
  gap: 1.5rem;
}

.page-home .table-wrap {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(42, 59, 76, 0.55);
  overflow-x: auto;
}

.page-home .focus-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.page-home .focus-table caption {
  padding: 0.75rem 1rem;
  text-align: left;
  color: rgba(217, 242, 242, 0.7);
  font-size: 0.85rem;
  caption-side: bottom;
}

.page-home .focus-table th {
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.page-home .focus-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--ice);
  white-space: nowrap;
}

.page-home .focus-table tr:last-child td {
  border-bottom: 0;
}

.page-home .focus-table td:first-child {
  font-family: var(--font-num);
  color: var(--neon);
}

.page-home .num {
  font-family: var(--font-num);
  font-weight: 700;
}

.page-home .num--gold {
  color: var(--gold);
}

.page-home .data-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 255, 135, 0.2);
  background: rgba(0, 255, 135, 0.08);
  color: var(--neon);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-home .data-tag--gold {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
}

.page-home .focus-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.page-home .focus-visual {
  aspect-ratio: 2 / 1;
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .focus-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .focus-card-note {
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(217, 242, 242, 0.85);
  font-size: 0.875rem;
  line-height: 1.7;
}

.page-home .focus-summary {
  margin: 0.75rem 0 0;
}

.page-home .device-zone {
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(30, 140, 90, 0.12), transparent 70%);
}

.page-home .device-zone .home-section-note {
  border-left: 3px solid var(--gold);
  padding-left: 0.75rem;
}

.page-home .device-grid {
  display: grid;
  gap: 1.5rem;
}

.page-home .device-card {
  padding: 1.5rem;
}

.page-home .device-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.page-home .device-card > p {
  margin: 0;
  color: rgba(217, 242, 242, 0.8);
  font-size: 0.9rem;
  line-height: 1.7;
}

.page-home .steps-list {
  margin: 1.25rem 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
  color: rgba(217, 242, 242, 0.85);
  font-size: 0.9rem;
  line-height: 1.6;
}

.page-home .device-card .btn-action {
  margin-top: 0.75rem;
}

.page-home .device-visual {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .device-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .quick-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  grid-template-columns: 1fr;
}

.page-home .quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ice);
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.page-home .quick-card:hover,
.page-home .quick-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 135, 0.4);
  background: rgba(0, 255, 135, 0.06);
  outline: none;
}

.page-home .quick-index {
  margin: 0;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.page-home .quick-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.page-home .quick-card p:not(.quick-index) {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(217, 242, 242, 0.75);
}

.page-home .link-arrow {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--neon);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation: none !important;
    transition: none !important;
  }
}

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

@media (min-width: 900px) {
  .page-home .log-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
    align-items: start;
  }

  .page-home .status-grid {
    grid-template-columns: 360px minmax(0, 1fr);
    align-items: stretch;
  }

  .page-home .focus-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    align-items: start;
  }

  .page-home .device-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: stretch;
  }
}

@media (min-width: 1024px) {
  .page-home {
    width: min(100% - 3rem, 1320px);
    padding-top: 2.5rem;
  }

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

  .page-home .home-rail {
    position: sticky;
    top: 6.5rem;
  }

  .page-home .rail-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .page-home .main-entry-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: stretch;
  }
}

@media (min-width: 1100px) {
  .page-home .quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
