/* wavtool.css — WAV 转换工具
 * 复用 octen.css 的 CSS 变量与基础排版，只加工具自己的布局。
 */

.wt-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* ── 顶栏 ───────────────────────────────────────────────── */
.wt-head { text-align: center; margin-bottom: 2rem; }
.wt-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 .6rem; letter-spacing: -.02em; }
.wt-head p { color: var(--text-secondary); margin: 0 auto; max-width: 34rem; line-height: 1.65; font-size: .95rem; }

.wt-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: var(--accent);
  background: var(--accent-glow); border: 1px solid var(--border-hover);
  padding: .3rem .7rem; border-radius: 2rem; margin-bottom: 1rem;
}

/* ── 拖放区 ─────────────────────────────────────────────── */
.wt-drop {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), padding .25s var(--ease);
  background: var(--bg-card);
}
.wt-drop:hover, .wt-drop--over {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.wt-drop--compact { padding: 1.1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wt-drop--compact .wt-drop-icon { display: none; }
.wt-drop--compact .wt-drop-title { font-size: .92rem; margin: 0; }
.wt-drop--compact .wt-drop-sub { display: none; }

.wt-drop-icon { font-size: 2.4rem; color: var(--accent); margin-bottom: 1rem; opacity: .85; }
.wt-drop-title { font-size: 1.05rem; font-weight: 600; margin-bottom: .35rem; }
.wt-drop-sub { color: var(--text-muted); font-size: .85rem; margin-bottom: 1.25rem; }

/* ── 按钮 ───────────────────────────────────────────────── */
.wt-btn {
  font: inherit; font-size: .9rem; font-weight: 500;
  padding: .6rem 1.2rem; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-tertiary); color: var(--text-primary);
  transition: border-color .2s, background .2s, opacity .2s;
  display: inline-flex; align-items: center; gap: .45rem;
}
.wt-btn:hover:not(:disabled) { border-color: var(--border-hover); background: var(--bg-secondary); }
.wt-btn:disabled { opacity: .4; cursor: not-allowed; }
.wt-btn-primary {
  background: var(--accent); color: #001318; border-color: var(--accent); font-weight: 600;
}
.wt-btn-primary:hover:not(:disabled) { background: #4fdff5; border-color: #4fdff5; }
.wt-btn-ghost { background: transparent; border-color: transparent; color: var(--text-secondary); }
.wt-btn-ghost:hover { color: var(--accent); background: transparent; }

/* ── 面板 ───────────────────────────────────────────────── */
.wt-panel { margin-top: 1.5rem; display: grid; gap: 1.25rem; }
.wt-cols { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .wt-cols { grid-template-columns: 1fr; } }

.wt-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
}
.wt-card h2 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); margin: 0 0 1rem; font-weight: 600;
}

/* ── 键值表 ─────────────────────────────────────────────── */
.wt-dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin: 0; font-size: .9rem; }
.wt-dl dt { color: var(--text-muted); white-space: nowrap; }
.wt-dl dd { margin: 0; font-family: var(--font-mono); font-size: .86rem; color: var(--text-primary); word-break: break-all; }

/* ── 表单 ───────────────────────────────────────────────── */
.wt-field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.wt-field label { font-size: .82rem; color: var(--text-secondary); }
.wt-field select {
  font: inherit; font-size: .9rem;
  background: var(--bg-tertiary); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 8px;
  padding: .55rem .7rem; width: 100%; cursor: pointer;
}
.wt-field select:focus { outline: none; border-color: var(--accent); }

.wt-check { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .85rem; cursor: pointer; }
.wt-check input { margin-top: .28rem; accent-color: var(--accent); flex-shrink: 0; }
.wt-check-text { font-size: .88rem; }
.wt-check-hint { display: block; color: var(--text-muted); font-size: .78rem; margin-top: .15rem; line-height: 1.5; }
.wt-check input:disabled + .wt-check-text { opacity: .45; }

/* ── 操作区 ─────────────────────────────────────────────── */
.wt-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

/* ── 试听 ───────────────────────────────────────────────── */
.wt-ab { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ── 提示 ───────────────────────────────────────────────── */
.wt-note {
  border-radius: 10px; padding: .8rem 1rem; font-size: .87rem; line-height: 1.6;
  border: 1px solid var(--border);
}
.wt-note--err { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.35); color: #fca5a5; }
.wt-note--warn { background: rgba(240,160,48,.08); border-color: rgba(240,160,48,.35); color: #fcd34d; }
.wt-muted { color: var(--text-muted); font-size: .84rem; margin: .8rem 0 0; line-height: 1.6; }

/* ── 转圈 ───────────────────────────────────────────────── */
.wt-spin {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.25); border-top-color: #001318;
  animation: wt-spin .7s linear infinite;
}
@keyframes wt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wt-spin { animation-duration: 2s; } }

/* ── 播放中 ─────────────────────────────────────────────── */
body.wt-playing .wt-btn[data-playing="1"] { border-color: var(--accent); color: var(--accent); }

/* ── 底注 ───────────────────────────────────────────────── */
.wt-foot {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: .84rem; line-height: 1.7;
}
.wt-foot strong { color: var(--text-secondary); font-weight: 600; }

/* 隐藏原生 file input */
.wt-file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
