.page-home {
  --home-tl-pad: clamp(20px, 3vw, 34px);
  --home-rail: rgba(199, 255, 74, 0.16);
  display: block;
  overflow-x: hidden;
  background: var(--night);
}

.page-home a:focus-visible,
.page-home button:focus-visible,
.page-home summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  border-radius: 4px;
}

.page-home .home-slash {
  display: block;
  height: 3px;
  width: clamp(64px, 14vw, 180px);
  margin: 0 0 clamp(20px, 3vw, 34px);
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  transform: skewX(-24deg);
}

/* ---------- 上下文条 ---------- */
.page-home .home-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 18px 0 16px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--slate);
  border-bottom: 1px solid var(--line-2);
}

.page-home .home-context-tag {
  color: var(--mist);
  font-weight: 600;
}

.page-home .home-context-sep {
  width: 1px;
  height: 12px;
  background: var(--line-2);
}

.page-home .home-context-item .mono {
  color: var(--cyan);
  font-weight: 700;
}

.page-home .home-copy {
  margin-left: auto;
  font-size: 12px;
}

/* ---------- 首屏主题声明 ---------- */
.page-home .home-open {
  position: relative;
  padding-top: clamp(46px, 7vw, 92px);
  padding-bottom: clamp(56px, 7vw, 100px);
}

.page-home .home-open::before {
  content: "";
  position: absolute;
  top: 6%;
  right: -12%;
  width: 46%;
  height: 72%;
  background: linear-gradient(118deg, transparent 0%, rgba(53, 242, 192, 0.1) 42%, rgba(199, 255, 74, 0.16) 100%);
  transform: skewY(-6deg);
  pointer-events: none;
  z-index: 0;
}

.page-home .home-open > .container {
  position: relative;
  z-index: 1;
}

.page-home .home-open-grid {
  display: grid;
  gap: clamp(34px, 5vw, 64px);
}

.page-home .home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .home-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(199, 255, 74, 0.16);
}

.page-home .home-open-main h1 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 6.4vw, 4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--mist);
  max-width: 13em;
}

.page-home .home-h1-accent {
  color: var(--lime);
}

.page-home .home-lede {
  max-width: 34em;
  margin: 0 0 14px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.85;
  color: var(--mist);
}

.page-home .home-lede-2 {
  max-width: 34em;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

.page-home .home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin: 30px 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--line-2);
}

.page-home .home-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .home-stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lime);
}

.page-home .home-stat-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.page-home .home-open-visual {
  position: relative;
}

.page-home .media-frame--tilt {
  transform: rotate(-1.6deg);
}

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

.page-home .media-caption {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 一级入口索引 ---------- */
.page-home .home-index {
  padding-top: clamp(60px, 7vw, 108px);
  padding-bottom: clamp(60px, 7vw, 108px);
}

.page-home .home-entry-list {
  list-style: none;
  margin: clamp(28px, 4vw, 46px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line-2);
}

.page-home .home-entry {
  border-bottom: 1px solid var(--line-2);
}

.page-home .home-entry-link {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas:
    "no name route"
    "no desc desc";
  align-items: center;
  column-gap: clamp(12px, 2vw, 22px);
  row-gap: 8px;
  padding: clamp(18px, 2.4vw, 26px) clamp(10px, 1.8vw, 20px);
  color: inherit;
  text-decoration: none;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .home-entry-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 2px;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur) var(--ease);
}

.page-home .home-entry-link:hover {
  background: var(--glass);
  transform: translateY(-2px);
}

.page-home .home-entry-link:hover::before,
.page-home .home-entry-link:focus-visible::before {
  transform: scaleY(1);
}

.page-home .home-entry-no {
  grid-area: no;
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
}

.page-home .home-entry-name {
  grid-area: name;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.page-home .home-entry-route {
  grid-area: route;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--slate);
  white-space: nowrap;
}

.page-home .home-entry-desc {
  grid-area: desc;
  max-width: 52em;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.page-home .home-entry-name .tag {
  font-size: 11px;
  font-weight: 600;
}

.page-home .home-keys {
  margin-top: clamp(22px, 3vw, 32px);
}

.page-home .home-keys .disclosure-trigger {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  list-style: none;
}

.page-home .home-keys .disclosure-trigger::-webkit-details-marker {
  display: none;
}

.page-home .home-keys .disclosure-panel {
  padding: 12px 0 0;
}

.page-home .home-keys-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--slate);
}

/* ---------- 资料区速览 ---------- */
.page-home .home-data {
  position: relative;
  padding-block: clamp(72px, 9vw, 132px);
  clip-path: polygon(0 0, 100% 2.4%, 100% 100%, 0 97.6%);
  background:
    radial-gradient(120% 78% at 88% 0%, rgba(53, 242, 192, 0.1), transparent 58%),
    linear-gradient(180deg, var(--stand), #08291F 62%, var(--night));
}

.page-home .home-data-grid {
  display: grid;
  gap: clamp(24px, 3.4vw, 42px);
  margin-bottom: clamp(26px, 4vw, 44px);
}

.page-home .home-data-cards {
  display: grid;
  gap: 14px;
}

.page-home .home-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.page-home .home-dot--cyan {
  background: var(--cyan);
}

.page-home .home-dot--orange {
  background: var(--orange);
}

.page-home .home-data-table {
  margin-top: clamp(20px, 3vw, 34px);
  padding: clamp(20px, 3vw, 32px);
}

.page-home .home-subtitle {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.page-home .home-table-scroll {
  overflow-x: auto;
}

.page-home .home-table-caption {
  padding-bottom: 12px;
  font-size: 12px;
  text-align: left;
  color: var(--slate);
}

.page-home .home-data-table .data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.page-home .home-data-table .data-table th,
.page-home .home-data-table .data-table td {
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  line-height: 1.65;
  border-bottom: 1px solid var(--line-2);
}

.page-home .home-data-table .data-table thead th {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--slate);
  border-bottom-color: var(--line-2);
}

.page-home .home-data-table .data-table tbody th {
  color: var(--mist);
  font-weight: 700;
}

.page-home .home-data-table .data-table tbody td {
  color: var(--slate);
}

/* ---------- 设备与收藏路径 ---------- */
.page-home .home-device {
  padding-block: clamp(60px, 7vw, 112px);
}

.page-home .home-device-grid {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
}

.page-home .home-device-paths {
  display: grid;
  gap: 16px;
}

.page-home .home-path {
  position: relative;
  padding: clamp(20px, 2.6vw, 30px) clamp(18px, 2.6vw, 32px);
  background: var(--glass);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  backdrop-filter: blur(6px);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .home-path:hover {
  transform: translateY(-2px);
  border-color: var(--lime);
  background: var(--glass-2);
}

.page-home .home-path-no {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
}

.page-home .home-path-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--mist);
}

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

.page-home .home-path-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(199, 255, 74, 0.4);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .home-path-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- 资料口径更新 ---------- */
.page-home .home-log {
  padding-block: clamp(60px, 7vw, 112px);
}

.page-home .home-log-grid {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  margin-top: clamp(28px, 4vw, 46px);
}

.page-home .home-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--home-tl-pad);
  border-left: 1px solid var(--line-2);
}

.page-home .home-tl-item {
  position: relative;
  padding-bottom: clamp(22px, 3vw, 34px);
}

.page-home .home-tl-item:last-child {
  padding-bottom: 0;
}

.page-home .home-tl-item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: calc(var(--home-tl-pad) * -1 - 5px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--slate);
  border: 2px solid var(--night);
}

.page-home .home-tl-item--now::before {
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(199, 255, 74, 0.18);
  border-color: var(--stand);
}

.page-home .home-tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.page-home .home-tl-round {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.page-home .home-tl-item--origin .home-tl-round {
  color: var(--orange);
}

.page-home .home-tl-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.page-home .home-tl-text {
  margin: 0;
  max-width: 46em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

/* ---------- 收尾帮助 ---------- */
.page-home .home-help {
  padding-block: clamp(52px, 6.4vw, 100px);
}

.page-home .home-help-panel {
  padding: clamp(24px, 3.4vw, 44px);
  border-left: 3px solid var(--lime);
}

.page-home .home-help-title {
  margin: 0 0 22px;
  color: var(--mist);
}

.page-home .home-help-list {
  margin: 0;
  display: grid;
  gap: 18px;
}

.page-home .home-help-row dt {
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mist);
}

.page-home .home-help-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

.page-home .home-help-row dd a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .home-help-row dd a:hover {
  color: var(--lime);
}

/* ---------- 桌面端 ---------- */
@media (min-width: 760px) {
  .page-home .home-data-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
  }

  .page-home .home-device-grid {
    grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
    align-items: center;
  }
}

@media (min-width: 960px) {
  .page-home .home-open-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: center;
  }

  .page-home .home-open-visual {
    margin-top: 18px;
  }

  .page-home .home-log-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
  }

  .page-home .home-log-visual {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 520px) {
  .page-home .home-entry-link {
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-areas:
      "no name"
      "no route"
      "no desc";
    row-gap: 6px;
  }

  .page-home .home-entry-no {
    font-size: 13px;
  }

  .page-home .home-stats {
    gap: 12px 22px;
  }

  .page-home .home-copy {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-entry-link,
  .page-home .home-path,
  .page-home .home-path-link {
    transition: none !important;
  }

  .page-home .home-entry-link:hover,
  .page-home .home-path:hover {
    transform: none;
  }
}
