/* ==========================================================================
   lmyzlp.cn · 设计系统「深空极光 / Deep Aurora」
   --------------------------------------------------------------------------
   事实来源就是本文件。改视觉只改这里 + 各页面 HTML，不引入第二套令牌。
   分十段：
     01 令牌（颜色 / 字体 / 间距 / 圆角 / 阴影 / 动效）
     02 基础与排版
     03 布局容器与区块
     04 页头与导航
     05 背景层（极光 / 网格）
     06 按钮与徽标
     07 卡片系统
     08 页脚
     09 动效
     10 响应式与偏好
   ========================================================================== */

/* ==========================================================================
   01 令牌
   ========================================================================== */

:root {
  /* ---- 颜色：底色三档，亮度差刻意做小（层次感来自细线而不是强对比） ---- */
  --bg:            #06070a;
  --bg-inset:      #040508;
  --bg-raised:     #0d0f14;
  --bg-hover:      #13171e;
  --bg-control:    #171b23;

  /* ---- 线条 ---- */
  --border:        rgba(255, 255, 255, 0.075);
  --border-2:      rgba(255, 255, 255, 0.15);
  --border-3:      rgba(255, 255, 255, 0.26);

  /* ---- 文字 ---- */
  --text:          #f2f5f8;
  --text-2:        #99a3b2;
  --text-3:        #6a7484;
  --text-disabled: rgba(255, 255, 255, 0.24);

  /* ---- 品牌强调（极光三段）---- */
  --acc:           #5eead4;   /* 薄荷 */
  --acc-2:         #818cf8;   /* 长春花 */
  --acc-3:         #c084fc;   /* 兰紫 */
  --acc-deep:      #2dd4bf;
  --acc-ink:       #04120f;   /* 铺在强调色上的字色 */
  --acc-glow:      rgba(94, 234, 212, 0.16);
  --acc-glow-2:    rgba(129, 140, 248, 0.16);

  /* ---- 极光（用于柔光斑/渐变，rgb 三元组，便于拼 alpha）---- */
  --rgb-1:         94, 234, 212;
  --rgb-2:         125, 211, 252;
  --rgb-3:         129, 140, 248;
  --rgb-4:         192, 132, 252;

  /* ---- 品牌渐变：全站只在 3 处用（hero 第二行 / 页脚水印 / 品牌点） ---- */
  --grad-brand: linear-gradient(100deg,
                  var(--acc) 0%, #7dd3fc 22%, var(--acc-2) 58%, var(--acc-3) 100%);

  /* ---- 字体 ---- */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text",
               "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display",
                  "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB",
                  "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo,
               Consolas, "Liberation Mono", monospace;

  /* ---- 字号阶梯 ---- */
  --fs-display: clamp(2.6rem, 6.1vw, 4.9rem);
  --fs-section: clamp(1.85rem, 3.9vw, 3rem);
  --fs-h2:      1.4375rem;
  --fs-h3:      1.0938rem;
  --fs-lead:    1.0625rem;
  --fs-body:    0.9375rem;
  --fs-small:   0.8125rem;
  --fs-micro:   0.6875rem;

  /* ---- 行高与字距 ---- */
  --lh-display: 1.03;
  --lh-section: 1.08;
  --lh-tight:   1.25;
  --lh-body:    1.7;
  --ls-display: -0.035em;
  --ls-section: -0.026em;
  --ls-label:   0.14em;

  /* ---- 间距 ---- */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* ---- 圆角 ---- */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-badge: 999px;
  --r-card: 18px;
  --r-lg:   26px;
  --r-xl:   36px;

  /* ---- 阴影（第一层兼作 1px 描边，所以卡片不用写 border）---- */
  --sh-card:  rgba(255, 255, 255, 0.06) 0 0 0 1px,
              rgba(0, 0, 0, 0.4) 0 2px 6px,
              rgba(0, 0, 0, 0.5) 0 6px 14px;
  --sh-hover: rgba(255, 255, 255, 0.13) 0 0 0 1px,
              rgba(0, 0, 0, 0.45) 0 10px 24px,
              var(--acc-glow) 0 4px 30px;
  --sh-pop:   rgba(0, 0, 0, 0.55) 0 24px 60px -12px,
              rgba(255, 255, 255, 0.08) 0 0 0 1px;
  --sh-focus: var(--text) 0 0 0 2px;
  --sh-accent: 0 0 0 1px rgba(var(--rgb-1), 0.35), 0 8px 30px -6px rgba(var(--rgb-1), 0.28);

  /* ---- 模糊 ---- */
  --blur-sm: 10px;
  --blur-md: 18px;
  --blur-lg: 40px;
  --blur-xl: 80px;

  /* ---- 动效 ---- */
  --dur-fast: 0.16s;
  --dur-base: 0.32s;
  --dur-slow: 0.7s;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:   cubic-bezier(0.65, 0, 0.35, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- 布局 ---- */
  --shell: 1240px;
  --shell-pad: clamp(20px, 5vw, 48px);
  --header-h: 68px;
}

/* ==========================================================================
   02 基础与排版
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

/* 页面级背景层：整站一张，固定不动 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(var(--rgb-3), 0.10) 0%, transparent 60%),
    var(--bg);
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

dl, dd, dt, figure, blockquote { margin: 0; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

::selection {
  background: rgba(var(--rgb-1), 0.28);
  color: #fff;
}

:focus-visible {
  outline: none;
  box-shadow: var(--sh-focus);
  border-radius: var(--r-sm);
}

/* ---- 排版工具类 ---- */

.t-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}

.t-section {
  font-family: var(--font-display);
  font-size: var(--fs-section);
  font-weight: 700;
  line-height: var(--lh-section);
  letter-spacing: var(--ls-section);
}

.t-h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.t-h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.012em; }
.t-lead { font-size: var(--fs-lead); line-height: 1.75; color: var(--text-2); }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-2); }
.t-small { font-size: var(--fs-small); line-height: 1.6; color: var(--text-3); }

/* 微标签：全大写 + 正字距 + 等宽，全站统一用它标记"这是一段元信息" */
.t-label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-3);
}

.t-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.grad-brand {
  background-image: var(--grad-brand);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-acc { color: var(--acc); }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }

.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* ==========================================================================
   03 布局容器与区块
   ========================================================================== */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--inset {
  background: var(--bg-inset);
  border-block: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-bottom: var(--sp-10);
  flex-wrap: wrap;
}

.section-head__text { max-width: 46ch; }
.section-head__title { margin-top: var(--sp-3); }
.section-head__sub { margin-top: var(--sp-4); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-3);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--acc), transparent);
  flex: none;
}

/* 分隔线：细到几乎看不见，只做节奏 */
.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2) 18%, var(--border-2) 82%, transparent);
  border: 0;
}

/* ==========================================================================
   04 页头与导航
   ========================================================================== */

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--bg-raised);
  box-shadow: var(--sh-pop);
  font-size: var(--fs-small);
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              backdrop-filter var(--dur-base) var(--ease);
}

/* 滚动后才显形：毛玻璃 + 细线 */
.site-header[data-stuck="true"] {
  background: color-mix(in oklab, var(--bg) 76%, transparent);
  backdrop-filter: blur(var(--blur-md)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(1.4);
  border-bottom-color: var(--border);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

/* 顶部进度线：滚动进度，1px，品牌渐变 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--grad-brand);
  opacity: 0.9;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  flex: none;
}

.brand__mark {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--grad-brand);
  background-size: 220% 100%;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--acc-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 11px;
  border: 1px solid rgba(var(--rgb-1), 0.4);
  animation: pulse-ring 2.8s var(--ease-io) infinite;
}

.brand:hover .brand__mark { animation: mark-spin 0.9s var(--ease); }

.brand__text { white-space: nowrap; }

/* ---- 主导航 ---- */

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-inline-start: auto;
}

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }

.nav__link[aria-current="page"] { color: var(--text); }

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 1px;
  background: var(--grad-brand);
}

.nav__caret {
  width: 9px;
  height: 9px;
  flex: none;
  opacity: 0.6;
  transition: transform var(--dur-fast) var(--ease);
}

.nav__item[data-open="true"] .nav__caret { transform: rotate(180deg); }

/* 二级菜单「服务」：桌面悬停/聚焦展开的面板 */
.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  width: min(560px, 78vw);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: color-mix(in oklab, var(--bg-raised) 94%, transparent);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  box-shadow: var(--sh-pop);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top center;
  transition: opacity var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              visibility var(--dur-base);
}

.nav__item[data-open="true"] .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.nav-panel__link {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 12px;
  border-radius: var(--r-md);
  transition: background var(--dur-fast) var(--ease);
}

.nav-panel__link:hover { background: rgba(255, 255, 255, 0.05); }

.nav-panel__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px var(--border);
}

.nav-panel__link[data-tone="1"] .nav-panel__icon { color: var(--acc); }
.nav-panel__link[data-tone="2"] .nav-panel__icon { color: var(--acc-2); }
.nav-panel__link[data-tone="3"] .nav-panel__icon { color: var(--acc-3); }

.nav-panel__name {
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-panel__desc {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-3);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nav-panel__foot {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.nav-panel__more {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--acc);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-panel__more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 页头右侧动作 */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: none;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--text-2);
  background: transparent;
  border: 0;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav-toggle { display: none; }

/* 移动端抽屉 */
.nav-drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  padding: var(--sp-6) var(--shell-pad) var(--sp-12);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease), visibility var(--dur-base);
}

.nav-drawer[data-open="true"] { opacity: 1; visibility: visible; }

.nav-drawer__group + .nav-drawer__group { margin-top: var(--sp-8); }

.nav-drawer__label { margin-bottom: var(--sp-4); }

.nav-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 15px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 1.0625rem;
  font-weight: 600;
}

.nav-drawer__link span:last-child { color: var(--text-3); font-size: var(--fs-small); font-weight: 400; }

/* ==========================================================================
   05 背景层：极光与网格
   ========================================================================== */

.aurora-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(var(--blur-xl));
  will-change: transform;
  animation: aurora-drift 26s var(--ease-io) infinite;
}

.aurora-blob--1 {
  left: -14%;
  top: -18%;
  width: 44rem;
  height: 44rem;
  background: radial-gradient(circle, rgba(var(--rgb-1), 0.34) 0%, transparent 67%);
}

.aurora-blob--2 {
  right: -16%;
  top: 2%;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(var(--rgb-3), 0.32) 0%, transparent 67%);
  animation-delay: -9s;
}

.aurora-blob--3 {
  left: 24%;
  bottom: -30%;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle, rgba(var(--rgb-4), 0.24) 0%, transparent 68%);
  animation-delay: -17s;
}

/* 网格罩：72px 网格 + 径向遮罩淡出 */
.grid-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(78% 62% at 50% 40%, #000 26%, transparent 76%);
  mask-image: radial-gradient(78% 62% at 50% 40%, #000 26%, transparent 76%);
}

/* 细颗粒噪点：极低透明度，防大色块出现色带 */
.grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  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)' opacity='0.34'/%3E%3C/svg%3E");
}

/* 页面底部收口，让内容"沉"下去 */
.fade-bottom {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 9rem;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   06 按钮与徽标
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--acc);
  color: var(--acc-ink);
}

.btn--primary:hover { background: #7df0dc; box-shadow: var(--sh-accent); }

/* 扫光：只在 primary 上，hover 一次 */
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

.btn--primary:hover::after { animation: shimmer-sweep 0.9s var(--ease); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-2);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--border-3); }

.btn--quiet {
  padding-inline: 4px;
  color: var(--acc);
  background: transparent;
}

.btn--quiet:hover { color: var(--acc-deep); }

.btn__arrow { transition: transform var(--dur-base) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* 徽标药丸 */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 11px;
  border-radius: var(--r-badge);
  font-size: 0.78125rem;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--border-2);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
}

.pill--accent { color: var(--acc); }

/* 脉冲点 */
.pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acc);
  flex: none;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--acc);
  animation: pulse-ring 2.2s var(--ease-io) infinite;
}

/* 标签 chip */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-badge);
  font-size: 0.71875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px var(--border);
  white-space: nowrap;
}

.chip--acc { color: var(--acc); background: rgba(var(--rgb-1), 0.09); box-shadow: inset 0 0 0 1px rgba(var(--rgb-1), 0.22); }
.chip--acc2 { color: var(--acc-2); background: rgba(var(--rgb-3), 0.09); box-shadow: inset 0 0 0 1px rgba(var(--rgb-3), 0.22); }
.chip--acc3 { color: var(--acc-3); background: rgba(var(--rgb-4), 0.09); box-shadow: inset 0 0 0 1px rgba(var(--rgb-4), 0.22); }

/* 外链小箭头 */
.ext {
  width: 11px;
  height: 11px;
  flex: none;
  opacity: 0.45;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

a:hover > .ext, .nav-panel__link:hover .ext, .card:hover .ext {
  opacity: 0.95;
  transform: translate(2px, -2px);
}

/* ==========================================================================
   07 卡片系统
   ========================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  background: var(--bg-raised);
  box-shadow: var(--sh-card);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              background var(--dur-base) var(--ease);
}

.card:hover { box-shadow: var(--sh-hover); background: var(--bg-hover); }

/* 3D 倾斜：由 JS 写 --tilt-x / --tilt-y / --spot-x / --spot-y */
.card[data-tilt] {
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
}

.card__spot {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
  background: radial-gradient(340px circle at var(--spot-x, 50%) var(--spot-y, 50%),
              rgba(var(--rgb-1), 0.11), transparent 62%);
}

.card:hover .card__spot { opacity: 1; }

/* 图片区底衬刻意做成品牌渐变而不是纯色 ——
   图片还没加载完或缺失时，看到的是一块"设计过的底"，而不是一个黑洞。 */
.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-image:
    radial-gradient(120% 120% at 18% 12%, rgba(var(--rgb-1), 0.22) 0%, transparent 55%),
    radial-gradient(110% 110% at 88% 84%, rgba(var(--rgb-4), 0.22) 0%, transparent 58%),
    linear-gradient(135deg, #101827 0%, #0a0d14 60%, #06070a 100%);
  box-shadow: inset 0 -1px 0 var(--border);
}

.card__media > img,
.card__media > .cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease);
}

.card:hover .card__media > img,
.card:hover .card__media > .cover { transform: scale(1.06); }

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-raised) 2%, transparent 52%);
  pointer-events: none;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  flex: 1;
}

.card__title {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.012em;
  display: flex;
  align-items: center;
  gap: 7px;
}

.card__sub {
  font-size: var(--fs-small);
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.card__desc {
  font-size: var(--fs-small);
  line-height: 1.68;
  color: var(--text-2);
}

.card__meta {
  margin-top: auto;
  padding-top: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

.card--link { cursor: pointer; }

/* 整卡可点：伪元素铺满，保证语义是单个 <a> */
.card__hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
}

.card__hit:focus-visible { box-shadow: var(--sh-focus); }

/* ---- 服务卡（导航站主卡）---- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--sp-5);
}

.svc {
  position: relative;
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-card);
  background: var(--bg-raised);
  box-shadow: var(--sh-card);
  transition: box-shadow var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              background var(--dur-base) var(--ease);
}

.svc:hover {
  box-shadow: var(--sh-hover);
  background: var(--bg-hover);
  transform: translateY(-3px);
}

.svc__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text);
  overflow: hidden;
}

.svc__icon img { width: 100%; height: 100%; object-fit: cover; }

.svc[data-tone="1"] .svc__icon { color: var(--acc); background: rgba(var(--rgb-1), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--rgb-1), 0.22); }
.svc[data-tone="2"] .svc__icon { color: var(--acc-2); background: rgba(var(--rgb-3), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--rgb-3), 0.22); }
.svc[data-tone="3"] .svc__icon { color: var(--acc-3); background: rgba(var(--rgb-4), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--rgb-4), 0.22); }

.svc__main { min-width: 0; flex: 1; }

.svc__name {
  font-size: 0.96875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.svc__host {
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  color: var(--text-3);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.svc__desc {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--text-2);
  margin-top: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.svc__foot {
  margin-top: var(--sp-4);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 状态点 */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--text-3);
}

.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.status[data-state="up"] { color: var(--acc); }
.status[data-state="lan"] { color: var(--acc-2); }
.status[data-state="off"] { color: var(--text-3); }

/* ---- 作品卡 ---- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: var(--sp-6);
}

/* 渐变占位封面：无图时也不塌，且自带品牌色 */
.cover {
  position: relative;
  display: grid;
  place-items: center;
  background-image:
    radial-gradient(120% 120% at 20% 15%, rgba(var(--rgb-1), 0.28) 0%, transparent 55%),
    radial-gradient(110% 110% at 85% 80%, rgba(var(--rgb-4), 0.26) 0%, transparent 58%),
    linear-gradient(135deg, #101827 0%, #0a0d14 60%, #06070a 100%);
}

.cover__mono {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.cover__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 10%, transparent 78%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 10%, transparent 78%);
}

/* ---- 特性条目（连续条目，不是卡片）---- */

.feature {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--border);
}

.feature:last-child { border-bottom: 0; }

.feature__num {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--acc);
  padding-top: 3px;
}

.feature__title { font-size: 1rem; font-weight: 600; letter-spacing: -0.012em; }
.feature__desc { margin-top: 6px; font-size: var(--fs-small); line-height: 1.68; color: var(--text-2); }

/* ---- 统计数字 ---- */

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-display);
  font-variant-numeric: tabular-nums;
}

.stat__label { margin-top: 7px; }

/* ---- 跑马灯 ---- */

.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--bg-inset);
  padding-block: var(--sp-4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7rem, #000 calc(100% - 7rem), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7rem, #000 calc(100% - 7rem), transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-x 46s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__row { display: flex; align-items: center; }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  padding-inline: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.03em;
  color: var(--text-2);
  white-space: nowrap;
}

.marquee__item::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-3);
  flex: none;
}

/* ---- 时间线（关于页）---- */

.timeline { position: relative; padding-left: var(--sp-8); }

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--acc), rgba(var(--rgb-3), 0.5) 45%, transparent);
}

.tl-item { position: relative; padding-bottom: var(--sp-8); }
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--sp-8) + 1px);
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--acc);
}

.tl-item[data-now="true"]::before { background: var(--acc); box-shadow: 0 0 0 4px rgba(var(--rgb-1), 0.16); }

.tl-when { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--ls-label); color: var(--acc); }
.tl-title { margin-top: 7px; font-size: 1rem; font-weight: 600; }
.tl-desc { margin-top: 6px; font-size: var(--fs-small); line-height: 1.7; color: var(--text-2); }

/* ==========================================================================
   08 页脚
   ========================================================================== */

.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--bg-inset);
  overflow: hidden;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--sp-10);
  padding-block: var(--sp-16) var(--sp-12);
}

.site-footer__brand { max-width: 34ch; }

.site-footer__note {
  margin-top: var(--sp-4);
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--text-3);
}

.fcol__title { margin-bottom: var(--sp-4); }

.fcol__list { display: flex; flex-direction: column; gap: 11px; }

.fcol__link {
  font-size: var(--fs-small);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  transition: color var(--dur-fast) var(--ease);
}

.fcol__link:hover { color: var(--acc); }

.site-footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-block: var(--sp-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-small);
  color: var(--text-3);
}

.site-footer__legal { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }

.site-footer__legal a {
  color: var(--text-3);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.site-footer__legal a:hover { color: var(--acc); border-bottom-color: var(--acc); }

/* 页脚巨型水印：品牌渐变的第三处、也是最后一处 */
.footer-watermark {
  padding-inline: 2vw;
  padding-bottom: var(--sp-5);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 16.5vw, 14rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.05em;
  white-space: nowrap;
  opacity: 0.14;
  user-select: none;
  pointer-events: none;
}

/* ==========================================================================
   09 动效
   ========================================================================== */

@keyframes aurora-drift {
  0%   { transform: translate(-6%, -4%) scale(1); }
  33%  { transform: translate(6%, 3%) scale(1.14); }
  66%  { transform: translate(-3%, 6%) scale(0.94); }
  100% { transform: translate(-6%, -4%) scale(1); }
}

@keyframes pulse-ring {
  0%   { opacity: 0.7; transform: scale(0.85); }
  70%  { opacity: 0; transform: scale(1.55); }
  100% { opacity: 0; transform: scale(1.55); }
}

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

@keyframes shimmer-sweep {
  from { transform: translateX(0) skewX(-18deg); }
  to   { transform: translateX(260%) skewX(-18deg); }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

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

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

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* 滚动入场：默认可见（no-JS 也不能白屏），JS 就绪后再由 .js 触发隐藏 */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-in { opacity: 1; transform: none; }

/* 没 JS 时直接显示，不留白 */
.no-js .reveal { opacity: 1; transform: none; }

/* 逐词入场：外层裁剪，内层位移 */
.word-mask { display: inline-block; overflow: hidden; padding-bottom: 0.09em; vertical-align: bottom; }

.word {
  display: inline-block;
  will-change: transform, opacity, filter;
  transform: translate3d(0, 108%, 0);
  opacity: 0;
  filter: blur(9px);
  transition: transform 0.9s var(--ease), opacity 0.7s var(--ease), filter 0.7s var(--ease);
}

.is-in .word, .no-js .word { transform: none; opacity: 1; filter: none; }

/* 滚动提示 */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.scroll-hint__line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--acc), transparent);
  animation: float-y 2.4s var(--ease-io) infinite;
}

/* ==========================================================================
   10 响应式与偏好
   ========================================================================== */

@media (max-width: 1080px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}

@media (max-width: 900px) {
  .nav, .header-actions .desktop-only { display: none; }
  .nav-toggle { display: grid; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .site-footer__cols { grid-template-columns: 1fr; }
  .stats { gap: var(--sp-5) var(--sp-8); }
  .timeline { padding-left: var(--sp-6); }
  .tl-item::before { left: calc(-1 * var(--sp-6) + 1px); }
  .nav-panel__grid { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .card__spot { display: none; }
}

/* 尊重减少动态效果：一次性关掉，不做半吊子动画 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .word { opacity: 1 !important; transform: none !important; filter: none !important; }
  .aurora-blob, .marquee__track, .pulse-dot::after,
  .scroll-hint__line, .brand__mark::after, .btn--primary::after {
    animation: none !important;
  }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ==========================================================================
   11 页面级组件
   --------------------------------------------------------------------------
   上面 01–10 是设计与通用组件；这一段是各页面自己的排版块。
   新增页面时优先复用上面的组件，确实不够用再往这里加。
   ========================================================================== */

/* --------------------------------------------------------------------------
   11.1 首屏（index.html）
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem));
  /* 底部留白交给 .hero__foot 统一管，这里不再叠一层 */
  padding-bottom: 0;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  /* 首屏高度给上限：否则在超高屏幕上会被拉成一大片空白。
     下限保证手机上不被压扁。 */
  min-height: clamp(480px, 62svh, 660px);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.hero__copy { min-width: 0; }

.hero__title {
  margin-top: var(--sp-6);
  max-width: 15ch;
}

.hero__lede {
  margin-top: var(--sp-6);
  max-width: 46ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

.hero .stats { margin-top: clamp(2rem, 4vw, 3rem); }

.stat { min-width: 0; }

.hero__aside { min-width: 0; }

.hero__stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 服务矩阵背后的品牌光晕 */
.hero__halo {
  position: absolute;
  inset: 8% 6%;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  background: radial-gradient(circle,
              rgba(var(--rgb-1), 0.55) 0%,
              rgba(var(--rgb-3), 0.42) 46%,
              transparent 72%);
}

/* 首屏右栏的服务小卡：比服务页的卡更薄，只是"预览" */
.svc-mini {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 13px 16px;
  border-radius: var(--r-md);
  background: color-mix(in oklab, var(--bg-raised) 88%, transparent);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  box-shadow: var(--sh-card);
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              background var(--dur-base) var(--ease);
}

.svc-mini:nth-child(odd)  { margin-left: 0; }
.svc-mini:nth-child(even) { margin-left: clamp(12px, 4%, 34px); }

.svc-mini:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-hover);
  background: var(--bg-hover);
}

.svc-mini__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text);
}

.svc-mini__icon[data-tone="1"] { color: var(--acc);    background: rgba(var(--rgb-1), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--rgb-1), 0.22); }
.svc-mini__icon[data-tone="2"] { color: var(--acc-2);  background: rgba(var(--rgb-3), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--rgb-3), 0.22); }
.svc-mini__icon[data-tone="3"] { color: var(--acc-3);  background: rgba(var(--rgb-4), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--rgb-4), 0.22); }

.svc-mini__body { min-width: 0; flex: 1; display: flex; flex-direction: column; }

.svc-mini__name {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.svc-mini__host {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.svc-mini__tag {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 3px 8px;
  border-radius: var(--r-badge);
  box-shadow: inset 0 0 0 1px var(--border);
}

.hero__foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-block: clamp(0.5rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2.25rem);
}

/* --------------------------------------------------------------------------
   11.2 内页页头（services / works / about）
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.page-hero__inner { position: relative; z-index: 2; }

.page-hero__title {
  margin-top: var(--sp-5);
  max-width: 20ch;
}

.page-hero__lede {
  margin-top: var(--sp-6);
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   11.3 服务导航页：检索与筛选
   -------------------------------------------------------------------------- */

.svc-toolbar {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-3);
  border-radius: var(--r-lg);
  background: var(--bg-raised);
  box-shadow: var(--sh-card);
}

.svc-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 260px;
  min-width: 0;
  padding: 0 12px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--bg-inset);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: box-shadow var(--dur-fast) var(--ease);
}

.svc-search:focus-within { box-shadow: inset 0 0 0 1px rgba(var(--rgb-1), 0.5); }

.svc-search__icon { color: var(--text-3); flex: none; }

.svc-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: var(--fs-small);
  outline: none;
}

.svc-search__input::placeholder { color: var(--text-3); }

.svc-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }

.svc-search__kbd {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  padding: 2px 7px;
  border-radius: var(--r-xs);
  box-shadow: inset 0 0 0 1px var(--border-2);
}

.svc-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-md);
  background: var(--bg-inset);
  box-shadow: inset 0 0 0 1px var(--border);
}

.svc-tab {
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font-size: var(--fs-small);
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.svc-tab:hover { color: var(--text); }

.svc-tab[aria-pressed="true"] {
  color: var(--acc-ink);
  background: var(--acc);
  font-weight: 600;
}

.svc-count { margin-top: var(--sp-5); }

.svc-group-head { margin-top: clamp(2.5rem, 5vw, 4rem); margin-bottom: var(--sp-6); }

.svc-group-head h2 { letter-spacing: -0.02em; }
.svc-group-head p { margin-top: 7px; }

.svc-empty {
  margin-top: var(--sp-12);
  padding: var(--sp-12) var(--sp-6);
  text-align: center;
  color: var(--text-3);
  font-size: var(--fs-small);
  border-radius: var(--r-lg);
  border: 1px dashed var(--border-2);
}

/* --------------------------------------------------------------------------
   11.4 架构链路（services.html）
   -------------------------------------------------------------------------- */

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: var(--sp-5);
  counter-reset: flow;
}

.flow__step {
  position: relative;
  padding: var(--sp-5);
  border-radius: var(--r-card);
  background: var(--bg-raised);
  box-shadow: var(--sh-card);
}

.flow__num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  color: var(--acc);
}

.flow__title { margin-top: 10px; font-size: 1rem; font-weight: 600; }

.flow__desc {
  margin-top: 8px;
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   11.5 作品集
   -------------------------------------------------------------------------- */

.work-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--sp-8);
}

.work-jump .chip { transition: color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.work-jump .chip:hover { color: var(--acc); box-shadow: inset 0 0 0 1px rgba(var(--rgb-1), 0.4); }

.work { padding-block: clamp(4rem, 8vw, 7rem); scroll-margin-top: calc(var(--header-h) + 1.5rem); }

.work__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.work--flip .work__media { order: 2; }
.work--flip .work__body  { order: 1; }

.work__media { position: sticky; top: calc(var(--header-h) + 2rem); }

.work__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-raised);
  box-shadow: var(--sh-card);
}

.work__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.work__frame:hover img { transform: scale(1.03); }

.work__caption {
  margin-top: var(--sp-4);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--text-3);
}

.work__body { min-width: 0; }

.work__name { margin-top: var(--sp-4); }

.work__tagline {
  margin-top: var(--sp-3);
  font-size: var(--fs-lead);
  color: var(--acc);
  letter-spacing: -0.01em;
}

.work__desc { margin-top: var(--sp-4); }
.work__desc em { font-style: normal; color: var(--text); box-shadow: inset 0 -0.5em 0 rgba(var(--rgb-1), 0.14); }

.work__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}

.work__facts dd {
  margin-top: 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.work__hl {
  margin-top: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.work__hl li {
  position: relative;
  padding-left: var(--sp-6);
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--text-2);
}

.work__hl li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 11px;
  height: 1px;
  background: var(--acc);
}

.work__hl strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 3px; }

.work__stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: var(--sp-8); }

.work__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

/* --------------------------------------------------------------------------
   11.6 关于页
   -------------------------------------------------------------------------- */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--sp-5);
}

.principle {
  position: relative;
  padding: var(--sp-6);
  border-radius: var(--r-card);
  background: var(--bg-raised);
  box-shadow: var(--sh-card);
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.principle:hover { box-shadow: var(--sh-hover); transform: translateY(-3px); }

.principle__num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  color: var(--acc);
}

.principle__title { margin-top: var(--sp-4); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.012em; }

.principle__desc {
  margin-top: 10px;
  font-size: var(--fs-small);
  line-height: 1.72;
  color: var(--text-2);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: var(--sp-6);
}

.stack-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: var(--sp-4); }

.about-site {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-site__text { min-width: 0; }

.site-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}

.site-facts dd { margin-top: 8px; font-size: 0.9375rem; font-weight: 600; }

.code-block {
  margin: 0;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--bg-inset);
  box-shadow: var(--sh-card);
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  line-height: 1.85;
  color: var(--text-2);
  white-space: pre;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: var(--sp-5);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: var(--sp-6);
  border-radius: var(--r-card);
  background: var(--bg-raised);
  box-shadow: var(--sh-card);
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.contact-card:hover { box-shadow: var(--sh-hover); transform: translateY(-3px); }

.contact-card__value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--acc);
  word-break: break-all;
}

.contact-card__hint { font-size: var(--fs-small); color: var(--text-3); line-height: 1.6; }

/* 提示框：口径说明 / 站点声明 */
.note-box {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--r-lg);
  background: var(--bg-raised);
  box-shadow: var(--sh-card);
  border-left: 2px solid var(--acc);
}

.note-box > .t-label { margin-bottom: var(--sp-4); }
.note-box .t-body { max-width: 74ch; }

.legal-list { display: flex; flex-direction: column; gap: var(--sp-4); }

.legal-list p {
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--text-2);
  max-width: 74ch;
}

.legal-list strong { color: var(--text); font-weight: 600; }
.legal-list a { color: var(--acc); border-bottom: 1px solid rgba(var(--rgb-1), 0.35); }
.legal-list a:hover { border-bottom-color: var(--acc); }

/* 首页「关于」双栏 */
.about-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-cta__text { min-width: 0; }

/* --------------------------------------------------------------------------
   11.7 404
   -------------------------------------------------------------------------- */

.notfound {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-top: var(--header-h);
  text-align: center;
}

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

.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 16vw, 11rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.notfound__title { margin-top: var(--sp-6); }
.notfound__lede { margin-top: var(--sp-4); max-width: 44ch; margin-inline: auto; }
.notfound__cta { display: flex; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-8); flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   11.8 页面级响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__aside { display: none; }
  .hero__title { max-width: 100%; }
}

@media (max-width: 900px) {
  .work__inner,
  .about-site,
  .about-cta { grid-template-columns: 1fr; }

  .work__media { position: static; }
  .work--flip .work__media,
  .work--flip .work__body { order: 0; }
}

@media (max-width: 640px) {
  .svc-toolbar { padding: var(--sp-2); }
  .svc-tabs { width: 100%; overflow-x: auto; }
  .svc-search { flex: 1 1 100%; }
  .work__facts { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   12 作品集：分组与栅格
   --------------------------------------------------------------------------
   作品集刻意分两部分：
     Part 01「在线产品」—— 有独立官网、部署在 NAS 上，用整幅展示（.work 横向两栏）
     Part 02「自研作品」—— 未对外部署，用栅格卡片（.work-stack 内每张卡单列）
   两部分的排版差异本身就是"分开"的表达。
   ========================================================================== */

.works-index {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: var(--sp-8);
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  max-width: 900px;
}

.works-index__col > .t-label { margin-bottom: var(--sp-4); }

.works-index__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px;
}

.works-index__link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.works-index__link:hover { background: rgba(255, 255, 255, 0.05); color: var(--acc); }

.works-index__hint {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.works-index__link:hover .works-index__hint { color: var(--acc); opacity: 0.75; }

/* ---- 分组头 ---- */

.group-head {
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--border);
}

.group-head--inset {
  background: var(--bg-inset);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.group-head__inner { max-width: 62ch; }

.group-head__eyebrow { color: var(--acc); }
.group-head__title { margin-top: var(--sp-4); }
.group-head__desc { margin-top: var(--sp-5); }

/* ---- 作品正文里的高亮（不是链接，只是加重点）---- */

.hl { color: var(--text); font-weight: 600; }

/* ---- 在线产品整幅展示里的"线上"标记 ---- */

.work__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  color: var(--acc);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ---- 自研作品：栅格卡片 ---- */

.work-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.work-stack .work {
  padding-block: 0;
  border-radius: var(--r-card);
  background: var(--bg-raised);
  box-shadow: var(--sh-card);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease);
}

.work-stack .work:hover { box-shadow: var(--sh-hover); }

/* 卡片里不再需要外层容器与两栏布局 */
.work-stack .shell { padding-inline: 0; max-width: none; }

.work-stack .work__inner {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  height: 100%;
  align-content: start;
}

.work-stack .work__media { position: static; }

.work-stack .work--flip .work__media,
.work-stack .work--flip .work__body { order: 0; }

.work-stack .work__frame {
  border-radius: 0;
  box-shadow: inset 0 -1px 0 var(--border);
}

.work-stack .work__frame:hover img { transform: none; }

.work-stack .work__caption {
  margin-top: 0;
  padding: var(--sp-4) var(--sp-6) 0;
  font-size: 0.78125rem;
}

.work-stack .work__body {
  display: flex;
  flex-direction: column;
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  flex: 1;
}

.work-stack .work__name { font-size: 1.75rem; }
.work-stack .work__tagline { font-size: 1rem; }
.work-stack .work__desc { font-size: var(--fs-small); }

.work-stack .work__facts {
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
}

.work-stack .work__facts dd { font-size: 0.9375rem; }

.work-stack .work__hl { margin-top: var(--sp-6); gap: var(--sp-3); }
.work-stack .work__hl li { font-size: 0.8125rem; line-height: 1.65; }

.work-stack .work__stack { margin-top: var(--sp-6); }

.work-stack .work__links { margin-top: auto; padding-top: var(--sp-6); }

/* ---- 作品集页的响应式 ---- */

@media (max-width: 900px) {
  .works-index { grid-template-columns: 1fr; gap: var(--sp-6); }
  .work-stack { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .work-stack .work__body,
  .work-stack .work__caption { padding-inline: var(--sp-5); }
  .work-stack .work__name { font-size: 1.5rem; }
}
