/* ============================================================
   nocau · 极简未来高级风样式表（Apple / Linear / Vercel 风格）
   原则：黑白灰主基调 · 低饱和 · 无光污染 · 克制的品牌青
   章节：
   01 变量与主题
   02 基础与重置
   03 字体层级（fluid type）
   04 背景：流动渐变 + 极淡点阵
   05 布局容器
   06 导航
   07 Hero
   08 区块标题
   09 按钮
   10 卡片（作品 / 特性）
   11 技能
   12 时间线
   13 联系
   14 表单
   15 页脚
   16 404
   17 光标跟随
   18 滚动进度条
   19 渐入动画与页面过渡
   20 回到顶部
   21 响应式与动效降级
   ============================================================ */

/* ============ 01 变量与主题 ============ */
:root {
  --brand: #6fb3a8;
  --brand-soft: rgba(111, 179, 168, 0.35);
  --radius: 14px;
  --radius-sm: 9px;
  --transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 1120px;
  --header-h: 68px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d0f;
  --bg-soft: #121518;
  --bg-card: #15181c;
  --text: #e8eaed;
  --text-2: #a7adb5;
  --text-3: #6b7280;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --grad-a: rgba(126, 205, 196, 0.08);
  --grad-b: rgba(122, 158, 224, 0.09);
  --grad-c: rgba(176, 142, 216, 0.075);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f8;
  --bg-soft: #eef0f2;
  --bg-card: #ffffff;
  --text: #1a1d21;
  --text-2: #555c66;
  --text-3: #8b919b;
  --line: rgba(20, 24, 30, 0.09);
  --line-strong: rgba(20, 24, 30, 0.16);
  --grad-a: rgba(170, 226, 218, 0.48);
  --grad-b: rgba(158, 186, 240, 0.36);
  --grad-c: rgba(198, 170, 234, 0.32);
  --shadow: 0 20px 50px rgba(20, 24, 30, 0.07);
}

/* ============ 02 基础与重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
}

::selection { background: var(--brand-soft); color: inherit; }

/* 滚动条：细条、圆角、低对比，hover 增强 */
html { scrollbar-width: thin; scrollbar-color: rgba(130, 140, 150, 0.32) transparent; }
html::-webkit-scrollbar { width: 8px; height: 8px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb {
  background: rgba(130, 140, 150, 0.26);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover {
  background: rgba(130, 140, 150, 0.55);
  background-clip: padding-box;
}

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

img, svg { display: inline-block; vertical-align: middle; }

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

input, textarea { font-family: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

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

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

/* ============ 03 字体层级（fluid type） ============ */
/* 展示型大标题 */
.display-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
/* 页面主标题（h1） */
.section-title, h1.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 720;
  letter-spacing: -0.028em;
  line-height: 1.2;
}
/* 次级标题（h2 / 卡片标题） */
h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 660; letter-spacing: -0.02em; line-height: 1.35; }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 650; letter-spacing: -0.015em; line-height: 1.4; }
h4 { font-size: 1rem; font-weight: 620; letter-spacing: -0.01em; }
/* 正文 */
p, .text { color: var(--text-2); font-size: 1rem; line-height: 1.8; }
/* 辅助文字 */
.section-desc, .project-subtitle, .label, .role {
  color: var(--text-3);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
/* 等宽标签 / 数字 / 代码 */
.mono, .tag, .skill-tag, .platform-badge, .section-tag,
.notfound-code, .cover-en, .time {
  font-family: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, "Roboto Mono", monospace;
}
/* 渐变文字（克制的品牌青点缀） */
.gradient-text {
  background: linear-gradient(100deg, var(--text) 30%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 细线装饰（区块标题下） */
.section-divider {
  width: 42px; height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
  border-radius: 2px;
}

/* ============ 04 背景：流动渐变 + 极淡点阵 ============ */
/* 低对比慢速流动渐变层 */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 38% at 22% 24%, var(--grad-b), transparent 70%),
    radial-gradient(36% 32% at 76% 18%, var(--grad-c), transparent 70%),
    radial-gradient(46% 42% at 64% 78%, var(--grad-a), transparent 72%),
    radial-gradient(32% 30% at 18% 82%, var(--grad-a), transparent 70%);
  filter: blur(44px);
  animation: gradientFlow 42s ease-in-out infinite alternate;
  opacity: 1;
  will-change: transform;
}
@keyframes gradientFlow {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(3%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 3%, 0) scale(1.02); }
}

/* 极淡点阵画布 */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ============ 05 布局容器 ============ */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 52px; }
.section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* ============ 06 导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #22262b, #3a4048);
  color: #f2f4f6;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
}
.brand-name { font-weight: 700; letter-spacing: -0.02em; font-size: 1.02rem; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  position: relative;
  font-size: 0.95rem;
  color: var(--text-2);
  transition: color var(--transition);
  padding: 6px 2px;
}
/* 导航 hover：细点标记 + 下划线 */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateX(-50%) scale(0);
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a[aria-current="page"], .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: translateX(-50%) scale(1); }
/* 移动导航折叠 */
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--line); }
.nav-toggle span { width: 17px; height: 1.6px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* 主题切换按钮：极简线性图标 */
.theme-toggle {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-strong); background: var(--bg-soft); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ============ 07 Hero ============ */
.hero { position: relative; overflow: hidden; padding: 120px 0 90px; text-align: center; }
.hero .container { position: relative; z-index: 1; }
/* 视差光球：低饱和黑白灰，随鼠标缓动（由 main.js 驱动） */
.hero-orb {
  position: absolute;
  width: 520px; height: 520px;
  left: 50%; top: 40%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, rgba(150, 158, 168, 0.16), rgba(150, 158, 168, 0) 62%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  opacity: 0.9;
}
.hero .display-title { margin-bottom: 20px; }
.type-line {
  font-family: "SF Mono", Consolas, monospace;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  min-height: 1.8em;
  margin-bottom: 18px;
}
.type-line .cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--brand); margin-left: 3px; vertical-align: -0.15em; animation: blink 1.1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero p { max-width: 560px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 64px; flex-wrap: wrap; }

/* 视差元素（滚动时标题/按钮轻微上移淡出，由 main.js 驱动） */
.hero .display-title, .hero .type-line, .hero .hero-actions { will-change: transform, opacity; }
.reveal.parallax-live { transition: opacity 0.3s ease, transform 0.08s linear; }

/* ============ 08 区块标题 ============ */
.section-title { margin: 2px 0; }

/* ============ 09 按钮 ============ */
/* 按钮涟漪（克制，由 main.js 驱动） */
.btn, .filter-btn, .theme-toggle, .nav-toggle { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: var(--brand-soft);
  transform: scale(0);
  opacity: 0.6;
  pointer-events: none;
  animation: ripple-anim 0.55s ease-out forwards;
}
@keyframes ripple-anim { to { transform: scale(2.4); opacity: 0; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.95rem; font-weight: 600;
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  position: relative;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(120, 130, 140, 0.22); background: var(--brand); border-color: var(--brand); color: #0b0d0f; }
.btn-outline:hover { background: var(--bg-soft); border-color: var(--text-2); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ============ 10 卡片（作品 / 特性） ============ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.feature-card, .project-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card:hover, .project-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--bg-card) 92%, var(--brand) 4%);
}
.feature-card:hover .feature-icon { color: var(--brand); border-color: var(--brand-soft); }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 0.95rem; }

.feature-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text-2);
  margin-bottom: 18px;
  transition: color var(--transition), border-color var(--transition);
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 项目卡片 */
.project-cover {
  position: relative;
  height: 190px;
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 22px;
  margin: -30px -30px 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #1c2026, #262b33);
  border-bottom: 1px solid var(--line);
}
.cover-gradient-1 { background: linear-gradient(135deg, #20242a, #2c333c 70%, #34534e); }
.cover-gradient-2 { background: linear-gradient(135deg, #1e2228, #2b313a 70%, #3a4450); }
.cover-gradient-3 { background: linear-gradient(135deg, #21262c, #2e363f 70%, #3f4638); }
.cover-gradient-4 { background: linear-gradient(135deg, #1f242a, #2c343d 70%, #34505a); }
.cover-icon { position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--transition), stroke var(--transition); }
.project-card:hover .cover-icon { transform: translateY(-3px) rotate(-3deg); stroke: rgba(255, 255, 255, 0.9); }
.cover-title { font-size: 1.5rem; font-weight: 720; letter-spacing: -0.02em; color: #f1f3f5; }
.cover-en { font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.cover-index {
  position: absolute; top: 16px; left: 20px;
  font-size: 0.72rem; color: rgba(255, 255, 255, 0.35); letter-spacing: 0.14em;
}
.cover-meta { position: absolute; top: 16px; right: 20px; display: flex; gap: 8px; }
.platform-badge {
  font-size: 0.68rem; letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.project-body h3 { margin-bottom: 6px; }
.project-subtitle { margin-bottom: 12px; }
.project-desc { font-size: 0.95rem; margin-bottom: 16px; }
.project-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag {
  font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 4px 10px;
  border-radius: 999px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
/* hover 时技术栈标签微亮（D） */
.project-card:hover .tag { color: var(--text); border-color: var(--line-strong); }
.project-card:hover .tag:first-child { color: var(--brand); border-color: var(--brand-soft); background: var(--brand-soft); }
.project-links { display: flex; gap: 18px; }
.project-link {
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-2);
  position: relative;
  transition: color var(--transition);
}
.project-link::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.project-link:hover { color: var(--text); }
.project-link:hover::after { transform: scaleX(1); }
.project-link.disabled { color: var(--text-3); cursor: not-allowed; }
.project-link.disabled:hover { color: var(--text-3); }
.project-link.disabled::after { display: none; }

.empty-tip { display: none; text-align: center; color: var(--text-3); padding: 40px 0; }

/* 筛选栏 */
.filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  font-size: 0.9rem; font-weight: 550;
  color: var(--text-2);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: all var(--transition);
}
.filter-btn:hover { color: var(--text); border-color: var(--line-strong); }
.filter-btn.active { color: var(--bg); background: var(--text); border-color: var(--text); }

/* ============ 10b 想法项目页 ============ */
.idea-note {
  max-width: 720px; margin: 8px auto 0;
  color: var(--text-3); font-size: 0.92rem;
  text-align: center;
}
.ideas-list { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; align-items: start; }
.idea-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.16s ease-out, border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.idea-card.hide { display: none; }
.idea-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); background: color-mix(in srgb, var(--bg-card) 96%, var(--brand) 3%); }
.idea-card.tilt-live { transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform 0.16s ease-out, border-color var(--transition), box-shadow var(--transition), background var(--transition); }
.idea-head { display: flex; gap: 16px; align-items: flex-start; cursor: pointer; margin-bottom: 0; }
.idea-index {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--brand);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 0.9rem; font-weight: 700;
  background: var(--bg-soft);
}
.idea-head-main h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.idea-subtitle { color: var(--text-2); font-size: 0.96rem; margin-bottom: 12px; }
.idea-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.idea-section { margin-bottom: 18px; }
.idea-section h3 {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.idea-section p { font-size: 0.94rem; color: var(--text-2); }
.idea-section ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.idea-section ul li { position: relative; padding-left: 16px; font-size: 0.94rem; color: var(--text-2); }
.idea-section ul li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-soft); }
.idea-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.flow { list-style: none; counter-reset: flow; display: flex; flex-direction: column; gap: 7px; }
.flow li { position: relative; padding-left: 30px; font-size: 0.92rem; color: var(--text-2); counter-increment: flow; }
.flow li::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute; left: 0; top: 0.1em;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text-3);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 0.66rem;
}
.flow li strong { color: var(--text); font-weight: 650; margin-right: 4px; }
.diff-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.diff-list li { position: relative; padding-left: 64px; font-size: 0.92rem; color: var(--text-2); }
.diff-tag {
  position: absolute; left: 0; top: 0.05em;
  width: 52px; text-align: center;
  font-size: 0.72rem;
  padding: 3px 0;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--text-3);
  background: var(--bg-soft);
}
.diff-list li:nth-child(1) .diff-tag { color: var(--brand); border-color: var(--brand-soft); background: var(--brand-soft); }
.idea-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text-3);
}
.idea-meta span::before { content: "· "; color: var(--brand); }

/* ============ 10c 想法项目：筛选 / 折叠 / 投票 / 汇总 ============ */
.idea-filter-bar { justify-content: center; }
.idea-empty-tip { display: none; }

.idea-toggle {
  flex-shrink: 0;
  width: 30px; height: 30px;
  margin-top: 4px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-soft);
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--transition);
}
.idea-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.idea-card.open .idea-toggle svg { transform: rotate(180deg); }
.idea-toggle:hover { color: var(--brand); border-color: var(--brand-soft); }

.idea-detail { display: none; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.idea-card.open .idea-detail { display: block; animation: ideaFade 0.25s var(--ease); }
@keyframes ideaFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.idea-vote {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  flex-wrap: wrap;
}
.vote-label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-right: 2px; }
.vote-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.88rem; font-weight: 550;
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: all var(--transition);
}
.vote-btn .vote-count { font-family: "SF Mono", Consolas, monospace; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.vote-btn:hover { color: var(--text); border-color: var(--line-strong); }
.vote-like.active { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.vote-dislike.active { color: #b3564a; border-color: rgba(179, 86, 74, 0.55); background: rgba(179, 86, 74, 0.12); }

.vote-summary {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  max-width: 1180px; margin: 0 auto 8px;
  padding: 20px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.vote-summary-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 110px; }
.vs-num { font-size: 2.1rem; font-weight: 750; font-family: "SF Mono", Consolas, monospace; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1; }
.vs-label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.vote-summary-top { min-width: 0; }
.vs-top-label { display: block; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.vote-top3 { list-style: none; counter-reset: top; display: flex; flex-direction: column; gap: 4px; }
.vote-top3 li { font-size: 0.9rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vote-top3 .vs-empty { color: var(--text-3); }
.vote-note { grid-column: 1 / -1; font-size: 0.78rem; color: var(--text-3); border-top: 1px dashed var(--line); padding-top: 12px; }

/* 3D tilt（克制角度，由 main.js 驱动） */
.project-card, .feature-card, .idea-card { transform-style: preserve-3d; will-change: transform; }
.project-card.tilt-live, .feature-card.tilt-live {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.16s ease-out, border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

/* ============ 11 技能 ============ */
.skills-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 720px; margin: 0 auto; }
.skill-tag {
  font-size: 0.82rem;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 8px 16px;
  border-radius: 999px;
  transition: all var(--transition);
}
.skill-tag:hover { color: var(--brand); border-color: var(--brand-soft); background: var(--brand-soft); transform: translateY(-2px); }

.skill-item { margin-bottom: 22px; }
.skill-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.skill-name { font-size: 0.95rem; font-weight: 600; }
.skill-pct { font-family: "SF Mono", Consolas, monospace; font-size: 0.85rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.skill-bar { height: 5px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.skill-bar .fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  border-radius: 99px;
  transition: width 1.1s var(--ease);
}

/* ============ 11b 关于页 ============ */
.about-layout { display: grid; grid-template-columns: 320px 1fr; gap: 52px; align-items: start; }
.about-avatar {
  text-align: center;
  padding: 36px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky; top: calc(var(--header-h) + 28px);
}
.avatar-box {
  width: 88px; height: 88px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 26px;
  background: linear-gradient(135deg, #22262b, #3a4048);
  color: #f2f4f6;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 1.7rem; font-weight: 750;
  letter-spacing: 0.01em;
  border: 1px solid var(--line-strong);
}
.about-avatar h3 { margin-bottom: 4px; }
.about-avatar .role { margin-bottom: 12px; }
.about-avatar .bio { font-size: 0.92rem; }
.about-info h3 { margin: 34px 0 16px; font-size: 1.3rem; }
.about-info h3:first-child { margin-top: 0; }
.about-info .text { margin-bottom: 8px; }

/* ============ 12 时间线 ============ */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px;
  width: 1px; background: var(--line-strong);
}
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item::before {
  content: ""; position: absolute; left: -22px; top: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--brand);
  box-sizing: border-box;
}
.timeline-item .time { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); display: block; margin-bottom: 4px; }
.timeline-item h4 { margin-bottom: 6px; }
.timeline-item p { font-size: 0.93rem; }

/* ============ 13 联系 ============ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-methods { display: flex; flex-direction: column; gap: 18px; }
.contact-method {
  display: flex; gap: 16px; align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: all var(--transition);
}
.contact-method:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-method .icon {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: color var(--transition), border-color var(--transition);
}
.contact-method:hover .icon { color: var(--brand); border-color: var(--brand-soft); }
.contact-method .icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-method h4 { margin-bottom: 2px; }
.contact-method p { font-size: 0.9rem; font-family: "SF Mono", Consolas, monospace; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

/* ============ 14 表单 ============ */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; color: var(--text-2); }
.form-control {
  width: 100%;
  padding: 12px 15px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.form-control::placeholder { color: var(--text-3); }
.form-control:focus {
  outline: none;
  border-color: var(--brand-soft);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
textarea.form-control { resize: vertical; min-height: 130px; }
.form-message { margin-top: 14px; font-size: 0.92rem; min-height: 1.4em; }
.form-message.error { color: #e07a6a; }
.form-message.success { color: var(--brand); }

/* ============ 15 页脚 ============ */
.site-footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-2); }
.mini-logo {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, #2a2f36, #3d444d);
  color: #f2f4f6;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 700;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 0.9rem; color: var(--text-3); transition: color var(--transition); position: relative; }
.footer-links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: var(--brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.footer-links a:hover { color: var(--text); }
.footer-links a:hover::after { transform: scaleX(1); }

/* ============ 16 404 ============ */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound-code {
  font-size: clamp(5rem, 16vw, 8rem);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(180deg, var(--text), var(--text-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.notfound h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 18px 0 10px; font-weight: 700; letter-spacing: -0.02em; }
.notfound p { margin-bottom: 30px; }

/* ============ 17 光标跟随：微光发散（桌面端） ============ */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 220px; height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  background: radial-gradient(circle, rgba(111, 179, 168, 0.11) 0%, rgba(111, 179, 168, 0.05) 38%, transparent 68%);
  opacity: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.5s ease, background 0.3s ease;
}
body.cursor-on .cursor-glow { opacity: 1; }
body.cursor-on .cursor-glow.cursor-hover {
  background: radial-gradient(circle, rgba(122, 158, 224, 0.18) 0%, rgba(122, 158, 224, 0.08) 38%, transparent 72%);
}

/* ============ 18 滚动进度条 ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--brand-soft), var(--brand));
  z-index: 100;
  border-radius: 0 2px 2px 0;
}

/* ============ 19 渐入动画与页面过渡 ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
/* 方案卡片：合规与风险提示 */
.idea-warn {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-left: 2px solid var(--brand-soft);
  background: var(--bg-soft);
  color: var(--text-3);
  font-size: 0.88rem;
  line-height: 1.7;
}
/* 想法卡片：进入动画与 tilt 跟手过渡协调 */
.idea-card.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.idea-card.reveal.tilt-live { transition: opacity 0.3s ease, transform 0.16s ease-out, border-color var(--transition), box-shadow var(--transition), background var(--transition); }

/* 页面离开过渡（点击站内链接） */
body.page-leaving { opacity: 0; transform: translateY(8px); transition: opacity 0.22s ease, transform 0.22s ease; }
body { transition: opacity 0.3s ease, background-color 0.4s ease, color 0.4s ease; }

/* ============ 20 回到顶部 ============ */
.back-to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-2);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), color var(--transition), border-color var(--transition);
  z-index: 60;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { color: var(--brand); border-color: var(--brand-soft); transform: translateY(-3px); }
.back-to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ============ 21 响应式与动效降级 ============ */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 34px; }
  .about-avatar { position: static; }
  .ideas-list { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .vote-summary { grid-template-columns: 1fr; gap: 16px; }
  .hero { padding: 88px 0 64px; }
  .section { padding: 72px 0; }
  .nav-links {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: var(--shadow);
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 10px 4px; font-size: 1rem; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .ideas-list { grid-template-columns: 1fr; }
  .vote-summary { padding: 16px 18px; }
  .idea-card { padding: 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  body::before { animation: none; }
  .cursor-glow { display: none !important; }
  .scroll-progress { display: none; }
}

/* 桌面端才启用 hover 类交互（触屏降级） */
@media (hover: hover) and (pointer: fine) {
  .cursor-glow { display: block; }
}
@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none !important; }
}


/* ===== 方案详情新增：代码示例 / 来源 / 开发步骤 ===== */
.code-caption {
  font-size: 0.85rem;
  color: #666;
  margin: 0.6rem 0 0.4rem;
}
.idea-section pre {
  margin: 0 0 0.8rem;
  padding: 0.8rem 1rem;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
}
.idea-section code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: transparent;
}
.src-list {
  margin: 0;
  padding-left: 1.1rem;
  list-style: square;
}
.src-list li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}
.src-list a {
  color: #222;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}
.src-list a:hover {
  color: #888;
}
.step-phase {
  margin: 0.8rem 0 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  .code-caption { color: #aaa; }
  .idea-section pre {
    background: #1a1a1a;
    border-color: #333;
  }
  .src-list a { color: #ddd; }
  .src-list a:hover { color: #aaa; }
}

/* ============================================================
   22 重构新增：聚光灯 / 水面波纹 / 板块式首页 / 扩充板块 / 联系页 / 开源板块
   ============================================================ */

/* ---------- 22.1 鼠标聚光灯（柔和径向渐变，类似手电筒照亮，无硬边） ---------- */
.cursor-glow {
  width: min(30vmin, 320px);
  height: min(30vmin, 320px);
  margin: calc(min(30vmin, 320px) / -2) 0 0 calc(min(30vmin, 320px) / -2);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0.03) 52%, transparent 72%);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: normal;
  transition: opacity 0.5s ease;
  z-index: 9997;
}
html[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(30, 34, 40, 0.16) 0%, rgba(30, 34, 40, 0.08) 30%, rgba(30, 34, 40, 0.03) 52%, transparent 72%);
}
body.cursor-on .cursor-glow.cursor-hover {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.18) 32%, rgba(255, 255, 255, 0.06) 55%, transparent 75%);
}
html[data-theme="light"] body.cursor-on .cursor-glow.cursor-hover {
  background: radial-gradient(circle, rgba(30, 34, 40, 0.34) 0%, rgba(30, 34, 40, 0.18) 32%, rgba(30, 34, 40, 0.06) 55%, transparent 75%);
}

/* ---------- 22.2 点击水面波纹（同心圆环扩散，克制透明度、低饱和） ---------- */
.water-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 9996;
}
.water-ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(158, 178, 210, 0.6);
  box-shadow: 0 0 12px rgba(148, 170, 210, 0.28), inset 0 0 6px rgba(148, 170, 210, 0.18);
  transform: scale(0.1);
  opacity: 0.5;
  will-change: transform, opacity;
  animation: water-ripple 0.62s cubic-bezier(0.25, 0.5, 0.32, 1) forwards;
}
html[data-theme="light"] .water-ripple {
  border-color: rgba(96, 110, 132, 0.52);
  box-shadow: 0 0 12px rgba(96, 110, 132, 0.22), inset 0 0 6px rgba(96, 110, 132, 0.14);
}
@keyframes water-ripple {
  0%   { transform: scale(0.1); opacity: 0.5; }
  45%  { opacity: 0.32; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* ---------- 22.3 板块式首页 ---------- */
.section-panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h, 64px) + 48px) 0 64px;
}
.section-panel .container { width: 100%; }
/* ---------- 22.4 数据统计 ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.stat {
  text-align: center;
  padding: 36px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}
.stat .num {
  display: block;
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1.1;
}
.stat-label { display: block; margin-top: 10px; font-size: 0.9rem; color: var(--text-soft); }

/* ---------- 22.5 技术栈补充说明 ---------- */
.tech-note {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

/* ---------- 22.6 服务流程 ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-step {
  position: relative;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  overflow: hidden;
}
.process-step .process-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 16px;
}
.process-step h3 { font-size: 1.06rem; margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; color: var(--text-soft); line-height: 1.65; }
.process-grid.compact { grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- 22.7 评价与动态 + CTA ---------- */
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 46px;
}
.voice-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.voice-text { font-size: 0.98rem; line-height: 1.75; color: var(--text); }
.voice-author { font-size: 0.82rem; color: var(--text-soft); }
.updates-list {
  max-width: 680px;
  margin: 0 auto 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.update-item {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}
.update-item:last-child { border-bottom: 0; }
.update-date {
  flex: 0 0 72px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--brand);
  text-transform: uppercase;
  font-weight: 600;
}
.update-text { color: var(--text); }
.cta-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 46px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
}
.cta-box h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 10px; }
.cta-box p { color: var(--text-soft); margin-bottom: 26px; }

/* ---------- 22.8 联系页重设计 ---------- */
.contact-hero { padding-bottom: 0; }
.contact-section { padding-top: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-method { align-items: flex-start; }
.contact-method .method-note {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-soft);
}
.contact-tip {
  margin-top: 6px;
  padding: 16px 18px;
  border-left: 2px solid var(--brand);
  background: var(--bg-soft);
  border-radius: 0 10px 10px 0;
  font-size: 0.86rem;
  color: var(--text-soft);
  line-height: 1.7;
}
.contact-form h3 { font-size: 1.25rem; margin-bottom: 24px; font-weight: 800; }

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  position: relative;
  padding-right: 44px;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.6px solid var(--text-soft);
  border-bottom: 1.6px solid var(--text-soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item summary:hover { color: var(--brand); }
.faq-body { padding: 0 22px 18px; font-size: 0.92rem; color: var(--text-soft); line-height: 1.75; }

/* ---------- 22.10 响应式 ---------- */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid, .process-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .voices-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 24px 12px; }
  .process-grid, .process-grid.compact { grid-template-columns: 1fr; }
  .update-item { flex-direction: column; gap: 4px; }
  .section-panel { padding-top: calc(var(--header-h, 64px) + 28px); }
}

/* reduced-motion 降级：聚光灯静态、波纹禁用 */
@media (prefers-reduced-motion: reduce) {
  .water-ripple { display: none; }
  .cursor-glow { opacity: 0.4 !important; transition: none; }
}


/* ---------- 22.11 补充 .btn-outline（透明描边按钮） ---------- */
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--bg-soft);
}


/* =========================================================
   v2 重构增强：几何标识 / 线条装饰 / 网格统一 / 实用代码 / 标语 / about
   ========================================================= */

/* ---- 几何商标 ---- */
.brand-logo {
  display: block;
  width: 34px; height: 34px;
  padding: 1px;
  color: var(--brand);
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
a.brand:hover .brand-logo { transform: rotate(90deg); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.brand-name {
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "SF Mono", Consolas, monospace;
}
.mini-logo { display: inline-block; width: 20px; height: 20px; color: var(--brand); vertical-align: -4px; border-radius: 4px; transition: transform var(--transition); }
.mini-logo:hover { transform: rotate(180deg); }

/* ---- 网格线背景 ---- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 12%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 12%, #000 25%, transparent 78%);
}
.main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---- 角标线框 ---- */
.corner-frame { position: relative; }
.corner-frame::before, .corner-frame::after {
  content: ""; position: absolute; width: 26px; height: 26px;
  border: 1px solid var(--line-strong); pointer-events: none;
}
.corner-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.corner-frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.corner-frame:hover::before, .corner-frame:hover::after { border-color: var(--brand); }

/* ---- 虚线分隔 ---- */
.dash-divider { height: 1px; margin: 30px 0; background: repeating-linear-gradient(90deg, var(--line-strong) 0 7px, transparent 7px 15px); }

/* ---- 斜向装饰线 ---- */
.slant-accent { position: absolute; width: 120px; height: 120px; pointer-events: none; opacity: .8; }
.slant-accent::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, transparent 0 10px, var(--line) 10px 11px);
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%);
          mask-image: linear-gradient(135deg, #000, transparent 70%);
}

/* ---- Hero 标识 ---- */
.hero-identity { display: grid; gap: 16px; justify-items: center; }
.hero-logo-mark { width: 88px; height: 88px; color: var(--brand); }
.hero-nocau {
  margin: 0;
  font-family: "SF Mono", Consolas, monospace;
  font-size: clamp(60px, 12vw, 132px);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(120deg, var(--text), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-slogan { text-align: center; }
.hero-slogan-cn { font-size: 1.15rem; letter-spacing: .12em; color: var(--text); font-weight: 600; }
.hero-slogan-en { font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); margin-top: 8px; }
.hero .display-title { font-size: clamp(20px, 3.6vw, 30px); font-weight: 600; }

/* ---- 页脚标语 ---- */
.footer-slogan { display: block; margin-top: 6px; font-size: .8rem; letter-spacing: .18em; color: var(--text-3); }
.footer-slogan em { font-style: normal; color: var(--brand); }

/* ---- ideas 网格统一 ---- */
.ideas-list { align-items: stretch; }
.idea-card { display: flex; flex-direction: column; overflow: hidden; }
.idea-card .idea-head { align-items: center; }
.idea-badge {
  position: absolute;
  top: 12px; right: 14px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: .7rem;
  letter-spacing: .14em;
  line-height: 1;
  color: var(--text-3);
  background: color-mix(in srgb, var(--bg-card) 88%, var(--brand) 6%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  user-select: none;
}
.idea-card:hover .idea-badge { color: var(--brand); border-color: var(--brand-soft); }
.idea-card .idea-head-main { flex: 1; min-width: 0; }
.idea-card .idea-head-main h2 { margin: 0 0 6px; font-size: 1.08rem; line-height: 1.35; letter-spacing: .01em; }
.idea-card .idea-subtitle { margin: 0 0 12px; font-size: .94rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.55em); }
.idea-card .idea-tags { gap: 6px; }
.idea-card .idea-tags .tag { font-size: .76rem; padding: 3px 9px; }
.idea-card .idea-meta { margin-top: auto; padding-top: 14px; gap: 8px 22px; }
.idea-card.open .idea-detail { display: block; }
.idea-card .idea-index { width: 40px; height: 40px; font-size: .82rem; }
.idea-card.open .idea-index { background: var(--brand-soft); color: var(--brand); }

/* ---- 实用代码卡 ---- */
.idea-card.code-card { border-color: var(--line-strong); }
.idea-card.code-card .code-card-badge {
  align-self: flex-start; margin: 0 0 10px; font-size: .72rem;
  letter-spacing: .16em; color: var(--brand); border: 1px solid var(--brand-soft);
  border-radius: 999px; padding: 3px 10px;
}
.idea-card pre { margin: 10px 0 0; max-height: 360px; overflow: auto; font-size: .82rem; }

/* ---- about 高级克制 ---- */
.about-hero-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 44px; align-items: start; }
.about-profile { position: relative; padding: 6px; }
.about-avatar-lg { width: 148px; height: 148px; color: var(--brand); margin-bottom: 14px; display: block; }
.about-role-en { font-family: "SF Mono", Consolas, monospace; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); }
.about-motto { margin-top: 20px; padding: 14px 16px; border-left: 2px solid var(--brand); background: var(--bg-soft); font-size: .92rem; color: var(--text-2); }
.about-motto small { display: block; margin-top: 6px; color: var(--text-3); letter-spacing: .12em; }
.about-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.about-principle { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-card); }
.about-principle b { display: block; margin-bottom: 6px; font-size: .96rem; }
.about-principle p { margin: 0; font-size: .86rem; color: var(--text-2); line-height: 1.6; }
.about-title-row { display: flex; align-items: center; gap: 12px; margin: 30px 0 12px; }
.about-title-row .row-line { flex: 1; height: 1px; background: var(--line); }
.about-title-row h3 { margin: 0; font-size: 1.05rem; letter-spacing: .06em; }
.timeline-item { position: relative; padding-left: 22px; }
.timeline-item::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border: 1px solid var(--brand); border-radius: 50%; background: var(--bg); }
.timeline-item::after { content: ""; position: absolute; left: 5px; top: 20px; bottom: -14px; width: 1px; background: var(--line); }
.timeline-item:last-child::after { display: none; }
.about-values { display: flex; flex-wrap: wrap; gap: 10px; }
.about-values span { border: 1px dashed var(--line-strong); border-radius: 999px; padding: 6px 14px; font-size: .84rem; color: var(--text-2); }
.about-banner { margin-top: 34px; text-align: center; padding: 30px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--bg-soft), transparent); }
.about-banner .cn { font-size: 1.3rem; letter-spacing: .18em; font-weight: 700; }
.about-banner .en { font-family: "SF Mono", Consolas, monospace; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-3); margin-top: 10px; }

/* ---- AI hub 徽标 ---- */
.aihub-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .8rem; color: var(--text-2); }
.aihub-badge svg { width: 14px; height: 14px; color: var(--brand); }

@media (max-width: 860px) {
  .about-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-principles { grid-template-columns: 1fr; }
  .hero-nocau { font-size: clamp(52px, 16vw, 90px); }
}

/* ============ 23 磨砂雾感背景层 ============ */
.bg-fog {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(85% 65% at 18% 12%, rgba(255, 255, 255, 0.05), transparent 58%),
    radial-gradient(70% 55% at 86% 88%, rgba(255, 255, 255, 0.035), transparent 62%),
    radial-gradient(55% 45% at 52% 46%, rgba(255, 255, 255, 0.02), transparent 70%);
  backdrop-filter: blur(3px) saturate(0.9);
  -webkit-backdrop-filter: blur(3px) saturate(0.9);
}
@media (prefers-reduced-motion: reduce) {
  .bg-fog { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ==================== 23. 语言切换按钮 ==================== */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--text-secondary, #9aa4b2);
  background: transparent;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.28));
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.lang-toggle:hover {
  color: var(--text-primary, #e2e8f0);
  border-color: var(--brand, #7dd3fc);
  background: color-mix(in srgb, var(--brand, #7dd3fc) 8%, transparent);
}

/* ==================== 24. 关于页：极简高级布局 ==================== */
.about-minimal {
  padding: 120px 0 140px;
}
.about-min-head {
  max-width: 640px;
  margin-bottom: 88px;
}
.about-min-kicker {
  font-size: 13px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-secondary, #9aa4b2);
  margin-bottom: 24px;
}
.about-min-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--text-primary, #e2e8f0);
}
.about-min-desc {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-secondary, #9aa4b2);
  margin: 0;
}
.about-min-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 96px;
  align-items: center;
  margin-bottom: 120px;
}
.about-min-text p {
  font-size: 18px;
  line-height: 2.1;
  color: var(--text-primary, #e2e8f0);
  margin: 0 0 40px;
  font-weight: 300;
}
.about-min-motto {
  border-left: 1px solid var(--border, rgba(148, 163, 184, 0.28));
  padding-left: 24px;
}
.about-min-motto span {
  display: block;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--text-primary, #e2e8f0);
}
.about-min-motto small {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary, #9aa4b2);
}
.about-min-figure {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-min-logo {
  width: 220px;
  height: 220px;
  opacity: 0.9;
  transition: transform 0.6s ease, opacity 0.6s ease;
}
.about-min-logo:hover {
  transform: rotate(8deg) scale(1.04);
  opacity: 1;
}
.about-min-block {
  margin-bottom: 104px;
  max-width: 720px;
}
.about-min-h {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-secondary, #9aa4b2);
  margin: 0 0 36px;
}
.about-min-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.about-min-tags span {
  font-size: 14px;
  padding: 8px 18px;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.28));
  border-radius: 999px;
  color: var(--text-secondary, #9aa4b2);
  letter-spacing: 0.04em;
}
.about-min-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.about-min-timeline li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  padding: 0 0 44px;
  border-left: 1px solid var(--border, rgba(148, 163, 184, 0.24));
  margin-left: 8px;
  padding-left: 32px;
  position: relative;
}
.about-min-timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand, #7dd3fc);
  opacity: 0.55;
}
.about-min-timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.about-min-timeline .t-time {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--text-secondary, #9aa4b2);
  padding-top: 4px;
}
.about-min-timeline b {
  display: block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-primary, #e2e8f0);
  margin-bottom: 10px;
}
.about-min-timeline p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary, #9aa4b2);
}
.about-min-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.about-min-values > div {
  padding: 28px 26px;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.2));
  background: color-mix(in srgb, var(--bg-card, #0f172a) 82%, transparent);
}
.about-min-values b {
  display: block;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.3em;
  margin-bottom: 16px;
  color: var(--text-primary, #e2e8f0);
}
.about-min-values p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary, #9aa4b2);
}

@media (max-width: 860px) {
  .about-min-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .about-min-logo {
    width: 160px;
    height: 160px;
  }
  .about-min-values {
    grid-template-columns: 1fr;
  }
}
