:root { --bg: #0f1117; --surface: #1a1d27; --border: #2a2d3a; --accent: #7c6af7; --text: #e0e0e0; --muted: #888; --radius: 10px; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Inter','PingFang SC','Microsoft YaHei',sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; padding: 40px 16px; } .container { width: 100%; max-width: 680px; } h1 { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 6px; background: linear-gradient(135deg,#a78bfa,#f472b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .subtitle { text-align: center; color: var(--muted); font-size: 0.8rem; margin-bottom: 28px; } .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; } label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; } .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } input[type="text"], input[type="password"], textarea, select { width: 100%; background: #11131a; border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 0.9rem; padding: 10px 12px; outline: none; transition: border-color 0.2s; } input:focus, textarea:focus, select:focus { border-color: var(--accent); } textarea { resize: vertical; min-height: 110px; line-height: 1.6; } select { cursor: pointer; } .btn-row { display: flex; gap: 10px; margin-top: 16px; } .btn { flex: 1; padding: 12px; border: none; border-radius: 6px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s, transform 0.1s; } .btn:active { transform: scale(0.97); } .btn:disabled { opacity: 0.45; cursor: not-allowed; } .btn-primary { background: linear-gradient(135deg,#7c6af7,#a78bfa); color: #fff; } .btn-danger { background: #2a1a1a; border: 1px solid #5a2a2a; color: #ff8080; } .btn-secondary { background: #1a1d27; border: 1px solid var(--border); color: var(--text); } .log-area { background: #0a0b10; border: 1px solid var(--border); border-radius: 6px; padding: 12px; font-family: 'Fira Code',monospace; font-size: 0.73rem; color: #9ca3af; max-height: 180px; overflow-y: auto; margin-top: 10px; line-height: 1.7; } .log-line { display: flex; gap: 8px; } .log-ts { color: #4b5563; flex-shrink: 0; } .log-info { color: #6ee7b7; } .log-warn { color: #fde68a; } .log-err { color: #f87171; } .log-audio { color: #93c5fd; } .progress-bar { height: 3px; background: var(--border); border-radius: 2px; margin-top: 12px; overflow: hidden; opacity: 0; transition: opacity 0.3s; } .progress-bar.active { opacity: 1; } .progress-fill { height: 100%; background: linear-gradient(90deg,#7c6af7,#a78bfa); width: 0%; transition: width 0.4s ease; } .status-badge { display: inline-block; font-size: 0.72rem; padding: 2px 8px; border-radius: 20px; margin-left: 8px; vertical-align: middle; } .status-idle { background:#1f2937; color:#6b7280; } .status-connecting { background:#1f2a1f; color:#86efac; } .status-playing { background:#1f1f2e; color:#a78bfa; } .status-done { background:#1a2e1a; color:#4ade80; } .status-error { background:#2e1a1a; color:#f87171; } #waveform { width:100%; height:48px; margin-top:10px; border-radius:4px; display:block; } .speed-slider { -webkit-appearance:none; width:100%; height:4px; border-radius:2px; background: var(--border); outline:none; margin:8px 0; } .speed-slider::-webkit-slider-thumb { -webkit-appearance:none; width:14px; height:14px; border-radius:50%; background:var(--accent); cursor:pointer; } .speed-val { font-size:0.78rem; color:var(--accent); float:right; } .hint { font-size:0.72rem; color:var(--muted); margin-top:6px; } .hint a { color:#a78bfa; } #nativeAudio { display: none; }