/* =============================================================
   think — 个人技术品牌官网
   style.css

   目录：
   01. 设计令牌
   02. Reset 与基础
   03. 装饰背景层
   04. 导航
   05. Hero
   06. 通用 Section 组件
   07. 技术星图
   08. 工程实力
   09. 代码实验室
   10. 项目展示
   11. AI 工程
   12. About
   13. Contact / Footer
   14. 动画关键帧
   15. 响应式
   ============================================================= */


/* =============================================================
   01. 设计令牌
   ============================================================= */
:root {
  /* 主色板 */
  --c-black:      #050505;
  --c-dark:       #111111;
  --c-dark-2:     #0A0A0A;
  --c-card:       #0D0D0D;
  --c-card-hi:    #131313;

  /* 文字 */
  --c-white:      #FFFFFF;
  --c-text:       #EDEDED;
  --c-text-2:     #A1A1A6;
  --c-text-3:     #6B6B70;

  /* 描边 */
  --c-border:     rgba(255, 255, 255, 0.08);
  --c-border-hi:  rgba(255, 255, 255, 0.16);

  /* 点缀 */
  --c-blue:       #2563EB;
  --c-blue-hi:    #3B82F6;
  --c-blue-lo:    #1D4ED8;
  --c-green:      #22C55E;
  --c-amber:      #F59E0B;
  --c-red:        #EF4444;

  /* 渐变 */
  --grad-blue: linear-gradient(135deg, #2563EB 0%, #3B82F6 50%, #60A5FA 100%);
  --grad-text: linear-gradient(120deg, #FFFFFF 0%, #93C5FD 45%, #2563EB 100%);

  /* 字体 */
  --f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas,
            "Liberation Mono", "Courier New", monospace;

  /* 尺寸 */
  --container: 1240px;
  --nav-h: 72px;
  --radius: 14px;
  --radius-sm: 8px;

  /* 缓动 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* 层级 */
  --z-bg: 0;
  --z-content: 1;
  --z-nav: 100;
}


/* =============================================================
   02. Reset 与基础
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-black);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--c-blue);
  color: #fff;
}

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--c-black); }
::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 6px;
  border: 2px solid var(--c-black);
}
::-webkit-scrollbar-thumb:hover { background: #3A3A3A; }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* 图标统一尺寸 */
.ic {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

/* 无障碍：隐藏但保留可读 */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}


/* =============================================================
   03. 装饰背景层
   ============================================================= */

/* 固定背景：SVG 纹理 + 光晕 */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  background-image: url("assets/svg/background.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 鼠标代码流画布 */
.code-flow-canvas {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.code-flow-canvas.active { opacity: 1; }

/* 细微噪点，消除渐变的色带 */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad-blue);
  z-index: calc(var(--z-nav) + 10);
  transition: width 0.1s linear;
}


/* =============================================================
   04. 导航
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: var(--z-nav);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--c-border);
}

.nav-inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-brand img { transition: transform 0.4s var(--ease); }
.nav-brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav-brand-text {
  font-family: var(--f-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--c-white);
  letter-spacing: 0.04em;
}

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

.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--c-text-2);
  border-radius: 6px;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--c-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}
.nav-link:hover { color: var(--c-white); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-border-hi);
  border-radius: 100px;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}
.nav-cta:hover {
  background: var(--c-blue);
  border-color: var(--c-blue);
  transform: translateY(-1px);
}
.nav-cta:hover .ic { transform: translateX(3px); }
.nav-cta .ic { transition: transform 0.3s var(--ease); }

/* ---- 语言切换开关 ---- */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-border-hi);
  border-radius: 100px;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.lang-switch:hover { border-color: rgba(255, 255, 255, 0.3); }

.lang-opt {
  position: relative;
  z-index: 1;
  padding: 5px 12px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-text-3);
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}
.lang-opt.active { color: var(--c-white); }

/* 滑块背景 */
.lang-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: var(--grad-blue);
  border-radius: 100px;
  transition: transform 0.38s var(--ease);
  pointer-events: none;
}
.lang-switch[data-active="en"] .lang-slider { transform: translateX(100%); }

/* 移动端汉堡 */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--c-white);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }


/* =============================================================
   05. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 70px) 0 90px;
  overflow: hidden;
}

/* Hero 内层网格线，强化工程感 */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
}

.hero-container {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}

.hero-left { min-width: 0; }

/* 状态指示 */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--c-text-2);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-green);
  position: relative;
  flex-shrink: 0;
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--c-green);
  animation: pulse-ring 2.2s ease-out infinite;
}

.hero-title {
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero-title-line {
  display: block;
  font-size: clamp(58px, 10.5vw, 132px);
  background: linear-gradient(175deg, #FFFFFF 25%, #B8B8BE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-title-sub {
  font-family: var(--f-mono);
  font-size: clamp(19px, 3.1vw, 40px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.018em;
  margin-top: 14px;
  background: linear-gradient(105deg, #FFFFFF 0%, #8FB9F5 42%, #2563EB 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 副标题角色 */
.hero-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  font-family: var(--f-mono);
  font-size: 14.5px;
  color: var(--c-text-2);
}
.role-item { transition: color 0.3s ease; }
.role-item:hover { color: var(--c-blue-hi); }
.role-sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-text-3);
}

/* 技术栈滚动条 */
.hero-marquee {
  margin-bottom: 34px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 16px;
  white-space: nowrap;
}
.marquee-group b {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text-3);
  transition: color 0.3s ease;
}
.marquee-group b:hover { color: var(--c-white); }
.marquee-group i {
  font-style: normal;
  color: var(--c-blue);
  font-size: 13px;
  opacity: 0.6;
}

/* CTA 按钮组 */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform 0.32s var(--ease), box-shadow 0.32s ease,
              background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}
.btn .ic { transition: transform 0.32s var(--ease); }

.btn-primary {
  background: var(--c-blue);
  color: #fff;
  box-shadow: 0 8px 26px -8px rgba(37, 99, 235, 0.6);
}
.btn-primary:hover {
  background: var(--c-blue-hi);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(37, 99, 235, 0.75);
}
.btn-primary:hover .ic { transform: translateX(4px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-text);
  border-color: var(--c-border-hi);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.btn-lg { padding: 15px 32px; font-size: 15px; }

/* 数字统计 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
}
.stat-value {
  font-family: var(--f-mono);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  color: var(--c-white);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 13px;
  color: var(--c-text-3);
  letter-spacing: 0.02em;
}

/* ---- Hero 右侧 ---- */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* 终端窗口 */
.terminal-window {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--c-border-hi);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 28px 70px -24px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(37, 99, 235, 0.08);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--c-border);
}
.tb-dot { width: 10px; height: 10px; border-radius: 50%; }
.tb-red { background: #FF5F57; }
.tb-yellow { background: #FEBC2E; }
.tb-green { background: #28C840; }
.terminal-title {
  margin-left: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-text-3);
}

.terminal-body {
  padding: 20px;
  font-family: var(--f-mono);
  font-size: 13.5px;
  line-height: 1.95;
  min-height: 268px;
  overflow: hidden;
}
.term-line { display: block; white-space: pre-wrap; word-break: break-word; }
.term-cmd { color: var(--c-blue-hi); }
.term-prompt-path { color: var(--c-text-2); }
.term-out { color: var(--c-text-2); }
.term-key { color: #C4B5FD; }
.term-ok { color: var(--c-green); }
.term-dim { color: var(--c-text-3); }
.term-highlight { color: var(--c-white); }

/* 终端光标 */
.term-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--c-blue);
  vertical-align: text-bottom;
  animation: blink 1.05s step-end infinite;
}

/* 服务器面板 */
.server-panel {
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.sp-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 13px;
  margin-bottom: 13px;
  border-bottom: 1px solid var(--c-border);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--c-text-2);
}
.sp-head .ic { color: var(--c-blue); width: 15px; height: 15px; }

.sp-metric {
  display: grid;
  grid-template-columns: 42px 1fr 46px;
  align-items: center;
  gap: 11px;
  padding: 6px 0;
  font-family: var(--f-mono);
  font-size: 11.5px;
}
.sp-label { color: var(--c-text-3); letter-spacing: 0.05em; }
.sp-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
}
.sp-bar i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  background: var(--grad-blue);
  border-radius: 3px;
  transition: width 0.7s var(--ease);
}
.sp-val { color: var(--c-text-2); text-align: right; }

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--c-text-3);
}
.scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--c-blue), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -46px; left: 0;
  width: 1px; height: 46px;
  background: var(--c-white);
  animation: scroll-drop 2.4s ease-in-out infinite;
}


/* =============================================================
   06. 通用 Section 组件
   ============================================================= */
.section {
  position: relative;
  padding: 128px 0;
}
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.014) 50%, transparent);
}

.section-head {
  max-width: 720px;
  margin-bottom: 68px;
}
.section-index {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--c-blue);
  margin-bottom: 18px;
  padding: 5px 12px;
  background: rgba(37, 99, 235, 0.09);
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 100px;
}
.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 750;
  color: var(--c-white);
  letter-spacing: -0.032em;
  line-height: 1.08;
  margin-bottom: 18px;
}
.section-desc {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--c-text-2);
  max-width: 620px;
}

/* 渐变文字 */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


/* =============================================================
   07. 技术星图
   ============================================================= */
.universe {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG 连接线层 */
.universe-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
#lineGroup path {
  stroke: url(#lineGrad);
  stroke-width: 1.2;
  fill: none;
  stroke-dasharray: 4 7;
  animation: dash-flow 2.6s linear infinite;
}

/* 中心核 */
.universe-core {
  position: relative;
  width: 172px; height: 172px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  flex-shrink: 0;
}
.core-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--c-border-hi);
}
.core-ring-1 { animation: spin-slow 22s linear infinite; border-top-color: var(--c-blue); }
.core-ring-2 { inset: 15px; animation: spin-slow 15s linear infinite reverse; border-bottom-color: rgba(37,99,235,0.6); }
.core-glow {
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 70%);
  filter: blur(18px);
  animation: breathe 4.5s ease-in-out infinite;
}
.core-inner {
  position: relative;
  text-align: center;
  z-index: 1;
}
.core-name {
  display: block;
  font-family: var(--f-mono);
  font-size: 27px;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.02em;
}
.core-sub {
  display: block;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  color: var(--c-blue);
  margin-top: 5px;
}

/* 轨道（JS 定位子节点） */
.orbit {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.stack-node {
  position: absolute;
  width: 268px;
  transform: translate(-50%, -50%);
  padding: 22px 24px;
  background: rgba(13, 13, 13, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  pointer-events: auto;
  cursor: default;
  /* 只过渡边框与背景；transform 由 script.js 接管，负责入场与缩放 */
  transition: border-color 0.42s ease,
              background 0.42s ease, box-shadow 0.42s ease;
}
.stack-node::before {
  content: '';
  position: absolute;
  left: 24px; right: 24px; top: -1px;
  height: 1px;
  background: var(--grad-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.stack-node:hover {
  border-color: rgba(37, 99, 235, 0.42);
  background: rgba(16, 16, 16, 0.94);
  box-shadow: 0 24px 54px -22px rgba(0, 0, 0, 0.95),
              0 0 40px -14px rgba(37, 99, 235, 0.4);
}
.stack-node:hover::before { transform: scaleX(1); }

.sn-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}
.sn-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.26);
  border-radius: 9px;
  color: var(--c-blue-hi);
  flex-shrink: 0;
  transition: background 0.4s ease, transform 0.4s var(--ease);
}
.stack-node:hover .sn-icon {
  background: var(--c-blue);
  color: #fff;
  transform: scale(1.08);
}
.sn-icon .ic { width: 17px; height: 17px; }
.sn-title {
  font-size: 16.5px;
  font-weight: 650;
  color: var(--c-white);
  letter-spacing: -0.01em;
}
.sn-desc {
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--c-text-2);
  margin-bottom: 15px;
}
.sn-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sn-tags span {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--c-border);
  border-radius: 5px;
  color: var(--c-text-2);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.stack-node:hover .sn-tags span {
  border-color: rgba(37, 99, 235, 0.34);
  color: var(--c-text);
}


/* =============================================================
   08. 工程实力
   ============================================================= */
.cap-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.cap-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.cap-panel {
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 19px 21px;
  transition: border-color 0.4s ease;
  flex: 1;
}
.cap-panel:hover { border-color: var(--c-border-hi); }

.cap-panel-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 13px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--c-border);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--c-text-3);
}
.cap-panel-head .ic { color: var(--c-blue); width: 14px; height: 14px; }

/* API 日志 */
.api-log {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 2.05;
  height: 186px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(180deg, #000 72%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
}
.api-row {
  display: flex;
  align-items: center;
  gap: 9px;
  animation: log-in 0.42s var(--ease) both;
  white-space: nowrap;
}
.api-method {
  color: var(--c-blue-hi);
  font-weight: 600;
  width: 42px;
  flex-shrink: 0;
}
.api-path { color: var(--c-text-2); flex: 1; overflow: hidden; text-overflow: ellipsis; }
.api-code { font-weight: 600; width: 32px; flex-shrink: 0; }
.api-code.ok { color: var(--c-green); }
.api-code.warn { color: var(--c-amber); }
.api-time { color: var(--c-text-3); width: 44px; text-align: right; flex-shrink: 0; }

/* 响应时间 */
.rt-big {
  font-family: var(--f-mono);
  font-size: 46px;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.rt-label { font-size: 12.5px; color: var(--c-text-3); margin-bottom: 14px; }

.sparkline { height: 54px; }
.sparkline svg { width: 100%; height: 100%; display: block; }
#sparkPoly { filter: drop-shadow(0 0 6px rgba(37, 99, 235, 0.55)); }

/* 数据库行 */
.db-rows { display: flex; flex-direction: column; gap: 9px; }
.db-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.db-row:last-child { border-bottom: none; padding-bottom: 0; }
.db-k { color: var(--c-text-2); }
.db-v { font-weight: 600; }
.db-v.ok { color: var(--c-green); }

/* 部署列表 */
.deploy-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.deploy-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.022);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.dep-tag {
  color: var(--c-blue-hi);
  font-size: 10.5px;
  padding: 2px 7px;
  background: rgba(37, 99, 235, 0.13);
  border-radius: 4px;
  flex-shrink: 0;
}
.dep-name { color: var(--c-text-2); flex: 1; }
.dep-state {
  font-size: 10.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.dep-state.running { color: var(--c-green); }
.dep-state::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-soft 2s ease-in-out infinite;
}

.deploy-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.deploy-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad-blue);
  transition: width 0.2s linear;
}

/* 能力条 */
.cap-bars { display: flex; flex-direction: column; gap: 12px; }
.cap-bar-item { display: flex; flex-direction: column; gap: 6px; }
.cb-label { font-size: 12.5px; color: var(--c-text-2); }
.cb-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}
.cb-track i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-blue);
  border-radius: 3px;
  transition: width 1.2s var(--ease);
}

/* 能力卡片 */
.cap-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 18px;
}
.cap-card {
  position: relative;
  padding: 30px 28px;
  background: rgba(13, 13, 13, 0.7);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s ease,
              background 0.45s ease;
}
/* 悬浮光效 */
.cap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
                              rgba(37, 99, 235, 0.1), transparent 68%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.cap-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(16, 16, 16, 0.9);
}
.cap-card:hover::before { opacity: 1; }

.cap-card-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  background: rgba(37, 99, 235, 0.11);
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 11px;
  color: var(--c-blue-hi);
  margin-bottom: 19px;
  transition: background 0.4s ease, transform 0.45s var(--ease);
}
.cap-card:hover .cap-card-icon {
  background: var(--c-blue);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
}
.cap-card-icon .ic { width: 20px; height: 20px; }

.cap-card h3 {
  font-size: 19px;
  font-weight: 650;
  color: var(--c-white);
  margin-bottom: 11px;
  letter-spacing: -0.015em;
}
.cap-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-text-2);
  margin-bottom: 17px;
}
.cap-list { display: flex; flex-direction: column; gap: 8px; }
.cap-list li {
  position: relative;
  padding-left: 17px;
  font-size: 13px;
  color: var(--c-text-3);
  line-height: 1.6;
}
.cap-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 1px;
  background: var(--c-blue);
  opacity: 0.75;
}


/* =============================================================
   09. 代码实验室
   ============================================================= */
.playground {
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 34px 80px -30px rgba(0, 0, 0, 0.95);
}

/* Tab */
.pg-tabs {
  display: flex;
  gap: 3px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--c-border);
  overflow-x: auto;
}
.pg-tab {
  position: relative;
  padding: 9px 20px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-text-3);
  background: transparent;
  border: none;
  border-radius: 7px;
  transition: color 0.3s ease, background 0.3s ease;
  white-space: nowrap;
}
.pg-tab:hover { color: var(--c-text); }
.pg-tab.active {
  color: var(--c-white);
  background: rgba(37, 99, 235, 0.15);
}
.pg-tab.active::after {
  content: '';
  position: absolute;
  left: 20px; right: 20px; bottom: 2px;
  height: 1.5px;
  background: var(--c-blue);
  border-radius: 2px;
}

/* Panel */
.pg-panel {
  display: none;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}
.pg-panel.active { display: grid; animation: fade-up 0.42s var(--ease) both; }

.pg-code-wrap {
  border-right: 1px solid var(--c-border);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pg-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.018);
}
.pg-file {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-text-3);
}
.pg-run {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--c-blue);
  border: none;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.25s var(--ease);
}
.pg-run:hover { background: var(--c-blue-hi); transform: translateY(-1px); }
.pg-run:active { transform: translateY(0) scale(0.97); }
.pg-run.running { background: var(--c-amber); pointer-events: none; }
.pg-run .ic { width: 14px; height: 14px; }

.pg-code {
  margin: 0;
  padding: 20px 0;
  font-family: var(--f-mono);
  font-size: 13.2px;
  line-height: 1.95;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.25);
  flex: 1;
}
.pg-code code { display: block; min-width: max-content; padding-right: 18px; }
.pg-code .ln {
  display: inline-block;
  width: 40px;
  padding-right: 14px;
  margin-right: 10px;
  text-align: right;
  color: #3A3A3F;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  user-select: none;
}

/* 代码高亮 */
.code-kw   { color: #C084FC; }
.code-cls  { color: #60A5FA; }
.code-fn   { color: #93C5FD; }
.code-str  { color: #86EFAC; }
.code-num  { color: #FCA5A5; }
.code-cmt  { color: #56565E; font-style: italic; }
.code-yaml { color: #7DD3FC; }

/* 输出区 */
.pg-out {
  display: flex;
  flex-direction: column;
  background: rgba(5, 5, 5, 0.5);
  min-width: 0;
}
.pg-out-head {
  padding: 12px 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-text-3);
  border-bottom: 1px solid var(--c-border);
}
.pg-out-body {
  margin: 0;
  padding: 18px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--c-text-2);
  flex: 1;
  min-height: 250px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.pg-out .dim { color: var(--c-text-3); }
.pg-out .ok { color: var(--c-green); }
.pg-out .blue { color: var(--c-blue-hi); }
.pg-out .warn { color: var(--c-amber); }
.pg-out .err { color: var(--c-red); }
.pg-out .head { color: var(--c-white); font-weight: 600; }

/* SQL 结果表格 */
.sql-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.sql-table th {
  text-align: left;
  padding: 7px 9px;
  color: var(--c-blue-hi);
  font-weight: 600;
  border-bottom: 1px solid rgba(37, 99, 235, 0.28);
  white-space: nowrap;
}
.sql-table td {
  padding: 7px 9px;
  color: var(--c-text-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}
.sql-table tr:hover td { background: rgba(37, 99, 235, 0.07); color: var(--c-text); }

/* =============================================================
   09.1 MySQL 开发者档案卡
   SELECT 查询结果渲染成一张正式档案卡
   ============================================================= */
.db-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
}
.db-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--c-green); flex-shrink: 0; }
.db-meta .dim { color: var(--c-text-3); }
.db-meta .grow { flex: 1; }
.db-meta .ok { color: var(--c-green); }

/* 档案卡 */
.dev-card {
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.07), rgba(13, 13, 13, 0.4));
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 12px;
  overflow: hidden;
  animation: card-rise 0.6s var(--ease) both;
}

.dev-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  background: rgba(37, 99, 235, 0.09);
  border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}
.dev-avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--grad-blue);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 6px 18px -6px rgba(37, 99, 235, 0.7);
}
.dev-id { min-width: 0; flex: 1; }
.dev-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-white);
}
.dev-badge {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 4px;
  color: var(--c-green);
  font-family: var(--f-mono);
}
.dev-role {
  font-size: 12px;
  color: var(--c-text-2);
  margin-top: 3px;
}
.dev-exp {
  text-align: right;
  flex-shrink: 0;
}
.dev-exp b {
  display: block;
  font-family: var(--f-mono);
  font-size: 21px;
  font-weight: 700;
  color: var(--c-blue-hi);
  line-height: 1;
}
.dev-exp span { font-size: 10px; color: var(--c-text-3); }

/* 档案字段 */
.dev-rows {
  padding: 6px 18px 16px;
}
.dev-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.dev-row:last-child { border-bottom: none; }
.dev-key {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--c-text-3);
  width: 92px;
  flex-shrink: 0;
}
.dev-val {
  font-size: 13px;
  color: var(--c-text);
  line-height: 1.6;
  flex: 1;
  min-width: 0;
}

/* 档案里的标签组 */
.dev-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.dev-tags span {
  font-family: var(--f-mono);
  font-size: 10.5px;
  padding: 3px 8px;
  background: rgba(37, 99, 235, 0.13);
  border: 1px solid rgba(37, 99, 235, 0.26);
  border-radius: 4px;
  color: var(--c-blue-hi);
  white-space: nowrap;
}
.dev-tags span.gray {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--c-border);
  color: var(--c-text-2);
}

/* 档案底部指标 */
.dev-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.dev-foot > div {
  background: rgba(13, 13, 13, 0.7);
  padding: 12px 14px;
  text-align: center;
}
.dev-foot b {
  display: block;
  font-family: var(--f-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1;
  margin-bottom: 4px;
}
.dev-foot span { font-size: 10.5px; color: var(--c-text-3); }

@keyframes card-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* MySQL 输出区需要允许更宽内容 */
.pg-panel[data-panel="mysql"] .pg-out-body { min-height: 320px; }


/* =============================================================
   10. 项目展示
   ============================================================= */
.proj {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--c-border);
}
.proj:first-of-type { border-top: none; padding-top: 0; }
.proj-reverse .proj-visual { order: 2; }
.proj-reverse .proj-body { order: 1; }

.proj-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.proj-body { min-width: 0; }

.proj-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 15px;
}
.proj-type {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  color: var(--c-blue);
  padding: 5px 11px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 5px;
}
.proj-year {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-text-3);
}
.proj-title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: -0.026em;
  margin-bottom: 15px;
  line-height: 1.2;
}
.proj-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-text-2);
  margin-bottom: 26px;
}

.proj-block { margin-bottom: 20px; }
.proj-block-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  color: var(--c-text-3);
  margin-bottom: 11px;
}
.proj-block-label::before {
  content: '';
  width: 14px; height: 1px;
  background: var(--c-blue);
}
.proj-block ul { display: flex; flex-direction: column; gap: 7px; }
.proj-block li {
  position: relative;
  padding-left: 18px;
  font-size: 13.8px;
  line-height: 1.65;
  color: var(--c-text-2);
}
.proj-block li::before {
  content: '';
  position: absolute;
  left: 2px; top: 8.5px;
  width: 5px; height: 5px;
  border-radius: 50%;
  border: 1px solid var(--c-blue);
}

.proj-kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 19px 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.kpi { display: flex; flex-direction: column; gap: 5px; }
.kpi-v {
  font-family: var(--f-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-blue-hi);
  letter-spacing: -0.02em;
}
.kpi-l { font-size: 12px; color: var(--c-text-3); }

.proj-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.proj-tags span {
  font-family: var(--f-mono);
  font-size: 11.5px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  color: var(--c-text-2);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.proj-tags span:hover {
  border-color: rgba(37, 99, 235, 0.45);
  color: var(--c-white);
  background: rgba(37, 99, 235, 0.1);
}

/* ---- 手机模拟器 ---- */
.phone-frame {
  position: relative;
  width: 264px;
  aspect-ratio: 264 / 540;
  background: #080808;
  border: 7px solid #1C1C1C;
  border-radius: 42px;
  box-shadow:
    0 40px 80px -28px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s ease;
}
.phone-frame:hover {
  transform: translateY(-10px) rotate(-1.2deg);
  box-shadow: 0 56px 100px -30px rgba(0, 0, 0, 1),
              0 0 60px -18px rgba(37, 99, 235, 0.45),
              0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone-notch {
  position: absolute;
  top: 7px; left: 50%;
  transform: translateX(-50%);
  width: 76px; height: 19px;
  background: #000;
  border-radius: 100px;
  z-index: 5;
}
.phone-screen {
  position: absolute;
  inset: 0;
  padding: 14px 13px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow: hidden;
}
.ps-status {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--c-text-2);
  padding: 0 5px;
}
.ps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px;
}
.ps-title { font-size: 15px; font-weight: 650; color: var(--c-white); }
.ps-capsule {
  width: 56px; height: 17px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  position: relative;
}
.ps-capsule::after {
  content: '';
  position: absolute;
  right: 5px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}
.ps-banner {
  height: 88px;
  border-radius: 11px;
  background: var(--grad-blue);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  overflow: hidden;
  position: relative;
}
.ps-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120px circle at 82% 22%, rgba(255,255,255,0.32), transparent 68%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 9px, transparent 9px 18px);
}
.ps-banner-text {
  position: relative;
  z-index: 1;
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.5;
}
.ps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.ps-cell {
  aspect-ratio: 1;
  border-radius: 9px;
  background: linear-gradient(150deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.ps-list { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.ps-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.028);
  border-radius: 9px;
}
.ps-item i {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--grad-blue);
  flex-shrink: 0;
  opacity: 0.85;
}
.ps-item span {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  flex: 1;
}
.ps-item em {
  width: 22px; height: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.ps-tabbar {
  display: flex;
  justify-content: space-around;
  padding: 9px 0 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ps-tabbar b {
  width: 15px; height: 15px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.13);
}
.ps-tabbar b:nth-child(2) { background: var(--c-blue); }

/* ---- 后台面板模拟 ---- */
.dashboard-frame {
  width: 100%;
  max-width: 460px;
  background: #0A0A0A;
  border: 1px solid var(--c-border-hi);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 34px 74px -26px rgba(0, 0, 0, 0.95);
  transition: transform 0.6s var(--ease), box-shadow 0.6s ease;
}
.dashboard-frame:hover {
  transform: translateY(-8px);
  box-shadow: 0 46px 92px -28px rgba(0, 0, 0, 1),
              0 0 56px -18px rgba(37, 99, 235, 0.4);
}
.dash-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--c-border);
}
.dt-dot { width: 8px; height: 8px; border-radius: 50%; background: #333338; }
.dt-url {
  margin-left: 12px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--c-text-3);
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 14px;
  border-radius: 100px;
}
.dash-body { display: flex; height: 268px; }
.dash-side {
  width: 46px;
  border-right: 1px solid var(--c-border);
  padding: 13px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}
.ds-item {
  width: 19px; height: 19px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
}
.ds-item.active { background: var(--c-blue); }
.dash-main {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dk {
  height: 46px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
}
.dk i {
  display: block;
  width: 100%;
  height: var(--h, 50%);
  background: linear-gradient(180deg, rgba(37,99,235,0.42), rgba(37,99,235,0.09));
  border-top: 1.5px solid var(--c-blue);
}
.dk:nth-child(1) i { height: 62%; }
.dk:nth-child(2) i { height: 38%; }
.dk:nth-child(3) i { height: 78%; }
.dash-chart {
  flex: 1;
  min-height: 0;
  background: rgba(255, 255, 255, 0.022);
  border-radius: 8px;
  padding: 10px;
}
.dash-chart svg { width: 100%; height: 100%; display: block; }
.dash-table { display: flex; flex-direction: column; gap: 7px; }
.dtr {
  height: 15px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
}

/* ---- AI 项目视觉 ---- */
.aiproj-visual {
  width: 100%;
  max-width: 460px;
  padding: 30px 24px;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.aiproj-visual:hover {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 0 48px -16px rgba(37, 99, 235, 0.4);
}
.ai-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.ai-node {
  flex: 1;
  min-width: 84px;
  padding: 15px 11px;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  transition: transform 0.4s var(--ease), border-color 0.4s ease;
}
.ai-node:hover { transform: translateY(-4px); }
.ai-node.accent {
  background: rgba(37, 99, 235, 0.13);
  border-color: rgba(37, 99, 235, 0.4);
}
.ai-node span {
  display: block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--c-blue-hi);
  margin-bottom: 5px;
}
.ai-node i {
  font-style: normal;
  font-size: 12px;
  color: var(--c-text-2);
}
.ai-link {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(37,99,235,0.15), var(--c-blue));
  position: relative;
  flex-shrink: 0;
}
.ai-link::after {
  content: '';
  position: absolute;
  top: -1.5px; left: 0;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-blue);
  box-shadow: 0 0 8px var(--c-blue);
  animation: link-flow 2s linear infinite;
}

.ai-code-lines { display: flex; flex-direction: column; gap: 7px; }
.ai-code-lines i {
  display: block;
  height: 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  animation: code-scan 3.4s ease-in-out infinite;
}
.ai-code-lines i:nth-child(1) { width: 78%; animation-delay: 0s; }
.ai-code-lines i:nth-child(2) { width: 54%; animation-delay: 0.16s; }
.ai-code-lines i:nth-child(3) { width: 88%; animation-delay: 0.32s; }
.ai-code-lines i:nth-child(4) { width: 42%; animation-delay: 0.48s; }
.ai-code-lines i:nth-child(5) { width: 66%; animation-delay: 0.64s; }
.ai-code-lines i:nth-child(6) { width: 34%; animation-delay: 0.8s; }


/* =============================================================
   11. AI 工程
   ============================================================= */
.ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ai-terminal {
  background: rgba(10, 10, 10, 0.86);
  border: 1px solid var(--c-border-hi);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  box-shadow: 0 28px 70px -26px rgba(0, 0, 0, 0.9);
}
.ai-term-body {
  min-height: 388px;
  max-height: 480px;
  overflow-y: auto;
}
.ai-term-body::-webkit-scrollbar { width: 5px; }
.ai-term-body::-webkit-scrollbar-thumb { background: #262626; border-radius: 3px; }

.term-user {
  display: flex;
  gap: 11px;
  margin-bottom: 15px;
}
.term-user .tu-key { color: var(--c-green); flex-shrink: 0; }
.term-user .tu-text { color: var(--c-white); }
.term-ai {
  display: flex;
  gap: 11px;
  margin-bottom: 15px;
}
.term-ai .ta-key { color: var(--c-blue-hi); flex-shrink: 0; }
.term-ai .ta-text { color: var(--c-text-2); }
.term-ai .ta-text em {
  font-style: normal;
  color: var(--c-white);
}
.term-ai .ta-text code {
  font-family: var(--f-mono);
  font-size: 12.5px;
  padding: 1px 6px;
  background: rgba(37, 99, 235, 0.16);
  border-radius: 4px;
  color: var(--c-blue-hi);
}

.ai-term-cursor {
  padding: 0 20px 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 13px;
}
.ai-term-cursor .tc-key { color: var(--c-blue-hi); }
.ai-term-cursor span {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--c-blue);
  animation: blink 1.05s step-end infinite;
}

.ai-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ai-card {
  position: relative;
  padding: 26px 24px;
  background: rgba(13, 13, 13, 0.72);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.42s var(--ease), border-color 0.42s ease,
              background 0.42s ease;
}
.ai-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(16, 16, 16, 0.92);
}
.ai-card-num {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-blue);
  margin-bottom: 13px;
  letter-spacing: 0.05em;
}
.ai-card h3 {
  font-size: 18px;
  font-weight: 650;
  color: var(--c-white);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.ai-card p {
  font-size: 13.8px;
  line-height: 1.75;
  color: var(--c-text-2);
  margin-bottom: 16px;
}
.ai-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-card-tags span {
  font-family: var(--f-mono);
  font-size: 10.8px;
  padding: 4px 9px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 5px;
  color: var(--c-blue-hi);
}


/* =============================================================
   12. About
   ============================================================= */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 64px;
  align-items: start;
}
.about-text { min-width: 0; }
.about-lead {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 650;
  color: var(--c-white);
  line-height: 1.42;
  letter-spacing: -0.022em;
  margin-bottom: 24px !important;
}
.about-text p {
  font-size: 15.5px;
  line-height: 1.88;
  color: var(--c-text-2);
  margin-bottom: 19px;
}

.about-focus {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
  padding-top: 34px;
  border-top: 1px solid var(--c-border);
}
.focus-item { display: flex; gap: 17px; }
.focus-key {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-blue);
  padding-top: 3px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.focus-item h4 {
  font-size: 16.5px;
  font-weight: 650;
  color: var(--c-white);
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}
.focus-item p {
  font-size: 14px;
  line-height: 1.72;
  color: var(--c-text-2);
  margin-bottom: 0 !important;
}

.about-card {
  padding: 32px 28px;
  background: rgba(13, 13, 13, 0.75);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  transition: border-color 0.45s ease;
}
.about-card:hover { border-color: rgba(37, 99, 235, 0.32); }
.about-logo { margin-bottom: 19px; }
.about-card-name {
  font-family: var(--f-mono);
  font-size: 25px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.about-card-role {
  font-size: 13px;
  color: var(--c-text-3);
  line-height: 1.6;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--c-border);
}

.about-facts { display: flex; flex-direction: column; gap: 13px; margin-bottom: 24px; }
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--c-text-3);
}
.fact b { font-size: 13.5px; font-weight: 550; color: var(--c-text); }

.about-skilltags { display: flex; flex-wrap: wrap; gap: 6px; }
.about-skilltags span {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  color: var(--c-text-2);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.about-skilltags span:hover {
  border-color: rgba(37, 99, 235, 0.45);
  color: var(--c-white);
}


/* =============================================================
   13. Contact / Footer
   ============================================================= */
.contact-section { padding: 132px 0; }
.contact-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 74px 44px;
  background: rgba(13, 13, 13, 0.66);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
/* 顶部蓝色光带 */
.contact-inner::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 55%; height: 1px;
  background: var(--grad-blue);
  box-shadow: 0 0 22px 1px rgba(37, 99, 235, 0.65);
}
.contact-title {
  font-size: clamp(32px, 5.4vw, 54px);
  font-weight: 750;
  color: var(--c-white);
  letter-spacing: -0.032em;
  line-height: 1.16;
  margin: 22px 0 20px;
}
.contact-desc {
  font-size: 16px;
  line-height: 1.78;
  color: var(--c-text-2);
  margin-bottom: 38px;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.footer {
  border-top: 1px solid var(--c-border);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  color: var(--c-text-3);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px;
  color: var(--c-text-3);
  transition: color 0.28s ease;
}
.footer-links a:hover { color: var(--c-white); }


/* =============================================================
   14. 动画关键帧
   ============================================================= */

/* 滚动进场 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 淡入上浮 */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 状态脉冲 */
@keyframes pulse-ring {
  0%   { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* 呼吸 */
@keyframes breathe {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.1); }
}

/* 光标闪烁 */
@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* 滚动提示 */
@keyframes scroll-drop {
  0%   { top: -46px; opacity: 0; }
  30%  { opacity: 1; }
  100% { top: 46px;  opacity: 0; }
}

/* 跑马灯 */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 环形旋转 */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 连接线流动 */
@keyframes dash-flow {
  to { stroke-dashoffset: -22; }
}

/* 日志进场 */
@keyframes log-in {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* AI 连线流动 */
@keyframes link-flow {
  0%   { left: 0; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* AI 代码行扫描 */
@keyframes code-scan {
  0%, 100% { background: rgba(255, 255, 255, 0.06); transform: translateX(0); }
  50%      { background: rgba(37, 99, 235, 0.34); transform: translateX(6px); }
}


/* =============================================================
   15. 响应式
   ============================================================= */

/* 大屏收窄间距 */
@media (max-width: 1180px) {
  .hero-container { grid-template-columns: 1fr; gap: 48px; }
  .hero-right {
    flex-direction: row;
    align-items: stretch;
  }
  .terminal-window { flex: 1.5; }
  .server-panel { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .proj { gap: 44px; }
  .about-layout { gap: 44px; }
}

/* 平板 */
@media (max-width: 1024px) {
  .section { padding: 100px 0; }
  .container { padding: 0 28px; }

  .cap-dashboard { grid-template-columns: 1fr 1fr; }
  .cap-col:first-child { grid-column: 1 / -1; }

  .universe { min-height: 0; }
  /* 星图转为静态列表布局 */
  .universe-lines { display: none; }
  .orbit {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
    gap: 18px;
    margin-top: 46px;
  }
  .stack-node {
    position: relative;
    width: auto;
    transform: none;
    top: auto !important;
    left: auto !important;
  }
  .universe-core { margin: 0 auto; }

  .pg-panel { grid-template-columns: 1fr; }
  .pg-code-wrap { border-right: none; border-bottom: 1px solid var(--c-border); }
  .pg-out-body { min-height: 200px; }

  .proj, .proj-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .proj-reverse .proj-visual { order: 0; }
  .proj-reverse .proj-body { order: 0; }

  .ai-layout { grid-template-columns: 1fr; }
  .ai-terminal { position: static; }

  .about-layout { grid-template-columns: 1fr; }
  .about-card { position: static; }
}

/* 移动端 */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 82px 0; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; gap: 14px; }

  /* 汉堡菜单 */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 22px;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-border);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0.3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link { padding: 14px 6px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-link::after { display: none; }
  .nav-cta { display: none; }
  /* 语言开关在移动端保持可见，放在汉堡按钮左侧 */
  .lang-switch { padding: 2px; }
  .lang-opt { padding: 5px 10px; font-size: 11px; }

  .hero { padding: calc(var(--nav-h) + 46px) 0 72px; }
  .hero-container { gap: 36px; }
  .hero-right { flex-direction: column; }
  .terminal-window, .server-panel { flex: none; width: 100%; }
  .terminal-body { font-size: 12.5px; min-height: 232px; padding: 16px; }
  .hero-stats { grid-template-columns: 1fr; gap: 20px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .scroll-hint { display: none; }

  .section-head { margin-bottom: 46px; }
  .cap-dashboard { grid-template-columns: 1fr; }
  .cap-col:first-child { grid-column: auto; }
  .cap-cards { grid-template-columns: 1fr; }
  .cap-card { padding: 26px 22px; }

  .pg-tabs { padding: 7px; }
  .pg-tab { padding: 8px 14px; font-size: 12px; }
  .pg-code { font-size: 11.8px; }
  .pg-code .ln { width: 30px; margin-right: 7px; padding-right: 9px; }

  .proj { padding: 44px 0; }
  .proj-kpi { grid-template-columns: 1fr; gap: 15px; }
  .phone-frame { width: 232px; }

  .ai-cards { grid-template-columns: 1fr; }
  .ai-term-body { min-height: 320px; max-height: 380px; }

  .contact-inner { padding: 52px 24px; }
  .contact-actions .btn { width: 100%; justify-content: center; }
  .footer-inner { justify-content: center; text-align: center; }
}

/* 小屏优化 */
@media (max-width: 420px) {
  .hero-title-line { font-size: 46px; }
  .hero-title-sub { font-size: 16px; }
  .contact-actions { flex-direction: column; }
  .universe-core { width: 140px; height: 140px; }
  .core-name { font-size: 22px; }
}

/* 尊重「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}