@font-face {
  font-family: "Syne";
  src: url("./fonts/Syne-Variable.ttf") format("truetype");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("./fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050805;
  --ink: #ecfff0;
  --ink-dim: rgba(200, 255, 210, 0.68);
  --green: #39ff88;
  --lime: #c8ff4d;
  --warn: #ffb020;
  --line: rgba(57, 255, 136, 0.28);
  --panel: rgba(8, 18, 10, 0.9);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 50% -8%, rgba(57,255,136,0.14), transparent 55%),
    linear-gradient(180deg, #08140a, var(--bg));
  overflow-x: hidden;
}
.tape-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(57,255,136,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,136,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
}

.topbar {
  position: relative; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 0; max-width: 520px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; letter-spacing: 0.16em; font-size: 15px;
  color: var(--lime);
}
.brand-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--green);
}
.brand-live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: livePulse 1.4s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(57,255,136,0.45); }
  100% { box-shadow: 0 0 0 7px rgba(57,255,136,0); }
}

.lang-wrap { position: relative; z-index: 50; }
.lang-btn {
  appearance: none; border: 1px solid var(--line); background: rgba(6,16,8,0.95);
  color: var(--ink); font: inherit; font-size: 12px; padding: 7px 11px; border-radius: 8px; cursor: pointer;
}
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 140px;
  list-style: none; margin: 0; padding: 6px;
  background: #0a160c; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45); z-index: 60;
}
.lang-menu[hidden] { display: none; }
.lang-menu li {
  padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--ink-dim);
}
.lang-menu li:hover, .lang-menu li[aria-selected="true"] { background: rgba(57,255,136,0.12); color: var(--ink); }

.stage {
  position: relative; z-index: 1;
  max-width: 520px; margin: 0 auto; padding: 10px 16px 28px;
}

/* 页头：社交证言（略丰富，仍不抢倒计时） */
.hero {
  margin: 8px 0 12px;
}
.proof-card {
  padding: 12px 14px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 18, 10, 0.88);
  text-align: left;
}
.proof-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.avatar-stack {
  display: flex; align-items: center;
}
.avatar-stack i {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--c, var(--green));
  border: 1.5px solid #0a160c;
  margin-left: -6px;
  box-shadow: 0 0 0 1px rgba(57,255,136,0.15);
}
.avatar-stack i:first-child { margin-left: 0; }
.hero-kicker {
  font-size: 12px; color: var(--ink-dim); font-weight: 600;
}
.hero-proof {
  font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--ink);
}
.hero-proof b {
  color: var(--lime); font-weight: 800; font-variant-numeric: tabular-nums;
}
.proof-pace {
  margin-top: 6px; font-size: 12px; color: var(--ink-dim);
}
.proof-pace b { color: var(--green); font-weight: 800; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px;
}
.trust-row span {
  font-size: 10px; font-weight: 600; color: var(--ink-dim);
  padding: 4px 7px; border-radius: 999px;
  border: 1px solid rgba(57,255,136,0.18);
  background: rgba(0,0,0,0.22);
}

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 14px 14px; backdrop-filter: blur(10px); text-align: center;
}

/* 核心：中央大号驻留倒计时 */
.countdown-label { font-size: 14px; color: var(--ink-dim); font-weight: 600; }
.countdown-num {
  margin: 6px 0 2px; font-family: var(--font-body); font-weight: 800;
  font-size: clamp(56px, 18vw, 80px); line-height: 1; color: var(--lime);
  text-shadow: 0 0 28px rgba(200,255,77,0.3);
  font-variant-numeric: tabular-nums;
}
.countdown-num small { font-size: 0.32em; margin-left: 4px; color: var(--green); vertical-align: middle; }
.countdown-sub { font-size: 14px; color: var(--ink-dim); margin-bottom: 14px; font-weight: 600; }

.stock-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border-radius: 10px; margin-bottom: 12px;
  background: rgba(255,176,32,0.08); border: 1px solid rgba(255,176,32,0.28);
  font-size: 12px; color: var(--ink-dim); text-align: left;
}
.stock-row strong { color: var(--warn); font-size: 16px; }

/* 最新成交栏放在倒计时下方 */
.feed-wrap {
  text-align: left; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; margin-bottom: 12px; background: rgba(0,0,0,0.28);
}
.feed-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border-bottom: 1px solid rgba(57,255,136,0.15);
  font-size: 12px; font-weight: 700;
}
.live-tag {
  font-size: 10px; letter-spacing: 0.08em; color: #041008;
  background: var(--green); border-radius: 999px; padding: 2px 7px; font-weight: 800;
}
.tape-cols {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 8px;
  padding: 5px 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.03em;
  color: rgba(200,255,210,0.42);
  border-bottom: 1px solid rgba(57,255,136,0.1);
  background: rgba(0,0,0,0.2);
}
.feed { max-height: 168px; overflow: hidden; }
.feed-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.035);
  font-size: 12px;
  animation: slideIn 0.28s ease;
}
.feed-item:nth-child(odd) { background: rgba(57,255,136,0.03); }
.feed-item .c-time { color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.feed-item .c-user { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item .c-amt {
  color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap; text-align: right;
}
.feed-item.is-bonus .c-amt { color: var(--lime); }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.promise {
  text-align: left; font-size: 12px; line-height: 1.5; color: var(--ink-dim);
  margin-bottom: 12px; padding: 10px; border-radius: 10px;
  background: rgba(57,255,136,0.06); border: 1px solid rgba(57,255,136,0.18);
}

.claim-btn {
  width: 100%; border: 0; border-radius: 14px; padding: 14px 16px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 15px; color: #041008;
  background: linear-gradient(135deg, var(--green), var(--lime));
  opacity: 0.45; transition: opacity 0.2s, transform 0.15s;
}
.claim-btn:disabled { cursor: not-allowed; }
.claim-btn.is-ready { opacity: 1; animation: glow 1.6s ease-in-out infinite; }
.claim-btn.is-ready:active { transform: scale(0.98); }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57,255,136,0.3); }
  50% { box-shadow: 0 0 22px 2px rgba(200,255,77,0.35); }
}
.claim-note {
  margin-top: 8px; text-align: center; font-size: 11px; color: var(--ink-dim); line-height: 1.4;
}

.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 16px;
  background: rgba(0,0,0,0.62); backdrop-filter: blur(4px);
}
.modal-card {
  width: min(420px, 100%); border-radius: 18px; padding: 18px;
  background: #0a160c; border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); text-align: center;
  animation: pop 0.35s ease;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.modal-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--lime); }
.modal-body { font-size: 13px; color: var(--ink-dim); line-height: 1.45; margin-bottom: 14px; }
.modal-close {
  margin-top: 10px; width: 100%; border: 1px solid var(--line); background: transparent;
  color: var(--ink-dim); border-radius: 12px; padding: 10px; font: inherit; cursor: pointer;
}

.site-footer {
  position: relative; z-index: 1; text-align: center;
  padding: 0 16px 24px; font-size: 11px; color: rgba(200,255,210,0.45);
}
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 95; max-width: calc(100% - 32px);
  padding: 10px 14px; border-radius: 12px; font-size: 13px;
  background: #0a160c; border: 1px solid var(--line); color: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

@media (max-width: 380px) {
  .countdown-num { font-size: 52px; }
  .feed { max-height: 140px; }
}
