/* =========================================================================
   Trademark Conflict Check — Editorial / Legal-register design system
   方向：暖纸色 + 墨黑衬线大标题 + 单一古铜金强调色 + 发丝分隔线（官方公报质感）
   字体全部用系统字体栈（Georgia 系衬线 + 系统无衬线），不依赖 Google Fonts CDN
   —— 该站在国内访问，外链字体 CDN 不可达会回退成默认，反而更糟。
   所有颜色写成 CSS 变量；组件内不硬编码色值。
   ========================================================================= */

:root {
  /* 表面与墨色（暖调，避免纯黑纯白） */
  --paper: #f4f1ea;
  --paper-2: #efeadd;
  --ink: #1c1a16;
  --ink-soft: #56514a;
  --muted: #8c8478;
  --line: #ddd6c8;
  --line-strong: #c9c0ad;

  /* 单一强调色：古铜金（官方登记册气质，谨慎使用） */
  --accent: #9a6b1f;
  --accent-ink: #7a5314;        /* 文字/链接用更深，保证对比度 */
  --accent-wash: #f3ead7;

  /* 语义状态色（与品牌古铜金区分，避免混淆） */
  --risk-high: #b23a2e;
  --risk-mod: #b0791a;
  --risk-low: #3f7d4e;
  --status-live: #3f7d4e;
  --status-dead: #8c8478;
  --status-unknown: #b0791a;

  /* 字阶（1.25 模数） */
  --fs-hero: clamp(2.4rem, 1.4rem + 3.2vw, 3.7rem);
  --fs-2: 1.6rem;
  --fs-3: 1.2rem;
  --fs-body: 1rem;
  --fs-small: 0.8125rem;

  /* 间距梯度 */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px; --s7: 96px;

  /* 圆角（编辑式偏好利落小圆角） */
  --r-sm: 3px; --r-md: 8px; --r-lg: 14px; --r-pill: 999px;

  /* 阴影（暖调、克制） */
  --sh-1: 0 1px 2px rgba(28,26,22,.06);
  --sh-2: 0 10px 30px rgba(28,26,22,.08);

  /* 字体栈（系统可用，国内安全） */
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* 动效 */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms; --dur-base: 340ms; --dur-slow: 640ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- 氛围层：极淡纸纹颗粒 + 顶部发丝规则线 ---------- */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

/* ---------- 入场动画（错峰 reveal） ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.reveal:nth-child(1) { transition-delay: 40ms; }
.reveal:nth-child(2) { transition-delay: 120ms; }
.reveal:nth-child(3) { transition-delay: 200ms; }
.reveal:nth-child(4) { transition-delay: 280ms; }

/* 小标签 / eyebrow */
.eyebrow {
  font-family: var(--sans); font-size: var(--fs-small); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink);
  margin: 0 0 var(--s3);
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 12px; }

/* ===================== Chrome: 顶部导航 ===================== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244,241,234,.86); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 5px; flex: none;
  background: var(--accent); position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 5px 5px auto auto; width: 6px; height: 6px;
  background: var(--paper); border-radius: 1px;
}
.brand-name { font-size: 15px; letter-spacing: -.01em; }
.site-nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 600;
  padding: 8px 12px; border-radius: 6px; position: relative; transition: color var(--dur-fast);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--accent-ink); }
.site-nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--accent);
}
.site-header .lang-toggle { margin-left: 4px; }
.lang-toggle {
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft);
  padding: 7px 14px; border-radius: var(--r-pill); cursor: pointer; font-size: 13px; font-weight: 600;
  font-family: var(--sans); transition: border-color var(--dur-fast), color var(--dur-fast);
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ===================== Hero（左对齐 · 非对称编辑式） ===================== */
.hero { max-width: 1120px; margin: 0 auto; padding: var(--s7) 28px var(--s5); }
.hero-inner { max-width: 760px; }
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: var(--fs-hero); line-height: 1.04; letter-spacing: -.02em;
  margin: 0 0 var(--s3); color: var(--ink);
}
.hero .sub { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 var(--s5); max-width: 56ch; }

/* 搜索仪器面板 */
.search-panel {
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: var(--paper-2); padding: var(--s4);
  box-shadow: var(--sh-1);
}
.search-row { display: flex; gap: 12px; flex-wrap: wrap; }
.search-row input[type="text"] {
  flex: 1 1 320px; min-width: 0;
  font-family: var(--serif); font-size: 1.2rem; color: var(--ink);
  padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper);
}
.search-row input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.search-btn {
  padding: 15px 30px; font-size: 1rem; font-weight: 700; font-family: var(--sans);
  color: var(--paper); background: var(--accent); border: none; border-radius: var(--r-md);
  cursor: pointer; transition: background var(--dur-fast); white-space: nowrap;
}
.search-btn:hover { background: var(--accent-ink); }
.search-btn:disabled { opacity: .5; cursor: default; }

.search-meta { display: flex; gap: var(--s4); flex-wrap: wrap; align-items: center; margin-top: var(--s3); }
.mode-toggle { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 3px; }
.mode-toggle button {
  border: none; background: transparent; color: var(--ink-soft);
  padding: 9px 18px; font-size: 14px; font-weight: 600; font-family: var(--sans);
  border-radius: 6px; cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast);
}
.mode-toggle button.active { background: var(--accent); color: var(--paper); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters label { color: var(--ink-soft); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.filters select, .filters input[type="text"] {
  padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 14px; background: var(--paper); color: var(--ink); font-family: var(--sans);
}
.filters input[type="text"] { width: 86px; }
.filters select:focus, .filters input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.refine-note { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* ===================== 结果区 ===================== */
.results { max-width: 820px; margin: var(--s5) auto 0; padding: 0 28px; }
.results-summary { color: var(--ink-soft); font-size: 14px; margin: 0 0 18px; }
.results-list { display: flex; flex-direction: column; gap: 14px; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-md); padding: 18px 22px; box-shadow: var(--sh-1);
  transition: box-shadow var(--dur-fast), border-color var(--dur-fast);
}
.card:hover { box-shadow: var(--sh-2); border-left-color: var(--accent-ink); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mark { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; word-break: break-word; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px 22px; margin-top: 14px; }
.meta { font-size: 13px; }
.meta .k { color: var(--muted); display: block; margin-bottom: 2px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.meta .v { color: var(--ink); font-weight: 600; font-family: var(--mono); font-size: 12.5px; }
.goods { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.goods .k { color: var(--muted); display: block; margin-bottom: 2px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.card-foot { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.official-link {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  color: var(--accent-ink); font-size: 13px; font-weight: 700;
  border-bottom: 1px solid transparent; transition: border-color var(--dur-fast);
}
.official-link:hover { border-color: var(--accent); }

/* 状态徽章 */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 700; white-space: nowrap; letter-spacing: .02em;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.risk-high { color: var(--risk-high); background: #f7ece9; }
.badge.risk-moderate { color: var(--risk-mod); background: #f7efdc; }
.badge.risk-lower { color: var(--risk-low); background: #e9f1ea; }
.badge.status-live { color: var(--status-live); background: #e9f1ea; }
.badge.status-dead { color: var(--status-dead); background: #eeeae2; }
.badge.status-unknown { color: var(--status-unknown); background: #f7efdc; }
.sim { font-size: 12px; color: var(--ink-soft); margin-left: 8px; font-family: var(--mono); }

/* 翻页 */
.pager { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 26px; }
.pager button {
  padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--sans); transition: border-color var(--dur-fast), color var(--dur-fast);
}
.pager button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager #pageInfo { color: var(--ink-soft); font-size: 13px; font-family: var(--mono); }

/* 状态页（loading / empty / error / unavailable） */
.state { max-width: 560px; margin: var(--s6) auto; padding: 0 28px; text-align: center; }
.state .icon { font-size: 38px; margin-bottom: 10px; }
.state h3 { font-family: var(--serif); margin: 0 0 8px; font-size: 1.4rem; }
.state p { color: var(--ink-soft); margin: 0; font-size: 14px; }
.spinner {
  width: 30px; height: 30px; border: 3px solid var(--accent-wash); border-top-color: var(--accent);
  border-radius: 50%; margin: 0 auto 14px; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== 信任信号（编辑式，非三张同款卡） ===================== */
.trust { max-width: 1120px; margin: var(--s7) auto 0; padding: 0 28px; }
.trust-head { max-width: 760px; margin-bottom: var(--s5); }
.trust-title { font-family: var(--serif); font-size: var(--fs-2); margin: 0; letter-spacing: -.01em; }

.trust-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.trust-item {
  display: grid; grid-template-columns: 72px 1fr; gap: var(--s4);
  padding: var(--s4) 0; border-bottom: 1px solid var(--line);
}
.trust-num { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--accent); line-height: 1; }
.trust-item h3 { font-family: var(--serif); font-size: var(--fs-3); margin: 0 0 6px; }
.trust-item p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; max-width: 64ch; }

/* 数据条（公报式，发丝竖线分隔，不装箱） */
.numbers { margin-top: var(--s6); }
.numbers .eyebrow { text-align: left; }
.numbers-row {
  display: flex; flex-wrap: wrap; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
}
.num { flex: 1 1 160px; padding: var(--s4) var(--s4); border-right: 1px solid var(--line); }
.num:last-child { border-right: none; }
.num-v { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.num-l { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }
.numbers-foot { text-align: center; font-size: 13px; color: var(--muted); margin: var(--s4) 0 0; }
.numbers-foot a { color: var(--accent-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; }
.numbers-foot a:hover { border-color: var(--accent); }

/* 首页 FAQ */
.home-faq { max-width: 760px; margin: var(--s6) auto 0; }
.home-faq h2 { font-family: var(--serif); font-size: var(--fs-2); margin: 0 0 var(--s4); }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: 2px 18px; margin-bottom: 10px; background: var(--paper); }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; font-family: var(--serif); font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "▸ "; color: var(--accent); }
.faq-item[open] summary::before { content: "▾ "; }
.faq-item p { margin: 0 0 16px; color: var(--ink-soft); }

/* ===================== Chrome: 页脚 ===================== */
.site-footer { border-top: 1px solid var(--line-strong); background: var(--paper-2); margin-top: var(--s7); }
.site-footer-inner {
  max-width: 1120px; margin: 0 auto; padding: var(--s6) 28px var(--s5);
  display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: var(--s4); align-items: start;
}
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin-bottom: 8px; }
.footer-tag { color: var(--ink-soft); font-size: 13px; margin: 0; line-height: 1.6; max-width: 38ch; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 13px; font-weight: 600; border-bottom: 1px solid transparent; width: fit-content; }
.footer-links a:hover { color: var(--accent-ink); border-color: var(--accent); }
.footer-legal .disc, .footer-legal .notaffil, .footer-legal .copyright { font-size: 12px; margin: 0 0 8px; }
.footer-legal .disc { color: var(--risk-mod); font-weight: 600; }
.footer-legal .notaffil { color: var(--muted); }
.footer-legal .copyright { color: var(--muted); }

/* ===================== 内容页（生成器产出，沿用同一套令牌） ===================== */
.content-main { max-width: 820px; margin: 0 auto; padding: var(--s6) 28px var(--s4); }
.content-page h1 { font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); line-height: 1.08; margin: 10px 0 14px; letter-spacing: -.02em; }
.content-page .lead { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 var(--s5); }
.content-section { margin: 0 0 var(--s5); border-top: 1px solid var(--line); padding-top: var(--s4); }
.content-section:first-of-type { border-top: none; padding-top: 0; }
.content-section h2 { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 12px; letter-spacing: -.01em; }
.content-section p { margin: 0 0 12px; color: var(--ink-soft); }
.content-list { margin: 0 0 12px; padding-left: 22px; color: var(--ink-soft); }
.content-list li { margin: 5px 0; }
.content-links { font-size: 14px; }
.content-links a { color: var(--accent-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; }
.content-links a:hover { border-color: var(--accent); }
.todo-note { background: var(--accent-wash); border: 1px solid #e6d4ad; color: var(--accent-ink); padding: 10px 14px; border-radius: var(--r-md); font-size: 13px; margin-top: 8px; }

/* ===================== 响应式 ===================== */
@media (max-width: 820px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .trust-item { grid-template-columns: 48px 1fr; gap: var(--s3); }
  .hero { padding-top: var(--s6); }
}
@media (max-width: 560px) {
  .site-header-inner { flex-wrap: wrap; gap: 10px; }
  .site-nav { width: 100%; order: 3; margin-left: 0; }
  .search-row { flex-direction: column; }
  .search-row input[type="text"], .search-btn { width: 100%; }
  .num { flex: 1 1 50%; border-right: none; border-bottom: 1px solid var(--line); }
}

/* ===================== 动效降级 ===================== */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .spinner { animation: none; }
  * { transition: none !important; }
}
