/* NaichaMail 网页邮箱样式
 *
 * 设计变量与 NaichaCMS 的 wwwroot/static/css/site.css **逐字一致**，
 * 这样邮箱跟官网、CMS、面板放在一起看不出是不同项目做的。
 * 圆角刻度（--r-xs..--r-xl）是刻意的"小圆角"，不要自行放大。
 */

:root {
  --n1: #0078d4;
  --n2: #0f9be0;
  --brand: #0078d4;
  --brand-2: #0f9be0;
  --brand-3: #0059a8;
  --grad: linear-gradient(135deg, #0078d4, #0f9be0);
  --grad-soft: linear-gradient(135deg, #eaf4fa, #f4faff);
  --ink: #1e293b;
  --ink-2: #475569;
  --muted: #64748b;
  --line: #e3ecf3;
  --line-2: #eef4fa;
  --bg: #f2f6fa;
  --card: #fff;
  --ok: #22b07d;
  --warn: #f0a020;
  --danger: #d5483c;
  --r-xs: 4px;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 999px;
  --sh-1: 0 1px 2px rgba(16, 42, 67, .04), 0 2px 8px rgba(16, 42, 67, .04);
  --sh-2: 0 2px 6px rgba(16, 42, 67, .06), 0 8px 24px rgba(16, 42, 67, .06);
  --sh-brand: 0 8px 24px rgba(0, 120, 212, .22);
  --wrap: 1140px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font: 15px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { width: 16px; height: 16px; flex: none; }

/* ---------------- 顶栏 ---------------- */

.mn-top {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.mn-top-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.mn-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: .2px;
}
.mn-logo:hover { text-decoration: none; }
.mn-logo-ic {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: var(--sh-brand);
}
.mn-logo-ic svg { width: 17px; height: 17px; color: #fff; }
.mn-logo b { color: var(--brand); font-weight: 700; }

.mn-top-sp { flex: 1; }

.mn-user {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.mn-user-mail {
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink-2);
}

/* ---------------- 布局 ---------------- */

.mn-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 20px 60px;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.mn-side { position: sticky; top: 82px; }

.mn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 18px;
  border: 0; border-radius: var(--r-sm);
  background: var(--grad); color: #fff;
  font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .18s var(--ease);
  box-shadow: var(--sh-brand);
}
.mn-btn:hover { filter: brightness(1.06); text-decoration: none; }
.mn-btn.block { width: 100%; }
.mn-btn.ghost {
  background: var(--card); color: var(--ink-2);
  border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.mn-btn.ghost:hover { border-color: var(--brand); color: var(--brand); filter: none; }
.mn-btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.mn-btn.soft { background: var(--grad-soft); color: var(--brand); box-shadow: none; }

/* 侧栏文件夹 */
.mn-folders {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 8px; box-shadow: var(--sh-1);
}
.mn-folders-title {
  font-size: 12px; color: var(--muted); font-weight: 600;
  padding: 8px 10px 6px; letter-spacing: .4px;
}
.mn-folder {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: var(--r-sm);
  color: var(--ink-2); font-size: 14px;
}
.mn-folder:hover { background: var(--line-2); text-decoration: none; }
.mn-folder.on { background: var(--grad-soft); color: var(--brand); font-weight: 600; }
.mn-folder-n { margin-left: auto; font-size: 12px; color: var(--muted); }
.mn-folder.on .mn-folder-n { color: var(--brand); }

.mn-quota {
  margin-top: 14px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-1);
  font-size: 12px; color: var(--muted);
}
.mn-quota-bar {
  height: 5px; border-radius: var(--r-full);
  background: var(--line-2); overflow: hidden; margin: 7px 0 6px;
}
.mn-quota-fill { height: 100%; background: var(--grad); border-radius: var(--r-full); }

/* ---------------- 卡片与列表 ---------------- */

.mn-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-1); overflow: hidden;
}
.mn-card-h {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--line-2);
}
.mn-card-h h1 { font-size: 16px; font-weight: 600; }
.mn-card-h .sp { flex: 1; }

.mn-list { list-style: none; }
.mn-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--line-2);
  color: inherit; transition: background .14s var(--ease);
}
.mn-item:last-child { border-bottom: 0; }
.mn-item:hover { background: #fafcfe; text-decoration: none; }
.mn-item.unread { background: #fbfdff; }
.mn-item.unread .mn-subj { font-weight: 600; }

.mn-av {
  width: 36px; height: 36px; flex: none;
  border-radius: var(--r-full);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600; color: #fff;
  background: var(--grad);
  text-transform: uppercase;
}
/* 头像底色按发件人散开，列表里更好认 */
.mn-av.c1 { background: linear-gradient(135deg, #0078d4, #0f9be0); }
.mn-av.c2 { background: linear-gradient(135deg, #22b07d, #34c98f); }
.mn-av.c3 { background: linear-gradient(135deg, #f0a020, #f5b64d); }
.mn-av.c4 { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.mn-av.c5 { background: linear-gradient(135deg, #ec4899, #f472b6); }
.mn-av.c6 { background: linear-gradient(135deg, #0891b2, #22d3ee); }

.mn-item-main { flex: 1; min-width: 0; }
.mn-item-top {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 2px;
}
.mn-from {
  font-size: 14px; color: var(--ink); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46%;
}
.mn-time { margin-left: auto; font-size: 12px; color: var(--muted); flex: none; }
.mn-subj {
  font-size: 14px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mn-snippet {
  font-size: 13px; color: var(--muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mn-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); flex: none; margin-top: 15px;
}
.mn-flag { color: var(--warn); font-size: 12px; }

.mn-empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.mn-empty svg { width: 40px; height: 40px; color: var(--line); margin-bottom: 12px; }
.mn-empty p { font-size: 14px; }

/* 分页 */
.mn-pager {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-top: 1px solid var(--line-2);
  font-size: 13px; color: var(--muted);
}
.mn-pager .sp { flex: 1; }

/* ---------------- 登录页 ---------------- */

.mn-auth {
  min-height: 100vh; display: grid; place-items: center;
  padding: 40px 20px;
  background:
    radial-gradient(1000px 500px at 12% -10%, #e6f2fb 0%, transparent 60%),
    radial-gradient(800px 400px at 100% 0%, #eef7fd 0%, transparent 55%),
    var(--bg);
}
.mn-auth-box { width: 100%; max-width: 400px; }
.mn-auth-logo {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; margin-bottom: 22px;
}
.mn-auth-logo .ic {
  width: 52px; height: 52px; border-radius: var(--r-lg);
  background: var(--grad); display: grid; place-items: center;
  box-shadow: var(--sh-brand);
}
.mn-auth-logo .ic svg { width: 27px; height: 27px; color: #fff; }
.mn-auth-logo h1 { font-size: 20px; font-weight: 700; }
.mn-auth-logo p { font-size: 13px; color: var(--muted); }

.mn-form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--sh-2);
}

.mn-field { margin-bottom: 15px; }
.mn-field label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--ink-2); margin-bottom: 6px;
}
.mn-field input {
  width: 100%; height: 44px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--card); transition: all .16s var(--ease);
}
.mn-field input:focus {
  outline: 0; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 120, 212, .1);
}
.mn-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

.mn-alert {
  padding: 11px 14px; border-radius: var(--r-sm);
  font-size: 13px; margin-bottom: 15px;
}
.mn-alert.err { background: #fdf2f1; color: #b03a30; border: 1px solid #f7d9d6; }
.mn-alert.ok { background: #effaf5; color: #17805a; border: 1px solid #cdeee0; }
.mn-alert.warn { background: #fff8ec; color: #a86a00; border: 1px solid #f8e3bd; }

/* ---------------- 读信 ---------------- */

.mn-read-h { padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.mn-read-subj { font-size: 18px; font-weight: 600; line-height: 1.45; margin-bottom: 12px; }
.mn-read-meta { display: flex; align-items: flex-start; gap: 12px; }
.mn-read-meta .mn-av { width: 40px; height: 40px; }
.mn-read-who { flex: 1; min-width: 0; font-size: 14px; }
.mn-read-who .nm { font-weight: 600; }
.mn-read-who .ad { color: var(--muted); font-size: 13px; }
.mn-read-who .to { color: var(--muted); font-size: 12px; margin-top: 3px; word-break: break-all; }
.mn-read-actions { display: flex; gap: 8px; align-items: center; }

.mn-body { background: #fff; }
.mn-body iframe {
  width: 100%; border: 0; display: block;
  min-height: 460px; height: 72vh; background: #fff;
}
.mn-body pre {
  padding: 20px 22px; margin: 0;
  white-space: pre-wrap; word-break: break-word;
  font: 14px/1.75 inherit;
}
.mn-blocked {
  padding: 10px 22px; background: #fff8ec; color: #a86a00;
  font-size: 12.5px; border-bottom: 1px solid #f8e3bd;
  display: flex; align-items: center; gap: 8px;
}

.mn-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-top: 1px solid var(--line-2);
  background: #fcfdfe;
}
.mn-toolbar .sp { flex: 1; }

/* ---------------- 写信 ---------------- */

.mn-compose { padding: 18px 22px; }
.mn-compose-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line-2);
}
.mn-compose-row label {
  width: 58px; flex: none; font-size: 13px; color: var(--muted);
}
.mn-compose-row input {
  flex: 1; border: 0; outline: 0; font: inherit; font-size: 14px;
  color: var(--ink); background: transparent; height: 30px;
}
.mn-compose textarea {
  width: 100%; min-height: 320px; border: 0; outline: 0;
  font: 14px/1.75 inherit; color: var(--ink); padding: 16px 0;
  resize: vertical; background: transparent;
}

/* ---------------- 手机端 ---------------- */

@media (max-width: 820px) {
  .mn-wrap {
    grid-template-columns: 1fr;
    padding: 14px 12px 50px;
    gap: 14px;
  }
  .mn-side { position: static; }
  .mn-folders { display: flex; gap: 6px; overflow-x: auto; padding: 6px; }
  .mn-folders-title { display: none; }
  .mn-folder { white-space: nowrap; padding: 9px 13px; }
  .mn-folder-n { margin-left: 5px; }
  .mn-quota { margin-top: 0; }
  .mn-top-in { padding: 0 12px; height: 56px; }
  .mn-user-mail { max-width: 130px; }
  .mn-item { padding: 12px 14px; gap: 10px; }
  .mn-item-top { flex-wrap: wrap; gap: 4px 8px; }
  .mn-from { max-width: 100%; flex: 1 1 100%; }
  .mn-time { margin-left: 0; }
  .mn-av { width: 32px; height: 32px; font-size: 13px; }
  .mn-read-subj { font-size: 16px; }
  .mn-body iframe { height: 62vh; }
  .mn-read-h, .mn-toolbar, .mn-blocked { padding-left: 14px; padding-right: 14px; }
  .mn-card-h { padding: 13px 14px; flex-wrap: wrap; }
}

/* ==================================================================
 * 首页（未登录访客）
 * ================================================================== */

.mn-lp { min-height: 100vh; background: var(--card); }

.mn-lp-top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.mn-lp-top-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 20px;
  height: 62px; display: flex; align-items: center; gap: 12px;
}
.mn-lp-top-sp { flex: 1; }

.mn-lp-warn { max-width: var(--wrap); margin: 16px auto 0; padding: 0 20px; }

/* 首屏 */
.mn-lp-hero {
  padding: 76px 20px 64px;
  background:
    radial-gradient(900px 460px at 14% -12%, #e8f4fd 0%, transparent 62%),
    radial-gradient(760px 400px at 96% 4%, #eef7fe 0%, transparent 58%);
}
.mn-lp-hero-in { max-width: 760px; margin: 0 auto; text-align: center; }

.mn-lp-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; margin-bottom: 22px;
  background: var(--grad-soft); color: var(--brand);
  border-radius: var(--r-full); font-size: 13px; font-weight: 500;
}
.mn-lp-eyebrow svg { width: 15px; height: 15px; }

.mn-lp-hero h1 {
  font-size: 46px; line-height: 1.24; font-weight: 800;
  letter-spacing: -.5px; color: var(--ink); margin-bottom: 20px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.mn-lp-lede {
  font-size: 17px; line-height: 1.85; color: var(--ink-2);
  max-width: 620px; margin: 0 auto 30px;
}
.mn-lp-lede code {
  background: var(--line-2); padding: 2px 7px; border-radius: var(--r-xs);
  font-size: 15px; color: var(--brand-3);
}

.mn-lp-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mn-lp-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

.mn-btn.lg { height: 48px; padding: 0 26px; font-size: 15px; }

/* 分区 */
.mn-lp-sec { padding: 68px 20px; }
.mn-lp-sec.alt { background: var(--bg); }
.mn-lp-sec-h { max-width: var(--wrap); margin: 0 auto 40px; text-align: center; }
.mn-lp-sec-h h2 {
  font-size: 27px; font-weight: 700; color: var(--ink);
  letter-spacing: -.3px; margin-bottom: 10px;
}
.mn-lp-sec-h p { font-size: 15px; color: var(--muted); }

/* 能力网格 */
.mn-lp-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.mn-lp-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 24px;
  box-shadow: var(--sh-1); transition: all .2s var(--ease);
}
.mn-lp-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.mn-lp-ic {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--grad-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 15px;
}
.mn-lp-ic svg { width: 20px; height: 20px; }
.mn-lp-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.mn-lp-card p { font-size: 14px; line-height: 1.75; color: var(--muted); }

/* 三步 */
.mn-lp-steps {
  max-width: 940px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  list-style: none; counter-reset: s;
}
.mn-lp-steps li {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-1);
}
.mn-lp-steps .n {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: var(--r-full);
  background: var(--grad); color: #fff;
  font-size: 14px; font-weight: 700; margin-bottom: 14px;
}
.mn-lp-steps h3 { font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.mn-lp-steps p { font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.mn-lp-steps code, .mn-lp-records code {
  background: var(--line-2); padding: 2px 6px; border-radius: var(--r-xs);
  font-size: 12.5px; color: var(--brand-3);
}

/* DNS 记录卡 */
.mn-lp-records {
  max-width: 780px; margin: 28px auto 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1);
}
.mn-lp-records-h {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 20px; border-bottom: 1px solid var(--line-2);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.mn-lp-records-h svg { color: var(--brand); }
.mn-lp-records table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mn-lp-records th {
  text-align: left; padding: 11px 20px; background: #fafcfe;
  font-weight: 500; color: var(--muted); font-size: 12.5px;
  border-bottom: 1px solid var(--line-2);
}
.mn-lp-records td {
  padding: 12px 20px; border-bottom: 1px solid var(--line-2); color: var(--ink-2);
}
.mn-lp-records tr:last-child td { border-bottom: 0; }
.mn-lp-records .val { color: var(--ink); }

/* 对比 */
.mn-lp-compare {
  max-width: 860px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.mn-lp-cmp {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-1);
}
.mn-lp-cmp.mine { border-color: #bfe0f5; box-shadow: var(--sh-brand); }
.mn-lp-cmp h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.mn-lp-cmp ul { list-style: none; font-size: 14px; line-height: 2; color: var(--ink-2); }
.mn-lp-cmp li { padding-left: 22px; position: relative; }
.mn-lp-cons li::before {
  content: ''; position: absolute; left: 4px; top: 13px;
  width: 8px; height: 1.5px; background: var(--muted);
}
.mn-lp-pros li::before {
  content: ''; position: absolute; left: 3px; top: 9px;
  width: 10px; height: 5px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

/* 收尾 */
.mn-lp-cta2 {
  padding: 68px 20px; text-align: center;
  background: var(--grad); color: #fff;
}
.mn-lp-cta2 h2 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.mn-lp-cta2 p { font-size: 15px; opacity: .9; margin-bottom: 26px; }
.mn-lp-cta2 .mn-btn {
  background: #fff; color: var(--brand); box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

.mn-lp-foot { background: #0f2436; color: #93a7b8; padding: 26px 20px; }
.mn-lp-foot-in {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; gap: 12px; font-size: 13px;
}
.mn-lp-foot-in .sp { flex: 1; }
.mn-lp-foot-muted { color: #5f7688; }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: var(--r-xs);
  font-size: 11.5px; font-weight: 600; line-height: 1.7;
}
.badge.blue  { background: #e8f4fd; color: #0a6cbf; }
.badge.green { background: #eafaf3; color: #17805a; }
.badge.gray  { background: #f1f5f9; color: #64748b; }
.badge.orange{ background: #fff5e6; color: #a86a00; }
.badge.red   { background: #fdf2f1; color: #b03a30; }

/* ==================================================================
 * 顶栏附加件
 * ================================================================== */

.mn-top-addr {
  font-size: 13px; color: var(--ink-2); padding: 5px 11px;
  background: var(--line-2); border-radius: var(--r-sm);
  max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.mn-mbswitch select {
  height: 32px; padding: 0 9px; font: inherit; font-size: 13px;
  color: var(--ink-2); background: var(--line-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  max-width: 220px; cursor: pointer;
}
.mn-mbswitch select:focus { outline: 0; border-color: var(--brand); }

/* 顶栏搜索框 */
.mn-search {
  position: relative; display: flex; align-items: center;
  margin-left: 8px;
}
.mn-search svg {
  position: absolute; left: 10px; color: var(--muted);
  width: 15px; height: 15px; pointer-events: none;
}
.mn-search input {
  width: 210px; height: 34px;
  padding: 0 12px 0 32px;
  border: 1px solid var(--line); border-radius: var(--r-full);
  background: var(--bg); font: inherit; font-size: 13.5px; color: var(--ink);
  transition: all .18s var(--ease);
}
.mn-search input:focus {
  outline: 0; background: var(--card); border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 120, 212, .1);
}
.mn-search input::-webkit-search-cancel-button { cursor: pointer; }

.mn-searchbar-note {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; background: #f7fbfe;
  border-bottom: 1px solid #dcecf7;
  font-size: 13px; color: var(--ink-2);
}
.mn-searchbar-note svg { color: var(--brand); }

/* 复制按钮（DKIM 公钥近 400 字符，必须能一键复制） */
.mn-copy {
  margin-left: 8px; padding: 2px 9px;
  border: 1px solid var(--line); border-radius: var(--r-xs);
  background: var(--card); color: var(--brand);
  font: inherit; font-size: 12px; cursor: pointer;
  transition: all .15s var(--ease);
}
.mn-copy:hover { border-color: var(--brand); background: var(--grad-soft); }
.mn-copy.on { background: #eafaf3; color: #17805a; border-color: #cdeee0; }

/* 长记录值：不换行截断，允许横向滚动 —— 截断了用户就复制不全 */
.mn-longval {
  display: inline-block; max-width: 100%;
  overflow-x: auto; white-space: nowrap;
  vertical-align: middle;
}

/* 中继预设按钮 */
.mn-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.mn-preset {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--card); color: var(--ink-2);
  font: inherit; font-size: 13px; cursor: pointer;
  transition: all .16s var(--ease);
}
.mn-preset:hover { border-color: var(--brand); color: var(--brand); }
.mn-preset.on {
  border-color: var(--brand); color: var(--brand);
  background: var(--grad-soft); font-weight: 600;
}

.mn-nav { display: flex; gap: 4px; }
.mn-nav-l {
  padding: 6px 12px; border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--ink-2);
}
.mn-nav-l:hover { background: var(--line-2); text-decoration: none; }
.mn-nav-l.on { background: var(--grad-soft); color: var(--brand); font-weight: 600; }

.mn-flashwrap { max-width: var(--wrap); margin: 14px auto -6px; padding: 0 20px; }

/* ==================================================================
 * 控制台（域名与邮箱）
 * ================================================================== */

.mn-console-h {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--line-2);
}
.mn-console-h h1 { font-size: 16px; font-weight: 600; }
.mn-console-h .sp { flex: 1; }

.mn-row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border-bottom: 1px solid var(--line-2);
}
.mn-row:last-child { border-bottom: 0; }
.mn-row-main { flex: 1; min-width: 0; }
.mn-row-title {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.mn-row-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; word-break: break-all; }
.mn-row-act { display: flex; gap: 8px; flex: none; align-items: center; }

.mn-record {
  margin: 0 18px 16px; padding: 13px 15px;
  background: #f7fbfe; border: 1px solid #dcecf7;
  border-radius: var(--r-sm); font-size: 13px;
}
.mn-record table { width: 100%; border-collapse: collapse; }
.mn-record td { padding: 4px 0; vertical-align: top; }
.mn-record td:first-child { width: 92px; color: var(--muted); }
.mn-record code {
  background: #fff; border: 1px solid var(--line); padding: 2px 7px;
  border-radius: var(--r-xs); font-size: 12.5px; color: var(--brand-3);
  word-break: break-all; display: inline-block;
}
.mn-record .tip { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.mn-inline-form {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
}
.mn-inline-form .mn-field { margin-bottom: 0; }
.mn-inline-form .mn-field input, .mn-inline-form .mn-field select { height: 40px; }

.mn-empty-mini {
  padding: 34px 18px; text-align: center; color: var(--muted); font-size: 14px;
}
.mn-empty-mini svg { width: 32px; height: 32px; color: var(--line); margin-bottom: 10px; display: block; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------------
 * ⚠️ 手机端硬指标必须放在**文件最末尾**。
 *
 * .mn-field input 是「类+元素」选择器，特异性 (0,1,1)，与本文件前面
 * 那些表单规则同级 —— CSS 靠"后来居上"决胜，放在文件中部会被后面的
 * 规则盖掉。这个坑在 CMS 侧真踩过一次（/search 的输入框一直是 14px）。
 *
 * 同理，模板里**绝不能**给输入框写行内 font-size：行内样式连媒体查询
 * 都压不过，手机端就永远改不动它。
 *
 * 1) 输入框字号 ≥16px —— 否则 iOS Safari 聚焦时自动放大整个页面
 * 2) 点击目标 ≥44px —— 手指点得中
 * 3) 行内文字链（如"忘记密码"）**不**撑高，否则排版被拉散
 * 新增样式请写在 ``这段之前``。
 * ------------------------------------------------------------------ */
@media (max-width: 820px) {
  .mn-field input,
  .mn-compose-row input,
  .mn-compose textarea,
  .mn-mbswitch select,
  .mn-inline-form .mn-field input,
  .mn-inline-form .mn-field select {
    font-size: 16px;
  }
  .mn-field input { height: 46px; }
  .mn-btn { height: 44px; }
  /* ⚠️ .sm 也必须 ≥44px。曾经这里写的是 40px，而它排在 .mn-btn 之后
     「后来居上」把 44px 压掉了 —— 顶栏的登录/注册按钮实测只有 40px，
     手指点不准。窄屏下所有可点元素一律 44px 起，这是硬指标。 */
  .mn-btn.sm { height: 44px; }
  .mn-btn.lg { height: 48px; }
  .mn-folder { min-height: 44px; }
  .mn-item { min-height: 56px; }
  .mn-body iframe { min-height: 380px; }
  .mn-nav-l { min-height: 44px; display: inline-flex; align-items: center; }
  .mn-preset { height: 44px; }
  .mn-search { margin-left: 0; flex: 1 1 100%; order: 9; padding-bottom: 8px; }
  .mn-search input { width: 100%; height: 44px; }
  .mn-top-in { flex-wrap: wrap; }
  /* 顶栏的 logo 是个链接，也要能点得中 */
  .mn-logo { min-height: 44px; }
  .mn-lp-top-in { height: auto; min-height: 62px; padding-top: 6px; padding-bottom: 6px; }

  /* 首页窄屏：三栏全部压成一栏 */
  .mn-lp-hero { padding: 46px 18px 40px; }
  .mn-lp-hero h1 { font-size: 29px; letter-spacing: -.2px; }
  .mn-lp-lede { font-size: 15px; }
  .mn-lp-cta { flex-direction: column; }
  .mn-lp-cta .mn-btn { width: 100%; }
  .mn-lp-sec { padding: 44px 18px; }
  .mn-lp-sec-h h2 { font-size: 21px; }
  .mn-lp-grid, .mn-lp-steps, .mn-lp-compare { grid-template-columns: 1fr; }
  .mn-lp-card, .mn-lp-steps li { padding: 20px; }
  /* DNS 记录表在窄屏会溢出，允许横向滚动而不是撑破布局 */
  .mn-lp-records { overflow-x: auto; }
  .mn-lp-records table { min-width: 520px; }
  .mn-lp-foot-in { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* 控制台行内表单压成竖排 */
  .mn-inline-form { flex-direction: column; align-items: stretch; }
  .mn-inline-form .mn-btn { width: 100%; }
  .mn-row { flex-wrap: wrap; gap: 10px; }
  .mn-row-act { width: 100%; }
}
