/* AI 音乐工作室 - MiniMax 风格主题 */

:root {
    /* 颜色系统 - 深色主题 */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --bg-hover: #22222e;
    --bg-input: #0f0f15;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    
    --accent-primary: #6366f1;
    --accent-hover: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.3);
    
    --border-color: #2a2a3a;
    --border-light: #3a3a4a;
    
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    
    /* 间距 */
    --sidebar-width: 240px;
    --topbar-height: 64px;
    --card-padding: 24px;
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* 应用容器 */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.logo {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--gradient-glow);
    color: var(--accent-primary);
}

.nav-icon {
    font-size: 18px;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--border-color);
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部栏 */
.top-bar {
    height: var(--topbar-height);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 50;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 登录区块 */
.login-section .btn-outline {
    border-color: #07c160;
    color: #07c160;
    background: transparent;
}
.login-section .btn-outline:hover {
    background: rgba(7, 193, 96, 0.1);
    border-color: #06a854;
    color: #06a854;
}

/* 登录弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal.active {
    display: flex;
}
.login-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    width: 380px;
    max-width: 90vw;
    position: relative;
}
.login-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.login-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}
.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}
.modal-close:hover {
    background: #eee;
}
.login-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.login-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.login-tab.active {
    color: #07c160;
    border-bottom-color: #07c160;
}
.login-form {
    display: block;
}
.login-form.hidden {
    display: none;
}
.form-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.form-tab {
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}
.form-tab.active {
    background: #07c160;
    border-color: #07c160;
    color: #fff;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus {
    border-color: #07c160;
}
.sms-code-row {
    display: flex;
    gap: 8px;
}
.sms-code-row input {
    flex: 1;
}
.btn-sms {
    padding: 10px 14px;
    border: 1px solid #07c160;
    color: #07c160;
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.btn-sms:hover {
    background: rgba(7, 193, 96, 0.1);
}
.btn-sms:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.form-error {
    color: #ff4d4f;
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 18px;
}
.btn-block {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}
.btn-primary {
    background: #07c160;
    color: #fff;
}
.btn-primary:hover {
    background: #06a854;
}
.btn-wechat {
    background: #07c160;
    color: #fff;
}
.login-tip {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: #999;
}
.login-tip a {
    color: #07c160;
    text-decoration: none;
}
.text-center {
    text-align: center;
}
.text-gray {
    color: #666;
}
.mb-4 {
    margin-bottom: 16px;
}
#resetPwdForm {
    margin-top: 12px;
}
#resetPwdLink {
    text-align: center;
}
#resetPwdLink a {
    color: #999;
    font-size: 13px;
}

/* 用户区块 */
.user-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
}

.balance-icon {
    font-size: 14px;
}

.balance-text {
    font-weight: 500;
    color: var(--text-primary);
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    display: none;
}

.nickname {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.free-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    color: var(--warning);
    font-size: 12px;
    font-weight: 600;
}

.free-icon {
    font-size: 14px;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--border-light);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-icon {
    font-size: 16px;
}

/* 创作区域 */
.create-area {
    flex: 1;
    padding: 32px;
    display: flex;
    justify-content: center;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    max-width: 400px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.empty-state h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* 创作卡片 */
.create-card {
    width: 100%;
    max-width: 720px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.project-name-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    outline: none;
    padding: 4px 0;
}

.project-name-input:focus {
    border-bottom: 2px solid var(--accent-primary);
}

.card-actions {
    display: flex;
    gap: 8px;
}

/* 步骤指示器 */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-hover);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.step.active {
    background: var(--gradient-primary);
    color: white;
}

.step.completed {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.step-num {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 11px;
}

.step {
    cursor: pointer;
    transition: all 0.2s ease;
}

.step:hover {
    opacity: 0.9;
    transform: scale(1.02);
}
}

.step-label {
    font-size: 13px;
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--border-color);
}

/* 工作流步骤 */
.workflow-step {
    padding: 0 24px 24px;
}

.step-header {
    margin-bottom: 24px;
}

.step-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-hint {
    color: var(--text-secondary);
    font-size: 13px;
}

/* 输入组 */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-group textarea,
.input-group input[type="text"] {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.input-group textarea:focus,
.input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.input-group textarea::placeholder,
.input-group input::placeholder {
    color: var(--text-muted);
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* 快速标签 */
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag-label {
    font-size: 13px;
    color: var(--text-muted);
}

.quick-tag {
    padding: 6px 14px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-tag:hover {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* 主题选择器 */
.theme-selector {
    margin-bottom: 20px;
}

.theme-selector label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.theme-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.theme-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-chip:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.theme-chip.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.theme-chip-icon {
    font-size: 14px;
}

/* 主题子选项 */
.theme-subprompts {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-left: 8px;
}

.theme-chip.active .theme-subprompts {
    display: flex;
}

.theme-subprompt {
    padding: 4px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-subprompt:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.theme-subprompt.selected {
    background: rgba(236, 72, 153, 0.1);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

/* 给谁写的歌 */
.recipient-input {
    margin-bottom: 20px;
}

.recipient-input label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.recipient-input input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.recipient-input input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.recipient-input input::placeholder {
    color: var(--text-muted);
}

/* 语言选择器 */
.language-selector {
    margin-bottom: 20px;
}

.language-selector label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.lang-options {
    display: flex;
    gap: 8px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: var(--bg-input);
    border-color: var(--border-light);
}

.lang-option.active {
    background: var(--gradient-glow);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.lang-icon {
    font-size: 16px;
}

/* 风格区块 */
.style-section {
    margin-bottom: 20px;
}

.style-section > label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.style-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.style-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.style-chip:hover {
    background: var(--bg-input);
    border-color: var(--border-light);
}

.style-chip.active {
    background: var(--gradient-glow);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.style-chip .chip-icon {
    font-size: 14px;
}

.style-chip .chip-name {
    white-space: nowrap;
}

/* 纯音乐开关 */
.pure-music-toggle {
    margin-bottom: 20px;
}

/* 人声音色类型 chips */
.vocal-type-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vocal-chip {
    cursor: pointer;
}

.vocal-chip input[type="radio"] {
    display: none;
}

.vocal-chip span {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.vocal-chip input[type="radio"]:checked + span {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.vocal-chip span:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 13px;
    transition: all 0.3s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-label input:checked + .toggle-switch {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.toggle-label input:checked + .toggle-switch::after {
    left: 24px;
    background: white;
}

.toggle-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 历史记录 */
.history-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.history-panel.active {
    display: block;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-card);
}

.history-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.history-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
}

.history-close:hover {
    color: var(--text-primary);
}

.history-list {
    padding: 16px;
}

.history-item {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.history-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.history-item-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.history-item-preview {
    margin-top: 12px;
    display: flex;
    gap: 12px;
}

.preview-thumb {
    width: 80px;
    height: 80px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.history-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.history-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* 歌词预览弹窗 */
.lyrics-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lyrics-modal.active {
    display: flex;
}

.lyrics-modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    width: 90%;
}

.lyrics-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.lyrics-modal-header h3 {
    margin: 0;
}

.lyrics-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.lyrics-content {
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* 风格网格 */
.style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.style-category label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.style-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.style-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.style-option:hover {
    background: var(--bg-input);
    border-color: var(--border-light);
}

.style-option.active {
    background: var(--gradient-glow);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.style-icon {
    font-size: 20px;
}

/* 参数行 */
.param-row {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.param-group {
    flex: 1;
}

.param-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.param-group input[type="range"] {
    width: 100%;
    height: 4px;
    background: var(--bg-hover);
    border-radius: 2px;
    appearance: none;
    cursor: pointer;
}

.param-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
}

.param-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
}

.param-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-left: 8px;
}

/* 自定义描述 */
.custom-prompt label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.custom-prompt input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
}

.custom-prompt input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* 步骤操作 */
.step-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    margin-top: 24px;
}

/* 生成状态 */
.generating-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-animation {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
}

.wave {
    width: 4px;
    height: 40px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.wave:nth-child(2) {
    animation-delay: 0.1s;
}

.wave:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes wave {
    0%, 100% {
        height: 20px;
    }
    50% {
        height: 40px;
    }
}

.generating-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.generating-hint {
    font-size: 13px;
    color: var(--text-muted);
}

/* 生成完成状态 */
.generated-state {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--success);
    font-size: 28px;
    font-weight: 700;
}

.generated-state h4 {
    font-size: 18px;
    margin-bottom: 24px;
}

.audio-player-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.audio-player-card .play-btn {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.audio-player-card .play-btn:hover {
    transform: scale(1.05);
}

.audio-player-card .play-btn span {
    font-size: 18px;
    margin-left: 4px;
}

.song-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.audio-progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar {
    position: relative;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    cursor: pointer;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--accent-primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

.progress-bar:active .progress-handle {
    cursor: grabbing;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.duration {
    font-size: 13px;
    color: var(--text-muted);
}

/* 声音克隆选项 */
.voice-clone-section {
    margin-bottom: 20px;
}

.voice-clone-section > label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.voice-clone-options {
    display: flex;
    gap: 12px;
}

.voice-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.voice-option:hover {
    border-color: var(--accent-primary);
}

.voice-option.active {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
}

.voice-option .voice-icon {
    font-size: 24px;
}

.voice-option .voice-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.clone-voice-hint {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #f59e0b;
}

/* 歌词显示 */
.lyrics-display {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-top: 16px;
    max-height: 280px;
    overflow-y: auto;
}

.lyrics-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.lyrics-content {
    line-height: 1.8;
}

.lyrics-line {
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: default;
}

.lyrics-line.active {
    color: var(--accent-primary);
    font-weight: 500;
    background: rgba(139, 92, 246, 0.1);
}

.lyrics-line.passed {
    color: var(--text-secondary);
}

.download-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* 海报信息输入行 */
.poster-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.poster-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.poster-info-item label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.poster-info-item input {
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
}

.poster-info-item input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 海报风格网格 */
.poster-style-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.poster-style-option {
    background: var(--bg-hover);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.poster-style-option:hover {
    border-color: var(--border-light);
}

.poster-style-option.active {
    border-color: var(--accent-primary);
    background: var(--gradient-glow);
}

.poster-preview {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.poster-preview.modern {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.poster-preview.vintage {
    background: linear-gradient(135deg, #3d2c29 0%, #5d4a47 50%, #8b7355 100%);
}

.poster-preview.abstract {
    background: linear-gradient(135deg, #e94560 0%, #f39189 50%, #003f88 100%);
}

.poster-preview.nature {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 50%, #95d5b2 100%);
}

.poster-style-option span {
    font-size: 12px;
    color: var(--text-secondary);
}

.poster-description textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    resize: none;
    margin-bottom: 16px;
}

.poster-description textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.generating-poster {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.poster-result {
    text-align: center;
    padding: 20px;
}

.poster-result img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

/* Toast 通知 */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: var(--success);
    color: var(--success);
}

.toast.error {
    border-color: var(--danger);
    color: var(--danger);
}

.toast.warning {
    border-color: var(--warning);
    color: var(--warning);
}

/* 隐藏 */
.hidden {
    display: none !important;
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .logo-text,
    .nav-item span {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
        padding: 12px;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .create-card {
        margin: 0 16px;
    }
    
    .style-grid {
        grid-template-columns: 1fr;
    }
    
    .poster-style-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 页面底部备案号 */
.page-footer {
    text-align: center;
    padding: 16px;
    background: rgba(10, 10, 20, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-footer .footer-text {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* 功能暂时关闭 - 导航项灰显 */
.nav-item[data-disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* 页面遮罩层 */
.page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 20, 0.85);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.page-overlay-content {
    text-align: center;
}

.page-overlay-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.page-overlay-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}
