/* ============ 特邀查询 H5 ============ */
:root {
  --bg: #06070b;
  --bg-soft: #0b0e16;
  --gold: #f8d67a;
  --gold-2: #e3a63c;
  --gold-deep: #a86b12;
  --text: #f3f5fa;
  --muted: #8d93a8;
  --line: rgba(255, 255, 255, 0.09);
  --card: rgba(18, 21, 31, 0.82);
  --ok: #56d99a;
  --bad: #ff6f6f;
  --radius: 20px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 保证 hidden 属性优先于任何 display 规则（否则 .badge 这类 inline-flex 元素隐藏不掉） */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  padding: env(safe-area-inset-top) 0 calc(env(safe-area-inset-bottom) + 16px);
}

a { color: inherit; text-decoration: none; }

/* 背景光 */
.aurora {
  position: fixed;
  inset: -30% -20% auto -20%;
  height: 70vh;
  background:
    radial-gradient(45% 55% at 30% 20%, rgba(248, 214, 122, 0.18), transparent 70%),
    radial-gradient(40% 45% at 80% 5%, rgba(100, 120, 255, 0.16), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 28px 18px 0;
}

/* 顶部迷你导航：后台登录入口放最上面，一眼能看到 */
.mini-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -8px 2px 14px;
}

.mini-brand {
  font-size: 11.5px;
  color: #6d7388;
  letter-spacing: 0.08em;
}

.mini-login {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(248, 214, 122, 0.09);
  border: 1px solid rgba(248, 214, 122, 0.32);
  transition: background 0.16s, border-color 0.16s;
}

.mini-login::after {
  content: "→";
  font-size: 11px;
  opacity: 0.8;
}

.mini-login:active {
  background: rgba(248, 214, 122, 0.18);
  border-color: rgba(248, 214, 122, 0.6);
}

/* ============ 顶部标题 ============ */
.hero { text-align: center; padding: 8px 4px 20px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(248, 214, 122, 0.28);
  background: rgba(248, 214, 122, 0.08);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.04em;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(248, 214, 122, 0.6);
  animation: pulse 2s infinite;
  flex: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(248, 214, 122, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(248, 214, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 214, 122, 0); }
}

h1 {
  margin: 16px 0 8px;
  font-size: 30px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(160deg, #fffdf6 0%, #f8d67a 45%, #cf9130 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 40px rgba(248, 214, 122, 0.15);
  word-break: break-word;
}

.subtitle {
  margin: 0 auto;
  max-width: 320px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ============ 广告词滚动条 ============ */
.ad-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(248, 214, 122, 0.2);
  background: linear-gradient(90deg, rgba(248, 214, 122, 0.11), rgba(248, 214, 122, 0.03));
  overflow: hidden;
}

.ad-tag {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2a1c02;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  border-radius: 999px;
  padding: 3px 8px;
}

.ad-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 20px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ad-track {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  height: 20px;
  white-space: nowrap;
  will-change: transform;
  animation: marquee var(--ad-duration, 22s) linear infinite;
}

.ad-slot:active .ad-track { animation-play-state: paused; }

.ad-item {
  font-size: 12.5px;
  color: #ffe7ac;
  letter-spacing: 0.01em;
}

.ad-item.link { border-bottom: 1px dashed rgba(255, 231, 172, 0.5); }

.ad-sep { color: rgba(248, 214, 122, 0.45); font-size: 11px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 广告跑马灯：不跟随系统「减少动画」设置关闭，否则看起来像坏了 */
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
}

/* ============ 查询卡片 ============ */
.card {
  margin-top: 18px;
  padding: 20px 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.notice {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #ffdf9b;
  background: rgba(248, 214, 122, 0.09);
  border: 1px solid rgba(248, 214, 122, 0.2);
}

.field { margin-bottom: 14px; }

.label {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  color: #b9bfd2;
  letter-spacing: 0.03em;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.input-wrap:focus-within {
  border-color: rgba(248, 214, 122, 0.55);
  background: rgba(248, 214, 122, 0.05);
  box-shadow: 0 0 0 3px rgba(248, 214, 122, 0.1);
}

.input-wrap.invalid {
  border-color: rgba(255, 111, 111, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 111, 111, 0.1);
}

.input-wrap input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 14px 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  letter-spacing: 0.02em;
  outline: none;
}

.input-wrap input::placeholder { color: #5f657a; font-size: 14.5px; letter-spacing: 0; }

#phone { letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }

.clear, .eye {
  flex: none;
  border: 0;
  background: transparent;
  color: #7d849b;
  font-size: 12.5px;
  padding: 0 12px;
  height: 44px;
  cursor: pointer;
  border-radius: 12px;
}

.clear { font-size: 15px; color: #6c7288; }
.eye:active, .clear:active { color: var(--gold); }

.remember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  font-size: 12px;
  color: #7d849b;
  user-select: none;
}

.remember input {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  cursor: pointer;
}

.remember input:checked {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  border-color: transparent;
}

.remember input:checked::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #241703;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 52px;
  margin-top: 18px;
  border: 0;
  border-radius: 15px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #241703;
  background: linear-gradient(180deg, #ffe9a8 0%, #f8d67a 38%, #e0a338 100%);
  box-shadow: 0 14px 30px -14px rgba(224, 163, 56, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.12s, filter 0.18s, box-shadow 0.18s;
}

.submit:active { transform: translateY(1px) scale(0.995); filter: brightness(0.97); }

.submit[disabled] {
  cursor: not-allowed;
  filter: grayscale(0.35) brightness(0.82);
  box-shadow: none;
}

.spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(36, 23, 3, 0.25);
  border-top-color: #241703;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  text-align: center;
  color: var(--gold);
}

.hint.error { color: #ff8a8a; }

/* 「查询密码：<链接> 获取」 */
.pw-get {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: #8d93a8;
  letter-spacing: 0.02em;
}

.pw-get a {
  color: var(--gold);
  font-weight: 600;
  border-bottom: 1px dashed rgba(248, 214, 122, 0.55);
  padding-bottom: 1px;
  transition: color 0.16s, border-color 0.16s;
}

.pw-get a:active {
  color: #fff3c9;
  border-bottom-color: rgba(248, 214, 122, 0.9);
}

.pw-get .plain { color: #c8cede; font-weight: 600; }
.pw-get b { color: #fff3c9; font-weight: 700; }

/* ============ 结果 ============ */
.result {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  animation: rise 0.32s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.res-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.res-phone {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.res-phone small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.res-count {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0d2c1e;
  background: linear-gradient(180deg, #7ef0b8, #43c98a);
}

.res-count.none {
  color: #3a1111;
  background: linear-gradient(180deg, #ffb0b0, #ef7c7c);
}

.hit-list { display: grid; gap: 9px; }

.hit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(248, 214, 122, 0.16);
  background: linear-gradient(120deg, rgba(248, 214, 122, 0.08), rgba(255, 255, 255, 0.02));
}

.hit-main { flex: 1; min-width: 0; }

.hit-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hit-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 11px;
  padding: 2.5px 8px;
  border-radius: 999px;
  color: #ffe6a9;
  background: rgba(248, 214, 122, 0.13);
  border: 1px solid rgba(248, 214, 122, 0.22);
  white-space: nowrap;
}

.chip.ghost {
  color: #a8b0c8;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.09);
}

.hit-go {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: #241703;
  padding: 7px 11px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffe9a8, #e6ae45);
}

.empty {
  padding: 22px 16px;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.empty-icon { font-size: 26px; opacity: 0.6; }

.empty p { margin: 8px 0 0; font-size: 13.5px; color: #c8cede; }

.empty span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

.res-foot {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: #6b7186;
}

/* ============ 页脚 ============ */
.foot {
  padding: 26px 10px 8px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.7;
  color: #5e6478;
}

.foot p { margin: 0; }

.foot-sub { margin-top: 6px !important; opacity: 0.72; }

.foot-link { border-bottom: 1px dotted rgba(255, 255, 255, 0.2); }

@media (min-width: 520px) {
  .page { padding-top: 44px; }
  h1 { font-size: 34px; }
}

/* ============ 次数 / 签到 / 分享 ============ */
.quota-box {
  margin: 2px 0 14px;
}

.quota-actions {
  display: flex;
  gap: 10px;
}

.quota-btn {
  flex: 1;
  min-width: 0;
  padding: 11px 8px;
  border-radius: 12px;
  border: 1px solid rgba(248, 214, 122, 0.35);
  background: rgba(248, 214, 122, 0.1);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, opacity 0.16s;
  white-space: nowrap;
}

.quota-btn:active {
  background: rgba(248, 214, 122, 0.2);
}

.quota-btn.share {
  border-color: rgba(120, 180, 255, 0.35);
  background: rgba(120, 180, 255, 0.1);
  color: #a6cdff;
}

.quota-btn.share:active {
  background: rgba(120, 180, 255, 0.2);
}

.quota-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.quota-line {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: #8d93a8;
  letter-spacing: 0.02em;
}

.quota-line b {
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  padding: 0 2px;
}

.quota-line.empty b {
  color: #ff8a8a;
}

.quota-line .quota-tip {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: #6d7388;
}