/* ==========================================================================
   空气集团™ Air Group™ — 共享设计系统 air.css
   纯手写 / 无框架 / 无构建步骤
   基底：Apple 液态玻璃（iOS26 风格）暗色宇宙
   戏仿板块：Claude 官网风格（暖米奶油 + 衬线 + 珊瑚橙）
   ========================================================================== */


/* --------------------------------------------------------------------------
   0. 字体
   Geist Sans / Geist Mono 由各页 <head> 的 jsDelivr link（geist@1.3.1）加载，
   此处不再重复 @font-face（2026-08-30 审计修复：双版本重叠定义）
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   1. 设计变量
   -------------------------------------------------------------------------- */
:root {
  /* 基底 */
  --bg:            #050505;
  --ink:           #e8e6e3;
  --gold:          #c8b896;              /* 品牌金 */

  /* Claude 区 */
  --cream-top:     #F5F1E8;
  --cream-mid:     #F0ECE1;
  --cream-bot:     #EDE8DB;
  --cream-ink:     #141310;
  --coral:         #C15A3B;              /* 珊瑚橙强调 */
  --cream-fallback:#FAF7F0;              /* 浅色卡无 backdrop 支持时的底 */

  /* 液态玻璃参数 */
  --lg-radius:     18px;
  --lg-blur:       blur(20px) saturate(220%) brightness(1.06);
  --nav-blur:      blur(28px) saturate(220%);

  /* 动效 */
  --ease-out:      cubic-bezier(.16,1,.3,1);

  /* 字体栈 */
  --font-sans:     'Geist', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono:     'Geist Mono', 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-serif:    'Iowan Old Style', 'Palatino Linotype', 'Songti SC', 'Noto Serif SC', Georgia, serif;
}


/* --------------------------------------------------------------------------
   2. Reset & 基底
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(200,184,150,.32); color: #fff; }

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

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

h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }

.mono { font-family: var(--font-mono); font-feature-settings: 'ss01' on; }


/* --------------------------------------------------------------------------
   3. 布局
   -------------------------------------------------------------------------- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
}

.section { padding: 120px 0; }

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 滚动浮现（本组件允许 transform，因为不挂 GSAP 滚动动画）
   2026-08-30 审计修复：隐藏态只在 html.js 下生效——
   JS 未加载/报错时内容永远可见，<head> 内联脚本负责加 .js */
.reveal {
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}
html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}


/* --------------------------------------------------------------------------
   4. 液态玻璃材质（核心卖点）
   多层渐变模拟光线折射 + 亮顶边镜面 + 四向内阴影
   -------------------------------------------------------------------------- */
.lg {
  position: relative;
  background:
    linear-gradient(135deg,
      rgba(255,255,255,.14) 0%,
      rgba(255,255,255,.04) 45%,
      rgba(255,255,255,.09) 100%);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  border: 1px solid rgba(255,255,255,.12);
  border-top-color: rgba(255,255,255,.32);   /* 镜面亮顶边 */
  border-radius: var(--lg-radius);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),     /* 上折射 */
    inset 0 -1px 0 rgba(0,0,0,.18),          /* 下折射 */
    inset 1px 0 0 rgba(255,255,255,.06),     /* 左折射 */
    inset -1px 0 0 rgba(0,0,0,.08),          /* 右折射 */
    0 6px 24px rgba(0,0,0,.28);              /* 外阴影 */
}

/* backdrop-filter 降级：无支持时给深色实底，保证可读 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lg { background: rgba(20,20,20,.92); }
}

/* --- 玻璃卡片 --- */
.lg-card {
  padding: 2rem;
  transition: box-shadow .5s var(--ease-out), border-color .5s var(--ease-out);
  /* 禁止 transform：与滚动动画兼容 */
}
.lg-card:hover {
  border-color: rgba(255,255,255,.22);
  border-top-color: rgba(255,255,255,.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -1px 0 rgba(0,0,0,.18),
    inset 1px 0 0 rgba(255,255,255,.10),
    inset -1px 0 0 rgba(0,0,0,.08),
    0 10px 36px rgba(0,0,0,.36),
    0 0 0 1px rgba(255,255,255,.05),
    0 0 42px rgba(200,184,150,.10);          /* 金色高光增强 */
}

/* --- 胶囊小标签 --- */
.lg-pill {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .35em 1em;
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(232,230,227,.85);
  white-space: nowrap;
}

/* --- 液态玻璃按钮 --- */
.lg-btn {
  position: relative;                        /* 掠光 ::after 的包含块（审计修复：页脚/导航按钮未挂 .lg 时掠光乱跑） */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .85em 1.9em;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;                          /* 掠光裁剪 */
  transition: box-shadow .45s var(--ease-out), border-color .45s var(--ease-out);
}
/* 掠光扫过条 */
.lg-btn::after {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -80%;
  width: 45%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255,255,255,.05) 30%,
    rgba(255,255,255,.38) 50%,
    rgba(255,255,255,.05) 70%,
    transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
}
.lg-btn:hover {
  border-top-color: rgba(255,255,255,.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -1px 0 rgba(0,0,0,.2),
    0 8px 30px rgba(0,0,0,.34),
    0 0 36px rgba(200,184,150,.14);
}
.lg-btn:hover::after {
  left: 130%;
  transition: left .7s var(--ease-out);
}
.lg-btn:active { filter: brightness(1.08); }

/* --- 免责小字卡（保留梗：默认看不清，交互才显形） --- */
.lg-footnote {
  padding: 1rem 1.25rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lg-footnote .fn-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: .4rem;                          /* 极小 */
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.18);              /* 半透明 */
  margin-bottom: .5em;
  transition: font-size .5s var(--ease-out), color .5s var(--ease-out);
}
.lg-footnote .fn-text {
  font-size: .4rem;
  line-height: 1.55;
  color: rgba(255,255,255,.18);
  transition: font-size .5s var(--ease-out), color .5s var(--ease-out);
}
/* "坍缩"放大：hover 或 .peek（触屏点击） */
.lg-footnote:hover .fn-tag,
.lg-footnote.peek .fn-tag {
  font-size: .72rem;
  color: rgba(200,184,150,.85);
}
.lg-footnote:hover .fn-text,
.lg-footnote.peek .fn-text {
  font-size: .72rem;
  color: rgba(232,230,227,.78);
}

/* --- 浮动装饰球 --- */
.lg-orb {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%,
    rgba(200,184,150,.32) 0%,
    rgba(200,184,150,.10) 42%,
    transparent 70%);
  filter: blur(38px);
  pointer-events: none;
  animation: orb-float 11s ease-in-out infinite alternate;
}
.lg-orb.orb-2 {
  width: 220px;
  height: 220px;
  animation-duration: 14s;
  animation-delay: -5s;
}
@keyframes orb-float {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(28px, -42px, 0) scale(1.07); }
  100% { transform: translate3d(-22px, 22px, 0) scale(.96); }
}

/* --- 顶部导航 --- */
.nav-glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  -webkit-backdrop-filter: var(--nav-blur);
  backdrop-filter: var(--nav-blur);
  background: rgba(5,5,5,.30);
  transition: background .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
/* 底部 1px 渐变分割线 */
.nav-glass::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.20) 22%,
    rgba(200,184,150,.38) 50%,
    rgba(255,255,255,.20) 78%,
    transparent 100%);
  pointer-events: none;
}
.nav-glass.scrolled {
  background: rgba(5,5,5,.66);               /* 滚动后背景加深 */
  box-shadow: 0 10px 32px rgba(0,0,0,.32);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-glass { background: rgba(5,5,5,.92); }
}

/* --- 导航/页脚结构布局（2026-08-30 审计修复：由 index/works 页内样式上移统一，
       修复 about/blog/contact 三页导航裸奔、下拉常显；选择器覆盖 .nav-drop 触发链） --- */
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; height: 64px; }
.nav-logo { font-size: 1.3rem; font-weight: 600; letter-spacing: .08em; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; font-size: .92rem; }
.nav-links a, .nav-drop > a { opacity: .72; transition: opacity .3s var(--ease-out), color .3s var(--ease-out); }
.nav-links a:hover, .nav-links a.active,
.nav-drop > a:hover, .nav-drop > a.active { opacity: 1; color: var(--gold); }
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  min-width: 240px; padding: .5rem;
  display: flex; flex-direction: column; gap: .2rem;
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility .35s;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-drop-item { display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem; border-radius: 12px; transition: background .3s var(--ease-out); }
.nav-drop-item:hover { background: rgba(255,255,255,.06); }
.nav-drop-icon { color: var(--gold); font-size: 1.1rem; line-height: 1; }
.nav-drop-item b { display: block; font-size: .85rem; font-weight: 500; }
.nav-drop-item small { display: block; font-size: .68rem; opacity: .6; margin-top: .15em; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-lang { font-size: .75rem; opacity: .6; }
.nav-cta {
  padding: .5em 1.35em; font-size: .78rem;
  border: 1px solid rgba(255,255,255,.20); border-top-color: rgba(255,255,255,.42);
}
@media (max-width: 860px) { .nav-links, .nav-lang { display: none; } }

.footer-heading { font-size: clamp(2.2rem, 5.5vw, 3.8rem); margin-bottom: 1.6rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 2.4rem 0 1.2rem; font-size: .9rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .85rem; margin-bottom: 2.4rem; }
.footer-copy { font-size: .8rem; opacity: .5; }

/* --- 渐变发光标题 --- */
.lg-text, .lg-text-strong {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.lg-text {
  background-image: linear-gradient(120deg, #ffffff 0%, #e8e6e3 55%, var(--gold) 100%);
  text-shadow: none;
  filter: drop-shadow(0 0 22px rgba(200,184,150,.14));
}
.lg-text-strong {
  background-image: linear-gradient(115deg, #ffffff 0%, var(--gold) 58%, #a89a76 100%);
  filter: drop-shadow(0 0 30px rgba(200,184,150,.22));
}


/* --------------------------------------------------------------------------
   5. Claude 区 —— 暖米奶油底的"我们很强大"戏仿板块
   -------------------------------------------------------------------------- */
.claude {
  background: linear-gradient(180deg, var(--cream-top), var(--cream-mid) 60%, var(--cream-bot));
  color: var(--cream-ink);
  border-top: 1px solid rgba(20,19,16,.08);
  border-bottom: 1px solid rgba(20,19,16,.08);
}
.claude ::selection { background: rgba(193,90,59,.25); color: var(--cream-ink); }

/* 衬线标题 */
.claude h1, .claude h2, .claude h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.015em;
}

/* 强调色 */
.claude-accent { color: var(--coral); }

/* 奶油玻璃变体 */
.claude .lg {
  background:
    linear-gradient(135deg,
      rgba(255,255,255,.55) 0%,
      rgba(255,255,255,.28) 45%,
      rgba(255,255,255,.42) 100%);
  border-color: rgba(20,19,16,.10);
  border-top-color: rgba(255,255,255,.85);   /* 亮顶边 */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    inset 0 -1px 0 rgba(20,19,16,.06),
    inset 1px 0 0 rgba(255,255,255,.35),
    inset -1px 0 0 rgba(20,19,16,.04),
    0 6px 24px rgba(20,19,16,.10);
  color: var(--cream-ink);                   /* 暗文字 */
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .claude .lg { background: var(--cream-fallback); }
}

.claude .lg-card:hover {
  border-color: rgba(20,19,16,.18);
  border-top-color: rgba(255,255,255,.95);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 -1px 0 rgba(20,19,16,.06),
    0 12px 38px rgba(20,19,16,.14),
    0 0 42px rgba(193,90,59,.10);
}

/* 奶油区内标题去渐变，变墨黑 / 珊瑚纯色 */
.claude .lg-text,
.claude .lg-text-strong {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  filter: none;
}
.claude .lg-text {
  color: var(--cream-ink);
  -webkit-text-fill-color: var(--cream-ink);
}
.claude .lg-text-strong {
  color: var(--coral);
  -webkit-text-fill-color: var(--coral);
}

/* 奶油区按钮：墨色描边，hover 珊瑚 */
.claude .lg-btn {
  color: var(--cream-ink);
  border-color: rgba(20,19,16,.55);
  border-top-color: rgba(20,19,16,.55);
  background: transparent;
  box-shadow: none;
}
.claude .lg-btn:hover {
  color: var(--coral);
  border-color: var(--coral);
  border-top-color: var(--coral);
  box-shadow: 0 8px 26px rgba(193,90,59,.16);
}
.claude .lg-btn::after {
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(193,90,59,.04) 30%,
    rgba(193,90,59,.16) 50%,
    rgba(193,90,59,.04) 70%,
    transparent 100%);
}

/* 奶油区 pill */
.claude .lg-pill {
  color: rgba(20,19,16,.72);
  border-color: rgba(20,19,16,.14);
  border-top-color: rgba(255,255,255,.85);
}

/* 奶油区免责小字：保持"看不清"的梗，配色换成墨色 */
.claude .lg-footnote .fn-tag,
.claude .lg-footnote .fn-text { color: rgba(20,19,16,.18); }
.claude .lg-footnote:hover .fn-tag,
.claude .lg-footnote.peek .fn-tag { color: rgba(193,90,59,.9); }
.claude .lg-footnote:hover .fn-text,
.claude .lg-footnote.peek .fn-text { color: rgba(20,19,16,.75); }

/* --- 自夸统计网格 --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-item { padding: 1.5rem 0; }
.stat-item .stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: .35em;
}
.stat-item .stat-label {
  display: block;
  font-size: .85rem;
  letter-spacing: .06em;
  opacity: .68;
}
/* 默认（暗色区）统计数字用金色，Claude 区内覆盖为墨黑 */
.stat-item .stat-num { color: var(--gold); }
.claude .stat-item .stat-num { color: var(--cream-ink); }
.claude .stat-item .stat-num.claude-accent { color: var(--coral); }  /* 审计修复：原写成后代选择器永不命中 */

/* --- 条形图 .bench --- */
.bench { display: flex; flex-direction: column; gap: .9rem; }
.bench-row {
  display: grid;
  grid-template-columns: minmax(7em, 11em) 1fr auto;
  align-items: center;
  gap: 1rem;
}
.bench-label {
  font-size: .85rem;
  letter-spacing: .03em;
  opacity: .8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bench-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.25);
}
.bench-fill {
  display: block;
  height: 100%;
  width: 0;                                    /* 目标宽度由 JS 从 data-w 写入 */
  border-radius: 999px;
  background: linear-gradient(90deg, #8f8467, var(--gold) 70%, #efe6cc);  /* 暗区金色渐变 */
  transition: width 1.1s var(--ease-out);
}
.bench-val {
  font-family: var(--font-mono);
  font-size: .82rem;
  opacity: .85;
  min-width: 3.5em;
  text-align: right;
}

/* Claude 区内：珊瑚渐变 + 奶油轨道 */
.claude .bench-bar {
  background: rgba(20,19,16,.08);
  box-shadow: inset 0 1px 2px rgba(20,19,16,.12);
}
.claude .bench-fill {
  background: linear-gradient(90deg, #8f3a22, var(--coral) 70%, #e08a6c);
}


/* --------------------------------------------------------------------------
   6. 页脚
   -------------------------------------------------------------------------- */
.footer {
  background: #030303;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 72px 0 48px;
  color: rgba(232,230,227,.62);
}
.footer a { transition: color .3s var(--ease-out); }
.footer a:hover { color: var(--gold); }
.footer .footer-disclaimer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: .68rem;
  line-height: 1.7;
  color: rgba(255,255,255,.24);
  letter-spacing: .02em;
}
.footer .footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: rgba(232,230,227,.85);
  letter-spacing: .02em;
}


/* --------------------------------------------------------------------------
   7. 响应式 —— 768px 断点
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  .lg-card { padding: 1.4rem; }
  :root { --lg-radius: 14px; }

  .lg-orb { width: 200px; height: 200px; filter: blur(30px); }
  .lg-orb.orb-2 { width: 140px; height: 140px; }

  .bench-row {
    grid-template-columns: 1fr auto;         /* label 独占一行 */
    grid-template-areas:
      "label val"
      "bar   bar";
    row-gap: .35rem;
  }
  .bench-label { grid-area: label; }
  .bench-bar   { grid-area: bar; }
  .bench-val   { grid-area: val; }

  /* 小字梗在触屏上保持可读下限 */
  .lg-footnote .fn-tag, .lg-footnote .fn-text { font-size: .46rem; }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
}


/* --------------------------------------------------------------------------
   8. 减弱动效降级
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal { opacity: 1; transform: none; }   /* 直接可见 */
  .lg-orb { animation: none; }
  .lg-btn::after { display: none; }          /* 关闭掠光 */
  .bench-fill { transition: none; }
}
