/* ============================================================
   统一页面主题（单一真源）—— Auto/geo/assets/geo.css
   构建时原样输出到 /seo/assets/geo.css，全站 8 万+ 静态页共用。
   设计口径与产品画册首页一致：米金 + 深墨 + 细描边，移动优先。
   规则：不引外部字体/图标；不覆盖站点业务类名以外的全局样式。
   ============================================================ */
:root{
  --brand:#8b6b3f;          /* 主品牌棕金 */
  --brand-ink:#6b5433;      /* 深棕（链接 hover / 正文强调） */
  --gold:#c9a96a;           /* 亮金（分隔线、强调） */
  --gold-soft:#f4ecdd;      /* 金色底 */
  --ink:#1f2430;            /* 正文 */
  --ink-2:#4b5263;          /* 次级正文 */
  --muted:#7a8190;          /* 弱化信息 */
  --line:#e9e2d6;           /* 描边 */
  --line-soft:#f2ece2;
  --bg:#fbfaf7;             /* 页面底色 */
  --card:#fff;
  --radius:14px;
  --radius-sm:10px;
  --shadow:0 1px 2px rgba(31,36,48,.04),0 10px 28px rgba(31,36,48,.06);
  --max:1080px;             /* 内容最大宽度 */
  --pad:20px;               /* 安全边距 */
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation-duration:.001ms!important;transition-duration:.001ms!important}}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font:16px/1.75 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans SC","Noto Sans Arabic","PingFang SC","Microsoft YaHei",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  overflow-wrap:break-word;word-break:break-word;
  padding-bottom:env(safe-area-inset-bottom,0px);
}
img,svg,video,canvas{max-width:100%;height:auto}
a{color:var(--brand);text-decoration:none;text-underline-offset:2px;transition:color .18s ease}
a:hover{color:var(--brand-ink);text-decoration:underline}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:4px}
[id]{scroll-margin-top:84px}
hr{border:0;border-top:1px solid var(--line);margin:26px 0}

/* ---------- 顶部站点栏（吸顶 + 毛玻璃，自带语言切换器插槽） ---------- */
header.site{
  position:sticky;top:0;z-index:120;
  display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;justify-content:space-between;
  max-width:none;margin:0;
  padding:11px max(var(--pad),calc((100vw - var(--max))/2 + var(--pad)));
  background:rgba(255,255,255,.88);
  -webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line);
}
header.site>div:first-child{min-width:0;font-size:13px;line-height:1.65;color:var(--muted)}
header.site>div:first-child>a:first-child{font-size:15px;font-weight:700;color:var(--brand-ink);letter-spacing:.01em}
header.site a{color:var(--brand-ink);font-weight:600}
header.site h1{font-size:17px;line-height:1.4;margin:0;font-weight:700;color:var(--ink)}
header.site>div:not(.lang-switcher-slot){font-size:12.5px;color:var(--muted);line-height:2}
/* 语言切换器插槽：桌面右对齐，移动端独占一行 */
header.site .lang-switcher-slot{display:flex;align-items:center;justify-content:flex-end;min-height:38px;margin-inline-start:auto}
header.site .lang-switcher-slot .lang-switcher{position:relative}

/* ---------- 面包屑 ---------- */
body>header:not(.site){max-width:var(--max);margin:0 auto;padding:0 var(--pad)}
nav.crumbs{font-size:12.5px;color:var(--muted);padding:14px 0 0;line-height:1.8}
nav.crumbs a{color:var(--muted);font-weight:500}
nav.crumbs a:hover{color:var(--brand-ink)}

/* ---------- 正文排版 ---------- */
main{max-width:var(--max);margin:0 auto;padding:6px var(--pad) 72px}
h1{font-size:clamp(24px,3.4vw,34px);line-height:1.28;letter-spacing:-.015em;margin:18px 0 12px;font-weight:800;color:var(--ink);text-wrap:balance}
h2{font-size:clamp(19px,2.2vw,23px);line-height:1.4;margin:38px 0 12px;padding-inline-start:12px;border-inline-start:4px solid var(--gold);font-weight:700;letter-spacing:-.01em}
h3{font-size:17px;line-height:1.5;margin:24px 0 8px;font-weight:700;color:var(--ink)}
h4{font-size:15px;margin:18px 0 6px;font-weight:700;color:var(--ink-2)}
p{margin:10px 0;color:var(--ink-2)}
h1+p,h2+p,h3+p{margin-top:8px}
strong,b{color:var(--ink);font-weight:700}
small{color:var(--muted)}
ul,ol{margin:10px 0 12px;padding-inline-start:1.3em}
li{margin:5px 0}
li::marker{color:var(--gold)}
blockquote{margin:16px 0;padding:12px 16px;background:var(--gold-soft);border-inline-start:3px solid var(--gold);border-radius:0 var(--radius-sm) var(--radius-sm) 0;color:var(--ink-2)}
code,kbd,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em;background:var(--line-soft);border-radius:5px;padding:1px 6px}
pre{overflow:auto;background:#22262f;color:#f2efe9;border-radius:var(--radius-sm);padding:14px 16px;font-size:13px;line-height:1.7}

/* ---------- 表格 ---------- */
table{border-collapse:separate;border-spacing:0;width:100%;margin:16px 0;font-size:14px;line-height:1.65;background:var(--card);border:1px solid var(--line);border-radius:var(--radius-sm);overflow:hidden}
th,td{border-bottom:1px solid var(--line-soft);padding:10px 12px;text-align:start;vertical-align:top}
th{background:var(--gold-soft);color:var(--brand-ink);font-weight:700;white-space:nowrap}
tr:last-child td{border-bottom:0}
tbody tr:hover td{background:#fdfbf7}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* ---------- 卡片网格（产品 / 分类 / 文章） ---------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:14px;margin:16px 0}
.card{
  display:flex;flex-direction:column;gap:8px;
  border:1px solid var(--line);border-radius:var(--radius);background:var(--card);
  padding:10px;text-align:center;color:inherit;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.card:hover{transform:translateY(-2px);border-color:#ddcfae;box-shadow:var(--shadow)}
.card img{width:100%;height:156px;object-fit:contain;background:#fff;border-radius:var(--radius-sm) var(--radius-sm) 4px 4px}
.card .n{font-size:13px;line-height:1.5;color:var(--ink);font-weight:600;word-break:break-word}
.card .s{font-size:11.5px;color:var(--muted);line-height:1.45}
.card .tag{margin-top:2px}

/* ---------- 标签 / 术语 ---------- */
.tag{display:inline-block;font-size:12px;line-height:1.6;background:var(--gold-soft);border:1px solid #e7d9bb;border-radius:999px;padding:1px 10px;margin:2px 6px 2px 0;color:var(--brand-ink);text-decoration:none}
a.tag:hover{background:#efe2c8;text-decoration:none}
.tags{display:flex;flex-wrap:wrap;gap:0;margin:10px 0}

/* ---------- 结论前置 / 直答区块 ---------- */
.answer{position:relative;background:var(--card);border:1px solid var(--line);border-inline-start:4px solid var(--gold);padding:14px 18px;margin:14px 0;border-radius:var(--radius-sm);box-shadow:0 1px 0 rgba(255,255,255,.6) inset}
.answer p:first-child{margin-top:0}
.answer p:last-child{margin-bottom:0}

/* ---------- FAQ ---------- */
.faq{margin:14px 0}
.faq details{background:var(--card);border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 16px;margin:10px 0;transition:box-shadow .2s ease,border-color .2s ease}
.faq details[open]{border-color:#e2d3b2;box-shadow:var(--shadow)}
.faq summary{cursor:pointer;font-weight:600;color:var(--ink);list-style:none;display:flex;gap:10px;align-items:flex-start;line-height:1.6}
.faq summary::-webkit-details-marker{display:none}
.faq summary::before{content:"+";flex:0 0 auto;width:20px;height:20px;margin-top:2px;border-radius:50%;background:var(--gold-soft);color:var(--brand-ink);font-weight:700;font-size:14px;line-height:20px;text-align:center}
.faq details[open] summary::before{content:"\2212"}
.faq p{color:var(--ink-2);margin:10px 0 0;padding-inline-start:30px}

/* ---------- CTA / 联系 ---------- */
.cta{margin:26px 0;padding:18px 20px;background:linear-gradient(180deg,#fffdf8,#faf4e7);border:1px solid #e9d8b4;border-radius:var(--radius);font-size:14.5px;color:var(--ink-2);line-height:1.9}
.cta strong{color:var(--brand-ink)}
.cta a{font-weight:600}

/* ---------- 同企业站点互链 ---------- */
.sites{margin:28px 0}
.sites h2{font-size:17px;margin-top:0}

/* ---------- 页脚 ---------- */
footer.site{
  max-width:none;margin:56px 0 0;padding:26px max(var(--pad),calc((100vw - var(--max))/2 + var(--pad))) calc(40px + env(safe-area-inset-bottom,0px));
  background:#fff;border-top:1px solid var(--line);
  font-size:12.5px;line-height:1.9;color:var(--muted);
}
footer.site p{margin:6px 0;color:var(--muted)}
footer.site a{color:var(--brand)}
footer.site br{line-height:2.4}

/* ---------- 超长链接/URL 防溢出 ---------- */
main a[href^="http"]{word-break:break-all}

/* ---------- 平板 / 手机 ---------- */
@media (max-width:900px){
  :root{--pad:16px}
  header.site{padding-top:9px;padding-bottom:9px;gap:8px 12px}
  header.site>div:first-child{flex:1 1 auto;font-size:12px}
  header.site>div:first-child>a:first-child{font-size:14px}
  header.site>div:nth-of-type(2):not(.lang-switcher-slot){display:none}   /* 语种文字链由切换器代替，避免挤压 */
  header.site .lang-switcher-slot{flex:0 0 auto;margin-inline-start:0}
  .grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
  .card img{height:132px}
  main{padding-bottom:56px}
  h2{margin-top:30px}
}
@media (max-width:560px){
  body{font-size:15.5px;line-height:1.72}
  h1{font-size:23px;margin-top:14px}
  h2{font-size:18.5px}
  h3{font-size:16px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .card{padding:8px}
  .card img{height:118px}
  .card .n{font-size:12px}
  table{font-size:13px}
  th,td{padding:8px 9px}
  .answer,.cta{padding:12px 14px}
  .faq details{padding:10px 12px}
  .faq p{padding-inline-start:0}
  footer.site{font-size:12px}
}
@media (max-width:360px){
  .grid{grid-template-columns:1fr}
}

/* ---------- RTL ---------- */
[dir="rtl"] body{text-align:start}
[dir="rtl"] h2{border-inline-start:4px solid var(--gold);border-inline-end:0}
[dir="rtl"] header.site,[dir="rtl"] footer.site{direction:rtl}
[dir="rtl"] .faq summary{flex-direction:row-reverse}
[dir="rtl"] .card .tag{margin-inline-end:0;margin-inline-start:6px}

/* ---------- 打印 ---------- */
@media print{
  header.site{position:static;background:#fff;border-bottom:1px solid #ccc}
  nav.crumbs,.lang-switcher-slot,.cta,footer.site{display:none!important}
  body{background:#fff;font-size:11pt;line-height:1.55}
  main{max-width:none;padding:0}
  .card,.faq details,.answer{box-shadow:none;break-inside:avoid}
  a{color:#000;text-decoration:underline}
  a[href^="http"]::after{content:" (" attr(href) ")";font-size:9pt;color:#555}
}
