/* ============ 12593靓号查查 · 前台样式（12593.com） ============
 * 设计体系：玄墨朱砂（Ink & Vermilion）
 *   页头/页脚用近纯墨色构成上下框架 → 中间是宣纸暖色查询区，朱砂做唯一强调色
 *   靠「墨 vs 纸 vs 朱砂」三者对比出冲击力，不用第二种彩色
 *   吉凶语义色仍遵循民俗惯例（吉=红），只用于结果，不做装饰
 */
: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 20px 48px rgba(60, 30, 20, .16);
  --shadow-sm: 0 6px 18px rgba(60, 30, 20, .10);
  --radius: 18px;

  /* —— 旧变量名兼容映射（历史规则仍引用它们）—— */
  --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 { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, sans-serif;
  color: #1a1a1e;
  color: var(--ink);
  background: #f6f2e9;
  background: var(--page);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航（玄墨框架） ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(135deg, #17171b, #08080a 72%);
  background: linear-gradient(135deg, var(--ink-900), var(--ink-950) 72%);
  border-bottom: 1px solid rgba(208, 51, 31, .22);
  box-shadow: 0 2px 18px rgba(8, 8, 10, .30);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #e05a3f, #ab2413);
  background: linear-gradient(135deg, var(--vermilion-400), var(--vermilion-600));
  color: #fff; font-size: 20px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(208, 51, 31, .42);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 17px; letter-spacing: 1px; color: #fff; }
.brand-text small { font-size: 11px; color: rgba(236, 222, 205, .74); letter-spacing: 2px; }
.topnav { display: flex; gap: 24px; align-items: center; }
.topnav a { text-decoration: none; color: rgba(240, 228, 212, .84); font-size: 14px; transition: color .2s; }
.topnav a:hover { color: #fff; }
.topnav .admin-link {
  padding: 6px 14px; border: 1px solid rgba(208, 51, 31, .42); border-radius: 999px;
}
.topnav .admin-link:hover {
  border-color: #e05a3f;
  border-color: var(--vermilion-400); color: #fff; background: rgba(208, 51, 31, .20);
}

/* ---------- 收藏本站 ---------- */
.topnav .fav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 15px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 14px; line-height: 1; white-space: nowrap;
  color: rgba(240, 228, 212, .90);
  border: 1px solid rgba(208, 51, 31, .42);
  background: transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.topnav .fav-btn:hover { border-color: #e05a3f; border-color: var(--vermilion-400); color: #fff; background: rgba(208, 51, 31, .20); }
.topnav .fav-btn:focus-visible { outline: 2px solid #e05a3f; outline: 2px solid var(--vermilion-400); outline-offset: 2px; }
.topnav .fav-star { color: #e05a3f; color: var(--vermilion-400); font-size: 15px; line-height: 1; }
.topnav .fav-btn.on .fav-star { color: #f0b429; }

/* 收藏指引气泡（固定底部居中，自动消失） */
.fav-tip {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 300; width: calc(100% - 34px); max-width: 430px;
  padding: 17px 20px 15px; border-radius: 16px; 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 24px 56px rgba(8, 8, 10, .48);
  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: 15.5px; letter-spacing: .5px; }
.fav-tip-head span { color: #e05a3f; color: var(--vermilion-400); }
.fav-tip-text { margin: 8px 0 0; font-size: 13.5px; line-height: 1.8; color: rgba(240, 228, 212, .88); }
.fav-tip-text kbd {
  display: inline-block; padding: 1px 7px; border-radius: 6px;
  font-family: inherit; font-size: 12.5px; color: #fff;
  background: rgba(208, 51, 31, .34); border: 1px solid rgba(208, 51, 31, .55);
}
.fav-tip-close {
  margin-top: 12px; padding: 7px 22px; 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; box-shadow: 0 6px 16px rgba(208, 51, 31, .38);
}

/* ---------- 主屏 / 副屏切换 ----------
 * 主屏（默认）= 查号测吉凶；副屏 = 从业者工具台。
 * 切换器放在吸顶栏内 → 零文档流高度，不会挤占结果页「一屏放完」的预算。
 */
.screen[hidden] { display: none !important; }
.screen-switch {
  display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0;
  padding: 3px; 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: 7px 15px; border-radius: 999px;
  font-size: 13.5px; line-height: 1; letter-spacing: .5px;
  color: rgba(240, 228, 212, .74); background: transparent;
  transition: color .2s, background .2s, box-shadow .2s;
}
.ss-btn:hover { color: #fff; }
.ss-btn.on {
  background: linear-gradient(135deg, #e05a3f, #ab2413);
  background: linear-gradient(135deg, var(--vermilion-400), var(--vermilion-600));
  color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px rgba(208, 51, 31, .42);
}
.ss-btn:focus-visible { outline: 2px solid #e05a3f; outline: 2px solid var(--vermilion-400); outline-offset: 2px; }
/* 副屏留出上下呼吸空间，别贴着吸顶栏和页脚 */
.screen-sub > .tools { padding: 38px 0 54px; }
.screen-sub #tools { scroll-margin-top: 68px; }

/* ---------- Hero（宣纸暖区 · 朱砂点睛） ----------
 * 底纹：宣纸暖色渐变（上深下浅）+ 细网格纹理 + 朱砂双光晕，避免大片纯色发空
 * 主体：1080px 白色卡片（与下方各区块同宽），顶部一条朱砂高光
 */
.hero {
  position: relative;
  /* 底部内边距控制「首屏卡片 → 下方问答区」的视觉间距。
     2026-10-07 用户反馈这段留白太大（卡片底到第一个问答框曾达 105px）→ 44→16，
     与下面 .faq 的 padding-top 一起收紧到约 55px。改这两处要一起看。 */
  padding: 40px 0 16px;
  overflow: hidden;
  color: #1a1a1e;
  color: var(--ink);
  background:
    radial-gradient(900px 440px at 50% -18%, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #e7d7b9 0%, #f4eee0 44%, #f6f2e9 100%);
  background:
    radial-gradient(900px 440px at 50% -18%, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #e7d7b9 0%, #f4eee0 44%, var(--page) 100%);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 350px at 4% 3%, rgba(208, 51, 31, .24), transparent 64%),
    radial-gradient(580px 330px at 98% 92%, rgba(138, 27, 14, .18), transparent 66%);
}
/* 细网格纹理：增加质感 */
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(122, 92, 62, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 92, 62, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(720px 340px at 50% 26%, #000, transparent 78%);
  mask-image: radial-gradient(720px 340px at 50% 26%, #000, transparent 78%);
}
/* 底边向页面底色柔和过渡，避免出现一条硬边 */
.hero-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px;
  background: linear-gradient(180deg, rgba(246, 242, 233, 0), #f6f2e9);
  background: linear-gradient(180deg, rgba(246, 242, 233, 0), var(--page));
}
.hero-inner {
  position: relative;
  /* 与下方 .container（问答 / 结果卡 / 广告区）同宽（1080px），
     这样整页从上到下左右边界对齐。曾为 680px，比下方窄一截、看着不协调。 */
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e2dacb;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px 40px 28px;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(60, 30, 20, .20),
    0 0 110px 28px rgba(208, 51, 31, .17),
    0 1px 0 rgba(255, 255, 255, .9) inset;
}
/* 顶部朱砂高光条 */
.hero-inner::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, #e05a3f, #ab2413 48%, #e05a3f);
  background: linear-gradient(90deg, var(--vermilion-400), var(--vermilion-600) 48%, var(--vermilion-400));
}
.hero-eyebrow {
  display: inline-block; margin-bottom: 12px;
  padding: 5px 16px; border-radius: 999px;
  background: #fdf2ef; border: 1px solid #f1d6cf;
  color: #a8200f; font-size: 12px; letter-spacing: 2px;
}
.hero-title {
  /* 上限 26px：卡内容宽 600px，20 字标题在 26px 下约 540px，稳定单行不折行 */
  font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: 1px; line-height: 1.5;
  color: #1a1a1e;
  color: var(--ink);
  font-family: "STSong", "SimSun", "Noto Serif SC", serif;
}
.hero-sub { margin-top: 9px; font-size: 13.5px; color: #82828e; color: var(--ink-3); letter-spacing: .5px; }

.query-box { margin: 22px auto 0; max-width: 100%; }
.query-row {
  display: flex; align-items: center; gap: 0;
  background: #f8f5ee;
  background: var(--surface-2); border: 1px solid #e2dacb; border: 1px solid var(--line);
  border-radius: 15px; padding: 5px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.query-row:focus-within {
  background: #fff; border-color: #e05a3f; border-color: var(--vermilion-400);
  box-shadow: 0 0 0 4px rgba(208, 51, 31, .18);
}
.prefix {
  padding: 0 14px 0 16px; color: #82828e; color: var(--ink-3); font-size: 15px; font-weight: 600;
  border-right: 1px solid #e2dacb;
  border-right: 1px solid var(--line); margin-right: 12px;
}
.query-row input {
  flex: 1; min-width: 0; border: none; outline: none;
  font-size: 17px; letter-spacing: 2px; padding: 13px 6px;
  color: #1a1a1e;
  color: var(--ink); background: transparent;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.query-row input::placeholder { color: #a5a5b1; color: var(--ink-4); letter-spacing: .5px; font-size: 14px; font-family: inherit; }
.btn-primary {
  border: none; cursor: pointer; white-space: nowrap;
  padding: 13px 28px; border-radius: 11px;
  background: linear-gradient(135deg, #e05a3f, #ab2413);
  background: linear-gradient(135deg, var(--vermilion-400), var(--vermilion-600));
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 2px;
  box-shadow: 0 8px 20px rgba(138, 27, 14, .36);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(138, 27, 14, .42); filter: brightness(1.04); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 5px 14px rgba(138, 27, 14, .30); }
/* 错误提示：仅在真正有内容时占位，避免空占位把按钮组撑松散 */
.query-error { color: #d8453a; font-size: 12.5px; }
.query-error:not(:empty) { margin-top: 8px; min-height: 18px; }

/* 查询框下方的批量入口 */
.query-extra { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.btn-batch {
  border: 1px solid #e2dacb;
  border: 1px solid var(--line); background: #f8f5ee; background: var(--surface-2); color: #8a1b0e; color: var(--vermilion-700);
  cursor: pointer; border-radius: 999px;
  padding: 7px 16px; font-size: 12.5px; letter-spacing: .5px;
  transition: background .18s, border-color .18s, transform .15s;
}
.btn-batch:hover { background: #f1ebdf; background: var(--surface-3); border-color: #d3c6ad; border-color: var(--line-strong); transform: translateY(-1px); }
.query-extra-tip { font-size: 11.5px; color: #a5a5b1; color: var(--ink-4); }

.hero-tips {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid #f0ebe0; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  font-size: 11.5px; color: #82828e; color: var(--ink-3);
}
.hero-tips span { letter-spacing: .5px; }

/* ---------- 出结果后：查询区收成一条紧凑搜索栏 ----------
 * 触发：js/main.js 在展示结果时给 <body> 加 .has-result
 * 目标：常见笔记本视口（1280×720，可用高约 620px）也能「查询栏 + 完整结果」一屏放完
 * 做法：标题/副标题/徽标/底部提示全收掉，输入行与批量入口并排成一行
 * 实测：首屏 440px → 约 104px；加上结果卡合计约 550px
 */
.has-result .hero { padding: 12px 0; }
.has-result .hero-inner { padding: 10px 22px; border-radius: 16px; }
.has-result .hero-eyebrow,
.has-result .hero-title,
.has-result .hero-sub,
.has-result .hero-tips { display: none; }
.has-result .query-box {
  margin-top: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.has-result .query-row { flex: 1; min-width: 260px; }
/* 错误提示独占一行（order 3 + 100% 宽），不挤坏这一行 */
.has-result .query-error { order: 3; flex-basis: 100%; margin: 0; }
.has-result .query-extra { margin-top: 0; flex-shrink: 0; }
.has-result .query-extra-tip { display: none; }
.has-result .result-wrap { margin-top: 14px; }

/* 窄屏：卡片内边距收紧，避免左右挤 */
@media (max-width: 720px) {
  .hero { padding: 20px 0 24px; }
  .hero-inner { max-width: none; margin: 0 12px; padding: 24px 18px 20px; border-radius: 18px; }
  .btn-primary { padding: 13px 20px; letter-spacing: 1px; }
}

/* ---------- 结果卡片 ---------- */
.result-wrap { margin-top: 24px; position: relative; z-index: 10; scroll-margin-top: 68px; }
.result-card {
  background: #fff; border-radius: 18px; border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(60, 30, 20, .16);
  box-shadow: var(--shadow); overflow: hidden;
  border: 1px solid #e2dacb;
  border: 1px solid var(--line);
}
.result-head {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #f8f5ee, #f1ebdf);
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  border-bottom: 1px solid #e2dacb;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.verdict-badge {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  color: #fff; font-family: "STSong","SimSun",serif;
  font-size: 28px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(60, 30, 20, .26);
}
.verdict-info { flex: 1; min-width: 220px; }
.verdict-info .phone { font-size: 13.5px; color: #82828e; color: var(--ink-3); letter-spacing: 1px; }
.verdict-info .fortune-big { font-size: 25px; font-weight: 700; margin: 1px 0; letter-spacing: 2px; }
.verdict-info .lishu-label { font-size: 12.5px; color: #82828e; color: var(--ink-3); }
.verdict-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
.tag {
  padding: 3px 10px; border-radius: 999px; font-size: 12px;
  background: #fff; 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: 12px; color: #82828e; color: var(--ink-3); margin-top: 2px; }

.result-body { padding: 13px 22px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.result-body .col { display: flex; flex-direction: column; gap: 11px; }
.blk-title { font-size: 14px; font-weight: 700; color: #17171b; color: var(--ink-900); letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.blk-title::before { content: ""; width: 4px; height: 14px; background: #d0331f; background: var(--vermilion-500); border-radius: 2px; }
.sentence {
  font-family: "STSong","SimSun",serif; font-size: 16.5px; line-height: 1.65;
  padding: 11px 15px; background: #f8f5ee; background: var(--surface-2); border-radius: 10px; border-left: 4px solid #d0331f; border-left: 4px solid var(--vermilion-500);
}
/* 详细解读默认收起，保证结果区也能一屏看完 */
.desc { font-size: 14px; color: #45454e; color: var(--ink-2); line-height: 1.8; }
.desc.collapsed {
  max-height: 5.6em; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}
.desc-toggle {
  margin-top: 6px; border: none; background: none; cursor: pointer;
  color: #ab2413;
  color: var(--vermilion-600); font-size: 13px; padding: 0;
}
.energy { font-size: 13px; color: #45454e; color: var(--ink-2); background: #f8f5ee; background: var(--surface-2); padding: 10px 13px; border-radius: 10px; }

/* ---------- 靓号评级（嵌在结果头部，面向选号/报价场景） ----------
 * 嵌进 verdict-info 而不是另起一行：结果头部高度由右侧 92px 评分环决定，
 * 信息区还有约 30px 余量，塞进去几乎不增加卡片总高，能保住「一屏放完」。
 * 长文案（卖点话术）统一放右列的「靓号卖点」块。 */
.rank-inline { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 5px; }
.rank-badge {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
}
.rank-tier { font-size: 13.5px; font-weight: 700; letter-spacing: .5px; }
.rank-chip {
  font-size: 11.5px; line-height: 18px; padding: 0 8px; 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); }
.rank-combo { margin-left: auto; font-size: 12px; color: #82828e; color: var(--ink-3); white-space: nowrap; }
.rank-combo b { font-size: 14px; font-weight: 700; color: #45454e; color: var(--ink-2); }
.rank-combo b.rank-combo-main { font-size: 15px; color: #ab2413; color: var(--vermilion-600); }

.rank-why { display: flex; flex-direction: column; gap: 7px; }
.rank-why p {
  margin: 0; position: relative; padding-left: 14px;
  font-size: 13px; 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);
}


/* ---------- 从业者工具台（手机店 / 营业厅选号） ---------- */
.tools { padding: 42px 0 8px; }
.tools-head { text-align: center; margin-bottom: 22px; }
.tools-title { font-size: 24px; font-family: "STSong","SimSun",serif; letter-spacing: 3px; color: #17171b; color: var(--ink-900); }
.tools-sub { font-size: 13px; color: #82828e; color: var(--ink-3); margin-top: 7px; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  padding: 20px 20px 22px; text-align: left; cursor: pointer;
  background: #ffffff;
  background: var(--white); border: 1px solid #e2dacb; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 10px 26px rgba(60, 30, 20, .07);
  transition: transform .16s, box-shadow .16s, border-color .16s;
  font-family: inherit; color: inherit;
}
.tool-card:hover {
  transform: translateY(-3px); border-color: #d3c6ad; border-color: var(--line-strong);
  box-shadow: 0 18px 38px rgba(60, 30, 20, .13);
}
.tool-icon { font-size: 22px; line-height: 1; }
.tool-card b { font-size: 16px; color: #17171b; color: var(--ink-900); letter-spacing: .5px; }
.tool-desc { font-size: 13px; line-height: 1.65; color: #82828e; color: var(--ink-3); }

/* 选号工作流：把三件工具串成一条能直接用的动线 */
.tools-flow {
  list-style: none; margin: 26px 0 0; padding: 20px 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  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: 14px;
}
.tools-flow li { display: flex; flex-direction: column; gap: 6px; }
.tools-flow b { font-size: 14.5px; color: #17171b; color: var(--ink-900); letter-spacing: .3px; }
.tools-flow span { font-size: 13px; line-height: 1.65; color: #45454e; color: var(--ink-2); }

/* ---------- 号段扫描表单 ---------- */
.scan-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.scan-field { display: flex; flex-direction: column; gap: 6px; }
.scan-field > span { font-size: 12px; color: #82828e; color: var(--ink-3); }
.scan-field input, .scan-field select {
  height: 38px; 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: 14px; color: #1a1a1e; color: var(--ink); font-family: inherit;
}
.scan-field input:focus, .scan-field select:focus {
  border-color: #e05a3f;
  border-color: var(--vermilion-400); background: #fff;
  box-shadow: 0 0 0 3px rgba(208, 51, 31, .14);
}
.scan-field input { width: 158px; font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; }
.scan-field select { min-width: 170px; }
.scan-loc { color: #82828e; color: var(--ink-3); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }

/* ---------- 号码对比表 ---------- */
.cmp-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
.cmp-table th, .cmp-table td {
  padding: 10px 14px; 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); font-size: 13.5px; white-space: nowrap; }
.cmp-table .cmp-dim { width: 100px; color: #82828e; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; background: #f8f5ee; background: var(--surface-2); }
.cmp-table .cmp-best { background: #fdf4f1; }
.cmp-phone { font-family: ui-monospace, Consolas, monospace; letter-spacing: .5px; }
.cmp-badge {
  display: inline-block; margin-left: 7px; padding: 1px 8px; border-radius: 999px;
  background: #d0331f;
  background: var(--vermilion-500); color: #fff; font-size: 11px; vertical-align: 1px;
}
.cmp-big { font-size: 18px; color: #ab2413; color: var(--vermilion-600); }
.cmp-loc { color: #45454e; color: var(--ink-2); }
.batch-text-sm { min-height: 74px; }
.why-cell { min-width: 220px; color: #82828e; color: var(--ink-3); font-size: 12px; }

/* ---------- 数理速查表 ---------- */
.table-section { padding: 60px 0 20px; }.section-head { text-align: center; margin-bottom: 8px; }
.section-head h2 { font-size: 28px; font-family: "STSong","SimSun",serif; letter-spacing: 3px; }
.section-head p { color: #82828e; color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.legend { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 20px 0 26px; }
.lg { font-size: 12px; padding: 3px 12px; border-radius: 6px; color: #fff; }
.lg-1 { background: #d4302b; } .lg-2 { background: #e3542f; } .lg-3 { background: #d99a2b; }
.lg-31 { background: #8a8f3a; } .lg-41 { background: #5b7a99; } .lg-4 { background: #6b7280; } .lg-5 { background: #3b3f46; }

.lishu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.ls-item {
  cursor: pointer; text-align: center; padding: 14px 8px;
  background: #fff; border: 1px solid #e2dacb; border: 1px solid var(--line); border-radius: 12px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ls-item:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(60, 30, 20, .10); box-shadow: var(--shadow-sm); border-color: #d3c6ad; border-color: var(--line-strong); }
.ls-item .n { font-size: 22px; font-weight: 700; font-family: serif; }
.ls-item .f { font-size: 12px; margin-top: 2px; color: #82828e; color: var(--ink-3); }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal-mask { position: absolute; inset: 0; background: rgba(8, 8, 10, .60); backdrop-filter: blur(3px); }
.modal-body {
  position: relative; background: #fff; border-radius: 16px; padding: 30px;
  max-width: 520px; width: 100%; max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 48px rgba(60, 30, 20, .16); box-shadow: var(--shadow);
}
.modal-close {
  position: absolute; top: 12px; right: 16px; border: none; background: none;
  font-size: 28px; cursor: pointer; color: #82828e; color: var(--ink-3);
}

/* ---------- 广告位 ---------- */
.ad-section { padding: 24px 0; }
.ad-slot-inner { display: flex; justify-content: center; align-items: center; min-height: 60px; overflow: hidden; }
.ad-slot-inner:empty::before {
  content: "广告位"; display: block; width: 100%; text-align: center;
  color: #a5a5b1;
  color: var(--ink-4); font-size: 13px; letter-spacing: 2px; padding: 18px 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: 36px; padding-bottom: 12px; }
.ad-section[data-slot="bottom"] { padding-top: 12px; padding-bottom: 36px; }

/* ---------- 页脚（玄墨框架收口） ---------- */
.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: 40px 0;
  text-align: center;
}
.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);
}
.footer p { max-width: 760px; margin: 0 auto; font-size: 13px; line-height: 1.9; }
.footer p b { color: #fff; }
.footer .footer-meta { margin-top: 14px; opacity: .7; font-size: 12px; }
.footer .footer-meta a { color: #d3c6ad; color: var(--line-strong); text-decoration: none; border-bottom: 1px solid transparent; }
.footer .footer-meta a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .6); }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .hero-title { font-size: 21px; letter-spacing: 1px; line-height: 1.6; }
  .query-row { flex-wrap: wrap; border-radius: 20px; }
  .query-row input { width: 100%; flex: none; text-align: center; }
  .prefix { display: none; }
  .btn-primary { width: 100%; border-radius: 14px; margin-top: 4px; }
  .result-body { grid-template-columns: 1fr; }
  .result-head { justify-content: center; text-align: center; padding: 28px 20px; }
  .topnav { gap: 14px; }
  .topnav a { font-size: 13px; }
}

/* ---------- 批量查靓号 ---------- */
.modal-wide { max-width: 1180px; max-height: 88vh; padding: 22px 24px; display: flex; flex-direction: column; }
.batch-title { font-size: 17px; letter-spacing: 1px; display: flex; align-items: baseline; gap: 10px; padding-right: 28px; }
.batch-title small { font-size: 12px; font-weight: 400; color: #82828e; color: var(--ink-3); }
.batch-grid { display: grid; grid-template-columns: 320px 1fr; gap: 18px; margin-top: 14px; min-height: 0; flex: 1; }
.batch-left { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.batch-drop {
  border: 1px dashed #d3c6ad;
  border: 1px dashed var(--line-strong); border-radius: 12px; background: #f8f5ee; background: var(--surface-2);
  padding: 14px 12px; text-align: center; cursor: pointer;
  font-size: 13px; color: #82828e; color: var(--ink-3); line-height: 1.7; transition: background .18s, border-color .18s;
}
.batch-drop b { color: #ab2413; color: var(--vermilion-600); }
.batch-drop span { display: block; font-size: 12px; opacity: .8; }
.batch-drop.over { background: #f1ebdf; background: var(--surface-3); border-color: #d0331f; border-color: var(--vermilion-500); }
.batch-text {
  width: 100%; border: 1px solid #e2dacb; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 13px; line-height: 1.6; resize: vertical; min-height: 110px; max-height: 26vh;
  font-family: inherit; color: #1a1a1e; color: var(--ink); outline: none;
}
.batch-text:focus { border-color: #e05a3f; border-color: var(--vermilion-400); box-shadow: 0 0 0 3px rgba(208,51,31,.16); }
.batch-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-ghost {
  border: 1px solid #e2dacb;
  border: 1px solid var(--line); background: #fff; color: #82828e; color: var(--ink-3);
  cursor: pointer; border-radius: 999px; padding: 7px 16px; font-size: 13px;
  transition: border-color .18s, color .18s;
}
.btn-ghost:hover { border-color: #e05a3f; border-color: var(--vermilion-400); color: #ab2413; color: var(--vermilion-600); }
.btn-primary.btn-sm { padding: 8px 20px; font-size: 14px; }
.batch-info { font-size: 12px; line-height: 1.7; color: #82828e; color: var(--ink-3); min-height: 18px; }
.batch-info.ok { color: #2e7d4f; }
.batch-info.err { color: #d8453a; }

.batch-right { display: flex; flex-direction: column; min-height: 0; }
.batch-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.batch-tools select {
  border: 1px solid #e2dacb;
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px;
  font-size: 12px; color: #82828e; color: var(--ink-3); background: #fff;
}
.batch-check { font-size: 12px; color: #82828e; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.batch-summary { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #82828e; color: var(--ink-3); margin: 10px 0 6px; }
.batch-summary b { font-size: 15px; 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 { flex: 1; min-height: 0; overflow: auto; border: 1px solid #e2dacb; border: 1px solid var(--line); border-radius: 10px; }
.batch-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 13px; }
.batch-table th {
  position: sticky; top: 0; background: #f8f5ee; background: var(--surface-2); z-index: 1;
  text-align: left; padding: 8px 10px; 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: 7px 10px; border-bottom: 1px solid #f0ebe0; border-bottom: 1px solid var(--line-soft); color: #45454e; color: var(--ink-2); vertical-align: top; }
.batch-table tbody tr { cursor: pointer; }
.batch-table tbody tr:hover { background: #f8f5ee; background: var(--surface-2); }
.batch-table .mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .5px; white-space: nowrap; }
.batch-table .loc-cell { white-space: nowrap; color: #82828e; color: var(--ink-3); font-size: 13px; }
.batch-table .content-cell { max-width: 260px; color: #82828e; color: var(--ink-3); font-size: 12px; }
.f-tag { display: inline-block; color: #fff; border-radius: 6px; padding: 2px 8px; font-size: 12px; white-space: nowrap; }

/* ---------- 批量筛选台：星标 / 靓号等级 / 号码形态 ---------- */
.batch-table .th-star { width: 32px; padding-left: 6px; padding-right: 2px; }
.star-cell { cursor: pointer; text-align: center; user-select: none; padding-left: 6px !important; padding-right: 2px !important; }
.star-cell .star { display: inline-block; font-size: 15px; line-height: 1; color: #a5a5b1; color: var(--ink-4); transition: color .15s, transform .15s; }
.star-cell:hover .star { color: #e05a3f; color: var(--vermilion-400); transform: scale(1.25); }
.star-cell .star.on { color: #e8a020; }
.tier-cell { white-space: nowrap; }
.tier-badge {
  display: inline-block; width: 19px; height: 19px; line-height: 19px;
  border-radius: 5px; text-align: center; vertical-align: -4px; margin-right: 5px;
  color: #fff; font-size: 11.5px; font-weight: 700;
}
.tier-name { font-size: 12px; color: #45454e; color: var(--ink-2); }
.kind-cell { max-width: 160px; }
.kind-chip {
  display: inline-block; margin: 0 4px 2px 0; padding: 0 7px;
  font-size: 11px; line-height: 17px; 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: 11.5px; color: #a5a5b1; color: var(--ink-4); }
.combo-cell { font-weight: 700; color: #ab2413; color: var(--vermilion-600); }
.batch-empty { padding: 40px 10px; text-align: center; color: #a5a5b1; color: var(--ink-4); font-size: 13px; }
.batch-note { font-size: 12px; color: #a5a5b1; color: var(--ink-4); padding: 6px 4px 0; }

@media (max-width: 860px) {
  .batch-grid { grid-template-columns: 1fr; }
  .modal-wide { padding: 18px 16px; }
  .batch-result { max-height: 44vh; }
}

/* 加载动画 */
.spinner { width: 26px; height: 26px; 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); } }

/* ============ 常见问题 FAQ（SEO 内容区） ============ */
/* padding-top 与 .hero 的 padding-bottom 共同决定「首屏卡片 → 问答区」的留白 */
.faq { padding: 6px 0 6px; }
.faq-title {
  font-size: 17px; font-weight: 700; color: #1a1a1e; color: var(--ink);
  margin-bottom: 6px; padding-left: 10px; 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;
  transition: border-color .18s, box-shadow .18s;
}
.faq-item:hover { border-color: #d3c6ad; border-color: var(--line-strong); box-shadow: 0 6px 18px rgba(60, 30, 20, .10); box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 11px 16px;
  font-size: 14px; font-weight: 600; color: #1a1a1e; color: var(--ink);
  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); font-size: 15px; }
.faq-item[open] summary::after { content: "－"; }
.faq-item p {
  padding: 0 16px 13px; font-size: 13px; line-height: 1.9; color: #82828e; color: var(--ink-3);
}
@media (max-width: 860px) {
  .faq { padding: 16px 0 4px; }
  .faq-title { font-size: 15px; }
}

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

/* ============ 从业者工具台 · 窄屏适配 ============ */
@media (max-width: 900px) {
  .tools { padding: 30px 0 6px; }
  .tools-grid { grid-template-columns: 1fr; gap: 12px; }
  .tools-title { font-size: 20px; letter-spacing: 2px; }
  .tool-card { padding: 16px 18px 18px; border-radius: 16px; }
  .tool-card:hover { transform: none; }
  .scan-form { gap: 10px; }
  .scan-field { flex: 1 1 150px; }
  .scan-field input, .scan-field select { width: 100%; min-width: 0; }
  .scan-form #scanRun { flex: 1 1 100%; }
  .modal-actions { justify-content: stretch; }
  .modal-actions .btn-ghost { flex: 1; }
}

/* ============ 会员门禁 · 顶栏入口（12593.com） ============
 * 门禁对象：从业者工具台、首页批量查询、结果卡靓号评级。
 * 配色仍只用「墨 / 纸 / 朱砂」三色，不引入第二种彩色。
 */
.topnav .auth-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 15px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 14px; line-height: 1; white-space: nowrap;
  color: rgba(240, 228, 212, .90);
  border: 1px solid rgba(208, 51, 31, .42);
  background: transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.topnav .auth-btn:hover { border-color: #e05a3f; border-color: var(--vermilion-400); color: #fff; background: rgba(208, 51, 31, .20); }
.topnav .auth-btn:focus-visible { outline: 2px solid #e05a3f; outline: 2px solid var(--vermilion-400); outline-offset: 2px; }
.topnav .auth-btn-ico { font-size: 14px; line-height: 1; }
.topnav .auth-btn.on {
  color: #fff;
  border-color: #e05a3f;
  border-color: var(--vermilion-400);
  background: linear-gradient(135deg, rgba(224, 90, 63, .34), rgba(171, 36, 19, .34));
}
.topnav .auth-btn.on .auth-btn-ico { color: #e05a3f; color: var(--vermilion-400); }

/* 页脚里的会员入口（用 button 而不是 a，避免爬虫把它当成可收录链接） */
.footer .footer-auth-link,
.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); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer .footer-auth-link:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .6); }

/* ============ 会员门禁 · 结果卡里的靓号评级占位 ============
 * 与 .rank-inline 同高一行，保证「未登录」与「已登录」两种状态下
 * 结果卡高度一致 —— 一屏放完的预算（桌面底边 608px）不能因为门禁而变。
 */
.rank-locked {
  gap: 6px;
  color: #82828e;
  color: var(--ink-3);
}
.rank-lock-ico { font-size: 13px; line-height: 1; }
.rank-lock-title { font-size: 13px; font-weight: 700; color: #45454e; color: var(--ink-2); letter-spacing: .3px; }
.rank-lock-sub { font-size: 11.5px; color: #a5a5b1; color: var(--ink-4); }
.rank-lock-btn {
  margin-left: auto; cursor: pointer; font-family: inherit;
  font-size: 12px; line-height: 1; white-space: nowrap;
  padding: 5px 12px; border-radius: 999px; color: #fff;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #e05a3f, #ab2413);
  background: linear-gradient(135deg, var(--vermilion-400), var(--vermilion-600));
  transition: filter .2s;
}
.rank-lock-btn:hover { filter: brightness(1.08); }
.rank-lock-btn:focus-visible { outline: 2px solid #e05a3f; outline: 2px solid var(--vermilion-400); outline-offset: 2px; }
/* 未登录时「靓号卖点」用同样的块位保留占位，避免右列塌陷 */
.rank-why-locked {
  font-size: 13px; line-height: 1.6; color: #a5a5b1; color: var(--ink-4);
}

/* ============ 会员门禁 · 登录 / 注册浮层 ============ */
.auth-modal { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 20px; }
.auth-modal[hidden] { display: none !important; }
.auth-mask { position: absolute; inset: 0; background: rgba(8, 8, 10, .62); backdrop-filter: blur(3px); }
.auth-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto;
  padding: 24px 26px 20px; border-radius: 18px;
  background: #f8f5ee;
  background: var(--surface-2);
  border: 1px solid #d3c6ad;
  border: 1px solid var(--line-strong);
  box-shadow: 0 26px 64px rgba(8, 8, 10, .5);
  animation: authIn .22s ease-out;
}
@keyframes authIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.auth-close {
  position: absolute; right: 12px; top: 12px;
  width: 30px; height: 30px; 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-close:hover { color: #ab2413; color: var(--vermilion-600); border-color: #e05a3f; border-color: var(--vermilion-400); }

.auth-head { display: flex; align-items: flex-start; gap: 11px; padding-right: 34px; }
.auth-logo {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 700;
  background: linear-gradient(135deg, #e05a3f, #ab2413);
  background: linear-gradient(135deg, var(--vermilion-400), var(--vermilion-600));
  box-shadow: 0 5px 14px rgba(208, 51, 31, .38);
}
.auth-head-text { display: flex; flex-direction: column; gap: 3px; }
.auth-title { font-size: 17px; font-weight: 700; color: #1a1a1e; color: var(--ink); letter-spacing: .5px; }
.auth-sub { font-size: 12.5px; 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: 16px 0 14px; 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: 13.5px; line-height: 1; white-space: nowrap;
  padding: 9px 10px; border-radius: 999px;
  color: #82828e;
  color: var(--ink-3); background: transparent; transition: color .2s, background .2s;
}
.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-tab:focus-visible { outline: 2px solid #e05a3f; outline: 2px solid var(--vermilion-400); outline-offset: 2px; }

.auth-form { display: flex; flex-direction: column; gap: 11px; }
.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: 12.5px; color: #82828e; color: var(--ink-3); letter-spacing: .3px; }
.auth-field > span em { font-style: normal; color: #a5a5b1; color: var(--ink-4); font-size: 11.5px; margin-left: 4px; }
.auth-field input {
  width: 100%; box-sizing: border-box;
  padding: 11px 13px; border-radius: 10px; font-family: inherit; font-size: 14px;
  color: #1a1a1e;
  color: var(--ink); background: #ffffff; background: var(--white);
  border: 1px solid #d3c6ad;
  border: 1px solid var(--line-strong);
  transition: border-color .2s, box-shadow .2s;
}
.auth-field input:focus {
  outline: none; border-color: #d0331f; border-color: var(--vermilion-500);
  box-shadow: 0 0 0 3px rgba(208, 51, 31, .14);
}
.auth-cap-row { display: flex; gap: 10px; 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: 118px; 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: 12px; color: #82828e; color: var(--ink-3); }

.auth-msg { margin: 0; font-size: 12.5px; line-height: 1.6; min-height: 0; }
.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;
  padding: 12px 16px; 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);
  transition: filter .2s;
}
.auth-submit:hover { filter: brightness(1.07); }
.auth-submit:disabled { opacity: .62; cursor: default; filter: none; }

.auth-foot { margin: 2px 0 0; font-size: 12.5px; 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-link:hover { color: #8a1b0e; color: var(--vermilion-700); }

.auth-me {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 14px; border-radius: 12px;
  background: #ffffff;
  background: var(--white); border: 1px solid #e2dacb; border: 1px solid var(--line);
}
.auth-me-ico {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px;
  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: 15px; color: #1a1a1e; color: var(--ink); }
.auth-me-info i { font-style: normal; font-size: 12.5px; color: #82828e; color: var(--ink-3); }
.auth-me-badge {
  flex-shrink: 0; font-size: 11px; line-height: 1;
  padding: 5px 9px; 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: 12.5px; line-height: 1.7; color: #82828e; color: var(--ink-3); }
.auth-me-pwd { display: flex; flex-direction: column; gap: 11px; }
.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;
  padding: 10px 12px; border-radius: 10px;
  color: #45454e;
  color: var(--ink-2); background: #ffffff; background: var(--white);
  border: 1px solid #d3c6ad;
  border: 1px solid var(--line-strong);
  transition: color .2s, border-color .2s;
}
.auth-ghost:hover { color: #ab2413; color: var(--vermilion-600); border-color: #e05a3f; border-color: var(--vermilion-400); }
.auth-ghost.auth-danger:hover { color: #8a1b0e; color: var(--vermilion-700); border-color: #ab2413; border-color: var(--vermilion-600); }

.auth-note {
  margin: 14px 0 0; padding-top: 12px;
  border-top: 1px solid #f0ebe0;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px; line-height: 1.7; color: #a5a5b1; color: var(--ink-4); text-align: center;
}

@media (max-width: 900px) {
  .auth-modal { padding: 12px; }
  .auth-box { max-width: 100%; padding: 20px 18px 16px; border-radius: 16px; }
  .topnav .auth-btn { padding: 6px 12px; font-size: 13px; }
}

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

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

/* 副屏第 4 项：单列通栏。三列网格放第 4 张会留一个空位，另起一行反而更醒目 */
.tool-card-wide { flex-direction: row; align-items: center; gap: 16px; margin-top: 16px; padding: 20px 24px; }
.tool-wide-text { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.tool-wide-cta {
  flex-shrink: 0; font-size: 13px; font-weight: 700; letter-spacing: .5px;
  color: #ab2413;
  color: var(--vermilion-600); padding: 8px 16px; border-radius: 999px;
  background: #fdf2ef; border: 1px solid rgba(171, 36, 19, .18);
}

/* 铃音弹窗 */
.tts-text {
  width: 100%; box-sizing: border-box; margin-top: 14px; min-height: 84px;
  padding: 12px 14px; 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: 12px; margin-top: 7px; font-size: 12px; 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: 11.5px; }

.tts-label { margin: 16px 0 8px; font-size: 12.5px; color: #82828e; color: var(--ink-3); letter-spacing: .5px; }

.tts-voices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tts-voice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  padding: 12px 14px; border-radius: 12px; cursor: pointer; font-family: inherit;
  background: #f8f5ee;
  background: var(--surface-2); border: 1px solid #e2dacb; border: 1px solid var(--line);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.tts-voice:hover { border-color: #d3c6ad; border-color: var(--line-strong); }
.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: 16px; }
.tts-voice b { font-size: 14px; color: #17171b; color: var(--ink-900); }
.tts-voice i { font-style: normal; font-size: 11px; color: #a5a5b1; color: var(--ink-4); }
.tts-voice.on b { color: #8a1b0e; color: var(--vermilion-700); }

.tts-rates { display: flex; gap: 8px; }
.tts-rate {
  padding: 7px 16px; border-radius: 999px; cursor: pointer; font-family: inherit;
  font-size: 12.5px; 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: 10px 0 0; font-size: 12.5px; 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: 14px; padding: 12px; 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; }

@media (max-width: 860px) {
  .tts-voices { grid-template-columns: repeat(2, 1fr); }
  .tool-card-wide { flex-wrap: wrap; row-gap: 12px; }
  .tool-wide-cta { margin-left: 44px; }
}

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

.tts-lib { margin-top: 18px; border-top: 1px dashed #d3c6ad; border-top: 1px dashed var(--line-strong); padding-top: 14px; }
.tts-lib-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.tts-lib-head b { font-size: 14px; color: #17171b; color: var(--ink-900); }
.tts-lib-meta { font-size: 12px; color: #a5a5b1; color: var(--ink-4); }
.tts-lib-list { display: flex; flex-direction: column; gap: 8px; }
.tts-lib-empty { font-size: 12.5px; color: #a5a5b1; color: var(--ink-4); text-align: center; padding: 12px 0; }
.tts-lib-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: #f8f5ee;
  background: var(--surface-2); border: 1px solid #e2dacb; border: 1px solid var(--line); border-radius: 11px;
}
.tts-lib-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.tts-lib-info b { font-size: 13.5px; color: #17171b; color: var(--ink-900); }
.tts-lib-info i { font-style: normal; font-size: 12px; color: #82828e; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tts-lib-info em { font-style: normal; font-size: 11px; color: #a5a5b1; color: var(--ink-4); }
.tts-lib-btns { display: flex; gap: 6px; 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:hover { border-color: #d0331f; border-color: var(--vermilion-500); color: #ab2413; color: var(--vermilion-600); }
.tts-lib-del { color: #ab2413; color: var(--vermilion-600); }

/* 分享反馈轻提示：fixed 定位，不占文档流（不影响「一屏放完」预算） */
.share-toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 400;
  transform: translateX(-50%) translateY(10px);
  max-width: calc(100% - 32px);
  padding: 10px 18px; border-radius: 999px;
  background: rgba(8, 8, 10, .92); color: #fff;
  font-size: 13px; letter-spacing: .3px; 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); }
