/* ============================================================
   鲸语 WhaleTalk · 深海主题样式
   ------------------------------------------------------------
   配色：深海蓝 / 荧光青 / 星辉紫
   ============================================================ */

:root {
  --bg-deep: #050816;
  --bg-mid: #0a0e27;
  --bg-card: rgba(255, 255, 255, 0.045);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --line: rgba(140, 170, 255, 0.14);
  --accent: #00d4ff;
  --accent-2: #7c5cff;
  --accent-3: #ff6b8a;
  --text: #e8ecff;
  --text-dim: #8b93b8;
  --glow: 0 0 24px rgba(0, 212, 255, 0.35);
  --radius: 18px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(0, 212, 255, 0.3); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #1b2a55, #0e1433); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #24386b; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.grad-text {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 背景粒子 ---------- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* ---------- 鼠标光斑 ---------- */
#cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.07) 0%, rgba(124, 92, 255, 0.045) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s;
}

/* ---------- 导航 ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 8, 22, 0.55);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease);
}
#navbar.scrolled {
  background: rgba(5, 8, 22, 0.82);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand svg { filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5)); transition: transform 0.4s var(--ease); }
.brand:hover svg { transform: rotate(-8deg) scale(1.08); }
.brand em { font-style: normal; font-size: 0.72em; color: var(--text-dim); font-weight: 500; margin-left: 4px; }

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .nav-cta {
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 999px;
  padding: 6px 18px;
  transition: all 0.3s;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover {
  background: rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.25);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- HERO ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 0 100px;
  z-index: 2;
  overflow: hidden;
}

/* 声波 + 鲸鱼 */
.hero-sonar {
  position: relative;
  width: 340px;
  height: 300px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sonar-ring {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 212, 255, 0.5);
  animation: sonar 4.2s ease-out infinite;
}
.sonar-ring.r2 { animation-delay: 1.4s; }
.sonar-ring.r3 { animation-delay: 2.8s; }
@keyframes sonar {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}
.whale-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.16) 0%, rgba(124, 92, 255, 0.07) 45%, transparent 70%);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}
.hero-whale {
  width: 340px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 26px rgba(0, 212, 255, 0.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.whale-spout { animation: spout-anim 3.6s ease-in-out infinite; transform-origin: bottom center; }
@keyframes spout-anim {
  0%, 60%, 100% { opacity: 0.15; transform: scaleY(0.55); }
  30% { opacity: 1; transform: scaleY(1); }
}
.spout-drop { animation: drop 3.6s ease-in-out infinite; }
.spout-drop.d2 { animation-delay: 0.35s; }
.spout-drop.d3 { animation-delay: 0.7s; }
@keyframes drop {
  0%, 55% { opacity: 0; transform: translateY(6px); }
  65%, 90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}

/* Hero 文本 */
.hero-text { text-align: center; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #9fdcff;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 26px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-shadow: 0 0 60px rgba(0, 212, 255, 0.2);
}
.typer {
  margin-top: 18px;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  font-weight: 400;
  color: var(--text);
  min-height: 2.4em;
  letter-spacing: 0.04em;
}
.typer-caret {
  color: var(--accent);
  font-weight: 300;
  animation: blink 0.9s steps(1) infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.9;
}
.hero-cta { margin-top: 34px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: all 0.35s var(--ease);
  cursor: pointer;
}
.btn-primary {
  color: #04121f;
  background: linear-gradient(100deg, var(--accent), #5bc7ff);
  box-shadow: 0 6px 26px rgba(0, 212, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 212, 255, 0.5);
}
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: rgba(0, 212, 255, 0.5);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.scroll-hint {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid rgba(140, 170, 255, 0.4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
}
.scroll-hint span {
  width: 4px; height: 9px;
  border-radius: 3px;
  background: var(--accent);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Hero 波浪 */
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 110px;
  z-index: 1;
}
.wave-fg { animation: wave-slide 9s linear infinite; }
@keyframes wave-slide {
  0% { transform: translateX(0); }
  50% { transform: translateX(-40px); }
  100% { transform: translateX(0); }
}

/* ---------- 通用 section ---------- */
main { position: relative; z-index: 2; }
.section { padding: 110px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, var(--bg-mid) 0%, rgba(10, 14, 39, 0.4) 100%); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--accent);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 14px;
}
.sec-title {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.sec-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 56px;
  font-size: 1.02rem;
}

/* ---------- 滚动渐入 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 关于我 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 40px;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 38px;
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease);
}
.about-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), var(--glow);
  transform: translateY(-4px);
}
.about-lead { font-size: 1.12rem; margin-bottom: 16px; }
.about-card p { color: var(--text-dim); }
.about-card b { color: var(--text); font-weight: 600; }
.about-card .about-lead b { color: var(--accent); }

.trait-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.trait-tags span {
  font-size: 0.82rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.22);
  color: #9fdcff;
  transition: all 0.3s;
  cursor: default;
}
.trait-tags span:hover { background: rgba(0, 212, 255, 0.16); box-shadow: var(--glow); transform: translateY(-2px); }

/* 右侧视觉 */
.about-visual { display: flex; justify-content: center; }
.mini-whale-wrap { position: relative; width: 100%; max-width: 430px; }
.mini-whale {
  width: 100%;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.35));
  animation: float 7s ease-in-out infinite;
}
.bubble {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 212, 255, 0.4);
  animation: bubble-rise 5s ease-in-out infinite;
}
.bubble.b1 { width: 26px; height: 26px; right: 18%; top: 12%; animation-delay: 0s; }
.bubble.b2 { width: 16px; height: 16px; right: 10%; top: 26%; animation-delay: 1.6s; }
.bubble.b3 { width: 10px; height: 10px; right: 28%; top: 5%; animation-delay: 3s; }
@keyframes bubble-rise {
  0% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-26px) scale(1.12); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 0.7; }
}
.quote-card {
  position: absolute;
  right: -4%;
  bottom: 6%;
  background: rgba(10, 14, 39, 0.9);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
  transform: rotate(-2deg);
  animation: float 8s ease-in-out infinite reverse;
}
.quote-card svg { margin-bottom: 6px; display: block; }
.quote-card p { font-size: 0.88rem; color: var(--text); font-weight: 500; line-height: 1.6; }

/* ---------- 能力矩阵 ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.4s;
}
.skill-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), 0 0 30px rgba(0, 212, 255, 0.12);
}
.skill-card:hover::before { opacity: 1; }

.skill-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.14), rgba(124, 92, 255, 0.14));
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--accent);
  margin-bottom: 20px;
  transition: all 0.4s var(--ease);
}
.skill-icon svg { width: 26px; height: 26px; }
.skill-card:hover .skill-icon {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.35);
  color: #fff;
}
.skill-card h3 { font-size: 1.12rem; margin-bottom: 10px; letter-spacing: 0.02em; }
.skill-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.75; min-height: 76px; }
.skill-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tags span {
  font-size: 0.72rem;
  font-family: "Consolas", "Courier New", monospace;
  color: #7ea8ff;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.22);
  padding: 3px 10px;
  border-radius: 7px;
}

/* ---------- 核心特质 ---------- */
.traits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.trait-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease);
  position: relative;
}
.trait-card:hover {
  transform: translateY(-8px) rotate(-0.6deg);
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), 0 0 30px rgba(124, 92, 255, 0.14);
}
.trait-num {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-2);
  letter-spacing: 0.2em;
  margin-bottom: 18px;
  opacity: 0.85;
}
.trait-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.trait-card p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.75; }

/* ---------- 工作流 ---------- */
.flow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.flow-step {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 0 10px;
  transition: transform 0.4s var(--ease);
}
.flow-step:hover { transform: translateY(-6px); }
.flow-node {
  width: 74px; height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(124, 92, 255, 0.12));
  border: 1.5px solid rgba(0, 212, 255, 0.35);
  position: relative;
  box-shadow: 0 0 0 7px rgba(0, 212, 255, 0.05);
  transition: all 0.4s var(--ease);
}
.flow-step:hover .flow-node {
  box-shadow: 0 0 0 7px rgba(0, 212, 255, 0.1), 0 0 26px rgba(0, 212, 255, 0.4);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.22), rgba(124, 92, 255, 0.22));
}
.flow-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.flow-step p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.7; }
.flow-line {
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  height: 74px;
}
.flow-line span {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.5), rgba(124, 92, 255, 0.3));
  position: relative;
  overflow: hidden;
}
.flow-line span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transform: translateX(-100%);
  animation: flow-shine 3s ease-in-out infinite;
}
@keyframes flow-shine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ---------- 数据统计 ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.stat-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 16px 28px;
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease);
}
.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3), var(--glow);
}
.stat-num {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat-card p { font-size: 0.9rem; color: var(--text-dim); }

/* 雷达图 */
.radar-wrap {
  margin-top: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
#radar { max-width: 100%; height: auto; }
.radar-legend { display: flex; flex-direction: column; gap: 16px; }
.radar-axis {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.c1 { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.c2 { background: #5bc7ff; box-shadow: 0 0 10px #5bc7ff; }
.c3 { background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.c4 { background: #b26bff; box-shadow: 0 0 10px #b26bff; }
.c5 { background: var(--accent-3); box-shadow: 0 0 10px var(--accent-3); }
.c6 { background: #ffc26b; box-shadow: 0 0 10px #ffc26b; }

/* ---------- 召唤 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.contact-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 22px;
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease);
}
.contact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), 0 0 28px rgba(0, 212, 255, 0.12);
}
.contact-icon { font-size: 2.2rem; margin-bottom: 16px; display: block; transition: transform 0.4s var(--ease); }
.contact-card:hover .contact-icon { transform: scale(1.18) rotate(-6deg); }
.contact-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.contact-card p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.7; }

.invite {
  margin-top: 70px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 92, 255, 0.08));
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 24px;
  padding: 56px 30px;
  position: relative;
  overflow: hidden;
}
.invite::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.12), transparent 45%),
              radial-gradient(circle at 75% 70%, rgba(124, 92, 255, 0.12), transparent 45%);
  animation: breathe 7s ease-in-out infinite;
}
.invite > * { position: relative; z-index: 1; }
.invite h3 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.invite p { color: var(--text-dim); margin-bottom: 28px; }

/* ---------- Footer ---------- */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(5, 8, 22, 0.9));
  padding: 54px 0 40px;
}
.foot-inner { text-align: center; }
.foot-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.foot-brand svg { filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5)); }
.foot-brand em { font-style: normal; color: var(--text-dim); font-weight: 500; font-size: 0.78em; }
.foot-quote { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 8px; }
.foot-meta { color: #565f88; font-size: 0.8rem; }

/* ---------- GitHub 链接（导航） ---------- */
.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px !important;
  transition: all 0.3s;
}
.nav-github::after { display: none; }
.nav-github:hover {
  color: var(--accent) !important;
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

/* ---------- GitHub 按钮（Hero） ---------- */
.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e8ecff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(140, 170, 255, 0.28);
  backdrop-filter: blur(6px);
}
.btn-github:hover {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.3);
}
.btn-github svg { transition: transform 0.4s var(--ease); }
.btn-github:hover svg { transform: rotate(360deg); }

/* ---------- 开源仓库区块 ---------- */
.repo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.07), rgba(124, 92, 255, 0.07));
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 24px;
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease);
}
.repo-card::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.14), transparent 40%),
              radial-gradient(circle at 85% 85%, rgba(124, 92, 255, 0.14), transparent 40%);
  animation: breathe 8s ease-in-out infinite;
  pointer-events: none;
}
.repo-card:hover {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35), var(--glow);
}
.repo-card > * { position: relative; z-index: 1; }
.repo-info { flex: 1; min-width: 300px; }
.repo-info .eyebrow { text-align: left; }
.repo-info .sec-title { text-align: left; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.repo-desc { color: var(--text-dim); max-width: 560px; margin-bottom: 22px; line-height: 1.8; }
.repo-url {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.95rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px dashed rgba(0, 212, 255, 0.4);
  border-radius: 12px;
  padding: 10px 20px;
  transition: all 0.3s;
}
.repo-url:hover {
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
  transform: translateY(-2px);
}
.repo-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer 链接 ---------- */
.foot-links { margin-bottom: 8px; }
.foot-links a {
  color: #7ea8ff;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: "Consolas", "Courier New", monospace;
  border-bottom: 1px dashed rgba(126, 168, 255, 0.4);
  padding-bottom: 2px;
  transition: all 0.3s;
}
.foot-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .traits-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-status { font-size: 0.72rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .traits-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: center; }
  .flow-line { height: 36px; width: 2px; flex: none; }
  .flow-line span { width: 2px; height: 100%; background: linear-gradient(180deg, rgba(0,212,255,.5), rgba(124,92,255,.3)); }
  .hero-sonar { transform: scale(0.85); }
  .quote-card { right: 0; }
  .section { padding: 76px 0; }
  .repo-card { padding: 36px 24px; justify-content: center; text-align: center; }
  .repo-info .eyebrow, .repo-info .sec-title { text-align: center; }
  .repo-desc { margin-left: auto; margin-right: auto; }
  .repo-url { justify-content: center; width: 100%; }
  .repo-actions { width: 100%; justify-content: center; }
  .nav-github span { display: none; }
}

/* 减少动态偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
