/* AdminForge Web界面样式 */

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-card: #1c2128;
    --border-color: #30363d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent-blue: #58a6ff;
    --accent-green: #3fb950;
    --accent-red: #f85149;
    --accent-yellow: #d29922;
    --accent-purple: #a371f7;
    --accent-orange: #f0883e;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    --radius: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
}

/* 应用容器 */
.app-container {
    display: flex;
    height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.version {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 10px;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* 项目信息 */
.project-info {
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    padding: 12px;
}

.no-project {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    padding: 8px 0;
}

.project-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.project-path {
    font-size: 12px;
    color: var(--text-muted);
    word-break: break-all;
}

/* 操作按钮 */
.actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon {
    font-size: 16px;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: #4c9aff;
}

.btn-success {
    background: var(--accent-green);
    color: white;
}

.btn-success:hover {
    background: #2ea043;
}

.btn-success:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 文件列表 */
.file-list {
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    padding: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
}

.file-item:hover {
    background: var(--bg-card);
}

.file-icon {
    font-size: 14px;
}

.empty-hint {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    padding: 12px;
}

/* 侧边栏底部 */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.model-info {
    font-size: 13px;
    color: var(--text-secondary);
}

.model-name {
    color: var(--accent-green);
    font-family: 'JetBrains Mono', monospace;
}

/* 主内容区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

/* 聊天容器 */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* 欢迎消息 */
.welcome-message {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
}

.welcome-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.welcome-message h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.welcome-message p {
    color: var(--text-secondary);
    font-size: 16px;
}

.quick-start {
    text-align: left;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin: 24px 0;
}

.quick-start p {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.quick-start ol {
    padding-left: 20px;
    color: var(--text-secondary);
}

.quick-start li {
    margin-bottom: 8px;
}

.example-prompts {
    margin-top: 24px;
}

.example-prompts p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.example-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius);
    margin: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.example-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-blue);
}

/* 消息样式 */
.message {
    max-width: 900px;
    margin: 0 auto 24px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.message.user .message-avatar {
    background: var(--accent-blue);
}

.message.assistant .message-avatar {
    background: var(--accent-purple);
}

.message-role {
    font-weight: 600;
    font-size: 14px;
}

.message-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-left: 44px;
}

.message.user .message-content {
    background: var(--bg-tertiary);
}

/* 工具调用样式 */
.tool-call {
    background: var(--bg-tertiary);
    border-left: 3px solid var(--accent-orange);
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 13px;
}

.tool-call-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-orange);
    font-weight: 500;
    margin-bottom: 8px;
}

.tool-call-result {
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 加载指示器 */
.loading-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    margin-left: 44px;
    padding: 12px 0;
}

.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* 输入区域 */
.input-container {
    padding: 16px 24px 24px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.input-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    transition: border-color 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--accent-blue);
}

.input-wrapper textarea {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    resize: none;
    outline: none;
    font-family: inherit;
    line-height: 1.5;
    max-height: 200px;
}

.input-wrapper textarea::placeholder {
    color: var(--text-muted);
}

.send-btn {
    background: var(--accent-blue);
    border: none;
    border-radius: var(--radius);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    flex-shrink: 0;
}

.send-btn:hover {
    background: #4c9aff;
    transform: scale(1.05);
}

.send-btn:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.input-hint {
    max-width: 900px;
    margin: 8px auto 0;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    box-shadow: var(--shadow);
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Toast通知 */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px 20px;
    box-shadow: var(--shadow);
    animation: toastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.success {
    border-color: var(--accent-green);
}

.toast.error {
    border-color: var(--accent-red);
}

.toast-icon {
    font-size: 18px;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 进度条容器 */
.progress-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 16px 0;
    border: 1px solid var(--border-color);
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.progress-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.progress-title .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress-status {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 进度条 */
.progress-bar-wrapper {
    background: var(--bg-tertiary);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 步骤列表 */
.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    font-size: 13px;
    animation: stepIn 0.3s ease;
}

@keyframes stepIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.progress-step.active {
    border-left: 3px solid var(--accent-blue);
}

.progress-step.completed {
    border-left: 3px solid var(--accent-green);
}

.progress-step.error {
    border-left: 3px solid var(--accent-red);
}

.step-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.step-icon.loading {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.step-detail {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 代码预览 */
.code-preview {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-top: 12px;
    overflow: hidden;
}

.code-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
}

.code-preview-filename {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
}

.code-preview-content {
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
}

/* 生成结果 */
.generation-result {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 16px;
    border: 1px solid var(--accent-green);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.result-icon {
    width: 40px;
    height: 40px;
    background: rgba(63, 185, 80, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
}

.result-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.result-files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.result-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.result-file:hover {
    background: var(--bg-card);
    transform: translateY(-2px);
}

.result-file-icon {
    font-size: 24px;
}

.result-file-info {
    flex: 1;
}

.result-file-name {
    font-weight: 500;
    font-size: 14px;
}

.result-file-size {
    font-size: 12px;
    color: var(--text-muted);
}

.result-actions {
    display: flex;
    gap: 12px;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px;
        z-index: 100;
        transition: left 0.3s;
    }
    
    .sidebar.open {
        left: 0;
    }
}

/* 生成完成弹窗 */
.completion-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.completion-modal.active {
    opacity: 1;
    visibility: visible;
}

.completion-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.completion-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1f2e 0%, #0d1117 100%);
    border: 1px solid var(--accent-green);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(63, 185, 80, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.completion-modal.active .completion-modal-content {
    transform: scale(1);
}

.completion-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.completion-modal-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.completion-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.completion-stats .stat-item {
    text-align: center;
}

.completion-stats .stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.completion-stats .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.completion-message {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.completion-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.completion-actions .btn {
    padding: 12px 24px;
    font-size: 15px;
}

.completion-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.completion-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* 截图进度条样式 */
.screenshot-progress {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.progress-count {
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.progress-bar-container {
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 分隔线 */
.section-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* 强调按钮 */
.btn-accent {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: white;
    border: none;
}

.btn-accent:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 大尺寸弹窗 */
.modal-lg {
    max-width: 600px;
    width: 90%;
}

/* 表单行 */
.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

/* 表单提示 */
.form-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent-blue);
}

/* 必填标记 */
.required {
    color: var(--accent-red);
}

/* 下拉框样式 */
.form-group select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* 源代码生成信息 */
.source-code-info {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.source-code-info .info-item {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 一键下载材料信息 */
.download-all-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
    padding: 16px;
    background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
    border-radius: var(--radius);
    border: 1px solid #ffe082;
}

.download-all-info .info-item {
    font-size: 0.9rem;
    color: #5d4037;
    padding: 4px 0;
}

.download-all-info .info-item strong {
    color: #e65100;
}

.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.btn-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #fb8c00 0%, #ef6c00 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* 批量生成按钮 */
.btn-batch {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
    border: none;
}

.btn-batch:hover {
    background: linear-gradient(135deg, #ab47bc 0%, #8e24aa 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.4);
}

.btn-batch:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 批量生成弹窗 */
.modal-large {
    max-width: 600px;
    width: 90%;
}

.batch-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    margin-bottom: 16px;
}

.batch-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.batch-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.upload-text {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 12px;
    color: var(--text-secondary);
}

.batch-file-preview {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.batch-file-preview .file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.batch-file-preview .file-icon {
    font-size: 24px;
}

.batch-file-preview .file-name {
    flex: 1;
    font-weight: 500;
}

.batch-file-preview .file-count {
    color: var(--primary-color);
    font-weight: 600;
}

.batch-file-preview .btn-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
}

.batch-file-preview .btn-remove:hover {
    color: #e74c3c;
}

.batch-config {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.batch-progress {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.batch-progress .progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.batch-progress .progress-stats {
    font-weight: 600;
    color: var(--primary-color);
}

.batch-progress .progress-detail {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.batch-log {
    max-height: 150px;
    overflow-y: auto;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 12px;
    padding: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
}

.batch-log .log-item {
    padding: 2px 0;
}

.batch-log .log-success {
    color: #27ae60;
}

.batch-log .log-error {
    color: #e74c3c;
}

.batch-log .log-info {
    color: var(--text-secondary);
}

.batch-template {
    text-align: center;
    padding: 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    font-size: 14px;
}

.batch-template a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.batch-template a:hover {
    text-decoration: underline;
}
