/* 燊林智能官网 · 全站页头与页脚（v2）
   新页面和过渡期的旧页面共用。类名一律 gh-（页头）/ gm-（手机菜单）/ gf-（页脚）开头，
   变量也只在这三个作用域内定义，不碰 :root —— 旧页面还挂着旧样式，不能互相覆盖。
   视觉取自原型 A 方向的页头：左品牌、中导航、右「产品体验」。 */

.gh, .gm, .gf {
  --s-paper: #faf8f3;
  --s-ink: #173a3d;
  --s-muted: #56696a;
  --s-line: #d9ded7;
  --s-orange: #f0521d;
  --s-orange-ink: #c23d0e;
  --s-action: #cf3f10;
  --s-action-hover: #b8360c;
  --s-pine: #12636a;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--s-ink);
  -webkit-font-smoothing: antialiased;
}
.gh a, .gm a, .gf a { color: inherit; text-decoration: none; }
.gh :focus-visible, .gm :focus-visible, .gf :focus-visible {
  outline: 2px solid var(--s-pine); outline-offset: 4px; border-radius: 3px;
}

/* ── 页头 ──────────────────────────────────────────────── */
.gh {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 248, 243, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(23, 58, 61, .08);
}
.gh-in {
  width: min(1360px, calc(100% - 64px)); height: 82px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(150px, 1fr);
  align-items: center; column-gap: 24px;
}

/* 使用完整平面矢量锁版，保持原生比例，不用网页字体重建字标。 */
.gh-brand { display: inline-flex; align-items: center; justify-self: start; flex-shrink: 0; }
.gh-brand img { width: 200px; height: auto; display: block; }

.gh-nav { display: flex; align-items: center; gap: clamp(16px, 1.5vw, 26px); white-space: nowrap; justify-self: center; }
.gh-nav > a, .gh-item > a {
  font-size: 14px; min-height: 44px; display: flex; align-items: center; position: relative;
}
.gh-nav a:hover { color: var(--s-orange-ink); }
.gh-nav [aria-current="page"] { color: var(--s-orange-ink); }
.gh-nav [aria-current="page"]::after {
  content: ""; position: absolute; bottom: 3px; left: calc(50% - 2px);
  width: 4px; height: 4px; border-radius: 50%; background: var(--s-orange);
}

/* 产品体系下拉：悬停、键盘聚焦、点按都能打开 */
.gh-item { position: relative; display: flex; align-items: center; }
.gh-caret {
  width: 22px; height: 44px; margin-left: 1px; padding: 0; border: 0; background: none;
  cursor: pointer; color: var(--s-muted); display: grid; place-items: center;
}
.gh-caret svg { width: 10px; height: 10px; transition: transform .2s; }
.gh-item[data-open] .gh-caret svg { transform: rotate(180deg); }
.gh-menu {
  display: none; position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%);
  min-width: 300px; padding: 10px;
  background: rgba(255, 254, 250, .98); border: 1px solid rgba(23, 58, 61, .1); border-radius: 14px;
  box-shadow: 0 22px 48px -22px rgba(23, 58, 61, .35);
}
.gh-item[data-open] .gh-menu,
html:not(.has-site-js) .gh-item:hover .gh-menu,
html:not(.has-site-js) .gh-item:focus-within .gh-menu { display: grid; }
.gh-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.gh-menu a {
  display: grid; grid-template-columns: 22px 1fr; gap: 2px 10px; align-items: baseline;
  padding: 11px 12px; border-radius: 9px; font-size: 14px; white-space: normal;
}
.gh-menu a:hover { background: #fbefe7; color: var(--s-ink); }
.gh-menu i { font-style: normal; font-family: Arial, sans-serif; font-size: 11px; color: var(--s-muted); }
.gh-menu small { grid-column: 2; font-size: 11.5px; color: var(--s-muted); }
.gh-menu .gh-all { grid-template-columns: 1fr; margin-top: 4px; border-top: 1px solid var(--s-line); border-radius: 0 0 9px 9px; color: var(--s-orange-ink); font-weight: 600; }

/* 唯一行动入口：产品体验 */
.gh-cta {
  justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-width: 128px; min-height: 44px; padding: 0 18px;
  background: var(--s-action); color: #fff !important; border-radius: 8px;
  font-size: 13.5px; font-weight: 650; transition: background .2s; white-space: nowrap;
}
.gh-cta:hover { background: var(--s-action-hover); }
.gh-cta span { font-size: 17px; line-height: 1; }

.gh-toggle {
  display: none; width: 44px; height: 44px; flex-shrink: 0; border: 0; background: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.gh-toggle span { display: block; width: 21px; height: 1.5px; background: var(--s-ink); transition: transform .2s; }
.gh-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.gh-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ── 手机菜单 ──────────────────────────────────────────── */
.gm {
  display: none; position: fixed; inset: 82px 0 0 0; z-index: 39; overflow: auto;
  background: var(--s-paper); padding: 8px 28px 32px; border-top: 1px solid var(--s-line);
}
.gm[data-open] { display: block; }
.gm > a, .gm summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; border-bottom: 1px solid var(--s-line); font-size: 16px; cursor: pointer; list-style: none;
}
.gm summary::-webkit-details-marker { display: none; }
.gm summary::after { content: "+"; font-size: 20px; color: var(--s-muted); }
.gm details[open] summary::after { content: "−"; }
.gm details a { display: block; padding: 12px 0 12px 16px; font-size: 14.5px; color: var(--s-muted); border-bottom: 1px dashed var(--s-line); }
.gm [aria-current="page"] { color: var(--s-orange-ink); }
.gm .gh-cta { margin-top: 26px; width: 100%; min-height: 50px; }

@media (max-width: 1260px) {
  .gh-in { display: flex; gap: 14px; }
  .gh-brand { margin-right: auto; }
  .gh-nav { display: none; }
  .gh-toggle { display: flex; }
}
@media (max-width: 500px) {
  .gh-in { width: calc(100% - 32px); height: 70px; }
  .gm { inset: 70px 0 0 0; padding-inline: 22px; }
  .gh-brand img { width: clamp(120px, 40vw, 156px); height: auto; }
  .gh-cta { min-width: 0; padding: 0 14px; gap: 10px; font-size: 12.5px; }
}

@media (max-width: 360px) {
  .gh-in { gap: 8px; }
  .gh-brand img { width: 120px; }
  .gh-cta { padding-inline: 10px; gap: 6px; }
}

/* ── 页脚 ──────────────────────────────────────────────── */
.gf { background: var(--s-paper); border-top: 1px solid rgba(23, 58, 61, .1); }
.gf-in { width: min(1280px, calc(100% - 128px)); margin: 0 auto; padding: 56px 0 28px; }
.gf-top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--s-line); }
.gf-brand img { width: 220px; height: auto; display: block; }
.gf-brand p { margin: 18px 0 0; max-width: 300px; font-size: 13.5px; line-height: 1.85; color: var(--s-muted); }
.gf-col h2 { margin: 0 0 14px; font-size: 13px; font-weight: 650; letter-spacing: .04em; }
.gf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.gf-col a { font-size: 13.5px; color: var(--s-muted); }
.gf-col a:hover { color: var(--s-orange-ink); }
.gf-legal {
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; padding-top: 22px;
  font-size: 12px; color: var(--s-muted);
}
.gf-legal a:hover { color: var(--s-orange-ink); }

@media (max-width: 1000px) {
  .gf-in { width: calc(100% - 56px); }
  .gf-top { grid-template-columns: 1fr 1fr; }
  .gf-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .gf-in { width: calc(100% - 44px); padding-top: 40px; }
  .gf-top { grid-template-columns: 1fr; gap: 28px; }
  .gf-brand img { width: 180px; }
  .gf-legal { display: grid; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .gh *, .gm *, .gf * { transition: none !important; }
}

/* 跳到正文（键盘用户第一个焦点） */
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px;
  background: #fff; color: #173a3d; border-radius: 8px; font-size: 14px;
  box-shadow: 0 8px 24px -10px rgba(23, 58, 61, .4); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 同一份联系方式用于页脚与关于页，二维码留出白色识别边。 */
.sl-contact { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; color: #173a3d; }
.sl-contact h2 { margin: 0 0 12px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.sl-contact p { margin: 0 0 24px; color: #5c7773; font-size: 15px; line-height: 1.8; }
.sl-contact-mail { display: grid; gap: 8px; }
.sl-contact-mail span { font-size: 13px; color: #5c7773; }
.sl-contact-mail a { width: fit-content; font-size: 22px; line-height: 1.5; color: #173a3d; text-decoration: underline; text-decoration-color: #e6a47a; text-underline-offset: 6px; overflow-wrap: anywhere; }
.sl-contact-mail a:hover { color: #985c35; }
.sl-contact a:focus-visible { outline: 2px solid #266967; outline-offset: 6px; }
.sl-contact-qr { margin: 0; padding: 16px; background: #fff; border: 1px solid #dbe5df; border-radius: 12px; text-align: center; }
.sl-contact-qr img { display: block; width: 136px; max-width: 100%; height: auto; }
.sl-contact-qr figcaption { margin-top: 12px; font-size: 13px; line-height: 1.5; color: #5c7773; }
.gf .sl-contact { padding: 32px 0; border-bottom: 1px solid var(--s-line); }
.vp-contact { scroll-margin-top: 110px; }
.vp-contact .sl-contact { padding: 48px 56px; background: #f3f5ee; border: 1px solid #dbe5df; border-radius: 20px; }
.vp-contact .sl-contact h2 { font-size: 38px; }
.vp-contact .sl-contact-qr { padding: 20px; }
.vp-contact .sl-contact-qr img { width: 180px; }
@media (max-width: 600px) {
  .sl-contact { grid-template-columns: 1fr; gap: 28px; }
  .sl-contact-mail a { font-size: 20px; }
  .sl-contact-qr { justify-self: start; }
  .vp-contact .sl-contact { padding: 28px 24px; }
  .vp-contact .sl-contact h2 { font-size: 30px; }
  .vp-contact .sl-contact-qr img { width: 160px; }
}
