/* ============================================================
   HanliangCMS — 前端设计系统（通用）
   换站只需改 :root 里的 --accent 系列即可全站统一品牌色。

   本次优化遵循《B 端企业官网前端铁律（约束文档 v1）》：
   · 铁律1  内容安全区 ≥1400px（原 1120px）
   · 铁律2  正文/卡片说明/页脚段落 ≥16px，行距 1.6–1.8
   · 铁律3  导航下滚隐藏、上滚立现（见 .header.is-hidden + app.js）
   · 铁律6  移动端汉堡菜单，首屏纵向平铺（无左右滑动）
   · 铁律8  实力数字滚动（IntersectionObserver，进视口才滚、仅一次）
   · 铁律9  模块柔和出场（reveal：下→上浮现，.js 作用域，无 JS 不隐藏）
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --border: #e6e8eb;
  --text: #1c2024;
  --text-soft: #5b6470;
  --text-dim: #8a93a0;

  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #eef3ff;
  --accent-contrast: #ffffff;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 6px 20px rgba(16,24,40,.06);
  --shadow-hover: 0 4px 10px rgba(16,24,40,.10), 0 14px 34px rgba(16,24,40,.10);

  /* 铁律1：内容安全区从 1120px 提升到 1400px，大气且不被两侧空白收窄 */
  --maxw: 1400px;
  --gap: 20px;

  --font: "Outfit", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  /* 铁律2：行距落入 1.6–1.8 的呼吸区间 */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* 内页留白：内容少时页脚仍沉底，主内容与页脚之间保持呼吸感 */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  /* 铁律3：隐藏/出现都带柔和阻尼，不是生硬跳变 */
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
/* 铁律3：向下滚动超过阈值后把导航收起，把全屏视野还给内容 */
.header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand .logo {
  display: inline-flex;
  flex: none;
}
.brand .logo svg { width: 20px; height: 20px; }
/* 铁律4：LOGO 始终保持原色（logo.png 本色输出，绝不变白/变色）；背景难处理处靠毛玻璃遮罩 */
.brand .logo img { height: 38px; width: auto; object-fit: contain; display: block; }
.nav { display: flex; gap: 6px; margin-left: 10px; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 9px; color: var(--text-soft); font-weight: 600; font-size: 15px; }
.nav a:hover { background: var(--bg-soft); color: var(--text); }
.nav a.active { color: var(--accent); background: var(--accent-soft); }
/* 导航内容响应式平均分布：桌面端は各項目を等幅・中央揃えに */
@media (min-width: 561px) {
  .nav { gap: 0; }
  .nav > a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-width: 0; }
  .nav > a.lang-switch { flex: 0 0 auto; margin-left: 10px; }
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--border); color: var(--text-soft); background: var(--surface);
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }
.lang-switch .ic { width: 16px; height: 16px; display: block; flex: none; }

/* 铁律6：移动端汉堡按钮（桌面隐藏，仅小屏出现；内联 SVG 为原生图标） */
.nav-toggle { display: none; }

/* ---------- Layout sections ---------- */
main { display: block; }
/* 内页（main.container）底部留白：内容哪怕只有一条，页脚前也保留较大呼吸区 */
main.container { padding-bottom: clamp(64px, 9vw, 120px); }
.section { padding: 40px 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: 0; }
.section-title {
  font-size: 22px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ""; width: 5px; height: 22px; border-radius: 4px; background: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 48px; text-align: center;
  background:
    radial-gradient(1200px 320px at 50% -40%, var(--accent-soft), transparent 70%);
}
.hero h1 { font-size: clamp(28px, 5vw, 44px); margin-bottom: 14px; }
.hero p { color: var(--text-soft); max-width: 680px; margin: 0 auto; font-size: 17px; }

/* ---------- Grids / Cards ---------- */
.cat-grid, .mfr-grid, .article-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(4, 1fr);
}
.card, .cat-card, .mfr-card, .article-card {
  display: block;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.cat-card, a.article-card { color: inherit; }
a.cat-card:hover, a.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }

/* 展示卡片：图标与文字统一居中，更符合 B 端"陈列"观感 */
.cat-card { text-align: center; }
.cat-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin: 0 auto 12px; }
.cat-icon svg { width: 24px; height: 24px; }
/* 铁律2：卡片说明提到 16px（原 13.5px），呼吸感立刻出来 */
.cat-name { font-weight: 700; font-size: 16px; }
.cat-desc { color: var(--text-soft); font-size: 16px; margin-top: 4px; }

/* 展示卡片：图标与文字统一居中，更符合 B 端"陈列"观感 */
.mfr-card { text-align: center; }
.mfr-logo {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--c, #3b82f6); color: #fff; font-weight: 800; font-size: 20px; margin: 0 auto 12px;
}
.mfr-name { font-weight: 700; font-size: 16px; }
/* 铁律2：合作商说明提到 16px（原 13.5px） */
.mfr-desc { color: var(--text-soft); font-size: 16px; margin-top: 4px; }

.article-card { display: flex; flex-direction: column; }
.article-title { font-size: 17px; margin-bottom: 8px; }
/* 铁律2：文章摘要提到 16px（原 14px） */
.article-excerpt { color: var(--text-soft); font-size: 16px; margin: 0 0 12px; flex: 1; }
/* 文章 byline 属辅助信息，保留小字号但不低于 13px */
.article-meta { color: var(--text-dim); font-size: 13px; }

/* ---------- Article page ---------- */
.article-main { padding: 36px 0 56px; }
.article { max-width: 760px; margin: 0 auto; }
.article-head { margin-bottom: 22px; }
.article-byline { color: var(--text-dim); font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.author-link { color: var(--text-dim); text-decoration: none; }
.author-link:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Author page ----------
   排版参考：圆形头像 + 大号粗体姓名 + 灰色副头衔 + 文字型社媒链接横排 + 下方细分隔线。
   结构为「左简介 / 右文章」两栏（左栏 sticky），头像与姓名同处上方作者卡。 */
.author-hero { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.author-hero .wrap { padding: 0 32px; }
.author-card { display: flex; align-items: center; gap: 28px; padding: 40px 0 32px; }
.author-avatar-wrap { flex: 0 0 auto; }
.author-avatar {
  width: 116px; height: 116px; border-radius: 50%; object-fit: cover; display: block;
  box-shadow: 0 0 0 4px var(--surface), 0 6px 20px rgba(0,0,0,.08);
}
.author-avatar-initials {
  width: 116px; height: 116px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 48px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 4px var(--surface), 0 6px 20px rgba(0,0,0,.08);
}
.author-id { min-width: 0; }
/* 姓名：全站最大的字重之一，作为视觉锚点 */
.author-name {
  font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; line-height: 1.15;
  letter-spacing: -.02em; margin: 0 0 6px; color: var(--text);
}
/* 副头衔：次级信息，弱化处理 */
.author-title { color: var(--text-soft); font-size: 17px; margin: 0 0 16px; }
/* 社媒：文字型链接（非图标），hover 变主色 */
.author-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.author-social a {
  color: var(--text-soft); font-size: 15px; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .18s, border-color .18s;
}
.author-social a:hover { color: var(--accent); border-bottom-color: currentColor; }

/* 两栏：左简介（sticky） / 右文章 */
.author-page { padding: 40px 0 72px; }
.author-body { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; align-items: start; }
.author-profile { position: sticky; top: 24px; }
.author-profile-title { font-size: 18px; font-weight: 700; margin: 0 0 14px; color: var(--text); }
.author-bio { margin: 0 0 22px; }
.author-bio p { font-size: 16px; line-height: 1.85; color: var(--text-soft); margin: 0; }
.author-facts {
  margin: 0; padding: 16px 0 0; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px;
}
.author-facts dt { color: var(--text-dim); margin: 0; }
.author-facts dd { color: var(--text); margin: 0; }
.author-articles { min-width: 0; }
.author-articles .section-title { margin-bottom: 18px; }
.author-articles .article-grid { margin-top: 0; }
@media (max-width: 900px) {
  .author-body { grid-template-columns: 1fr; gap: 32px; }
  .author-profile { position: static; }
}
@media (max-width: 560px) {
  .author-hero .wrap { padding: 0 24px; }
  .author-card { flex-direction: column; align-items: flex-start; text-align: left; gap: 20px; padding: 32px 0 26px; }
  .author-avatar, .author-avatar-initials { width: 92px; height: 92px; font-size: 38px; }
  .author-social { gap: 8px 18px; }
  .author-social a { font-size: 14.5px; }
}
.article-body { font-size: 16.5px; }
.article-body h2 { font-size: 24px; margin-top: 1.6em; }
.article-body h3 { font-size: 19px; margin-top: 1.4em; }
.article-body p { margin: 1em 0; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body blockquote {
  margin: 1.2em 0; padding: 10px 16px; border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 10px 10px 0; color: var(--text-soft);
}
.article-body pre, .article-body code {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 14px;
}
.article-body pre { padding: 14px; overflow: auto; }
.article-body :not(pre) > code { padding: 2px 6px; }
/* 文章正文表格：补全前台样式（后台预览已有 .md-preview .article-body table，前台此前缺失，
   导致 Markdown/HTML 表格渲染出来也无边框、看起来不像表格） */
.article-body table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.4em 0; }
.article-body th, .article-body td { border: 1px solid var(--border, #e3e3e8); padding: 9px 12px; text-align: left; vertical-align: top; }
.article-body th { background: var(--bg-soft, #f4f5f7); font-weight: 700; }
.article-body table caption { caption-side: bottom; font-size: 13px; color: var(--text-soft, #6b7280); margin-top: 6px; }

/* ---------- Pager / related / copper ---------- */
.pager { display: flex; justify-content: space-between; gap: 12px; max-width: 760px; margin: 28px auto 0; flex-wrap: wrap; }
.pager a {
  flex: 1; min-width: 200px; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-soft); font-weight: 600;
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.copper-box {
  display: inline-flex; align-items: baseline; gap: 12px;
  padding: 16px 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.copper-price { font-size: 30px; font-weight: 800; color: var(--accent); }
.copper-date { color: var(--text-dim); font-size: 14px; }

/* ---------- 文章内页：左右两栏（左=阅读，右=热门） ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
  padding: 28px 0 12px;
}
.article-col { min-width: 0; }                 /* 防止长代码/长单词撑破栅格列 */
/* 两栏下正文限宽左对齐，舒适阅读且不顶满整列 */
.article-col .article { max-width: 820px; margin: 0; }

/* 面包屑导航：首页 › 分类 › 当前标题 */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-dim); margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-dim); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* 右栏：粘性跟随，长文阅读时常驻可见（强化 B 端信息层级） */
.sidebar-col { position: sticky; top: 84px; }
.side-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.side-title {
  font-size: 16px; font-weight: 700; margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.side-title::before { content: ""; width: 4px; height: 16px; border-radius: 3px; background: var(--accent); }
.hot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hot-list li + li { border-top: 1px solid var(--border); }
.hot-list li a {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 6px; color: var(--text); font-size: 15px; line-height: 1.45;
}
.hot-list li a:hover { color: var(--accent); }
.hot-list .hot-rank {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent);
}
/* 前三名高亮，强化"热门"视觉层级 */
.hot-list li:nth-child(1) .hot-rank,
.hot-list li:nth-child(2) .hot-rank,
.hot-list li:nth-child(3) .hot-rank { background: var(--accent); color: #fff; }

/* 上一篇 / 下一篇：横跨两栏底部 */
.article-layout .pager { grid-column: 1 / -1; max-width: none; margin: 8px 0 0; }

/* ---------- 文章列表页：左三列卡片 + 右分类 ---------- */
.article-grid-3 { grid-template-columns: repeat(3, 1fr); }  /* 900/560 由下方 .article-grid 规则自动降为 2/1 列 */
.list-head { margin-bottom: 22px; }
.list-head h1, .list-head h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 6px; }
.list-sub { color: var(--text-soft); font-size: 15px; margin: 0; }
.empty-hint { color: var(--text-soft); font-size: 16px; padding: 28px 0; }

/* 分页（居中页码） */
.pager-list { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; max-width: none; margin: 28px 0 0; }
.pager-list .pg {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); color: var(--text-soft); font-size: 15px; font-weight: 600;
}
.pager-list .pg:hover { border-color: var(--accent); color: var(--accent); }
.pager-list .pg.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 右栏分类筛选 */
.cat-nav { list-style: none; margin: 0; padding: 0; }
.cat-nav li + li { border-top: 1px solid var(--border); }
.cat-nav a { display: block; padding: 10px 8px; border-radius: 9px; color: var(--text); font-size: 15px; }
.cat-nav a:hover { background: var(--bg-soft); color: var(--accent); }
.cat-nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* 首页「查看全部」链接 */
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head .section-title { margin-bottom: 0; }
.more-link { color: var(--accent); font-weight: 600; font-size: 15px; white-space: nowrap; }
.more-link:hover { text-decoration: underline; }

/* ---------- 实力数据带（铁律8：数字滚动） ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); text-align: center; }
.stat { padding: 6px 4px; }
.stat-num {
  display: block; font-size: clamp(32px, 4vw, 46px); font-weight: 800; color: var(--accent);
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.stat-label { display: block; color: var(--text-soft); font-size: 16px; margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: auto; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding: 36px 0 22px; }
.footer-col h4, .footer-col h5 { font-size: 15px; color: var(--text); margin-bottom: 12px; font-weight: 700; }
/* 铁律2：页脚段落提到 16px（原 14px） */
.footer-col p { color: var(--text-soft); font-size: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
/* 页脚链接属导航型辅助信息，提到 15px（原 14px，脱离 12/14px 禁用档） */
.footer-links a { color: var(--text-soft); font-size: 15px; }
.footer-links a:hover { color: var(--accent); }

/* ブランド列（順 SHUN / SILTEC） */
.foot-brand { min-width: 0; }
.foot-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--text); margin-bottom: 14px; }
.foot-logo .mark { display: inline-flex; }
.foot-logo .mark img { display: block; height: 32px; width: auto; object-fit: contain; }
.foot-brand > p { color: var(--text-soft); font-size: 14.5px; line-height: 1.7; margin: 0 0 16px; }
.foot-contact { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-soft); }
.foot-contact span { display: flex; gap: 8px; align-items: baseline; }
.foot-contact b { color: var(--text); font-weight: 600; min-width: 64px; flex: 0 0 auto; }
/* 版权行属 fine print，保留 13px 小字 */
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; color: var(--text-dim); font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-right { display: flex; align-items: center; gap: 18px; }
.footer-lang { color: var(--text-dim); white-space: nowrap; }
.footer-lang:hover { color: var(--accent); }
.footer-mini { color: var(--text-dim); white-space: nowrap; font-size: 13px; }
.footer-mini:hover { color: var(--accent); }
.prod-more { text-align: center; margin-top: 28px; }

/* ---------- Not found ---------- */
.notfound { text-align: center; padding: 80px 0; }
.notfound a { color: var(--accent); font-weight: 600; }

/* ---------- 柔和出场（铁律9，.js 作用域：无 JS 时内容正常可见，不隐藏） ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .header { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cat-grid, .mfr-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  /* 文章内页：折叠为单栏堆叠（主栏 → 热门 → 上一篇下一篇） */
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .sidebar-col { position: static; top: auto; }
  .article-col .article { max-width: none; }
}
@media (max-width: 560px) {
  /* 铁律6：小屏改用汉堡菜单（不再 display:none 丢失导航），首屏纵向平铺 */
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; margin-left: auto;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); color: var(--text); cursor: pointer;
  }
  .nav-toggle.active { border-color: var(--accent); color: var(--accent); }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav {
    position: fixed; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0; margin-left: 0;
    padding: 6px 14px 14px; background: var(--surface);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-12px); pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { font-size: 16px; padding: 13px 8px; }
  .nav a.active { background: transparent; color: var(--accent); }
  .header-actions { margin-left: 0; }
  .cat-grid, .mfr-grid, .article-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-right { width: 100%; justify-content: space-between; }
  .hero { padding: 48px 0 32px; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- 初回訪問 プライバシー同意バナー（下部通栏・非遮断） ---------- */
.btn svg { width: 18px; height: 18px; flex: none; }
.privacy-modal {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  display: none;
  background: rgba(17,20,28,.96); color: #fff;
  border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 -8px 30px rgba(0,0,0,.35);
  padding: 13px 16px;
}
.privacy-modal.show { display: block; }
.privacy-card {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  background: none; color: inherit; box-shadow: none; border-radius: 0; padding: 0;
  animation: pmIn .3s ease;
}
@keyframes pmIn { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
.privacy-card h3 {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.privacy-card p { margin: 0; flex: 1 1 auto; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.88); }
.privacy-card p a { color: #fff; font-weight: 700; text-decoration: underline; }
.privacy-actions { display: flex; gap: 10px; flex: none; align-items: center; }
.privacy-actions .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.privacy-actions .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.privacy-close {
  flex: none; background: none; border: 0; color: rgba(255,255,255,.7);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.privacy-close:hover { color: #fff; background: rgba(255,255,255,.12); }
@media (max-width: 720px) {
  .privacy-card { flex-direction: column; align-items: stretch; gap: 12px; }
  .privacy-actions { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .privacy-card { animation: none; } }

/* ============================================================
   全局铁律：所有「按键」与「卡片」内部内容必须居中
   - 解决工場の強み「企業紹介」按钮文字贴左的问题（.btn 是 inline-flex，
     text-align 不生效，必须用 justify-content:center）。
   - 作用于所有按钮与含 card 类名的展示卡片，与配色方案无关（关掉方案C也生效）。
   ============================================================ */
.btn { justify-content: center; text-align: center; }
[class*="card"],
.ind, .step, .adv .cell, .feat-info, .stats.dark .wrap > * {
  text-align: center;
}
/* 卡片内 flex 纵向容器：子项也水平居中，避免标题/文字/链接贴左 */
.prod-card .prod-bd, .case-card .case-bd, .pcard .bd, .ncard .bd,
.cat-card, .mfr-card, .article-card, .ind, .step, .feat-info {
  align-items: center;
}

/* 案例卡片说明（双语：日语页用 description，英语页用 description_en，由 _en 切换自动生效） */
.case-desc { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--text-dim, #6b6258); max-width: 100%; }
.case-card .case-bd { align-items: flex-start; text-align: left; }
.case-desc { text-align: left; }

/* ============================================================
   表单可达性（建站九阵 launch-audit B_SMALL_INPUT 修复）
   - 输入框字号 ≥16px：否则 iOS Safari 聚焦时自动放大，移动端转化硬伤。
   - 仅作用于公开询盘/订阅表单，不动后台管理界面的紧凑排版。
   ============================================================ */
.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
  font-size: 16px;
  line-height: 1.5;
}

/* ============================================================
   分類頁 hub 化（建站九阵 category-page-seo.md v1.8.2）
   - .category-intro：顶部 150 字三段式導語塊，位于产品 Grid 之前
   - .related-cats：底部関連分類互連（権重路由，≥3）
   ============================================================ */
.category-intro {
  margin: 0 0 30px;
  padding: 22px 26px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
}
.category-intro p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.85;
}
.related-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.related-cats .rc-lbl {
  font-weight: 700;
  color: var(--text-soft, #6b6253);
  margin-right: 4px;
}
.related-cats a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--accent);
  text-decoration: none;
  font-size: .92rem;
  transition: background .15s, color .15s, border-color .15s;
}
.related-cats a:hover {
  background: var(--accent);
  color: var(--accent-contrast, #fff);
  border-color: var(--accent);
}
