/* Shared header/footer for navigation subpages. Keep this shell aligned with the homepage. */
[data-legacy-site-header],
[data-legacy-site-footer],
.footer.shell { display: none !important; }

[data-site-shell-header] {
  position: relative;
  z-index: 500;
  height: 124px;
  font-family: Inter, Arial, sans-serif;
}

.site-shell-header,
.site-shell-header * ,
.site-shell-footer,
.site-shell-footer * { box-sizing: border-box; }

/* ★ 2026-10-24：站壳**自给自足**字体，不再靠宿主页面的 body 规则继承。
   ★ 为什么：站壳是四页共用的组件（how-it-works / api / status / news），
     而四个宿主页面的 body font-family 各自不同 ——
       首页    styles.css      → var(--body) = Inter
       api/status pages-v001.css → Inter, Arial, system-ui, -apple-system…
       how-it-works how-it-works.css → Inter
       news    pub.css         → var(--font) = **系统字体栈**（-apple-system…）
     ⇒ 站壳的导航文字在 news 页变成系统字体、其它页是 Inter ——
       同一个站、同一个组件，跨页字形不同。
   ★ 这条只管**站壳**（页头/页脚），不动各页正文 ——
     news 页正文的字体栈是另一个决策（那页是内容站，正文用系统字体栈是另一回事）。
   ★ 注意文件上方 [data-site-shell-header] 那条已有 font-family: Inter，
     但它作用在一个 **aria-hidden 的空占位 div** 上（Shell.svelte:168），
     对真实页头无效 —— 所以这里必须自己再声明一次。
   ★ 站壳内部的 a/button 走 :where(){font-family:inherit}（见下方）⇒ 继承到这里。 */
.site-shell-header,
.site-shell-footer { font-family: Inter, Arial, sans-serif; }

.site-shell-header {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 500;
  display: flex;
  align-items: center;
  width: min(1440px, calc(100% - 48px));
  height: 76px;
  padding: 0 24px;
  gap: 24px;
  color: #061755;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 23px;
  box-shadow: 0 8px 30px rgba(9, 32, 81, .08), inset 0 1px 0 rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
  transform: translateX(-50%);
  transition: background-color .2s ease, box-shadow .2s ease;
}

.site-shell-header.is-scrolled {
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 34px rgba(9, 32, 81, .14);
}

/* 站壳里的链接与按钮继承页面的字体（不继承浏览器默认的 Arial/13.33px）。
   ★★ 2026-10-24 修：原来这里写的是 **`font: inherit` 简写** ——
     简写会**重置 font 全套**（family/size/weight/style/variant/line-height/stretch），
     而它的**特异性 (0,1,1)** 高于后面那些组件自己的规则（0,1,0）：
       .site-shell-nav-trigger  { font-size:15px; font-weight:650 }   ← (0,1,0)
       .site-shell-language-button { font-size:16px }                ← (0,1,0)
       .site-shell-signup/.site-shell-track/.site-shell-login { font-size:16px; font-weight:650 }
       .site-shell-mobile-trigger { font-weight:700 }
     ⇒ 这几条**从未生效**，实际全是继承值（16px/400）。
     实测导航按钮因此比首页大 1px、细 200 字重（首页 15px/600，站壳 16px/400）。
     ★ 修法：把简写拆开，且用 :where() 把**字体继承**这条降到 0 特异性 ——
       「继承」是**兜底**，不该压过组件自己的设定。
       ★ 颜色与下划线**不动**（保持原特异性，行为完全不变）。
     ★ 为什么 font-size 可以不声明：`font: inherit` 拆掉后，没写 font-size 的元素
       依然**继承**父级（CSS 默认行为），与拆之前的效果相同 ⇒ 零副作用。 */
.site-shell-header a,
.site-shell-header button,
.site-shell-footer a,
.site-shell-footer button { color: inherit; text-decoration: none; }

:where(.site-shell-header a, .site-shell-header button, .site-shell-footer a, .site-shell-footer button) {
	font-family: inherit;
}

.site-shell-header button,
.site-shell-footer button { border: 0; cursor: pointer; }

.site-shell-brand { display: inline-flex; flex: 0 0 195px; align-items: center; }
.site-shell-brand img { display: block; width: 195px; height: auto; }

.site-shell-desktop-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: clamp(18px, 2vw, 34px);
}

.site-shell-nav-trigger,
.site-shell-language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  color: #061755;
  background: transparent;
  font-size: 15px;
  /* ★ 2026-10-24：导航字重由 650 改 **400**（业主拍板，与首页导航一致）。
     ★ 改前这里写 650，但被上面那条 `font: inherit` 压住 ⇒ 实际渲染 400 ——
       所以这次改动在**观感上几乎无变化**，只是把「实际值」变成「声明值」
       （= 终于与作者写的一致，且两页导航字重真的统一了）。
     ★ 参照首页：那边 nav-trigger 的 600 同样被覆盖链压到 600，本轮一并改 400。 */
  font-weight: 400;
  white-space: nowrap;
}

.site-shell-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.site-shell-nav-trigger[aria-expanded="true"] .site-shell-chevron,
.site-shell-language-button[aria-expanded="true"] .site-shell-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.site-shell-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 18px; }
.site-shell-language-button { font-size: 16px; }
.site-shell-globe { display: block; width: 25px; height: 25px; }
.site-shell-globe svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; }

.site-shell-signup,
.site-shell-track,
.site-shell-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 650;
  white-space: nowrap;
}

.site-shell-signup { min-width: 100px; padding: 0 20px; color: #fff !important; background: #ff531c; }
.site-shell-track { padding: 0 4px; }
.site-shell-login { min-width: 112px; padding: 0 20px; border: 2px solid #15236f; background: rgba(255, 255, 255, .22); }
.site-shell-signup:hover { background: #e74714; }
.site-shell-login:hover { background: rgba(255, 255, 255, .82); }

.site-shell-header :focus-visible,
.site-shell-footer :focus-visible { outline: 3px solid #ff531c; outline-offset: 4px; }

.site-shell-language-menu,
.site-shell-mega,
.site-shell-mobile-menu {
  position: absolute;
  top: calc(100% + 12px);
  color: #061755;
  background: rgba(248, 252, 255, .98);
  border: 1px solid #dbe4ef;
  box-shadow: 0 22px 60px rgba(6, 23, 85, .17);
}

.site-shell-language-menu {
  right: 172px;
  width: 240px;
  padding: 18px;
  border-radius: 16px;
}

.site-shell-language-menu strong { display: block; margin-bottom: 10px; font-size: 13px; }
.site-shell-language-options { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.site-shell-language-options button { padding: 9px 8px; border-radius: 8px; background: transparent; text-align: left; font-size: 13px; }
.site-shell-language-options button:hover,
.site-shell-language-options button[aria-current="true"] { background: #e8eff9; }

.site-shell-mega {
  left: 0;
  width: 100%;
  padding: 24px;
  border-radius: 20px;
}

.site-shell-mega-columns { display: grid; grid-template-columns: repeat(var(--shell-columns, 3), minmax(0, 1fr)); gap: 18px; }
.site-shell-mega-column,
.site-shell-mega-personal { min-width: 0; padding: 18px; border-radius: 14px; background: #fff; }
.site-shell-mega-column h2,
.site-shell-mega-personal h2 { margin: 0 0 13px; font-size: 18px; line-height: 1.2; }
.site-shell-mega-column > p,
.site-shell-mega-personal > p { margin: -5px 0 14px; color: #5d7299; font-size: 12px; line-height: 1.5; }
.site-shell-mega-items { display: grid; gap: 6px; }
.site-shell-mega-item,
.site-shell-mega-cta,
.site-shell-mega-secondary { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px; border-radius: 9px; }
.site-shell-mega-item:hover,
.site-shell-mega-cta:hover,
.site-shell-mega-secondary:hover { background: #eef4fa; }
.site-shell-mega-item strong { font-size: 13px; }
.site-shell-mega-item small { grid-column: 1; color: #607492; font-size: 11px; line-height: 1.4; }
.site-shell-mega-item i { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: #ff531c; font-style: normal; }
.site-shell-mega-personal-actions { display: grid; gap: 7px; }
.site-shell-mega-cta { color: #fff !important; background: #082471; }
.site-shell-mega-cta:hover { background: #14398c; }

.site-shell-mobile-toggle { display: none; width: 44px; height: 44px; padding: 0; background: transparent; }
.site-shell-mobile-toggle span { display: block; width: 24px; height: 2px; margin: 4px auto; background: #061755; transition: transform .18s ease; }
.site-shell-mobile-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.site-shell-mobile-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.site-shell-mobile-menu { right: 0; left: 0; max-height: calc(100dvh - 112px); padding: 18px; overflow: auto; border-radius: 18px; }
.site-shell-mobile-group { border-bottom: 1px solid #dce5f0; }
.site-shell-mobile-trigger { display: flex; justify-content: space-between; width: 100%; padding: 16px 4px; color: #061755; background: transparent; font-weight: 400; text-align: left; }
.site-shell-mobile-panel { padding: 0 0 12px; }
.site-shell-mobile-panel .site-shell-mega-column,
.site-shell-mobile-panel .site-shell-mega-personal { margin-top: 8px; border: 1px solid #e2e9f2; }
.site-shell-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding-top: 16px; }
.site-shell-mobile-actions a { display: flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid #17266e; border-radius: 10px; font-weight: 650; }
.site-shell-mobile-actions .site-shell-mobile-signup { color: #fff; border-color: #ff531c; background: #ff531c; }

.site-shell-footer {
  margin-top: 0;
  padding: 50px 0 20px;
  color: #0b356a;
  background: #e7ebf5;
  font-family: Inter, Arial, sans-serif;
}

.site-shell-footer-container { width: min(1330px, calc(100% - 112px)); margin: 0 auto; }
/* 2026-11-01：与首页 / 静态页统一成「两行」页脚 ——
 *   行 1 = brand（logo 左 / 社交图标右，带下分割线），跨满整行；
 *   行 2 = 六组导航，一列一组。
 * 旧写法 `1.12fr repeat(5,1fr)` 只有 6 列却要塞「brand + 6 组」，
 * 第 6 组 Account tools 被挤到第二行、落在 logo 下方（实测 left=56、w=210）。
 * 口径见 public/assets/shared-footer-v003.css:9-10。 */
.site-shell-footer-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px 26px; align-items: start; }
.site-shell-footer-brand { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 26px; margin-bottom: 5px; border-bottom: 1px solid #cbd5e3; }
.site-shell-footer-brand img { display: block; width: 195px; height: auto; }
.site-shell-socials { display: flex; gap: 10px; margin-top: 0; }
.site-shell-social { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #b7c5d8 !important; border-radius: 50%; background: transparent; }
.site-shell-social svg { width: 18px; height: 18px; fill: currentColor; }
.site-shell-footer-nav { margin: 0; }
.site-shell-footer-nav summary { list-style: none; cursor: default; font-size: 16px; font-weight: 750; }
.site-shell-footer-nav summary::-webkit-details-marker { display: none; }
.site-shell-footer-nav a { display: block; margin-top: 20px; color: #5c7194; font-size: 14px; line-height: 1.35; }
.site-shell-footer-nav a:hover { color: #0b356a; }
/* 当前页高亮（2026-11-15）。静态页的共享页脚早就有这条（shared-footer-v003.css 的
   `a[aria-current=page]`），站壳这五页一直没有 ⇒ 同一个站两套表现：客户评价有选中态、
   新闻与指南没有。这里把视觉对齐成同一套：深色 + 650 字重 + 橙色下划线。
   ★ 用属性选择器而不是 `.active` 类：读屏器能读出「当前页」，也不必用 JS 维护类名
     —— 打标在 Shell.svelte 的 isCurrentPage()，判据与共享页脚一致。 */
.site-shell-footer a[aria-current='page'] { color: #082f63; font-weight: 650; text-decoration: underline; text-decoration-color: #ff5a1f; text-underline-offset: 6px; }
.site-shell-footer-bottom { display: grid; grid-template-columns: auto auto 1fr; gap: 28px; align-items: center; margin-top: 42px; padding-top: 22px; border-top: 1px solid #cbd5e3; color: #6c7f9d; font-size: 12px; }
.site-shell-footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.site-shell-notice { position: fixed; right: 24px; bottom: 24px; z-index: 800; max-width: 330px; padding: 13px 17px; color: #fff; background: #082471; border-radius: 10px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.site-shell-notice.is-visible { opacity: 1; transform: none; }

[hidden] { display: none !important; }

@media (max-width: 1240px) {
  .site-shell-header { gap: 16px; padding-inline: 20px; }
  .site-shell-desktop-nav { gap: 16px; }
  .site-shell-nav-trigger { font-size: 13px; }
  .site-shell-actions { gap: 12px; }
  .site-shell-signup, .site-shell-track, .site-shell-login { font-size: 14px; }
  .site-shell-login { min-width: 92px; }
  .site-shell-footer-grid { gap: 24px; }
}

@media (max-width: 980px) {
  [data-site-shell-header] { height: 108px; }
  .site-shell-header { top: 18px; width: calc(100% - 32px); height: 72px; border-radius: 19px; }
  .site-shell-desktop-nav,
  .site-shell-track,
  .site-shell-login { display: none; }
  .site-shell-brand { flex-basis: 185px; }
  .site-shell-brand img { width: 185px; }
  .site-shell-actions { margin-left: auto; }
  .site-shell-mobile-toggle { display: block; }
  .site-shell-language-menu { right: 60px; }
  .site-shell-footer-container { width: calc(100% - 48px); }
  .site-shell-footer-grid { grid-template-columns: 1fr 1fr 1fr; row-gap: 38px; }
  .site-shell-footer-bottom { grid-template-columns: 1fr 1fr; }
  .site-shell-footer-legal { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 620px) {
  [data-site-shell-header] { height: 92px; }
  .site-shell-header { top: max(14px, env(safe-area-inset-top)); width: calc(100% - 24px); height: 64px; padding-inline: 12px; gap: 6px; border-radius: 17px; }
  .site-shell-brand { flex-basis: 150px; }
  .site-shell-brand img { width: 150px; }
  .site-shell-actions { gap: 5px; }
  .site-shell-language-button { gap: 5px; font-size: 12px; }
  .site-shell-globe { display: none; }
  .site-shell-signup { display: none; }
  .site-shell-language-menu { right: 0; width: min(260px, calc(100vw - 24px)); }
  .site-shell-mobile-menu { padding: 13px; }
  .site-shell-mobile-actions { grid-template-columns: 1fr; }
  .site-shell-footer { padding-top: 36px; }
  .site-shell-footer-container { width: calc(100% - 36px); }
  .site-shell-footer-grid { display: block; }
  .site-shell-footer-brand { margin-bottom: 24px; }
  .site-shell-footer-nav { border-top: 1px solid #cbd5e3; }
  .site-shell-footer-nav summary { position: relative; padding: 17px 26px 17px 0; cursor: pointer; }
  .site-shell-footer-nav summary::after { content: '+'; position: absolute; right: 2px; top: 14px; font-size: 22px; font-weight: 400; }
  .site-shell-footer-nav[open] summary::after { content: '−'; }
  .site-shell-footer-nav a { margin: 0 0 15px; }
  .site-shell-footer-bottom { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .site-shell-footer-legal { grid-column: auto; gap: 12px 16px; }
}

@media (max-width: 380px) {
  .site-shell-brand { flex-basis: 136px; }
  .site-shell-brand img { width: 136px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-shell-header,
  .site-shell-notice { transition: none; }
}
