/* 远程听棚 Link — 全站样式(深色电音 / 玻璃拟态) */
:root {
  --bg: #0b0e1a;
  --bg-2: #10142a;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef0fa;
  --text-dim: #9aa1c0;
  --text-faint: #6a7095;
  --p1: #7c5cff;   /* 紫 */
  --p2: #00e0ff;   /* 青 */
  --ok: #2fe0a0;
  --warn: #ffb84d;
  --bad: #ff5d7a;
  --grad: linear-gradient(120deg, var(--p1), var(--p2));
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
a { color: var(--p2); text-decoration: none; }

/* ---------- 通用 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-size: 15px; font-weight: 600;
  color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  user-select: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.14); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--grad); border: none; color: #0a0c18;
  box-shadow: 0 6px 24px rgba(124, 92, 255, .35);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(0, 224, 255, .35); background: var(--grad); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.btn-danger { background: rgba(255, 93, 122, .14); border: 1px solid rgba(255,93,122,.4); color: var(--bad); }
.btn-danger:hover { background: rgba(255,93,122,.25); }
.btn.on { background: var(--grad); color: #0a0c18; border: none; }

.field {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: rgba(0,0,0,.3); border: 1px solid var(--line); color: var(--text);
  font-size: 15px; outline: none; transition: border-color .15s;
}
.field:focus { border-color: var(--p1); }
.field::placeholder { color: var(--text-faint); }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); backdrop-filter: blur(14px);
}

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px;
  background: rgba(47,224,160,.12); color: var(--ok); border: 1px solid rgba(47,224,160,.25);
}
.tag.relay { background: rgba(255,184,77,.12); color: var(--warn); border-color: rgba(255,184,77,.3); }
.tag.share { background: rgba(0,224,255,.1); color: var(--p2); border-color: rgba(0,224,255,.3); }
.tag.rec { background: rgba(255,93,122,.12); color: var(--bad); border-color: rgba(255,93,122,.3); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Toast */
#toasts {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 999; pointer-events: none;
}
.toast {
  padding: 10px 18px; border-radius: 12px; font-size: 14px;
  background: rgba(16, 20, 42, .92); border: 1px solid var(--line);
  box-shadow: var(--shadow); animation: toastIn .25s ease;
}
.toast.err { border-color: rgba(255,93,122,.5); color: var(--bad); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ============ 落地页 ============ */
.landing { min-height: 100vh; background:
  radial-gradient(900px 500px at 80% -10%, rgba(124,92,255,.22), transparent 60%),
  radial-gradient(700px 420px at 10% 15%, rgba(0,224,255,.13), transparent 60%),
  var(--bg);
}
.lnav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 20px 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #0a0c18; font-size: 17px;
  box-shadow: 0 4px 18px rgba(124,92,255,.4);
}
.lnav .links { display: flex; gap: 26px; font-size: 14.5px; color: var(--text-dim); }
.lnav .links a { color: var(--text-dim); }
.lnav .links a:hover { color: var(--text); }

.hero {
  max-width: 1120px; margin: 0 auto; padding: 64px 24px 40px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: 46px; line-height: 1.18; font-weight: 800; letter-spacing: .5px; }
.hero h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { margin: 18px 0 30px; font-size: 17px; color: var(--text-dim); line-height: 1.8; max-width: 460px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 13px; color: var(--text-faint); }

/* 房间演示卡片 */
.demo { padding: 22px; box-shadow: var(--shadow); }
.demo .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.demo .head .t { font-weight: 700; font-size: 16px; }
.demo .head .s { font-size: 12.5px; color: var(--text-dim); }
.demo .seats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dseat {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; border-radius: 14px; background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.dseat.empty { border-style: dashed; color: var(--text-faint); }
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; font-weight: 700; color: #0a0c18;
  position: relative;
}
.avatar.talk { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--ok); }
.dseat .nm { font-size: 13px; }
.dseat .st { font-size: 11px; color: var(--text-faint); display: flex; gap: 6px; align-items: center; }

.section { max-width: 1120px; margin: 0 auto; padding: 70px 24px; }
.section h2 { font-size: 30px; font-weight: 800; text-align: center; }
.section .desc { text-align: center; color: var(--text-dim); margin-top: 12px; font-size: 15px; }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.feat { padding: 26px 22px; transition: transform .2s, background .2s; }
.feat:hover { transform: translateY(-4px); background: var(--panel-2); }
.feat .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 22px; background: rgba(124,92,255,.16); margin-bottom: 16px;
}
.feat h3 { font-size: 17px; margin-bottom: 8px; }
.feat p { font-size: 13.5px; color: var(--text-dim); line-height: 1.75; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.tier { padding: 30px 26px; text-align: center; position: relative; }
.tier.hot { border-color: rgba(124,92,255,.55); box-shadow: 0 0 40px rgba(124,92,255,.18); }
.tier .badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 3px 14px; border-radius: 999px; font-size: 12px;
  background: var(--grad); color: #0a0c18; font-weight: 700;
}
.tier h3 { font-size: 16px; color: var(--text-dim); font-weight: 600; }
.tier .kb { font-size: 34px; font-weight: 800; margin: 12px 0 6px; }
.tier .kb small { font-size: 14px; color: var(--text-dim); font-weight: 400; }
.tier p { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

.guide { margin-top: 44px; padding: 30px; }
.guide h3 { text-align: center; font-size: 18px; margin-bottom: 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { text-align: center; padding: 10px; }
.step .n {
  width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--grad); color: #0a0c18; font-weight: 800; font-size: 17px;
  display: grid; place-items: center;
}
.step h4 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

footer {
  border-top: 1px solid var(--line); padding: 28px 24px; text-align: center;
  color: var(--text-faint); font-size: 13px; line-height: 2;
}

/* ============ 房间页 ============ */
.entry-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(124,92,255,.2), transparent 60%),
    radial-gradient(700px 420px at 10% 110%, rgba(0,224,255,.12), transparent 60%),
    var(--bg);
}
.entry { width: min(460px, 94vw); padding: 36px 32px; box-shadow: var(--shadow); }
.entry .logo { margin-bottom: 8px; }
.entry h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.entry .sub { color: var(--text-dim); font-size: 14px; margin-bottom: 26px; }
.entry label { display: block; font-size: 13px; color: var(--text-dim); margin: 16px 0 8px; }
.entry .row { display: flex; gap: 10px; }
.entry .row .field { flex: 1; }
.seg { display: flex; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button {
  flex: 1; padding: 9px 6px; border-radius: 9px; font-size: 13.5px; color: var(--text-dim);
  transition: all .15s;
}
.seg button.on { background: var(--grad); color: #0a0c18; font-weight: 700; }
.seg button:disabled { opacity: .35; cursor: not-allowed; }
.seg button:disabled.on { opacity: .35; background: var(--panel-2); color: var(--text-dim); font-weight: 400; }
.entry .go { width: 100%; margin-top: 26px; padding: 14px; font-size: 16px; }
.entry .tip { margin-top: 14px; font-size: 12px; color: var(--text-faint); text-align: center; line-height: 1.7; }

.room-app { height: 100vh; display: flex; flex-direction: column; background:
  radial-gradient(1000px 500px at 85% -20%, rgba(124,92,255,.14), transparent 60%),
  radial-gradient(800px 400px at 0% 120%, rgba(0,224,255,.08), transparent 60%),
  var(--bg);
}
.rtop {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgba(11,14,26,.7);
  backdrop-filter: blur(10px); flex-shrink: 0;
}
.rtop .logo .mark { width: 30px; height: 30px; font-size: 15px; border-radius: 8px; }
.room-chip {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px;
  border-radius: 11px; background: var(--panel); border: 1px solid var(--line); font-size: 14px;
}
.room-chip b { letter-spacing: 2px; font-size: 15px; }
.room-chip button {
  padding: 4px 10px; border-radius: 8px; font-size: 12px; background: var(--panel-2);
  color: var(--text-dim);
}
.room-chip button:hover { color: var(--text); }
.rtop .spacer { flex: 1; }
.rtop .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.rmain { flex: 1; display: grid; grid-template-columns: 1fr 320px; min-height: 0; }

/* 舞台区 */
.stage { display: flex; flex-direction: column; min-width: 0; padding: 18px; gap: 16px; overflow: auto; }
.screen-area { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.screen-area video { width: 100%; max-height: 52vh; display: block; object-fit: contain; background: #000; }
.screen-area .bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: 13px;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff;
}
.screen-area .bar button { margin-left: auto; padding: 5px 12px; border-radius: 8px; background: rgba(255,255,255,.16); color: #fff; font-size: 12px; }
.screen-area .bar button:hover { background: rgba(255,255,255,.3); }

.seat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-content: start;
}
.seat {
  padding: 18px 12px 14px; border-radius: var(--radius); text-align: center;
  background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-height: 168px; position: relative; transition: border-color .2s;
}
.seat.empty { border-style: dashed; background: transparent; color: var(--text-faint); justify-content: center; cursor: default; }
.seat.empty.clickable { cursor: pointer; }
.seat.empty.clickable:hover { border-color: var(--p1); color: var(--text-dim); }
.seat.empty .plus { font-size: 22px; opacity: .7; }
.seat.empty .lbl { font-size: 12.5px; }
.seat .avatar { width: 56px; height: 56px; font-size: 21px; }
.seat .avatar.small { width: 46px; height: 46px; font-size: 18px; }
.seat .nm { font-size: 14px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .nm .you { font-size: 11px; color: var(--p2); margin-left: 4px; }
.seat .badges { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; min-height: 18px; }
.seat .mic-badge { font-size: 13px; }
.seat .mic-badge.off { color: var(--bad); }

.vol-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 2px 6px 0; }
.vol-row svg { flex-shrink: 0; opacity: .6; }
.vol-row input[type=range] { flex: 1; min-width: 0; }

/* 侧栏 */
.side {
  border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0;
  background: rgba(11,14,26,.5);
}
.side .tabs { display: flex; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.side .tabs button {
  flex: 1; padding: 13px; font-size: 14px; color: var(--text-dim); border-bottom: 2px solid transparent;
}
.side .tabs button.on { color: var(--text); border-bottom-color: var(--p1); font-weight: 700; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { font-size: 13.5px; line-height: 1.65; word-break: break-word; }
.msg .who { font-weight: 700; margin-right: 6px; }
.msg.sys { color: var(--text-faint); font-size: 12.5px; text-align: center; }
.msg .time { color: var(--text-faint); font-size: 11px; margin-left: 6px; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); flex-shrink: 0; }
.chat-input input { flex: 1; min-width: 0; }
.chat-input button { padding: 0 16px; border-radius: 12px; background: var(--grad); color: #0a0c18; font-weight: 700; font-size: 14px; }

.member-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.member-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; background: var(--panel); border: 1px solid var(--line);
}
.member-row .avatar { width: 34px; height: 34px; font-size: 14px; }
.member-row .info { flex: 1; min-width: 0; }
.member-row .info .n { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-row .info .d { font-size: 11px; color: var(--text-faint); display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.member-row .vol-mini { width: 90px; }

/* 底部控制条 */
.rctrl {
  display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap;
  padding: 12px 18px; border-top: 1px solid var(--line); flex-shrink: 0;
  background: rgba(11,14,26,.7); backdrop-filter: blur(10px);
}
.ctrl {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 8px 16px; border-radius: 13px; font-size: 12px; color: var(--text-dim);
  transition: all .15s; min-width: 74px;
}
.ctrl:hover { background: var(--panel-2); color: var(--text); }
.ctrl .ic {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line); font-size: 18px;
}
.ctrl.on .ic { background: var(--grad); color: #0a0c18; border: none; box-shadow: 0 4px 16px rgba(124,92,255,.35); }
.ctrl.danger .ic { background: rgba(255,93,122,.15); border-color: rgba(255,93,122,.4); color: var(--bad); }
.ctrl.rec.on .ic { background: var(--bad); color: #fff; border: none; animation: recPulse 1.6s infinite; }
@keyframes recPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,93,122,.5); }
  50% { box-shadow: 0 0 0 9px rgba(255,93,122,0); }
}
.master-vol { display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.master-vol input { width: 110px; }

/* 滑块 */
input[type=range] {
  -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.18); outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: var(--p2); cursor: pointer; box-shadow: 0 0 8px rgba(0,224,255,.6);
}
input[type=range]::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%; background: var(--p2); border: none; cursor: pointer;
}

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(5,7,15,.7); backdrop-filter: blur(4px);
  display: grid; place-items: center; z-index: 100;
}
.modal { width: min(430px, 92vw); padding: 28px; box-shadow: var(--shadow); }
.modal h3 { font-size: 18px; margin-bottom: 20px; }
.modal label { display: block; font-size: 13px; color: var(--text-dim); margin: 16px 0 8px; }
.modal .foot { display: flex; gap: 10px; margin-top: 26px; }
.modal .foot .btn { flex: 1; }
.modal .hint { font-size: 12px; color: var(--text-faint); line-height: 1.7; margin-top: 8px; }

/* 断线横幅 */
.conn-banner {
  display: none; align-items: center; justify-content: center; gap: 10px;
  padding: 8px; font-size: 13px; color: var(--warn);
  background: rgba(255,184,77,.1); border-bottom: 1px solid rgba(255,184,77,.25);
}
.conn-banner.show { display: flex; }
.spin {
  width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255,184,77,.3);
  border-top-color: var(--warn); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 响应式 */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .hero h1 { font-size: 34px; }
  .feats, .tiers, .steps { grid-template-columns: 1fr; }
  .rmain { grid-template-columns: 1fr; }
  .side { border-left: none; border-top: 1px solid var(--line); max-height: 40vh; }
  .seat-grid { grid-template-columns: repeat(2, 1fr); }
  .lnav .links { display: none; }
}
