/* ============================================
   VOICE 模块样式
   从 index.html 提取
   ============================================ */
/* 引入主题变量 */
@import url('/common/frontend/styles/theme.css');

.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
}
.voice-play {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size:12px;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    padding: 2px 4px;
  }
  .voice-item:hover .voice-play { opacity: 1; }
  .voice-play:hover { color: var(--accent-start); }
  .voice-item {
    position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}
.voice-item:hover { border-color: var(--accent-start); }
.voice-item.active { outline: 2px solid var(--accent-start); border-radius:4px; }
.voice-icon { font-size: 20px; margin-bottom: 4px; }
.voice-name { font-size:12px; color: var(--text-secondary); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; }
.voice-item.active .voice-name { color: var(--text-primary); }

/* Sliders */
.voice-accordion { margin-bottom: 2px; border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; }
.voice-acc-header { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: var(--bg-tertiary); cursor: pointer; font-size:13px; font-weight: 500; transition: background 0.2s; }
.voice-acc-header:hover { background: var(--border-color); }
.voice-acc-header .acc-arrow { font-size:12px; transition: transform 0.2s; }
.voice-acc-header.open .acc-arrow { transform: rotate(180deg); }
.voice-acc-body { padding: 6px; background: var(--bg-secondary); }
.voice-acc-body .voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 4px; }
.voice-acc-body .voice-item { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--border-color); cursor: pointer; font-size:12px; transition: all 0.15s; white-space: nowrap; }
.voice-acc-body .voice-item:hover { border-color: var(--accent-start); }
.voice-acc-body .voice-item.active { border-color: var(--accent-start); background: rgba(var(--accent-rgb),0.15); }
.voice-acc-body .voice-item .voice-play { color: var(--accent-start); cursor: pointer; font-size:13px; margin-left: auto; flex-shrink: 0; }

/* Voice Collapsible (声音调节 / 情感表达) */
.voice-collapsible { border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; }
.voice-coll-header { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; background: var(--bg-tertiary); cursor: pointer; transition: background 0.2s; }
.voice-coll-header:hover { background: var(--border-color); }
.voice-coll-header .coll-arrow { font-size:12px; transition: transform 0.2s; }
.voice-coll-header.open .coll-arrow { }
.voice-coll-body { padding: 6px; background: var(--bg-secondary); max-height: 150px; overflow-y: auto; }

.voice-tabs { display: flex; gap: 4px; margin-bottom: 0; }
.voice-tab { flex: 1; text-align: center; padding: 5px 6px; font-size:12px; border-radius: 6px 6px 0 0; border: 1px solid var(--border-color); border-bottom: none; cursor: pointer; background: var(--bg-tertiary); transition: all 0.15s; }
.voice-tab:hover { border-color: var(--accent-start); }
.voice-tab.active { background: var(--accent-start); color: #fff; border-color: var(--accent-start); }
.voice-tab-content { max-height: 120px; overflow-y: auto; border: 1px solid var(--border-color); border-radius: 0 0 6px 6px; padding: 4px; background: var(--bg-secondary); }
.voice-tab-content .voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 4px; }
.voice-tab-content .voice-item { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--border-color); cursor: pointer; font-size:12px; transition: all 0.15s; white-space: nowrap; }
.voice-tab-content .voice-item:hover { border-color: var(--accent-start); }
.voice-tab-content .voice-item.active { border-color: var(--accent-start); background: rgba(var(--accent-rgb),0.15); }
.voice-tab-content .voice-item .voice-play { color: var(--accent-start); cursor: pointer; font-size:13px; margin-left: auto; flex-shrink: 0; opacity: 1; position: static; transform: none; }

/* ==================== 登录/注册弹窗样式 ==================== */

/* 用户状态栏（在topbar右侧） */