/* ==========================================================
   连跳调度台 — 访客落地页
   风格：抖音夜色 / 居中舞台 / 猩红呼吸
   ========================================================== */

:root{
  --ink:#0A0A0D;
  --panel:rgba(255,255,255,.045);
  --line:rgba(255,255,255,.1);
  --line-2:rgba(255,255,255,.18);
  --txt:#F2F3F7;
  --dim:rgba(242,243,247,.6);
  --faint:rgba(242,243,247,.34);
  --hot:#FF2D55;
  --cold:#4FD1B0;
  --sans:"PingFang SC","HarmonyOS Sans SC","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:ui-monospace,"Cascadia Mono","SF Mono",Consolas,"Liberation Mono",monospace;
}

*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}

.landing{
  background:var(--ink);
  color:var(--txt);
  font-family:var(--sans);
  font-size:15px;
  line-height:1.7;
  min-height:100vh;
  min-height:100dvh;
  position:relative;
  overflow-x:hidden;
}

.atmos{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(560px 420px at 50% 6%, rgba(255,45,85,.27), transparent 66%),
    radial-gradient(420px 340px at 88% 92%, rgba(79,209,176,.1), transparent 68%),
    linear-gradient(180deg,#0D0E13 0%, #0A0A0D 55%);
}
.atmos::after{
  content:""; position:absolute; inset:0; opacity:.5;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(700px 520px at 50% 10%, #000 25%, transparent 80%);
  -webkit-mask-image:radial-gradient(700px 520px at 50% 10%, #000 25%, transparent 80%);
}

.mono{font-family:var(--mono)}
.dim{color:var(--faint)}
code{font-family:var(--mono); font-size:12px; word-break:break-all}

/* ---------- 舞台 ---------- */
.stage{
  position:relative; z-index:5;
  max-width:460px; margin:0 auto;
  padding:52px 22px 68px;
  animation:fade .7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes fade{from{opacity:0; transform:translateY(16px)} to{opacity:1; transform:none}}

.brandline{
  display:flex; align-items:center; gap:10px; justify-content:center;
  font-size:10.5px; letter-spacing:.3em; color:var(--faint); margin-bottom:34px;
}
.pulse{
  width:8px; height:8px; border-radius:50%; background:var(--hot);
  animation:pulse 2.4s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(255,45,85,.55)}
  70%{box-shadow:0 0 0 12px rgba(255,45,85,0)}
  100%{box-shadow:0 0 0 0 rgba(255,45,85,0)}
}

.headline{
  font-size:30px; font-weight:600; letter-spacing:-.02em;
  text-align:center; line-height:1.25; margin-bottom:10px;
}
.subline{
  text-align:center; font-size:13.5px; color:var(--dim); margin-bottom:24px;
}
.subline .hl{
  color:#FF8FA6; font-weight:500;
  border-bottom:1px solid rgba(255,45,85,.4); padding-bottom:1px;
}

/* ---------- 进度条 ---------- */
.progress{
  height:3px; border-radius:20px; background:rgba(255,255,255,.09);
  overflow:hidden; margin-bottom:30px;
}
.progress i{
  display:block; height:100%; width:8%; border-radius:20px;
  background:linear-gradient(90deg, var(--hot), #FF8FA6);
  transition:width 2.6s cubic-bezier(.3,.9,.3,1);
}

/* ---------- 按钮 ---------- */
.cta{
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; padding:17px 20px; margin-bottom:12px;
  font-family:inherit; font-size:16px; font-weight:500; color:#fff;
  background:var(--hot); border:none; border-radius:15px; cursor:pointer;
  box-shadow:0 12px 34px -12px rgba(255,45,85,.85);
  transition:transform .16s ease, background .16s ease;
}
.cta:active{transform:scale(.985)}
.cta svg{width:20px; height:20px}
.cta-lite{
  background:transparent; color:var(--dim); font-size:13.5px; padding:13px;
  border:1px solid var(--line); box-shadow:none; margin-bottom:24px;
}
.cta-lite:hover{color:var(--txt); border-color:var(--line-2)}

/* ---------- 提示 ---------- */
.notice{
  padding:12px 15px; margin-bottom:12px;
  font-size:12.5px; line-height:1.75; color:var(--dim);
  background:var(--panel); border:1px solid var(--line); border-radius:12px;
}
.notice-hot{
  color:#FFC7D1; background:rgba(255,45,85,.12); border-color:rgba(255,45,85,.34);
}
.notice strong{color:#fff; font-weight:500}

/* ---------- 队列 ---------- */
.queue{
  margin-top:12px; padding:18px;
  background:var(--panel); border:1px solid var(--line); border-radius:16px;
}
.queue-head{
  display:flex; align-items:center; justify-content:space-between;
  font-size:11px; letter-spacing:.12em; color:var(--dim);
  padding-bottom:13px; margin-bottom:6px; border-bottom:1px solid var(--line);
}
.queue-list{list-style:none}
.queue-list li{
  display:flex; align-items:center; gap:11px;
  padding:9px 0; border-bottom:1px solid rgba(255,255,255,.05);
}
.queue-list li:last-child{border-bottom:none}
.qidx{
  width:22px; height:22px; flex:none; border-radius:7px;
  display:grid; place-items:center; font-size:11px;
  background:rgba(255,255,255,.07); color:var(--dim);
}
.is-target .qidx{background:rgba(255,45,85,.16); color:#FF8FA6}
.is-filler .qidx{background:rgba(79,209,176,.13); color:#7FDCC4}
.qid{
  flex:1; min-width:0; font-size:11.5px; color:var(--faint);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.qflag{
  font-family:var(--mono); font-size:10px; padding:2px 8px; border-radius:20px;
  color:var(--hot); border:1px solid rgba(255,45,85,.42); background:rgba(255,45,85,.1);
  flex:none;
}
.queue-tip{
  margin-top:13px; padding-top:13px; border-top:1px solid var(--line);
  font-size:11.5px; color:var(--faint); line-height:1.75;
}

/* ---------- 实测面板 ---------- */
.testpanel{
  margin-top:16px; padding:16px;
  background:rgba(79,209,176,.05); border:1px solid rgba(79,209,176,.28);
  border-radius:15px;
}
.testpanel summary{
  font-size:10.5px; letter-spacing:.16em; text-transform:uppercase;
  color:#7FDCC4; cursor:pointer; list-style:none;
}
.testpanel summary::-webkit-details-marker{display:none}
.testpanel summary::before{content:"▾ "}
.testpanel:not([open]) summary::before{content:"▸ "}
.tp-tip{font-size:11.5px; color:var(--faint); line-height:1.8; margin:12px 0 14px}
.tp-list{display:flex; flex-direction:column; gap:11px}
.tp-item{
  padding:12px 13px; border-radius:12px;
  background:rgba(0,0,0,.28); border:1px solid var(--line);
}
.tp-item.is-current{border-color:rgba(255,45,85,.44); background:rgba(255,45,85,.07)}
.tp-head{display:flex; align-items:center; gap:9px; margin-bottom:5px}
.tp-name{font-size:13.5px; font-weight:500}
.tp-badge{
  font-family:var(--mono); font-size:10px; padding:2px 8px; border-radius:20px;
  color:var(--hot); border:1px solid rgba(255,45,85,.45); background:rgba(255,45,85,.12);
}
.tp-desc{font-size:11.5px; color:var(--faint); line-height:1.7; margin-bottom:10px}
.tp-actions{display:flex; gap:7px; flex-wrap:wrap; margin-bottom:10px}
.tp-btn,.tp-btn2{
  font-family:inherit; font-size:12.5px; font-weight:500;
  padding:8px 16px; border-radius:9px; cursor:pointer; text-decoration:none;
  display:inline-flex; align-items:center;
  transition:transform .16s ease, background .16s ease;
}
.tp-btn{background:var(--hot); color:#fff; border:none}
.tp-btn:active{transform:scale(.97)}
.tp-btn2{background:transparent; color:var(--dim); border:1px solid var(--line-2)}
.tp-btn2:hover{color:var(--txt)}
.tp-url{
  display:block; font-size:10.5px; line-height:1.6; word-break:break-all;
  color:rgba(159,180,216,.62);
}

/* ---------- 调试 ---------- */
.debug{
  margin-top:16px; padding:14px 16px;
  background:rgba(255,255,255,.025); border:1px solid var(--line-2);
  border-radius:13px;
}
.debug summary{
  font-size:10.5px; letter-spacing:.16em; color:var(--faint);
  cursor:pointer; list-style:none; text-transform:uppercase;
}
.debug summary::-webkit-details-marker{display:none}
.debug summary::before{content:"▸ "; }
.debug[open] summary::before{content:"▾ "}
.debug-body{padding-top:14px; display:flex; flex-direction:column; gap:11px}
.dbg-row{display:flex; flex-direction:column; gap:5px}
.dbg-row span{font-size:10px; letter-spacing:.14em; text-transform:uppercase}
.dbg-row code{
  display:block; padding:9px 11px; border-radius:9px;
  background:rgba(0,0,0,.4); color:#9FB4D8; border:1px solid var(--line);
}
.dbg-hint{font-size:11.5px; color:var(--faint); line-height:1.8}

.foot{
  margin-top:26px; text-align:center;
  font-size:10.5px; letter-spacing:.1em; color:rgba(242,243,247,.22);
}
.foot-tip{
  margin-top:24px; text-align:center;
  font-size:11.5px; color:rgba(242,243,247,.34);
}

/* ---------- 错误态 ---------- */
.state{
  position:relative; z-index:5;
  min-height:100vh; min-height:100dvh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:40px 30px;
  animation:fade .6s cubic-bezier(.2,.8,.2,1) both;
}
.state-mark{width:56px; height:56px; margin-bottom:24px; opacity:.9}
.state h1{font-size:21px; font-weight:600; margin-bottom:10px}
.state p{font-size:13.5px; color:var(--faint); line-height:1.8; max-width:300px}

@media (max-width:380px){
  .headline{font-size:26px}
  .stage{padding:40px 18px 56px}
}
