:root{
  --bg1:#ff2d2d;
  --bg2:#ff7a3c;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --shadow:0 20px 50px rgba(0,0,0,.22);
  --red:#ef4444;
  --red2:#fb7185;
  --gold:#fbbf24;
  --ring:rgba(255,255,255,.65);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  background:
    radial-gradient(1000px 700px at 20% 0%, rgba(255,255,255,.20), transparent 55%),
    radial-gradient(900px 600px at 100% 10%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  color:var(--text);
}
.app{min-height:100%;display:flex;flex-direction:column}
.hero{
  padding:18px 16px 14px;
  color:#fff;
  position:relative;
  overflow:hidden;
}
.hero:before{
  content:"";
  position:absolute;inset:-2px;
  background:
    radial-gradient(800px 350px at 10% -10%, rgba(251,191,36,.65), transparent 65%),
    radial-gradient(700px 380px at 110% 0%, rgba(255,255,255,.22), transparent 60%);
  opacity:.9;
}
.hero > *{position:relative}
.hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.hero-title{font-weight:900;font-size:26px;letter-spacing:.5px;line-height:1.05}
.hero-time{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:900;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.40);
  background:rgba(0,0,0,.12);
  margin-bottom:10px;
  width:fit-content;
}
.hero-time:before{
  content:"活动时间";
  font-weight:900;
  opacity:.9;
}
.hero-sub{opacity:.92;margin-top:6px;font-size:13px}
.hero-actions{display:flex;gap:10px;align-items:center}
.chip{
  border:1px solid rgba(255,255,255,.45);
  background:rgba(0,0,0,.12);
  color:#fff;
  padding:8px 12px;
  border-radius:999px;
  cursor:pointer;
}
.chip-dark{
  border-color:rgba(239,68,68,.22);
  background:rgba(239,68,68,.10);
  color:#991b1b;
}
.chip-dark:hover{background:rgba(239,68,68,.14)}
.chip:hover{background:rgba(0,0,0,.18)}
.hero-nav{margin-top:14px;display:flex;gap:10px}
.navbtn{
  flex:1;
  border:1px solid rgba(255,255,255,.38);
  background:rgba(255,255,255,.14);
  color:#fff;
  padding:10px 10px;
  border-radius:14px;
  cursor:pointer;
  font-weight:700;
}
.navbtn:hover{background:rgba(255,255,255,.18)}

.main{width:min(440px,100%);margin:0 auto;padding:0 14px 18px;flex:1}
.card{
  margin-top:8px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.92));
  border:1px solid rgba(255,255,255,.65);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:14px;
}
.card-title{font-weight:800;color:#b91c1c;font-size:13px;margin-bottom:12px}
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.cell{
  border-radius:14px;
  background:linear-gradient(180deg, rgba(239,68,68,.16), rgba(239,68,68,.08));
  border:1px solid rgba(239,68,68,.22);
  padding:10px 10px 12px;
  min-height:78px;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.cell:before{
  content:"";
  position:absolute;
  width:120px;height:120px;
  right:-65px;top:-65px;
  background:radial-gradient(circle at 30% 30%, rgba(251,191,36,.45), transparent 60%);
  transform:rotate(10deg);
}
.cell .name{
  position:relative;
  font-weight:900;
  color:#991b1b;
  font-size:13px;
  line-height:1.2;
}
.cell-img{
  width:24px;
  height:24px;
  object-fit:contain;
  border-radius:10px;
  box-shadow:0 6px 12px rgba(0,0,0,.12);
  background:#fff;
  display:block;
  max-width:32px;
  max-height:32px;
  flex:0 0 32px;
  margin-bottom:2px;
}
.cell .tag{
  position:absolute;left:10px;top:10px;
  font-size:10px;
  color:#fff;
  background:rgba(239,68,68,.85);
  border:1px solid rgba(255,255,255,.35);
  padding:2px 6px;
  border-radius:999px;
}
.cell.active{
  border-color:rgba(251,191,36,.95);
  box-shadow:0 0 0 4px rgba(251,191,36,.25);
  background:linear-gradient(180deg, rgba(251,191,36,.22), rgba(255,255,255,.86));
}
.cell.active .name{color:#7c2d12}

.controls{margin-top:14px}
.phone-row{
  display:flex;gap:10px;align-items:center;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.35);
  border-radius:16px;
  padding:10px;
  color:#fff;
}
.phone-label{font-weight:800;font-size:12px;opacity:.95}
input{
  flex:1;
  border:1px solid rgba(255,255,255,.35);
  border-radius:12px;
  background:rgba(0,0,0,.12);
  padding:10px 10px;
  color:#fff;
  outline:none;
}
input::placeholder{color:rgba(255,255,255,.75)}
input:focus{border-color:rgba(251,191,36,.85);box-shadow:0 0 0 3px rgba(251,191,36,.20)}
.btn{
  border:none;
  border-radius:16px;
  padding:12px 14px;
  cursor:pointer;
  font-weight:900;
}
.btn.primary{
  width:100%;
  margin-top:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.86));
  color:#b91c1c;
  box-shadow:0 12px 22px rgba(0,0,0,.18);
}
.btn.primary:disabled{opacity:.6;cursor:not-allowed}
.btn.ghost{
  background:rgba(255,255,255,.16);
  color:#fff;
  border:1px solid rgba(255,255,255,.38);
  padding:9px 12px;
}
.btn.ghost:hover{background:rgba(255,255,255,.20)}
.hint{margin-top:10px;color:rgba(255,255,255,.92);font-size:12px;min-height:18px}

.footer{padding:14px 16px 18px;color:#fff;text-align:center}
.foot-muted{opacity:.9;font-size:12px}

.modal{position:fixed;inset:0;display:none;z-index:20}
.modal.show{display:block}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.modal-card{
  position:absolute;left:50%;top:50%;
  transform:translate(-50%,-50%);
  width:min(520px, calc(100% - 28px));
  max-height:min(82vh, 780px);
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex;flex-direction:column;
}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid rgba(0,0,0,.06)}
.modal-title{font-weight:900}
.iconbtn{
  width:34px;height:34px;border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(0,0,0,.03);
  cursor:pointer;
  font-size:18px;line-height:34px;
}
.modal-body{padding:14px;overflow:auto}
.modal-foot{padding:12px 14px;border-top:1px solid rgba(0,0,0,.06);display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.list{display:flex;flex-direction:column;gap:10px}
.item{
  border:1px solid rgba(239,68,68,.18);
  background:rgba(239,68,68,.06);
  border-radius:14px;
  padding:10px 12px;
}
.item-title{font-weight:900;color:#991b1b}
.item-sub{color:var(--muted);font-size:12px;margin-top:4px}
.btn.sm{padding:10px 12px;border-radius:14px}

.ticker{margin-top:14px}
.ticker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.ticker-title{font-weight:900;color:#991b1b}
.ticker-list{
  border:1px solid rgba(239,68,68,.14);
  border-radius:14px;
  background:rgba(239,68,68,.05);
  overflow:hidden;
  height:52px;
  position:relative;
}
.ticker-track{
  position:absolute;
  left:0; top:0;
  width:100%;
  transform:translateY(0);
  will-change:transform;
}
.tick-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px dashed rgba(239,68,68,.18);
  font-size:12px;
  width:100%;
  height:52px;
  align-items:center;
}
.tick-row:last-child{border-bottom:none}
.tick-left{color:#7f1d1d;font-weight:800}
.tick-right{color:#6b7280}
.tick-single{border-bottom:none}
