/* ═══════════════════════════════════════════════════════════════
   Chinesia 官网外壳样式   shell.css
   ---------------------------------------------------------------
   双行头部 / Mega Menu / 面包屑 / 移动抽屉 / 登录弹窗 / 页脚 / 语言建议条

   全部颜色、圆角、阴影取自 base.css 的 CSS 变量，不引入第二套色板。

   ⚠ 2026-07-27：头部与面包屑改为**全站统一深色**（--ink #111827），
     与 App 下载页保持一致底色。原先的 light/dark 双主题已取消 ——
     深色即唯一形态，body[data-shell-theme="dark"] 覆写段随之删除。
     恢复浅色需同时改回 .site-header / .crumbs 及其下文字色。
   ═══════════════════════════════════════════════════════════════ */

/* ── 登录两态：由 html[data-auth] 控制，页面只需加 class ── */
html[data-auth="out"] .only-in  { display: none !important; }
html[data-auth="in"]  .only-out { display: none !important; }

/* 跳过导航（无障碍） */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ═══ 工具行（非吸顶，滚动即随页面移出）═══════════════════
   深色底 —— 与 shell-kit 原型一致（原型用 --ink #1C2434）。
   这里取线上色板的 --ink，保证与全站同一套色值，不引入第二种深色。 */
.utility {
  background: var(--ink);
  font-size: 13px;
}
.utility-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: var(--utility-h); display: flex; align-items: center; justify-content: flex-end; gap: 2px;
}
.u-link, .u-drop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: var(--radius-sm);
  font: inherit; font-size: 13px; color: #C7CBD3;
  background: none; border: none; cursor: pointer; white-space: nowrap;
}
.u-link:hover, .u-drop-btn:hover { color: #fff; background: rgba(255,255,255,.10); }
.u-link svg, .u-drop-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.u-link svg:not(.caret), .u-drop-btn svg:not(.caret) { opacity: .75; }
.caret { width: 12px; height: 12px; opacity: .6; transition: transform .18s; }
.u-drop.open .caret { transform: rotate(180deg); }
.u-sep { width: 1px; height: 14px; background: rgba(255,255,255,.18); margin: 0 6px; flex-shrink: 0; }
.u-tz { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; color: #8B92A0; cursor: default; white-space: nowrap; }
.u-tz svg { width: 14px; height: 14px; opacity: .7; }

/* 工具行下拉（语言 / 头像） */
.u-drop { position: relative; }
.u-drop-menu {
  display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 220;
  min-width: 200px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-nav);
}
.u-drop.open .u-drop-menu { display: block; }
.u-drop-menu a, .u-drop-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font: inherit; font-size: 14px; color: var(--ink); text-align: left;
  background: none; border: none; cursor: pointer;
}
.u-drop-menu a:hover, .u-drop-menu button:hover { background: var(--surface-2); color: var(--ink); }
.u-drop-menu small, .u-drop-menu .lang-opt-short { font-size: 12px; color: var(--ink-4); }
.u-drop-menu .lang-opt.on { color: var(--red); background: var(--red-light); font-weight: 500; }
.menu-rule { height: 1px; background: var(--border); margin: 6px 4px; }
.lang-menu { max-height: 60vh; overflow-y: auto; }

.avatar-btn { padding-left: 6px; min-width: 0; }
.avatar-dot {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16); color: #fff; font-size: 11px; font-weight: 600;
  background-position: center;
}
.avatar-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lang-abbr { display: none; }   /* 宽屏用全称，窄屏切缩写（见 520px 断点）*/

/* ═══ 主导航行（吸顶常驻）════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  /* 用实色而非半透明：半透明叠在页面底色上会渲染成另一种黑，
     与上方工具行、下方面包屑对不齐。深色头部不需要透视。 */
  background: var(--ink);
  /* 底部发丝线用 inset 阴影画，不用 border —— 1px 实边会把头部撑成 69px，
     而 --nav-h 是 68px，任何按 calc(100dvh - --nav-h) 算首屏的页面都会溢出 1px。
     阴影不占布局高度，头部严格等于 --nav-h，线的观感与实边一致。 */
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.08);
  transition: box-shadow .2s;
}
.site-header.is-stuck { box-shadow: inset 0 -1px 0 rgba(255,255,255,.08), var(--shadow-sm); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 8px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: #fff; }
.nav-logo:hover { color: #fff; }
.nav-logo img { width: 36px; height: 36px; border-radius: 10px; }
.nav-logo .logo-word { height: 17px; }
.nav-logo .logo-text { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-item { position: static; }
.nav-link, .nav-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 13px; border-radius: var(--radius-sm);
  font: inherit; font-size: 14px; font-weight: 500; color: #D1D5DB;
  background: none; border: none; cursor: pointer; white-space: nowrap;
}
.nav-link:hover, .nav-btn:hover { background: rgba(255,255,255,.10); color: #fff; }
.nav-item.open .nav-btn { background: rgba(255,255,255,.10); color: #fff; }
.nav-item.open .caret { transform: rotate(180deg); }
.nav-link.is-current { color: var(--red); font-weight: 600; }
.nav-link.is-soon { color: var(--ink-4); cursor: default; }
.nav-link.is-soon:hover { background: none; color: var(--ink-4); }

.soon-tag {
  display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 600; letter-spacing: .02em;
  background: rgba(255,255,255,.10); color: #9CA3AF; white-space: nowrap;
}

.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: #fff; background: var(--red);
  box-shadow: 0 2px 6px rgba(229,41,74,.3); white-space: nowrap;
}
.nav-cta:hover { opacity: .92; color: #fff; }
.nav-cta svg { width: 15px; height: 15px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: none; background: none;
  border-radius: var(--radius-sm); cursor: pointer; color: #fff;
}
.nav-toggle:hover { background: rgba(255,255,255,.10); }
.nav-toggle svg { width: 22px; height: 22px; }

/* ═══ Mega Menu ══════════════════════════════════════════
   面板 HTML 静态存在（爬虫可读），默认 hidden，由 shell.js 开合。 */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 210;
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.mega[hidden] { display: none; }
.mega-inner { max-width: 1200px; margin: 0 auto; padding: 28px 24px 32px; }

.mega-head { padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.mega-head a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -.02em;
}
.mega-head a:hover { color: var(--red); }
.mega-head a svg { width: 17px; height: 17px; }
.mega-head small { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-4); }

.mega-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.col-label {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;   /* 金色 —— 与 shell-kit 一致，红色只留给 CTA */
}
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mega-list.two-up { grid-template-columns: 1fr 1fr; gap: 4px 24px; }

.mi {
  display: block; position: relative; padding: 10px 12px; border-radius: var(--radius-sm);
}
a.mi:hover { background: var(--surface-2); }
.mi-t { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.mi-d { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-4); line-height: 1.5; }
.mi.is-soon { cursor: default; }
.mi.is-soon .mi-t { color: var(--ink-4); }
.mi.is-soon .mi-d { color: var(--border-2); }
.mi.is-soon .soon-tag { position: absolute; top: 10px; right: 12px; }
.mega-list.two-up .mi.is-soon .soon-tag { position: static; margin-left: 6px; }

/* HSK 面板的推荐卡片 */
.feat-card {
  display: block; padding: 22px; border-radius: var(--radius-lg);
  background: var(--red-light); border: 1px solid var(--red-mid);
  transition: box-shadow .2s, transform .2s;
}
.feat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.feat-tag {
  display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; background: var(--red); color: #fff;
}
.feat-card h4 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.feat-card p { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-bottom: 14px; }
.feat-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--red); }
.feat-cta svg { width: 15px; height: 15px; }

/* Partners 面板卡片 */
.pt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pt-card {
  display: flex; gap: 14px; padding: 18px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pt-card:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.pt-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red-light); color: var(--red);
}
.pt-icon svg { width: 20px; height: 20px; }
.pt-title { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.pt-desc { display: block; font-size: 13px; color: var(--ink-4); line-height: 1.55; }

/* ═══ 面包屑（A1-2：仅未登录营销态展示）═══════════════════ */
.crumbs { background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.08); }
.crumbs-inner {
  max-width: 1200px; margin: 0 auto; padding: 11px 24px;
  font-size: 13px; color: #6B7280;
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px;
}
.crumbs-inner a { color: #9CA3AF; }
.crumbs-inner a:hover { color: var(--red); }
.crumb-sep { margin: 0 8px; color: #4B5563; }
.crumb-cur { color: #E5E7EB; font-weight: 500; }

/* ═══ 移动端抽屉 ═════════════════════════════════════════ */
.drawer {
  display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 210;
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  padding: 12px 24px 28px;
  background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.drawer[hidden] { display: none; }
.drawer.open { display: block; }
.d-item, .d-sub {
  display: flex; align-items: center; width: 100%;
  padding: 13px 4px; border-bottom: 1px solid var(--border);
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  background: none; border-left: none; border-right: none; border-top: none;
  text-align: left; cursor: pointer;
}
/* 子项：层级只靠缩进表达，字号与颜色跟一级项保持一致——
   抽屉里同时出现 15px 黑 / 14px 灰 / 13px 灰大写三种样式会显得杂乱。 */
.d-sub { padding-left: 20px; }
.d-item.is-soon { color: var(--ink-4); cursor: default; }
/* 分组标题：本身没有落地页（如「校企合作」总览页已下线），只领起下方 .d-sub。
   视觉与其他一级项完全一致，只是不可点——不用变灰变小去强调「点不了」，
   那反而让它看起来像个次级标签。 */
.d-item.d-group { cursor: default; }
.d-ctas { display: grid; gap: 10px; margin-top: 20px; }
.d-ctas .btn { width: 100%; }

/* ═══ 语言建议条（A1-5：不自动跳转，只提示）════════════════ */
.langbar {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 24px; font-size: 13.5px;
  background: var(--ink); color: #E5E7EB;
}
.langbar[hidden] { display: none; }
.langbar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.langbar a:hover { color: #fff; opacity: .85; }
.langbar button {
  font: inherit; font-size: 13px; color: #9CA3AF;
  background: none; border: none; cursor: pointer; padding: 2px 6px;
}
.langbar button:hover { color: #fff; }

/* ═══ 登录弹窗（A1-3）════════════════════════════════════ */
/* 规格取自设计稿 492:7221：400 宽、32/28 内边距、圆角 12。 */
.login-overlay {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(17,24,39,.55); backdrop-filter: blur(3px);
}
.login-overlay[hidden] { display: none; }
.login-card {
  position: relative; width: 100%; max-width: 400px;
  max-height: calc(100vh - 48px); overflow-y: auto;
  padding: 32px 28px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); box-shadow: 0 18px 40px rgba(17,24,39,.1);
}
.login-close {
  position: absolute; top: 8px; right: 8px;
  width: 38px; height: 38px; border: none; background: none; cursor: pointer;
  border-radius: 7px; color: var(--ink-3);
  display: inline-flex; align-items: center; justify-content: center;
}
.login-close:hover { background: var(--surface-2); color: var(--ink); }
.login-close svg { width: 20px; height: 20px; }
/* 标题居中、28/34：这个弹窗只有一件事，标题就是它的全部说明，压到 21px 会被
   下面那排等宽控件盖过去。文案可能换行（俄语最长），所以不锁高度。 */
.login-card h3 { margin: 0; font-size: 28px; font-weight: 600; line-height: 34px; text-align: center; }
.login-note { margin: 6px 0 0; font-size: 13px; line-height: 19px; color: var(--ink-3); text-align: center; }

/* Google 按钮容器：GIS renderButton 渲染到子 div，自绘覆盖层叠在上方。
   固定 40px 高度（GIS SDK large 按钮标准高度）—— 弹窗每次打开 overlay 从
   display:none 切回可见，GIS iframe 需要浏览器重绘，没有固定高度时容器会
   从 0 撑开到 40px 引起布局抖动（闪烁）。固定高度后空间始终预留，不抖。 */
.login-google {
  display: flex; align-items: center; justify-content: center; width: 100%;
  height: 40px;
  margin-top: 20px; border-radius: var(--radius-sm);
  background: transparent; border: 0; cursor: pointer;
  position: relative; overflow: hidden;
}

/* GIS 官方按钮宿主：填满容器高度，SDK 可见性检测通过 */
.login-google-gis-host {
  width: 100%; height: 100%;
}
.login-google-gis-host > div { width: 100% !important; height: 100% !important; }
.login-google-gis-host iframe { width: 100% !important; height: 100% !important; border: none; }

/* 自绘覆盖层：叠在 GIS 按钮上方，pointer-events:none 让点击穿透到 GIS iframe */
.login-google-custom {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 24px; color: #fff;
  background: var(--ink); border-radius: inherit;
}
.login-google-custom svg { width: 18px; height: 18px; flex-shrink: 0; }

.login-div {
  display: flex; align-items: center; gap: 12px;
  /* Google 与「或」、以及「或」与方式 Tab：两段空白各留一半
     （原 18px 外边距 + 38px 分隔行，现 9px + 字高行盒）。 */
  height: 19px; margin: 9px 0 0; font-size: 12px; line-height: 19.2px; color: var(--ink-4);
}
.login-div::before, .login-div::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.login-tabs { display: flex; gap: 4px; padding: 3px; margin-top: 9px; background: var(--surface-3); border-radius: var(--radius-sm); }
.login-tab {
  flex: 1; padding: 8px; border: none; border-radius: 4px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; line-height: 22.4px; color: var(--ink-3); background: none;
}
.login-tab.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }

#shellLoginForm { margin-top: 14px; }
.login-field { display: flex; gap: 8px; height: 48px; }
.login-field + .login-field { margin-top: 10px; }
.login-field input {
  flex: 1; min-width: 0; padding: 11px 14px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s;
}
.login-field input::placeholder { color: #757575; }
.login-field input:focus { outline: none; border-color: var(--red); }
.login-field input.is-error { border-color: var(--red); background: var(--red-light); }
/* 获取验证码是红描边而不是红底：它只是「让验证码发过来」，主动作是下面的继续 */
.login-send {
  flex-shrink: 0; padding: 11px 14px; border: 1px solid var(--red); border-radius: var(--radius-sm);
  font: inherit; font-size: 13px; font-weight: 600; line-height: 21.6px; color: var(--red);
  background: var(--surface); cursor: pointer; white-space: nowrap; transition: background .15s;
}
.login-send:hover:not(:disabled) { background: var(--red-light); }
.login-send:disabled { color: var(--ink-4); border-color: var(--border-2); background: var(--surface-3); cursor: default; }

/* ── 区号选择器（A1-3）─────────────────────────────────
   菜单用 position: fixed 而不是 absolute —— .login-card 有
   overflow-y:auto（窄屏要能滚），absolute 的菜单会被它齐着卡片
   底边裁掉。fixed 不受祖先 overflow 影响；它的包含块是
   .login-overlay（backdrop-filter 建立了包含块），而 overlay 就是
   铺满视口的 inset:0，所以 getBoundingClientRect 的视口坐标可以
   直接用。位置由 shell.js 在打开时算，卡片一滚就关掉。 */
.login-cc { position: relative; flex-shrink: 0; }
.login-cc[hidden] { display: none; }
.login-cc-btn {
  display: flex; align-items: center; gap: 6px; height: 100%; min-width: 88px; padding: 0 12px;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap; transition: border-color .15s;
}
.login-cc-btn:hover { border-color: var(--border-2); }
.login-cc-btn[aria-expanded="true"] { border-color: var(--red); }
.login-cc-caret { width: 12px; height: 12px; margin-left: auto; opacity: .55; flex-shrink: 0; }

.login-cc-menu {
  position: fixed; z-index: 410; width: 288px; max-height: 300px; display: flex; flex-direction: column;
  padding: 6px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: 0 18px 40px rgba(17,24,39,.18);
}
.login-cc-menu[hidden] { display: none; }
.login-cc-search {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  height: 36px; padding: 0 10px; margin-bottom: 4px;
  border: 1px solid var(--border); border-radius: 6px;
}
.login-cc-search svg { width: 14px; height: 14px; color: var(--ink-4); flex-shrink: 0; }
.login-cc-search input {
  flex: 1; min-width: 0; border: none; background: none; padding: 0;
  font: inherit; font-size: 13.5px; color: var(--ink);
}
.login-cc-search input:focus { outline: none; }
.login-cc-search input::placeholder { color: var(--ink-4); }
.login-cc-list { overflow-y: auto; overscroll-behavior: contain; }
.login-cc-group {
  padding: 8px 10px 4px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4);
}
.login-cc-item {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 10px;
  font: inherit; font-size: 13.5px; text-align: left; color: var(--ink);
  background: none; border: none; border-radius: 6px; cursor: pointer;
}
.login-cc-item:hover { background: var(--surface-2); }
.login-cc-item.on { background: var(--red-light); color: var(--red); font-weight: 600; }
.login-cc-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-cc-item b { font-weight: inherit; color: var(--ink-3); flex-shrink: 0; }
.login-cc-item.on b { color: var(--red); }
.login-cc-empty { margin: 0; padding: 14px 10px; font-size: 13px; color: var(--ink-4); text-align: center; }
.login-cc-empty[hidden] { display: none; }

.login-msg { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--red); }
.login-msg[hidden] { display: none; }
.login-msg.is-ok { color: #15803D; }

.login-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 48px; margin-top: 10px; padding: 0 30px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
}
.login-submit svg { width: 18px; height: 18px; }
/* 禁用态按设计稿走「灰底 + 浅灰字」，不用 opacity —— 整枚压透明会把阴影一起
   淡掉，反而像个没画完的控件。 */
.login-submit:disabled { background: rgba(107,114,128,.4); color: #D1D5DB; cursor: default; }

.login-legal { margin-top: 16px; font-size: 12px; line-height: 19px; color: var(--ink-4); text-align: center; }
.login-legal-link { color: var(--red); font-weight: 600; text-decoration: none; }
.login-legal-link[href]:hover { text-decoration: underline; text-underline-offset: 2px; }
/* 没有 href 时它只是被标出来的词组，别给手型骗人（条款页尚未上线） */
.login-legal-link:not([href]) { cursor: default; }

/* ═══ 页脚补充（.site-footer 主体样式在 base.css）═════════ */
.footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr !important; } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 360px)  { .footer-grid { grid-template-columns: none !important; } }
.footer-qr { border-radius: 8px; border: 2px solid #fff; padding: 4px; background: #fff; }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: #9CA3AF; }

/* ═══ 深色头部 ═══════════════════════════════════════════
   2026-07-27：原 body[data-shell-theme="dark"] 覆写段已删除 ——
   深色升为全站默认，规则直接写在上方 .utility / .site-header /
   .crumbs 各自的定义里，不再有第二套主题。

   三块取同一个 --ink 色值，让「工具行 / 主导航 / 面包屑」连成一整块，
   而不是三段深浅不一的黑夹着中间那条。

   Mega 面板与抽屉仍用浅色 —— 它们是浮层，不属于页面底色。 */

/* ═══ 占位页 ═════════════════════════════════════════════
   本期先上骨架，内容后续逐页填充。5 个占位页共用这套样式，
   模板里只写内容，不必各抄一份。                            */
.ph-section { padding: 96px 24px 110px; }
.ph-inner { max-width: 680px; }
.ph-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 999px; margin-bottom: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  background: var(--surface-3); color: var(--ink-3);
}
.ph-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
}
.ph-title {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 700;
  letter-spacing: -.04em; margin-bottom: 18px;
}
.ph-lead { font-size: 17px; line-height: 1.75; color: var(--ink-3); margin-bottom: 34px; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ph-links {
  margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 10px 28px;
}
.ph-links span { font-size: 13px; color: var(--ink-4); }
.ph-links a { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.ph-links a:hover { color: var(--red); }
@media (max-width: 768px) { .ph-section { padding: 64px 20px 76px; } }

/* ═══ 响应式 ═════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .nav-link, .nav-btn { padding: 8px 10px; font-size: 13.5px; }
}
@media (max-width: 959px) {
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
  .nav-toggle { display: inline-flex; }
  .utility-inner { justify-content: space-between; padding: 0 16px; }
  /* 工具行窄屏形态（H5 / 平板）：三项 + 两根分隔符，文案完整保留 ——
     图标 + 「Get the App」「English ▾」「Sign in」在 390px 下约占 312px，放得下。
     真正占地方的是时区（GMT+8 · Shanghai 约 130px），只需隐藏它连同其配对分隔符。 */
  .u-tz, .u-sep-tz { display: none !important; }
  /* 手机端昵称收窄：120px 在 390px 屏宽下会与其他工具项叠加溢出，
     缩到 72px 保证截断生效、不产生水平滚动条。 */
  .avatar-name { max-width: 72px; }
  .nav-inner { padding: 0 16px; }
  .mega { display: none !important; }
  .mega-cols { grid-template-columns: 1fr; gap: 24px; }
  .pt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .mega-list.two-up { grid-template-columns: 1fr; }
  .login-card { padding: 28px 20px 22px; }
  /* 小屏手机：昵称收窄到 30px，超出省略号 */
  .avatar-name { max-width: 40px; }
  .lang-full { display: none; }
  .lang-abbr { display: inline; }
}

@media (max-width: 360px) {
  .utility-inner .u-link:first-child span{
    display: none;
  }
  .avatar-name { display: none; }
}
