/* ============================================
   Neko 工作室 · 官网样式
   风格：浅蓝渐变 · 胶囊导航 · 毛玻璃
   参考：dmxiaozi.xyz 版式
   ============================================ */

:root {
  --bg-1: #dbeafe;
  --bg-2: #eff6ff;
  --bg-3: #f8fafc;
  --bg-card: #ffffff;
  --bg-soft: #f7f9fc;
  --ink: #0f172a;
  --ink-2: #64748b;
  --ink-3: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --brand-dim: rgba(37, 99, 235, 0.12);
  --brand-dim-2: rgba(37, 99, 235, 0.06);
  --term-bg: #1b1d2e;
  --term-bar: #15172a;
  --term-text: #e6e9f2;
  --term-muted: #8a92b0;
  --term-accent: #4ade80;
  --term-blue: #7c9cff;
  --term-yellow: #facc15;
  --avatar-from: #fbbf24;
  --avatar-to: #f59e0b;
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1080px;
  --nav-h: 64px;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo,
    Consolas, "Liberation Mono", "Courier New", monospace;
  --ease: 0.28s ease;
}

/* ===== 深色主题变量覆盖（data-theme="dark"） ===== */
[data-theme="dark"] {
  --bg-1: #0a1224;
  --bg-2: #0f1729;
  --bg-3: #131c2e;
  --bg-card: #131c2e;
  --bg-soft: #1a2440;
  --ink: #e8eef7;
  --ink-2: #b4c0d4;
  --ink-3: #7c8aa3;
  --line: #2a3754;
  --line-soft: #1f2a40;
  --brand: #7aa9ff;
  --brand-2: #5b8def;
  --brand-dim: rgba(122, 169, 255, 0.16);
  --brand-dim-2: rgba(122, 169, 255, 0.08);
  --term-bg: #0a1020;
  --term-bar: #060a16;
  --term-text: #e6e9f2;
  --term-muted: #8a92b0;
  --term-accent: #4ade80;
  --term-blue: #7c9cff;
  --term-yellow: #facc15;
  --avatar-from: #fbbf24;
  --avatar-to: #f59e0b;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; color-scheme: light; }
[data-theme="dark"] html, html[data-theme="dark"] { color-scheme: dark; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 50% -220px, #c7dafe 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 32%, var(--bg-3) 70%, var(--bg-3) 100%);
  background-attachment: fixed;
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background var(--ease), color var(--ease);
}

[data-theme="dark"] body {
  background:
    radial-gradient(1200px 700px at 50% -220px, rgba(96, 165, 250, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 32%, var(--bg-3) 70%, var(--bg-3) 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, 0.30); background-clip: content-box; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.20); background-clip: content-box; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.32); background-clip: content-box; }

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

/* ---------- 按钮 / 链接 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
  font-size: 15px;
}
.link-arrow .arr { transition: transform 0.2s ease; display: inline-block; }
.link-arrow:hover .arr { transform: translateX(5px); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 12px; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
}
.nav-inner {
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  padding: 0 12px 0 16px;
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--nav-h);
  transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled .nav-inner { background: rgba(255, 255, 255, 0.88); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10); }
[data-theme="dark"] .nav-inner {
  background: rgba(19, 28, 46, 0.62);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.40);
}
[data-theme="dark"] .nav.scrolled .nav-inner {
  background: rgba(19, 28, 46, 0.82);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 15px; letter-spacing: 0.01em; color: var(--ink);
  flex: none;
}
.brand .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--avatar-from), var(--avatar-to));
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.32);
  flex: none;
}
.brand .avatar svg { width: 100%; height: 100%; display: block; }
.brand .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-stack { display: flex; flex-direction: column; line-height: 1.15; }
.brand-stack small { color: var(--ink-2); font-weight: 500; font-size: 10.5px; letter-spacing: 0.06em; margin-top: 2px; font-family: var(--mono); }

.nav-links {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center;
}
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a svg { width: 15px; height: 15px; opacity: 0.85; flex: none; }
.nav-links a:hover { color: var(--ink); background: rgba(15, 23, 42, 0.05); }
.nav-links a.active { color: var(--brand); background: var(--brand-dim); }
.nav-links a.active svg { opacity: 1; }

.nav-right { display: flex; align-items: center; gap: 2px; flex: none; }
.nav-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-icon:hover { background: rgba(15, 23, 42, 0.05); color: var(--ink); }
.nav-icon svg { width: 18px; height: 18px; }
.nav-icon.nav-icon-brand { padding: 0; overflow: hidden; border-radius: 999px; }
.nav-icon.nav-icon-brand svg { width: 100%; height: 100%; display: block; }

/* 主题切换按钮（三态：system / light / dark） */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--ink);
  transform: translateY(-1px);
}
[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--brand);
  border-color: rgba(122, 169, 255, 0.4);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon,
.theme-toggle .icon-auto { display: none; }
[data-theme-pref="system"] .theme-toggle .icon-auto { display: block; }
[data-theme-pref="light"]  .theme-toggle .icon-sun  { display: block; }
[data-theme-pref="dark"]   .theme-toggle .icon-moon { display: block; }

.hamburger { display: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; }
.hamburger span, .hamburger span::before, .hamburger span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger span::before { position: absolute; top: -7px; }
.hamburger span::after { position: absolute; top: 7px; }
.hamburger.open span { background: transparent; }
.hamburger.open span::before { transform: translateY(7px) rotate(45deg); }
.hamburger.open span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.section-head p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }

/* ---------- 内页页头 ---------- */
.page-hero { padding: calc(var(--nav-h) + 76px) 0 40px; }
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.page-hero p.lead { margin-top: 16px; color: var(--ink-2); font-size: clamp(15.5px, 1.9vw, 17.5px); max-width: 64ch; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + 90px) 0 110px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-text .sub-en {
  margin-top: 12px;
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-family: var(--mono);
}
.hero-text .lead {
  margin-top: 22px;
  font-size: clamp(15.5px, 1.8vw, 17px);
  color: var(--ink-2);
  max-width: 46ch;
  line-height: 1.75;
}
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* 终端窗口 */
.terminal {
  background: var(--term-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.30), 0 18px 40px -20px rgba(15, 23, 42, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
  transition: transform 0.6s ease;
}
.terminal:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--term-bar); border-bottom: 1px solid rgba(255,255,255,0.05); }
.terminal-bar .dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-bar .dot.r { background: #ff5f56; }
.terminal-bar .dot.y { background: #ffbd2e; }
.terminal-bar .dot.g { background: #27c93f; }
.terminal-bar .title { margin-left: 12px; font-family: var(--mono); font-size: 12px; color: var(--term-muted); }
.terminal-body { padding: 22px 22px 24px; font-family: var(--mono); font-size: 13.5px; line-height: 1.9; color: var(--term-text); }
.terminal-body .line { white-space: pre-wrap; }
.terminal-body .prompt { color: var(--term-accent); }
.terminal-body .cmd { color: var(--term-text); }
.terminal-body .out { color: var(--term-muted); }
.terminal-body .hi { color: var(--term-blue); }
.terminal-body .ok { color: var(--term-accent); }
.terminal-body .warn { color: var(--term-yellow); }
.terminal-body .cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--term-accent); vertical-align: text-bottom; margin-left: 2px; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 业务编号卡片 ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.biz {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.biz:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08); border-color: rgba(37, 99, 235, 0.4); }
.biz .num { font-family: var(--mono); font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; color: var(--brand); line-height: 1; }
.biz h3 { font-size: 19px; font-weight: 700; margin: 14px 0 8px; color: var(--ink); }
.biz p { color: var(--ink-2); font-size: 14.5px; }
.biz .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.biz .tags span { font-family: var(--mono); font-size: 11.5px; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); }

/* ---------- 作品卡片 ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.project:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08); border-color: rgba(37, 99, 235, 0.4); }
.project .top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.project .no { font-family: var(--mono); font-size: 12.5px; color: var(--brand); }
.project .tag { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; }
.project h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.project .meta { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.project p { color: var(--ink-2); font-size: 14px; flex: 1; }
.project .links { display: flex; gap: 18px; margin-top: 6px; }
.project .links a { color: var(--brand); font-size: 13.5px; font-weight: 600; }
.project .links a:hover { text-decoration: underline; }

/* ---------- 仓库加载态 ---------- */
.repo-loading {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 14px;
}
.repo-loading .spin {
  display: inline-block;
  width: 18px; height: 18px;
  margin-right: 10px;
  border: 2px solid var(--brand-dim);
  border-top-color: var(--brand);
  border-radius: 50%;
  vertical-align: -3px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.repo-status {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 18px;
  text-align: center;
}

/* ---------- 工具 / 项目列表 ---------- */
.list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.list-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.list-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08); border-color: rgba(37, 99, 235, 0.4); }
.list-card .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.list-card .head .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-dim); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.list-card .head .icon svg { width: 22px; height: 22px; }
.list-card .head .badge {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
  border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px;
}
.list-card h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.list-card .meta { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.list-card p { color: var(--ink-2); font-size: 14px; flex: 1; }
.list-card .actions { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.list-card .actions a { font-size: 13.5px; font-weight: 600; color: var(--brand); }
.list-card .actions a:hover { text-decoration: underline; }
.list-card .actions .btn-download {
  background: var(--brand); color: #fff; padding: 8px 16px;
  border-radius: 999px; font-size: 13px;
}
.list-card .actions .btn-download:hover { background: var(--brand-2); text-decoration: none; }

/* ---------- 合作方列表 ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.partner-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06); }
.partner-card .logo {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 14px; background: linear-gradient(135deg, #e0e7ff, #f5f3ff);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-weight: 800; font-size: 20px;
  border: 1px solid var(--line);
}
.partner-card h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.partner-card .role { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }

/* ---------- 分栏 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .copy h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.split .copy p { margin-top: 14px; color: var(--ink-2); font-size: 15.5px; }
.visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e0e7ff, #f5f3ff);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 价值观 / 时间线 ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06); }
.value .k { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: 0.04em; margin-bottom: 6px; }
.value h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.value p { color: var(--ink-2); font-size: 14.5px; }

.timeline { position: relative; margin-top: 8px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-3); border: 3px solid var(--brand); }
.tl-item .year { font-family: var(--mono); font-weight: 700; font-size: 14.5px; color: var(--brand); }
.tl-item h4 { font-size: 17px; font-weight: 700; margin: 4px 0 6px; color: var(--ink); }
.tl-item p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- 服务详情 ---------- */
.service {
  display: grid; grid-template-columns: 72px 1fr; gap: 24px;
  padding: 34px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.service:last-child { border-bottom: none; }
.service .sicon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--brand-dim); border: 1px solid rgba(37, 99, 235, 0.18);
  display: flex; align-items: center; justify-content: center; color: var(--brand);
}
.service .sicon svg { width: 28px; height: 28px; }
.service h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.service p { color: var(--ink-2); margin-bottom: 14px; max-width: 60ch; }
.service ul.includes { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.service ul.includes li {
  position: relative; padding-left: 20px; color: var(--ink); font-size: 14.5px; font-weight: 500; font-family: var(--mono);
}
.service ul.includes li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
}

/* ---------- CTA ---------- */
.cta {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}
.cta h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; color: var(--ink); }
.cta p { color: var(--ink-2); margin-top: 12px; font-size: 16px; }
.cta .hero-actions { justify-content: center; }

/* ---------- 联系（dmxiaozi 风：标签页 + 列表 + 提示） ---------- */
.contact-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.contact-tabs .tab {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.contact-tabs .tab:hover:not(.active) {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.04);
}
[data-theme="dark"] .contact-tabs .tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.06);
}
.contact-tabs .tab.active {
  color: var(--brand);
  background: var(--brand-dim);
  border-color: rgba(37, 99, 235, 0.4);
  font-weight: 600;
}
[data-theme="dark"] .contact-tabs .tab.active {
  border-color: rgba(122, 169, 255, 0.5);
}

.contact-list {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 0;
}
.contact-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s ease;
}
.contact-row:last-child { border-bottom: none; }
.contact-row:hover { background: rgba(37, 99, 235, 0.025); }
[data-theme="dark"] .contact-row:hover { background: rgba(122, 169, 255, 0.06); }
.contact-row .label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.contact-row .value {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--mono);
  word-break: break-all;
  line-height: 1.5;
}
.contact-row .value a {
  color: var(--brand);
  font-weight: 600;
}
.contact-row .value a:hover { text-decoration: underline; }
.contact-row .copy {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
  flex: none;
}
.contact-row .copy:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-dim-2);
}
.contact-row .copy.copied {
  color: #16a34a;
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.06);
}

.contact-tips { display: flex; flex-direction: column; gap: 14px; }
.tip-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tip-box:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.tip-box h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  font-family: var(--mono);
  letter-spacing: 0.01em;
}
.tip-box ul { display: flex; flex-direction: column; gap: 8px; }
.tip-box ul li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}
.tip-box ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink-3);
  font-family: var(--mono);
}

.contact-note {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.85;
  max-width: 64ch;
}
.contact-note strong { color: var(--ink); font-weight: 600; }

/* contact 页：也常出现在这里 */
.contact-extra {
  margin-top: 30px;
  padding: 26px 28px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
[data-theme="dark"] .contact-extra {
  background: rgba(19, 28, 46, 0.55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.40);
}
.contact-extra h3 {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.contact-extra ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  margin: 0; padding: 0;
}
.contact-extra li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
}
.contact-extra li .label {
  flex: none;
  min-width: 92px;
  color: var(--ink-3, #94a3b8);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.contact-extra li a {
  color: var(--brand);
  font-weight: 500;
  word-break: break-all;
  transition: color 0.2s ease;
}
.contact-extra li a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 720px) {
  .contact-extra ul { grid-template-columns: 1fr; }
}

/* ---------- 联系表单 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 14.5px; color: var(--ink);
  background: var(--bg-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-dim); }
.field textarea { resize: vertical; min-height: 130px; }
.field .err { color: #ef4444; font-size: 12.5px; margin-top: 6px; display: none; font-family: var(--mono); }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #ef4444; }
.form-note { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.form-success { display: none; margin-top: 18px; padding: 13px 16px; border-radius: var(--radius-sm); background: var(--brand-dim); color: var(--brand); font-weight: 600; font-size: 14px; border: 1px solid rgba(37, 99, 235, 0.25); }
.form-success.show { display: block; }

.info-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.info-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; font-family: var(--mono); color: var(--ink); }
.info-item { display: flex; gap: 13px; margin-bottom: 18px; }
.info-item .ic {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  background: var(--brand-dim); border: 1px solid rgba(37, 99, 235, 0.18);
  display: flex; align-items: center; justify-content: center; color: var(--brand);
}
.info-item .ic svg { width: 19px; height: 19px; }
.info-item .t { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.info-item .v { font-size: 15px; font-weight: 600; color: var(--ink); }
.socials { display: flex; gap: 11px; margin-top: 6px; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-card); display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); transition: all 0.2s ease;
}
.socials a:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.socials a svg { width: 19px; height: 19px; }

/* ---------- 页脚 ---------- */
.footer { background: transparent; color: var(--ink-2); padding: 56px 0 28px; }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer .brand { color: var(--ink); }
.footer .about p { margin-top: 12px; font-size: 13.5px; max-width: 34ch; color: var(--ink-2); }
.footer h5 { color: var(--ink); font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 14px; display: flex; align-items: baseline; gap: 6px; }
.footer h5 small { color: var(--ink-3, #94a3b8); font-size: 11px; font-weight: 500; letter-spacing: 0.05em; }
.footer .col a { display: flex; flex-direction: column; gap: 2px; font-size: 14px; padding: 4px 0; color: var(--ink-2); transition: color 0.2s ease; }
.footer .col a .zh { color: var(--ink); font-weight: 500; line-height: 1.3; }
.footer .col a .en { color: var(--ink-3, #94a3b8); font-size: 11.5px; font-family: var(--mono); letter-spacing: 0.03em; line-height: 1.3; }
.footer .col a:hover .zh { color: var(--brand); }
.footer .col a:hover { color: var(--brand); }
.footer .bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

/* ---------- 动画 ---------- */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-links a .ico-text { display: none; }
  .nav-links a { padding: 8px 10px; }
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .terminal { transform: none; }
  .biz-grid, .values { grid-template-columns: 1fr 1fr; }
  .list-grid, .proj-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 84px; left: 12px; right: 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(16px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 14px 18px 18px; border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.10);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  [data-theme="dark"] .nav-links {
    background: rgba(19, 28, 46, 0.94);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 12px; border-radius: 10px; font-size: 15px; justify-content: flex-start; }
  .nav-links a .ico-text { display: inline; }
  .nav-right { margin-left: auto; }
  .hamburger { display: flex; }
  .section { padding: 60px 0; }
  .biz-grid, .values, .partner-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 14px; }
  .footer .top { grid-template-columns: 1fr; gap: 24px; }
  .cta { padding: 40px 22px; }
  .contact-row { grid-template-columns: 1fr auto; gap: 10px; }
  .contact-row .label { grid-column: 1 / -1; }
  .contact-row .value { font-size: 13.5px; }
}