.page-home {
  --home-cut: 16px;
  --home-card-bg: rgba(10, 36, 32, 0.86);
  --home-card-bg-soft: rgba(13, 46, 40, 0.62);
  background:
    radial-gradient(circle at 85% 4%, rgba(168, 85, 247, 0.14), transparent 52%),
    radial-gradient(circle at 0% 42%, rgba(255, 138, 61, 0.09), transparent 48%);
}

.page-home .section {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 4.75rem);
}

.page-home .breadcrumb {
  padding-top: clamp(1rem, 3vw, 1.6rem);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-home .breadcrumb-list a {
  color: var(--mist);
  text-decoration: none;
}

.page-home .breadcrumb-list a:hover {
  color: var(--cyan);
}

/* ---------- 首屏框景 ---------- */
.page-home .home-hero {
  padding-top: clamp(1rem, 3vw, 1.75rem);
}

.page-home .hero-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 3.25rem);
  border: 1px solid var(--edge);
  background: linear-gradient(155deg, rgba(4, 17, 15, 0.94), rgba(10, 36, 32, 0.9));
  clip-path: polygon(
    var(--home-cut) 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%,
    0 var(--home-cut)
  );
}

.page-home .hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(4, 17, 15, 0.96) 40%, rgba(4, 17, 15, 0.55) 100%),
    linear-gradient(0deg, rgba(4, 17, 15, 0.85), rgba(4, 17, 15, 0.2));
}

.page-home .hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(24, 245, 201, 0.35) 0 1px, transparent 1px 18px) top left / 180px 8px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 138, 61, 0.4) 0 1px, transparent 1px 18px) bottom right / 180px 8px no-repeat;
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.1);
}

.page-home .hero-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
}

.page-home .hero-copy .display-title {
  font-size: clamp(2.1rem, 7.4vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 1rem;
  color: var(--ink);
  text-shadow: 0 0 22px rgba(127, 255, 232, 0.28);
  transform: skewX(-5deg);
}

.page-home .hero-lead {
  max-width: 34ch;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.6vw, 1.06rem);
  line-height: 1.8;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.page-home .hero-actions .btn {
  text-decoration: none;
}

.page-home .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  color: var(--muted);
}

.page-home .hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--edge);
}

.page-home .hero-meta-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cyan);
}

.page-home .hero-device {
  position: relative;
  display: grid;
  gap: 0.9rem;
}

.page-home .hero-device-img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-inline: auto;
  border: 1px solid var(--edge);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
}

.page-home .island-preview {
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: rgba(10, 36, 32, 0.9);
  border: 1px solid var(--edge);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.page-home .island-preview li + li {
  border-top: 1px dashed rgba(30, 90, 78, 0.8);
}

.page-home .island-preview a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.5rem;
  color: var(--ink);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.page-home .island-preview a:hover,
.page-home .island-preview a:focus-visible {
  color: var(--cyan);
  background: rgba(24, 245, 201, 0.07);
}

.page-home .island-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--orange);
  letter-spacing: 0.1em;
}

/* ---------- 栏目速览 ---------- */
.page-home .section-band {
  height: 4px;
  width: min(180px, 40%);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  border-radius: 2px;
}

.page-home .channels-head {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: end;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .section-title {
  font-size: clamp(1.5rem, 4.6vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0.5rem 0 0.7rem;
  color: var(--ink);
}

.page-home .section-lead {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

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

.page-home .channel-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.page-home .channel-card {
  position: relative;
  padding: 1.35rem 1.25rem 1.15rem;
  background: var(--home-card-bg);
  border: 1px solid var(--edge);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: border-color 200ms ease, transform 200ms ease;
}

.page-home .channel-card:nth-child(even) {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.page-home .channel-card:hover {
  border-color: rgba(24, 245, 201, 0.55);
  transform: translateY(-2px);
}

.page-home .channel-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(127, 255, 232, 0.28);
  letter-spacing: 0.06em;
}

.page-home .channel-title {
  margin: 0.2rem 0 0.5rem;
  font-size: 1.2rem;
  color: var(--ink);
}

.page-home .channel-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .channel-card details {
  margin-top: 1rem;
}

.page-home .channel-card details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(30, 90, 78, 0.9);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-home .channel-card details > summary::-webkit-details-marker {
  display: none;
}

.page-home .channel-card details > summary::after {
  content: "+";
  font-size: 1rem;
  color: var(--cyan);
}

.page-home .channel-card details[open] > summary::after {
  content: "−";
}

.page-home .channel-card details > p {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--cyan);
}

/* ---------- 会员与联系 ---------- */
.page-home .member-panel {
  display: grid;
  gap: clamp(1.25rem, 3.5vw, 2.25rem);
  padding: clamp(1.25rem, 4vw, 2.75rem);
  background: linear-gradient(160deg, rgba(10, 36, 32, 0.95), rgba(4, 17, 15, 0.92));
  border: 1px solid var(--edge);
  border-left: 3px solid var(--cyan);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}

.page-home .steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.page-home .step {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.15rem;
  border-left: 2px solid rgba(30, 90, 78, 0.9);
}

.page-home .step::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 1.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(24, 245, 201, 0.16);
}

.page-home .step-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.page-home .step-title {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.page-home .step p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .member-aside {
  padding: 1.25rem 1.15rem;
  background: var(--home-card-bg-soft);
  border: 1px solid rgba(30, 90, 78, 0.9);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.page-home .aside-label {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.page-home .aside-mail {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 3.2vw, 1.12rem);
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}

.page-home .copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(24, 245, 201, 0.08);
  border: 1px solid rgba(24, 245, 201, 0.5);
  cursor: pointer;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  transition: background 180ms ease, color 180ms ease;
}

.page-home .copy-btn:hover,
.page-home .copy-btn[data-copied] {
  background: var(--cyan);
  color: var(--night);
}

.page-home .aside-phone {
  margin: 0.9rem 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--mist);
}

.page-home .aside-note {
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .aside-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 0.6rem;
}

/* ---------- 双版本 ---------- */
.page-home .versions-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.page-home .version-list {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.page-home .version-list li {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
  background: rgba(10, 36, 32, 0.55);
  border-left: 2px solid rgba(30, 90, 78, 0.9);
}

.page-home .version-list .tag {
  display: inline-block;
  margin-right: 0.5rem;
}

.page-home .versions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.page-home .versions-actions .btn {
  text-decoration: none;
}

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

.page-home .versions-caption {
  margin: 0.8rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-left: 0.75rem;
  border-left: 2px solid var(--violet);
}

/* ---------- 更新节选 ---------- */
.page-home .updates-head {
  display: grid;
  gap: 1rem;
  align-items: end;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.page-home .updates-more {
  justify-self: start;
  text-decoration: none;
}

.page-home .update-rail {
  list-style: none;
  margin: 0;
  padding: 0 0 0.75rem;
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .update-rail::-webkit-scrollbar {
  height: 6px;
}

.page-home .update-rail::-webkit-scrollbar-thumb {
  background: rgba(24, 245, 201, 0.4);
  border-radius: 3px;
}

.page-home .update-card {
  flex: 0 0 min(280px, 82vw);
  scroll-snap-align: start;
  padding: 1.15rem 1.1rem;
  background: var(--home-card-bg);
  border: 1px solid var(--edge);
  border-top: 3px solid var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.page-home .update-card:nth-child(2n) {
  border-top-color: var(--violet);
}

.page-home .update-card:nth-child(3n) {
  border-top-color: var(--cyan);
}

.page-home .update-time {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-home .update-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.page-home .update-card p:not(.update-time) {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 夜色收束 ---------- */
.page-home .night-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1.35rem, 4vw, 2.75rem);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 138, 61, 0.22), transparent 46%),
    radial-gradient(circle at 8% 88%, rgba(168, 85, 247, 0.2), transparent 48%),
    linear-gradient(180deg, #04110f, #07201c);
  border: 1px solid var(--edge);
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
}

.page-home .night-copy p {
  margin: 0 0 1.25rem;
  max-width: 48ch;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .night-copy p a {
  color: var(--mist);
}

.page-home .night-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.page-home .night-links .btn {
  text-decoration: none;
}

.page-home .night-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
}

.page-home .night-stats > div {
  padding: 0.75rem 0.85rem;
  background: rgba(4, 17, 15, 0.6);
  border: 1px solid rgba(30, 90, 78, 0.85);
}

.page-home .night-stats dt {
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted);
}

.page-home .night-stats dd {
  margin: 0.3rem 0 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cyan);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .page-home .hero-device-img {
    max-width: 100%;
  }

  .page-home .channels-head,
  .page-home .updates-head {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }

  .page-home .channels-media {
    justify-self: end;
    max-width: 420px;
  }

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

  .page-home .channel-card:nth-child(3n + 2) {
    transform: translateY(14px);
  }

  .page-home .channel-card:nth-child(3n + 2):hover {
    transform: translateY(11px);
  }

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

  .page-home .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .page-home .step {
    border-left: none;
    border-top: 2px solid rgba(30, 90, 78, 0.9);
    padding: 1.15rem 0 0;
  }

  .page-home .step::before {
    left: 0;
    top: -7px;
  }

  .page-home .versions-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .page-home .night-panel {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (min-width: 1120px) {
  .page-home .hero-frame {
    --home-cut: 24px;
  }

  .page-home .channel-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
  }

  .page-home .channel-card:nth-child(3n + 2) {
    transform: translateY(0);
  }

  .page-home .channel-card:nth-child(even) {
    transform: translateY(20px);
  }

  .page-home .channel-card:nth-child(even):hover {
    transform: translateY(17px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .channel-card,
  .page-home .island-preview a,
  .page-home .copy-btn {
    transition: none;
  }

  .page-home .channel-card:hover,
  .page-home .channel-card:nth-child(even):hover,
  .page-home .channel-card:nth-child(3n + 2):hover {
    transform: none;
  }
}
