
/* ═══════════════ Theme Variables ═══════════════ */
:root {
  /* ─── 画布 / 卡片（menkind 暖白风格 #fffcf5）─── */
  --bg: #fffcf5;                               /* menkind 暖米白画布 */
  --bg-warm: #f5efe2;                          /* 暖调次级米色底 */
  --bg-card: rgba(255, 252, 245, 0.92);        /* 半透明白卡片 */
  --bg-card-hover: #fffdf8;
  /* ─── 唯一品牌强调色：menkind 暖黑（原 vivid azure 已按需求改 #181818）─── */
  --accent: #181818;
  --accent-2: #181818;
  --accent-hover: #181818;
  --accent-soft: #181818;
  --accent-ink: #ffffff;                        /* accent 实底上的文字色（浅色=白） */
  --accent-light: rgba(24, 24, 24, 0.08);
  --accent-glow: rgba(24, 24, 24, 0.22);
  /* ─── 文字（menkind：#181818 主文字 / #6b6966 次级）─── */
  --text: #181818;                             /* menkind 暖黑 */
  --text-dim: #6b6966;                         /* menkind 灰褐次级（同 muted） */
  --text-muted: #6b6966;                       /* menkind 灰褐次级 */
  /* ─── 描边 / 投影 ─── */
  --border: rgba(24, 24, 24, 0.10);
  --border-hover: rgba(24, 24, 24, 0.24);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 22px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.20);
  --nav-bg: rgba(255, 252, 245, 0.88);
  --nav-bg-scrolled: rgba(255, 252, 245, 0.97);
  /* ─── 悬浮玻璃胶囊导航 ─── */
  --nav-h: 56px;                /* 胶囊高度 */
  --nav-top: 12px;              /* 离顶距离：悬浮，不贴边 */
  --nav-max: 826px;             /* 胶囊最大宽度 */
  --nav-glass: rgba(255, 252, 245, 0.78);       /* 顶栏主色 #fffcf5 磨砂玻璃（menkind 暖白） */
  --nav-glass-scrolled: rgba(255, 252, 245, 0.92);
  --nav-hairline: rgba(255, 255, 255, 0.60);    /* 胶囊 1px 高光描边 */
  --nav-hairline-soft: rgba(24, 24, 24, 0.22);  /* 胶囊内交互件（下拉框）描边 */
  --nav-hairline-soft-hover: rgba(24, 24, 24, 0.40);
  --nav-shadow: 0 10px 34px rgba(24, 24, 24, 0.10);        /* 暖黑柔和投影 */
  --nav-shadow-scrolled: 0 14px 44px rgba(24, 24, 24, 0.16);
  --nav-ink: #181818;                           /* 玻璃上的暖黑字 */
  --nav-ink-dim: rgba(24, 24, 24, 0.72);
  --nav-ink-hover: rgba(255, 255, 255, 0.55);
  --nav-active-bg: rgba(255, 255, 255, 0.72);   /* 当前页选中胶囊底 */
  --nav-dot: #181818;                           /* logo 里那个小圆点 */
  --nav-caret-img: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23181818' stroke-opacity='0.6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --sky: #181818;               /* 全站唯一强调色：menkind 暖黑（原 azure） */
  --sky-on-dark: #181818;       /* 同色相在深色底上的高对比档 */
  --nav-t: 700ms cubic-bezier(0.22, 0.61, 0.36, 1);   /* 700ms ease-out */
  /* ─── 主色（品牌色）：淡紫蓝 ─── */
  --brand: #bccefb;
  --brand-2: #cbd9fc;
  --brand-3: #e6eefe;
  /* ─── hero 令牌组（浅色主题 = 画布色 #fffcf5，与下方内容完全融为一体；
         暗色主题整组覆盖为暗色画布）─── */
  --hero-grad: #fffcf5;
  --hero-ink: #181818;
  --hero-ink-dim: rgba(24, 24, 24, 0.70);
  --hero-ink-muted: rgba(24, 24, 24, 0.50);
  --hero-hairline: rgba(24, 24, 24, 0.10);
  --hero-hairline-hover: rgba(24, 24, 24, 0.24);
  --hero-card: rgba(255, 252, 245, 0.92);
  --hero-card-hover: #fffdf8;
  --hero-warm: rgba(24, 24, 24, 0.04);
  --hero-accent: #181818;
  --hero-accent-hover: #181818;
  --hero-accent-soft: #181818;
  --hero-accent-light: rgba(24, 24, 24, 0.08);
  --hero-accent-glow: rgba(24, 24, 24, 0.20);
  --hero-glow-1: rgba(99, 102, 241, 0);         /* indigo：hero 已与画布同色，光晕一并淡出 */
  --hero-glow-2: rgba(249, 115, 22, 0);
  --hero-glow-3: rgba(251, 191, 36, 0);
  --hero-sheen: rgba(255, 255, 255, 0);
  --hero-a: #06070c;
  --hero-b: #0d1526;
  --hero-c: #111827;
  --hero-alt-a: #091120;
  --hero-alt-b: #0f172a;
  --glow-indigo: #6366f1;
  --glow-orange: #f97316;
  --glow-amber: #fbbf24;
  /* ─── 字体：几何无衬线 ─── */
  --font-display: 'Be Vietnam Pro', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --font-ui: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Inter', sans-serif;
  --mobile-bg: rgba(255, 252, 245, 0.98);
  --code-bg: #0b1220;
  --code-text: #dbe6ff;
  --code-keyword: #c7b0ff;
  --code-string: #9ee6b4;
  --code-comment: #7c8aa5;
  --code-field: #8ab4ff;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --touch-min: 44px;
  --max-width: 1200px;
}

[data-theme="dark"] {
  --bg: #06070c;
  --bg-warm: #0e0f14;                            /* 暗色次级底：中性暖黑（去蓝调） */
  --bg-card: rgba(21, 22, 27, 0.90);             /* 暗色卡片：中性暖黑（原 slate 蓝调） */
  --bg-card-hover: #1b1c22;
  --accent: #ffffff;
  --accent-hover: #ffffff;
  --accent-soft: #ffffff;
  --accent-ink: #181818;                         /* accent 实底上的文字色（暗色=黑，白底黑字） */
  --accent-light: rgba(255, 255, 255, 0.14);
  --accent-glow: rgba(255, 255, 255, 0.30);
  --text: #eef2ff;
  --text-dim: #94a3b8;
  --text-muted: #8b98a8;                       /* 对比度 5.3:1（原 #64748b 仅 4.23，低于 AA） */
  --border: rgba(255, 255, 255, 0.18);
  --border-hover: rgba(255, 255, 255, 0.34);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.40), 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 6px 22px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
  --nav-bg: rgba(6, 7, 12, 0.88);
  --nav-bg-scrolled: rgba(6, 7, 12, 0.97);
  /* 暗色下顶栏仍是主色 #f3f8ff 玻璃，只是透明度压到很低（保持白字反差） */
  --nav-glass: rgba(243, 248, 255, 0.10);
  --nav-glass-scrolled: rgba(243, 248, 255, 0.16);
  --nav-hairline: rgba(255, 255, 255, 0.20);
  --nav-hairline-soft: rgba(255, 255, 255, 0.22);
  --nav-hairline-soft-hover: rgba(255, 255, 255, 0.45);
  --nav-ink: #ffffff;
  --nav-ink-dim: rgba(255, 255, 255, 0.78);
  --nav-ink-hover: rgba(255, 255, 255, 0.14);
  --nav-active-bg: rgba(255, 255, 255, 0.14);
  --nav-dot: #ffffff;
  --nav-caret-img: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-opacity='0.72' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --mobile-bg: rgba(6, 7, 12, 0.98);
  --code-bg: #080d18;
  --code-text: #dbe6ff;
  --code-keyword: #c7b0ff;
  --code-string: #9ee6b4;
  --code-comment: #7c8aa5;
  --code-field: #8ab4ff;
  /* 暗色主题下 hero 与暗色画布同色，保持与浅色主题一致的「无底色」效果 */
  --hero-grad: #06070c;
  --hero-ink: #ffffff;
  --hero-ink-dim: rgba(255, 255, 255, 0.72);
  --hero-ink-muted: rgba(255, 255, 255, 0.52);
  --hero-hairline: rgba(255, 255, 255, 0.14);
  --hero-hairline-hover: rgba(255, 255, 255, 0.30);
  --hero-card: rgba(255, 255, 255, 0.06);
  --hero-card-hover: rgba(255, 255, 255, 0.10);
  --hero-warm: rgba(255, 255, 255, 0.05);
  --hero-accent: #ffffff;
  --hero-accent-hover: #ffffff;
  --hero-accent-soft: #ffffff;
  --hero-accent-light: rgba(255, 255, 255, 0.14);
  --hero-accent-glow: rgba(255, 255, 255, 0.34);
  --hero-glow-1: rgba(99, 102, 241, 0);
  --hero-glow-2: rgba(249, 115, 22, 0);
  --hero-glow-3: rgba(251, 191, 36, 0);
  --hero-sheen: rgba(255, 255, 255, 0);
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.75;
  /* 性能：overflow-x:hidden 会把 body 提升为独立滚动容器（拖慢滚动、影响 sticky/fixed）；
     clip 不创建滚动容器，且 html 已有同一道防线 */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-overflow-scrolling: touch;
  transition: background 0.15s ease, color 0.15s ease;
  overscroll-behavior-y: none;
}

/* 标题统一走几何无衬线（Be Vietnam Pro；中日文自动回退 Noto Sans SC） */
h1, h2, h3, h4 {
  font-family: var(--font-display);
}

/* 防止图片加载导致 CLS */
img {
  max-width: 100%;
  height: auto;
  aspect-ratio: attr(width) / attr(height);
}
img:not([width]):not([height]) {
  aspect-ratio: 16 / 9;
}
img[loading="lazy"] {
  min-height: 1px;
}
/* 骨架占位：避免 CLS */
.skill-card-img, .mcp-card-img, .model-card-img, .blog-card-img {
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  overflow: hidden;
}

/* ─── Navigation ─── */
/* ─── 悬浮玻璃胶囊导航（max-width 826px / radius 999px / 700ms ease-out）─── */
#navbar {
  position: fixed;
  top: var(--nav-top);
  left: 0; right: 0;
  width: calc(100% - 2rem);
  max-width: var(--nav-max);
  margin: 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 0.5rem 0 1.35rem;
  border-radius: 999px;
  background: var(--nav-glass);
  border: 1px solid var(--nav-hairline);
  /* 性能：模糊半径/饱和度直接决定滚动期每帧的后方采样重算成本；纯色与淡渐变背景下 12px 与 22px 视觉无差 */
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--nav-shadow);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  /* 性能：box-shadow 不参与过渡 —— 否则切 scrolled 时 700ms 内每帧重绘大范围阴影 */
  transition: background var(--nav-t), border-color var(--nav-t);
}
#navbar.scrolled {
  background: var(--nav-glass-scrolled);
  box-shadow: var(--nav-shadow-scrolled);
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.4rem;
}

.nav-logo {
  font-family: 'Be Vietnam Pro', 'Noto Sans SC', sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--nav-ink);
  letter-spacing: -0.01em;
  text-decoration: none;
  flex-shrink: 0;
  display: flex; align-items: center;
  transition: opacity var(--nav-t);
}
.nav-logo:hover { opacity: 0.75; }
.nav-logo .dot { color: var(--nav-dot); margin: 0 1px; transition: color var(--nav-t); }
/* 顶栏网站名左侧的 D 字母图标（圆形环+居中 D，随 currentColor 自动适配明暗主题） */
.nav-logo-ico {
  width: 21px; height: 21px;
  margin-right: 8px;
  color: var(--nav-ink);
  flex-shrink: 0;
  display: block;
}

.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 0.1rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--nav-ink-dim);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  transition: color var(--nav-t), background var(--nav-t);
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  min-height: 38px;
  display: flex; align-items: center;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--nav-ink); background: var(--nav-ink-hover); }
/* 主色胶囊底上，当前页用白色小胶囊「选中态」才看得出来 */
.nav-links a.active { color: var(--nav-ink); background: var(--nav-active-bg); }
.nav-links a:focus-visible,
.nav-logo:focus-visible,
.nav-actions a:focus-visible,
.nav-icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-spacer { display: none; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.nav-icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: var(--nav-ink-dim);
  transition: color var(--nav-t), background var(--nav-t);
  padding: 0;
}
.nav-icon-btn:hover { color: var(--nav-ink); background: var(--nav-ink-hover); }
.nav-icon-btn svg { width: 17px; height: 17px; }

/* 玻璃上的文字型按钮（用户名等），CTA 见下方 .nav-cta */
.nav-actions a.nav-icon-btn {
  color: var(--nav-ink-dim);
  text-decoration: none;
  padding: 0 0.5rem;
}
.nav-actions a.nav-icon-btn:hover { color: var(--nav-ink); background: var(--nav-ink-hover); }

/* 唯一 CTA：主色实底胶囊（浅色黑底白字 / 深色白底黑字，随 --accent/--accent-ink 自适应） */
.nav-actions a.nav-icon-btn.nav-cta {
  height: 38px;
  min-width: 0;
  padding: 0 1.05rem;
  margin-left: 0.2rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  transition: color var(--nav-t), background var(--nav-t), box-shadow var(--nav-t), transform var(--nav-t);
}
.nav-actions a.nav-icon-btn.nav-cta:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--accent-glow);
}

.lang-btn {
  width: auto;
  padding: 0 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  min-width: 36px;
  letter-spacing: 0.02em;
}

.lang-select-wrap {
  width: auto;
  padding: 0;
}
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid var(--nav-hairline-soft);
  background: transparent;
  color: var(--nav-ink-dim);
  border-radius: 999px;
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 1.6rem 0.3rem 0.7rem;
  cursor: pointer;
  transition: color var(--nav-t), border-color var(--nav-t);
  max-width: 118px;
  background-image: var(--nav-caret-img);
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
}
.lang-select:hover { color: var(--nav-ink); border-color: var(--nav-hairline-soft-hover); }
.lang-select option { color: #181818; background: #ffffff; }

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: var(--touch-min); height: var(--touch-min);
  background: none; border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--nav-ink);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 252, 245, 0.98);
  z-index: 99;
  flex-direction: column;
  /* 让开悬浮胶囊：12px 顶距 + 56px 胶囊高 + 一点呼吸位 */
  padding: calc(var(--nav-top) + var(--nav-h) + 0.9rem) 1.5rem 1rem;
  gap: 0.2rem;
  overflow-y: auto;
  transition: background 0.15s;
}
[data-theme="dark"] .mobile-menu { background: rgba(6, 7, 12, 0.98); }
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: flex; align-items: center;
  padding: 0.8rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  min-height: var(--touch-min);
}
.mobile-menu a:hover { background: var(--accent-light); color: var(--accent); }
.mobile-menu .mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
  transition: background 0.15s;
}
.mobile-menu .mobile-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0;
}
.mobile-menu .mobile-btn {
  flex: 1;
  height: 40px;
  display: flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  transition: all 0.25s;
}
.mobile-menu .mobile-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Section Common ─── */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* 性能优化：折叠线以下内容延迟渲染 */
.section-below-fold {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* ─── About Page ─── */
.about-hero { min-height: auto !important; padding: 6rem 1.5rem 3rem !important; }
.about-hero::before { display: none; }
.about-story { max-width: 720px; margin: 0 auto; }
.about-story p { margin-bottom: 1.2rem; line-height: 1.85; color: var(--text-dim); font-size: 1.02rem; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.value-card { padding: 2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: transform 0.15s, box-shadow 0.15s; }
.value-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.value-num { font-family: 'Be Vietnam Pro', 'Noto Sans SC', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--accent); opacity: 0.15; margin-bottom: 0.5rem; line-height: 1; }
.value-card h4 { font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--text); }
.value-card p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.7; margin: 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.testimonial-card { padding: 2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; gap: 1rem; }
.testimonial-card .quote { font-size: 0.95rem; line-height: 1.75; color: var(--text-dim); font-style: italic; position: relative; }
.testimonial-card .quote::before { content: '\201C'; font-family: 'Be Vietnam Pro', 'Georgia', sans-serif; font-size: 3rem; color: var(--accent); opacity: 0.2; position: absolute; top: -1rem; left: -0.3rem; line-height: 1; }
.testimonial-card .author { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.testimonial-card .role { font-size: 0.78rem; color: var(--text-muted); }
@media (max-width: 640px) {
  .values-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-hero { padding: 4.5rem 1rem 2rem !important; }
}


.section-title {
  font-family: 'Be Vietnam Pro', 'Noto Sans SC', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text);
  transition: color 0.15s;
}

.section-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 600px;
  line-height: 1.7;
  transition: color 0.15s;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
  contain: layout style paint;
}
/* ─── 淡紫蓝主色 hero + 环境光晕（2026-09-14 改主色 #bccefb）───
   .hero / .about-hero / .blog-hero / .page-head 走同一组 hero 令牌，
   容器内部所有 var(--text|--accent|--bg-card|…) 自动跟随（暗色主题整组覆盖）。 */
.hero,
.about-hero,
.blog-hero,
.page-head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--hero-ink);
  --text: var(--hero-ink);
  --text-dim: var(--hero-ink-dim);
  --text-muted: var(--hero-ink-muted);
  --border: var(--hero-hairline);
  --border-hover: var(--hero-hairline-hover);
  --accent: var(--hero-accent);
  --accent-hover: var(--hero-accent-hover);
  --accent-soft: var(--hero-accent-soft);
  --accent-light: var(--hero-accent-light);
  --accent-glow: var(--hero-accent-glow);
  --bg-card: var(--hero-card);
  --bg-card-hover: var(--hero-card-hover);
  --bg-warm: var(--hero-warm);
}
/* .page-head：给原本 max-width 居中的首屏容器让出全幅主色带 */
.page-head { max-width: none; margin-left: 0; margin-right: 0; }
/* 全幅主色渐变（用 100vw 溢出实现 full-bleed） */
.hero::before,
.about-hero::before,
.blog-hero::before,
.page-head::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  z-index: -2;
  pointer-events: none;
  background: var(--hero-grad);
}
/* 环境光晕：indigo / orange / amber + 顶部白色柔光 */
.hero::after,
.about-hero::after,
.blog-hero::after,
.page-head::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 52% at 12% 16%, var(--hero-glow-1) 0%, transparent 64%),
    radial-gradient(ellipse 50% 46% at 88% 24%, var(--hero-glow-2) 0%, transparent 62%),
    radial-gradient(ellipse 46% 42% at 66% 94%, var(--hero-glow-3) 0%, transparent 62%),
    radial-gradient(ellipse 72% 62% at 50% 0%, var(--hero-sheen) 0%, transparent 72%);
  /* 性能：原先 heroGlow 无限呼吸动画让这块「100vw × hero 高」的四层渐变永不静止，滚动期每帧都要重新合成；
     改静态后该层可被缓存，滚动只做位移。0.85 即原呼吸（0.6↔1）的观感均值，肉眼无差 */
  opacity: 0.85;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid var(--accent);
  border-color: rgba(24, 24, 24, 0.28);
  border-radius: 50px;
  background: var(--accent-light);
  transition: all 0.15s;
  animation: fadeInUp 0.7s ease;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.5s infinite;
}

.hero h1 {
  font-family: 'Be Vietnam Pro', 'Noto Sans SC', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: 760px;
  margin-bottom: 1rem;
  animation: fadeInUp 0.7s ease 0.1s both;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: color 0.15s;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  position: relative;
  transition: color 0.15s;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 520px;
  animation: fadeInUp 0.7s ease 0.15s both;
  margin-bottom: 0.5rem;
  line-height: 1.7;
  transition: color 0.15s;
}

.hero-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.7s ease 0.25s both;
  margin-top: 1.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 16px var(--accent-glow);
  min-height: 50px;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  transition: all 0.3s;
  text-decoration: none;
  min-height: 50px;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  animation: fadeInUp 0.7s ease 0.15s both;
}
.hero-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}
.hero-stats .stat-value {
  font-family: 'Be Vietnam Pro', 'Noto Sans SC', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.15s;
}
.hero-stats .stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

/* ─── Featured Skills Grid ─── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
/* 性能优化：大量卡片的网格 */
.featured-grid,
.skill-card-grid,
.mcp-card-grid,
.page-card-grid,
.categories-grid {
  contain: layout style;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow);
  transform: translateZ(0);
  contain: layout style;
  min-height: 200px;
}
.featured-card:hover {
  transform: translateY(-4px) translateZ(0);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
  will-change: transform;
}
.featured-card .card-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: 0 0 0 8px;
  letter-spacing: 0.04em;
}
.featured-card .card-tag {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.featured-card .card-name {
  font-family: 'Be Vietnam Pro', 'Noto Sans SC', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.featured-card .card-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
}
.featured-card .card-footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.featured-card .card-footer span {
  display: flex; align-items: center; gap: 0.2rem;
}

/* ─── Categories Grid ─── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: var(--shadow-sm);
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}
.category-card .cat-icon { font-size: 1.5rem; margin-bottom: 0.2rem; }
.category-card .cat-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.15s;
}
.category-card .cat-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

/* ─── How It Works ─── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.how-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  contain: layout style;
  min-height: 220px;
}
.how-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}
.how-card .how-icon { font-size: 2rem; margin-bottom: 0.8rem; display: block; }
.how-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  transition: color 0.15s;
}
.how-card p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
  transition: color 0.15s;
}

/* ─── Chain Showcase Section ─── */
.chain-showcase {
  width: 100%;
}
.chain-preview {
  text-align: center;
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}
.chain-preview:hover {
  box-shadow: var(--shadow-lg);
}
.chain-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.chain-node {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.chain-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 700;
}
.chain-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}

/* ─── Code Example Section ─── */
.code-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.code-block {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  overflow-x: auto;
  box-shadow: var(--shadow-md);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.code-block .c-keyword { color: var(--code-keyword); }
.code-block .c-string { color: var(--code-string); }
.code-block .c-comment { color: var(--code-comment); font-style: italic; }
.code-block .c-field { color: var(--code-field); }

.code-info h3 {
  font-family: 'Be Vietnam Pro', 'Noto Sans SC', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  line-height: 1.3;
  color: var(--text);
  transition: color 0.15s;
}
.code-info p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}
.code-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.code-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  transition: color 0.15s;
}
.code-features li .check { color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ─── FAQ ─── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0.8rem;
}

.faq-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.faq-card:hover { background: var(--bg-card-hover); }
.faq-q {
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  user-select: none;
  min-height: var(--touch-min);
  transition: color 0.15s;
}
.faq-q .faq-icon {
  font-size: 1.1rem;
  font-weight: 300;
  transition: transform 0.3s;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1.4;
  width: 24px; text-align: center;
}
.faq-card.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.2rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.faq-card.open .faq-a {
  max-height: 400px;
  padding: 0 1.2rem 1.1rem;
}

/* ─── Blog / Page Cards ─── */
.page-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.page-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  contain: layout style;
  min-height: 180px;
}
.page-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}
.page-card .card-category {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.15s;
}
.page-card h4 {
  font-family: 'Be Vietnam Pro', 'Noto Sans SC', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  transition: color 0.15s;
}
.page-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
  transition: color 0.15s;
}
.page-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: auto;
  transition: gap 0.15s, color 0.15s;
}
.page-card:hover .card-link { gap: 0.5rem; }

/* ─── MCP 列表（表格行：分类 / 名称 / 描述 / 平台 / 详情）─── */
.mcp-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
}

.mcp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 116px minmax(0, 250px) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem 1rem;
  box-shadow: none;
  transform: translateZ(0);
  contain: layout style;
}
.mcp-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.mcp-card .mcp-tag {
  font-size: 0.66rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--accent);
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mcp-card .mcp-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mcp-card .mcp-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 平台标签组：原内联 margin-top:auto 是给纵向 flex 用的，网格布局下需归零 */
.mcp-card > div { margin-top: 0 !important; }
.mcp-card .mcp-link {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .mcp-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "tag tag" "name name" "desc desc" "pl link";
    gap: 0.3rem 0.8rem;
  }
  .mcp-card .mcp-tag { grid-area: tag; }
  .mcp-card .mcp-name { grid-area: name; white-space: normal; }
  .mcp-card .mcp-desc { grid-area: desc; white-space: normal; }
  .mcp-card > div { grid-area: pl; }
  .mcp-card .mcp-link { grid-area: link; }
}

/* ─── Skills 列表（表格行：分类 / 名称 / 描述 / 元信息）─── */
.skill-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 116px minmax(0, 250px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 1rem;
  box-shadow: none;
  content-visibility: auto;
  contain-intrinsic-size: auto 52px;
  contain: layout style;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.skill-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.skill-card .skill-tag {
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.skill-card .skill-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.skill-card .skill-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.skill-card .skill-meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  justify-self: end;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .skill-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "tag meta" "name name" "desc desc";
    gap: 0.25rem 0.8rem;
  }
  .skill-card .skill-tag { grid-area: tag; }
  .skill-card .skill-meta { grid-area: meta; }
  .skill-card .skill-name { grid-area: name; white-space: normal; }
  .skill-card .skill-desc { grid-area: desc; white-space: normal; }
}

/* Search & Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  align-items: center;
}
.search-wrap {
  flex: 1;
  min-width: 240px;
  max-width: 400px;
  margin: 0 auto;
}
.search-wrap input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.85rem;
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  outline: none;
  transition: all 0.25s;
  min-height: var(--touch-min);
}
.search-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.search-wrap input::placeholder { color: var(--text-muted); }

/* ─── 提示词优化器面板（2026-09-15 中性极简：去彩色胶囊/色块，统一细描边） ─── */
.optimizer-panel {
  background: var(--bg-card);
  border: none;
  border-radius: 14px;
  padding: 1.35rem 1.45rem 1.25rem;
  text-align: left;
  transition: box-shadow 0.25s;
}
.optimizer-panel:focus-within { box-shadow: 0 0 0 3px var(--accent-light); }
.optimizer-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  margin-bottom: 1.05rem;
}
.optimizer-badge {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}
.optimizer-sub { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
/* 未登录提示：提示词优化器需注册登录后使用（极简中性描边，单色） */
.optimizer-lock {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.optimizer-lock a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.optimizer-row {
  display: flex;
  gap: 0.5rem;
  max-width: none;
}
.optimizer-row textarea {
  flex: 1;
  min-height: 76px;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  line-height: 1.7;
  outline: none;
  resize: vertical;
  transition: border-color 0.25s;
}
.optimizer-row textarea:focus { border-color: var(--border-hover); }
.optimizer-row textarea::placeholder { color: var(--text-muted); }
.optimizer-btn {
  flex-shrink: 0;
  padding: 0.6rem 1.6rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.optimizer-btn:hover { background: var(--accent-hover); }
.optimizer-btn:disabled { opacity: 0.55; cursor: default; }
.optimizer-modes {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.85rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.optimizer-mode {
  padding: 0.3rem 0.9rem;
  border: none;
  border-radius: 6px;
  font-size: 0.74rem;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.optimizer-mode:hover { color: var(--text-dim); }
.optimizer-mode.active {
  background: var(--bg-warm);
  color: var(--text);
  font-weight: 600;
}
/* ─── 优化器：多变体卡片 + 自检评分 ─── */
.opt-variants {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  text-align: left;
}
.opt-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  transition: border-color 0.2s;
}
.opt-card:hover { border-color: var(--border-hover); }
.opt-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.65rem; }
.opt-card-style {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.opt-card-score { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; font-weight: 600; color: var(--text); }
.opt-card-name { font-family: 'Be Vietnam Pro', 'Noto Sans SC', sans-serif; font-size: 1.02rem; font-weight: 600; color: var(--text); margin: 0 0 0.4rem; }
.opt-card-desc { font-size: 0.8rem; color: var(--text-dim); line-height: 1.65; margin: 0 0 0.7rem; }
.opt-card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.75rem; }
.opt-tag { font-size: 0.68rem; padding: 0.12rem 0.5rem; border: 1px solid var(--border); border-radius: 4px; color: var(--text-muted); }
.opt-scores { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.75rem; }
.opt-score-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.68rem; color: var(--text-muted); }
.opt-score-row > span:first-child { width: 4rem; flex-shrink: 0; }
.opt-score-bar { flex: 1; height: 3px; background: var(--border); overflow: hidden; }
.opt-score-bar > i { display: block; height: 100%; background: var(--text-dim); }
.opt-score-num { width: 1.7rem; text-align: right; font-family: 'JetBrains Mono', monospace; color: var(--text-dim); }
.opt-sug { font-size: 0.7rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.7rem; }
.opt-sug-title { font-weight: 600; color: var(--text-dim); margin-bottom: 0.2rem; }
.opt-sug ul { margin: 0; padding-left: 1.05rem; }
.opt-sug li { margin-bottom: 0.4rem; }
.opt-sug-dim { font-weight: 600; color: var(--text-dim); margin-right: 0.35rem; }
.opt-sug-lv { display: inline-block; font-size: 0.58rem; line-height: 1.5; padding: 0 0.3rem; border: 1px solid var(--border); border-radius: 3px; color: var(--text-muted); vertical-align: 1px; }
.opt-sug-lv-high { color: var(--text); border-color: var(--text-muted); }
.opt-sug-fix { color: var(--text-dim); }
.opt-sug-fix::before { content: '→ '; }
/* ─── 提示词优化器 v3：诊断（原提示词的问题）+ 改动对照 ─── */
.optimizer-goal { margin-top: 0.7rem; }
.optimizer-goal input {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.25s;
}
.optimizer-goal input:focus { border-color: var(--border-hover); }
.optimizer-goal input::placeholder { color: var(--text-muted); }
.opt-diag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  text-align: left;
}
.opt-diag-head { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.opt-diag-title { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.opt-diag-sub { font-size: 0.72rem; color: var(--text-muted); }
.opt-diag ul { margin: 0; padding-left: 1.05rem; }
.opt-diag li { margin-bottom: 0.55rem; font-size: 0.78rem; line-height: 1.7; color: var(--text-dim); }
.opt-diag li:last-child { margin-bottom: 0; }
.opt-diag-type {
  display: inline-block; font-size: 0.62rem; line-height: 1.5; padding: 0 0.4rem;
  border: 1px solid var(--border); border-radius: 3px; color: var(--text-muted);
  margin-right: 0.4rem; vertical-align: 1px;
}
.opt-diag-issue { color: var(--text); }
.opt-diag-why { color: var(--text-muted); font-size: 0.74rem; }
.opt-diag-why::before { content: '↳ '; }
.opt-chg { font-size: 0.74rem; color: var(--text-muted); line-height: 1.65; }
.opt-chg-title { font-weight: 600; color: var(--text-dim); margin-bottom: 0.2rem; font-size: 0.7rem; }
.opt-chg ul { margin: 0; padding-left: 1.05rem; }
.opt-chg li { margin-bottom: 0.45rem; }
.opt-chg-section {
  display: inline-block; font-size: 0.62rem; line-height: 1.5; padding: 0 0.35rem;
  border: 1px solid var(--border); border-radius: 3px; color: var(--text-dim); margin-right: 0.35rem;
}
.opt-chg-diff { color: var(--text-dim); }
.opt-chg-before { color: var(--text-muted); text-decoration: line-through; opacity: 0.75; }
.opt-chg-arrow { margin: 0 0.3rem; }
.opt-chg-after { color: var(--text); }
.opt-chg-reason { color: var(--text-muted); }
.opt-chg-reason::before { content: '↳ '; }
/* 变体卡片内的精简版：只留结构段 + 改后 + 原因，避免卡片过高 */
.opt-chg-compact { font-size: 0.68rem; margin-bottom: 0.7rem; }
.opt-chg-compact li { margin-bottom: 0.25rem; }
.opt-chg-compact .opt-chg-before,
.opt-chg-compact .opt-chg-arrow { display: none; }
.opt-card-sp {
  background: var(--code-bg, #1e1e2e);
  color: var(--code-text, #cdd6f4);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  margin: 0 0 0.8rem;
  font-family: 'JetBrains Mono', 'Cascadia Code', monospace;
  font-size: 0.68rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 150px;
  overflow-y: auto;
}
.opt-card-actions { display: flex; gap: 0.5rem; margin-top: auto; }
.opt-btn-primary {
  flex: 1;
  padding: 0.45rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.opt-btn-primary:hover { background: var(--accent-hover); }
.opt-btn-ghost {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}
.opt-btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.opt-sc-head { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.55rem; }
.opt-sc-title { font-size: 0.78rem; font-weight: 600; color: var(--text-dim); }
.opt-sc-avg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
}
@media (max-width: 860px) {
  .opt-variants { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .optimizer-panel { padding: 1.15rem 1.05rem 1.05rem; }
  .optimizer-row { flex-direction: column; gap: 0.6rem; }
  .optimizer-btn { width: 100%; padding: 0.6rem 1rem; }
}

.filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  transition: all 0.25s;
  min-height: var(--touch-min);
  display: flex; align-items: center;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 500;
}

/* CTA Banner */
.cta-banner {
  position: relative;
  z-index: 1;
  margin: 3rem auto 5rem;
  max-width: 700px;
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.15s;
}
.cta-banner h2 {
  font-family: 'Be Vietnam Pro', 'Noto Sans SC', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  transition: color 0.15s;
}
.cta-banner p {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  transition: color 0.15s;
}
.cta-form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-form input {
  flex: 1;
  min-width: 180px;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  font-size: 16px;
  outline: none;
  transition: all 0.25s;
  min-height: var(--touch-min);
}
.cta-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.cta-form button {
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  transition: all 0.25s;
  min-height: var(--touch-min);
}
.cta-form button:hover { background: var(--accent-hover); }

/* Footer — equals.com 风格：浅色纯白底（同顶栏「我的中心」胶囊）+ 三列链接 + 巨幅字标 + 底部条 */
footer {
  position: relative;
  z-index: 1;
  border-top: none;
  background: #ffffff;
  padding: 4rem 1.5rem 1.4rem;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.76rem;
  transition: all 0.15s;
}
[data-theme="dark"] footer {
  background: #0e0f14;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.8rem;
}
.footer-col-title {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.1rem;
}
.footer-link {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.24rem 0;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }
.footer-note {
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0.9rem 0 0;
  max-width: 340px;
}
.footer-note-wide {
  max-width: 820px;
  margin: 0 auto 2.6rem;
  text-align: center;
}
.footer-wordmark {
  font-family: 'Fraunces', 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text);
  text-align: center;
  margin: 0 0 2.6rem;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom-links {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  min-height: var(--touch-min);
  display: flex; align-items: center;
}
.footer-bottom-links a:hover { color: var(--accent); }

/* 捐助入口是「动作」不是「跳转」，因此用 <button> 承担：
   搜索爬虫只解析 <a href>，用 JS 伪协议占位的 <a> 会被判定为不可爬链接。
   下面把按钮外观对齐同组的 <a>，并清掉浏览器默认的按钮底色/边框。 */
.footer-bottom-links .footer-link-btn {
  color: var(--text-dim);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s;
  min-height: var(--touch-min);
  display: flex; align-items: center;
}
.footer-bottom-links .footer-link-btn:hover { color: var(--accent); }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Tutorial / article shared components ─── */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding: 0.7rem 1.7rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: all var(--transition);
  animation: fadeInUp 0.7s ease 0.25s both;
}
.hero-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.adv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.adv-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.adv-card .adv-category {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.adv-card h4 {
  font-family: 'Be Vietnam Pro', 'Noto Sans SC', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.adv-card p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; }
.adv-card .adv-list {
  margin-top: 0.8rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.adv-card .adv-list li {
  font-size: 0.78rem;
  color: var(--text-dim);
  padding-left: 1rem;
  position: relative;
}
.adv-card .adv-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.5;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.layers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  position: relative;
}
.layer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
}
.layer-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.layer-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.layer-number {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: opacity 0.3s;
}
.layer-card:hover .layer-number { opacity: 0.4; }
.layer-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.layer-card p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; }
.layer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.8rem;
}
.layer-tags span {
  font-size: 0.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--accent);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  /* 手机上 nav-links 已隐藏，靠这个占位把汉堡顶到胶囊最右（桌面端它被隐藏） */
  .nav-spacer { display: block; flex: 1; }
  .nav-toggle { display: flex; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .code-showcase { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .layers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 3.5rem 1rem; }
  .advanced-grid, .knowledge-grid, .layers-grid { grid-template-columns: 1fr; }
  .hero { padding: 4.75rem 1rem 3rem; min-height: auto; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-sub { font-size: 0.95rem; }
  .how-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .page-card-grid { grid-template-columns: 1fr; }
  .skill-card-grid { grid-template-columns: 1fr; }
  .mcp-card-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { margin: 2.5rem 1rem 3.5rem; padding: 2rem 1.2rem; }
  .hero-stats { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .section-title { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .section-desc { font-size: 0.85rem; }
  footer { padding: 2.5rem 1rem 1.2rem; font-size: 0.72rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-note { max-width: none; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-wrap { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity 0.3s ease; }
  /* 原先只覆盖 .reveal，漏了 hero 用的 fadeInUp / pulse，
     开启「减少动态效果」的用户仍会看到位移动画 */
  .hero-badge, .hero-badge::before, .hero h1, .hero-sub,
  .hero-buttons, .hero-stats, .hero-cta, .hero-cta:hover {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}
/* ═══════════════ 称号徽章（前台用户中心 / 后台用户列表共用唯一一份） ═══════════════ */
.user-titles {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.user-title {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  white-space: nowrap;
  vertical-align: middle;
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.45;
  border-radius: 999px;
  padding: 0.16rem 0.62rem 0.16rem 0.5rem;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: transparent;
}

.user-title svg {
  width: 12px;
  height: 12px;
  display: block;
  flex: 0 0 auto;
}

/* 进阶称号「初创团队」：主色实底（浅色 = 暖黑底白字，深色 = 白底黑字） */
.user-title--tier2 {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}


/* ─── 官方 APP：顶栏按钮 + 悬浮信息卡 + 下载确认框 ─── */
.nav-app-wrap { position: relative; display: inline-flex; }
.nav-app-btn {
  width: auto;
  height: 38px;
  padding: 0 0.8rem;
  gap: 0.34rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nav-hairline-soft);
  border-radius: 999px;
  background: transparent;
  color: var(--nav-ink);
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color var(--nav-t), background var(--nav-t), border-color var(--nav-t);
}
.nav-app-btn:hover { color: var(--nav-ink); background: var(--nav-ink-hover); border-color: var(--nav-hairline-soft-hover); }
.nav-app-btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.nav-app-tip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: 236px;
  box-sizing: border-box;
  padding: 0.72rem 0.85rem 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md, 0 6px 20px rgba(24, 24, 24, 0.12));
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-app-wrap:hover .nav-app-tip,
.nav-app-wrap:focus-within .nav-app-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-app-tip b { color: var(--text); font-size: 0.8rem; font-weight: 600; }

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.55);
}
.app-modal.open { display: flex; }
.app-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  padding: 1.6rem 1.35rem 1.25rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.app-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--accent);
  color: var(--accent-ink);
}
.app-card h3 { margin: 0.5rem 0 0.35rem; font-size: 1.12rem; color: var(--text); }
.app-desc { margin: 0 0 0.9rem; font-size: 0.8rem; line-height: 1.7; color: var(--text-muted); }
.app-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.app-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.app-list li:last-child { border-bottom: 0; }
.app-list b { color: var(--text); font-weight: 600; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.74rem; }
.app-actions { display: flex; gap: 0.6rem; justify-content: center; }
.app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1.15rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.app-btn:hover { background: rgba(128, 128, 128, 0.12); }
.app-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.app-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.app-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.app-close:hover { color: var(--text); background: rgba(128, 128, 128, 0.14); }
@media (max-width: 640px) {
  .nav-app-tip { right: -60px; width: 214px; }
}
