/* AV2Text 设计规范层（DESIGN.tokens.md 的落地）
   最后加载：用少量 !important 压过历史页面的内联样式。
   只做三件事：字号刻度统一、页眉高度、页脚高度。 */

:root{
  --fs-display:32px; --fs-h1:28px; --fs-h2:20px; --fs-h3:15px;
  --fs-body:14px;   --fs-sm:12.5px; --fs-cap:11px; --fs-label:10.5px;
  --head-h:56px;    --foot-h:40px;
}

/* ---- 字号刻度 ---- */
body{font-size:var(--fs-body) !important;line-height:1.6}
main h1,h1{font-size:var(--fs-h1) !important;line-height:1.2}
main h2,h2{font-size:var(--fs-h2) !important;line-height:1.25}
main h3,h3{font-size:var(--fs-h3) !important;line-height:1.35}
.doc p,.doc li,.doc .lead,.doc td,.doc blockquote,
.help-body p,.help-body li,.help-body td,.qa p,.qa li{
  font-size:var(--fs-body) !important;line-height:1.65}
.fine,small,.auth-terms,.auth-note,.foot-bar,.foot-links,.foot-copy,footer{
  font-size:var(--fs-cap) !important}

/* ---- 页眉：56px ---- */
header{min-height:var(--head-h)}
header .wrap,.hin,header .home-nav,header .nav{
  height:var(--head-h) !important;min-height:var(--head-h) !important;
  padding-top:0 !important;padding-bottom:0 !important;
  align-items:center !important}

/* ---- 页脚：40px，文字居中 ---- */
footer{padding:0 !important;min-height:41px !important;height:41px !important;margin-top:0 !important;border-top:1px solid var(--line)}
footer .wrap,.foot-bar,.foot-inner,.foot{
  min-height:41px !important;height:41px !important;max-height:41px !important;
  align-items:center !important;flex-wrap:nowrap !important;gap:10px 18px !important}
footer .wrap > *{min-height:0}
footer .wrap > *{display:flex;align-items:center;gap:14px}

/* ---- 吸顶元素跟着页眉走 ---- */
.help-nav,#signedIn .acct-side{top:calc(var(--head-h) + 14px) !important}
.help-body h2,#signedIn .panel,.doc h2{scroll-margin-top:calc(var(--head-h) + 16px) !important}

@media (max-width:760px){
  :root{--head-h:52px;--foot-h:auto}
  footer .wrap,footer .foot-bar{height:auto !important;min-height:44px !important;padding:8px 0 !important}
}

/* 首页 / releases 的多行页脚压平：隐藏宣传语，链接与版权并进一两行 */
footer .footer-tag,footer .foot-brand p,footer .footer-brand p,footer .brand-tag{display:none !important}
footer .footer-top,footer .foot-top{padding:0 !important;gap:8px 18px !important;flex-wrap:wrap !important;align-items:center !important}
footer .footer-links,footer .foot-links{font-size:11px !important;gap:14px !important}
footer .footer-links a,footer .foot-links a{font-size:11px !important}
footer .footer-bottom,footer .foot-bottom{font-size:11px !important;padding:4px 0 0 !important;gap:14px !important;display:flex !important;flex-wrap:wrap}
footer .site-stat-row{display:none !important}

/* 页脚：所有文字一律黑体（无衬线 + 加粗） */
footer,footer *{font-family:var(--sans) !important;font-weight:600 !important}

/* 账户页页脚：与上方内容同宽同左边线 */
.account-foot{width:100% !important;padding:0 !important;box-sizing:border-box;
  display:flex;align-items:center;justify-content:space-between;gap:12px 20px}
.account-foot .foot-links{margin-right:0}
.account-foot .foot-copy{flex:0 0 auto}
.account-foot .foot-links{display:flex;gap:14px;flex-wrap:wrap}

/* 账户页内容与页脚同宽 1082，中英完全一致 */
.account-main-wrap{max-width:1082px !important;margin:0 auto !important;padding-left:0 !important;padding-right:0 !important}


/* 页眉三件套间距统一：靠父容器 gap 控制，元素自身不留 margin */
header .ico-acct,header #langBtn,header .lang-switch,header .lang-toggle{margin:0 !important;flex:0 0 auto !important}
header .ico-acct{width:30px !important;height:30px !important;border:0 !important;border-radius:0 !important}
header .ico-acct svg{width:30px !important;height:30px !important}
header #langBtn,header .lang-switch{min-width:50px !important;height:30px !important;font-size:13px !important;padding:0 8px !important}

/* 页脚条：品牌左、链接右，同一行 */
footer .foot-bar{display:flex !important;align-items:center !important;justify-content:space-between !important;
  flex-wrap:nowrap !important;gap:14px !important}
footer .foot-links{margin-left:auto !important}

footer .foot-links a{margin-right:0 !important;margin-left:0 !important}
