/* VERITAS GEO — 深鸢尾 / 冷纸白 · 可见度雷达气质
 * 不在此 @import Google Fonts：国内首次打开会阻塞整份 CSS，表现为「只有字、没样式/图/动画」，刷新缓存后又正常。
 */
:root {
  --bg: #eef1f6;
  --d1: #f8f9fc;
  --d2: #e6eaf2;
  --ink: #121826;
  --g: #3d5a9e;
  --gl: #5b7bc4;
  --gd: #2c4478;
  --g10: rgba(61, 90, 158, 0.1);
  --g20: rgba(61, 90, 158, 0.22);
  --accent: #c9a227;
  --t1: #121826;
  --t2: #3a4558;
  --t3: #6b7588;
  --ln: rgba(44, 68, 120, 0.16);
  --ok: #2f8f6a;
  --bad: #c94a5c;
  --r: 12px;
  --font: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Instrument Serif", "Noto Serif SC", "Songti SC", serif;
  --shadow: 0 18px 50px rgba(18, 24, 38, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g); text-decoration: none; }
a:hover { color: var(--gd); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gl);
  outline-offset: 2px;
}

.wrap { width: min(1120px, calc(100% - 36px)); margin: 0 auto; position: relative; z-index: 1; }

/* —— Landing atmosphere —— */
.page-home {
  position: relative;
  overflow-x: clip;
}
.page-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 8% -5%, rgba(61, 90, 158, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 98% 8%, rgba(201, 162, 39, 0.1), transparent 50%),
    linear-gradient(180deg, #e8ecf4 0%, var(--bg) 42%, #e9edf5 100%);
}

.signal-field {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(480px, 110%);
  aspect-ratio: 1;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.signal-field svg { width: 100%; height: 100%; }
.signal-ring {
  fill: none;
  stroke: var(--g);
  stroke-width: 1;
  opacity: 0.35;
}
.signal-beam {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.7;
  transform-origin: 50% 50%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0 18px;
  margin-bottom: 4px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav--geo {
  padding: 12px 0 16px;
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1180px;
  padding: 10px 14px 10px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(44, 68, 120, 0.1);
  box-shadow:
    0 1px 2px rgba(18, 24, 38, 0.04),
    0 8px 28px rgba(18, 24, 38, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 0;
  /* 绝对路径：CSS 挂在 /css 时相对路径会打到官网 /assets 404 */
  background: url("/assets/brand-logo.png") center / contain no-repeat;
  box-shadow: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand span {
  color: var(--g);
  font-weight: 700;
  margin-left: 2px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px;
  border-radius: 12px;
  background: #f1f5f9;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.nav-tab:hover {
  color: #334155;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
}
.nav-tab.is-active {
  color: #fff;
  background: linear-gradient(145deg, #4f8ef7 0%, #3d5a9e 100%);
  box-shadow: 0 4px 12px rgba(61, 90, 158, 0.28);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.nav-utility {
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-utility:hover {
  color: #334155;
  background: #f1f5f9;
  text-decoration: none;
}
.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #3d5a9e 0%, #4f8ef7 100%);
  box-shadow: 0 4px 14px rgba(61, 90, 158, 0.24);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.nav-login:hover {
  color: #fff;
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(61, 90, 158, 0.3);
  text-decoration: none;
}
.nav-login--btn { appearance: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--t2);
}
/* 小程序 web-view：隐藏回官网入口 */
html.vg-mp [data-site-home] {
  display: none !important;
}
.nav-links a { color: var(--t2); }
.nav-links a:hover { color: var(--gd); text-decoration: none; }
.nav-links a.nav-order,
.nav-links button.nav-order:not(.nav-logout) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(145deg, var(--gd) 0%, var(--g) 55%, var(--gl) 100%);
  box-shadow: 0 6px 16px rgba(44, 68, 120, 0.22);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.nav-links a.nav-order:hover,
.nav-links button.nav-order:not(.nav-logout):hover {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(44, 68, 120, 0.28);
}
.nav-links a.nav-order:active,
.nav-links button.nav-order:not(.nav-logout):active { transform: scale(0.98); }
.nav-user-wrap {
  position: relative;
}
.nav-user,
button.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(48vw, 240px);
  padding: 6px 10px 6px 12px;
  border-radius: 999px;
  background: rgba(61, 90, 158, 0.08);
  border: 1px solid rgba(61, 90, 158, 0.18);
  color: var(--g);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
button.nav-user-btn:hover,
.nav-user-wrap.is-open .nav-user-btn {
  background: #fff;
  border-color: rgba(61, 90, 158, 0.32);
  box-shadow: 0 4px 14px rgba(30, 50, 90, 0.1);
}
.nav-user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f9e6a;
  flex-shrink: 0;
}
.nav-user-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-caret {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 0.2s ease;
}
.nav-user-wrap.is-open .nav-user-caret {
  transform: rotate(180deg);
}
.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 200px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(61, 90, 158, 0.14);
  box-shadow: 0 16px 40px rgba(30, 50, 90, 0.14);
  animation: navDdIn 0.16s ease;
}
@keyframes navDdIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-user-dd-profile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(61, 90, 158, 0.1);
}
.nav-user-dd-profile strong {
  font-size: 0.9rem;
  color: var(--g);
  font-weight: 700;
}
.nav-user-dd-profile span {
  font-size: 0.75rem;
  color: var(--t3, #64748b);
}
.nav-user-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--t1, #1e293b);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-user-dd-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}
.nav-user-dd-item:hover {
  background: rgba(61, 90, 158, 0.08);
  color: var(--gd);
  text-decoration: none;
}
.nav-user-dd-item:hover svg { opacity: 1; }
.nav-user-dd-logout {
  margin-top: 4px;
  color: #8b3a3a;
  border-top: 1px solid rgba(61, 90, 158, 0.08);
  border-radius: 0 0 10px 10px;
}
.nav-user-dd-logout:hover {
  background: #fff5f5;
  color: #9a3b3b;
}
.nav-links button.nav-order {
  cursor: pointer;
  font: inherit;
  border: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 13px 22px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(145deg, var(--gd) 0%, var(--g) 55%, var(--gl) 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(44, 68, 120, 0.28);
}
.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--gd);
  border: 1px solid var(--ln);
}
.btn-ghost:hover { background: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.is-loading {
  opacity: 1 !important;
  cursor: wait;
  pointer-events: none;
  gap: 10px;
}
.btn.is-loading::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: btn-spin 0.7s linear infinite;
  box-sizing: border-box;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn.is-loading::before {
    animation: none;
    border-top-color: #fff;
    opacity: 0.9;
  }
}

/* —— Hero (one composition) —— */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(36px, 8vh, 72px) 0 clamp(28px, 5vh, 48px);
  display: grid;
  gap: 36px;
  min-height: min(72vh, 640px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}
.hero-copy-main {
  position: relative;
  z-index: 1;
}
.hero-copy-main > :not(.signal-field) {
  position: relative;
  z-index: 1;
}
.hero-copy .platform-line {
  position: relative;
  z-index: 1;
}
.hero-brand {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero-brand em {
  font-style: italic;
  color: var(--g);
  font-weight: 400;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 14px;
}
h1, .hero-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.6vw, 2.45rem);
  font-weight: 400;
  line-height: 1.22;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.lead {
  color: var(--t2);
  font-size: 1.05rem;
  margin: 0 0 18px;
  max-width: 34em;
  font-weight: 400;
}
.platform-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--t3);
  margin: 0;
}
.platform-line::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(47, 143, 106, 0.18);
  flex-shrink: 0;
}

.price-card {
  position: relative;
  z-index: 1;
  background: rgba(248, 249, 252, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ln);
  border-radius: 16px;
  padding: 22px 20px 18px;
  box-shadow: var(--shadow);
}
.price-card.price-card--pay,
.price-card.pay-shell {
  padding: 14px 14px 12px;
  overflow: visible;
}
.price-card .pay-swap-stage {
  width: 100%;
}
.price-card .pay-head {
  position: relative;
  margin-bottom: 8px;
  padding-right: 72px;
}
.price-card .pay-kicker { margin-bottom: 4px; font-size: 0.68rem; }
.price-card .pay-amount { font-size: clamp(1.65rem, 4vw, 2rem); }
.price-card .pay-meta { margin-top: 4px; font-size: 0.75rem; }
.price-card .pay-channels {
  margin-bottom: 8px;
  gap: 6px;
  padding: 3px;
}
.price-card .pay-channel {
  padding: 8px 6px;
  font-size: 0.82rem;
  gap: 6px;
}
.price-card .pay-channel-icon {
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  border-radius: 5px;
}
.price-card .pay-qr-stage {
  margin: 4px 0 8px;
  padding: 4px 0;
}
.price-card .pay-qr-hint { margin: 6px 0 0; font-size: 0.78rem; }
.price-card .pay-qr-img {
  width: 168px !important;
  height: 168px !important;
}
.price-card--pay .hint,
.price-card.pay-shell .hint {
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 0.75rem;
}
.price-card--pay [data-sync-hint]:empty,
.price-card.pay-shell [data-sync-hint]:empty {
  display: none;
}
.price-card--pay [data-sync],
.price-card.pay-shell [data-sync] {
  margin-top: 4px;
}
.price-card .pay-steps {
  display: none; /* 步骤说明收进提示，避免撑高滚动 */
}
.price-card .pay-shell .btn,
.price-card.pay-shell .btn,
.price-card--pay .btn {
  padding: 11px 16px;
  font-size: 0.9rem;
}
.price-card--pay .hint,
.price-card.pay-shell .hint {
  margin-top: 4px;
  font-size: 0.75rem;
}
.price-card .checkout-pane { will-change: transform, opacity, filter; }
.price-card .pay-swap-stage {
  will-change: transform, opacity, filter;
  width: 100%;
}
.price-card.price-card--pay {
  transition: box-shadow 0.35s ease;
}
.price-card .checkout-pane ul {
  margin: 8px 0 10px;
  font-size: 0.84rem;
}
.price-card .checkout-pane ul li { margin-bottom: 3px; }
.price-card .checkout-pane .amount {
  font-size: 2.1rem;
}
.price-card .checkout-pane .eyebrow { margin-bottom: 4px; }
.price-card .checkout-pane label { margin-top: 6px; font-size: 0.82rem; }
.price-card .checkout-pane input {
  padding: 9px 10px;
  font-size: 0.9rem;
}
.checkout-sms {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  margin-top: 6px;
}
.checkout-sms #smsBtn {
  min-width: 6.8rem;
  white-space: nowrap;
  height: 38px;
  padding: 0 12px;
  font-size: 0.84rem;
}
.pay-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 16px;
  color: var(--t3);
  font-size: 0.9rem;
}
.pay-loading-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(61, 90, 158, 0.22);
  border-top-color: var(--g, #3d5a9e);
  animation: pay-spin 0.75s linear infinite;
}
@keyframes pay-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pay-loading-dot { animation: none; border-top-color: var(--g, #3d5a9e); opacity: 0.7; }
}
.price-card .amount {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--gd);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.price-card .amount small {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--t3);
}
.price-card ul {
  padding-left: 1.15em;
  color: var(--t2);
  margin: 14px 0 18px;
  font-size: 0.92rem;
}
.price-card ul li { margin-bottom: 6px; }
.price-card .eyebrow { margin-bottom: 8px; }

/* —— Features (post-hero, one job) —— */
.features {
  position: relative;
  z-index: 1;
  padding: 8px 0 24px;
}
.features-hd {
  margin-bottom: 18px;
}
.features-hd h2 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  margin: 0 0 6px;
}
.features-hd p {
  margin: 0;
  color: var(--t3);
  font-size: 0.92rem;
}
.feature-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}
.feature-item {
  padding: 18px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--ln);
  background: transparent;
}
@media (min-width: 640px) {
  .feature-item {
    border: 1px solid var(--ln);
    background: rgba(248, 249, 252, 0.65);
  }
}
.feature-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}
.feature-item span {
  font-size: 0.8rem;
  color: var(--t3);
  line-height: 1.45;
}

.card {
  background: var(--d1);
  border: 1px solid var(--ln);
  border-radius: var(--r);
  padding: 22px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.card h2, .card h3 { margin-top: 0; font-family: var(--serif); font-weight: 400; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--t2);
  margin: 12px 0 6px;
}
label .req { color: var(--bad); margin-right: 2px; }
input, textarea, select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--ln);
  background: #fff;
  font: inherit;
  color: var(--t1);
}
input:focus, textarea:focus { outline: 2px solid var(--g20); border-color: var(--g); }
.row { display: grid; gap: 12px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.hint { font-size: 0.8rem; color: var(--t3); margin-top: 6px; }

.delivery-block {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--ln);
  border-radius: 10px;
  background: var(--d2);
}
.delivery-block-hd {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--t1);
  margin-bottom: 10px;
}
.delivery-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.delivery-choice {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  margin: 0;
  border: 1px solid var(--ln);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 400;
}
.delivery-choice:has(input:checked) {
  border-color: var(--g);
  background: color-mix(in srgb, var(--g) 8%, #fff);
}
.delivery-choice input[type="radio"] {
  width: auto;
  min-width: 1rem;
  max-width: none;
  margin: 3px 0 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--g);
}
.delivery-choice-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  writing-mode: horizontal-tb;
}
.delivery-choice-body strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--t1);
  line-height: 1.35;
}
.delivery-choice-body small {
  display: block;
  font-size: 0.78rem;
  color: var(--t3);
  line-height: 1.45;
  white-space: normal;
}
@media (max-width: 520px) {
  .delivery-choices {
    grid-template-columns: 1fr;
  }
}

button.linkish {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--g);
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
button.linkish:disabled {
  opacity: 0.6;
  cursor: wait;
}

.prod-block {
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--ln);
  background: var(--d2);
}
.prod-block-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.prod-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--g);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}
.prod-card {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 10px;
  padding: 12px 14px 10px;
  margin-bottom: 12px;
}
.prod-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.prod-card-hd strong { font-size: 0.92rem; }
.prod-remove {
  border: none;
  background: none;
  color: var(--bad);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}
.with-count { position: relative; }
.with-count input { padding-right: 52px; }
.char-count, .kw-count {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: var(--t3);
}
.kw-box { position: relative; }
.kw-chips {
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 48px 8px 10px;
  border: 1px solid var(--ln);
  border-radius: 8px;
  background: #fff;
}
.kw-chips:focus-within { outline: 2px solid var(--g20); border-color: var(--g); }
.kw-input {
  flex: 1;
  min-width: 140px;
  border: none !important;
  outline: none !important;
  padding: 4px 0 !important;
  box-shadow: none !important;
}
.kw-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--g10);
  color: var(--gd);
  font-size: 0.78rem;
  font-weight: 700;
}
.kw-chip button {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--t3);
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
}
.btn-add-prod { margin-top: 4px; width: 100%; }
.btn-add-prod:disabled { cursor: not-allowed; }
.err { color: var(--bad); font-size: 0.9rem; margin-top: 8px; }
.ok { color: var(--ok); font-size: 0.9rem; margin-top: 8px; }
.qr-box { text-align: center; padding: 12px; }
.qr-box img {
  width: min(240px, 70vw);
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--ln);
  background: #fff;
}
.qr-box .alipay-qr-frame {
  width: 300px;
  max-width: 100%;
  height: 300px;
  border: 1px solid var(--ln);
  border-radius: 8px;
  background: #fff;
  display: inline-block;
}

/* —— 支付页 —— */
.page-pay {
  position: relative;
  min-height: 100vh;
}
.page-pay::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% -10%, rgba(61, 90, 158, 0.16), transparent 55%),
    linear-gradient(180deg, #e8ecf4 0%, var(--bg) 50%, #e9edf5 100%);
}
.page-pay .wrap {
  width: min(460px, calc(100% - 28px));
  padding-bottom: 48px;
}
.page-pay .nav { margin-bottom: 20px; }
.pay-shell {
  padding: 28px 22px 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pay-head {
  text-align: center;
  margin-bottom: 18px;
  position: relative;
}
.pay-back {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--t3);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
.pay-back:hover { color: var(--g); }
.pay-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g);
}
.pay-amount {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 8vw, 3rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.pay-amount span {
  font-size: 0.55em;
  margin-right: 2px;
  vertical-align: 0.18em;
  color: var(--t2);
}
.pay-meta {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--t3);
}
.pay-invite {
  margin-top: 12px;
}
.pay-invite .btn {
  font-size: 0.85rem;
  padding: 10px 12px;
}
.pay-invite .hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  text-align: left;
}
.pay-meta code {
  font-size: 0.78rem;
  background: var(--d2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--t2);
}

.pay-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--d2);
  border-radius: 12px;
}
.pay-panel-stack {
  position: relative;
}
.pay-panel {
  transition: opacity 0.2s ease;
  will-change: opacity;
}
.pay-panel.is-active {
  position: relative;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.pay-panel:not(.is-active) {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .pay-panel { transition: none; }
}
.pay-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 11px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--t2);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.pay-channel:hover { color: var(--t1); }
.pay-channel.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(18, 24, 38, 0.08);
}
.pay-channel-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.pay-channel-icon--ali { background: #1677ff; }
.pay-channel-icon--wx { background: #07c160; }
.pay-channel-icon--lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.pay-qr-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  margin: 0 0 10px;
  background: transparent;
  border: none;
}
.pay-launch-stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 8px 0 4px;
  margin: 0 0 10px;
  text-align: center;
}
.pay-launch-btn {
  min-height: 48px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-mobile-click {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0 8px;
}
.pay-click-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pay-click-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--ln);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(18, 24, 38, 0.06);
  -webkit-tap-highlight-color: transparent;
}
.pay-click-btn--wx {
  border-color: rgba(7, 193, 96, 0.35);
  background: linear-gradient(180deg, #f3fcf7 0%, #fff 70%);
}
.pay-click-btn--ali {
  border-color: rgba(22, 119, 255, 0.35);
  background: linear-gradient(180deg, #f3f8ff 0%, #fff 70%);
}
.pay-click-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.pay-mobile-tip {
  margin: 0;
  font-size: 0.82rem;
  color: var(--t3);
  text-align: center;
  line-height: 1.45;
}
.pay-wx-qr-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px solid rgba(7, 193, 96, 0.28);
  background: #f7fdf9;
}
.pay-wx-qr-sheet[hidden] {
  display: none !important;
}
.pay-click-btn.is-open {
  box-shadow: inset 0 0 0 2px rgba(7, 193, 96, 0.35);
}
.pay-qr-fallback {
  margin: 4px 0 0;
  text-align: center;
}
.pay-qr-fallback summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--t3);
  user-select: none;
  list-style: none;
}
.pay-qr-fallback summary::-webkit-details-marker {
  display: none;
}
.pay-qr-fallback[open] summary {
  margin-bottom: 10px;
  color: var(--t2);
}
.pay-qr-fallback .pay-qr-img {
  margin: 0 auto;
}
.pay-qr-img {
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: #fff;
}
.pay-qr-frame {
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  overflow: visible;
  position: relative;
}
.pay-qr-frame--placeholder {
  width: 200px;
  min-height: 200px;
  border: 1px dashed var(--ln);
  border-radius: 12px;
  background: linear-gradient(160deg, #f4fbf7 0%, #fff 55%);
}
.pay-soon {
  text-align: center;
  padding: 12px;
  color: var(--t2);
}
.pay-soon strong {
  display: block;
  margin-bottom: 6px;
  color: var(--t1);
  font-size: 1rem;
}
.pay-soon p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--t3);
}
.pay-qr-hint {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--t2);
}

.pay-steps {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: paystep;
}
.pay-steps li {
  position: relative;
  padding: 8px 12px 8px 36px;
  font-size: 0.86rem;
  color: var(--t2);
  background: var(--d2);
  border-radius: 8px;
}
.pay-steps li::before {
  counter-increment: paystep;
  content: counter(paystep);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--g);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}
.pay-status {
  text-align: center;
  padding: 12px 4px 4px;
}
.pay-status h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
}
.pay-lead {
  margin: 0 0 20px;
  color: var(--t2);
  font-size: 0.95rem;
}
.pay-status--ok .pay-kicker { color: var(--ok); }
.page-pay #syncHint:empty { display: none; }
.page-pay #syncHint {
  text-align: center;
  margin-top: 10px;
}
@media (max-width: 420px) {
  .pay-qr-img {
    width: 180px;
    height: 180px;
  }
  .pay-shell { padding: 22px 14px 16px; }
  .pay-channel { font-size: 0.84rem; gap: 6px; }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi {
  background: var(--d2);
  border-radius: 8px;
  padding: 14px;
  border: 1px solid var(--ln);
}
.kpi .n { font-size: 1.5rem; font-weight: 800; color: var(--g); }
.kpi .l { font-size: 0.78rem; color: var(--t3); }
.bar {
  height: 8px;
  background: var(--d2);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}
.bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--g), var(--gl));
}
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th, .table td {
  border-bottom: 1px solid var(--ln);
  padding: 10px 8px;
  text-align: left;
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--g10);
  color: var(--gd);
}
.tag.warn { background: rgba(201, 74, 92, 0.12); color: var(--bad); }
.tag.ok { background: rgba(47, 143, 106, 0.12); color: var(--ok); }
.footer {
  position: relative;
  z-index: 1;
  margin: 48px 0 28px;
  padding-top: 20px;
  border-top: 1px solid var(--ln);
  font-size: 0.8rem;
  color: var(--t3);
}
.disclaimer {
  background: rgba(201, 74, 92, 0.06);
  border: 1px solid rgba(201, 74, 92, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--t2);
}
.progress {
  height: 10px;
  background: var(--d2);
  border-radius: 99px;
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--g);
  transition: width 0.3s;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--g10);
  color: var(--gd);
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}
.section-title { font-size: 1.15rem; margin: 28px 0 12px; }
.muted { color: var(--t3); }

/* —— Admin shell —— */
.page-admin {
  position: relative;
  overflow-x: clip;
  min-height: 100vh;
  padding-bottom: 48px;
}
.page-admin::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 0% 0%, rgba(61, 90, 158, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 0%, rgba(201, 162, 39, 0.08), transparent 50%),
    linear-gradient(180deg, #e8ecf4 0%, var(--bg) 40%, #e9edf5 100%);
}
.page-admin .wrap { position: relative; z-index: 1; }
.page-admin .nav .brand span { font-weight: 600; letter-spacing: 0.02em; }

.admin-shell-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 1.9rem);
  font-weight: 400;
  color: var(--gd);
  letter-spacing: -0.02em;
}
.admin-shell-title em {
  font-style: italic;
  color: var(--t3);
  font-size: 0.72em;
  margin-left: 8px;
  font-family: var(--font);
  font-weight: 500;
}

.admin-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--ln);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.admin-bar .btn {
  border-radius: 10px;
  font-size: 0.88rem;
  padding: 9px 14px;
}
.admin-bar .btn.is-active {
  background: linear-gradient(135deg, var(--g), var(--gl));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(61, 90, 158, 0.28);
}
.admin-bar .btn.is-active:hover {
  color: #fff;
  filter: brightness(1.05);
}
.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--bad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
.admin-bar .btn.is-active .admin-badge {
  background: #fff;
  color: var(--bad);
}
.page-admin tr.is-consult-pending td {
  background: rgba(201, 74, 92, 0.06);
}
.report-delivery-filter.is-active {
  background: linear-gradient(135deg, var(--g), var(--gl));
  color: #fff;
  border-color: transparent;
}

#loginCard {
  max-width: 420px;
  margin: 48px auto 0;
  box-shadow: var(--shadow);
}
#loginCard h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.65rem;
  margin-top: 0;
  color: var(--gd);
}

#panel { min-height: 120px; }
.admin-panel-loading {
  padding: 36px 20px;
  text-align: center;
  color: var(--t3);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.admin-plat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--ln);
}
.admin-plat-row:last-of-type { border-bottom: none; }
.admin-plat-row .muted { font-size: 0.8rem; }

.page-admin .table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--t3);
}
.page-admin .table tbody tr:hover td { background: rgba(61, 90, 158, 0.04); }

/* AI 用量 */
.usage-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .usage-summary { grid-template-columns: 1.2fr 1fr 1fr; }
}
.usage-alert-banner {
  background: rgba(201, 74, 92, 0.08);
  border: 1px solid rgba(201, 74, 92, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  color: var(--bad);
  font-size: 0.9rem;
  font-weight: 700;
}
.usage-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 14px;
}
@media (min-width: 720px) {
  .usage-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .usage-grid { grid-template-columns: repeat(3, 1fr); }
}
.usage-card {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(18, 24, 38, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.usage-card:hover {
  border-color: rgba(61, 90, 158, 0.28);
  box-shadow: 0 14px 32px rgba(18, 24, 38, 0.07);
}
.usage-card.is-alert {
  border-color: rgba(201, 74, 92, 0.45);
  box-shadow: 0 0 0 1px rgba(201, 74, 92, 0.12);
}
.usage-card-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.usage-card-hd strong { font-size: 1.05rem; color: var(--gd); }
.usage-balance {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gd);
  letter-spacing: -0.02em;
}
.usage-balance small {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--t3);
  margin-left: 4px;
}
.usage-model {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--t2);
}
.usage-model code {
  font-size: 0.8rem;
  background: var(--d2);
  padding: 1px 6px;
  border-radius: 4px;
}
.usage-meta { font-size: 0.78rem; color: var(--t3); line-height: 1.45; }
.usage-bar {
  height: 8px;
  background: var(--d2);
  border-radius: 99px;
  overflow: hidden;
}
.usage-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--g), var(--gl));
}
.usage-bar.is-low > i { background: linear-gradient(90deg, #c44a5c, #e07a88); }
.usage-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}
.usage-fields label { margin-top: 0; font-size: 0.75rem; }
.usage-fields input { padding: 8px 10px; font-size: 0.88rem; }
.usage-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.usage-recharge-btn {
  padding: 8px 12px;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.usage-settings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 8px;
}
.usage-settings-row .field { min-width: 140px; }
.usage-settings-row label { margin-top: 0; }

/* —— Job waiting panel (public, no progress) —— */
.page-job {
  position: relative;
  overflow-x: clip;
  min-height: 100vh;
}
.page-job::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 50% at 10% -8%, rgba(61, 90, 158, 0.16), transparent 55%),
    radial-gradient(ellipse 45% 35% at 96% 6%, rgba(201, 162, 39, 0.09), transparent 50%),
    linear-gradient(180deg, #e8ecf4 0%, var(--bg) 42%, #e9edf5 100%);
}
.job-panel {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 12px auto 48px;
  background: rgba(248, 249, 252, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid var(--ln);
  border-radius: 16px;
  padding: clamp(22px, 4vw, 32px);
  box-shadow: var(--shadow);
}
.job-panel-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.job-panel-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.job-ellipsis { color: var(--g); }
.job-spinner {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--g20);
  border-top-color: var(--g);
  animation: job-spin 0.85s linear infinite;
}
.job-spinner.is-done {
  animation: none;
  border-color: var(--ok);
  background: var(--ok);
  box-shadow: inset 0 0 0 3px #fff;
}
.job-spinner.is-failed {
  animation: none;
  border-color: var(--bad);
  background: transparent;
}
@keyframes job-spin {
  to { transform: rotate(360deg); }
}
.job-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--g10);
  border: 1px solid rgba(61, 90, 158, 0.14);
  margin-bottom: 18px;
}
.job-tip-icon {
  flex-shrink: 0;
  color: var(--g);
  margin-top: 1px;
}
.job-tip strong {
  display: block;
  color: var(--gd);
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.job-tip p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--t2);
  line-height: 1.55;
}
.job-brand-line {
  font-size: 0.9rem;
  color: var(--t3);
  margin: 0 0 20px;
}
.job-brand-line em {
  font-style: normal;
  font-weight: 700;
  color: var(--gd);
}
.job-section {
  margin-bottom: 18px;
}
.job-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.job-section h2::before {
  content: "";
  width: 3px;
  height: 0.95em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--g), var(--gl));
}
.job-section ul {
  margin: 0;
  padding-left: 1.15em;
  color: var(--t2);
  font-size: 0.88rem;
  line-height: 1.65;
}
.job-section li { margin-bottom: 6px; }
.job-actions {
  margin-top: 22px;
  text-align: center;
}
.job-ack {
  min-width: 200px;
  border-color: var(--g);
  color: var(--gd);
  background: #fff;
}
.job-ack:hover {
  background: var(--g10);
  color: var(--gd);
}
.job-thanks {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--t3);
}
.job-done {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ln);
  text-align: center;
}
.job-done p {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gd);
}
.job-done .btn { min-width: 180px; }

/* Admin job progress rows */
.job-admin-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}
.job-admin-progress .progress { height: 8px; }
.job-admin-meta {
  font-size: 0.75rem;
  color: var(--t3);
}
.job-log-mini {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  font-size: 0.72rem;
}
.job-log-detail-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.job-log-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.job-log-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--t3);
  margin-left: auto;
}
.job-log-list {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
  padding: 6px 0;
}
.job-log-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 6px 12px;
  font-size: 0.76rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  align-items: baseline;
}
.job-log-line:last-child { border-bottom: 0; }
.job-log-t {
  color: var(--t3);
  font-variant-numeric: tabular-nums;
  min-width: 70px;
}
.job-log-lv {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
  min-width: 42px;
}
.job-log-line.level-ok .job-log-lv { color: #2f8f6a; }
.job-log-line.level-info .job-log-lv { color: #5b7bc4; }
.job-log-line.level-warn .job-log-lv { color: #b8860b; }
.job-log-line.level-error .job-log-lv { color: #c45c5c; }
.job-log-line.level-error { background: rgba(196, 92, 92, 0.06); }
.job-log-plat { font-weight: 700; }
.job-log-q { color: var(--t3); font-size: 0.7rem; }
.job-log-msg {
  flex: 1 1 100%;
  word-break: break-word;
}
tr.is-job-open td { background: rgba(91, 123, 196, 0.06); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .usage-card { transition: none; }
  .job-spinner { animation: none; border-top-color: var(--g); opacity: 0.7; }
  .action-tile { transition: none; }
}

/* —— Recover / 订单查询 —— */
.page-recover {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
}
.page-recover::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 42% at 18% 12%, rgba(61, 90, 158, 0.2), transparent 58%),
    radial-gradient(ellipse 48% 38% at 88% 8%, rgba(201, 162, 39, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 72% 88%, rgba(91, 123, 196, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 8% 78%, rgba(44, 68, 120, 0.08), transparent 50%),
    linear-gradient(165deg, #dfe6f2 0%, var(--bg) 42%, #e6ebf4 100%);
}
.page-recover::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}
.recover-ambiance {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.recover-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}
.recover-orb--a {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -8%;
  left: -10%;
  background: rgba(61, 90, 158, 0.22);
}
.recover-orb--b {
  width: min(360px, 58vw);
  height: min(360px, 58vw);
  top: 6%;
  right: -12%;
  background: rgba(201, 162, 39, 0.16);
}
.recover-orb--c {
  width: min(480px, 80vw);
  height: min(480px, 80vw);
  bottom: -18%;
  left: 28%;
  background: rgba(91, 123, 196, 0.14);
}
.recover-arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--g);
  opacity: 0.9;
}
@media (prefers-reduced-motion: no-preference) {
  .recover-orb--a { animation: recover-float 14s ease-in-out infinite; }
  .recover-orb--b { animation: recover-float 18s ease-in-out infinite reverse; }
  .recover-orb--c { animation: recover-float 22s ease-in-out infinite 1s; }
}
@keyframes recover-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.04); }
}
.recover-wrap {
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.recover-stage {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  padding-top: clamp(28px, 8vh, 72px);
}
.recover-stage[hidden],
.recover-result[hidden] {
  display: none !important;
}
.recover-intro {
  text-align: center;
  margin: 0 0 24px;
  animation: recover-rise 0.45s ease-out both;
}
.recover-intro h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.recover-lead {
  margin: 0 auto;
  max-width: 22em;
  color: var(--t2);
  font-size: 0.92rem;
  line-height: 1.55;
}
.recover-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 22px 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(18, 24, 38, 0.08);
  animation: recover-rise 0.55s 0.06s ease-out both;
}
.recover-field label {
  display: block;
  margin: 0 0 7px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--t2);
}
.recover-field input {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--ln);
  background: var(--d1);
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.recover-field input:focus {
  outline: none;
  background: #fff;
  border-color: var(--g);
  box-shadow: 0 0 0 3px var(--g10);
}
.recover-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.recover-sms-btn {
  white-space: nowrap;
  padding: 0 14px;
  min-height: 46px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gd);
  background: var(--g10);
  border: 1px solid var(--g20);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.recover-sms-btn:hover:not(:disabled) {
  background: rgba(61, 90, 158, 0.16);
  border-color: rgba(61, 90, 158, 0.35);
}
.recover-sms-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.recover-submit {
  margin-top: 4px;
  min-height: 48px;
  letter-spacing: 0.04em;
}
.recover-hint:empty { display: none; }
.recover-hint {
  margin: -4px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ok);
}
.recover-form .err {
  margin: 0;
  text-align: center;
}
.recover-result {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  animation: recover-rise 0.4s ease-out;
}
.recover-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(18, 24, 38, 0.05);
}
.recover-toolbar-hint {
  margin: 0;
  font-size: 0.84rem;
  color: var(--t2);
}
.recover-toolbar .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.page-recover.recover-done .recover-result {
  margin-top: clamp(16px, 5vh, 40px);
  flex: 1 0 auto;
  align-content: start;
}
@media (min-width: 700px) {
  .recover-result {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
}
@keyframes recover-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.recover-panel {
  margin: 0;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(18, 24, 38, 0.06);
}
.recover-panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.recover-panel-hd h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
}
.recover-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gd);
  background: var(--g10);
  border: 1px solid var(--g20);
}
.recover-badge--muted {
  color: var(--t3);
  background: var(--d2);
  border-color: var(--ln);
}
.action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.action-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--ln);
  background: #fff;
  color: var(--t1);
  text-decoration: none;
  min-height: 64px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.action-tile:hover {
  color: var(--t1);
  text-decoration: none;
  border-color: var(--g20);
  box-shadow: 0 6px 18px rgba(18, 24, 38, 0.06);
  background: #fbfcfe;
}
.action-tile:active { transform: scale(0.992); }
.action-tile--primary {
  border-color: rgba(61, 90, 158, 0.28);
  background: linear-gradient(135deg, #fff 0%, #f3f6fb 100%);
}
.action-tile--primary:hover { border-color: var(--g); }
.action-tile-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.action-tile-body strong {
  font-size: 0.98rem;
  font-weight: 700;
}
.action-tile-body span {
  font-size: 0.8rem;
  color: var(--t3);
}
.action-tile-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--g);
  white-space: nowrap;
}
.action-tile-cta--ghost { color: var(--t2); }
.action-tile:hover .action-tile-cta { color: var(--gd); }
.tile-chevron { display: block; }
.recover-empty {
  padding: 22px 14px;
  border-radius: 12px;
  border: 1px dashed var(--ln);
  background: var(--d1);
  text-align: center;
}
.recover-empty p {
  margin: 0 0 12px;
  color: var(--t2);
  font-size: 0.9rem;
  line-height: 1.5;
}
.recover-empty--soft p { margin-bottom: 0; color: var(--t3); }
.recover-empty .btn {
  display: inline-flex;
  width: auto;
  min-width: 140px;
}

@media (max-width: 480px) {
  .recover-stage { padding-top: 16px; }
  .recover-form { padding: 20px 16px 18px; }
  .recover-code-row { grid-template-columns: 1fr; }
  .recover-sms-btn { min-height: 44px; }
  .action-tile { padding: 12px; gap: 10px; }
  .action-tile-cta { font-size: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .recover-intro,
  .recover-form,
  .recover-result {
    animation: none;
  }
  .recover-orb--a,
  .recover-orb--b,
  .recover-orb--c {
    animation: none;
  }
}

/* —— GEO 排名查询 —— */
.page-rank {
  background: linear-gradient(180deg, #eef2f8 0%, var(--bg) 40%, #e9edf5 100%);
}

.nav-geo-tools a.nav-active,
.nav-tab.is-active {
  color: #fff;
}

.rank-hero {
  text-align: center;
  margin: 8px 0 24px;
}
.rank-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--ink);
}
.rank-subtitle {
  margin: 0;
  color: var(--t3);
  font-size: 0.92rem;
}

.rank-card {
  max-width: none;
  width: 100%;
  margin: 0 auto 28px;
  padding: 24px 22px 20px;
  box-sizing: border-box;
}

.platform-label {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--t1);
  margin: 0 0 10px;
}
.platform-choices {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
.platform-hint {
  margin: 0 0 18px;
}
.platform-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  padding: 14px 8px 12px;
  border: 1.5px solid var(--ln);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, transform 0.12s;
  font: inherit;
  color: var(--t1);
}
.platform-choice:hover:not(.is-disabled) {
  border-color: color-mix(in srgb, #4f8ef7 45%, var(--ln));
  box-shadow: 0 4px 14px rgba(61, 90, 158, 0.1);
  transform: translateY(-1px);
}
.platform-choice.is-selected {
  border-color: #4f8ef7;
  background: color-mix(in srgb, #4f8ef7 8%, #fff);
  box-shadow: 0 0 0 1px color-mix(in srgb, #4f8ef7 35%, transparent);
}
.platform-choice.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.platform-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--ln);
  background: #fff;
  opacity: 0.7;
}
.platform-choice.is-selected .platform-check {
  border-color: #4f8ef7;
  background: #4f8ef7;
  opacity: 1;
}
.platform-choice.is-selected .platform-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.platform-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: var(--plat-color, var(--g));
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
}
/* 官方商标图（根路径 /assets/platforms，线上由 Nginx 反代到 GEO） */
.platform-choice[data-id="doubao"] .platform-icon,
.platform-choice[data-id="deepseek"] .platform-icon,
.platform-choice[data-id="wenxin"] .platform-icon,
.platform-choice[data-id="yuanbao"] .platform-icon,
.platform-choice[data-id="qwen"] .platform-icon,
.platform-choice[data-id="kimi"] .platform-icon,
.rm-plat-ico[data-plat="doubao"],
.rm-plat-ico[data-plat="deepseek"],
.rm-plat-ico[data-plat="wenxin"],
.rm-plat-ico[data-plat="yuanbao"],
.rm-plat-ico[data-plat="qwen"],
.rm-plat-ico[data-plat="kimi"],
.rh-plat[data-plat="doubao"],
.rh-plat[data-plat="deepseek"],
.rh-plat[data-plat="wenxin"],
.rh-plat[data-plat="yuanbao"],
.rh-plat[data-plat="qwen"],
.rh-plat[data-plat="kimi"] {
  background-color: #fff !important;
  background-size: 78% 78% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
  border: 1px solid rgba(18, 24, 38, 0.08);
}
/* 绝对路径：CSS 无论挂在 /css 还是 /geo/css，都不依赖相对解析 */
.platform-choice[data-id="doubao"] .platform-icon,
.rm-plat-ico[data-plat="doubao"],
.rh-plat[data-plat="doubao"] {
  background-image: url("/assets/platforms/doubao.png") !important;
  background-size: cover !important;
}
.platform-choice[data-id="deepseek"] .platform-icon,
.rm-plat-ico[data-plat="deepseek"],
.rh-plat[data-plat="deepseek"] {
  background-image: url("/assets/platforms/deepseek.svg") !important;
}
.platform-choice[data-id="wenxin"] .platform-icon,
.rm-plat-ico[data-plat="wenxin"],
.rh-plat[data-plat="wenxin"] {
  background-image: url("/assets/platforms/wenxin.svg") !important;
}
.platform-choice[data-id="yuanbao"] .platform-icon,
.rm-plat-ico[data-plat="yuanbao"],
.rh-plat[data-plat="yuanbao"] {
  background-image: url("/assets/platforms/yuanbao.svg") !important;
}
.platform-choice[data-id="qwen"] .platform-icon,
.rm-plat-ico[data-plat="qwen"],
.rh-plat[data-plat="qwen"] {
  background-image: url("/assets/platforms/qwen.svg") !important;
}
.platform-choice[data-id="kimi"] .platform-icon,
.rm-plat-ico[data-plat="kimi"],
.rh-plat[data-plat="kimi"] {
  background-image: url("/assets/platforms/kimi.svg") !important;
}
.platform-name {
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  color: var(--t1);
  word-break: break-all;
}
.platform-choice.is-selected .platform-name {
  color: #2c4478;
}

.input-with-count {
  position: relative;
}
.input-with-count input {
  padding-right: 72px;
}
.char-count {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--t3);
  pointer-events: none;
}

.req { color: var(--bad); }

.rank-brand-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--ln);
  border-radius: 10px;
  background: #fff;
  cursor: text;
  box-sizing: border-box;
}
.rank-brand-field:focus-within {
  border-color: #4f8ef7;
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.15);
}
.rank-brand-tags {
  display: contents;
}
.rank-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  background: #eef3fb;
  color: #2c4478;
  font-size: 0.84rem;
  line-height: 1.3;
}
.rank-brand-tag-x {
  border: 0;
  background: transparent;
  color: #6b7588;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
}
.rank-brand-tag-x:hover { color: var(--bad); }
.rank-brand-input {
  flex: 1 1 140px;
  min-width: 120px;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 4px 2px !important;
  margin: 0;
  font-size: 0.92rem;
  background: transparent;
}

.rank-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 6px;
  gap: 12px;
}
.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--t2);
  user-select: none;
}
.toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-switch {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--d2);
  position: relative;
  transition: background 0.2s;
}
.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
.toggle-input:checked + .toggle-switch {
  background: var(--g);
}
.toggle-input:checked + .toggle-switch::after {
  transform: translateX(18px);
}

.rank-submit {
  margin-top: 12px;
  padding: 14px;
  font-size: 1rem;
  border-radius: 10px;
}

.rank-results {
  max-width: none;
  width: 100%;
  margin: 0 auto 24px;
}

/* —— 紧凑结果面板 —— */
.rq-panel {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 16px 12px;
}
.rq-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ln);
  margin-bottom: 12px;
}
.rq-summary-main { min-width: 0; flex: 1; }
.rq-q {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.rq-brands {
  margin: 0;
  font-size: 0.82rem;
  color: var(--t3);
}
.rq-stat {
  flex-shrink: 0;
  text-align: center;
  min-width: 64px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--g10);
  line-height: 1.1;
}
.rq-stat strong {
  font-size: 1.35rem;
  color: var(--gd);
  font-weight: 800;
}
.rq-stat span { font-size: 0.85rem; color: var(--t3); }
.rq-stat em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--t3);
}

.rq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.rq-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 12px 10px;
  border: 1px solid var(--ln);
  border-radius: 10px;
  background: var(--d1);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--t1);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.rq-tile:hover {
  border-color: color-mix(in srgb, var(--plat-color, var(--g)) 50%, var(--ln));
  background: #fff;
}
.rq-tile.is-open {
  border-color: var(--plat-color, var(--g));
  background: #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--plat-color, var(--g)) 35%, transparent);
}
.rq-tile-name {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--t2);
}
.rq-tile-status {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--plat-color, var(--g));
}
.rq-tile--miss .rq-tile-status { color: var(--t3); font-size: 0.95rem; font-weight: 650; }
.rq-tile--fail .rq-tile-status { color: var(--bad); font-size: 0.95rem; font-weight: 650; }
.rq-tile--hit .rq-tile-status { color: var(--ok); }
.rq-tile-brands {
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--t3);
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rq-tip {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--t3);
  text-align: center;
}

.rq-detail {
  margin-top: 12px;
  padding: 14px;
  border-radius: 10px;
  background: var(--d2);
  border: 1px solid var(--ln);
}
.rq-detail-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.rq-detail-hd strong { font-size: 0.95rem; }
.rq-pill {
  font-size: 0.75rem;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: 999px;
}
.rq-pill--hit { background: rgba(47, 143, 106, 0.12); color: var(--ok); }
.rq-pill--miss { background: var(--d1); color: var(--t3); }
.rq-pill--fail { background: rgba(201, 74, 92, 0.12); color: var(--bad); }
.rq-brand-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rq-brand-list li {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--t3);
  border: 1px solid var(--ln);
}
.rq-brand-list li.is-hit {
  color: var(--gd);
  border-color: var(--g20);
  background: var(--g10);
  font-weight: 600;
}
.rq-answer {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--t2);
  white-space: pre-wrap;
  max-height: 220px;
  overflow: auto;
}
.rq-detail-err {
  margin: 0;
  color: var(--bad);
  font-size: 0.88rem;
}

/* —— 历史页：卡片列表 —— */
.wrap--hist { max-width: 960px; }
.rh-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 16px;
}
.rh-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.92rem;
  color: var(--t2);
  cursor: pointer;
  text-decoration: none;
}
.rh-back:hover { color: var(--g); }
.rh-detail-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rh-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.rh-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(44, 68, 120, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(18, 24, 38, 0.05);
}
.rh-card-body {
  flex: 1;
  min-width: 0;
}
.rh-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.rh-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.rh-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.rh-tag {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--g);
  background: var(--g10);
}
.rh-time {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--t3);
  white-space: nowrap;
}
.rh-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--t2);
}
.rh-row--meta {
  gap: 18px;
  color: var(--t3);
}
.rh-row--meta b {
  color: var(--t1);
  font-weight: 650;
}
.rh-row--meta b.is-miss { color: var(--ok); }
.rh-row--meta b.is-hit { color: var(--g); }
.rh-label { color: var(--t3); flex-shrink: 0; }
.rh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rh-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--g);
  background: var(--g10);
}
.rh-plats-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rh-plats {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rh-plat {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  background: var(--c, var(--g));
}
.rh-muted { color: var(--t3); }
.rh-view-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  border: 1px solid var(--g);
  border-radius: 6px;
  background: #fff;
  color: var(--g);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rh-card--pending {
  border-color: color-mix(in srgb, var(--g) 35%, var(--ln));
  background: color-mix(in srgb, var(--g) 4%, #fff);
}
.rh-card--pending .rh-tag {
  background: rgba(61, 90, 158, 0.12);
  color: var(--g);
}

.rh-empty {
  padding: 64px 20px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  color: var(--t3);
  box-shadow: 0 8px 24px rgba(18, 24, 38, 0.05);
}
.rh-empty p { margin: 0 0 16px; }

.rh-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0 28px;
  font-size: 0.82rem;
  color: var(--t3);
}
.rh-page-size select,
.rh-goto input {
  width: auto;
  min-width: 0;
  padding: 4px 8px;
  font-size: 0.82rem;
  border: 1px solid var(--ln);
  border-radius: 4px;
  background: #fff;
}
.rh-goto input { width: 48px; text-align: center; }
.rh-page-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rh-page-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--ln);
  border-radius: 4px;
  background: #fff;
  color: var(--t2);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}
.rh-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.rh-page-cur {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  background: var(--g);
  color: #fff;
  font-weight: 650;
}

.rank-footer { margin-top: 40px; text-align: center; }

/* —— 查询进度 —— */
.rank-progress {
  max-width: none;
  width: 100%;
  margin: 0 auto 20px;
  padding: 18px 18px 14px;
  box-sizing: border-box;
}
.rp-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.rp-hd strong {
  font-size: 0.98rem;
  color: var(--ink);
}
.rp-hd .hint { margin: 4px 0 0; }
.rp-summary {
  flex-shrink: 0;
  min-width: 56px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gd);
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--g10);
}
.rp-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--d2);
  overflow: hidden;
  margin-bottom: 14px;
}
.rp-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--g), var(--gl));
  transition: width 0.35s ease;
}
.rp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--ln);
  background: var(--d1);
  transition: background 0.2s, border-color 0.2s;
}
.rp-item--running {
  background: #fff;
  border-color: color-mix(in srgb, var(--plat-color, var(--g)) 45%, var(--ln));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--plat-color, var(--g)) 18%, transparent);
}
.rp-item--done {
  background: rgba(47, 143, 106, 0.06);
  border-color: rgba(47, 143, 106, 0.25);
}
.rp-item--fail {
  background: rgba(201, 74, 92, 0.06);
  border-color: rgba(201, 74, 92, 0.22);
}
.rp-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--plat-color, var(--g));
  flex-shrink: 0;
}
.rp-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rp-meta strong {
  font-size: 0.9rem;
  font-weight: 650;
}
.rp-status {
  font-size: 0.8rem;
  color: var(--t3);
}
.rp-item--running .rp-status { color: var(--g); font-weight: 600; }
.rp-item--done .rp-status { color: var(--ok); font-weight: 600; }
.rp-item--fail .rp-status { color: var(--bad); font-weight: 600; }
.rp-err {
  font-size: 0.72rem;
  color: var(--bad);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rp-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--d2);
  flex-shrink: 0;
}
.rp-item--waiting .rp-indicator { background: #c5cad6; }
.rp-item--running .rp-indicator {
  background: var(--plat-color, var(--g));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--plat-color, var(--g)) 22%, transparent);
  animation: rp-pulse 1s ease-in-out infinite;
}
.rp-item--done .rp-indicator { background: var(--ok); }
.rp-item--fail .rp-indicator { background: var(--bad); }

@keyframes rp-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.65; }
}

.rp-result {
  margin-top: 14px;
}
.rm-prog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}
.rm-prog i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.rm-prog--wait { color: var(--t3); }
.rm-prog--run {
  color: var(--g);
}
.rm-prog--run i {
  animation: rp-pulse 1s ease-in-out infinite;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--g) 22%, transparent);
}
.rm-prog--done { color: var(--ok); }
.rm-prog--fail { color: var(--bad); }
.rm-row--running {
  background: color-mix(in srgb, var(--g) 4%, #fff);
}

.rm-inline .rm-toolbar--inline {
  padding: 0 0 12px;
  border-bottom: 0;
}
.rm-inline .rm-table-wrap {
  padding: 0;
  overflow-x: auto;
}
.rm-inline .rm-pager {
  padding: 10px 0 0;
  border-top: 1px solid var(--ln);
  justify-content: flex-start;
}
.rm-modal-body {
  padding: 0 12px 8px;
  overflow: auto;
}
.rm-modal-body .rm-toolbar {
  padding: 0 8px 14px;
}

/* —— 结果 / 效果弹窗 —— */
body.rm-open { overflow: hidden; }
.rm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(18, 24, 38, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}
.rm-overlay--top { z-index: 100000; }
.rm-dialog {
  width: min(1080px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(18, 24, 38, 0.22);
  display: flex;
  flex-direction: column;
}
.rm-dialog--effect {
  width: min(1100px, 100%);
  background: #f3f5f9;
}
.rm-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  flex-shrink: 0;
}
.rm-hd h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.rm-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--t3);
  cursor: pointer;
}
.rm-close:hover { background: var(--d2); color: var(--t1); }

.rm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 20px 14px;
  border-bottom: 1px solid var(--ln);
}
.rm-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rm-filters select {
  width: auto;
  min-width: 140px;
  padding: 7px 10px;
  font-size: 0.85rem;
  border: 1px solid var(--ln);
  border-radius: 6px;
  background: #fff;
}
.rm-filter-btn {
  padding: 7px 18px !important;
  font-size: 0.85rem !important;
}
.rm-time {
  font-size: 0.82rem;
  color: var(--t3);
  white-space: nowrap;
}

.rm-table-wrap {
  padding: 0 12px;
  overflow: auto;
  flex: 1;
}
.rm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.rm-table th {
  text-align: left;
  padding: 12px 10px;
  color: var(--t3);
  font-weight: 600;
  border-bottom: 1px solid var(--ln);
  white-space: nowrap;
  background: #fff;
  position: sticky;
  top: 0;
}
.rm-table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--ln);
  color: var(--t1);
  vertical-align: middle;
}
.rm-plat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}
.rm-plat-ico {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.rm-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f0f2f5;
  color: var(--t2);
  font-size: 0.8rem;
}
.rm-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--g);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.rm-link:hover { text-decoration: underline; }
.rm-muted { color: var(--t3); font-size: 0.82rem; }
.rm-empty-cell {
  text-align: center;
  padding: 36px !important;
  color: var(--t3);
}

.rm-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 20px 16px;
  font-size: 0.82rem;
  color: var(--t3);
  border-top: 1px solid var(--ln);
  flex-shrink: 0;
}
.rm-pager select,
.rm-goto input {
  width: auto;
  min-width: 0;
  padding: 4px 8px;
  font-size: 0.82rem;
  border: 1px solid var(--ln);
  border-radius: 4px;
  background: #fff;
}
.rm-goto input { width: 48px; text-align: center; }
.rm-page-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rm-page-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--ln);
  border-radius: 4px;
  background: #fff;
  color: var(--t2);
  font-size: 1rem;
  cursor: pointer;
}
.rm-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.rm-page-cur {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  background: var(--g);
  color: #fff;
  font-weight: 650;
}

/* 效果弹窗 */
.rm-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 20px 16px;
}
.rm-metric {
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 4px 16px rgba(18, 24, 38, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rm-metric-v {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}
.rm-metric span {
  font-size: 0.8rem;
  color: var(--t3);
}
.rm-effect-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 14px;
  padding: 0 20px 20px;
  min-height: 0;
}
.rm-effect-grid--solo {
  grid-template-columns: 1fr;
}
.rm-dialog--effect-solo {
  max-width: min(860px, calc(100vw - 32px));
}
.rm-origin,
.rm-sources {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(18, 24, 38, 0.05);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
}
.rm-sources .iq-src-list {
  flex: 1;
  min-height: 0;
}
.rm-origin-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.rm-origin-hd h4,
.rm-sources h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}
.rm-q-pill {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--g10);
  color: var(--gd);
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rm-origin-ai {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--t2);
}
.rm-origin-box {
  background: #f7f8fb;
  border-radius: 8px;
  padding: 14px;
  max-height: 420px;
  overflow: auto;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--t1);
}
.rm-answer-body { white-space: normal; word-break: break-word; }

.rm-sources-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 280px;
  color: var(--t3);
  padding: 20px 12px;
}
.rm-lock-ico {
  font-size: 2.4rem;
  line-height: 1;
  filter: grayscale(0.2);
}
.rm-sources-lock p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--t2);
  font-weight: 650;
}
.rm-sources-lock small {
  font-size: 0.75rem;
  line-height: 1.4;
  max-width: 220px;
}
.rm-sources-lock .btn { margin-top: 4px; }

.rq-panel--mini .rq-summary {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  align-items: center;
}

@media (max-width: 800px) {
  .rm-metrics { grid-template-columns: 1fr; }
  .rm-effect-grid { grid-template-columns: 1fr; }
  .rm-dialog { max-height: 92vh; }
}

@media (max-width: 720px) {
  .platform-choices {
    grid-template-columns: repeat(3, 1fr);
  }
  .rq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rh-card {
    flex-direction: column;
    align-items: stretch;
  }
  .rh-card-top {
    flex-direction: column;
  }
  .rh-view-btn {
    width: 100%;
  }
  .rh-pager {
    justify-content: center;
  }
}
@media (max-width: 420px) {
  .platform-choices {
    grid-template-columns: repeat(2, 1fr);
  }
  .rq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— GEO 关键词挖掘 —— */
.page-kw .ta-with-count {
  position: relative;
}
.page-kw .ta-with-count textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding-bottom: 28px;
  line-height: 1.55;
  box-sizing: border-box;
}
.page-kw .ta-with-count .char-count {
  top: auto;
  bottom: 10px;
  transform: none;
}
.km-loading {
  color: #4f8ef7 !important;
}
.km-table-wrap {
  overflow: auto;
  background: #fff;
  max-height: min(62vh, 560px);
  border-top: 1px solid #eef2f7;
}
.page-kw.has-results .km-table-wrap {
  max-height: calc(100vh - 340px);
}
.km-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.km-table th,
.km-table td {
  border-bottom: 1px solid #e8edf5;
  border-right: 0;
  padding: 14px 14px;
  text-align: left;
  vertical-align: top;
  color: #1f2937;
  line-height: 1.55;
  font-weight: 400;
}
.km-table tr:last-child td { border-bottom: 0; }
.km-table thead th {
  position: sticky;
  top: 0;
  background: #f7f9fc;
  color: #374151;
  font-weight: 700;
  white-space: nowrap;
  z-index: 1;
  border-bottom: 1px solid #e5ebf4;
  line-height: 1.35;
}
.km-cell-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.km-cell-stack > div {
  word-break: break-word;
}
.km-muted { color: #9ca3af; }
.km-empty {
  margin: 0;
  color: #9ca3af;
  text-align: center;
  padding: 36px 12px;
}
.km-hist-card .rh-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--t3);
  font-size: 0.82rem;
}
.km-del { font-size: 0.82rem; }

.km-table--zebra tbody tr:nth-child(even) {
  background: #f8fafc;
}
.km-table--zebra tbody tr:nth-child(odd) {
  background: #fff;
}

/* 分页 —— 单行紧凑 */
.km-pager {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px 18px;
  color: #4b5563;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow-x: auto;
}
.km-pager-total {
  flex: 0 0 auto;
  color: #6b7280;
}
.km-pager-size {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 96px;
  max-width: 120px;
  height: 30px;
  margin: 0;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0 28px 0 10px;
  background: #fff;
  font: inherit;
  font-size: 0.86rem;
  color: #374151;
  box-sizing: border-box;
}
.km-pg-arrow,
.km-pg-num {
  flex: 0 0 auto;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
}
.km-pg-num.is-active {
  background: #4f8ef7;
  border-color: #4f8ef7;
  color: #fff;
  font-weight: 700;
}
.km-pg-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.km-pager-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: 2px;
}
.km-pager-jump input {
  width: 44px !important;
  min-width: 44px;
  max-width: 44px;
  height: 30px;
  margin: 0;
  text-align: center;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0 4px;
  font: inherit;
  font-size: 0.86rem;
  box-sizing: border-box;
}
.kmh-pager-wrap {
  margin-top: 4px;
  display: flex;
  justify-content: center;
}
.kmh-pager-wrap .km-pager {
  width: auto;
  max-width: 100%;
}

/* 历史列表 */
.kmh-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kmh-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(18, 24, 38, 0.03);
}
.kmh-card-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kmh-row {
  display: flex;
  gap: 6px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #1f2937;
}
.kmh-k {
  flex: 0 0 auto;
  color: #6b7280;
  white-space: nowrap;
}
.kmh-v {
  min-width: 0;
  word-break: break-word;
}
.kmh-card-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-width: 140px;
}
.kmh-time {
  font-size: 0.82rem;
  color: #9ca3af;
  white-space: nowrap;
}
.kmh-view {
  appearance: none;
  border: 1px solid #4f8ef7;
  background: #fff;
  color: #4f8ef7;
  border-radius: 6px;
  padding: 7px 16px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}
.kmh-view:hover {
  background: #eff6ff;
}

/* 挖掘结果弹窗 */
body.km-modal-open {
  overflow: hidden;
}
.km-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.km-modal[hidden] {
  display: none !important;
}
.km-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
}
.km-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}
.km-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.km-modal-close:hover { color: #374151; }
.km-modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 48px 14px 20px;
  border-bottom: 1px solid #eef2f7;
  flex: 0 0 auto;
}
.km-modal-hd h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  font-family: var(--font);
}
.km-modal-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.km-modal-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #4b5563;
}
.km-modal-filter select {
  width: auto;
  min-width: 120px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  color: #111827;
}
.km-modal-export {
  appearance: none;
  border: none;
  background: #4f8ef7;
  color: #fff;
  border-radius: 8px;
  padding: 8px 18px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(79, 142, 247, 0.28);
}
.km-modal-export:hover {
  background: #3b7ef0;
}
.km-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.km-modal-body .km-table-wrap {
  flex: 1 1 auto;
  max-height: none;
  border-top: 0;
}
.km-modal-body .km-pager {
  flex: 0 0 auto;
  border-top: 1px solid #eef2f7;
  justify-content: flex-end;
  padding-right: 18px;
}

@media (max-width: 720px) {
  .page-kw.has-results .km-table-wrap {
    max-height: calc(100vh - 380px);
  }
  .kmh-card {
    flex-direction: column;
  }
  .kmh-card-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
  }
  .km-modal {
    padding: 12px 8px;
  }
  .km-modal-hd {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 40px;
  }
  .km-modal-body .km-pager {
    justify-content: center;
    padding-right: 12px;
  }
}

/* —— AI 收录查询 —— */
.iq-hero { margin: 0 0 20px; }
.iq-hero .rank-subtitle {
  color: var(--t2);
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
.iq-form-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 14px;
  margin-top: 6px;
}
.iq-form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}
.iq-form-stack .iq-field {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: center;
}
.iq-form-stack .iq-field label {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}
.iq-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--t1);
}
.iq-field select,
.iq-field input {
  width: 100%;
  border: 1px solid var(--ln);
  border-radius: 8px;
  min-height: 42px;
}
.iq-content-wrap {
  min-width: 0;
}
.iq-content-wrap .hint {
  margin: 8px 0 0;
  line-height: 1.5;
}
.iq-field-err {
  margin: 6px 0 0;
  color: #ef4444;
  font-size: 0.86rem;
  line-height: 1.4;
}
.iq-field input.is-invalid {
  border-color: #ef4444;
  outline: none;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}
.iq-field input.is-invalid:focus {
  border-color: #ef4444;
  outline: 2px solid rgba(239, 68, 68, 0.18);
}
.iq-options {
  margin-top: 8px;
  margin-bottom: 4px;
}
.iq-board-card {
  max-width: none;
  width: 100%;
  margin: 0 auto 28px;
  padding: 20px 22px;
  border: 1px solid var(--ln);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
/* 工具页内容与顶栏同宽对齐（不含品牌诊断首页） */
.page-rank .wrap,
.page-kw .wrap,
.page-inclusion .wrap,
.page-kw-hist .wrap {
  width: min(1180px, calc(100% - 36px));
}
.page-rank .nav-bar,
.page-kw .nav-bar,
.page-inclusion .nav-bar,
.page-kw-hist .nav-bar {
  max-width: none;
  width: 100%;
}
.page-rank .rank-card,
.page-rank .rank-results,
.page-rank .rank-progress,
.page-rank .iq-board-card,
.page-rank .gi-board,
.page-kw .km-result-card,
.page-inclusion .iq-card.rank-card,
.page-inclusion .iq-board-card {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
.iq-board-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.iq-board-hd strong {
  font-size: 1.05rem;
  color: var(--ink);
}
.iq-board-hd .hint { margin: 6px 0 0; }
.iq-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ln);
  border-radius: 12px;
}
.iq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.iq-table th,
.iq-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--ln);
  vertical-align: middle;
}
.iq-table th {
  background: #f7f9fc;
  color: var(--t2);
  font-weight: 650;
  font-size: 0.82rem;
}
.iq-table tr:last-child td { border-bottom: 0; }
.iq-table tbody tr:hover td { background: #fafbfd; }
.iq-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 0.88rem;
}
.iq-status i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: iq-spin 0.8s linear infinite;
}
.iq-status--wait { color: var(--t3); }
.iq-status--run { color: #64748b; }
.iq-status--hit { color: #16a34a; }
.iq-status--miss { color: #94a3b8; }
.iq-status--fail { color: var(--bad); }
@keyframes iq-spin {
  to { transform: rotate(360deg); }
}
.iq-match-list {
  margin: 0;
  padding: 0 0 0 1.1em;
  color: var(--t2);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* 平台收录详情弹窗（原文 + 引用信息源） */
.iq-detail-dialog {
  width: min(1120px, 100%);
  max-height: min(90vh, 860px);
  background: #fff;
}
.iq-detail-dialog .rm-hd {
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}
.iq-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 0;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.iq-detail-origin,
.iq-detail-sources {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.iq-detail-origin {
  padding: 0 0 16px;
  background: #f5f7fb;
  border-right: 1px solid #e8edf5;
}
.iq-detail-sources {
  padding: 0 0 16px;
  background: #eef1f6;
}
.iq-detail-col-hd {
  flex: 0 0 auto;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  background: transparent;
}
.iq-detail-origin-card {
  margin: 0 14px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5eaf2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.iq-detail-origin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  flex: 0 0 auto;
}
.iq-detail-ai {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 650;
  color: #334155;
}
.iq-detail-pill {
  max-width: 55%;
  padding: 5px 12px;
  border-radius: 8px;
  background: #e8f1ff;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.iq-detail-origin-body {
  padding: 14px 16px;
  overflow: auto;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #1f2937;
}
.iq-src-list {
  padding: 0 14px;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.iq-src-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  padding: 12px 12px 10px;
}
.iq-src-card.is-cited {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.12);
}
.iq-src-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 8px;
  border-radius: 0 7px 0 8px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}
.iq-src-site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 6px;
  padding-right: 48px;
}
.iq-src-count {
  font-style: normal;
  font-size: 0.75rem;
  color: #9ca3af;
  flex: 0 0 auto;
  padding-right: 0;
}
.iq-src-title {
  font-size: 0.9rem;
  color: #1f2937;
  line-height: 1.45;
  word-break: break-word;
}
.iq-src-title a {
  color: inherit;
  text-decoration: none;
}
.iq-src-title a:hover {
  color: #2563eb;
}
.iq-src-title.is-cited {
  background: #fee2e2;
  color: #dc2626;
  border-radius: 4px;
  padding: 6px 8px;
}
.iq-src-title.is-cited a {
  color: #dc2626;
}
.iq-src-expand {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #4f8ef7;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  padding: 4px 0 0;
}
.iq-src-expand:hover {
  color: #2563eb;
}
.iq-src-more {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e5eaf2;
  font-size: 0.84rem;
}
/* 作者样式 display:flex 会盖过 UA 的 [hidden]{display:none}，必须显式收起 */
.iq-src-more[hidden] {
  display: none !important;
}
.iq-src-more a,
.iq-src-more span {
  color: #4b5563;
  text-decoration: none;
  word-break: break-all;
}
.iq-src-more a:hover {
  color: #2563eb;
}
.iq-src-empty {
  margin: 8px 0;
  padding: 28px 12px;
  text-align: center;
  color: #9ca3af;
  background: #fff;
  border-radius: 8px;
  border: 1px dashed #d1d5db;
}
.iq-src-empty p {
  margin: 0 0 6px;
  font-weight: 650;
  color: #6b7280;
}
.iq-src-empty small {
  font-size: 0.78rem;
}

@media (max-width: 860px) {
  .iq-detail-grid {
    grid-template-columns: 1fr;
  }
  .iq-detail-origin {
    border-right: 0;
    border-bottom: 1px solid #e8edf5;
    max-height: 45vh;
  }
}
@media (max-width: 960px) {
  .nav-bar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
  }
  .nav-tabs {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
  }
  .nav-actions {
    margin-left: auto;
  }
}
@media (max-width: 720px) {
  .iq-form-row {
    grid-template-columns: 1fr;
  }
  .iq-form-stack .iq-field {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .iq-form-stack .iq-field label {
    text-align: left;
  }
  .nav-tab {
    padding: 7px 6px;
    font-size: 0.76rem;
  }
  .nav-utility {
    display: none;
  }
}

/* —— GEO 指数查询 —— */
.page-geo-index .gi-card { padding-bottom: 28px; }
.gi-hero { margin-bottom: 8px; }
.gi-hero .rank-subtitle {
  color: var(--t2);
}
.gi-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 8px;
}
.gi-search-field label { display: block; margin-bottom: 6px; }
.gi-score-preview,
.gi-score-box {
  min-width: 132px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f4f7fc, #e8eef8);
  border: 1px solid var(--ln);
  text-align: center;
}
.gi-score-label {
  display: block;
  font-size: 0.75rem;
  color: var(--t3);
  letter-spacing: 0.04em;
}
.gi-score-preview strong,
.gi-score-num {
  display: block;
  margin-top: 2px;
  font-size: 1.85rem;
  line-height: 1.1;
  font-weight: 750;
  color: var(--gd);
  font-variant-numeric: tabular-nums;
}
.gi-board { margin-top: 18px; padding: 22px 24px 28px; }
.gi-board-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.gi-kw {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}
.gi-note {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--t3);
}
.gi-chart-card {
  margin-top: 18px;
  padding: 14px 14px 8px;
  border: 1px solid var(--ln);
  border-radius: 12px;
  background: #fbfcfe;
}
.gi-chart-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.gi-chart-hd h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
}
.gi-info {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--ln);
  background: #fff;
  color: var(--t3);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.gi-info:hover { color: var(--g); border-color: var(--g20); }
.gi-tip {
  margin: 8px 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #121826;
  color: #e8ecf4;
  font-size: 0.8rem;
  line-height: 1.55;
}
.gi-chart { width: 100%; overflow: hidden; }
.gi-chart--interactive { overflow: visible; }
.gi-chart-inner { position: relative; width: 100%; }
.gi-svg { display: block; }
.gi-grid { stroke: rgba(44, 68, 120, 0.12); stroke-width: 1; stroke-dasharray: 4 4; }
.gi-crosshair {
  stroke: rgba(44, 68, 120, 0.35);
  stroke-width: 1;
  pointer-events: none;
}
.gi-chart-tip {
  position: absolute;
  z-index: 5;
  min-width: 148px;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(44, 68, 120, 0.12);
  box-shadow: 0 8px 24px rgba(20, 32, 60, 0.12);
  pointer-events: none;
  font-size: 0.78rem;
  color: #2a3348;
  will-change: left, opacity;
  left: 4px;
  top: 18px;
}
.gi-chart-tip-date {
  font-weight: 600;
  margin-bottom: 8px;
  color: #121826;
}
.gi-chart-tip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}
.gi-chart-tip-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.gi-chart-tip-row span { flex: 1; color: #5c657a; }
.gi-chart-tip-row b { font-variant-numeric: tabular-nums; color: #121826; }
.gi-axis {
  fill: var(--t3);
  font-size: 11px;
  font-family: var(--font);
}
.gi-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 4px 0 6px;
  font-size: 0.8rem;
  color: var(--t2);
}
.gi-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.gi-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.gi-plat-table-wrap { margin-top: 18px; overflow-x: auto; }
.gi-plat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.gi-plat-table th,
.gi-plat-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--ln);
}
.gi-plat-table th {
  background: #f7f9fc;
  color: var(--t2);
  font-weight: 650;
  font-size: 0.8rem;
}
.gi-plat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
.gi-prog-list { margin-top: 12px; display: grid; gap: 6px; }
.gi-prog-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7f9fc;
  font-size: 0.85rem;
  color: var(--t2);
}
.gi-prog-row.ok { color: var(--ok); }
.gi-prog-row.bad { color: var(--bad); }
.gi-prog-row.run { color: var(--g); }
.gi-baidu-latest {
  font-size: 0.82rem;
  color: var(--t2);
  font-weight: 600;
}
@media (max-width: 720px) {
  .gi-search-row { grid-template-columns: 1fr; }
  .gi-board-hd { flex-direction: column; }
  .gi-score-box { align-self: stretch; }
}

/* —— 全局登录弹窗 —— */
body.vg-login-open { overflow: hidden; }
.vg-login-modal {
  position: fixed;
  inset: 0;
  z-index: 120000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.vg-login-modal[hidden] { display: none !important; }
.vg-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
}
.vg-login-dialog {
  position: relative;
  width: min(400px, 100%);
  padding: 28px 26px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(61, 90, 158, 0.12);
}
.vg-login-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.vg-login-close:hover {
  color: #334155;
  background: #f1f5f9;
}
.vg-login-dialog h2 {
  margin: 0 28px 8px 0;
  font-size: 1.2rem;
  font-weight: 750;
  color: #0f172a;
}
.vg-login-hint {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}
.vg-login-label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 650;
  color: #475569;
}
.vg-login-input {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 14px;
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.vg-login-input:focus {
  border-color: #4f8ef7;
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.18);
}
.vg-login-err {
  margin: 0 0 12px;
  font-size: 0.86rem;
}
.vg-login-dialog .btn-block { margin-top: 4px; }
.vg-login-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
}
.vg-login-foot a,
.vg-login-foot .linkish {
  color: #3d5a9e;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.vg-login-foot a:hover,
.vg-login-foot .linkish:hover { text-decoration: underline; }
.vg-login-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.vg-login-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 9px 8px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}
.vg-login-tab.is-active {
  background: #fff;
  color: #1e3a5f;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.vg-login-sms {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 8px;
}
.vg-login-sms .vg-login-input { margin-bottom: 0; }
.vg-login-sms .btn { min-height: 42px; white-space: nowrap; }
.vg-login-dialog .hint {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
}
.vg-login-dialog .hint-alert,
.hint-alert {
  color: #dc2626;
  font-weight: 600;
}
.vg-login-dialog .req { color: #dc2626; margin-right: 2px; }

.home-diag-cta .home-diag-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.home-diag-cta .home-diag-status {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--gd, #163056);
  font-variant-numeric: tabular-nums;
}
.home-diag-cta .home-diag-status small {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--t3, #64748b);
}

