/*
 * site-base.css —— 站外静态页(features / showcase)共用的基础样式 (2026-09-03)
 *
 * 为什么抽出来: features 三份手写 HTML 与 showcase 构建脚本各自内联了一套底色/顶栏/按钮/chip,
 * 两边各改各的就慢慢长歪了(蓝紫渐变底 vs 纯黑底、琥珀 vs 金色、1200 vs 1440 宽)。
 * 这里只放「全站同形制」的五样东西: token · 顶栏 · 按钮 · chip/eyebrow/小标 · 页脚。
 * 页面各自的版式(hero / 管线网格 / 定价卡 / 墙)仍留在各页 <style> 里。
 *
 * 使用: features 三份 HTML 与 scripts/build-showcase.mjs 的 HEAD 各 <link rel="stylesheet" href="/site-base.css">。
 * ⚠️ 新增/删除 public/ 下文件会动 PW-0 的文件数, 改完记得 npm run snapshot:global-build。
 */

:root {
  --bg: #0a0a0a;
  --card: #141416;
  --line: rgba(255, 255, 255, .08);
  --tx: #e7e7ea;
  --mut: #8b8b93;
  --gold: #E6C785;
}

html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* 滚动条与应用内 styles/globals.css 逐条一致 —— 全站同宽, 否则页面间跳转横向抖 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(128, 128, 128, .2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(128, 128, 128, .4); }
* { scrollbar-width: thin; scrollbar-color: rgba(128, 128, 128, .2) transparent; }

/* 内容宽度: 全站 1440 */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* ── 顶栏 ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 24px;
  background: rgba(10, 10, 10, .85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  display: flex; align-items: center; justify-content: space-between;
}
.nav a { text-decoration: none; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.5px; color: var(--tx); }
.nav-brand img { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-size: 14px; color: #999; transition: color .2s; font-weight: 600; }
.nav-links a:hover { color: #fff; }
a.nav-cta {
  padding: 8px 20px; border-radius: 100px; font-weight: 700; font-size: 13px;
  background: #fff; color: #000 !important;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
a.nav-cta:hover { transform: scale(1.05); background-color: #f5f5f5; box-shadow: 0 0 20px rgba(255, 255, 255, .3); }
a.nav-cta:active { transform: scale(.98); box-shadow: 0 0 10px rgba(255, 255, 255, .4); }
/* 顶栏是 fixed, 非全屏 hero 的页面用它让出高度 */
.navpad { height: 69px; }
@media (max-width: 768px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ── 按钮: 主 = 白色药丸(与顶栏登录钮同源), 次 = 描边药丸 ── */
.btn {
  display: inline-block;
  background: #fff; color: #000;
  font-weight: 700; font-size: 15px;
  padding: 14px 36px; border-radius: 100px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, .15);
  transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
}
.btn:hover { transform: scale(1.03); background-color: #f5f5f5; box-shadow: 0 0 20px rgba(255, 255, 255, .3); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: #ddd; font-weight: 600; border: 1px solid rgba(255, 255, 255, .2); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: none; }

/* ── 小件: 章节 eyebrow / chip / NEW 小标 ── */
.eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--mut); font-weight: 600; margin: 0 0 8px; }
.eyebrow b { color: var(--gold); font-weight: 600; }
.chip {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .35);
  padding: 5px 11px; border-radius: 99px; color: #cfcfd6; display: inline-block;
}
.chip.gold { color: var(--gold); border-color: rgba(230, 199, 133, .35); }
.tag-new {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  border-radius: 100px; font-size: 9px; font-weight: 700; letter-spacing: .08em; line-height: 1.5;
  vertical-align: middle; position: relative; top: -1px;
  color: var(--gold); background: rgba(230, 199, 133, .12); border: 1px solid rgba(230, 199, 133, .35);
}

/* ── 页脚 ── */
.site-footer { padding: 36px 0 56px; color: var(--mut); font-size: 12px; border-top: 1px solid var(--line); }
.site-footer p { margin: 0 0 10px; }
.site-footer a { color: var(--mut); text-decoration: none; margin-right: 16px; transition: color .2s; }
.site-footer a:hover { color: #fff; }
