:root {
  --bg: #00030d;
  --bg-deep: #00020c;
  --surface: #0a1427;
  --surface-strong: #0d1a31;
  --ink: #f4f7ff;
  --muted: #98a8c2;
  --muted-strong: #c6d1e4;
  --line: rgba(129, 166, 219, 0.2);
  --line-strong: rgba(59, 209, 255, 0.52);
  --cyan: #28d8ff;
  --cyan-soft: rgba(40, 216, 255, 0.16);
  --blue: #2f6bff;
  --green: #6ee7b7;
  --pink: #ff6b9e;
  --header-height: 78px;

  /* 液态玻璃描边渐变（青色 tint，替代实体边框）—— 取自 Bloom 提示词技法，改纯白为青色 */
  --glass-edge: linear-gradient(
    180deg,
    rgba(122, 240, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.12) 18%,
    transparent 42%,
    transparent 58%,
    rgba(255, 255, 255, 0.12) 82%,
    rgba(122, 240, 255, 0.5) 100%
  );
  --glass-edge-strong: linear-gradient(
    180deg,
    rgba(122, 240, 255, 0.85) 0%,
    rgba(122, 240, 255, 0.3) 18%,
    rgba(40, 216, 255, 0.12) 42%,
    rgba(40, 216, 255, 0.12) 58%,
    rgba(122, 240, 255, 0.3) 82%,
    rgba(122, 240, 255, 0.85) 100%
  );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.particle-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.82;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 36px;
  background: rgba(5, 11, 24, 0.6);
  border-bottom: 1px solid rgba(129, 166, 219, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
}

.brand-name {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 3px;
}

.header-right {
  display: flex;
  align-items: center;
}

.header-contact {
  position: relative;
  overflow: hidden;
  min-height: 36px;
  padding: 0 20px;
  background: rgba(40, 216, 255, 0.06);
  border: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

/* 液态玻璃渐变描边（无实体边框，仍有精致高光边） */
.header-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.4px;
  border-radius: inherit;
  background: var(--glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.header-contact:hover {
  background: var(--cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 24px rgba(40, 216, 255, 0.2);
  transform: scale(1.04);
}

.chapter-nav {
  position: fixed;
  top: 50%;
  right: 20px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-50%);
}

/* Vertical rail — centered on the dot column (dot sits at x≈5px) */
.chapter-nav::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 4.5px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(84, 140, 200, 0.2) 14%,
    rgba(84, 140, 200, 0.2) 86%,
    transparent
  );
}

/* Dot + number row */
.chapter-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  height: 36px;
  color: #5a6a82;
  font-size: 11px;
  font-family: Consolas, "Courier New", monospace;
  transition: color 180ms ease;
}

/* The dot — always centered on the rail */
.chapter-nav a::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border: 1.5px solid #4b5a72;
  border-radius: 50%;
  background: var(--bg);
  transition: all 220ms ease;
}

/* Chapter number label */
.chapter-nav a span {
  display: block;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px) scaleX(0.9);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}

/* Hover / active state */
.chapter-nav a:hover,
.chapter-nav a.is-active {
  color: var(--cyan);
}

/* Reveal number label on hover or when active */
.chapter-nav a:hover span,
.chapter-nav a.is-active span {
  opacity: 1;
  transform: translateX(0) scaleX(1);
}

/* Active dot */
.chapter-nav a.is-active::before {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(40, 216, 255, 0.55);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  100% { box-shadow: 0 0 12px rgba(40, 216, 255, 0.45); }
  50%      { box-shadow: 0 0 22px rgba(40, 216, 255, 0.7), 0 0 36px rgba(40, 216, 255, 0.25); }
}

main {
  position: relative;
  z-index: 2;
}

.chapter {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding: calc(var(--header-height) + 32px) 7vw 72px;
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;
}

.chapter::before,
.chapter::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.chapter::before {
  inset: var(--header-height) 6vw 48px;
  border-left: 1px solid rgba(129, 166, 219, 0.1);
  border-right: 1px solid rgba(129, 166, 219, 0.1);
}

/* after removed — no decorative accent line */

.chapter-inner {
  position: relative;
  z-index: 1;
  width: min(1360px, 100%);
  margin: auto;
}

/* ===== 章节氛围背景 (ambient) =====
   给深黑屏（能力 / 十年 / 联系）增加青色辉光 + 细网格 + 与导航序号呼应的幽灵数字，
   让平涂黑底变成有层次的“空间感”，内容始终在 z-index:1 之上、清晰可读。 */
.ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(58% 58% at var(--gx, 74%) var(--gy, 46%),
      rgba(40, 216, 255, 0.12), rgba(40, 216, 255, 0) 68%),
    linear-gradient(rgba(129, 166, 219, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(129, 166, 219, 0.045) 1px, transparent 1px) 0 0 / 48px 48px;
}

/* 底部一抹冷蓝，强化纵深 */
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 122%, rgba(47, 107, 255, 0.10), transparent 62%);
}

/* 与导航 01–06 序号呼应的幽灵数字，平涂黑底上的隐性“坐标” */
.ambient-ghost {
  position: absolute;
  right: 3vw;
  bottom: -0.14em;
  font-family: Inter, "Segoe UI", "PingFang SC", sans-serif;
  font-size: 38vh;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(129, 166, 219, 0.05);
  user-select: none;
}

/* 各屏差异化光位 */
.capabilities-chapter { --gx: 74%; --gy: 44%; }
.journey-chapter { --gx: 66%; --gy: 58%; }
.contact-chapter { --gx: 80%; --gy: 46%; }

.chapter-kicker {
  margin: 0 0 24px;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.chapter-kicker span {
  margin-right: 12px;
  color: var(--cyan);
}

.chapter h1,
.chapter h2,
.chapter h3,
.chapter p {
  margin-top: 0;
}

.chapter h1,
.chapter h2,
.chapter h3 {
  line-height: 1.14;
}

.chapter-heading h2 {
  max-width: 720px;
  margin-bottom: 26px;
  font-size: 54px;
  font-weight: 820;
  word-break: keep-all;
  overflow-wrap: normal;
}

.chapter-heading > p:last-child {
  max-width: 520px;
  color: var(--muted-strong);
  font-size: 17px;
}

/* ── Scroll-to-next indicator ── */
.next-chapter {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #5a7094;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 280ms ease;
}

.next-chapter::before {
  content: "";
  width: 14px;
  height: 14px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: scrollHint 2s ease-in-out infinite;
  margin-top: 2px;
}

.next-chapter:hover {
  color: var(--cyan);
}

.next-chapter:hover::before {
  animation: none;
  transform: rotate(45deg) translateY(3px);
  transition: transform 200ms ease;
}

@keyframes scrollHint {
  0%, 100% { opacity: 0.25; transform: rotate(45deg) translateY(0); }
  50%      { opacity: 0.7;  transform: rotate(45deg) translateY(5px); }
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.8fr);
  gap: 32px;
  align-items: center;
  min-height: calc(100svh - var(--header-height) - 120px);
  padding-bottom: 128px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  max-width: 720px;
}

.hero-copy h1 {
  margin-bottom: 24px;
  font-size: 92px;
  font-weight: 900;
}

.hero-statement {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
}

.hero-intro {
  max-width: 670px;
  margin-bottom: 34px;
  color: var(--muted-strong);
  font-size: 17px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease,
    transform 180ms ease, box-shadow 180ms ease;
}

.action:hover {
  transform: translateY(-2px);
}

.action-primary {
  background: var(--cyan);
  border: 1px solid var(--cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 30px rgba(40, 216, 255, 0.22);
}

.action-primary:hover {
  background: #84eaff;
  border-color: #84eaff;
}

.action-secondary {
  background: rgba(5, 11, 24, 0.72);
  border: 1px solid var(--line-strong);
  color: var(--cyan);
}

.action-secondary:hover {
  background: var(--cyan-soft);
}

.cyber-owner {
  position: relative;
  z-index: 2;
  align-self: stretch;
  min-height: 610px;
  margin: 0;
  overflow: hidden;
}

/* Ambient glow behind the figure — ties it into the scene */
.cyber-owner::before {
  content: "";
  position: absolute;
  inset: 8% 0 25%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 55%,
    rgba(40, 216, 255, 0.14) 0%,
    rgba(47, 107, 255, 0.06) 35%,
    transparent 70%
  );
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.cyber-owner img {
  position: absolute;
  inset: -36px -4% -18% 0;
  display: block;
  width: 112%;
  max-width: none;
  height: 108%;
  object-fit: contain;
  object-position: center top;
  mix-blend-mode: screen;
  filter: saturate(1.1) contrast(1.05) drop-shadow(0 0 28px rgba(40, 216, 255, 0.18));
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 65%,
    rgba(0, 0, 0, 0.4) 85%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 65%,
    rgba(0, 0, 0, 0.4) 85%,
    rgba(0, 0, 0, 0) 100%
  );
  animation: ownerFloat 7s ease-in-out infinite;
}

.cyber-owner figcaption {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: grid;
  gap: 3px;
  padding: 12px 16px;
  background: rgba(5, 11, 24, 0.55);
  border-left: 2px solid var(--cyan);
  backdrop-filter: blur(8px);
}

.cyber-owner figcaption strong {
  font-size: 15px;
}

.cyber-owner figcaption span {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
}

.hero-signal {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.signal-track {
  position: absolute;
  top: 9px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line-strong);
  box-shadow: 0 0 18px rgba(40, 216, 255, 0.38);
}

.signal-node {
  position: relative;
  display: grid;
  gap: 2px;
  padding-top: 28px;
}

.signal-node i {
  position: absolute;
  top: 3px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 18px rgba(40, 216, 255, 0.7);
}

.signal-node span,
.signal-node strong {
  font-family: Consolas, "Courier New", monospace;
}

.signal-node span {
  color: var(--cyan);
  font-size: 10px;
}

.signal-node strong {
  font-size: 13px;
}

.capabilities-chapter {
  background: var(--bg-deep);
}

.capability-layout {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ===== 能力星图 (starfield) ===== */
.starfield {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 78svh;
  margin: 0 auto;
}

.starfield-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.starfield-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star-node {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 200ms ease;
  will-change: transform;
}

.star-core {
  z-index: 3;
}

.star-core-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.star-core-sub {
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.star-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(40, 216, 255, 0.5);
  background: rgba(5, 11, 24, 0.7);
  color: var(--cyan);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  box-shadow: 0 0 12px rgba(40, 216, 255, 0.25);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.star-name {
  font-size: 11px;
  color: var(--muted-strong);
  white-space: nowrap;
  opacity: 0.85;
  transition: color 200ms ease, opacity 200ms ease;
}

.star-node:hover .star-num,
.star-node.is-active .star-num {
  transform: scale(1.18);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(40, 216, 255, 0.6);
}

.star-node:hover .star-name,
.star-node.is-active .star-name {
  color: var(--ink);
  opacity: 1;
}

.starfield-foot {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 100%;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: 0.6;
  text-align: center;
}

.starfield-detail {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 4;
  width: min(440px, 92%);
  padding: 18px 22px;
  background: rgba(5, 11, 24, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(40, 216, 255, 0.08);
  text-align: center;
  backdrop-filter: blur(10px);
}

.starfield-detail[hidden] {
  display: none;
}

.star-detail-kicker {
  margin: 0 0 6px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.starfield-detail h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.starfield-detail p {
  margin: 0 0 14px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.6;
}

.star-detail-link {
  display: inline-block;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 13px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.star-detail-link:hover {
  background: var(--cyan);
  color: var(--bg-deep);
}

.projects-layout {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 18px 34px;
  align-items: stretch;
}

.chapter-heading.project-heading {
  grid-column: 1 / -1;
}

.project-heading h2 {
  font-size: 42px;
}

.project-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
}

.project-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px 14px;
  text-align: left;
  background: rgba(12, 22, 42, 0.5);
  border: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

/* 液态玻璃渐变描边 */
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.4px;
  border-radius: inherit;
  background: var(--glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background 200ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  background: rgba(14, 28, 52, 0.72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.project-card.is-active {
  /* 选中瞬间先不高亮，等描边线条绕完后(0.75s)再渐入高亮态 */
  background: rgba(40, 216, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(40, 216, 255, 0.5), 0 0 26px rgba(40, 216, 255, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.16);
  transition:
    transform 200ms ease,
    background 200ms ease 0.75s,
    box-shadow 200ms ease 0.75s;
}

.project-card.is-active::before {
  background: var(--glass-edge-strong);
  /* 玻璃描边同样延迟到线条绕完后才变强 */
  transition: background 200ms ease 0.75s;
}

/* ====== 选中描边动画：青色光线从左上沿边框绕一圈 ====== */
@keyframes cardBorderDraw {
  0% {
    background-size: 0% 2px, 2px 0%, 0% 2px, 2px 0%;
    background-position: left top, right top, right bottom, left bottom;
    opacity: 1;
  }
  25% {
    background-size: 100% 2px, 2px 0%, 0% 2px, 2px 0%;
    background-position: left top, right top, right bottom, left bottom;
  }
  50% {
    background-size: 100% 2px, 2px 100%, 0% 2px, 2px 0%;
    background-position: left top, right top, right bottom, left bottom;
  }
  75% {
    background-size: 100% 2px, 2px 100%, 100% 2px, 2px 0%;
    background-position: left top, right top, right bottom, left bottom;
  }
  90% {
    background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%;
    background-position: left top, right top, right bottom, left bottom;
    opacity: 1;
  }
  100% {
    background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%;
    background-position: left top, right top, right bottom, left bottom;
    opacity: 0;
  }
}

.project-card.is-active::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 10;
  pointer-events: none;
  /* 四条边：顶/右/底/左 —— 青色渐变光带 */
  background:
    linear-gradient(90deg, var(--cyan), rgba(40, 216, 255, 0.6)),
    linear-gradient(180deg, var(--cyan), rgba(40, 216, 255, 0.6)),
    linear-gradient(90deg, var(--cyan), rgba(40, 216, 255, 0.6)),
    linear-gradient(180deg, var(--cyan), rgba(40, 216, 255, 0.6));
  background-repeat: no-repeat;
  border-radius: inherit;
  box-shadow: 0 0 12px var(--cyan), 0 0 4px var(--cyan);
  animation: cardBorderDraw 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.card-index {
  color: #53647e;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  transition: color 200ms ease;
}

.project-card.is-active .card-index {
  color: var(--cyan);
}

.card-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.card-metric {
  color: var(--muted);
  font-size: 11px;
}

.card-metric b {
  margin-right: 4px;
  color: #9fb2cc;
  font-size: 14px;
  font-weight: 700;
  font-family: Consolas, "Courier New", monospace;
  transition: color 200ms ease;
}

.project-card.is-active .card-metric b {
  color: var(--cyan);
}

.card-stack {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  opacity: 0.7;
}

.project-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  background: rgba(10, 20, 39, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--cyan);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
}

.project-detail h3 {
  margin-bottom: 16px;
  font-size: 30px;
}

.project-summary {
  color: var(--muted-strong);
  font-size: 16px;
}

.project-impact {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.project-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-proof div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 18px 10px;
  border-right: 1px solid var(--line);
}

.project-proof div:last-child {
  border-right: 0;
}

.project-proof strong {
  color: var(--cyan);
  font-size: 24px;
}

.project-proof span {
  color: var(--muted);
  font-size: 11px;
}

.project-stack {
  margin-bottom: 0;
  color: var(--green);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.journey-chapter {
  background: var(--bg-deep);
}

.journey-layout {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 52px;
  align-items: center;
}

/* ===== 第四屏：阶梯式进化图 ===== */
.journey-steps {
  grid-column: 2;
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 460px;
}

/* 贯穿的上升光线 */
.journey-ray {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.journey-ray-line {
  stroke: url(#journeyRayGrad);
  stroke-width: 2;
  stroke-dasharray: 5 9;
  opacity: 0.75;
  animation: rayFlow 2.4s linear infinite;
}

@keyframes rayFlow {
  to { stroke-dashoffset: -140; }
}

.step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 20px;
  border-left: 1px solid var(--line);
}

/* 逐级抬升：台阶顶面从左低到右高 */
.journey-steps article:nth-of-type(1) { height: 170px; }
.journey-steps article:nth-of-type(2) { height: 245px; }
.journey-steps article:nth-of-type(3) { height: 320px; }
.journey-steps article:nth-of-type(4) { height: 400px; }

/* 台阶台面（发光横线） */
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(40, 216, 255, 0.15));
  box-shadow: 0 0 12px rgba(40, 216, 255, 0.55);
}

/* 台阶上的节点圆点 */
.step::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--bg-deep);
  box-shadow: 0 0 14px rgba(40, 216, 255, 0.65);
}

.step span {
  margin-top: 14px;
  color: var(--cyan);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
}

.step h3 {
  margin: 10px 0 10px;
  font-size: 19px;
  color: var(--ink);
}

.step p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.5;
}

.step small {
  display: block;
  margin-top: 12px;
  color: var(--green);
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
}

/* 当前阶段：最高最亮 */
.step.is-current::before {
  height: 3px;
  background: linear-gradient(90deg, #7af0ff, rgba(122, 240, 255, 0.1));
  box-shadow: 0 0 20px rgba(122, 240, 255, 0.85);
}

.step.is-current::after {
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(122, 240, 255, 0.95);
}

.step.is-current h3 {
  color: #eaf7ff;
}

.journey-layout > blockquote {
  grid-column: 2;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.journey-layout > blockquote p {
  margin-bottom: 10px;
  color: var(--muted-strong);
  font-size: 18px;
}

.journey-layout cite {
  color: var(--cyan);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  font-style: normal;
}

.method-layout {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 72px;
  align-items: center;
}

.method-flow {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.method-flow li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, padding 180ms ease;
}

.method-flow li:hover {
  padding-left: 14px;
  background: rgba(40, 216, 255, 0.04);
}

.method-flow li > span {
  color: var(--cyan);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.method-flow h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.method-flow p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.fit-line {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.fit-line span {
  color: var(--cyan);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.fit-line p {
  margin-bottom: 0;
  color: var(--muted-strong);
}

.contact-chapter {
  background: var(--bg-deep);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.72fr;
  gap: 80px;
  align-items: center;
}

.contact-copy h2 {
  max-width: 850px;
  margin-bottom: 32px;
  font-size: 62px;
}

.contact-copy > p:not(.chapter-kicker) {
  max-width: 720px;
  margin-bottom: 34px;
  color: var(--muted-strong);
  font-size: 18px;
}

.contact-signal {
  padding: 34px 0 34px 34px;
  border-left: 1px solid var(--line-strong);
}

.contact-signal > p {
  color: var(--cyan);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.contact-signal blockquote {
  margin: 18px 0 34px;
  padding: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
}

.contact-signal dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.contact-signal dl div {
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.contact-signal dt,
.contact-signal dd {
  margin: 0;
}

.contact-signal dt {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
}

.contact-signal dd {
  color: var(--muted-strong);
  font-size: 13px;
}

.site-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  padding-top: 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  margin-left: auto;
  color: var(--cyan);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 4, 12, 0.85);
  backdrop-filter: blur(14px);
}

.modal-dialog {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100svh - 48px);
  padding: 44px 40px 36px;
  overflow-y: auto;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(40, 216, 255, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(11, 23, 48, 0.72) 0%, rgba(7, 15, 34, 0.72) 100%);
  border: none;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border-radius: 20px;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(40, 216, 255, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.14);
}

/* 液态玻璃渐变描边（::before 留给顶部光条，描边用 ::after） */
.modal-dialog::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.4px;
  border-radius: inherit;
  background: var(--glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* 顶部青色光条 */
.modal-dialog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 16px rgba(40, 216, 255, 0.6);
}

.modal-dialog .chapter-kicker {
  margin: 0 0 14px;
  text-align: center;
}

.modal-dialog h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.3;
}

.modal-dialog > p:not(.chapter-kicker):not(.modal-note) {
  margin: 0 auto;
  max-width: 340px;
  color: var(--muted-strong);
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--muted);
  font-size: 0;
  transition: all 200ms ease;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: background 200ms ease, transform 200ms ease;
}

/* \ 方向线 */
.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* / 方向线 */
.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-close:hover {
  border-color: var(--line-strong);
  background: var(--cyan-soft);
  color: var(--cyan);
  transform: rotate(90deg);
}

/* 二维码：白底圆角 + 青色光晕 + 四角装饰框 */
.qr-box {
  position: relative;
  width: min(240px, 72%);
  margin: 26px auto;
  padding: 12px;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(40, 216, 255, 0.25),
    0 0 32px rgba(40, 216, 255, 0.22);
}

.qr-box img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.modal-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px auto 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.modal-note a {
  color: var(--cyan);
  font-family: Consolas, "Courier New", monospace;
}

.modal-note a:hover {
  text-decoration: underline;
}

noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  max-width: 380px;
  padding: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 12px;
}

@keyframes ownerFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1180px) {
  .site-header {
    padding: 0 20px;
  }

  .brand-name {
    font-size: 20px;
  }

  /* 手机端：隐藏章节导航，改用手机滑动操作 */
  .chapter-nav {
    display: none;
  }

  .hero-copy h1 {
    font-size: 70px;
  }

  .capability-layout,
  .journey-layout,
  .method-layout {
    grid-template-columns: 1fr;
  }

  .capability-layout {
    gap: 36px;
  }

  .chapter-heading h2 {
    font-size: 44px;
  }

  .starfield {
    max-height: 62svh;
  }

  .star-core-title {
    font-size: 16px;
  }

  .star-name {
    font-size: 10px;
  }

  .projects-layout {
    grid-template-columns: 1.05fr 1fr;
  }

  .project-heading {
    grid-column: 1 / -1;
  }

  .project-heading h2 {
    max-width: 780px;
  }

  .journey-layout > blockquote {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  html {
    scroll-snap-type: none;
  }

  :root {
    --header-height: 64px;
  }

  .ambient-ghost {
    font-size: 24vh;
    right: 2vw;
  }

  .ambient {
    background:
      radial-gradient(70% 60% at var(--gx, 74%) var(--gy, 46%),
        rgba(40, 216, 255, 0.10), rgba(40, 216, 255, 0) 70%),
      linear-gradient(rgba(129, 166, 219, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
      linear-gradient(90deg, rgba(129, 166, 219, 0.04) 1px, transparent 1px) 0 0 / 40px 40px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .header-contact {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .chapter {
    min-height: auto;
    padding: calc(var(--header-height) + 34px) 20px 92px;
    overflow: visible;
  }

  .chapter::before {
    inset: var(--header-height) 14px 50px;
  }

  .chapter::after {
    top: auto;
    right: 0;
    bottom: 54px;
    width: 34vw;
  }

  .hero-chapter {
    min-height: 100svh;
  }

  .next-chapter {
    bottom: 24px;
    font-size: 9px;
  }

  .chapter-kicker {
    margin-bottom: 18px;
    font-size: 9px;
  }

  .chapter-kicker span {
    display: block;
    margin: 0 0 5px;
  }

  .chapter-heading h2,
  .project-heading h2,
  .contact-copy h2 {
    font-size: 38px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
    padding-bottom: 190px;
  }

  .hero-copy h1 {
    font-size: 52px;
  }

  .hero-statement {
    font-size: 22px;
  }

  .hero-intro {
    font-size: 15px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cyber-owner {
    min-height: 480px;
  }

  .cyber-owner img {
    inset: -20px 0 0;
    width: 100%;
    height: calc(100% + 20px);
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 60%,
      rgba(0, 0, 0, 0.3) 85%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 60%,
      rgba(0, 0, 0, 0.3) 85%,
      transparent 100%
    );
  }

  .cyber-owner figcaption {
    right: 8px;
    bottom: 32px;
  }

  .hero-signal {
    bottom: 28px;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }

  .signal-track {
    display: none;
  }

  .signal-node {
    padding: 12px 0 0 18px;
    border-top: 1px solid var(--line-strong);
  }

  .signal-node i {
    top: -7px;
  }

  .capability-layout,
  .projects-layout,
  .journey-layout,
  .method-layout,
  .contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .starfield {
    max-height: 56svh;
  }

  .star-core-title {
    font-size: 15px;
  }

  .star-core-sub {
    font-size: 9px;
  }

  .star-name {
    font-size: 9px;
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .starfield-detail {
    width: 94%;
    padding: 14px 16px;
  }

  .starfield-detail h3 {
    font-size: 17px;
  }

  .project-cards {
    gap: 10px;
    grid-template-columns: 1fr 1fr;
  }

  .project-card {
    padding: 12px 13px;
    gap: 4px;
    border-radius: 10px;
  }

  .card-name {
    font-size: 14px;
  }

  .card-metric {
    font-size: 11px;
  }

  .card-metric b {
    font-size: 13px;
  }

  .card-stack {
    font-size: 9px;
  }

  .project-detail {
    min-height: 0;
    padding: 26px 22px;
  }

  .project-detail h3 {
    font-size: 28px;
  }

  .project-summary {
    font-size: 16px;
  }

  .project-proof {
    grid-template-columns: 1fr;
  }

  .project-proof div,
  .project-proof div:last-child {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-proof div:last-child {
    border-bottom: 0;
  }

  .journey-steps {
    grid-column: 1;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 0;
  }

  .journey-steps article {
    height: auto !important;
    padding: 22px 0 22px 28px;
    border-left: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line);
  }

  .journey-steps article::before {
    left: -1px;
    right: auto;
    width: 26px;
    background: linear-gradient(90deg, var(--cyan), transparent);
  }

  .journey-steps article::after {
    top: 26px;
    left: -5px;
  }

  .step h3 {
    margin-top: 10px;
  }

  .journey-ray {
    display: none;
  }

  .method-flow li {
    grid-template-columns: 46px 1fr;
    min-height: 110px;
  }

  .fit-line {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-signal {
    padding: 28px 0 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .contact-signal blockquote {
    font-size: 18px;
  }

  .site-footer {
    display: grid;
  }

  .site-footer a {
    margin-left: 0;
  }

  /* 手机端：微信弹层整屏全覆盖 */
  .modal {
    align-items: stretch;
    padding: 0;
  }

  .modal-dialog {
    width: 100%;
    height: 100svh;
    max-height: none;
    padding: 60px 26px 40px;
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    overflow-y: auto;
  }

  .modal-dialog h2 {
    font-size: 26px;
  }

  /* 关闭按钮加大，方便手指点击 */
  .modal-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

  .modal-close::before {
    font-size: 26px;
  }

  .qr-box {
    width: min(260px, 74%);
    margin: 22px auto;
  }
}

@media (max-width: 480px) {
  .chapter-heading h2,
  .project-heading h2,
  .contact-copy h2 {
    font-size: 34px;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .cyber-owner {
    min-height: 400px;
  }

  /* 章节导航在手机端已整体隐藏，此处无需圆点规则 */


  .qr-box {
    width: min(260px, 90%);
  }

  .modal-dialog h2 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .particle-field {
    display: none;
  }

  .cyber-owner img,
  .chapter-nav a,
  .next-chapter,
  .action {
    transform: none !important;
  }
}
