.page-home {
  --home-gap: clamp(32px, 6vw, 80px);
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-sans);
}

.page-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 77, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 77, 255, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 92% 56% at 50% 0%, #000 18%, transparent 82%);
  mask-image: radial-gradient(ellipse 92% 56% at 50% 0%, #000 18%, transparent 82%);
}

.page-home [data-section] {
  scroll-margin-top: 120px;
}

/* ---------- 面包屑 ---------- */
.page-home .breadcrumb {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(96px, 13vh, 148px) var(--gutter) 0;
}

.page-home .breadcrumb-list {
  list-style: none;
}

.page-home .breadcrumb-list > li {
  list-style: none;
}

/* ---------- 首屏分屏 ---------- */
.page-home .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) var(--gutter) clamp(48px, 8vw, 104px);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: -12% -24% auto -24%;
  height: 560px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 28% 42%, rgba(124, 77, 255, .22), transparent 62%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 230, 118, .15), transparent 58%);
}

.page-home .hero-copy {
  min-width: 0;
}

.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 8px 18px 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(124, 77, 255, .12);
  color: var(--green-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
}

.page-home .hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(0, 230, 118, .9);
}

.page-home .hero-title {
  margin: 0;
  font-size: clamp(34px, 7.2vw, 78px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--white);
}

.page-home .hero-title em {
  font-style: normal;
  color: var(--green);
}

.page-home .hero-lede {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.78;
  color: var(--text);
}

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

.page-home .hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  margin: 34px 0 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.page-home .hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.page-home .hero-facts .mono {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.page-home .hero-visual {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-800);
}

.page-home .hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .74;
  filter: saturate(1.15) contrast(1.06);
}

.page-home .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(10, 14, 39, .9) 2%, transparent 46%),
    linear-gradient(to right, rgba(10, 14, 39, .6), transparent 52%),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px);
}

.page-home .hero-trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-home .hero-trace path {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 260 900;
  animation: home-trace 10s linear infinite;
}

.page-home .trace-line--a {
  stroke: url(#homeTraceGrad);
}

.page-home .trace-line--b {
  stroke: url(#homeTraceGrad2);
  animation-duration: 14s;
  animation-direction: reverse;
  opacity: .75;
}

@keyframes home-trace {
  from { stroke-dashoffset: 900; }
  to { stroke-dashoffset: -260; }
}

.page-home .hero-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--pill);
  border: 1px solid rgba(0, 230, 118, .4);
  background: rgba(10, 14, 39, .7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  font-size: 12.5px;
}

.page-home .hero-badge .mono {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

/* ---------- 章节目录 ---------- */
.page-home .section-directory {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(24px, 4vw, 48px);
}

.page-home .section-directory .directory-list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 10px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(19, 26, 58, .76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.page-home .section-directory .directory-list::-webkit-scrollbar {
  display: none;
}

.page-home .section-directory .directory-link {
  display: inline-block;
  padding: 9px 20px;
  border-radius: var(--pill);
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}

.page-home .section-directory .directory-link:hover,
.page-home .section-directory .directory-link[aria-current="true"] {
  color: var(--ink-900);
  background: var(--green);
}

/* ---------- 章节通用 ---------- */
.page-home .section {
  position: relative;
  padding: clamp(56px, 9vw, 116px) 0;
}

.page-home .chapter {
  position: relative;
  max-width: 780px;
  margin: 0 0 clamp(28px, 5vw, 56px);
}

.page-home .chapter--tight {
  margin-bottom: clamp(20px, 3vw, 34px);
}

.page-home .chapter-number {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: clamp(38px, 6.4vw, 72px);
  font-weight: 700;
  line-height: 1;
  color: rgba(0, 230, 118, .22);
  -webkit-text-stroke: 1.4px rgba(0, 230, 118, .55);
}

.page-home .chapter-title {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 50px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--white);
}

.page-home .chapter-lede {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.78;
  color: var(--text);
}

/* ---------- 更新节奏 ---------- */
.page-home .section--rhythm {
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 109, 0, .12), transparent 46%),
    radial-gradient(circle at 92% 80%, rgba(124, 77, 255, .14), transparent 50%);
}

.page-home .rhythm-track {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .rhythm-node {
  position: relative;
  padding: 24px 22px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, rgba(19, 26, 58, .92), rgba(10, 14, 39, .68));
  border-top: 3px solid var(--green);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.page-home .rhythm-node--warm {
  border-top-color: var(--amber);
}

.page-home .rhythm-node--cool {
  border-top-color: var(--violet);
}

.page-home .rhythm-node:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px -34px rgba(0, 230, 118, .55);
}

.page-home .rhythm-day {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--green-soft);
}

.page-home .rhythm-node--warm .rhythm-day {
  color: #ffb066;
}

.page-home .rhythm-node--cool .rhythm-day {
  color: #b9a5ff;
}

.page-home .rhythm-title {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
}

.page-home .rhythm-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--text-dim);
}

/* ---------- 登录后核心能力 ---------- */
.page-home .capability-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
}

.page-home .capability-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, rgba(19, 26, 58, .94), rgba(10, 14, 39, .72));
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}

.page-home .capability-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 230, 118, .5);
  box-shadow: 0 26px 62px -32px rgba(0, 230, 118, .5);
}

.page-home .capability-card .card-title {
  margin: 0;
  font-size: clamp(19px, 2.1vw, 23px);
  font-weight: 700;
  color: var(--white);
}

.page-home .capability-card .card-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--text);
}

.page-home .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.page-home .capability-card .card-figure {
  margin: 6px 0 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.page-home .capability-card .card-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.page-home .capability-card:hover .card-figure img {
  transform: scale(1.05);
}

/* ---------- 交锋与胜率数据 ---------- */
.page-home .data-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: center;
  padding: clamp(22px, 3.4vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 6%, rgba(0, 230, 118, .16), transparent 46%),
    radial-gradient(circle at 4% 96%, rgba(124, 77, 255, .2), transparent 52%),
    linear-gradient(150deg, rgba(19, 26, 58, .95), rgba(10, 14, 39, .9));
}

.page-home .data-copy {
  min-width: 0;
}

.page-home .data-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.page-home .data-stats .stat {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(10, 14, 39, .58);
}

.page-home .stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--green);
}

.page-home .stat-label {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.page-home .data-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .data-note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
}

.page-home .data-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-800);
}

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

.page-home .data-figure .media-caption {
  padding: 12px 18px 14px;
  font-size: 12.5px;
  color: var(--text-dim);
  background: rgba(10, 14, 39, .6);
}

/* ---------- 多端同步 ---------- */
.page-home .section--sync {
  background:
    radial-gradient(circle at 82% 22%, rgba(11, 61, 46, .7), transparent 56%),
    radial-gradient(circle at 10% 88%, rgba(124, 77, 255, .13), transparent 50%);
}

.page-home .sync-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}

.page-home .sync-visual {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 230, 118, .26);
  background: var(--ink-800);
}

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

.page-home .sync-copy {
  min-width: 0;
}

.page-home .sync-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .sync-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.74;
  color: var(--text);
}

.page-home .sync-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--green);
  box-shadow: 0 0 12px rgba(0, 230, 118, .5);
}

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

/* ---------- 信任与备案 ---------- */
.page-home .trust-panel {
  position: relative;
  padding: clamp(26px, 4.4vw, 60px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 230, 118, .28);
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 230, 118, .14), transparent 54%),
    radial-gradient(circle at 94% 100%, rgba(122, 31, 61, .34), transparent 58%),
    linear-gradient(160deg, rgba(11, 61, 46, .62), rgba(10, 14, 39, .92));
}

.page-home .trust-head {
  max-width: 720px;
}

.page-home .trust-head p {
  margin: 16px 0 0;
  font-size: clamp(14.5px, 1.5vw, 16.5px);
  line-height: 1.78;
  color: var(--text);
}

.page-home .trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: clamp(24px, 3.4vw, 38px);
}

.page-home .trust-item {
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(10, 14, 39, .5);
}

.page-home .trust-item h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.page-home .trust-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-dim);
}

.page-home .trust-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: clamp(24px, 3.4vw, 34px);
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.page-home .trust-contact a {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--green-soft);
  text-decoration: none;
  word-break: break-all;
  border-bottom: 1px dashed rgba(124, 255, 178, .45);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}

.page-home .trust-contact a:hover {
  color: var(--white);
  border-color: var(--white);
}

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

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

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

@media (min-width: 860px) {
  .page-home .rhythm-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    padding-top: 34px;
  }

  .page-home .rhythm-track::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 6%;
    right: 6%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--green), var(--violet) 55%, var(--amber));
    opacity: .6;
  }

  .page-home .rhythm-node::before {
    content: "";
    position: absolute;
    top: -26px;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(0, 230, 118, .14), 0 0 20px rgba(0, 230, 118, .7);
  }

  .page-home .rhythm-node--warm::before {
    background: var(--amber);
    box-shadow: 0 0 0 5px rgba(255, 109, 0, .14), 0 0 20px rgba(255, 109, 0, .7);
  }

  .page-home .rhythm-node--cool::before {
    background: var(--violet);
    box-shadow: 0 0 0 5px rgba(124, 77, 255, .16), 0 0 20px rgba(124, 77, 255, .7);
  }
}

@media (min-width: 900px) {
  .page-home .section-directory {
    position: sticky;
    top: 92px;
    z-index: 4;
  }

  .page-home .sync-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }

  .page-home .data-board {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

@media (min-width: 960px) {
  .page-home .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    padding-top: clamp(28px, 4vw, 56px);
    padding-bottom: clamp(60px, 8vw, 120px);
  }
}

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

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

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

  .page-home .rhythm-node:hover,
  .page-home .capability-card:hover {
    transform: none;
  }

  .page-home .capability-card:hover .card-figure img {
    transform: none;
  }
}
