/*
 * ZIPLUCAS 品牌样式（M1 起的注册、登录、会员中心页面使用）
 * 来源：原型 .local/prototype/site/assets/proto.css 的对应组件；类名统一 .sz-*。
 * 只定义颜色变量和 .sz-* 组件，不改全局元素样式，因此可与旧页面样式共存。
 * 电脑端优先，≤768px 切手机布局。
 */
:root {
  --sz-blue: #175699;
  --sz-blue-hover: #124A85;
  --sz-blue-dark: #001950;
  --sz-blue-soft: #EAF1F8;
  --sz-red: #A21E30;
  --sz-error: #D3504B;
  --sz-error-soft: #FBEDEC;
  /* 红色文字与白字下的红底（浅底上的错误字、状态字、危险按钮）：同色相加深到在白底和 --sz-error-soft 上都 ≥ 4.5:1（P15）；--sz-error 仍用于边框与填充 */
  --sz-error-ink: #C93731;
  /* 状态绿只用作文字：同色相加深到在白底和 --sz-ok-soft 上都 ≥ 4.5:1（P15 加深） */
  --sz-ok: #297C4E;
  --sz-ok-soft: #E8F4EC;
  /* 警示色只用作文字（后台 .ad-badge.ad-warn、.ad-todo-warn）：同色相加深到在白底和 --sz-warn-soft 上都 ≥ 4.5:1（P16） */
  --sz-warn: #9B661A;
  --sz-warn-soft: #FDF6E7;
  --sz-warn-line: #F1DDB2;
  --sz-warn-ink: #6B4A0F;
  --sz-blue-line: #C9DBEE;
  --sz-ink: #231815;
  --sz-g800: #53596A;
  /* 说明灰：同色相下在浅灰底 --sz-bg-soft 上 ≥ 4.5:1 的最浅值（P15 加深）；深色底上不要用它 */
  --sz-g700: #6E707B;
  /* 深色底（--sz-ink 页脚）上的说明灰：同色相下在 #231815 上 ≥ 4.5:1 的最深值（P15） */
  --sz-g700-on-dark: #7F828C;
  /* 浅蓝底（--sz-blue-soft，后台表格选中行）上的说明灰：同色相下在 #EAF1F8 上 ≥ 4.5:1 的最浅值（P15 补充轮） */
  --sz-g700-on-blue-soft: #6B6D77;
  --sz-g600: #C9CCD2;
  --sz-line: #DFE1E7;
  --sz-bg-soft: #F3F5F9;
  --sz-white: #FFFFFF;
  --sz-radius: 6px;
  --sz-shadow: 0 6px 24px rgba(0, 25, 80, .12);
  --sz-overlay: rgba(0, 25, 80, .45);
  --sz-shadow-sm: 0 2px 8px rgba(0, 25, 80, .12);
}

/* ---------- 链接聚焦框 ---------- */
/* Bootstrap 3 的 a:focus 不分鼠标和键盘都画粗框；这条只去掉"不是键盘选中"时的框，各处 :focus-visible 的样式不受影响 */
a:focus:not(:focus-visible) { outline: 0; }

/* ---------- 按钮 ---------- */
.sz-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--sz-blue);
  border-radius: var(--sz-radius);
  background: var(--sz-white);
  color: var(--sz-blue);
  font: inherit;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.sz-btn:hover { text-decoration: none; }
/* 键盘聚焦：老页面 base.css 对 button / input 写了 outline: none !important，这里同样用 !important 压回来 */
.sz-btn:focus-visible { outline: 2px solid var(--sz-blue) !important; outline-offset: 2px; }
.sz-btn-primary { background: var(--sz-blue); border-color: var(--sz-blue); color: #fff; }
.sz-btn-primary:hover { background: var(--sz-blue-hover); border-color: var(--sz-blue-hover); }
.sz-btn-outline { background: var(--sz-white); color: var(--sz-blue); }
.sz-btn-outline:hover { background: var(--sz-blue-soft); }
.sz-btn-block { display: flex; width: 100%; }
.sz-btn[disabled],
.sz-btn.sz-disabled {
  background: var(--sz-bg-soft);
  border-color: var(--sz-line);
  color: var(--sz-g700);
  cursor: not-allowed;
}

/* ---------- 输入框与行内错误 ---------- */
.sz-input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--sz-line);
  border-radius: var(--sz-radius);
  background: var(--sz-white);
  color: var(--sz-ink);
  font: inherit;
  font-size: 15px;
}
.sz-input:focus {
  outline: none;
  border-color: var(--sz-blue);
  box-shadow: 0 0 0 3px rgba(23, 86, 153, .12);
}
.sz-input::placeholder { color: var(--sz-g600); }
.sz-input.sz-input-error { border-color: var(--sz-error); }
/* 错误提示紧跟在输入框下方，不用浮层 */
.sz-field-error {
  margin-top: 5px;
  color: var(--sz-error-ink);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- 卡片 ---------- */
.sz-card {
  box-sizing: border-box;
  border: 1px solid var(--sz-line);
  border-radius: 8px;
  background: var(--sz-white);
  padding: 20px 24px;
}

/* ---------- 顶部提示条 ---------- */
.sz-banner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 48px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--sz-warn-line);
  background: var(--sz-warn-soft);
  color: var(--sz-warn-ink);
  font-size: 14px;
}
.sz-banner.sz-banner-info {
  border-bottom-color: var(--sz-blue-line);
  background: var(--sz-blue-soft);
  color: var(--sz-blue-dark);
}

/* ---------- 弹框 ---------- */
.sz-modal-mask {
  box-sizing: border-box;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 25, 80, .5);
}
.sz-modal {
  box-sizing: border-box;
  position: relative;
  width: 440px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 32px 32px 28px;
  border-radius: 12px;
  background: var(--sz-white);
  box-shadow: var(--sz-shadow);
  color: var(--sz-ink);
}
.sz-modal h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.sz-modal-body { color: var(--sz-g800); font-size: 15px; line-height: 1.7; }
.sz-modal-actions { display: flex; gap: 12px; margin-top: 24px; }
.sz-modal-actions .sz-btn { flex: 1; height: 44px; }

/* ---------- 轻提示 ---------- */
.sz-toast {
  box-sizing: border-box;
  position: fixed;
  top: 88px;
  left: 50%;
  z-index: 1100;
  max-width: 90vw;
  padding: 10px 18px;
  transform: translateX(-50%);
  border-radius: var(--sz-radius);
  background: var(--sz-ink);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--sz-shadow);
}

/* ---------- 手机端 ≤768px ---------- */
@media (max-width: 768px) {
  .sz-btn { height: 44px; }
  .sz-input { font-size: 16px; } /* 避免 iOS 点输入框时自动放大 */
  .sz-card { padding: 16px; }
  .sz-banner { padding: 8px 16px; }
  .sz-modal-mask { padding: 16px; }
  .sz-modal { padding: 28px 20px 20px; }
  .sz-modal-actions { flex-direction: column; }
  .sz-modal-actions .sz-btn { flex: none; width: 100%; }
  .sz-toast { top: 68px; }
}

/* ====================================================================
 * 账号类页面（注册、待确认、链接结果、完善资料、条款）
 * 页面外层是 <main class="sz-auth">。旧站的 base.css 会改全局元素（a 变块级、p/h1 用 rem 字号、
 * label 内联块、input 去边框），这里在 .sz-auth 内用 px 和更高优先级的选择器覆盖，
 * 所以这些页面不受旧样式的影响，旧页面也不受这里的影响。
 * ==================================================================== */

.sz-auth {
  box-sizing: border-box;
  min-height: 70vh;
  padding: 48px 16px 64px;
  background: var(--sz-bg-soft);
  color: var(--sz-ink);
  font-family: "Microsoft Yahei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
.sz-auth *, .sz-auth *::before, .sz-auth *::after { box-sizing: border-box; }
.sz-auth h1, .sz-auth h2, .sz-auth p, .sz-auth li, .sz-auth label, .sz-auth span, .sz-auth div {
  font-family: inherit;
  cursor: auto;
}
.sz-auth h1 { margin: 0 0 8px; font-size: 24px; font-weight: 600; line-height: 1.3; text-align: center; }
.sz-auth h2 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
.sz-auth p { margin: 0 0 8px; font-size: 15px; color: var(--sz-g800); }
.sz-auth ul { margin: 0; padding-left: 18px; list-style: disc; }
.sz-auth li { margin: 2px 0; font-size: 14px; list-style: disc; }
.sz-auth a:not(.sz-btn), .sz-auth a:not(.sz-btn):visited, .sz-auth a:not(.sz-btn):active {
  display: inline;
  color: var(--sz-blue);
  text-decoration: none;
  cursor: pointer;
}
.sz-auth a:not(.sz-btn):hover { color: var(--sz-blue-hover); text-decoration: underline; }
/* 正文段落和表单说明里的链接加下划线，不只靠颜色区分（P15，axe link-in-text-block）；导航、按钮、页脚不在这里 */
.sz-auth p a:not(.sz-btn), .sz-auth p a:not(.sz-btn):visited,
.sz-auth .sz-check a, .sz-auth .sz-check a:visited,
.sz-auth .sz-norefund a, .sz-auth .sz-norefund a:visited,
.sz-auth .sz-faq dd a, .sz-auth .sz-faq dd a:visited { text-decoration: underline; }

/* 锚点按钮：旧的 a:visited { display:block; color:#000 } 优先级比 .sz-btn 高，这里压回去 */
.sz-auth a.sz-btn, .sz-auth a.sz-btn:visited, .sz-auth a.sz-btn:active { display: inline-flex; text-decoration: none; }
.sz-auth a.sz-btn-primary, .sz-auth a.sz-btn-primary:visited, .sz-auth a.sz-btn-primary:hover { color: #fff; }
.sz-auth a.sz-btn-outline, .sz-auth a.sz-btn-outline:visited { color: var(--sz-blue); }
.sz-auth .sz-btn-lg { height: 48px; padding: 0 28px; font-size: 16px; }
.sz-auth .sz-btn-block { display: flex; width: 100%; }

/* ---------- 卡片 ---------- */
.sz-auth-card {
  width: 440px;
  max-width: 100%;
  margin: 0 auto;
  padding: 32px 36px;
  border: 1px solid var(--sz-line);
  border-radius: 10px;
  background: var(--sz-white);
}
.sz-auth-card-wide { width: 640px; }
.sz-auth .sz-lead { margin-bottom: 24px; font-size: 14px; text-align: center; }
.sz-auth .sz-sub { margin: 16px 0 0; font-size: 14px; text-align: center; }

/* ---------- 表单 ---------- */
.sz-auth .sz-field { margin-bottom: 16px; }
/* 不选中 .sz-check：注册页 #agree 的 label 也是 .sz-field 的直接子元素，它要保持 flex（P16） */
.sz-auth .sz-field > label:not(.sz-check) {
  display: block;
  margin-bottom: 6px;
  color: var(--sz-g800);
  font-size: 14px;
  cursor: pointer;
}
.sz-auth .sz-req { margin-left: 2px; color: var(--sz-error-ink); }
.sz-auth .sz-muted { color: var(--sz-g700); font-size: 13px; font-weight: 400; }
.sz-auth .sz-input { border: 1px solid var(--sz-line); }
.sz-auth .sz-input.sz-input-error { border-color: var(--sz-error); }
.sz-select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--sz-line);
  border-radius: var(--sz-radius);
  background: var(--sz-white);
  color: var(--sz-ink);
  font: inherit;
  font-size: 15px;
}
.sz-select:focus {
  outline: none;
  border-color: var(--sz-blue);
  box-shadow: 0 0 0 3px rgba(23, 86, 153, .12);
}
.sz-select.sz-input-error { border-color: var(--sz-error); }
.sz-auth .sz-field-error, .sz-auth .sz-form-error {
  margin-top: 5px;
  color: var(--sz-error-ink);
  font-size: 13px;
  line-height: 1.5;
}
/* 输入框下方的常驻说明（灰色）；出错时同一个元素换成红字（注册页用户名，P12） */
.sz-auth .sz-field-hint {
  margin: 5px 0 0;
  color: var(--sz-g700);
  font-size: 13px;
  line-height: 1.5;
}
.sz-auth .sz-field-hint.sz-field-hint-error { color: var(--sz-error-ink); }
/* 分组标题下面紧跟的说明（资料表单"收件地址"）：离标题 6px（标题下边距 14px），离下面的字段 14px（R-P37-8） */
.sz-auth .sz-section-title + .sz-field-hint { margin: -8px 0 14px; }
.sz-auth .sz-form-error[hidden] { display: none; }
.sz-auth .sz-form-error { margin: 0 0 12px; }

/* 整行 label 可点（P15：注册 #agree、登录 #remember、确认订单 #co-agree），复选框对齐第一行（flex-start）。
   电脑端盒模型与 P15 之前完全相同；可点区域由下面的 ::before 上下各向外扩 2px（单行 21px → 25px，≥ 24×24，WCAG 2.5.8），
   它绝对定位、不占布局。手机端 44px 见文件末尾的 768px 块。 */
.sz-auth .sz-check {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--sz-g800);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
/* z-index: -1 配合 label 的 z-index: 0：伪元素在 label 自己的层叠上下文里垫在内容下面，复选框和条款链接仍能直接点到 */
.sz-auth .sz-check::before {
  content: "";
  position: absolute;
  top: -2px;
  right: 0;
  bottom: -2px;
  left: 0;
  z-index: -1;
}
.sz-auth .sz-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--sz-blue); }
.sz-auth .sz-check span { font-size: 14px; }
/* 键盘聚焦：base.css 对 input 写了 outline: none !important，这里同样用 !important 压回来 */
.sz-auth .sz-check input:focus-visible { outline: 2px solid var(--sz-blue) !important; outline-offset: 2px; }
.sz-auth .sz-check a:focus-visible { outline: 2px solid var(--sz-blue) !important; outline-offset: 2px; }

.sz-auth .sz-captcha-row { display: flex; gap: 10px; }
.sz-auth .sz-captcha-row .sz-input { flex: 1; min-width: 0; }
.sz-auth .sz-captcha-img {
  flex: none;
  width: 120px;
  height: 44px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--sz-line);
  border-radius: var(--sz-radius);
  background: var(--sz-bg-soft);
  color: var(--sz-g700);
  font-size: 12px;
  cursor: pointer;
}
.sz-auth .sz-captcha-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sz-auth .sz-captcha-img img[hidden] { display: none; }

.sz-auth .sz-section-title {
  margin: 8px 0 14px;
  padding-top: 16px;
  border-top: 1px solid var(--sz-line);
}
.sz-auth .sz-section-title:first-child { padding-top: 0; border-top: none; }
.sz-auth .sz-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.sz-auth .sz-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
.sz-auth .sz-form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.sz-auth .sz-form-actions .sz-btn { min-width: 140px; }

/* 页面内的成功提示（完善资料页顶部） */
.sz-auth .sz-notice-ok {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: var(--sz-radius);
  background: var(--sz-ok-soft);
  color: #1F6B41;
  font-size: 14px;
}

/* ---------- 结果页（链接结果、待确认）---------- */
.sz-auth .sz-result { text-align: center; }
.sz-auth .sz-result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
.sz-auth .sz-result-ok { background: var(--sz-ok-soft); color: var(--sz-ok); }
.sz-auth .sz-result-fail { background: var(--sz-error-soft); color: var(--sz-error-ink); }
.sz-auth .sz-result-info, .sz-auth .sz-result-loading { background: var(--sz-blue-soft); color: var(--sz-blue); }
.sz-auth .sz-result h1 { font-size: 22px; margin-bottom: 10px; }
.sz-auth .sz-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.sz-auth .sz-result-actions.sz-stack { flex-direction: column; align-items: stretch; }
.sz-auth .sz-pending-email {
  margin: 6px 0 10px;
  color: var(--sz-ink);
  font-size: 17px;
  font-weight: 600;
  word-break: break-all;
}
.sz-auth .sz-tips {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--sz-radius);
  background: var(--sz-bg-soft);
  color: var(--sz-g800);
  font-size: 14px;
  text-align: left;
}

/* ---------- 条款、隐私正文 ---------- */
.sz-auth .sz-doc { max-width: 820px; margin: 0 auto; padding: 8px 8px 0; }
.sz-auth .sz-doc h1 { margin-bottom: 8px; font-size: 28px; text-align: left; }
.sz-auth .sz-doc h2 { margin: 28px 0 8px; font-size: 18px; }
.sz-auth .sz-doc p { color: var(--sz-g800); }
.sz-auth .sz-doc ul { margin: 0 0 16px; padding-left: 22px; color: var(--sz-g800); }
.sz-auth .sz-doc li { margin-bottom: 6px; line-height: 1.7; }
.sz-auth .sz-doc-meta { color: var(--sz-g700); font-size: 13px; }

/* ---------- 手机端 ≤768px ---------- */
@media (max-width: 768px) {
  .sz-auth { min-height: 0; padding: 0 0 32px; background: var(--sz-white); }
  .sz-auth-card, .sz-auth-card-wide { width: 100%; padding: 24px 16px; border: none; border-radius: 0; }
  .sz-auth h1 { font-size: 22px; }
  .sz-auth .sz-doc { padding: 24px 16px 0; }
  .sz-auth .sz-doc h1 { font-size: 24px; }
  .sz-select { font-size: 16px; }
  .sz-auth .sz-grid-2, .sz-auth .sz-grid-3 { grid-template-columns: 1fr; }
  .sz-auth .sz-grid-3 .sz-select { margin-bottom: 8px; }
  .sz-auth .sz-form-actions { flex-direction: column; }
  .sz-auth .sz-form-actions .sz-btn { width: 100%; }
  .sz-auth .sz-result-actions { flex-direction: column; align-items: stretch; }
  .sz-auth .sz-btn-lg { height: 48px; }
}

/* ====================================================================
 * 全站账号状态条与弹框（js/account/account-status.js）
 * 老页面也会用到：旧的 base.css 会把 p / li / h3 的字号设成 rem、a 变块级、列表去圆点，
 * 这里用 px 和更高优先级的选择器压回去。
 * ==================================================================== */
.sz-btn-sm { height: 32px; padding: 0 14px; font-size: 14px; }

.sz-banner { font-family: "Microsoft Yahei", sans-serif; line-height: 1.5; }
.sz-banner .sz-banner-text { flex: 1; min-width: 220px; font-size: 14px; }
.sz-banner .sz-banner-text b { font-weight: 600; font-size: inherit; }
.sz-banner .sz-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* 条款弹框盖住一切（旧页面里有 z-index 到 999 的进度条） */
.sz-modal-mask-top { z-index: 1000; }

.sz-modal { overflow-x: hidden; overflow-y: auto; font-family: "Microsoft Yahei", sans-serif; line-height: 1.7; text-align: left; }
/* 内容比窗口高时仍可滚动（滚轮 / 触摸），但不显示滚动条：旧页面的全局 ::-webkit-scrollbar 样式会在
   内容只差不到 1px 时也画出一条灰色滚动条 */
.sz-modal { scrollbar-width: none; }
.sz-modal::-webkit-scrollbar { display: none; }
.sz-modal form { margin: 0; }
.sz-modal h3 { color: var(--sz-ink); }
.sz-modal p, .sz-modal li, .sz-modal label { font-size: 15px; cursor: auto; }
.sz-modal p { margin: 0 0 8px; color: var(--sz-g800); }
.sz-modal a, .sz-modal a:visited, .sz-modal a:active {
  display: inline;
  color: var(--sz-blue);
  text-decoration: none;
  cursor: pointer;
}
.sz-modal a:hover { color: var(--sz-blue-hover); text-decoration: underline; }
.sz-modal-note p { margin: 12px 0 4px; color: var(--sz-g700); font-size: 13px; }
.sz-modal-note ul { margin: 0; padding-left: 18px; list-style: disc; }
.sz-modal-note li { margin: 2px 0; color: var(--sz-g700); font-size: 13px; list-style: disc; }
.sz-modal .sz-field { margin-top: 16px; }
.sz-modal .sz-field > label { display: block; margin-bottom: 6px; color: var(--sz-g800); font-size: 14px; }
.sz-modal .sz-field-error { margin-top: 8px; }
.sz-modal-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--sz-g700);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.sz-modal-close:hover { color: var(--sz-ink); }

/* ====================================================================
 * 登录、找回密码、设新密码、重复邮箱确认（.sz-auth 内）
 * ==================================================================== */
.sz-auth .sz-row-between {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: -4px 0 18px;
}
.sz-auth .sz-row-between .sz-check { margin-bottom: 0; }
.sz-auth .sz-row-between a:not(.sz-btn) { font-size: 14px; }
.sz-auth .sz-small-note { margin: 8px 0 0; color: var(--sz-g700); font-size: 13px; text-align: center; }
.sz-auth .sz-notice-ok[hidden] { display: none; }
/* 看起来像链接的按钮（登录页的"重新发送确认邮件"） */
.sz-auth .sz-link-btn {
  display: inline;
  margin-left: 4px;
  padding: 0;
  border: none;
  background: none;
  color: var(--sz-blue);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.sz-auth .sz-link-btn[hidden] { display: none; }
.sz-auth .sz-link-btn:disabled { color: var(--sz-g700); cursor: not-allowed; }

/* 重复邮箱确认页（A8）：左对齐的确认卡片 */
.sz-auth .sz-confirm h1 { text-align: left; }
.sz-auth .sz-confirm-lead { margin-bottom: 14px; }
.sz-auth .sz-panel-warn {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--sz-warn-line);
  border-radius: var(--sz-radius);
  background: var(--sz-warn-soft);
  color: var(--sz-warn-ink);
}
.sz-auth .sz-panel-warn p { margin: 0 0 6px; color: inherit; font-size: 14px; }
.sz-auth .sz-panel-warn p:last-child { margin-bottom: 0; }
.sz-auth .sz-confirm-notes { margin: 0 0 20px; color: var(--sz-g700); }
.sz-auth .sz-confirm-notes li { font-size: 13px; }
.sz-auth .sz-confirm-actions { display: flex; gap: 12px; }
.sz-auth .sz-confirm-actions .sz-btn { flex: 1; height: auto; min-height: 48px; padding: 8px 12px; line-height: 1.3; white-space: normal; }

@media (max-width: 768px) {
  /* 触控尺寸：小按钮在手机上也是 44px 高（放在 .sz-btn-sm 基础规则之后，才压得过它） */
  .sz-btn-sm { height: 44px; }
  .sz-banner .sz-btn-sm { height: 44px; flex: 1; }
  .sz-banner .sz-banner-actions { width: 100%; }
  .sz-auth .sz-confirm-actions { flex-direction: column; }
}

/* ====================================================================
 * 会员中心（userCenter.html，js/account/member-center.js）与注销页（cancel.html）
 * 外层是 <main class="sz-auth sz-member">，沿用 .sz-auth 对旧 base.css 的覆盖。
 * ==================================================================== */
/* 实心危险按钮：白字要 ≥ 4.5:1，底色用 --sz-error-ink（P15 补充轮；白字 5.15:1） */
.sz-btn-danger { background: var(--sz-error-ink); border-color: var(--sz-error-ink); color: #fff; }
.sz-btn-danger:hover { background: #B8433E; border-color: #B8433E; }
.sz-btn-danger-outline { background: var(--sz-white); border-color: var(--sz-error-ink); color: var(--sz-error-ink); }
.sz-btn-danger-outline:hover { background: var(--sz-error-soft); }
.sz-btn-danger-text { color: var(--sz-error-ink); border-color: var(--sz-line); }
.sz-btn-danger-text:hover { background: var(--sz-error-soft); }
.sz-auth a.sz-btn-danger, .sz-auth a.sz-btn-danger:visited { color: #fff; }
.sz-auth a.sz-btn-danger-outline, .sz-auth a.sz-btn-danger-outline:visited { color: var(--sz-error-ink); }

.sz-member { padding: 32px 16px 56px; }
.sz-member-wrap { display: flex; align-items: flex-start; gap: 24px; max-width: 1100px; margin: 0 auto; }
.sz-member-side {
  flex: none;
  width: 232px;
  overflow: hidden;
  border: 1px solid var(--sz-line);
  border-radius: 8px;
  background: var(--sz-white);
}
.sz-member-user { padding: 20px; border-bottom: 1px solid var(--sz-line); text-align: center; }
.sz-auth .sz-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--sz-blue-soft);
  color: var(--sz-blue);
  font-size: 24px;
  font-weight: 600;
}
.sz-auth .sz-member-name {
  margin-bottom: 6px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sz-auth .sz-tier {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 10px;
  background: var(--sz-bg-soft);
  color: var(--sz-g800);
  font-size: 12px;
  line-height: 20px;
}
.sz-auth .sz-tier-free { background: var(--sz-blue-soft); color: var(--sz-blue); }
.sz-auth .sz-tier-warn { background: var(--sz-warn-soft); color: var(--sz-warn-ink); }
.sz-auth .sz-tier:empty { display: none; }

.sz-member-tabs { display: block; }
.sz-auth .sz-member-tabs a.sz-member-tab,
.sz-auth .sz-member-tabs a.sz-member-tab:visited {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 20px;
  border-left: 3px solid transparent;
  color: var(--sz-ink);
  font-size: 15px;
}
.sz-auth .sz-member-tabs a.sz-member-tab:hover { background: var(--sz-bg-soft); text-decoration: none; }
.sz-auth .sz-member-tabs a.sz-member-tab.sz-on {
  border-left-color: var(--sz-blue);
  background: var(--sz-blue-soft);
  color: var(--sz-blue);
  font-weight: 600;
}

.sz-auth .sz-member-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.sz-auth .sz-member-links a:not(.sz-btn), .sz-auth .sz-member-links .sz-link-btn { margin: 0; font-size: 14px; }
.sz-auth .sz-member-links-side {
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
  border-top: 1px solid var(--sz-line);
}
.sz-auth .sz-member-links-side a:not(.sz-btn), .sz-auth .sz-member-links-side .sz-link-btn {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 23px;
  color: var(--sz-g800);
  text-decoration: none;
  text-align: left;
}
.sz-auth .sz-member-links-side a:not(.sz-btn):hover, .sz-auth .sz-member-links-side .sz-link-btn:hover {
  background: var(--sz-bg-soft);
  text-decoration: none;
}
.sz-auth .sz-member-links-bottom { display: none; }

.sz-member-main { flex: 1; min-width: 0; }
.sz-auth .sz-view-title { margin: 0 0 16px; font-size: 22px; text-align: left; }
.sz-member-hint { margin-bottom: 16px; border: 1px solid var(--sz-blue-line); border-radius: 8px; }

.sz-panel {
  box-sizing: border-box;
  margin-bottom: 16px;
  padding: 20px 24px;
  border: 1px solid var(--sz-line);
  border-radius: 8px;
  background: var(--sz-white);
}
.sz-auth .sz-panel h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.sz-auth .sz-panel p { margin: 0 0 8px; }
.sz-auth .sz-muted-text { color: var(--sz-g700); font-size: 14px; }
.sz-auth .sz-small { color: var(--sz-g700); font-size: 13px; }
.sz-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sz-auth .sz-panel-head h3 { margin: 0; }
.sz-panel-head .sz-select { width: 160px; }
.sz-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.sz-auth .sz-empty { margin: 0; padding: 12px 0; color: var(--sz-g700); font-size: 14px; }
.sz-auth .sz-note {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: var(--sz-radius);
  background: var(--sz-ok-soft);
  color: #1F6B41;
  font-size: 14px;
}
.sz-auth .sz-note[hidden] { display: none; }

.sz-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--sz-line); }
.sz-row:first-child { padding-top: 0; border-top: none; }
.sz-row:last-child { padding-bottom: 0; }
.sz-auth .sz-row-label { flex: none; width: 96px; color: var(--sz-g700); font-size: 14px; }
.sz-auth .sz-row-value { flex: 1; min-width: 0; word-break: break-all; font-size: 15px; }
.sz-auth .sz-row-action { flex: none; }
.sz-auth .sz-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--sz-bg-soft);
  color: var(--sz-g800);
  font-size: 12px;
  line-height: 20px;
}
.sz-auth .sz-badge-ok { background: var(--sz-ok-soft); color: #1F6B41; }
.sz-auth .sz-badge-warn { background: var(--sz-warn-soft); color: var(--sz-warn-ink); }
.sz-auth .sz-row-value .sz-link-btn { margin-left: 4px; font-size: 13px; }

.sz-auth .sz-inline-form { max-width: 400px; margin: 0 0 4px 112px; padding: 4px 0 8px; }
.sz-auth .sz-inline-form[hidden] { display: none; }
.sz-auth .sz-inline-form .sz-panel-actions { margin-top: 4px; }

/* API Key 表 */
.sz-key-area { overflow-x: auto; }
.sz-auth .sz-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sz-auth .sz-table th {
  padding: 10px 8px;
  border-bottom: 1px solid var(--sz-line);
  color: var(--sz-g700);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.sz-auth .sz-table td { padding: 12px 8px; border-bottom: 1px solid var(--sz-line); text-align: left; vertical-align: middle; }
.sz-auth .sz-table tr:last-child td { border-bottom: none; }
.sz-auth .sz-key { font-family: Consolas, Menlo, monospace; }
.sz-auth .sz-key-copy {
  margin-left: 10px;
  padding: 2px 4px;
  border: none;
  background: none;
  cursor: pointer;
  vertical-align: middle;
}
.sz-auth .sz-key-copy img { display: block; width: 16px; height: 16px; }

/* 注销页 */
.sz-auth .sz-cancel-card { width: 560px; }
.sz-auth .sz-steps { display: flex; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 14px; }
.sz-auth .sz-steps li {
  flex: 1;
  margin: 0;
  padding: 6px 0;
  border-bottom: 3px solid var(--sz-line);
  color: var(--sz-g700);
  font-size: 14px;
  list-style: none;
  text-align: center;
}
.sz-auth .sz-steps li.sz-on { border-bottom-color: var(--sz-error); color: var(--sz-error-ink); font-weight: 600; }
.sz-auth .sz-conseq {
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid #F3C9C6;
  border-radius: 8px;
  background: var(--sz-error-soft);
}
.sz-auth .sz-conseq p { margin: 0 0 6px; color: var(--sz-ink); }
.sz-auth .sz-conseq p:last-child { margin-bottom: 0; }
.sz-auth .sz-conseq li { margin: 4px 0; font-size: 14px; }
.sz-auth .sz-cancel-actions { display: flex; gap: 12px; margin-top: 8px; }
.sz-auth .sz-cancel-actions .sz-btn { flex: 1; }
.sz-auth [hidden] { display: none; }

/* ---------- 手机端 ≤768px ---------- */
@media (max-width: 768px) {
  .sz-member { padding: 0 0 32px; }
  .sz-member-wrap { display: block; }
  .sz-member-side { width: 100%; border: none; border-bottom: 1px solid var(--sz-line); border-radius: 0; }
  .sz-member-user { display: none; }
  .sz-member-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .sz-member-tabs::-webkit-scrollbar { display: none; }
  .sz-auth .sz-member-tabs a.sz-member-tab,
  .sz-auth .sz-member-tabs a.sz-member-tab:visited {
    flex: none;
    height: 46px;
    padding: 0 14px;
    border-bottom: 3px solid transparent;
    border-left: none;
  }
  .sz-auth .sz-member-tabs a.sz-member-tab.sz-on { border-bottom-color: var(--sz-blue); background: none; }
  .sz-auth .sz-member-links-side { display: none; }
  .sz-auth .sz-member-links-bottom { display: flex; padding: 8px 16px 0; }
  .sz-member-main { padding: 16px 16px 0; }
  .sz-member-hint { border-radius: 6px; }
  .sz-auth .sz-view-title { margin-bottom: 12px; font-size: 19px; }
  .sz-panel { padding: 16px; }
  .sz-row { flex-wrap: wrap; gap: 6px 12px; }
  .sz-auth .sz-row-label { width: 100%; }
  .sz-auth .sz-row-value { flex: 1 1 60%; }
  .sz-auth .sz-inline-form { margin-left: 0; max-width: none; }
  .sz-panel-head { flex-wrap: wrap; }
  .sz-panel-head .sz-select { width: 100%; }
  .sz-panel-actions .sz-btn { flex: 1 1 auto; }

  /* Key 表改成卡片：每行一张，字段名放在值前面 */
  .sz-auth .sz-table thead { display: none; }
  .sz-auth .sz-table, .sz-auth .sz-table tbody, .sz-auth .sz-table tr, .sz-auth .sz-table td { display: block; width: 100%; }
  .sz-auth .sz-table tr { padding: 10px 0; border-bottom: 1px solid var(--sz-line); }
  .sz-auth .sz-table tr:last-child { border-bottom: none; }
  .sz-auth .sz-table td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: none; text-align: right; }
  .sz-auth .sz-table td::before { content: attr(data-label); flex: none; color: var(--sz-g700); text-align: left; }

  .sz-auth .sz-cancel-card { width: 100%; }
  .sz-auth .sz-cancel-actions { flex-direction: column-reverse; }
  .sz-auth .sz-cancel-actions .sz-btn { flex: none; width: 100%; }
}

/* ====================================================================
 * 会员购买链路：套餐页（product.html）、确认订单（checkout.html）、支付结果（payment.html）
 * 会被切换 hidden 的块（身份行、暂停购买、抵扣说明、环境提示）不设 display，交给 .sz-auth [hidden]。
 * ==================================================================== */
.sz-shop { padding: 32px 16px 56px; }
.sz-shop-wrap { max-width: 1100px; margin: 0 auto; }
.sz-auth .sz-plans-hero { padding: 12px 0 4px; text-align: center; }
.sz-auth .sz-plans-hero h1 { font-size: 30px; }
.sz-auth .sz-plans-hero p { margin: 0; }
.sz-auth .sz-plans-me { margin: 16px 0 0; color: var(--sz-ink); font-size: 14px; text-align: center; }
.sz-auth .sz-plans-me .sz-tier { margin-right: 2px; background: var(--sz-blue-soft); color: var(--sz-blue); }
.sz-auth .sz-plans-paused {
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--sz-warn-line);
  border-radius: 8px;
  background: var(--sz-warn-soft);
  color: var(--sz-warn-ink);
  font-size: 14px;
  text-align: center;
}
.sz-plans-free { display: flex; gap: 16px; margin: 24px 0 20px; }
.sz-plans-free-item {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--sz-line);
  border-radius: 8px;
  background: var(--sz-white);
}
.sz-auth .sz-plans-free-item b { display: block; color: var(--sz-ink); font-size: 16px; }
.sz-auth .sz-plans-free-note { color: var(--sz-g700); font-size: 13px; }
.sz-auth .sz-plans-free-act { flex: none; }
/* 套餐卡片区（P24）：按在售档位数量排，product.js 给 sz-plans-n2 / n3 / n4（档位 ≤ 2 → 2 列，3 → 3 列，≥ 4 → 4 列）；
   电脑端一行最多 4 张，多了自动折行；私人定制卡单独占一行；窄屏 2 列，手机竖排（见下方媒体查询） */
.sz-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.sz-plans.sz-plans-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sz-plans.sz-plans-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sz-plans.sz-plans-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sz-plans > .sz-plan-custom { grid-column: 1 / -1; }
.sz-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  border: 1px solid var(--sz-line);
  border-radius: 10px;
  background: var(--sz-white);
}
.sz-plan.sz-plan-current { border: 2px solid var(--sz-blue); }
.sz-plan.sz-plan-custom { background: var(--sz-bg-soft); }
.sz-auth .sz-plan-tag {
  position: absolute;
  top: -11px;
  left: 20px;
  padding: 1px 10px;
  border-radius: 10px;
  background: var(--sz-blue);
  color: #fff;
  font-size: 12px;
}
.sz-auth .sz-plan h3 { margin: 0 0 10px; color: var(--sz-ink); font-size: 20px; font-weight: 600; }
.sz-auth .sz-plan-price { color: var(--sz-ink); font-size: 32px; font-weight: 700; line-height: 1.3; }
.sz-auth .sz-plan-price small { color: var(--sz-g700); font-size: 14px; font-weight: 400; }
.sz-auth .sz-plan-price-text { font-size: 24px; }
.sz-auth .sz-plan-usd { min-height: 20px; margin-bottom: 16px; color: var(--sz-g700); font-size: 13px; }
.sz-auth .sz-plan ul { flex: 1; margin: 0 0 20px; padding: 0; list-style: none; }
.sz-auth .sz-plan li { padding: 6px 0; border-top: 1px dashed var(--sz-line); color: var(--sz-g800); list-style: none; }
.sz-auth .sz-plan li b { margin: 0 2px; color: var(--sz-ink); }
.sz-auth .sz-plan-why { min-height: 18px; margin-top: 8px; color: var(--sz-g700); font-size: 12.5px; text-align: center; }
.sz-auth .sz-plans-empty { grid-column: 1 / -1; margin: 0; padding: 24px 0; text-align: center; }
.sz-auth .sz-norefund {
  margin: 24px 0 8px;
  padding: 12px 16px;
  border: 1px solid var(--sz-warn-line);
  border-radius: 8px;
  background: var(--sz-warn-soft);
  color: var(--sz-warn-ink);
  font-size: 14px;
}
.sz-auth .sz-norefund b { color: var(--sz-warn-ink); }
.sz-auth .sz-faq { margin: 24px 0 0; }
.sz-auth .sz-faq h2 { margin-bottom: 10px; font-size: 17px; }
.sz-auth .sz-faq dt { margin-top: 12px; color: var(--sz-ink); font-size: 14px; font-weight: 600; }
.sz-auth .sz-faq dd { margin: 4px 0 0; color: var(--sz-g800); font-size: 14px; }

/* 确认订单 */
.sz-co { display: flex; align-items: flex-start; gap: 24px; }
.sz-co-main { flex: 1; min-width: 0; }
.sz-co-side { flex: none; width: 360px; position: sticky; top: 96px; }
.sz-auth .sz-co-title { margin-bottom: 20px; text-align: left; }
.sz-auth .sz-kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; margin: 0; font-size: 15px; }
.sz-auth .sz-kv dt { color: var(--sz-g700); font-weight: 400; }
.sz-auth .sz-kv dd { margin: 0; color: var(--sz-ink); }
.sz-auth .sz-deduct {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--sz-radius);
  background: var(--sz-bg-soft);
  color: var(--sz-g800);
  font-size: 13.5px;
}
.sz-auth .sz-deduct span { font-size: 13.5px; }
.sz-auth .sz-deduct .sz-deduct-line { display: block; }
/* 列数随渠道数（电脑 3 个；微信内、手机浏览器 2 个）：每个选项一列，等宽 */
.sz-pay-options { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.sz-auth .sz-pay-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  margin: 0;
  border: 1px solid var(--sz-line);
  border-radius: 8px;
  color: var(--sz-ink);
  font-size: 15px;
  cursor: pointer;
}
.sz-auth .sz-pay-option input { margin: 0; accent-color: var(--sz-blue); }
.sz-auth .sz-pay-option img { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; }
.sz-auth .sz-pay-option:has(input:checked) { border: 2px solid var(--sz-blue); background: var(--sz-blue-soft); }
.sz-auth .sz-pay-tip {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--sz-warn-line);
  border-radius: var(--sz-radius);
  background: var(--sz-warn-soft);
  color: var(--sz-warn-ink);
  font-size: 13.5px;
}
.sz-auth .sz-co-rmb { margin: 16px 0 0; }
.sz-co-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.sz-auth .sz-co-row span:first-child { color: var(--sz-g700); }
.sz-co-row.sz-co-total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--sz-line); font-size: 18px; font-weight: 600; }
.sz-auth .sz-co-total span:first-child { color: var(--sz-ink); }
.sz-auth .sz-co-total b { color: var(--sz-red); font-size: 24px; }
.sz-co-side .sz-check { margin-top: 4px; }
.sz-co-side .sz-field-error, .sz-co-side .sz-form-error { margin: 4px 0 0; }
.sz-co-side #co-pay { margin-top: 16px; }

/* 支付结果 */
.sz-auth .sz-pay-card { width: 560px; }
.sz-auth .sz-pay-key {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: var(--sz-radius);
  background: var(--sz-bg-soft);
  text-align: left;
}
.sz-auth .sz-pay-key .sz-key { flex: 1; min-width: 0; word-break: break-all; }
.sz-auth .sz-pay-card .sz-small { margin-top: 8px; }

@media (max-width: 1024px) {
  .sz-plans, .sz-plans.sz-plans-n3, .sz-plans.sz-plans-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .sz-shop { padding: 16px 16px 40px; }
  .sz-auth .sz-plans-hero h1 { font-size: 24px; }
  .sz-plans-free { flex-direction: column; gap: 10px; margin: 20px 0 16px; }
  .sz-plans, .sz-plans.sz-plans-n2, .sz-plans.sz-plans-n3, .sz-plans.sz-plans-n4 { grid-template-columns: 1fr; gap: 20px; }
  .sz-co { flex-direction: column; gap: 0; }
  .sz-co-side { width: 100%; position: static; padding-bottom: 72px; }
  .sz-pay-options { grid-auto-flow: row; grid-template-columns: 1fr; }
  .sz-auth .sz-kv { grid-template-columns: 80px 1fr; }
  /* 手机上"去支付"固定在底部 */
  .sz-co-side #co-pay { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; width: auto; margin: 0; box-shadow: var(--sz-shadow); }
  .sz-auth .sz-pay-card { width: 100%; }
}

/* ============================================================
 * 老页面换肤（M8）：顶栏、页脚、正文
 * 顶栏 header.sz-header 的 class 由 js/nav.js 加上；正文用 body.sz-oldpage 限定范围，
 * 不影响用 .sz-* 组件的新页面和后台。需要排在 bootstrap / index.css / base.css 之后加载。
 * 颜色一律用上面的 --sz-* 变量。
 * ============================================================ */

/* ---------- 顶栏 ---------- */
header.sz-header {
  box-sizing: border-box;
  position: relative; /* 不用 sticky：base.css 的 html, body { height: 100% } 会让吸顶只维持一屏高 */
  z-index: 30;
  width: 100%;
  min-width: 0;
  height: 72px;
  margin: 0;
  padding: 0 24px;
  padding: 0 max(24px, calc((100% - 1200px) / 2));
  overflow: visible;
  border-bottom: 1px solid var(--sz-line);
  background: var(--sz-white);
  font-family: "Microsoft Yahei", sans-serif;
}
header.sz-header .logo { flex: none; width: auto; margin: 0; }
header.sz-header .logo a, header.sz-header .logo a:visited, header.sz-header .logo a:hover { display: block; line-height: 0; opacity: 1; }
header.sz-header .logo img { display: block; width: auto; height: 38px; }
header.sz-header .nav {
  align-self: stretch;
  margin: 0 0 0 40px;
  padding: 0;
}
header.sz-header .nav::before, header.sz-header .nav::after { display: none; }
header.sz-header .nav > li { display: flex; margin: 0; font-size: 16px; }
header.sz-header .nav > li + li { margin-left: 32px; }
header.sz-header .nav > li > a, header.sz-header .nav > li > a:visited, header.sz-header .nav > li > a:active {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 3px 0 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--sz-ink);
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}
header.sz-header .nav > li > a:hover, header.sz-header .nav > li > a:focus { background: transparent; color: var(--sz-blue); opacity: 1; text-decoration: none; }
header.sz-header .nav > li > a.on, header.sz-header .nav > li > a.on:visited { border-bottom-color: var(--sz-blue); color: var(--sz-blue); font-weight: 600; }
header.sz-header .btns { align-items: center; margin: 0; }
header.sz-header .btns a, header.sz-header .btns a:visited, header.sz-header .btns a:active {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin: 0 0 0 12px;
  padding: 0 20px;
  border: 1px solid var(--sz-blue);
  border-radius: var(--sz-radius);
  background: var(--sz-white);
  color: var(--sz-blue);
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}
header.sz-header .btns a:hover { background: var(--sz-blue-soft); opacity: 1; text-decoration: none; }
header.sz-header .btns a:nth-of-type(2), header.sz-header .btns a:nth-of-type(2):visited, header.sz-header .btns a.login-btn1, header.sz-header .btns a.login-btn1:visited {
  border-color: var(--sz-blue);
  background: var(--sz-blue);
  color: var(--sz-white);
}
header.sz-header .btns a:nth-of-type(2):hover, header.sz-header .btns a.login-btn1:hover { border-color: var(--sz-blue-hover); background: var(--sz-blue-hover); }
header.sz-header .btns a.login-btn2, header.sz-header .btns a.login-btn2:visited { border: 0; color: var(--sz-g800) !important; }
header.sz-header .btns a.login-btn2:hover { background: var(--sz-bg-soft) !important; color: var(--sz-blue) !important; }
header.sz-header .btns a:focus-visible, header.sz-header .nav > li > a:focus-visible, header.sz-header .nav-list-item a:focus-visible {
  outline: 2px solid var(--sz-blue) !important;
  outline-offset: 2px;
}

/* 抽屉菜单（≤1025px 时 base.css 隐藏桌面菜单、显示 .nav-icon） */
header.sz-header .nav-icon {
  flex: none;
  width: 44px;
  max-width: 44px;
  height: 44px;
  margin: 0;
  background-size: 28px 28px;
  cursor: pointer;
}
header.sz-header .nav-icon .nav-container {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 9;
  width: 78%;
  max-width: 320px;
  height: 100%;
  overflow-y: auto;
  background: var(--sz-white);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .25s, visibility .25s;
  cursor: default;
}
header.sz-header .nav-icon .nav-container.nav-container-active {
  transform: none;
  visibility: visible;
}
/* 遮罩：nav.js 在抽屉后面生成的真实元素，点它只关闭菜单；抽屉打开时才显示 */
header.sz-header .nav-icon .sz-nav-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  display: none;
  background: var(--sz-overlay);
  cursor: default;
}
header.sz-header .nav-icon .nav-container.nav-container-active + .sz-nav-mask { display: block; }
header.sz-header .nav-list { margin: 0; padding: 56px 0 24px; }
header.sz-header .nav-list-item {
  height: 52px;
  margin: 0;
  background: none;
  border-bottom: 1px solid var(--sz-line);
  font-size: 16px;
  line-height: 52px;
}
header.sz-header .nav-list-item a, header.sz-header .nav-list-item a:visited, header.sz-header .nav-list-item a:active, header.sz-header .nav-list-item a:hover {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 20px;
  color: var(--sz-ink);
  font-size: 16px;
}
header.sz-header .nav-list-item a.on, header.sz-header .nav-list-item a.login { color: var(--sz-blue); font-weight: 600; }
header.sz-header .nav-list-item a.on { background: var(--sz-blue-soft); }
header.sz-header .nav-list-item a.login-btn2 { border: 0; background: none !important; color: var(--sz-g800) !important; } /* 抽屉里的"退出"：与桌面按钮共用 index.css 的 .login-btn2 */

@media (max-width: 768px) {
  header.sz-header { height: 56px; padding: 0 16px; }
  header.sz-header .logo img { height: 30px; }
  header.sz-header .nav-list { padding-top: 64px; }
}

/* ---------- 页脚 ---------- */
footer.sz-footer {
  box-sizing: border-box;
  width: 100%;
  margin: 64px 0 0;
  padding: 0;
  background: var(--sz-ink);
  color: var(--sz-g600);
  font-family: "Microsoft Yahei", sans-serif;
  font-size: 14px;
  text-align: center;
}
/* base.css 的 html, body { height: 100% } 让 body 正好一屏高；页脚要求自己的顶边不小于 100vh，
   但又出不了 body，所以内容少的页面页脚贴在屏幕底部；内容多的页面页脚本来就在一屏之下，这条规则不起作用。
   不要把 body 改成 flex 布局：量过，首页、登录页、免责声明页的元素会移位。 */
footer.sz-footer { position: sticky; top: 100vh; }
footer.sz-footer .sz-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 8px;
  list-style: none;
}
footer.sz-footer .sz-footer-links li { margin: 0; font-size: 14px; line-height: 1.6; }
footer.sz-footer a, footer.sz-footer a:visited, footer.sz-footer a:active {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--sz-white);
  font-size: 14px;
  text-decoration: none;
  opacity: 1;
}
footer.sz-footer a:hover { color: var(--sz-white); text-decoration: underline; }
footer.sz-footer a:focus-visible { outline: 2px solid var(--sz-white) !important; outline-offset: 2px; }
footer.sz-footer .sz-footer-copy { margin: 0; padding: 0 16px 20px; color: var(--sz-g700-on-dark); font-size: 12px; line-height: 1.6; }
@media (max-width: 768px) {
  footer.sz-footer { margin-top: 40px; }
  footer.sz-footer a, footer.sz-footer a:visited { min-height: 44px; }
}

/* ---------- 老页面正文 ---------- */
body.sz-oldpage { color: var(--sz-ink); }
.sz-oldpage .contact-container a, .sz-oldpage .contact-container a:visited,
.sz-oldpage .questions-item a, .sz-oldpage .questions-item a:visited {
  display: inline;
  color: var(--sz-blue);
}
/* 答案正文里的链接加下划线，不只靠颜色区分（axe link-in-text-block） */
.sz-oldpage .questions-item .answer a, .sz-oldpage .questions-item .answer a:visited { text-decoration: underline; }
.sz-oldpage .contact-container a:hover, .sz-oldpage .questions-item a:hover { color: var(--sz-blue-hover); text-decoration: underline; }
.sz-oldpage .contact-container hr { border-top-color: var(--sz-line); }
.sz-oldpage .questions .questions-title { border: 1px solid var(--sz-line); background: var(--sz-bg-soft); box-shadow: none; color: var(--sz-ink); }
.sz-oldpage .questions-list .questions-item { border-color: var(--sz-line); box-shadow: none; }
.sz-oldpage .questions-item .answer { color: var(--sz-g800); }
/* 常见问题的收费表格（js/plan-data.js 填入）：外框横向滑动，手机宽度下页面本身不出现横向滚动 */
.sz-plan-table-wrap { max-width: 100%; margin-top: 0.15rem; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: normal; }
.sz-plan-table-wrap:focus-visible { outline: 2px solid var(--sz-blue) !important; outline-offset: 2px; }
.sz-plan-table { width: 100%; min-width: 30em; border-collapse: collapse; font-size: inherit; line-height: inherit; color: var(--sz-g800); }
.sz-plan-table th, .sz-plan-table td { padding: 0.4em 0.7em; border: 1px solid var(--sz-line); text-align: left; white-space: nowrap; }
.sz-plan-table th { background: var(--sz-bg-soft); color: var(--sz-ink); font-weight: 600; }
.sz-oldpage .panel-default { border-color: var(--sz-line); }
.sz-oldpage .panel-primary { border-color: var(--sz-blue); }
.sz-oldpage .panel-primary > .panel-heading { border-color: var(--sz-blue); background: var(--sz-blue); color: var(--sz-white); }
.sz-oldpage .btn-primary { border-color: var(--sz-blue); background: var(--sz-blue); color: var(--sz-white); }
.sz-oldpage .btn-primary:hover, .sz-oldpage .btn-primary:focus, .sz-oldpage .btn-primary:active { border-color: var(--sz-blue-hover); background: var(--sz-blue-hover); color: var(--sz-white); }
.sz-oldpage .btn-default { border-color: var(--sz-blue); background: var(--sz-white); color: var(--sz-blue); }
.sz-oldpage .btn-default:hover, .sz-oldpage .btn-default:focus, .sz-oldpage .btn-default:active { border-color: var(--sz-blue); background: var(--sz-blue-soft); color: var(--sz-blue); }
.sz-oldpage .btn:focus-visible { outline: 2px solid var(--sz-blue) !important; outline-offset: 2px; }
.sz-oldpage .input-group-addon { border-color: var(--sz-line); background: var(--sz-bg-soft); color: var(--sz-g800); }
.sz-oldpage .form-control { border-color: var(--sz-line); color: var(--sz-ink); }
.sz-oldpage .form-control:focus { border-color: var(--sz-blue); box-shadow: 0 0 0 3px rgba(23, 86, 153, .12); }
.sz-oldpage .list-group-item { border-color: var(--sz-line); }
.sz-oldpage .progress-bar { background-color: var(--sz-blue); }
.sz-oldpage .error-tips { color: var(--sz-error-ink); }
.sz-oldpage .map-feature-heading p { color: var(--sz-g800); }

/* 手机端：把 rem 换算出来的小字号提到可读，输入框与按钮 44px / 16px（避免 iOS 点输入框时放大页面） */
@media (max-width: 768px) {
  .sz-oldpage .map-feature-heading h1 { padding-bottom: 8px; font-size: 24px; }
  .sz-oldpage .map-feature-heading p { font-size: 14px; line-height: 1.7; }
  .sz-oldpage .map-query-panel .panel-title { font-size: 16px; }
  .sz-oldpage .map-query-panel .input-group .form-control,
  .sz-oldpage .map-query-panel .input-group-addon,
  .sz-oldpage .map-query-panel .input-group-btn .btn { height: 44px; font-size: 16px; }
  .sz-oldpage .map-query-panel .list-group-item { font-size: 14px; }
  .sz-oldpage .map-query-panel .show-grid .col-md-3 { min-width: 96px; }
  .sz-oldpage .error-tips { height: auto; min-height: 20px; font-size: 14px; line-height: 20px; }
  .sz-oldpage .questions .questions-title { height: auto; padding: 14px 16px; font-size: 20px; }
  .sz-oldpage .questions-item .question { font-size: 16px; line-height: 1.6; }
  .sz-oldpage .questions-item .answer { margin-left: 0; font-size: 14px; line-height: 1.7; }
  .sz-oldpage .contact-container { padding-right: 16px; padding-left: 16px; }
  .sz-oldpage .contact-container li { font-size: 14px; line-height: 1.7; }
  .sz-oldpage .contact-container a { display: inline-block; min-height: 24px; }
  .sz-oldpage .panel-body { font-size: 14px; }
}

/* ====================================================================
 * 首页：老客户 Key 入口（默认收起，邮编、地址共用）与查询按钮下方的提示链接
 * ==================================================================== */
.sz-oldkey { box-sizing: border-box; max-width: 24.8rem; margin: 0 auto; padding: 16px 0.4rem 0; text-align: right; font-family: "Microsoft Yahei", sans-serif; font-size: 14px; line-height: 1.6; }
.sz-oldkey .sz-oldkey-label { color: var(--sz-g700); font-size: 14px; }
.sz-oldkey a.sz-oldkey-toggle, .sz-oldkey a.sz-oldkey-toggle:visited, .sz-oldkey a.sz-oldkey-toggle:active {
  display: inline-block;
  margin-left: 6px;
  color: var(--sz-blue);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.sz-oldkey a.sz-oldkey-toggle:hover { color: var(--sz-blue-hover); text-decoration: underline; }
.sz-oldkey .sz-oldkey-box { display: none; max-width: 520px; margin: 10px 0 0 auto; text-align: left; }
.sz-oldkey .sz-oldkey-box.open { display: block; }
.sz-oldkey .sz-oldkey-box .form-control { height: 44px; font-size: 14px; }
.sz-oldkey .sz-oldkey-hint { margin: 6px 0 0; color: var(--sz-g700); font-size: 13px; line-height: 1.6; }
.sz-oldkey .sz-oldkey-hint a, .sz-oldkey .sz-oldkey-hint a:visited {
  display: inline;
  margin-left: 6px;
  color: var(--sz-blue);
  font-size: 13px;
  text-decoration: underline;
  white-space: nowrap;
  cursor: pointer;
}
.error-tips a.sz-tip-link, .error-tips a.sz-tip-link:visited {
  display: inline;
  color: var(--sz-blue);
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 768px) {
  .sz-oldkey { text-align: left; }
  .sz-oldkey .sz-oldkey-box { margin-left: 0; }
  .sz-oldkey .sz-oldkey-box .form-control { font-size: 16px; }
  /* 首页邮编输入框：手机 44px / 16px（避免 iOS 点输入框时放大页面）；其余老页面样式留给 M8 */
  .zip-map-section #zipCode, .zip-map-section #zipCodeSearchBtn { height: 44px; }
  .zip-map-section #zipCode { font-size: 16px; }

  /* ---------- 手机端点击区域 ≥ 44×44（P15；只在 ≤768px，与仓库其余手机断点一致；字号和颜色不变，电脑端不动） ---------- */
  /* 页脚链接（≤768px 时 min-height 44px）和抽屉菜单（每行 52px）原本就达标。
     这里补：顶部 logo 链接、"老 Key"切换链接、"复制"按钮、复选框行，以及补充轮的会员中心快捷链接与"退出"、
     登录页"忘记密码？"、找回密码页"返回登录"、确认订单页"返回套餐"、联系我们页的电话和邮箱链接。
     正文里的行内链接（如"已有账号？登录"）按检查口径只算提醒，不在这里。 */
  header.sz-header .logo a, header.sz-header .logo a:visited, header.sz-header .logo a:hover {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }
  .sz-oldkey a.sz-oldkey-toggle, .sz-oldkey a.sz-oldkey-toggle:visited, .sz-oldkey a.sz-oldkey-toggle:active {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }
  .sz-oldpage #detailedAddrCopy { min-width: 44px; min-height: 44px; }
  /* 复选框行 ≥ 44px，复选框仍对齐第一行 */
  .sz-auth .sz-check { min-height: 44px; padding-top: 11px; padding-bottom: 11px; }
  .sz-auth .sz-member-links-bottom a:not(.sz-btn), .sz-auth .sz-member-links-bottom a:not(.sz-btn):visited,
  .sz-auth .sz-member-links-bottom .sz-link-btn,
  .sz-auth .sz-row-between a:not(.sz-btn), .sz-auth .sz-row-between a:not(.sz-btn):visited,
  .sz-auth #forgot-step1 .sz-sub a, .sz-auth #forgot-step1 .sz-sub a:visited,
  .sz-auth .sz-co-side .sz-small-note a, .sz-auth .sz-co-side .sz-small-note a:visited,
  .sz-oldpage .contact-container li a, .sz-oldpage .contact-container li a:visited {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }
  /* hidden 守卫（P15 修复第 2 轮）：上面把这些元素设成 inline-flex，特异性不低于原有的 [hidden] 规则，又写在后面，
     会把 display: none 盖掉。这里给每个放大的元素补回 [hidden]，特异性更高，以后加 hidden 也能隐藏 */
  header.sz-header .logo a[hidden],
  .sz-oldkey a.sz-oldkey-toggle[hidden],
  .sz-auth .sz-member-links-bottom a:not(.sz-btn)[hidden],
  .sz-auth .sz-member-links-bottom .sz-link-btn[hidden],
  .sz-auth .sz-row-between a:not(.sz-btn)[hidden],
  .sz-auth #forgot-step1 .sz-sub a[hidden],
  .sz-auth .sz-co-side .sz-small-note a[hidden],
  .sz-oldpage .contact-container li a[hidden] { display: none; }
}

/* ====================================================================
 * 所在地区选择面板（P25，js/account/region-picker.js）
 * 电脑端：面板显示在栏下方；手机端（脚本在打开时按视口宽度 < 768px 加 sz-region-sheet）：底部弹出，带遮罩。
 * 这里只按类名写样式，不靠媒体查询切换。
 * ==================================================================== */
.sz-region { position: relative; }
.sz-region-field {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--sz-line);
  border-radius: var(--sz-radius);
  background: var(--sz-white);
  color: var(--sz-ink);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.sz-region-field::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid var(--sz-g700);
  border-bottom: 2px solid var(--sz-g700);
  transform: rotate(45deg);
}
.sz-region-field[aria-expanded="true"] { border-color: var(--sz-blue); }
.sz-region-field:not([disabled]):hover { border-color: var(--sz-blue); }
/* 键盘聚焦：老页面 base.css 对 button 写了 outline: none !important，这里同样用 !important 压回来 */
.sz-region-field:focus-visible,
.sz-region-tab:focus-visible,
.sz-region-option:focus-visible,
.sz-region-close:focus-visible,
.sz-region-clear:focus-visible { outline: 2px solid var(--sz-blue) !important; outline-offset: 2px; }
.sz-region-field.sz-input-error,
.sz-region.sz-input-error .sz-region-field { border-color: var(--sz-error); }
.sz-region-field[disabled] { background: var(--sz-bg-soft); color: var(--sz-g700); cursor: not-allowed; }
.sz-region-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-region-text.sz-region-placeholder { color: var(--sz-g700); }

.sz-region-panel {
  box-sizing: border-box;
  position: absolute;
  top: 48px;
  left: 0;
  z-index: 50;
  width: 100%;
  min-width: 280px;
  max-width: 440px;
  border: 1px solid var(--sz-line);
  border-radius: var(--sz-radius);
  background: var(--sz-white);
  color: var(--sz-ink);
  box-shadow: var(--sz-shadow);
}
.sz-region-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px 6px 14px;
}
.sz-region-title { font-size: 15px; font-weight: 600; }
.sz-region-close {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--sz-radius);
  background: transparent;
  color: var(--sz-g800);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.sz-region-close:hover { background: var(--sz-bg-soft); }
.sz-region-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--sz-line); }
.sz-region-tab {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--sz-g800);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.sz-region-tab.sz-region-tab-on { border-bottom-color: var(--sz-blue); color: var(--sz-blue); font-weight: 600; }
.sz-region-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
  padding: 10px;
}
.sz-region-option {
  box-sizing: border-box;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--sz-radius);
  background: transparent;
  color: var(--sz-ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.sz-region-empty { grid-column: 1 / -1; padding: 12px 4px; color: var(--sz-g700); font-size: 14px; }
.sz-region-option:hover { background: var(--sz-bg-soft); }
.sz-region-option.sz-region-option-on { background: var(--sz-blue-soft); color: var(--sz-blue); font-weight: 600; }
.sz-region-foot { display: flex; justify-content: flex-end; padding: 6px 10px 10px; border-top: 1px solid var(--sz-line); }
.sz-region-clear {
  box-sizing: border-box;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--sz-line);
  border-radius: var(--sz-radius);
  background: var(--sz-white);
  color: var(--sz-g800);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.sz-region-clear:hover { background: var(--sz-bg-soft); }

/* 手机端底部弹出（类名由脚本在打开时按视口宽度决定）+ 遮罩 */
.sz-region-backdrop {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 70;
  background: var(--sz-overlay);
  touch-action: none; /* 遮罩上滑动不带动背后的页面（只用 CSS，不锁 body） */
}
.sz-region-panel.sz-region-sheet {
  position: fixed;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 71;
  width: auto;
  min-width: 0;
  max-width: none;
  height: 80vh;
  height: 80dvh;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 12px 12px 0 0;
}
.sz-region-sheet .sz-region-close { width: 44px; height: 44px; }
.sz-region-sheet .sz-region-tab { min-height: 44px; }
.sz-region-sheet .sz-region-list { flex: 1 1 auto; grid-template-columns: minmax(0, 1fr); max-height: none; min-height: 0; overscroll-behavior: contain; touch-action: pan-y; }
/* 弹层里不滚动的部分：滑动不带动页面（列表自己可以上下滚） */
.sz-region-sheet .sz-region-head,
.sz-region-sheet .sz-region-tabs,
.sz-region-sheet .sz-region-foot { touch-action: none; }
.sz-region-sheet .sz-region-option { min-height: 44px; }
.sz-region-sheet .sz-region-foot { padding-bottom: 14px; }
.sz-region-sheet .sz-region-clear { min-height: 44px; }
