/* ==========================================================================
   法兰标准库 · 屏幕样式
   设计语言：工业图纸感 —— 深海军蓝 + 安全橙 + 纸白 + 细线框
   ========================================================================== */

:root {
  --ink: #0b1b2b;
  --ink-2: #1c2f43;
  --steel: #56697d;
  --muted: #7b8ea1;
  --line: #dbe3ec;
  --line-strong: #c2cfdd;
  --bg: #f1f4f8;
  --paper: #ffffff;
  --tint: #e8eef6;
  --accent: #d2460f;
  --accent-dark: #a8370a;
  --accent-soft: #fde9e0;
  --teal: #0d6b60;
  --ok: #0b7a53;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 43, 0.05);
  --shadow-md: 0 2px 6px rgba(11, 27, 43, 0.06), 0 18px 40px -28px rgba(11, 27, 43, 0.45);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-dark); }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
img, svg { max-width: 100%; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--tint); padding: 1px 6px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; color: #fff; }

.ta-right { text-align: right; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.strong { font-weight: 600; }
.sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; min-width: 0; }
.lang-switch {
  display: flex; justify-content: flex-end; gap: 6px; align-items: center;
  padding-bottom: 8px; font-size: 12px; color: var(--muted);
}
.lang-switch a { color: var(--steel); text-decoration: none; }
.lang-switch a:hover { color: var(--accent-dark); }
.lang-switch strong { font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .lang-switch { padding-bottom: 6px; } }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--accent); display: flex; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 18px; letter-spacing: 0.06em; }
.brand-copy span { font-size: 10px; letter-spacing: 0.18em; color: var(--muted); font-family: var(--mono); }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--steel); font-weight: 500; white-space: nowrap;
}
.site-nav a:hover { background: var(--tint); color: var(--ink); }
.site-nav .nav-admin { color: var(--accent-dark); }
.site-nav .nav-admin:hover { background: var(--accent-soft); }

.header-search {
  display: flex; align-items: center; flex: none;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--paper); overflow: hidden; height: 40px;
}
.header-search input {
  border: 0; outline: 0; width: 190px; padding: 0 6px 0 16px;
  font-family: var(--font); font-size: 13px; color: var(--ink); background: transparent;
}
.header-search button {
  border: 0; background: transparent; color: var(--steel); cursor: pointer;
  height: 100%; padding: 0 14px; display: flex; align-items: center;
}
.header-search button:hover { color: var(--accent); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 88px 0 64px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 10%, #000 20%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 70, 15, 0.55), transparent 65%);
  filter: blur(10px);
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.hero .eyebrow { color: #ff8a5c; }
.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1; letter-spacing: -0.02em; font-weight: 800;
}
.hero-sub {
  margin-top: 20px; max-width: 720px; color: #c3d2e0; font-size: 16px; line-height: 1.75;
}

.hero-search {
  margin-top: 32px; display: flex; gap: 0; max-width: 780px;
  background: var(--paper); border-radius: 12px; padding: 6px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
}
.hero-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--font); font-size: 16px; color: var(--ink); padding: 0 16px; min-width: 0;
}
.hero-search button {
  border: 0; border-radius: 8px; background: var(--accent); color: #fff;
  font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: 0.06em;
  padding: 14px 28px; cursor: pointer; transition: background 0.15s ease;
}
.hero-search button:hover { background: var(--accent-dark); }

.hero-chips { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero-chips-label { font-size: 12px; color: #8fa5ba; }
.chip {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px;
  border: 1px solid rgba(255, 255, 255, 0.22); color: #dce7f1;
  transition: all 0.15s ease;
}
.hero-chips .chip:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255,255,255,0.4); }
.chip-solid { background: var(--accent-soft); color: var(--accent-dark); border-color: transparent; font-weight: 600; }

/* ---------- 数据条 ---------- */
.stats-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-value { font-family: var(--mono); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.stat-label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- 区块 ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.section-tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-bottom: 32px;
}
.section-head h2 { font-size: 28px; }
.section-desc { max-width: 460px; color: var(--steel); font-size: 14px; }

/* ---------- 标准卡片 ---------- */
.standard-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px;
}
.standard-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 18px; box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.standard-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.standard-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.standard-short { font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
.tag {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 5px;
  font-size: 11px; font-family: var(--mono); color: var(--steel);
  background: var(--tint); border: 1px solid transparent; white-space: nowrap;
}
.tag-solid { background: var(--ink); color: #fff; }
.standard-card h3 { font-size: 17px; margin-bottom: 6px; }
.standard-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.standard-facts { border-top: 1px solid var(--line); }
.standard-facts li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px;
}
.standard-facts span { color: var(--muted); }
.standard-facts strong { font-weight: 600; text-align: right; }
.card-link { margin-top: auto; padding-top: 16px; color: var(--accent-dark); font-size: 13px; font-weight: 600; }

/* ---------- 快速表 ---------- */
.quick-table { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.quick-table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; padding: 12px 18px; background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.quick-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.quick-table tr:last-child td { border-bottom: 0; }
.quick-table tbody tr:hover { background: #f8fafc; }
.quick-std {
  display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--steel);
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 6px; margin-right: 8px;
}
.quick-name { font-weight: 600; }
.quick-name:hover { color: var(--accent-dark); }
.text-link { color: var(--accent-dark); font-weight: 600; font-size: 13px; }
.text-link:hover { text-decoration: underline; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 22px; box-shadow: var(--shadow-sm);
}
.step-no {
  font-family: var(--mono); font-size: 40px; font-weight: 700; color: var(--tint);
  line-height: 1; display: block; margin-bottom: 10px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--steel); font-size: 13.5px; }

/* ---------- 提示条 ---------- */
.notice-strip { background: var(--paper); border-top: 1px solid var(--line); padding: 26px 0; }
.notice-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.notice-inner div { color: var(--steel); font-size: 13px; max-width: 820px; }
.notice-inner strong { color: var(--ink); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 8px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font);
  transition: all 0.15s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: var(--paper); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- 页头 ---------- */
.breadcrumbs { background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 12.5px; color: var(--muted); }
.breadcrumbs .wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--steel); }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs span { color: var(--muted); }

.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 40px 0 34px; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 40px); }
.page-sub { margin-top: 10px; color: var(--steel); font-size: 14.5px; }
.page-head-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.page-head-side { flex: none; }
.badge-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.intro-copy { margin-top: 22px; max-width: 880px; display: grid; gap: 10px; color: var(--steel); font-size: 14.5px; }
.intro-copy p { line-height: 1.8; }

.fact-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; margin-top: 26px;
}
.fact { background: #f8fafc; padding: 14px 18px; display: flex; flex-direction: column; gap: 3px; }
.fact span { font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; }
.fact strong { font-size: 14px; font-weight: 600; }

/* ---------- 查询页 ---------- */
.page-search { display: flex; max-width: 720px; margin-top: 18px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); overflow: hidden; }
.page-search input { flex: 1; border: 0; outline: 0; padding: 13px 16px; font-family: var(--font); font-size: 15px; min-width: 0; }
.page-search button { border: 0; background: var(--ink); color: #fff; padding: 0 24px; font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer; }
.page-search button:hover { background: var(--accent); }
.parsed-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.parsed-label { font-size: 12px; color: var(--muted); }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.result-filters {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 14px; margin-bottom: 14px; display: grid; gap: 8px;
}
.result-filters .filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.result-filters .filter-label { min-width: 34px; }
.result-filters .filter-chip span { font-family: var(--mono); font-size: 10.5px; opacity: 0.65; }

.result-summary { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 13.5px; color: var(--steel); }
.result-summary strong { color: var(--ink); font-family: var(--mono); font-size: 16px; }

/* ---------- 数据表 ---------- */
.data-table-wrap {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: auto; box-shadow: var(--shadow-sm);
}
.data-table { min-width: 880px; }
.data-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--tint); color: var(--steel);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.data-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #f8fafc; }
.data-table .strong a { font-weight: 600; color: var(--ink); }
.data-table .strong a:hover { color: var(--accent-dark); }
.std-tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--steel);
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 6px;
}
.rating {
  display: inline-block; font-family: var(--mono); font-size: 11.5px;
  background: var(--accent-soft); color: var(--accent-dark);
  border-radius: 4px; padding: 1px 7px; font-weight: 600;
}

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; font-size: 13.5px; }
.pagination a { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--paper); font-weight: 600; }
.pagination a:hover { border-color: var(--ink); }
.pagination .is-disabled { padding: 7px 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; }
.page-info { color: var(--steel); }

.empty { color: var(--muted); padding: 24px; text-align: center; }
.empty-state { background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 48px 24px; text-align: center; }
.empty-state h2 { font-size: 22px; margin-bottom: 10px; }
.empty-state p { color: var(--steel); }
.empty-examples { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0; }
.empty-examples .chip { border-color: var(--line-strong); color: var(--steel); }
.empty-examples .chip:hover { background: var(--tint); color: var(--ink); }
.search-start { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.search-start-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.search-start-card h2 { font-size: 17px; margin-bottom: 14px; }
.plain-list { display: grid; gap: 8px; font-size: 13.5px; color: var(--steel); }
.plain-list a { color: var(--accent-dark); }

/* ---------- 标准页：类型与筛选 ---------- */
.type-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.type-tab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--paper); font-weight: 600; font-size: 14px; color: var(--steel);
}
.type-tab:hover { border-color: var(--ink); color: var(--ink); }
.type-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.type-count { font-family: var(--mono); font-size: 11px; opacity: 0.7; }
.type-note { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }

.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 16px;
}
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filter-label { font-size: 12px; color: var(--muted); margin-right: 4px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 6px; font-size: 12.5px;
  border: 1px solid var(--line); background: #f8fafc; color: var(--steel);
}
.filter-chip span { font-family: var(--mono); font-size: 10.5px; opacity: 0.65; }
.filter-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-size { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.filter-size label { font-size: 12px; color: var(--muted); }
.filter-size select {
  font-family: var(--font); font-size: 13px; padding: 7px 10px;
  border: 1px solid var(--line-strong); border-radius: 7px; background: var(--paper); color: var(--ink);
}
.filter-total { font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* ---------- 参考数据 ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.topic-card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm); transition: all 0.16s ease;
}
.topic-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.topic-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; }
.topic-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.topic-card p { font-size: 12.5px; color: var(--steel); }
.topic-card .card-link { padding-top: 14px; }

/* ---------- 规格详情 ---------- */
.spec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; }
.spec-head .badge-stack { margin-top: 14px; }
.spec-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; padding-top: 6px; }
.spec-main { padding: 28px 0 8px; }
.spec-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 20px; border-bottom: 1px solid var(--line);
}
.card-head h2 { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); }
.card-note { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.drawing-canvas {
  padding: 8px 12px 0; background:
    linear-gradient(rgba(11, 27, 43, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 27, 43, 0.028) 1px, transparent 1px);
  background-size: 24px 24px;
}
.drawing-canvas svg { display: block; width: 100%; height: auto; }
.drawing-empty { padding: 80px 20px; text-align: center; color: var(--muted); }
.drawing-foot { padding: 12px 20px 16px; font-size: 11.5px; color: var(--muted); border-top: 1px dashed var(--line); }

.dim-table th, .dim-table td { padding: 9px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; text-align: left; }
.dim-table th { font-weight: 500; color: var(--steel); white-space: nowrap; }
.dim-table tr:last-child th, .dim-table tr:last-child td { border-bottom: 0; }
.sym { display: inline-block; min-width: 30px; font-family: var(--mono); font-weight: 700; color: var(--accent-dark); }
.dim-value { text-align: right; font-family: var(--mono); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dim-value .unit { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 5px; }
.spec-data-foot { display: flex; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); font-family: var(--mono); }

.spec-lower { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr); gap: 20px; align-items: start; }
.group-switch { display: flex; align-items: center; gap: 8px; }
.group-switch label { font-size: 12px; color: var(--muted); }
.group-switch select {
  font-family: var(--font); font-size: 13px; padding: 7px 10px;
  border: 1px solid var(--line-strong); border-radius: 7px;
  background: var(--paper); color: var(--ink);
}
.pt-grid-detail {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  padding: 16px 20px 4px;
}
.pt-cell-detail {
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; background: #fafbfd;
}
.pt-cell-detail b { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 500; }
.pt-cell-detail em { font-family: var(--mono); font-size: 14px; font-style: normal; font-weight: 700; }
.pt-table-wrap { padding: 6px 20px 0; }
.pt-table th { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pt-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-family: var(--mono); }
.pt-temp { color: var(--steel); }
.pt-value { font-weight: 600; }
.source-line { padding: 10px 20px 0; font-size: 11.5px; color: var(--muted); }
.empty-inline { color: var(--muted); padding: 20px; }
.meta-list { padding: 8px 20px 4px; }
.meta-list > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.meta-list dt { color: var(--muted); }
.meta-list dd { color: var(--ink); }
.mini-tag { display: inline-block; font-size: 11px; background: var(--tint); color: var(--steel); border-radius: 4px; padding: 2px 7px; margin: 2px 4px 2px 0; }
.card .hint { padding: 0 20px 14px; }

.related-block { margin-bottom: 22px; }
.related-block h3 { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.related-chip {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: var(--paper); font-size: 13.5px; font-weight: 600; color: var(--ink);
  min-width: 96px;
}
.related-chip span { font-size: 10.5px; color: var(--muted); font-weight: 400; font-family: var(--mono); }
.related-chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.related-current { font-size: 12.5px; color: var(--muted); padding: 0 6px; }

.note-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.note-card { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 20px 22px; }
.note-card h3 { font-size: 14px; margin-bottom: 8px; }
.note-card p { font-size: 13px; color: var(--steel); }

/* ---------- 参考主题页 ---------- */
.topic-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.reference-body { max-width: 1000px; }
.source-note { margin: 0 0 18px; padding: 12px 16px; background: var(--tint); border-radius: var(--radius-sm); color: var(--steel); font-size: 12.5px; }
.ref-section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.ref-section:last-child { border-bottom: 0; }
.ref-section h2 { font-size: 20px; margin-bottom: 12px; }
.ref-section > p { color: var(--steel); font-size: 14px; margin-bottom: 10px; line-height: 1.8; }
.ref-bullets { display: grid; gap: 6px; margin: 10px 0 4px; }
.ref-bullets li { position: relative; padding-left: 16px; color: var(--steel); font-size: 14px; }
.ref-bullets li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.ref-table-figure { margin: 18px 0 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.ref-table-figure figcaption { padding: 12px 16px; font-size: 12.5px; font-weight: 600; color: var(--steel); border-bottom: 1px solid var(--line); background: #f8fafc; }
.ref-table-wrap { overflow-x: auto; }
.ref-table { min-width: 520px; }
.ref-table th, .ref-table td { padding: 8px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid #eef2f7; font-size: 12.5px; text-align: left; white-space: nowrap; }
.ref-table th { background: #f8fafc; color: var(--steel); font-weight: 600; font-size: 11.5px; }
.ref-table td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ref-table .unit { display: block; font-size: 9.5px; color: var(--muted); font-weight: 400; }
.ref-note { padding: 10px 16px; font-size: 11.5px; color: var(--muted); border-top: 1px dashed var(--line); }
.ref-footnotes { padding: 8px 16px 12px; display: grid; gap: 4px; font-size: 11.5px; color: var(--steel); }
.ref-footnotes .marker { display: inline-block; min-width: 16px; font-family: var(--mono); color: var(--accent-dark); }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.faq-item dt { font-weight: 600; margin-bottom: 6px; }
.faq-item dd { color: var(--steel); font-size: 13.5px; }
.ref-sources .plain-list { font-family: var(--mono); font-size: 12px; }

/* ---------- 对照页 ---------- */
.batch-form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; align-items: end;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.batch-form .field { display: flex; flex-direction: column; gap: 5px; }
.batch-form label { font-size: 11.5px; color: var(--muted); }
.batch-form select, .batch-form input {
  font-family: var(--font); font-size: 14px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--paper); color: var(--ink); width: 100%;
}
.batch-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.batch-actions .btn { flex: 1 1 auto; justify-content: center; }

.compare-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-top: 22px; }
.compare-form .field { display: flex; flex-direction: column; gap: 5px; }
.compare-form label { font-size: 11.5px; color: var(--muted); }
.compare-form select {
  font-family: var(--font); font-size: 14px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink);
  min-width: 140px;
}
.callout {
  margin-top: 20px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: #fff7ed; border: 1px solid #f3d3b8; color: #7c3a12; font-size: 13.5px; line-height: 1.75;
}
.callout strong { color: #6b2f0c; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: #b9c8d6; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 48px; padding: 52px 24px 34px; }
.footer-brand strong { color: #fff; font-size: 18px; letter-spacing: 0.06em; }
.footer-brand p { margin-top: 8px; font-size: 13px; }
.footer-meta { font-family: var(--mono); font-size: 11.5px !important; color: #8498ab; }
.footer-link-row { margin-top: 10px; font-size: 12.5px; }
.footer-link-row a { color: #c9d6e2; text-decoration: underline; text-underline-offset: 2px; }
.footer-link-row a:hover { color: #fff; }
.footer-col h2 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #8498ab; margin-bottom: 12px; }
.footer-col ul { display: grid; gap: 8px; font-size: 13px; }
.footer-col a { color: #c9d6e2; }
.footer-col a:hover { color: #fff; }
.footer-note { font-size: 12px; color: #8498ab; line-height: 1.7; margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; padding: 18px 24px 26px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 11.5px; color: #6f8498; font-family: var(--mono); }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .spec-grid, .spec-lower { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .header-search { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  body { overflow-x: hidden; }
  /* 手机上去掉毛玻璃和首屏大面积渐变，减少绘制开销 */
  .site-header { backdrop-filter: none; background: #fff; }
  .hero::before, .hero::after { display: none; }
  .header-inner { flex-wrap: wrap; height: auto; gap: 8px; padding: 10px 0 0; }
  .brand { margin-right: auto; }
  .site-nav {
    order: 3; width: 100%; margin: 2px 0 0; padding: 5px 0 6px;
    border-top: 1px solid var(--line); overflow: visible;
  }
  .site-nav a { flex: 1 1 auto; text-align: center; padding: 7px 4px; font-size: 12.5px; white-space: nowrap; }
  .site-nav a:nth-child(3) { display: inline-flex; }
  .site-nav .nav-admin { display: none; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy span { font-size: 9px; letter-spacing: 0.12em; }

  /* 表格：隐藏次要列，避免手机上左右拖表格 */
  .hide-mobile { display: none !important; }
  .data-table { min-width: 0; }
  .data-table thead th { padding: 9px 8px; font-size: 10px; letter-spacing: 0.04em; }
  .data-table tbody td { padding: 10px 8px; font-size: 12.5px; }
  .data-table .std-tag { font-size: 10px; }

  .group-switch { display: flex; align-items: center; gap: 8px; }
.group-switch label { font-size: 12px; color: var(--muted); }
.group-switch select {
  font-family: var(--font); font-size: 13px; padding: 7px 10px;
  border: 1px solid var(--line-strong); border-radius: 7px;
  background: var(--paper); color: var(--ink);
}
.pt-grid-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 16px 4px; }
  .hero { padding: 56px 0 44px; }
  .hero-search { flex-direction: column; gap: 8px; background: transparent; box-shadow: none; padding: 0; }
  .hero-search input { background: var(--paper); border-radius: 8px; padding: 14px 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: 0; }
  .section { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-head h2 { font-size: 24px; }
  .steps, .search-start, .note-grid { grid-template-columns: 1fr; }
  .page-head-main, .spec-head { flex-direction: column; }
  .spec-actions { width: 100%; }
  .spec-actions .btn { flex: 1; }
  .filter-size { margin-left: 0; width: 100%; }
  .notice-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; padding-top: 36px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
