/* ==========================================================================
   细节层 v5（2026-12）
   加载顺序：site.css → theme.css → 模块 css → theme-module.css → 本文件
   只做三件事：把字号收敛成整数阶、把控件/提示条/表格的细节统一、
   给账号类页面（登录/注册/重发激活/邮箱验证）一条整齐的版心。
   不改任何页面结构，也不动后台。
   ========================================================================== */

/* ---------- 令牌：更轻的投影、更清楚的描边 ---------- */
:root{
  --line:#e5e8f1;
  --line-strong:#dfe3ef;
  --card-shadow:0 18px 40px rgba(41,53,115,.08),0 2px 6px rgba(41,53,115,.04);
  --btn-shadow:0 6px 14px rgba(83,101,233,.18);
  --radius-card:20px;
  --radius-block:12px;
  --radius-ctl:8px;
}

body{ font-size:14px; line-height:1.75; }
::selection{ background:rgba(83,101,233,.18); }

/* ---------- 1. 字号阶：28 / 21 / 17 / 14 / 13 / 12 ---------- */
#menu a{ font-size:13px; }
#footer .foot-links{ font-size:13px; }
#footer .foot-note{ font-size:12px; }
.mf-field label{ font-size:13px; }
.mf-hint{ font-size:12px; }
.mf-links{ font-size:13px; }
.mf-flash{ font-size:13px; }
.doc .doc-note{ font-size:12px; }
.doc .doc-faq dt{ font-size:14px; }
.tb-card-name{ font-size:14px; }
/* 桌面端输入框统一 14；移动端仍留给 member.css 的 16（iOS 聚焦不放大） */
@media (min-width:821px){
  .mf-field input[type="text"],
  .mf-field input[type="password"],
  .mf-field input[type="email"],
  .mf-field input[type="number"],
  .mf-field select,
  .mf-field textarea{ font-size:14px; }
}

/* ---------- 2. 输入控件 ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="url"], input[type="number"], select, textarea{
  box-sizing:border-box;
  border:1px solid var(--line-strong);
  border-radius:var(--radius-ctl);
  background-color:#fff;
  color:var(--ink);
  font-size:14px;
  box-shadow:inset 0 1px 2px rgba(32,37,58,.03);
  transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="url"], input[type="number"], select{
  height:36px;
  padding:0 12px;
}
textarea{
  min-height:96px;
  padding:8px 12px;
  line-height:1.7;
}
/* 会员模块里的字段：同权重覆盖，保证 36 高、上下对称 */
.mf-field input[type="text"],
.mf-field input[type="password"],
.mf-field input[type="email"],
.mf-field input[type="number"],
.mf-field select{
  height:36px;
  padding:0 12px;
}
.mf-field textarea{
  height:auto;
  padding:8px 12px;
}
input:focus, select:focus, textarea:focus,
.mf-field input:focus, .mf-field select:focus, .mf-field textarea:focus{
  border-color:#8f9ce8;
  box-shadow:0 0 0 3px rgba(83,101,233,.14);
  outline:none;
}
input::placeholder, textarea::placeholder{ color:#9aa2b8; }
input:disabled, select:disabled, textarea:disabled{
  background:#f5f6fa; color:#9aa2b8; cursor:not-allowed;
}
/* Chrome 自动填充的黄底 */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus{
  -webkit-box-shadow:0 0 0 1000px #f7f8ff inset;
  -webkit-text-fill-color:var(--ink);
  transition:background-color 9999s ease-out;
}
/* 下拉箭头自己画，三套浏览器一个样 */
select{
  -webkit-appearance:none; -moz-appearance:none; appearance:none;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2369728c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:10px 6px;
  padding-right:34px;
}
input[type="checkbox"], input[type="radio"]{
  width:16px; height:16px;
  accent-color:var(--primary);
  vertical-align:-3px;
}

/* ---------- 3. 按钮：只有主按钮带投影 ---------- */
input[type="submit"], button.button, input.button, .btn, .mf-btn{
  box-sizing:border-box;
  height:38px;
  min-height:0;
  padding:0 20px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.02em;
  box-shadow:none;
  transition:background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .06s ease;
}
input[type="submit"], button.button, input.button, .btn,
.mf-btn:not(.mf-btn-ghost):not(.mf-btn-line):not(.mf-btn-danger){
  background:var(--primary);
  border:1px solid var(--primary);
  color:#fff;
  box-shadow:var(--btn-shadow);
}
input[type="submit"]:hover, button.button:hover, input.button:hover, .btn:hover,
.mf-btn:hover{
  background:var(--primary-dark);
  border-color:var(--primary-dark);
}
.mf-btn-ghost, .mf-btn-line{
  background:#fff;
  border:1px solid var(--line-strong);
  color:var(--ink-2);
  box-shadow:none;
}
.mf-btn-ghost:hover, .mf-btn-line:hover{
  background:#f7f8fd;
  border-color:#c9d0ea;
  color:var(--ink);
}
.mf-btn-danger{ background:#c0453f; border-color:#c0453f; box-shadow:none; }
.mf-btn-danger:hover{ background:#a83a35; border-color:#a83a35; }
input[type="submit"]:active, button:active, .btn:active, .mf-btn:active{
  transform:translateY(1px);
  box-shadow:none;
}
/* 卡片里的小按钮保持紧凑 */
.mf-btn.mf-btn-mini, .mf-btn-mini{
  height:30px; min-height:30px; padding:0 12px; font-size:12px; border-radius:999px;
}

/* ---------- 4. 圆角与层次 ---------- */
#page-bg{ border-radius:var(--radius-card); }
.mf-card, .tb-card, .sns-hero{ border-radius:var(--radius-block); }
.tb-glyph{ border-radius:var(--radius-ctl); }
.tb-card{ box-shadow:0 6px 18px rgba(41,53,115,.05); }
.tb-card:hover{ transform:none; box-shadow:0 12px 26px -18px rgba(41,53,115,.32); }
.doc-links a, .doc-table th{ border-radius:0; }
.doc-links a{ border-radius:999px; }

/* ---------- 5. 表格：只留横线 ---------- */
table{ border-collapse:collapse; }
table th, table td, .doc-table th, .doc-table td{
  border-left:0;
  border-right:0;
  border-top:0;
  border-bottom:1px solid var(--line);
}
table thead th, .doc-table thead th{ border-top:1px solid var(--line); }
table th, .doc-table th{ background:#f8f9fe; font-weight:600; }

/* ---------- 6. 提示条：底色淡、左侧一条色标 ---------- */
.mf-flash{
  position:relative;
  padding:10px 14px 10px 16px;
  border-radius:var(--radius-block);
  line-height:1.7;
}
.mf-flash::before{
  content:"";
  position:absolute; left:0; top:10px; bottom:10px;
  width:3px; border-radius:3px;
  background:currentColor; opacity:.55;
}
.mf-flash-ok{ background:#f2fbf5; border:1px solid #d9efdf; color:#1a6b46; }
.mf-flash-err{ background:#fef6f6; border:1px solid #f6dede; color:#a83a3a; }
.mf-flash-warn{ background:#fdf9f0; border:1px solid #f1e6cc; color:#8a6320; }
.mf-ts-off{
  background:#f8f9ff;
  border:1px solid #e2e6fa;
  border-radius:var(--radius-block);
  padding:14px 16px 12px;
}
.mf-ts-off b{ color:var(--ink); }
.mf-ts-off p{ color:var(--muted); }

/* ---------- 7. 账号页：一条版心，所有元素同左基线 ---------- */
body.auth #page-bg{
  box-sizing:border-box;
  width:520px;
  max-width:calc(100% - 32px);
  margin:10px auto 0;
  padding:30px 32px 28px;
}
body.auth .mf-body{
  max-width:360px;
  margin:0 auto;
  padding:0;
  min-height:0;
  background:transparent;
}
/* 只有状态块、没有表单的账号页：整列放宽一点，长句和按钮不挤 */
body.auth .mf-body:has(.mf-status){ max-width:440px; }
body.auth .mf-body > .mf-status:first-child{ margin-top:0; }
body.auth .mf-form{ max-width:none; }
body.auth .mf-desc{ max-width:34em; }
body.auth .mf-card{ max-width:none; margin:0; }
/* 兼容没有 .mf-status 的旧提示块 */

/* 状态块：激活成功 / 重发成功 / 邮箱验证 */
.mf-status{
  margin:22px 0 0;
  padding:18px 20px 16px;
  background:#f8f9ff;
  border:1px solid #e2e6fa;
  border-radius:var(--radius-block);
}
.mf-status-head{ display:flex; align-items:center; gap:10px; }
.mf-status-ico{
  flex:0 0 26px; width:26px; height:26px; border-radius:50%;
  background:#e7ebff; color:var(--primary-dark);
  font-size:13px; font-weight:700; line-height:26px; text-align:center;
}
.mf-status-title{
  font-size:16px; font-weight:600; letter-spacing:.01em; color:var(--ink); line-height:1.4;
}
.mf-status-body{
  margin:12px 0 0;
  font-size:14px; line-height:1.8; color:var(--ink-2);
}
.mf-status-body b{ color:var(--ink); font-weight:600; }
.mf-status-actions{
  display:flex; flex-wrap:wrap; align-items:center; gap:10px;
  margin-top:16px;
}
.mf-status-foot{
  margin:14px 0 0; padding-top:12px;
  border-top:1px solid #eaedfb;
  font-size:12px; line-height:1.7; color:var(--muted);
}
.mf-status.is-err{ background:#fdf7f7; border-color:#f3dede; }
.mf-status.is-err .mf-status-ico{ background:#fbe7e7; color:#b0463f; }
.mf-status.is-warn{ background:#fdfaf3; border-color:#f1e6cc; }
.mf-status.is-warn .mf-status-ico{ background:#faf0da; color:#8a6320; }

/* 状态页底部的弱动作 */
body.auth .mf-links{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:6px 14px;
  margin-top:18px;
  color:var(--muted);
}
body.auth .mf-links a{ color:var(--muted); }
body.auth .mf-links a:hover{ color:var(--primary); }

/* ---------- 8. 说明页段落节奏 ---------- */
.doc p{ margin:0 0 .85em; }
.doc li{ margin:5px 0; }
.doc h2{ margin:32px 0 12px; padding-top:20px; }

/* ---------- 移动端 ---------- */
@media (max-width:820px){
  body.auth #page-bg{
    max-width:calc(100% - 24px);
    padding:22px 18px 24px;
    border-radius:16px;
  }
  body.auth .mf-body{ max-width:none; }
  .mf-status{ padding:16px 16px 14px; }
  .mf-status-actions .mf-btn{ flex:1 1 auto; }
}
