/* DeepSeek 风格分段实体按钮（手机） */
.m-seg {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.06);
  border: 1px solid rgba(10, 10, 10, 0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.m-seg::-webkit-scrollbar {
  display: none;
}

.m-seg-item {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 8px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  color: var(--m-soft);
  text-decoration: none;
  background: transparent;
  border: 0;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.m-seg-item[hidden] {
  display: none !important;
}

.m-seg-modes {
  max-width: 100%;
}

.m-seg-modes .m-seg-item {
  flex: 1 1 0;
}

.m-seg-item:active {
  transform: scale(0.98);
}

.m-seg-item.on,
.m-seg-item[aria-current="page"] {
  color: #fff;
  background: var(--m-ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.m-seg-modes .m-seg-item {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.m-soft-links {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  color: #8a8a8a;
  line-height: 1.45;
}
.m-soft-links a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(10, 10, 10, 0.22);
  text-underline-offset: 2px;
}
.m-soft-links a:hover {
  color: var(--m-ink);
}
.m-creator-quick {
  margin: 0 0 4px;
}
.m-linkish {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--m-ink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.m-handoff-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(10, 10, 10, 0.1);
  background: #fff;
}
#handoff.flash {
  animation: mHandoffFlash 1.2s ease;
}
@keyframes mHandoffFlash {
  0%, 100% { box-shadow: none; }
  30% { box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.18); }
}

.m-home-subnav {
  display: flex;
  gap: 14px;
  margin: -4px 0 12px;
  font-size: 12px;
  font-weight: 700;
}

body[data-home-mode="dig"] .m-home-subnav {
  display: none;
}

body[data-home-mode="dig"] .m-seg-modes {
  margin-bottom: 12px;
}

.m-home-subnav a {
  color: var(--m-mute);
  text-decoration: none;
}

.m-home-subnav a:active {
  color: var(--m-ink);
}

.m-prompt.m-prompt-dig {
  padding: 0;
  overflow: hidden;
  border: 1.5px solid rgba(10, 10, 10, 0.2);
  background: #f3f3f0;
}

.m-field-block {
  margin: 0;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid rgba(10, 10, 10, 0.1);
}

.m-field-block:last-of-type {
  border-bottom: 0;
}

.m-field-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #6b6b6b;
  margin-bottom: 8px;
}

/* 盖过 .m-prompt input{border:0}，否则输入框看不见 */
.m-prompt.m-prompt-dig input.m-field-input[type="text"] {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1.5px solid rgba(10, 10, 10, 0.16) !important;
  border-radius: 12px;
  background: #f7f7f5 !important;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 11px 12px !important;
  outline: none;
  color: var(--m-ink);
  box-sizing: border-box;
  resize: none;
}

.m-prompt.m-prompt-dig input.m-field-input[type="text"]:focus {
  border-color: rgba(10, 10, 10, 0.4) !important;
  background: #fff !important;
}

.m-opt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.m-opt {
  border: 1.5px solid rgba(10, 10, 10, 0.16);
  background: #f7f7f5;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #444;
  cursor: pointer;
}

.m-opt.on {
  color: #fff;
  background: var(--m-ink);
  border-color: var(--m-ink);
}

.m-prompt.m-prompt-dig .m-prompt-bar {
  margin: 0;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid rgba(10, 10, 10, 0.1);
}

/* 独立手机视觉系统 — 对齐桌面搜搜果气质，不做桌面扩宽 */
:root {
  --m-ink: #0a0a0a;
  --m-soft: #525252;
  --m-mute: #8a8a8a;
  --m-line: rgba(10, 10, 10, 0.12);
  --m-soft-bg: rgba(10, 10, 10, 0.05);
  --m-card: #fff;
  --m-warn: #b45309;
  --m-ok: #15803d;
  --m-blue: #1d4ed8;
  --m-bar: 58px;
  --m-max: 390px;
  --m-s1: 4px;
  --m-s2: 8px;
  --m-s3: 12px;
  --m-s4: 16px;
  --m-s5: 24px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  font-family: var(--font);
  color: var(--m-ink);
  background: #cfcfcc;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--m-ink);
  text-decoration: underline;
  text-decoration-color: rgba(10, 10, 10, 0.28);
  text-underline-offset: 2px;
}
a:visited {
  color: var(--m-ink);
}
a:hover {
  text-decoration-color: rgba(10, 10, 10, 0.55);
}

/* 深色底：强制白字，避免 visited 盖成黑字 */
a.m-btn:not(.ghost),
a.m-btn:not(.ghost):link,
a.m-btn:not(.ghost):visited,
a.m-btn:not(.ghost):hover,
a.m-btn:not(.ghost):active,
.m-seg-item.on,
.m-seg-item.on:link,
.m-seg-item.on:visited,
.m-seg-item.on:hover,
.m-seg-item[aria-current="page"],
.m-seg-item[aria-current="page"]:visited,
.m-chip.on,
.m-chip.on:visited {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-decoration: none;
}

.m-frame {
  width: 100%;
  max-width: var(--m-max);
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  overflow-x: clip;
}

.m-atm {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(255, 220, 180, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 20%, rgba(180, 210, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #fafaf8 0%, #ffffff 42%, #f6f6f3 100%);
}

/* 勿套到 .m-bottom / .m-sheet：会盖掉 absolute/fixed，弹层关不掉 */
.m-frame > *:not(.m-atm):not(.m-bottom):not(.m-sheet) {
  position: relative;
  z-index: 1;
}

.m-top {
  position: relative;
  z-index: 40;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 14px;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
}

.m-back {
  flex-shrink: 0;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #0a0a0a;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.m-back:active {
  background: #f3f3f3;
}

#mModeHost {
  flex-shrink: 0;
}

.m-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: inherit;
  letter-spacing: -0.02em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.m-brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #0a0a0a;
  box-shadow: 3px 3px 0 rgba(10, 10, 10, 0.2);
}

.m-top-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 12px;
  flex-shrink: 0;
  min-width: 0;
  max-width: 62%;
}

.m-top-meta #mAuth {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.m-top-meta .m-pill {
  max-width: 9.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-pill {
  background: #0a0a0a;
  color: #fff;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
}

.m-link {
  border: 0;
  background: none;
  font: inherit;
  color: var(--m-soft);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}

.m-campaign-rail {
  margin: 8px 14px 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
}
.m-campaign-rail-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.m-campaign-rail-inner b {
  font-weight: 700;
}
.m-campaign-rail-inner a {
  color: var(--m-soft);
  text-decoration: none;
}
.m-campaign-rail-inner a:hover,
.m-campaign-rail-inner a.on {
  color: var(--m-ink);
  font-weight: 600;
}
.m-match-sticky {
  position: sticky;
  bottom: 64px;
  z-index: 8;
  display: flex;
  gap: 8px;
  padding: 8px 0 4px;
  background: linear-gradient(180deg, transparent, rgba(248, 248, 246, 0.96) 30%);
}
.m-match-sticky .mw-btn,
.m-match-sticky .match-cta {
  flex: 1;
}
.m-compare {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
}
.m-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}
.m-compare-card {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7f7f5;
}

/* 模拟模式：仅右上小 pill，禁止整条横幅占位 */
.m-mode-bar {
  display: none !important;
}

.m-mode-pill {
  border: 1px solid rgba(10, 10, 10, 0.14);
  background: #f4f4f1;
  border-radius: 999px;
  padding: 4px 9px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: var(--m-ink);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.m-mode-pill.is-live {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fff;
}

.m-mode-inline {
  flex: 0 0 auto;
  min-width: 0;
}

.m-top-slim {
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
  padding: 8px 14px;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  gap: 8px;
}

.m-top-slim .m-mode-inline {
  flex: 0 0 auto;
  min-width: 0;
}

.m-brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 4px;
}

.m-brand-title h1 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.15;
}

.m-lead-tight {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--m-soft);
  line-height: 1.4;
}

.m-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: clip;
  -webkit-overflow-scrolling: touch;
  padding: 10px 16px;
  padding-bottom: calc(var(--m-bar) + 12px + env(safe-area-inset-bottom, 0px));
}

.m-announce {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--m-soft);
  letter-spacing: 0.02em;
}

.m-main h1,
.m-hero {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 var(--m-s2);
  overflow-wrap: anywhere;
}

.m-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
}

.m-break {
  overflow-wrap: anywhere;
  word-break: break-all;
  min-width: 0;
}

.m-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}

.m-lead {
  color: var(--m-soft);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.m-lead a {
  color: inherit;
  font-weight: 600;
}

/* 吉祥物 + 输入盒 */
.m-prompt-stage {
  position: relative;
  margin: 52px 0 14px;
  overflow: visible;
}

.m-mascot {
  position: absolute;
  right: 10px;
  top: -72px;
  width: 112px;
  height: 80px;
  z-index: 5;
  pointer-events: none;
  background: transparent !important;
  transform-origin: 60% 100%;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.m-mascot.is-bounce {
  animation: mBounce 0.5s ease;
}

.m-mascot[data-mood="work"] {
  transform: translateY(-3px) rotate(-2deg);
}

.m-mascot[data-mood="happy"],
.m-mascot[data-mood="cheer"],
.m-mascot[data-mood="wink"],
.m-mascot[data-mood="love"] {
  transform: translateY(-5px) rotate(-4deg);
}

.m-mascot .mascot-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.14));
  transition: opacity 0.18s ease;
  background: transparent;
}

@keyframes mBounce {
  0% {
    transform: translateY(0) rotate(-2deg);
  }
  45% {
    transform: translateY(-8px) rotate(-5deg);
  }
  100% {
    transform: translateY(-5px) rotate(-4deg);
  }
}

.m-prompt {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1.5px solid rgba(10, 10, 10, 0.16);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px 16px 14px;
  overflow: visible;
}

.m-prompt::before {
  content: "";
  position: absolute;
  right: 36px;
  top: -1px;
  width: 72px;
  height: 8px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1), transparent 70%);
  pointer-events: none;
}

.m-prompt textarea,
.m-prompt input[type="text"],
.m-prompt input[type="email"],
.m-prompt input[type="password"] {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.5;
  resize: none;
  min-height: 88px;
  padding: 0 0 10px;
}

.m-prompt textarea::placeholder {
  color: #a3a3a3;
}

.m-prompt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(10, 10, 10, 0.06);
  flex-wrap: wrap;
}

.m-hint {
  font-size: 12px;
  color: var(--m-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--m-soft-bg);
  padding: 6px 10px;
  border-radius: 999px;
}

.m-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.m-chip {
  border: 1px solid var(--m-line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.m-chip.on {
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
}

.m-chip:disabled,
.m-chip.is-soon {
  opacity: 0.42;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: rgba(0, 0, 0, 0.25);
}

.m-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 4px;
  font-size: 12px;
  color: var(--m-soft);
}

.m-stat-row b {
  color: var(--m-ink);
  font-family: var(--display);
  font-size: 1.05rem;
}

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
a.m-btn,
a.m-btn:visited {
  color: #fff;
  text-decoration: none;
}
a.m-btn.ghost,
a.m-btn.ghost:visited {
  color: var(--m-ink);
}
.m-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.m-action-row li {
  margin: 0;
  padding: 0;
}
.m-list.m-action-row {
  padding-left: 0;
}

.m-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.m-btn.block {
  width: 100%;
}

.m-btn.ghost {
  background: #fff;
  color: var(--m-ink);
  border: 1px solid rgba(10, 10, 10, 0.14);
  box-shadow: none;
}

.m-btn.sm {
  padding: 8px 12px;
  font-size: 12px;
  box-shadow: none;
}

.m-btn.warn {
  background: var(--m-warn);
}

.m-card {
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
  overflow-x: clip;
  min-width: 0;
}

.m-card.has-mascot {
  position: relative;
  overflow: visible;
  margin-top: 48px;
}

.m-card.has-mascot .m-mascot {
  top: -64px;
  right: 8px;
  width: 100px;
  height: 72px;
}

.m-card h2,
.m-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.m-field {
  display: block;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--m-soft);
}

.m-field input,
.m-field select,
.m-field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(10, 10, 10, 0.12);
  background: #fafafa;
  font: inherit;
  font-weight: 400;
  color: var(--m-ink);
  resize: vertical;
}

.m-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin: 0 0 10px;
}

.m-status {
  font-size: 13px;
  color: var(--m-soft);
  margin: 10px 0;
  min-height: 1.2em;
}

.m-err {
  color: #b33;
  font-size: 13px;
  margin: 8px 0;
}

.m-muted {
  color: var(--m-mute);
  font-size: 12px;
  line-height: 1.45;
}

.m-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.m-kpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.m-kpi .box {
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03);
}

.m-kpi b {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.m-kpi span {
  font-size: 11px;
  color: var(--m-mute);
}

.m-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 12px;
  margin: 0 -4px 4px;
  scrollbar-width: none;
}

.m-tabs::-webkit-scrollbar {
  display: none;
}

.m-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--m-line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.m-tabs button.active {
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
}

.m-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.m-list li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
  font-size: 13px;
  line-height: 1.45;
}

.m-list li:last-child {
  border-bottom: 0;
}

.m-item {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: left;
  border: 1px solid var(--m-line);
  background: #fff;
  border-radius: 16px;
  padding: 13px 14px;
  margin-bottom: 8px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  overflow-x: clip;
  min-width: 0;
}

.m-item b {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.m-item .m-muted,
.m-item .m-row {
  min-width: 0;
  max-width: 100%;
}

.m-verdict {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eee;
  margin-right: 4px;
}

.m-verdict.prefer,
.m-verdict.优先 {
  background: #dcfce7;
  color: #166534;
}
.m-verdict.caution,
.m-verdict.谨慎 {
  background: #fef3c7;
  color: #92400e;
}
.m-verdict.reject,
.m-verdict.不建议 {
  background: #fee2e2;
  color: #991b1b;
}

.m-pill-st {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  vertical-align: middle;
}

.m-pill-st.review {
  background: var(--m-warn);
}
.m-pill-st.delivered {
  background: var(--m-ok);
}
.m-pill-st.screening {
  background: var(--m-blue);
}
.m-pill-st.draft {
  background: #6b7280;
}

.m-badge {
  display: inline-block;
  min-width: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--m-warn);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.m-bottom {
  /* 贴在手机壳底，不跟视口 fixed（避免中间一大块空白） */
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  transform: none;
  height: auto;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(10, 10, 10, 0.08);
  z-index: 50;
  box-sizing: border-box;
}

.m-bottom a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--m-bar);
  text-decoration: none;
  color: #9a9a9a;
  font-size: 10px;
  font-weight: 700;
}

.m-bottom a.active {
  color: #0a0a0a;
}

.m-bottom .ico {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
  opacity: 0.85;
}

.m-bottom a.active .ico {
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
  opacity: 1;
}

.m-desk-hint {
  text-align: center;
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--m-mute);
}

.m-desk-hint a {
  color: inherit;
}

.m-login-wrap {
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 18px 32px;
  box-sizing: border-box;
}

.m-login-mascot {
  width: 120px;
  height: 86px;
  margin: 0 auto 8px;
  position: relative;
}

.m-login-mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.12));
}

.m-result-title {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.m-fold summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}

.m-demo-hero {
  margin: 12px 0;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #111 0%, #333 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.m-demo-hero p {
  margin: 0 0 12px;
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.45;
}

.m-demo-hero .m-btn {
  background: #fff;
  color: #0a0a0a;
}

/* ===== 结果优先两态 ===== */
.m-top-mascot {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  position: relative;
  margin-left: 4px;
}

.m-top-mascot img,
.m-top-mascot .mascot-face {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

.m-main.m-analyze {
  padding-top: 4px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.m-main.m-analyze:has(.m-analyze-stage.is-done) {
  overflow-y: auto;
}

.m-analyze .m-hero {
  font-size: 1.25rem;
  margin: 0 0 10px;
}

/* 空态：品牌+输入整块垂直居中，不塞说明文 */
.m-analyze-stage:not(.is-done) {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.m-analyze-stage.is-done {
  display: block;
  flex: 1;
}

.m-empty-block {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0 12px;
}

.m-empty-block .m-head-block {
  flex-shrink: 0;
  width: 100%;
}

.m-empty-block .m-desk-hint {
  margin: 8px 0 0;
  text-align: left;
}

.m-plat-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}

.m-plat-row .m-chips {
  flex: 1;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.m-plat-row .m-chips::-webkit-scrollbar {
  display: none;
}

.m-plat-row .m-chip {
  flex: 0 0 auto;
  padding: 7px 11px;
}

.m-prompt.m-prompt-compact {
  padding: 12px 14px 12px;
  border-radius: 18px;
  margin: 0;
}

.m-prompt.m-prompt-compact::before {
  display: none;
}

.m-prompt.m-prompt-compact textarea {
  min-height: 56px;
  font-size: 0.95rem;
  padding-bottom: 6px;
}

.m-analyze-stage.is-done .m-empty-block {
  display: none;
}

.m-analyze-stage:not(.is-done) .m-done-bar {
  display: none;
}

.m-done-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--m-line);
  font-size: 13px;
}

.m-done-bar b {
  font-size: 13px;
}

.m-hero-card {
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: 18px;
  padding: 14px 14px 12px;
  margin-bottom: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.m-hero-card .m-result-title {
  font-size: 1.2rem;
  margin: 0 0 6px;
}

.m-hero-card .m-stat-row {
  margin: 8px 0 6px;
  gap: 14px;
}

.m-hero-card .m-stat-row span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
}

.m-hero-card .m-stat-row b {
  font-size: 1.15rem;
}

.m-hero-card h3 {
  margin: 10px 0 4px;
  font-size: 13px;
}

.m-hero-card .m-list li {
  padding: 7px 0;
  font-size: 13px;
}

.m-sheet {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: none;
}

.m-sheet.open {
  display: block;
}

.m-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.m-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--m-bar) + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-height: min(52vh, 420px);
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 14px 16px 16px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.m-sheet-panel h3 {
  margin: 0 0 8px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.m-sheet-x {
  border: 0;
  background: #f0f0ec;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
  color: var(--m-ink);
  cursor: pointer;
  flex-shrink: 0;
}

.m-sheet-panel .m-chip {
  margin: 0 6px 8px 0;
}

.m-more-link {
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--m-soft);
  text-decoration: underline;
  cursor: pointer;
  padding: 7px 4px;
  white-space: nowrap;
}

.m-more-link.is-open {
  color: var(--m-ink);
}

#outAnchor {
  scroll-margin-top: 56px;
}

/* —— 首页双 CTA / 达人库 / 短剧 —— */
.m-home-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 12px;
}
.m-home-cta .m-btn {
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  padding: 10px 8px;
}
.m-soft-links {
  font-size: 12px;
  color: var(--m-mute);
  margin: 0 0 10px;
  line-height: 1.5;
}
.m-soft-links a {
  color: var(--m-ink);
  font-weight: 600;
}

.m-hscroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 10px;
  margin: 0 -2px;
  scrollbar-width: none;
}
.m-hscroll::-webkit-scrollbar {
  display: none;
}
.m-chips-wrap {
  flex-wrap: nowrap;
}
.m-chip-btn {
  flex: 0 0 auto;
  border: 1.5px solid #e4e4de;
  background: #fff;
  color: var(--m-ink);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.m-chip-btn.on {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fff;
}
.m-chip-ico {
  display: inline-flex;
  width: 14px;
  height: 14px;
}
.m-chip-ico svg {
  width: 14px;
  height: 14px;
}
.m-chip-n {
  opacity: 0.65;
  font-size: 11px;
  font-weight: 500;
}

.m-cl-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-cl-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #ebebe6;
  border-radius: 14px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
}
.m-cl-av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f0ec;
}
.m-cl-body {
  flex: 1;
  min-width: 0;
}
.m-cl-body h2 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.m-cl-plat {
  display: inline-flex;
  vertical-align: middle;
  width: 14px;
  height: 14px;
}
.m-cl-plat svg {
  width: 14px;
  height: 14px;
}
.m-cl-bio {
  margin: 4px 0;
  font-size: 12px;
  color: var(--m-mute);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-cl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0 8px;
}
.m-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f3f3ee;
  color: var(--m-soft);
}
.m-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px 0 8px;
}

.m-row-btns {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.m-row-btns .m-btn {
  flex: 1;
}

.m-sd-wall {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.m-sd-tile {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  text-align: left;
  border: 1.5px solid #ebebe6;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  position: relative;
}
.m-sd-tile img,
.m-sd-ph {
  width: 72px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  background: #f0f0ec;
}
.m-sd-ph {
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--m-mute);
}
.m-sd-rank {
  position: absolute;
  left: 14px;
  top: 14px;
  background: #0a0a0a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}
.m-sd-tile h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.m-sd-tile p {
  margin: 0;
  font-size: 12px;
  color: var(--m-mute);
}
.m-sd-sheet {
  max-height: min(88dvh, 640px);
  overflow-y: auto;
}
.m-sd-cover {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
}
.m-sd-eps {
  margin-top: 10px;
  font-size: 12px;
}
.m-sd-eps ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.m-plain-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
}
.m-field input[type="search"] {
  width: 100%;
  box-sizing: border-box;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.m-fraud-panel {
  margin-top: 8px;
}
.m-status.err {
  color: #c0392b;
}

/* ===== 整壳重设计：快捷区 / 筛选栏 / 列表纪律 ===== */
.m-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--m-s2);
  margin: 0 0 var(--m-s4);
}
.m-quick a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--m-line);
  background: #fff;
  color: var(--m-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  min-width: 0;
}
.m-quick a:active {
  background: #f3f3f0;
}

.m-home-cta {
  margin: 8px 0 14px;
}
.m-home-cta .m-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 9px 6px;
  box-shadow: none;
}

.m-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
  min-width: 0;
}
.m-filter-bar .m-field {
  flex: 1;
  margin: 0;
  min-width: 0;
}
.m-filter-bar .m-field input {
  margin-top: 0;
}
.m-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
  min-width: 0;
}
.m-filter-summary:empty {
  display: none;
}
.m-summary-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0f0ec;
  border: 1px solid rgba(10, 10, 10, 0.08);
  font-size: 11px;
  font-weight: 700;
  color: var(--m-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-cl-body h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-cl-card {
  overflow-x: clip;
  min-width: 0;
}
.m-cl-tags .m-tag:nth-child(n + 3) {
  display: none;
}

.m-sd-tile {
  overflow-x: clip;
  min-width: 0;
}
.m-sd-tile > div {
  min-width: 0;
  overflow: hidden;
}
.m-sd-tile h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.m-sd-tile p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-sd-sheet .m-break,
.m-sd-sheet .m-muted {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.m-tabs {
  flex-wrap: nowrap;
}
.m-tabs button {
  white-space: nowrap;
}

.m-fav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.m-fav-actions .m-btn {
  flex: 1 1 auto;
  min-width: calc(50% - 4px);
}
.m-fav-more[hidden] {
  display: none !important;
}

.m-announce {
  margin-bottom: 4px;
}
.m-lead {
  margin-bottom: 12px;
}

pre.m-card,
.m-card pre,
textarea,
input,
select {
  max-width: 100%;
}
pre {
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.m-frame table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
