:root{
  --bg:#000;
  --fg:rgba(255,255,255,.92);
  --line:rgba(255,255,255,.16);
  --glass:rgba(12,16,30,.58);
  --shadow: 0 18px 70px rgba(0,0,0,.70);
  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
}

html.modalOpen, body.modalOpen{overflow:hidden}

.page{min-height:100svh}

.promoVideo{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  background:#000;
}

.tapPlay{
  position:fixed;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
  z-index: 11;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.30);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92);
  cursor:pointer;
}
.tapPlay[hidden]{display:none}
.tapPlay svg{width:26px;height:26px; transform: translateX(1px)}

.bottomBar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:10;
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 12px;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.58));
  backdrop-filter: blur(10px);
}

.iconBtn{
  min-width: 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
}
.iconBtn svg{width:22px;height:22px}
.iconBtn .soundWave{opacity:0}
.iconBtn .soundSlash{opacity:1}
.iconBtn.isOn{
  border-color: rgba(0,255,168,.30);
  background: rgba(0,255,168,.10);
}
.iconBtn.isOn .soundWave{opacity:1}
.iconBtn.isOn .soundSlash{opacity:0}

.btn{
  appearance:none;
  border:1px solid var(--line);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: var(--fg);
  cursor:pointer;
  font-weight:700;
  letter-spacing:.02em;
  user-select:none;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 140px;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.24)}
.btn:active{transform: translateY(0) scale(.99)}

.btnPrimary{
  border-color: rgba(107,228,255,.34);
  background: linear-gradient(135deg, rgba(107,228,255,.18), rgba(157,124,255,.20));
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.btnSoft{background: rgba(255,255,255,.08)}

.btnInline{
  display:inline-flex;
  margin-top:10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  min-width: 0;
}

/* Modal */
.modal{position:fixed; inset:0; display:none; z-index:50}
.modal.show{display:block}
.modalBackdrop{position:absolute; inset:0; background: rgba(0,0,0,.64)}

.modalPanel{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%) scale(.985);
  width:min(920px, calc(100% - 28px));
  max-height: min(78svh, 720px);
  overflow:auto;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.18);
  background: var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding: 14px;
  opacity:0;
  transition: opacity .18s ease, transform .18s ease;
}
.modal.show .modalPanel{opacity:1; transform: translate(-50%,-50%) scale(1)}

.modalClose{
  position: sticky;
  top: 10px;
  float:right;
  margin: 6px 6px 0 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  cursor:pointer;
}

.modalHint{padding: 10px 56px 10px 8px; color:rgba(255,255,255,.72); line-height:1.7}
.modalBody{padding: 0 8px 6px}
.modalFooter{
  position: sticky;
  bottom: 0;
  padding: 12px 8px calc(12px + env(safe-area-inset-bottom));
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(12,12,16,.86));
  backdrop-filter: blur(8px);
  transition: opacity .18s ease, background .18s ease, backdrop-filter .18s ease;
}

.modalPanel.isScrolling .modalFooter{
  opacity: .18;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(12,12,16,.28));
  backdrop-filter: blur(0px);
}

.advList{display:grid; gap:12px}
.adv{
  display:grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  overflow:hidden;
}
.advMedia{position:relative; min-height: 120px}
.advArt{position:absolute; inset:0; transition: opacity .18s ease}
.advMedia.hasImg .advArt{opacity:0}
.advImg{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.advContent{padding: 14px 14px 14px 0}
.advContent h3{margin:0; font-size:16px}
.advContent p{margin:8px 0 0; color:rgba(255,255,255,.72); line-height:1.7}

.art1{background: radial-gradient(260px 180px at 30% 30%, rgba(107,228,255,.26), transparent 60%),
              radial-gradient(240px 200px at 70% 60%, rgba(157,124,255,.18), transparent 62%),
              linear-gradient(135deg, rgba(255,255,255,.04), rgba(0,0,0,.0))}
.art2{background: radial-gradient(240px 200px at 30% 35%, rgba(0,255,168,.18), transparent 60%),
              radial-gradient(240px 240px at 80% 60%, rgba(107,228,255,.14), transparent 62%),
              linear-gradient(135deg, rgba(255,255,255,.04), rgba(0,0,0,.0))}
.art3{background: radial-gradient(240px 200px at 30% 35%, rgba(157,124,255,.18), transparent 60%),
              radial-gradient(240px 240px at 80% 60%, rgba(0,255,168,.12), transparent 62%),
              linear-gradient(135deg, rgba(255,255,255,.04), rgba(0,0,0,.0))}

@media (max-width: 560px){
  .adv{grid-template-columns: 1fr}
  .advContent{padding: 14px}
  .advMedia{min-height: 140px}
}

@media (max-width: 420px){
  .btn{min-width: 0; flex: 1 1 auto}
  .modalFooter{justify-content:stretch}
}

@media (prefers-reduced-motion: reduce){
  .btn,.modalPanel{transition:none !important}
}
