/* ==========================================================================
   NEBULA · 星云站长 — 全站样式
   深海 / 深空暗色 · 极光薄荷绿 + 天青 + 暖橙
   纯静态，无框架，无外部资源
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #060a14;
  --bg-2: #0a1020;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eaf0f8;
  --dim: #9aa7bc;
  --faint: #66738b;
  --mint: #8bffcf;
  --cyan: #7dd3fc;
  --orange: #ffb86b;
  --grad: linear-gradient(100deg, var(--mint), var(--cyan));
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas,
    "Liberation Mono", "Courier New", monospace;
  --nav-h: 64px;
  --radius: 16px;
  --shadow-glow: 0 0 0 1px rgba(139, 255, 207, 0.16),
    0 18px 50px rgba(4, 8, 18, 0.5);
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: transparent;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: rgba(139, 255, 207, 0.25);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 通用工具类 ---------- */
.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--mint);
  color: #04231a;
  font-weight: 700;
  border-radius: 10px;
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section {
  padding: 92px 0;
}

main,
footer {
  position: relative;
  z-index: 1;
}

/* ---------- 背景：星点画布 / 鼠标柔光 ---------- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(125, 211, 252, 0.07),
    rgba(139, 255, 207, 0.03) 45%,
    transparent 65%
  );
}

/* ---------- 顶部滚动进度条 ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 70;
  background: var(--grad);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- 导航 ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(6, 10, 20, 0.5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.site-nav.is-scrolled {
  background: rgba(6, 10, 20, 0.82);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
}

.brand-word {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 1.02rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-word small {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav-links a {
  position: relative;
  padding: 8px 14px;
  color: var(--dim);
  font-size: 0.95rem;
  border-radius: 10px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a[aria-current="page"] {
  color: var(--mint);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-right {
    margin-left: auto;
  }
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 420px) {
  .nav-inner {
    gap: 16px;
  }
}

@media (max-width: 380px) {
  .brand-word small {
    display: none;
  }
}

/* ---------- 移动端全屏菜单 ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(5, 9, 18, 0.96);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  transform: translateY(-102%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
}

.mobile-menu.is-open {
  transform: none;
  visibility: visible;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: min(320px, 80%);
}

.mobile-links a {
  font-size: 1.7rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 12px;
  transition: color 0.2s, background 0.2s;
}

.mobile-links a:hover {
  color: var(--mint);
  background: var(--panel);
}

.mobile-links .btn {
  margin-top: 18px;
  font-size: 1.05rem;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, border-color 0.2s, background 0.2s,
    box-shadow 0.25s, color 0.2s;
}

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

.btn-primary {
  background: var(--mint);
  border-color: transparent;
  color: #04231a;
}

.btn-primary:hover {
  box-shadow: 0 12px 34px rgba(139, 255, 207, 0.28);
}

.btn-ghost {
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(139, 255, 207, 0.55);
  background: var(--panel);
}

.btn-warm {
  color: var(--orange);
  border-color: rgba(255, 184, 107, 0.32);
}

.btn-warm:hover {
  color: var(--orange);
  border-color: rgba(255, 184, 107, 0.72);
  background: rgba(255, 184, 107, 0.08);
}

.btn-warm:hover .arr {
  transform: translate(2px, -2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn .arr {
  transition: transform 0.2s;
}

.btn:hover .arr {
  transform: translateX(3px);
}

/* ---------- 区块标题 ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "// ";
  color: var(--faint);
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head p {
  color: var(--dim);
  margin-top: 12px;
  max-width: 56ch;
}

.section-head .more {
  flex-shrink: 0;
  color: var(--dim);
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.2s;
}

.section-head .more:hover {
  color: var(--mint);
}

@media (max-width: 640px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  padding: 140px 0 88px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 62% 40%,
    #000 0%,
    transparent 72%
  );
  mask-image: radial-gradient(
    ellipse 70% 60% at 62% 40%,
    #000 0%,
    transparent 72%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 48px;
  align-items: center;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 26px;
  background: var(--panel);
}

.hero-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(139, 255, 207, 0.8);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(139, 255, 207, 0.55);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(139, 255, 207, 0);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.3rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero h1 .line {
  display: block;
}

.hero-sub {
  color: var(--dim);
  font-size: 1.08rem;
  max-width: 34em;
  margin-bottom: 34px;
  text-wrap: pretty;
}

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

/* 轨道球体 */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.orb {
  position: relative;
  width: min(380px, 86vw);
  height: min(380px, 86vw);
  perspective: 900px;
}

.orb-sphere {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: orb-spin 26s linear infinite;
}

@keyframes orb-spin {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(139, 255, 207, 0.32);
}

.orb-ring.r1 {
  transform: rotateX(72deg);
}

.orb-ring.r2 {
  transform: rotateY(72deg);
  border-color: rgba(125, 211, 252, 0.32);
}

.orb-ring.r3 {
  transform: rotateX(72deg) rotateZ(58deg);
  border-color: rgba(255, 184, 107, 0.28);
}

.orb-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #eafff6 0%,
    var(--mint) 38%,
    rgba(139, 255, 207, 0.16) 68%,
    transparent 74%
  );
  box-shadow: 0 0 70px rgba(139, 255, 207, 0.55);
}

.orb-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 340px;
  margin: -170px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(125, 211, 252, 0.14),
    rgba(139, 255, 207, 0.05) 48%,
    transparent 68%
  );
  pointer-events: none;
}

/* 终端卡片 */
.term {
  position: absolute;
  bottom: 6px;
  right: -10px;
  width: min(320px, 78vw);
  background: rgba(10, 16, 32, 0.82);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glow);
  font-family: var(--mono);
  font-size: 0.82rem;
  overflow: hidden;
  transform: rotate(1.2deg);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.term-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.term-bar i:nth-child(1) {
  background: #ff5f57;
}
.term-bar i:nth-child(2) {
  background: #febc2e;
}
.term-bar i:nth-child(3) {
  background: #28c840;
}

.term-title {
  margin-left: 8px;
  color: var(--faint);
  font-size: 0.75rem;
}

.term-body {
  padding: 14px 16px;
  line-height: 1.75;
}

.term-body .p {
  color: var(--mint);
}

.term-body .out {
  color: var(--dim);
  margin-bottom: 10px;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--mint);
  margin-left: 3px;
  vertical-align: -2px;
  animation: blink 1.1s steps(2) infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* 漂浮技术标签 */
.chips-float {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chip-float {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--dim);
  background: rgba(10, 16, 32, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: floaty 7s ease-in-out infinite;
}

.chip-float:nth-child(1) {
  top: 8%;
  left: 2%;
}
.chip-float:nth-child(2) {
  top: 4%;
  right: 6%;
  animation-delay: -2s;
}
.chip-float:nth-child(3) {
  bottom: 26%;
  left: 0%;
  animation-delay: -4s;
}
.chip-float:nth-child(4) {
  bottom: 16%;
  right: 4%;
  animation-delay: -1s;
}

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

@media (max-width: 900px) {
  .hero {
    padding: 116px 0 72px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 360px;
  }
  .term {
    right: 0;
  }
}

/* ---------- 跑马灯 ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}

.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee span {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--dim);
  white-space: nowrap;
  letter-spacing: 0.06em;
}

.marquee span::after {
  content: "·";
  margin-left: 56px;
  color: var(--mint);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 数据条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.25s, transform 0.25s;
}

.stat:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}

.stat-num {
  display: flex;
  align-items: baseline;
  font-family: var(--mono);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.stat-unit {
  font-size: 0.95rem;
  color: var(--dim);
  margin-left: 6px;
  font-family: var(--font);
  font-weight: 600;
}

.stat-label {
  display: block;
  margin-top: 12px;
  color: var(--dim);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 卡片基础 + spotlight ---------- */
.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 255, 207, 0.4);
  box-shadow: var(--shadow-glow);
}

.spot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(139, 255, 207, 0.12),
    transparent 58%
  );
  pointer-events: none;
}

.spot-card:hover::before {
  opacity: 1;
}

/* 工具卡 */
.tool-card {
  display: flex;
  flex-direction: column;
  min-height: 188px;
}

.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tool-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #04231a;
  background: var(--grad);
}

.tool-card:nth-child(6n + 2) .tool-ico {
  background: linear-gradient(135deg, var(--cyan), #5aa7ff);
}
.tool-card:nth-child(6n + 3) .tool-ico {
  background: linear-gradient(135deg, var(--orange), #ff9d5c);
}
.tool-card:nth-child(6n + 4) .tool-ico {
  background: linear-gradient(135deg, #c4b5fd, var(--cyan));
}
.tool-card:nth-child(6n + 5) .tool-ico {
  background: linear-gradient(135deg, var(--mint), #4dd6a6);
}
.tool-card:nth-child(6n + 6) .tool-ico {
  background: linear-gradient(135deg, #7dd3fc, #7c8cff);
}

.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
}

.tool-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool-card .desc {
  color: var(--dim);
  font-size: 0.92rem;
  flex: 1;
}

.tool-card .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--faint);
  font-size: 0.86rem;
  transition: color 0.2s, transform 0.2s;
}

.tool-card:hover .go {
  color: var(--mint);
}

/* 文章卡 */
.post-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint);
  margin-bottom: 14px;
}

.post-meta .dot-sep {
  color: var(--line-2);
}

.post-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  text-wrap: balance;
  transition: color 0.2s;
}

.post-card:hover h3 {
  color: var(--mint);
}

.post-card .excerpt {
  color: var(--dim);
  font-size: 0.94rem;
  flex: 1;
}

.post-card .read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--cyan);
  font-size: 0.9rem;
}

.post-card .read .arr {
  transition: transform 0.2s;
}

.post-card:hover .read .arr {
  transform: translateX(4px);
}

/* ---------- 大引言 + CTA ---------- */
.big-quote {
  text-align: center;
  padding: 110px 0;
}

.big-quote blockquote {
  font-size: clamp(1.7rem, 4.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 22ch;
  margin: 0 auto 36px;
}

.big-quote blockquote .grad-text {
  display: block;
}

.cta-card {
  background: linear-gradient(
    120deg,
    rgba(139, 255, 207, 0.08),
    rgba(125, 211, 252, 0.05)
  );
  border: 1px solid rgba(139, 255, 207, 0.22);
  border-radius: 22px;
  padding: 44px;
  text-align: center;
}

.cta-card h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.cta-card p {
  color: var(--dim);
  margin-bottom: 26px;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 44px;
  margin-top: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer h4 {
  font-size: 0.86rem;
  color: var(--faint);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--dim);
  font-size: 0.94rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--mint);
}

.footer-brand {
  font-size: clamp(3.2rem, 14vw, 9.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.86;
  margin: 30px 0 30px;
  background: linear-gradient(
    180deg,
    rgba(234, 240, 248, 0.9) 0%,
    rgba(234, 240, 248, 0.06) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 26px;
  color: var(--faint);
  font-size: 0.84rem;
}

@media (max-width: 760px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(10, 16, 32, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, border-color 0.2s;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  border-color: var(--mint);
  color: var(--mint);
}

/* ---------- 页面通用头部（内页） ---------- */
.page-head {
  padding: 132px 0 40px;
}

.page-head h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.page-head .lead {
  color: var(--dim);
  font-size: 1.08rem;
  max-width: 46em;
  text-wrap: pretty;
}

/* ---------- 工具库页 ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 34px 0 22px;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-wrap .kbd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 52px 14px 16px;
  color: var(--text);
  font-size: 0.98rem;
  transition: border-color 0.2s;
}

.search-wrap input:focus {
  outline: none;
  border-color: rgba(139, 255, 207, 0.5);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-size: 0.88rem;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.chip:hover {
  color: var(--text);
  border-color: var(--line-2);
}

.chip.is-active {
  color: #04231a;
  background: var(--mint);
  border-color: transparent;
  font-weight: 600;
}

@media (max-width: 640px) {
  .chips {
    gap: 6px;
  }
  .chip {
    padding: 7px 10px;
    font-size: 0.8rem;
  }
}

.result-line {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--faint);
  margin-bottom: 20px;
}

.empty-tip {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--dim);
}

.empty-tip strong {
  display: block;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 8px;
}

/* ---------- 手记列表页 ---------- */
.subscribe {
  margin-top: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.subscribe h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.subscribe p {
  color: var(--dim);
  font-size: 0.94rem;
}

.subscribe form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.subscribe input {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--text);
  min-width: 240px;
}

.subscribe input:focus {
  outline: none;
  border-color: rgba(139, 255, 207, 0.5);
}

.subscribe-msg {
  grid-column: 1 / -1;
  color: var(--mint);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .subscribe {
    grid-template-columns: 1fr;
  }
}

/* ---------- 关于页 ---------- */
.timeline {
  position: relative;
  padding-left: 6px;
  margin-top: 12px;
}

.tl-item {
  position: relative;
  padding: 0 0 30px 34px;
  border-left: 1px solid var(--line);
  margin-left: 8px;
}

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

.tl-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(139, 255, 207, 0.14);
}

.tl-year {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

.tl-item h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 6px 0 6px;
}

.tl-item p {
  color: var(--dim);
  font-size: 0.94rem;
}

.skill {
  margin-bottom: 22px;
}

.skill-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 0.94rem;
}

.skill-top b {
  color: var(--faint);
  font-family: var(--mono);
  font-weight: 600;
}

.skill-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad);
  transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 关于页右栏：在用的东西 */
.stack {
  border-top: 1px solid var(--line);
}

.stack-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.stack-row span {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--mint);
}

.stack-row p {
  color: var(--dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 技能下方的近况卡，补足右栏留白 */
.now-card {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(
    150deg,
    rgba(139, 255, 207, 0.06),
    rgba(255, 255, 255, 0.018) 60%
  );
}

.now-card .eyebrow {
  margin-bottom: 16px;
}

.now-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.now-list li {
  display: flex;
  gap: 12px;
  color: var(--dim);
  font-size: 0.94rem;
  line-height: 1.6;
}

.now-list b {
  flex-shrink: 0;
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mint);
}

.creed-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.creed-card h3 .n {
  font-family: var(--mono);
  color: var(--mint);
  margin-right: 8px;
  font-size: 0.9rem;
}

.creed-card p {
  color: var(--dim);
  font-size: 0.94rem;
}

.contact-cards {
  margin-top: 8px;
}

.contact-card {
  display: block;
}

.contact-card .label {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.contact-card .value {
  font-size: 1.06rem;
  font-weight: 700;
  word-break: break-all;
  color: var(--text);
}

.contact-card .hint {
  color: var(--dim);
  font-size: 0.88rem;
  margin-top: 8px;
}

/* ---------- 文章版式 ---------- */
.article-head {
  padding: 132px 0 30px;
}

/* 让文章头部与正文使用同一阅读栏宽度，避免标题左对齐、正文居中错位 */
.article-head .container {
  max-width: 720px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--faint);
  margin-bottom: 20px;
}

.breadcrumb a:hover {
  color: var(--mint);
}

.breadcrumb .sep {
  margin: 0 8px;
  color: var(--line-2);
}

.article-head h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 14px 0 20px;
  max-width: 24ch;
  text-wrap: balance;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--faint);
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.04rem;
  line-height: 1.95;
  color: #dfe7f2;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 2em;
  padding-top: 0.4em;
}

.prose h2::before {
  content: "§ ";
  color: var(--mint);
  font-family: var(--mono);
  font-weight: 600;
}

.prose h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.6em;
}

.prose p {
  margin: 1.15em 0;
}

.prose strong {
  color: #fff;
  font-weight: 700;
}

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose blockquote {
  border-left: 3px solid var(--mint);
  background: rgba(139, 255, 207, 0.05);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 1.6em 0;
  color: var(--dim);
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin: 1.2em 0;
}

.prose li {
  margin: 0.55em 0;
}

.prose li::marker {
  color: var(--mint);
}

.prose code {
  font-family: var(--mono);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 0.12em 0.42em;
  border-radius: 6px;
  font-size: 0.87em;
  color: var(--cyan);
}

.prose pre {
  background: #0a0f1c;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 1.6em 0;
}

.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--mint);
  font-size: 0.86rem;
  line-height: 1.7;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.2em 0;
}

/* 文末导航 */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 56px 0 28px;
  max-width: 720px;
  margin-inline: auto;
}

.post-nav a {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.post-nav a:hover {
  border-color: rgba(139, 255, 207, 0.4);
  transform: translateY(-2px);
}

.post-nav .dir {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
  margin-bottom: 8px;
}

.post-nav .t {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.4;
}

.post-nav a.next {
  text-align: right;
}

@media (max-width: 640px) {
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav a.next {
    text-align: left;
  }
}

/* ---------- 404 ---------- */
.page-404 {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 140px 0 80px;
}

.code-404 {
  font-family: var(--mono);
  font-size: clamp(5rem, 22vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-404 h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin: 18px 0 10px;
}

.page-404 p {
  color: var(--dim);
  margin-bottom: 30px;
}

.orb-mini {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 26px auto 10px;
  perspective: 600px;
}

.orb-mini .orb-sphere {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: orb-spin 12s linear infinite;
}

.orb-mini .orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(139, 255, 207, 0.4);
}

.orb-mini .orb-ring.r2 {
  transform: rotateY(72deg);
  border-color: rgba(125, 211, 252, 0.4);
}

.orb-mini .orb-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 28px rgba(139, 255, 207, 0.7);
}

/* ---------- 滚动渐显 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0s);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 减少动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .marquee-track {
    animation: none;
  }
  .orb-sphere {
    animation: none;
  }
  .hero-status .dot {
    animation: none;
  }
  .cursor {
    animation: none;
  }
}
