/* ============ 12593靓号查查 · 手机版样式（12593.com/m/） ============
 * 与电脑版共用同一套「玄墨朱砂」体系，token 名称保持一致
 */
:root {
  /* —— 朱砂主色阶（唯一强调色）—— */
  --vermilion-400: #e05a3f;
  --vermilion-500: #d0331f;
  --vermilion-600: #ab2413;
  --vermilion-700: #8a1b0e;

  /* —— 玄墨（框架色）—— */
  --ink-900: #17171b;
  --ink-950: #08080a;

  /* —— 文字 —— */
  --ink:   #1a1a1e;
  --ink-2: #45454e;
  --ink-3: #82828e;
  --ink-4: #a5a5b1;

  /* —— 线与面（宣纸系）—— */
  --line:        #e2dacb;
  --line-soft:   #f0ebe0;
  --line-strong: #d3c6ad;
  --surface-2:   #f8f5ee;
  --surface-3:   #f1ebdf;
  --white:       #ffffff;
  --page:        #f6f2e9;

  --shadow:    0 10px 30px rgba(60, 30, 20, .14);
  --shadow-sm: 0 4px 14px rgba(60, 30, 20, .09);
  --radius: 16px;

  /* —— 旧变量名兼容映射 —— */
  --red: var(--vermilion-600);
  --red-deep: var(--vermilion-700);
  --red-dark: var(--ink-950);
  --gold: var(--vermilion-500);
  --gold-light: var(--line-strong);
  --cream: var(--page);
  --cream-2: var(--surface-3);
  --ink-soft: var(--ink-3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  color: #1a1a1e;
  color: var(--ink);
  background: #f6f2e9;
  background: var(--page);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
.container { width: 100%; padding: 0 16px; }
a { color: inherit; }

/* ---------- 顶部栏（玄墨，与暖色首屏形成有意为之的对比） ---------- */
.m-top {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  background: linear-gradient(135deg, #17171b, #08080a 74%);
  background: linear-gradient(135deg, var(--ink-900), var(--ink-950) 74%);
  border-bottom: 1px solid rgba(208, 51, 31, .22);
  backdrop-filter: blur(6px);
  padding-top: env(safe-area-inset-top);
  height: calc(52px + env(safe-area-inset-top));
}
.m-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; }
.m-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #e05a3f, #ab2413);
  background: linear-gradient(135deg, var(--vermilion-400), var(--vermilion-600));
  color: #fff; font-weight: 700; font-size: 17px;
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(208, 51, 31, .42);
}
.m-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.m-brand-text b { font-size: 15px; letter-spacing: .5px; color: #fff; }
.m-brand-text small { font-size: 10px; color: rgba(236, 222, 205, .74); letter-spacing: 1px; }
.m-pc-link {
  font-size: 13px; color: rgba(240, 228, 212, .94); text-decoration: none;
  border: 1px solid rgba(208, 51, 31, .45); border-radius: 20px;
  padding: 4px 12px;
  background: rgba(208, 51, 31, .16);
}

/* ---------- 主屏 / 副屏切换 ----------
 * 切换器嵌在吸顶栏内 → 零文档流高度，不挤占结果页一屏预算（手机版余量只有 18px）。
 */
.screen[hidden] { display: none !important; }
.screen-switch {
  display: inline-flex; align-items: center; gap: 1px; flex-shrink: 0;
  padding: 2px; border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(208, 51, 31, .26);
}
.ss-btn {
  appearance: none; -webkit-appearance: none; border: 0; cursor: pointer;
  font-family: inherit; white-space: nowrap;
  padding: 6px 10px; border-radius: 999px;
  font-size: 12px; line-height: 1; letter-spacing: 0;
  color: rgba(240, 228, 212, .74); background: transparent;
  transition: color .2s, background .2s;
}
.ss-btn.on {
  background: linear-gradient(135deg, #e05a3f, #ab2413);
  background: linear-gradient(135deg, var(--vermilion-400), var(--vermilion-600));
  color: #fff; font-weight: 600;
}
/* 极窄屏（≤374px）：压缩品牌与电脑版链接，给切换器腾位置 */
@media (max-width: 374px) {
  .m-brand-text b { font-size: 13px; }
  .m-brand-text small { display: none; }
  .m-pc-link { padding: 4px 9px; font-size: 12px; }
}
/* 副屏上下留白 */
.screen-sub > .m-tools { padding: 20px 12px 42px; }
.screen-sub #tools { scroll-margin-top: 60px; }

/* ---------- 收藏本站 ---------- */
.m-fav-btn {
  flex-shrink: 0; width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; line-height: 1; font-size: 16px;
  color: #e05a3f;
  color: var(--vermilion-400);
  border: 1px solid rgba(208, 51, 31, .45);
  background: rgba(208, 51, 31, .16);
  transition: color .2s, background .2s;
}
.m-fav-btn:active { background: rgba(208, 51, 31, .34); }
.m-fav-btn.on { color: #f0b429; }

/* 收藏指引气泡（手机版：底部固定，避开安全区） */
.fav-tip {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 300; width: calc(100% - 28px); max-width: 430px;
  padding: 16px 18px 14px; border-radius: 15px; text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #17171b, #08080a 74%);
  background: linear-gradient(135deg, var(--ink-900), var(--ink-950) 74%);
  border: 1px solid rgba(208, 51, 31, .46);
  border-top: 3px solid #d0331f;
  border-top: 3px solid var(--vermilion-500);
  box-shadow: 0 20px 46px rgba(8, 8, 10, .5);
  animation: favTipIn .22s ease-out;
}
.fav-tip[hidden] { display: none !important; }
@keyframes favTipIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.fav-tip-head { display: block; font-size: 15px; letter-spacing: .5px; }
.fav-tip-head span { color: #e05a3f; color: var(--vermilion-400); }
.fav-tip-text { margin: 7px 0 0; font-size: 13px; line-height: 1.75; color: rgba(240, 228, 212, .88); }
.fav-tip-text kbd {
  display: inline-block; padding: 1px 7px; border-radius: 6px;
  font-family: inherit; font-size: 12px; color: #fff;
  background: rgba(208, 51, 31, .34); border: 1px solid rgba(208, 51, 31, .55);
}
.fav-tip-close {
  margin-top: 11px; padding: 8px 24px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; color: #fff;
  background: linear-gradient(135deg, #e05a3f, #ab2413);
  background: linear-gradient(135deg, var(--vermilion-400), var(--vermilion-600));
  border: 0;
}

/* ---------- 主视觉（宣纸暖区 · 朱砂点睛） ---------- */
.m-hero {
  position: relative; padding: 18px 0 22px;
  background:
    radial-gradient(560px 300px at 50% -20%, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #e7d7b9 0%, #f4eee0 46%, #f6f2e9 100%);
  background:
    radial-gradient(560px 300px at 50% -20%, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #e7d7b9 0%, #f4eee0 46%, var(--page) 100%);
}
.m-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(460px 230px at 8% 0%, rgba(208, 51, 31, .26), transparent 68%),
    radial-gradient(420px 210px at 97% 100%, rgba(138, 27, 14, .17), transparent 70%);
}
/* 细网格纹理 */
.m-hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(122, 92, 62, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 92, 62, .075) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(420px 220px at 50% 24%, #000, transparent 80%);
  mask-image: radial-gradient(420px 220px at 50% 24%, #000, transparent 80%);
}
/* 底边向页面底色柔和过渡 */
.m-hero-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(180deg, rgba(246, 242, 233, 0), #f6f2e9);
  background: linear-gradient(180deg, rgba(246, 242, 233, 0), var(--page));
}
.m-hero-inner { position: relative; text-align: center; padding: 0 14px; }
.m-hero-eyebrow {
  display: inline-block; margin-bottom: 10px;
  padding: 4px 13px; border-radius: 999px;
  background: #fdf2ef; border: 1px solid #f1d6cf;
  color: #a8200f; font-size: 11px; letter-spacing: 1.5px;
}
.m-hero h1 {
  font-size: 17px; line-height: 1.5; color: #1a1a1e; color: var(--ink); font-weight: 700; letter-spacing: .5px;
}
.m-hero-sub { margin-top: 6px; font-size: 12.5px; color: #82828e; color: var(--ink-3); letter-spacing: .5px; }

/* ---------- 查询区（白色卡片 + 顶部高光） ---------- */
.m-query {
  position: relative; overflow: hidden;
  margin-top: 14px; background: #ffffff; border: 1px solid #e2dacb; border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 13px;
  box-shadow: 0 18px 40px rgba(60, 30, 20, .20), 0 0 60px 12px rgba(208, 51, 31, .13);
}
.m-query::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #e05a3f, #ab2413 48%, #e05a3f);
  background: linear-gradient(90deg, var(--vermilion-400), var(--vermilion-600) 48%, var(--vermilion-400));
}
.m-query-row {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid #e2dacb;
  border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 48px;
  background: #f8f5ee;
  background: var(--surface-2);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.m-query-row:focus-within { border-color: #e05a3f; border-color: var(--vermilion-400); background: #fff; box-shadow: 0 0 0 4px rgba(208, 51, 31, .18); }
.m-prefix { font-size: 15px; color: #82828e; color: var(--ink-3); font-weight: 600; flex-shrink: 0; }
.m-query-row input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-size: 17px; letter-spacing: 1.5px; color: #1a1a1e; color: var(--ink);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.m-query-row input::placeholder { color: #a5a5b1; color: var(--ink-4); letter-spacing: .5px; font-size: 14px; font-family: inherit; }
.m-btn-primary {
  width: 100%; margin-top: 10px; height: 46px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, #e05a3f, #ab2413);
  background: linear-gradient(135deg, var(--vermilion-400), var(--vermilion-600));
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 3px;
  box-shadow: 0 8px 20px rgba(138, 27, 14, .36);
}
.m-btn-primary:active { transform: translateY(1px); }
/* 错误提示：仅在真正有内容时占位，避免空占位把按钮组撑松散 */
.m-query-error { color: #d8453a; font-size: 12.5px; }
.m-query-error:not(:empty) { margin-top: 8px; min-height: 18px; }
.m-btn-batch {
  width: 100%; margin-top: 6px; height: 42px; border: 1px dashed #d3c6ad; border: 1px dashed var(--line-strong);
  border-radius: 12px; background: #f8f5ee; background: var(--surface-2); color: #8a1b0e; color: var(--vermilion-700); font-size: 13.5px;
}
.m-tips {
  margin-top: 16px; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .8);
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  font-size: 11px; color: #82828e; color: var(--ink-3);
}

/* ---------- 出结果后：查询区自动收起，把版面让给结果 ----------
 * 触发：js/main.js 在展示结果时给 <body> 加 .has-result
 * 实测：首屏 399px → 约 166px
 * 关键：收起态用 grid 让「输入行独占一行、主按钮与批量入口并排」，
 *       省掉批量按钮单独一行的 44px，保证结果卡在一屏内露完
 */
.has-result .m-hero { padding: 8px 0 10px; }
.has-result .m-hero-eyebrow { display: none; }
.has-result .m-hero-sub { display: none; }
/* 收起态连标题也收掉：此刻用户已经拿到结果，查询区越干净越好，
   省下的 20px 留给结果卡，帮它落进一屏 */
.has-result .m-hero h1 { display: none; }
.has-result .m-query {
  margin-top: 0; padding: 8px 10px;
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
}
.has-result .m-query-row { grid-column: 1 / -1; grid-row: 1; height: 42px; }
.has-result #queryBtn { grid-column: 1; grid-row: 2; margin-top: 0; height: 42px; font-size: 15px; letter-spacing: 2px; text-indent: 2px; }
.has-result #batchBtn {
  grid-column: 2; grid-row: 2; width: auto; margin-top: 0; height: 42px;
  padding: 0 13px; font-size: 13px; white-space: nowrap;
  background: transparent; border-style: solid;
}
.has-result .m-query-error { grid-column: 1 / -1; grid-row: 3; margin-top: 0; }
/* 空错误提示不参与 grid 排布，避免白占一个 gap 行高 */
.has-result .m-query-error:empty { display: none; }
.has-result .m-tips { display: none; }
.has-result .m-result-wrap { padding-top: 8px; }

/* ---------- 广告位 ---------- */
.ad-section { padding: 14px 12px; }
.ad-slot-inner { display: flex; justify-content: center; align-items: center; min-height: 50px; overflow: hidden; }
.ad-slot-inner:empty::before {
  content: "广告位"; display: block; width: 100%; text-align: center;
  color: #a5a5b1;
  color: var(--ink-4); font-size: 12px; letter-spacing: 2px; padding: 16px 0;
  border: 1px dashed #e2dacb;
  border: 1px dashed var(--line); border-radius: 12px; background: #f8f5ee; background: var(--surface-2);
}
.ad-section[data-slot="top"] { padding-top: 16px; padding-bottom: 6px; }
.ad-section[data-slot="bottom"] { padding-top: 6px; padding-bottom: 16px; }

/* ---------- 结果卡 ---------- */
.m-result-wrap { padding: 0 12px 6px; scroll-margin-top: 64px; }
.m-result-card {
  background: #ffffff;
  background: var(--white); border-radius: 16px; border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(60, 30, 20, .14);
  box-shadow: var(--shadow); overflow: hidden;
  border: 1px solid #e2dacb;
  border: 1px solid var(--line);
}
.result-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid #e2dacb; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8f5ee, #fff);
  background: linear-gradient(180deg, var(--surface-2), #fff);
}
.verdict-badge {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-size: 24px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(60, 30, 20, .24);
}
.verdict-info { flex: 1; min-width: 0; }
.verdict-info .phone { font-size: 14px; color: #82828e; color: var(--ink-3); letter-spacing: 1px; font-family: ui-monospace, Consolas, monospace; }
.verdict-info .fortune-big { font-size: 24px; font-weight: 700; margin: 2px 0; letter-spacing: 2px; }
.verdict-info .lishu-label { font-size: 12px; color: #82828e; color: var(--ink-3); }
.verdict-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag {
  font-size: 11px; padding: 3px 9px; border-radius: 20px;
  background: #f8f5ee;
  background: var(--surface-2); border: 1px solid #e2dacb; border: 1px solid var(--line); color: #82828e; color: var(--ink-3);
}
.tag.tag-gold { background: #f1ebdf; background: var(--surface-3); border-color: #d3c6ad; border-color: var(--line-strong); color: #8a1b0e; color: var(--vermilion-700); }
.score-ring { flex-shrink: 0; text-align: center; }
.score-ring .ring-label { font-size: 11px; color: #82828e; color: var(--ink-3); margin-top: 1px; }

.result-body { padding: 11px 14px; display: flex; flex-direction: column; gap: 14px; }
.result-body .col { display: flex; flex-direction: column; gap: 12px; }
.blk-title {
  font-size: 14px; font-weight: 700; color: #17171b; color: var(--ink-900); letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.blk-title::before { content: ""; width: 4px; height: 13px; background: #d0331f; background: var(--vermilion-500); border-radius: 2px; }
.sentence {
  font-size: 14px; line-height: 1.9; color: #45454e; color: var(--ink-2);
  background: #f8f5ee;
  background: var(--surface-2); border-radius: 10px; padding: 10px 12px;
  border-left: 3px solid #d0331f;
  border-left: 3px solid var(--vermilion-500);
}
.desc { font-size: 14px; color: #45454e; color: var(--ink-2); line-height: 1.9; }
.desc.collapsed {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.desc-toggle {
  margin-top: 6px; border: 0; background: none; color: #ab2413; color: var(--vermilion-600);
  font-size: 13px; padding: 0; cursor: pointer;
}
.energy { font-size: 13px; color: #45454e; color: var(--ink-2); background: #f8f5ee; background: var(--surface-2); padding: 10px 12px; border-radius: 10px; }

/* ---------- 靓号评级（嵌在结果头部） ----------
 * 与桌面版同一个思路：嵌进 verdict-info 而不是另起一行，省掉一整条的高度。
 * 手机屏更窄，徽章与标签再收一档，并允许换行避免溢出。 */
.rank-inline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rank-badge {
  flex-shrink: 0; width: 21px; height: 21px; border-radius: 6px;
  display: grid; place-items: center;
  color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1;
}
.rank-tier { font-size: 13px; font-weight: 700; }
.rank-chip {
  font-size: 11px; line-height: 17px; padding: 0 7px; border-radius: 999px;
  background: #ffffff;
  background: var(--white); border: 1px solid #d3c6ad; border: 1px solid var(--line-strong); color: #45454e; color: var(--ink-2);
}
.rank-chip-plain { color: #a5a5b1; color: var(--ink-4); border-color: #e2dacb; border-color: var(--line); }
/* 手机版不显示形态分/综合指数：结果头部信息区宽度只有约 150px，
   这一行会把等级行挤成两行。等级 + 形态标签才是从业者先看的东西。 */
.rank-combo { display: none; }

.rank-why { display: flex; flex-direction: column; gap: 6px; }
.rank-why p {
  margin: 0; position: relative; padding-left: 13px;
  font-size: 12.5px; line-height: 1.6; color: #45454e; color: var(--ink-2);
}
.rank-why p::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 5px; height: 5px; border-radius: 50%; background: #e05a3f; background: var(--vermilion-400);
}
.spinner {
  width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 常见问题 ---------- */
.m-faq { padding: 6px 12px 10px; }
.m-faq h2 {
  font-size: 15px; font-weight: 700; color: #1a1a1e; color: var(--ink);
  margin-bottom: 8px; padding-left: 9px; border-left: 4px solid #d0331f; border-left: 4px solid var(--vermilion-500);
}
.faq-item { background: #ffffff; background: var(--white); border: 1px solid #e2dacb; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 11px 14px; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; color: #d0331f; color: var(--vermilion-500); }
.faq-item[open] summary::after { content: "－"; }
.faq-item p { padding: 0 14px 13px; font-size: 13px; line-height: 1.9; color: #82828e; color: var(--ink-3); }

/* ---------- 页脚（玄墨收口） ---------- */
.m-footer {
  position: relative;
  background: linear-gradient(180deg, #17171b, #08080a);
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
  color: rgba(238, 226, 210, .84); padding: 24px 16px 28px; text-align: center;
}
.m-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #d0331f, transparent);
  background: linear-gradient(90deg, transparent, var(--vermilion-500), transparent);
}
.m-footer p { font-size: 12px; line-height: 1.9; }
.m-footer p b { color: #fff; }
.m-footer-meta { color: rgba(238, 226, 210, .78); margin-top: 6px; }
.m-footer-meta a { color: #d3c6ad; color: var(--line-strong); text-decoration: none; }

/* ---------- 批量弹窗（全屏） ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 0; }
.modal-mask { position: absolute; inset: 0; background: rgba(8, 8, 10, .60); }
.modal-body {
  position: relative; background: #fff; width: 100%;
  border-radius: 16px 16px 0 0; padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  max-height: 92vh;
}
.m-modal-head {
  position: sticky; top: -14px; background: #fff; margin: -14px -14px 0; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #e2dacb;
  border-bottom: 1px solid var(--line); z-index: 2;
}
.m-modal-head b { font-size: 16px; }
.m-modal-head small { font-size: 11px; color: #82828e; color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.modal-close {
  border: 0; background: none; font-size: 26px; line-height: 1; color: #82828e; color: var(--ink-3);
  cursor: pointer; padding: 0 4px;
}
.batch-drop {
  margin-top: 12px; border: 2px dashed #e2dacb; border: 2px dashed var(--line); border-radius: 12px;
  padding: 16px 12px; text-align: center; font-size: 13px; color: #82828e; color: var(--ink-3); background: #f8f5ee; background: var(--surface-2);
}
.batch-drop b { color: #ab2413; color: var(--vermilion-600); }
.batch-drop span { display: block; margin-top: 4px; font-size: 11px; color: #a5a5b1; color: var(--ink-4); }
.batch-drop.over { border-color: #d0331f; border-color: var(--vermilion-500); background: #f1ebdf; background: var(--surface-3); }
.batch-text {
  width: 100%; margin-top: 10px; min-height: 92px; border: 1px solid #e2dacb; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; font-size: 16px; font-family: inherit;
  color: #1a1a1e;
  color: var(--ink); background: #f8f5ee; background: var(--surface-2); resize: vertical;
}
.batch-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.btn-primary {
  border: 0; border-radius: 10px; background: linear-gradient(135deg, #e05a3f, #ab2413); background: linear-gradient(135deg, var(--vermilion-400), var(--vermilion-600));
  color: #fff; font-size: 15px; padding: 0 18px; height: 42px; flex: 1; min-width: 110px;
}
.btn-sm { height: 42px; }
.btn-ghost {
  border: 1px solid #e2dacb;
  border: 1px solid var(--line); background: #fff; color: #82828e; color: var(--ink-3);
  border-radius: 10px; height: 42px; padding: 0 14px; font-size: 14px;
}
.batch-info { font-size: 12px; color: #82828e; color: var(--ink-3); padding: 8px 2px 0; min-height: 18px; }
.batch-info.ok { color: #2e7d32; }
.batch-info.err { color: #d8453a; }
.batch-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.batch-tools select {
  border: 1px solid #e2dacb;
  border: 1px solid var(--line); border-radius: 10px; height: 38px;
  padding: 0 8px; font-size: 13px; background: #fff; color: #1a1a1e; color: var(--ink);
}
.batch-check { font-size: 13px; color: #82828e; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.batch-summary {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 8px 10px;
  background: #f8f5ee;
  background: var(--surface-2); border-radius: 10px; font-size: 12px; color: #82828e; color: var(--ink-3);
}
.batch-summary b { color: #1a1a1e; color: var(--ink); }
.batch-summary .ok b { color: #d4302b; }
.batch-summary .bad b { color: #3b3f46; }
.batch-summary .sum-s b { color: #d4302b; }
.batch-summary .sum-a b { color: #e3542f; }
.batch-summary .sum-b b { color: #d99a2b; }
.batch-summary .sum-star b { color: #e8a020; }
.batch-result { margin-top: 10px; max-height: 46vh; overflow: auto; -webkit-overflow-scrolling: touch; }
.batch-empty { padding: 30px 10px; text-align: center; color: #a5a5b1; color: var(--ink-4); font-size: 13px; }
.batch-note { font-size: 11px; color: #a5a5b1; color: var(--ink-4); padding: 8px 2px 0; }
.table-scroll { overflow-x: auto; }
.batch-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 680px; }
.batch-table th {
  position: sticky; top: 0; background: #f8f5ee; background: var(--surface-2); text-align: left; padding: 7px 8px;
  font-weight: 600; color: #1a1a1e; color: var(--ink); border-bottom: 1px solid #e2dacb; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.batch-table td { padding: 6px 8px; border-bottom: 1px solid #f0ebe0; border-bottom: 1px solid var(--line-soft); color: #45454e; color: var(--ink-2); vertical-align: top; }
.batch-table .mono { font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }
.batch-table .loc-cell { white-space: nowrap; color: #82828e; color: var(--ink-3); font-size: 12px; }
.batch-table .content-cell { max-width: 200px; color: #82828e; color: var(--ink-3); font-size: 11px; }
.f-tag { display: inline-block; color: #fff; border-radius: 6px; padding: 2px 7px; font-size: 11px; white-space: nowrap; }

/* ---------- 批量筛选台：星标 / 靓号等级 / 号码形态 ---------- */
.batch-table .th-star { width: 30px; }
.star-cell { cursor: pointer; text-align: center; user-select: none; }
.star-cell .star { display: inline-block; font-size: 15px; line-height: 1; color: #a5a5b1; color: var(--ink-4); }
.star-cell .star.on { color: #e8a020; }
.tier-cell { white-space: nowrap; }
.tier-badge {
  display: inline-block; width: 18px; height: 18px; line-height: 18px;
  border-radius: 5px; text-align: center; vertical-align: -4px; margin-right: 4px;
  color: #fff; font-size: 11px; font-weight: 700;
}
.tier-name { font-size: 11.5px; color: #45454e; color: var(--ink-2); }
.kind-cell { max-width: 120px; }
.kind-chip {
  display: inline-block; margin: 0 3px 2px 0; padding: 0 6px;
  font-size: 10.5px; line-height: 16px; white-space: nowrap;
  border-radius: 999px; background: #f1ebdf; background: var(--surface-3);
  border: 1px solid #e2dacb;
  border: 1px solid var(--line); color: #45454e; color: var(--ink-2);
}
.kind-none { font-size: 11px; color: #a5a5b1; color: var(--ink-4); }
.combo-cell { font-weight: 700; color: #ab2413; color: var(--vermilion-600); }

@media (min-width: 641px) {
  .m-hero-inner, .m-result-wrap, .ad-section, .m-faq { max-width: 560px; margin-left: auto; margin-right: auto; }
  .modal-body { max-width: 640px; border-radius: 16px; max-height: 88vh; }
}

/* ---------- 友情链接（页脚免责声明下方的纯文字横排，12593.com） ---------- */
.m-footer .m-footer-links { margin-top: 8px; }
.m-footer .m-footer-links a {
  color: #e8d9c2; text-decoration: none;
  border-bottom: 1px dashed rgba(232, 217, 194, .5);
}
.m-footer .m-footer-links a:active { color: #fff; }
.m-footer .m-footer-links .links-sep { opacity: .45; margin: 0 5px; }

/* ============ 从业者工具台（手机版） ============ */
.m-tools { padding: 22px 12px 4px; }
.m-tools-title { font-size: 17px; font-family: "STSong","SimSun",serif; letter-spacing: 2px; text-align: center; color: #17171b; color: var(--ink-900); }
.m-tools-sub { font-size: 12px; color: #82828e; color: var(--ink-3); text-align: center; margin: 5px 0 14px; }
.m-tools-grid { display: flex; flex-direction: column; gap: 10px; }
.m-tool-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 15px; text-align: left; cursor: pointer; font-family: inherit;
  background: #ffffff;
  background: var(--white); border: 1px solid #e2dacb; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 6px 16px rgba(60, 30, 20, .06);
}
.m-tool-card:active { transform: scale(.99); }
.m-tool-icon { font-size: 20px; flex-shrink: 0; }
.m-tool-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-tool-body b { font-size: 14px; color: #17171b; color: var(--ink-900); }
.m-tool-body i { font-style: normal; font-size: 12px; line-height: 1.5; color: #82828e; color: var(--ink-3); }

/* 选号工作流（副屏） */
.tools-flow {
  list-style: none; margin: 16px 0 0; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 12px;
  background: #f8f5ee;
  background: var(--surface-2); border: 1px solid #e2dacb; border: 1px solid var(--line);
  border-left: 3px solid #ab2413;
  border-left: 3px solid var(--vermilion-600); border-radius: 12px;
}
.tools-flow li { display: flex; flex-direction: column; gap: 3px; }
.tools-flow b { font-size: 13.5px; color: #17171b; color: var(--ink-900); }
.tools-flow span { font-size: 12.5px; line-height: 1.6; color: #45454e; color: var(--ink-2); }

/* 号段扫描表单（手机版纵向排列） */
.scan-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.scan-field { display: flex; flex-direction: column; gap: 5px; }
.scan-field > span { font-size: 12px; color: #82828e; color: var(--ink-3); }
.scan-field input, .scan-field select {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; outline: none;
  border: 1px solid #d3c6ad;
  border: 1px solid var(--line-strong); background: #f8f5ee; background: var(--surface-2);
  font-size: 15px; color: #1a1a1e; color: var(--ink); font-family: inherit;
}
.scan-field input { font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; }
.scan-field input:focus, .scan-field select:focus { border-color: #e05a3f; border-color: var(--vermilion-400); background: #fff; }
.scan-loc { color: #82828e; color: var(--ink-3); }
.modal-actions { display: flex; gap: 10px; margin-top: 12px; }
.modal-actions .btn-ghost { flex: 1; }
.cmp-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 12px; }
.cmp-table th, .cmp-table td { padding: 8px 10px; border-bottom: 1px solid #f0ebe0; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.cmp-table thead th { background: #f8f5ee; background: var(--surface-2); color: #17171b; color: var(--ink-900); white-space: nowrap; }
.cmp-table .cmp-dim { width: 78px; color: #82828e; color: var(--ink-3); font-size: 11.5px; white-space: nowrap; background: #f8f5ee; background: var(--surface-2); }
.cmp-table .cmp-best { background: #fdf4f1; }
.cmp-phone { font-family: ui-monospace, Consolas, monospace; }
.cmp-badge { display: inline-block; margin-left: 5px; padding: 1px 6px; border-radius: 999px; background: #d0331f; background: var(--vermilion-500); color: #fff; font-size: 10px; }
.cmp-big { font-size: 16px; color: #ab2413; color: var(--vermilion-600); }
.cmp-loc { color: #45454e; color: var(--ink-2); }
.batch-text-sm { min-height: 66px; }
.why-cell { min-width: 160px; color: #82828e; color: var(--ink-3); font-size: 11px; }

/* ============ 会员门禁 · 顶栏入口（12593.com 手机版） ============
 * 与 ☆ 收藏按钮同尺寸（32×32 圆形），保证顶栏在 320px 也不溢出。
 */
.m-auth-btn {
  flex-shrink: 0; width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; line-height: 1; font-size: 15px;
  color: #e05a3f;
  color: var(--vermilion-400);
  border: 1px solid rgba(208, 51, 31, .45);
  background: rgba(208, 51, 31, .16);
  transition: color .2s, background .2s;
}
.m-auth-btn:active { background: rgba(208, 51, 31, .34); }
.m-auth-btn.on {
  color: #fff;
  background: linear-gradient(135deg, #e05a3f, #ab2413);
  background: linear-gradient(135deg, var(--vermilion-400), var(--vermilion-600));
  border-color: transparent;
}
/* 极窄屏：让位给账号入口。电脑版链接在页脚本来就有，不算丢失功能。
   390px 下 5 个元素总宽约 369px > 可用 362px，所以这里必须收一档。 */
@media (max-width: 430px) {
  .m-top { padding: 0 12px; }
  .m-top .m-brand { gap: 7px; }
  .m-top .m-brand-text b { font-size: 14px; }
  .m-top .m-mark { width: 28px; height: 28px; font-size: 16px; border-radius: 8px; }
  .m-top .ss-btn { padding: 6px 8px; font-size: 11.5px; }
  .m-top .m-pc-link { padding: 4px 9px; font-size: 12px; }
  /* 顶栏要放下「分享」按钮，手机上把「电脑版」让出来 —— 功能没丢，
     手机版页脚里本来就有「电脑版」链接（© 那一行） */
  .m-top .m-pc-link { display: none; }
  .m-top .m-auth-btn, .m-top .m-fav-btn { width: 30px; height: 30px; font-size: 14px; }
}
@media (max-width: 374px) {
  .m-top .m-pc-link { display: none; }
  .m-top .m-brand-text b { font-size: 13px; }
  .m-top .m-brand-text small { display: none; }
  .m-top .ss-btn { padding: 6px 7px; font-size: 11px; }
}

/* 页脚会员入口 */
.m-footer .footer-auth-link {
  appearance: none; -webkit-appearance: none; border: 0; background: none; padding: 0;
  font: inherit; cursor: pointer; color: #d3c6ad; color: var(--line-strong);
  border-bottom: 1px solid transparent;
}
.m-footer .footer-auth-link:active { color: #fff; }

/* ============ 会员门禁 · 结果卡靓号评级占位 ============
 * 与 .rank-inline 同高一行，保证门禁前后结果卡高度不变
 * （手机版一屏余量只有 18px，绝不能因为门禁变高）。
 */
.rank-locked { gap: 6px; color: #82828e; color: var(--ink-3); }
.rank-lock-ico { font-size: 13px; line-height: 1; }
.rank-lock-title { font-size: 12.5px; font-weight: 700; color: #45454e; color: var(--ink-2); }
.rank-lock-sub { display: none; }
.rank-lock-btn {
  margin-left: auto; cursor: pointer; font-family: inherit;
  font-size: 11.5px; line-height: 1; white-space: nowrap;
  padding: 6px 11px; border-radius: 999px; color: #fff; border: 0;
  background: linear-gradient(135deg, #e05a3f, #ab2413);
  background: linear-gradient(135deg, var(--vermilion-400), var(--vermilion-600));
}
.rank-why-locked { font-size: 12.5px; line-height: 1.6; color: #a5a5b1; color: var(--ink-4); }

/* ============ 会员门禁 · 登录 / 注册浮层（手机版：底部抽屉式） ============ */
.auth-modal { position: fixed; inset: 0; z-index: 320; display: grid; align-items: end; padding: 0; }
.auth-modal[hidden] { display: none !important; }
.auth-mask { position: absolute; inset: 0; background: rgba(8, 8, 10, .62); }
.auth-box {
  position: relative; z-index: 1;
  width: 100%; max-height: 92vh; overflow-y: auto;
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: #f8f5ee;
  background: var(--surface-2);
  border-top: 3px solid #ab2413;
  border-top: 3px solid var(--vermilion-600);
  animation: authUp .24s ease-out;
}
@keyframes authUp { from { transform: translateY(100%); } to { transform: none; } }
.auth-close {
  position: absolute; right: 12px; top: 12px;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  border: 1px solid #e2dacb;
  border: 1px solid var(--line); background: #ffffff; background: var(--white);
  color: #82828e;
  color: var(--ink-3); font-size: 18px; line-height: 1;
  display: grid; place-items: center;
}
.auth-head { display: flex; align-items: flex-start; gap: 10px; padding-right: 40px; }
.auth-logo {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 700;
  background: linear-gradient(135deg, #e05a3f, #ab2413);
  background: linear-gradient(135deg, var(--vermilion-400), var(--vermilion-600));
}
.auth-head-text { display: flex; flex-direction: column; gap: 3px; }
.auth-title { font-size: 16px; font-weight: 700; color: #1a1a1e; color: var(--ink); }
.auth-sub { font-size: 12px; font-style: normal; line-height: 1.6; color: #82828e; color: var(--ink-3); }
.auth-sub b { color: #ab2413; color: var(--vermilion-600); }

.auth-tabs {
  display: flex; gap: 2px; margin: 14px 0 12px; padding: 3px; border-radius: 999px;
  background: #f1ebdf;
  background: var(--surface-3); border: 1px solid #e2dacb; border: 1px solid var(--line);
}
.auth-tab {
  flex: 1; appearance: none; -webkit-appearance: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 13px; line-height: 1; white-space: nowrap;
  padding: 9px 8px; border-radius: 999px;
  color: #82828e;
  color: var(--ink-3); background: transparent;
}
.auth-tab[hidden] { display: none !important; }
.auth-tab.on {
  color: #fff; font-weight: 600;
  background: linear-gradient(135deg, #e05a3f, #ab2413);
  background: linear-gradient(135deg, var(--vermilion-400), var(--vermilion-600));
}

.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form[hidden] { display: none !important; }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field[hidden] { display: none !important; }
.auth-field > span { font-size: 12px; color: #82828e; color: var(--ink-3); }
.auth-field > span em { font-style: normal; color: #a5a5b1; color: var(--ink-4); font-size: 11px; margin-left: 4px; }
.auth-field input {
  width: 100%; box-sizing: border-box; height: 44px;
  padding: 0 13px; border-radius: 10px; font-family: inherit; font-size: 15px;
  color: #1a1a1e;
  color: var(--ink); background: #ffffff; background: var(--white);
  border: 1px solid #d3c6ad;
  border: 1px solid var(--line-strong); outline: none;
}
.auth-field input:focus { border-color: #d0331f; border-color: var(--vermilion-500); background: #fff; }
.auth-cap-row { display: flex; gap: 9px; align-items: stretch; }
.auth-cap-row input { flex: 1; min-width: 0; }
.auth-cap-img {
  flex-shrink: 0; cursor: pointer; padding: 0; overflow: hidden;
  width: 112px; height: 44px; border-radius: 10px;
  border: 1px solid #d3c6ad;
  border: 1px solid var(--line-strong); background: #f8f5ee; background: var(--surface-2);
  display: grid; place-items: center;
}
.auth-cap-img svg { display: block; width: 100%; height: 100%; }
.auth-cap-img.loading { opacity: .55; }
.auth-cap-err { font-size: 11.5px; color: #82828e; color: var(--ink-3); }

.auth-msg { margin: 0; font-size: 12px; line-height: 1.6; }
.auth-msg.err { color: #ab2413; color: var(--vermilion-600); }
.auth-msg.ok { color: #2f7d4f; }

.auth-submit {
  cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600;
  height: 46px; border-radius: 11px; color: #fff; border: 0; letter-spacing: 1px;
  background: linear-gradient(135deg, #e05a3f, #ab2413);
  background: linear-gradient(135deg, var(--vermilion-400), var(--vermilion-600));
  box-shadow: 0 8px 20px rgba(208, 51, 31, .3);
}
.auth-submit:disabled { opacity: .62; }
.auth-foot { margin: 0; font-size: 12px; color: #82828e; color: var(--ink-3); text-align: center; }
.auth-link {
  appearance: none; -webkit-appearance: none; border: 0; background: none; padding: 0;
  font: inherit; cursor: pointer; color: #ab2413; color: var(--vermilion-600);
  border-bottom: 1px solid rgba(171, 36, 19, .35);
}

.auth-me {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 13px; border-radius: 12px;
  background: #ffffff;
  background: var(--white); border: 1px solid #e2dacb; border: 1px solid var(--line);
}
.auth-me-ico {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 17px;
  background: #f1ebdf;
  background: var(--surface-3); border: 1px solid #d3c6ad; border: 1px solid var(--line-strong);
}
.auth-me-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.auth-me-info b { font-size: 14.5px; color: #1a1a1e; color: var(--ink); }
.auth-me-info i { font-style: normal; font-size: 12px; color: #82828e; color: var(--ink-3); }
.auth-me-badge {
  flex-shrink: 0; font-size: 10.5px; line-height: 1;
  padding: 5px 8px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, #e05a3f, #ab2413);
  background: linear-gradient(135deg, var(--vermilion-400), var(--vermilion-600));
}
.auth-me-tip { margin: 0; font-size: 12px; line-height: 1.7; color: #82828e; color: var(--ink-3); }
.auth-me-pwd { display: flex; flex-direction: column; gap: 10px; }
.auth-me-pwd[hidden] { display: none !important; }
.auth-me-actions { display: flex; gap: 10px; }
.auth-ghost {
  flex: 1; cursor: pointer; font-family: inherit; font-size: 13.5px;
  height: 42px; border-radius: 10px;
  color: #45454e;
  color: var(--ink-2); background: #ffffff; background: var(--white);
  border: 1px solid #d3c6ad;
  border: 1px solid var(--line-strong);
}
.auth-ghost.auth-danger { color: #8a1b0e; color: var(--vermilion-700); border-color: rgba(171, 36, 19, .45); }
.auth-note {
  margin: 12px 0 0; padding-top: 10px;
  border-top: 1px solid #f0ebe0;
  border-top: 1px solid var(--line-soft);
  font-size: 11px; line-height: 1.7; color: #a5a5b1; color: var(--ink-4); text-align: center;
}

/* ==================== 广告铃音 DIY（会员功能） ==================== */

/* 首屏广告铃音入口：**直接复用副屏的 .m-tool-card.m-tool-card-hl**，两处长得一模一样
   （用户要求首页入口与副屏保持一致，以副屏为准）。
   出结果后由下面这条单独隐藏它 —— 不再依赖父级 tips 行，所以一屏预算照样零影响。 */
.m-hero-tts-entry { width: 100%; box-sizing: border-box; margin-top: 14px; text-align: left; }
.has-result .m-hero-tts-entry { display: none !important; }

/* 副屏第 4 项：加一层朱砂底，跟上面三张「选号工具」区分开 */
.m-tool-card-hl { background: #fdf2ef; border-color: rgba(171, 36, 19, .22); }
.m-tool-card-hl .m-tool-body b { color: #8a1b0e; color: var(--vermilion-700); }

.tts-text {
  width: 100%; box-sizing: border-box; margin-top: 12px; min-height: 76px;
  padding: 11px 13px; border: 1px solid #e2dacb; border: 1px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 14px; line-height: 1.7; color: #1a1a1e; color: var(--ink);
  background: #fff; resize: vertical;
}
.tts-text:focus { outline: none; border-color: #d0331f; border-color: var(--vermilion-500); }

.tts-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 11.5px; color: #82828e; color: var(--ink-3); }
.tts-count { font-variant-numeric: tabular-nums; }
.tts-count.over { color: #ab2413; color: var(--vermilion-600); font-weight: 700; }
.tts-est { font-variant-numeric: tabular-nums; color: #45454e; color: var(--ink-2); font-weight: 600; }
.tts-est.near { color: #b8791a; }
.tts-est.over { color: #ab2413; color: var(--vermilion-600); }
.tts-hint { margin-left: auto; color: #a5a5b1; color: var(--ink-4); font-size: 11px; }

.tts-label { margin: 14px 0 7px; font-size: 12px; color: #82828e; color: var(--ink-3); }

.tts-voices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tts-voice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left;
  padding: 10px 12px; border-radius: 11px; font-family: inherit;
  background: #f8f5ee;
  background: var(--surface-2); border: 1px solid #e2dacb; border: 1px solid var(--line);
}
.tts-voice.on { background: #fdf2ef; border-color: #d0331f; border-color: var(--vermilion-500); box-shadow: 0 0 0 2px rgba(208, 51, 31, .1); }
.tts-voice-ico { font-size: 15px; }
.tts-voice b { font-size: 13.5px; color: #17171b; color: var(--ink-900); }
.tts-voice i { font-style: normal; font-size: 10.5px; color: #a5a5b1; color: var(--ink-4); }
.tts-voice.on b { color: #8a1b0e; color: var(--vermilion-700); }

.tts-rates { display: flex; gap: 7px; }
.tts-rate {
  padding: 7px 14px; border-radius: 999px; font-family: inherit;
  font-size: 12px; color: #45454e; color: var(--ink-2); background: #f8f5ee; background: var(--surface-2); border: 1px solid #e2dacb; border: 1px solid var(--line);
}
.tts-rate.on { background: #ab2413; background: var(--vermilion-600); border-color: #ab2413; border-color: var(--vermilion-600); color: #fff; }

.tts-msg { margin: 9px 0 0; font-size: 12px; color: #82828e; color: var(--ink-3); }
.tts-msg:empty { display: none; }
.tts-msg.err { color: #ab2413; color: var(--vermilion-600); }
.tts-msg.ok { color: #2f7a4d; }

.tts-result { margin-top: 12px; padding: 10px; border-radius: 12px; background: #f8f5ee; background: var(--surface-2); border: 1px solid #e2dacb; border: 1px solid var(--line); }
.tts-result audio { display: block; width: 100%; height: 40px; }

/* 背景音选择 + 我的DIY铃声（会员功能） */
.tts-label-note { font-style: normal; color: #a5a5b1; color: var(--ink-4); font-size: 10.5px; margin-left: 5px; }

.tts-lib { margin-top: 16px; border-top: 1px dashed #d3c6ad; border-top: 1px dashed var(--line-strong); padding-top: 12px; }
.tts-lib-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.tts-lib-head b { font-size: 14px; color: #17171b; color: var(--ink-900); }
.tts-lib-meta { font-size: 11px; color: #a5a5b1; color: var(--ink-4); }
.tts-lib-list { display: flex; flex-direction: column; gap: 8px; }
.tts-lib-empty { font-size: 12px; color: #a5a5b1; color: var(--ink-4); text-align: center; padding: 10px 0; }
.tts-lib-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  background: #f8f5ee;
  background: var(--surface-2); border: 1px solid #e2dacb; border: 1px solid var(--line); border-radius: 10px;
}
.tts-lib-info { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.tts-lib-info b { font-size: 13px; color: #17171b; color: var(--ink-900); }
.tts-lib-info i { font-style: normal; font-size: 11.5px; color: #82828e; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tts-lib-info em { font-style: normal; font-size: 10.5px; color: #a5a5b1; color: var(--ink-4); }
.tts-lib-btns { display: flex; gap: 5px; flex-shrink: 0; }
.tts-lib-btn {
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-family: inherit;
  font-size: 13px; background: #fff; border: 1px solid #e2dacb; border: 1px solid var(--line); color: #45454e; color: var(--ink-2);
}
.tts-lib-btn:active { border-color: #d0331f; border-color: var(--vermilion-500); color: #ab2413; color: var(--vermilion-600); }
.tts-lib-del { color: #ab2413; color: var(--vermilion-600); }

/* 分享反馈轻提示（手机版：贴底并避开安全区） */
.share-toast {
  position: fixed; left: 50%; z-index: 400;
  bottom: calc(28px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(10px);
  max-width: calc(100% - 28px);
  padding: 10px 16px; border-radius: 999px;
  background: rgba(8, 8, 10, .92); color: #fff;
  font-size: 13px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}
.share-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 按城市查靓号（手机版 · 承接本地靓号长尾） ============
 * ⚠ 这个区块必须放在**结果之后**：放在 hero 与结果之间会顶高首屏，破坏「一屏放完」预算。
 *   改位置前先跑 _probe-rank.mjs（390×844）。 */
.m-city { margin: 18px 14px 6px; }
.m-city-head { margin: 0 0 3px; font-size: 15px; color: #17171b; color: var(--ink-900); letter-spacing: .3px; }
.m-city-sub { margin: 0 0 11px; font-size: 12px; color: #82828e; color: var(--ink-3); }
.m-city-list { display: flex; flex-wrap: wrap; gap: 8px; }
.m-city-list a {
  padding: 7px 13px; border-radius: 999px; font-size: 13px;
  background: #f8f5ee;
  background: var(--surface-2); border: 1px solid #e2dacb; border: 1px solid var(--line); color: #45454e; color: var(--ink-2);
}
.m-city-list a:active { background: #f1ebdf; background: var(--surface-3); color: #ab2413; color: var(--vermilion-600); }
.m-city-all { display: inline-block; margin-top: 12px; font-size: 12.5px; color: #ab2413; color: var(--vermilion-600); }
