:root {
  --bg: #0c0e12;
  --bg-2: #12151c;
  --bg-3: #181c25;
  --line: #2a3140;
  --text: #9aa3b5;
  --bright: #f3f5f9;
  --accent: #b7c9ff;
  --danger: #ff8b8b;
  --ok: #9ad7b5;
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body, #app { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--bright);
  cursor: pointer;
  border-radius: 4px;
}
.btn:hover { border-color: #3d475c; }
.btn.primary { background: #1e2a44; border-color: #3a4d73; color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: #5a3030; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { color: var(--bright); font-size: 13px; }
.field .hint { color: var(--text); font-size: 12px; }
input[type="text"], input[type="password"], input[type="number"], textarea, select {
  background: #0a0c10;
  border: 1px solid var(--line);
  color: var(--bright);
  padding: 8px 10px;
  border-radius: 4px;
  outline: none;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: #5b6d94; }

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.h1 { color: var(--bright); font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.h2 { color: var(--bright); font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.muted { color: var(--text); font-size: 13px; line-height: 1.6; }
.err { color: var(--danger); font-size: 13px; }
.ok { color: var(--ok); font-size: 13px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.steps { display: flex; gap: 8px; margin: 0 0 18px; }
.steps span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
}
.steps span.on { color: var(--bright); border-color: #5b6d94; background: #151a24; }

.thumb {
  width: 88px; height: 88px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line);
  background: #000;
}
.asset-img { width: 100%; max-width: 320px; border: 1px solid var(--line); border-radius: 4px; background: #000; }
pre.out {
  white-space: pre-wrap;
  color: var(--bright);
  background: #090b0e;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.65;
}
.check { display: flex; gap: 8px; align-items: center; color: var(--bright); }
.switch-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.topbar .brand { color: var(--bright); font-weight: 600; letter-spacing: .04em; }
.page { max-width: 1120px; margin: 0 auto; padding: 24px 20px 64px; }
.drop {
  border: 1px dashed #3a4354;
  padding: 28px;
  text-align: center;
  color: var(--text);
  background: #0a0c10;
  border-radius: 6px;
}
.drop.on { border-color: #5b6d94; background: #121826; }
.drop kbd {
  font: inherit;
  color: var(--bright);
  border: 1px solid var(--line);
  padding: 0 6px;
  border-radius: 3px;
}
.thumb-video {
  width: 88px; height: 88px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line);
  background: #000;
}
.plat-card.plat-off .plat-body { display: none; }
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bright);
  user-select: none;
}
.switch input { accent-color: #7ea0ff; width: 16px; height: 16px; }
.mic-btn.on, .btn.mic-btn.live {
  border-color: #3a6dff;
  color: #c9d8ff;
  background: #152238;
  box-shadow: 0 0 0 1px #3a6dff55;
}
.voice-box { margin-top: 14px; }
.voice-stage { position: relative; }
.voice-stage textarea, .voice-stage input {
  width: 100%;
}
.wave-hud {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  min-height: 36px;
}
.voice-stage.live .wave-hud,
.voice-stage.busy .wave-hud { display: flex; }
.wave-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
}
.wave-bars i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(#7eb6ff, #3a6dff);
  transform: scaleY(0.18);
  transform-origin: center;
  box-shadow: 0 0 8px #3a6dffaa;
}
.voice-stage.live .wave-bars i { animation: none; }
.voice-stage.busy .wave-bars i {
  animation: waveBusy 0.9s ease-in-out infinite;
}
.voice-stage.busy .wave-bars i:nth-child(2) { animation-delay: .1s; }
.voice-stage.busy .wave-bars i:nth-child(3) { animation-delay: .2s; }
.voice-stage.busy .wave-bars i:nth-child(4) { animation-delay: .3s; }
.voice-stage.busy .wave-bars i:nth-child(5) { animation-delay: .15s; }
.voice-stage.busy .wave-bars i:nth-child(6) { animation-delay: .25s; }
.voice-stage.busy .wave-bars i:nth-child(7) { animation-delay: .05s; }
.voice-stage.busy .wave-bars i:nth-child(8) { animation-delay: .18s; }
.voice-stage.busy .wave-bars i:nth-child(9) { animation-delay: .28s; }
@keyframes waveBusy {
  0%, 100% { transform: scaleY(.18); }
  50% { transform: scaleY(.95); }
}
.wave-tip { color: #9cbcff; font-size: 13px; }
.voice-stage.live textarea,
.voice-stage.live input {
  border-color: #3a6dff;
  box-shadow: 0 0 0 1px #3a6dff55;
}
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.list-item b { color: var(--bright); font-weight: 600; }
.chip { font-size: 12px; color: var(--accent); border: 1px solid #3a4a6a; padding: 2px 8px; border-radius: 99px; }

.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}
.login-card{width:380px;display:flex;flex-direction:column;gap:14px}
.login-card .btn{width:100%}
.hide{display:none!important}
nav a{margin-left:12px}

