/* ==========================================================================
   style.css — AI 产品导航站 全站样式
   --------------------------------------------------------------------------
   设计基调：信息架构派（克制、密度、清晰层级）
   - 单一主色 + 完整中性色阶；不使用装饰性渐变、不使用 emoji 图标
   - 间距统一落在 4px 网格上；圆角、阴影、动效时长三档收敛
   - 数字统一使用等宽字体与 tabular-nums，保证对齐
   目录：
     01 设计变量   02 基础重置   03 通用组件   04 页头       05 首页
     06 产品库     07 详情页     08 静态内容页 09 页脚       10 响应式
   ========================================================================== */

/* ---------------------------- 01 设计变量 ---------------------------- */
:root {
  /* 中性色阶（冷调灰，承载层级） */
  --n-0:   #ffffff;
  --n-25:  #fcfcfd;
  --n-50:  #f7f8fa;
  --n-100: #f1f3f7;
  --n-150: #eaedf3;
  --n-200: #e3e7ee;
  --n-250: #d9dee8;
  --n-300: #cbd2de;
  --n-400: #9aa3b3;
  --n-500: #6b7484;
  --n-600: #4d5566;
  --n-700: #343c4b;
  --n-800: #1e2634;
  --n-900: #0f1622;

  /* 语义映射 */
  --bg:          var(--n-50);
  --surface:     var(--n-0);
  --surface-2:   var(--n-25);
  --surface-3:   var(--n-100);
  --text:        var(--n-900);
  --text-2:      var(--n-600);
  --text-3:      var(--n-500);
  --text-4:      var(--n-400);
  --border:      var(--n-200);
  --border-2:    var(--n-150);
  --border-strong: var(--n-250);

  /* 品牌 */
  --brand:      #2b5cff;
  --brand-dark: #1a45e0;
  --brand-ink:  #10309e;
  --brand-50:   #eef2ff;
  --brand-100:  #e0e7ff;
  --brand-200:  #c8d5ff;

  /* 状态色（低饱和，保持克制） */
  --green:      #12704a;
  --green-bg:   #e8f6ef;
  --green-line: #c4e6d6;
  --amber:      #8a5a10;
  --amber-bg:   #fdf4e4;
  --amber-line: #f2ddb4;
  --red:        #b02318;
  --red-bg:     #fdeeed;
  --red-line:   #f7d2ce;

  /* 排版 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI Variable Text",
               "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
               "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono",
               Menlo, Consolas, "Liberation Mono", monospace;

  /* 尺寸 */
  --maxw: 1240px;
  --header-h: 64px;

  /* 圆角三档 */
  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 13px;
  --r-lg: 17px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* 阴影四级，逐级递进 */
  --sh-xs: 0 1px 2px rgba(15, 22, 34, 0.04);
  --sh-sm: 0 1px 3px rgba(15, 22, 34, 0.06), 0 1px 2px rgba(15, 22, 34, 0.04);
  --sh-md: 0 4px 10px -3px rgba(15, 22, 34, 0.08), 0 2px 4px -2px rgba(15, 22, 34, 0.05);
  --sh-lg: 0 14px 30px -8px rgba(15, 22, 34, 0.13), 0 4px 10px -5px rgba(15, 22, 34, 0.07);
  --sh-brand: 0 6px 16px -6px rgba(43, 92, 255, 0.44);

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.2s;
  --dur-slow: 0.34s;
}

/* ---------------------------- 02 基础重置 ---------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.72;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--text);
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

/* 数字统一等宽对齐 */
b, .num, .cat-count, .n, code, kbd { font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 5px;
}
::selection { background: var(--brand-200); }

.skip-link {
  position: absolute; left: 14px; top: -64px; z-index: 120;
  padding: 10px 18px;
  background: var(--brand); color: #fff;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-brand);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 14px; color: #fff; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------- 03 通用组件 ---------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 52px 0; }
.section--tight { padding: 34px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-title {
  font-size: 20px;
  display: flex;
  align-items: baseline;
  gap: 11px;
  letter-spacing: -0.018em;
}
.section-title .idx {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: var(--r-xs);
  background: var(--brand-50);
  transform: translateY(-1px);
}
.section-sub {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.6;
}
.section-more {
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  margin: -6px -12px;
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.section-more span { transition: transform var(--dur) var(--ease); }
.section-more:hover { color: var(--brand); background: var(--brand-50); }
.section-more:hover span { transform: translateX(3px); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 17px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 520;
  white-space: nowrap;
  box-shadow: var(--sh-xs);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:hover {
  border-color: var(--border-strong);
  background: var(--n-25);
  color: var(--text);
  box-shadow: var(--sh-sm);
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--sh-xs);
}
.btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn--lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: var(--r-md); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn--block { width: 100%; }

/* 标签 / 徽标 */
.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--r-xs);
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.65;
  white-space: nowrap;
}

.badge-price {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 560;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge-price--free { background: var(--green-bg); color: var(--green); border-color: var(--green-line); }
.badge-price--freemium { background: var(--brand-50); color: var(--brand-ink); border-color: var(--brand-100); }
.badge-price--paid { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-line); }

.badge-hot {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: var(--r-xs);
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-line);
  font-size: 11px;
  font-weight: 560;
  vertical-align: 1px;
}

/* 已选条件 chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--brand-200);
  border-radius: var(--r-pill);
  background: var(--brand-50);
  color: var(--brand-ink);
  font-size: 12.5px;
  font-weight: 520;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.chip:hover { background: var(--brand-100); border-color: var(--brand); color: var(--brand-ink); }
.chip .x {
  display: grid;
  place-items: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  color: var(--brand-ink);
  background: rgba(43, 92, 255, 0.1);
}
.chip .x:hover { background: rgba(43, 92, 255, 0.2); }
.chip--ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-2);
  padding: 0 12px;
}
.chip--ghost:hover { background: var(--n-100); border-color: var(--border-strong); color: var(--text); }

/* 面包屑 */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
}
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { color: var(--n-300); }

/* 空状态 */
.empty {
  padding: 68px 24px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.empty h3 { font-size: 16.5px; margin-bottom: 8px; }
.empty p { color: var(--text-3); font-size: 14px; margin-bottom: 20px; }

/* ---------------------------- 04 页头 ---------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-2);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 680;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-ink) 100%);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
  box-shadow: 0 2px 8px -2px rgba(43, 92, 255, 0.5);
}
.brand-name small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-4);
  letter-spacing: 0.09em;
  line-height: 1;
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 3px; }
.main-nav a {
  position: relative;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  color: var(--text-2);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.main-nav a:hover { background: var(--n-100); color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-50); font-weight: 560; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 13px;
  width: 206px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--n-100);
  color: var(--text-3);
  font-size: 13.5px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.header-search:hover {
  border-color: var(--border-strong);
  background: var(--surface);
  box-shadow: var(--sh-sm);
}
.header-search svg { flex-shrink: 0; }
.header-search kbd {
  margin-left: auto;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: var(--r-xs);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-4);
  line-height: 1.6;
}

.nav-toggle {
  display: none;
  width: 40px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 0;
  place-items: center;
  box-shadow: var(--sh-xs);
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--text);
  position: relative;
  transition: background var(--dur) var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px;
  background: var(--text);
  transition: transform var(--dur) var(--ease);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* ---------------------------- 05 首页 ---------------------------- */
.hero {
  position: relative;
  padding: 68px 0 46px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-2);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 62% at 84% -6%, rgba(43, 92, 255, 0.09) 0%, transparent 66%),
    radial-gradient(ellipse 44% 52% at 6% 8%, rgba(43, 92, 255, 0.05) 0%, transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-2) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 66% 84% at 80% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 66% 84% at 80% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 790px; }
.hero h1 {
  font-size: clamp(29px, 4.5vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.032em;
  font-weight: 680;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-2);
  max-width: 640px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin-top: 30px;
}
.hero-stat {
  padding-right: 30px;
  margin-right: 30px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}
.hero-stat span { font-size: 12.5px; color: var(--text-3); }

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 7px 7px 7px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  max-width: 640px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-50), var(--sh-lg);
}
.search-box svg { flex-shrink: 0; color: var(--text-3); }
.search-box input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
}
.search-box input::placeholder { color: var(--text-4); }

.hot-words {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-3);
}
.hot-words button {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 13px;
  color: var(--text-2);
  transition: all var(--dur) var(--ease);
}
.hot-words button:hover {
  border-color: var(--brand-200);
  color: var(--brand-ink);
  background: var(--brand-50);
  transform: translateY(-1px);
}

/* 分类卡片 */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 14px;
}
.cat-card {
  position: relative;
  padding: 19px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.cat-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
}
.cat-card-hit { position: absolute; inset: 0; z-index: 1; border-radius: var(--r-md); }
.cat-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat-dot {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--surface-3);
  background: color-mix(in srgb, var(--c) 12%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent);
  display: grid;
  place-items: center;
  transition: transform var(--dur) var(--ease);
}
.cat-card:hover .cat-dot { transform: scale(1.06); }
.cat-dot::after {
  content: "";
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--c);
}
.cat-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-4);
  letter-spacing: -0.01em;
}
.cat-card h3 { margin-top: 13px; font-size: 15px; letter-spacing: -0.015em; }
.cat-card p { margin-top: 4px; font-size: 12.5px; color: var(--text-3); line-height: 1.6; }

/* 产品卡片 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
}
.card-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--r-md);
}
.card-hit:focus-visible { outline-offset: -2px; }

.card-head { display: flex; align-items: flex-start; gap: 12px; }
.mark {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface-3);
  background: color-mix(in srgb, var(--c) 11%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 17%, transparent);
  color: var(--c);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.04em;
  user-select: none;
}
.card-title { min-width: 0; flex: 1; padding-top: 1px; }
.card-title h3 {
  font-size: 15.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  letter-spacing: -0.018em;
}
.card-title h3 > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.card-title .vendor {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.card-title .vendor .vendor-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* 价格徽标：作为厂商行的次级标记，压缩体量避免抢占标题宽度 */
.card-title .vendor .badge-price {
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 540;
}

.card-desc {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 46px;
}

.card-foot {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-desc + .card-foot { margin-top: 15px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; overflow: hidden; }
.card-tags .tag { font-size: 11.5px; padding: 1px 8px; }
.card-go {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12.5px;
  font-weight: 540;
  color: var(--brand);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.card-go i { font-style: normal; transition: transform var(--dur) var(--ease); }
.card:hover .card-go i { transform: translate(2px, -2px); }
.card-go:hover { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }

/* 合规声明条 */
.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 19px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.8;
  box-shadow: var(--sh-xs);
}
.notice-bar svg { flex-shrink: 0; margin-top: 3px; color: var(--brand); }
.notice-bar a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------- 06 产品库 ---------------------------- */
.page-head {
  padding: 38px 0 26px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-2);
}
.page-head h1 { font-size: clamp(23px, 3.1vw, 29px); letter-spacing: -0.026em; }
.page-head p { margin-top: 9px; font-size: 14px; color: var(--text-2); max-width: 740px; line-height: 1.75; }

.browse {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 30px 0 60px;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  scrollbar-width: thin;
}
.filters::-webkit-scrollbar { width: 8px; }
.filters::-webkit-scrollbar-thumb { background: var(--n-250); border-radius: 4px; }
.filters::-webkit-scrollbar-track { background: transparent; }

/* 折叠式筛选面板的开关：仅移动端显示 */
.filters-toggle { display: none; }

.filter-group + .filter-group { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-2); }
.filter-title {
  font-size: 11.5px;
  font-weight: 620;
  letter-spacing: 0.08em;
  color: var(--text-4);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--text-2);
  border: 0;
  background: transparent;
  text-align: left;
  width: 100%;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.filter-item:hover { background: var(--n-100); color: var(--text); }
.filter-item[aria-pressed="true"] {
  background: var(--brand-50);
  color: var(--brand-ink);
  font-weight: 560;
}
.filter-item[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 15px;
  margin-top: -7.5px;
  border-radius: 0 2px 2px 0;
  background: var(--brand);
}
.filter-item .cat-dot { width: 20px; height: 20px; border-radius: 6px; }
.filter-item .cat-dot::after { width: 6px; height: 6px; border-radius: 2px; }
.filter-item .n {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-4);
}
.filter-item[aria-pressed="true"] .n { color: var(--brand); }
.filter-reset { margin-top: 18px; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar-search {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-xs);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.toolbar-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-50);
}
.toolbar-search svg { color: var(--text-4); flex-shrink: 0; }
.toolbar-search input {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  font-family: inherit;
  font-size: 14px; color: var(--text); outline: none;
}
.toolbar-search input::placeholder { color: var(--text-4); }

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  height: 44px;
  padding: 0 38px 0 15px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--sh-xs);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.select-wrap select:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 15px; top: 50%;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--text-4);
  border-bottom: 1.5px solid var(--text-4);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  min-height: 30px;
  font-size: 13px;
  color: var(--text-3);
}
.result-bar b { color: var(--text); font-family: var(--font-mono); font-weight: 600; }
.result-chips { display: flex; gap: 7px; flex-wrap: wrap; }

.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 30px; }
.load-more-hint { font-size: 12.5px; color: var(--text-4); }

/* ---------------------------- 07 详情页 ---------------------------- */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 322px;
  gap: 30px;
  align-items: start;
  padding: 26px 0 60px;
}

.detail-main {
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.detail-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 26px;
  border-bottom: 1px solid var(--border-2);
  background:
    radial-gradient(ellipse 62% 130% at 92% -30%, color-mix(in srgb, var(--c, var(--brand)) 9%, transparent) 0%, transparent 70%),
    var(--surface);
}
.detail-head .mark { width: 58px; height: 58px; border-radius: 15px; font-size: 22px; }
.detail-head h1 {
  font-size: clamp(20px, 2.7vw, 27px);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  letter-spacing: -0.026em;
}
.detail-vendor { margin-top: 5px; font-size: 13.5px; color: var(--text-3); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
  align-self: center;
}

.detail-body { padding: 26px; }
.detail-body h2 {
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.016em;
}
.detail-body h2::before {
  content: "";
  width: 3px; height: 14px;
  border-radius: 2px;
  background: var(--brand);
}
.detail-body p { font-size: 14.5px; color: var(--text-2); line-height: 1.9; }
.detail-block + .detail-block { margin-top: 28px; }

.hl-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.hl-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
}
.hl-list li::before {
  content: "";
  flex-shrink: 0;
  width: 5px; height: 5px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.detail-disclaimer {
  margin: 0 26px 26px;
  padding: 15px 17px;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-3);
}
.detail-disclaimer a { color: var(--brand); }

.detail-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.aside-card {
  padding: 19px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
}
.aside-card h2 { font-size: 14px; margin-bottom: 15px; letter-spacing: -0.014em; }
.meta-table { display: flex; flex-direction: column; gap: 0; }
.meta-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border-2);
}
.meta-row:last-child { border-bottom: 0; padding-bottom: 0; }
.meta-row dt { flex-shrink: 0; width: 64px; color: var(--text-3); }
.meta-row dd { margin: 0; color: var(--text); word-break: break-all; }
.meta-row dd a { color: var(--brand); }

.rel-list { display: flex; flex-direction: column; gap: 2px; }
.rel-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px;
  margin: 0 -8px;
  border-radius: var(--r-sm);
  transition: background var(--dur) var(--ease);
}
.rel-item:hover { background: var(--n-100); color: inherit; }
.rel-item .mark { width: 32px; height: 32px; border-radius: 9px; font-size: 13px; }
.rel-item .rel-name { display: block; font-size: 13.5px; font-weight: 540; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.01em; }
.rel-item .rel-desc { display: block; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.loading, .not-found { padding: 90px 0; text-align: center; color: var(--text-4); }

/* ---------------------------- 08 静态内容页 ---------------------------- */
.doc-wrap { padding: 34px 0 68px; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 228px; gap: 44px; align-items: start; }

.doc {
  padding: 40px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  max-width: 840px;
}
.doc h1 { font-size: 27px; letter-spacing: -0.028em; margin-bottom: 10px; }
.doc-meta {
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-2);
  font-size: 13px;
  color: var(--text-3);
}
.doc h2 { font-size: 17.5px; margin: 36px 0 13px; padding-top: 4px; letter-spacing: -0.02em; }
.doc h3 { font-size: 15px; margin: 24px 0 9px; }
.doc p { font-size: 14.5px; color: var(--text-2); line-height: 1.92; }
.doc p + p { margin-top: 13px; }
.doc ul, .doc ol { margin: 13px 0; padding-left: 2px; }
.doc ul li, .doc ol li {
  position: relative;
  padding-left: 21px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.92;
}
.doc li + li { margin-top: 3px; }
.doc ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 13px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--n-300);
}
.doc ol { counter-reset: n; }
.doc ol li { counter-increment: n; }
.doc ol li::before {
  content: counter(n) ".";
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand);
}
.doc a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.doc strong { color: var(--text); font-weight: 620; }
.doc table {
  width: 100%;
  margin: 18px 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.doc th, .doc td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--border-2);
  border-right: 1px solid var(--border-2);
  text-align: left;
  vertical-align: top;
}
.doc th:last-child, .doc td:last-child { border-right: 0; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: var(--surface-2); font-weight: 620; color: var(--text); }

.doc-toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  font-size: 13.5px;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
}
.doc-toc h2 {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 11px;
  font-weight: 620;
}
.doc-toc a {
  display: block;
  padding: 6px 9px;
  margin: 0 -9px;
  border-radius: var(--r-xs);
  color: var(--text-2);
  font-size: 13.5px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.doc-toc a:hover { background: var(--n-100); color: var(--text); }

/* 关于我们：信息卡 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 20px 0 8px;
}
.info-card {
  padding: 16px 17px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
}
.info-card dt { font-size: 11.5px; color: var(--text-4); margin-bottom: 6px; letter-spacing: 0.02em; }
.info-card dd { margin: 0; font-size: 14px; color: var(--text); word-break: break-all; }

/* 404 */
.error-page { padding: 104px 0 128px; text-align: center; }
.error-page .code {
  font-family: var(--font-mono);
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--brand);
  line-height: 1;
}
.error-page h1 { margin-top: 16px; font-size: 22px; }
.error-page p { margin-top: 10px; color: var(--text-2); }
.error-page .actions { margin-top: 28px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------- 09 页脚 ---------------------------- */
.site-footer {
  margin-top: 24px;
  background: var(--surface);
  border-top: 1px solid var(--border-2);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.35fr;
  gap: 34px;
  padding: 48px 0 34px;
}
.footer-brand .brand { margin-bottom: 15px; }
.footer-desc { font-size: 13px; color: var(--text-3); line-height: 1.9; max-width: 350px; }
.footer-col h2 { font-size: 13px; font-weight: 620; color: var(--text); margin-bottom: 13px; }
.footer-col li { font-size: 13px; color: var(--text-3); line-height: 2.05; }
.footer-col a { color: var(--text-2); }
.footer-col a:hover { color: var(--brand); }

.footer-legal {
  padding: 22px 0 32px;
  border-top: 1px solid var(--border-2);
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 2.05;
}
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.legal-links a { color: var(--text-2); }
.legal-links a:hover { color: var(--brand); }
.record-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 9px; }
.record-links a {
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.record-links a:hover { color: var(--brand); }

.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 40;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-2);
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(9px);
  transition: all var(--dur-slow) var(--ease-out);
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { color: var(--brand); border-color: var(--brand-200); box-shadow: var(--sh-lg); }

/* ---------------------------- 10 响应式 ---------------------------- */
@media (max-width: 1120px) {
  .browse { grid-template-columns: 208px minmax(0, 1fr); gap: 22px; }
  .detail { grid-template-columns: minmax(0, 1fr) 288px; gap: 22px; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 880px) {
  .container { padding: 0 22px; }
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
  .header-search { width: 40px; padding: 0; justify-content: center; }
  .header-search span, .header-search kbd { display: none; }

  .site-header.is-open .main-nav {
    display: flex;
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 18px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-lg);
  }
  .site-header.is-open .main-nav a { padding: 12px 13px; }

  .browse { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  /* 移动端筛选面板：折叠为一行摘要，避免把产品列表推到首屏之外 */
  .filters { position: static; max-height: none; padding: 0; overflow: visible; }
  .filters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: none;
    border: 0;
    border-radius: var(--r-md);
    font: inherit;
    font-size: 13.5px;
    font-weight: 620;
    color: var(--text-1);
    text-align: left;
    cursor: pointer;
  }
  .filters-toggle span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .filters-toggle i {
    flex-shrink: 0;
    width: 8px; height: 8px;
    margin-top: -3px;
    border-right: 1.7px solid var(--text-3);
    border-bottom: 1.7px solid var(--text-3);
    transform: rotate(45deg);
    transition: transform var(--dur) var(--ease);
  }
  .filters.is-open .filters-toggle i { transform: rotate(-135deg); margin-top: 3px; }
  .filter-body { display: none; padding: 0 16px 16px; }
  .filters.is-open .filter-body { display: block; }
  .filters .filter-group:first-child {
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid var(--border-2);
  }
  .filter-reset { margin-top: 16px; }
  .filter-list { flex-direction: row; flex-wrap: wrap; }
  .filter-item {
    width: auto;
    border: 1px solid var(--border);
    padding: 6px 11px;
    font-size: 13px;
    border-radius: var(--r-pill);
  }
  .filter-item[aria-pressed="true"] { border-color: var(--brand-200); }
  .filter-item[aria-pressed="true"]::before { display: none; }
  .filter-item .n { margin-left: 5px; }
  .filter-item .cat-dot { display: none; }

  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { position: static; }
  .detail-head { padding: 22px; flex-wrap: wrap; }
  .detail-body { padding: 22px; }
  .detail-disclaimer { margin: 0 22px 22px; }
  .detail-actions { margin-left: 0; align-self: flex-start; width: 100%; }
  .detail-actions .btn { flex: 1; }

  .doc { padding: 28px 24px; }
  .hero { padding: 48px 0 36px; }
}

@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .container { padding: 0 18px; }
  .section { padding: 38px 0; }
  .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
  .cat-card { padding: 16px; }
  .hero-stats { gap: 0; flex-wrap: wrap; row-gap: 16px; }
  .hero-stat { padding-right: 20px; margin-right: 20px; }
  .hero-stat b { font-size: 22px; }
  .search-box { flex-wrap: wrap; padding: 12px; }
  .search-box .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 26px; }
  .toolbar-search { min-width: 100%; }
  .select-wrap { width: 100%; }
  .select-wrap select { width: 100%; }
  .doc { padding: 24px 19px; border-radius: var(--r-md); }
  .doc h1 { font-size: 22px; }
  .back-top { right: 16px; bottom: 16px; }
  .result-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
