/* ========== AI赤子网 v2.0 样式表 ========== */

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

:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --primary-light: rgba(79, 70, 229, 0.1);
    --secondary-color: #10B981;
    --accent-color: #F59E0B;
    --danger-color: #EF4444;
    --bg-dark: #0F172A;
    --bg-card: #1E293B;
    --bg-input: #334155;
    --bg-hover: #2D3B4F;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border-color: #334155;
    --border-light: #475569;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* ========== 头部 ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.logo { display: flex; align-items: center; gap: 15px; }
.logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667EEA, #764BA2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subtitle { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}
.back-link:hover { color: var(--text-primary); background: var(--bg-card); }
.version {
    color: var(--text-muted);
    font-size: 12px;
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 12px;
}

/* ========== 按钮 ========== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary-color); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-hover); }
.btn-accent { background: var(--accent-color); color: var(--bg-dark); }
.btn-accent:hover:not(:disabled) { background: #D97706; }
.btn-small { padding: 6px 12px; font-size: 12px; }
.btn-large { padding: 14px 28px; font-size: 16px; }

/* ========== 工作台 ========== */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-header h2 { font-size: 20px; }

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.module-card:hover:not(.disabled) {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.module-card.disabled { opacity: 0.5; cursor: not-allowed; }
.module-icon { font-size: 40px; width: 60px; height: 60px; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.module-info { flex: 1; }
.module-info h3 { font-size: 16px; margin-bottom: 6px; }
.module-info p { color: var(--text-secondary); font-size: 13px; margin-bottom: 10px; }
.module-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 3px 8px; border-radius: 4px; background: var(--bg-input); color: var(--text-secondary); }
.tag-primary { background: rgba(79, 70, 229, 0.2); color: #818CF8; }
.tag-secondary { background: rgba(16, 185, 129, 0.2); color: #34D399; }
.tag-accent { background: rgba(245, 158, 11, 0.2); color: #FBBF24; }
.module-arrow { font-size: 24px; color: var(--text-muted); }

/* ========== 上传区域 ========== */
.work-section { max-width: 1000px; margin: 0 auto; }
.upload-area { margin-bottom: 30px; }

.upload-zone {
    border: 2px dashed var(--border-light);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s;
    background: var(--bg-card);
    max-width: 600px;
    margin: 0 auto;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}
.upload-icon { font-size: 64px; margin-bottom: 20px; }
.upload-zone h2 { font-size: 20px; margin-bottom: 10px; }
.upload-zone p { color: var(--text-secondary); margin-bottom: 10px; }
.upload-tip { color: var(--text-muted) !important; font-size: 12px !important; }

/* ========== 设置面板 ========== */
.settings-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
}
.settings-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.settings-header h3 { font-size: 18px; }
.settings-actions { display: flex; gap: 10px; }
.settings-body { display: grid; gap: 20px; margin-bottom: 24px; }
.setting-item label { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; }
.settings-footer { text-align: center; }

.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.radio-item:hover, .radio-item.active { background: var(--bg-hover); }
.radio-item input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary-color); }

.slider-group { padding: 0 10px; }
.slider-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}
.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}
.slider-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--text-muted); }

/* ========== 进度面板 ========== */
.progress-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.progress-header h3 { font-size: 18px; }
.progress-stats { display: flex; gap: 20px; align-items: center; }
.progress-stat { background: var(--bg-input); padding: 8px 16px; border-radius: 20px; font-size: 14px; }
.progress-stat .stat-num { font-size: 20px; font-weight: 700; color: var(--primary-color); }
.progress-eta { font-size: 13px; color: var(--text-secondary); }
.progress-bar-container { margin-bottom: 15px; }
.progress-bar { height: 10px; background: var(--bg-input); border-radius: 5px; overflow: hidden; }
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s;
}
.progress-tip { color: var(--text-secondary); font-size: 14px; margin-top: 15px; }

.progress-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.preview-card {
    position: relative;
    width: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.2s;
}
.preview-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.preview-card .status-1 { border-color: var(--accent-color); }
.preview-card .status-2 { border-color: var(--secondary-color); }
.preview-card .status-3 { border-color: var(--danger-color); }
.preview-status {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    font-size: 9px;
    padding: 2px;
    text-align: center;
}

/* ========== 结果面板 ========== */
.results-panel { margin-top: 30px; }
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; }
.results-header h3 { font-size: 20px; }
.results-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.results-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
}
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 32px; font-weight: 700; color: var(--primary-color); }
.stat-item.success .stat-num { color: var(--secondary-color); }
.stat-item.failed .stat-num { color: var(--danger-color); }
.stat-label { font-size: 13px; color: var(--text-secondary); }

.results-list { display: flex; flex-direction: column; gap: 20px; }

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-input);
}
.result-title { display: flex; align-items: center; gap: 12px; }
.result-num {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}
.result-name { font-size: 14px; font-weight: 600; }
.result-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
}
.status-0 { background: rgba(100,116,139,0.2); color: #94A3B8; }
.status-1 { background: rgba(245,158,11,0.2); color: #FBBF24; }
.status-2 { background: rgba(16,185,129,0.2); color: #34D399; }
.status-3 { background: rgba(239,68,68,0.2); color: #F87171; }

.result-body { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 20px; }
@media (max-width: 700px) { .result-body { grid-template-columns: 1fr; } }
.result-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: #000; }
.result-content { display: flex; flex-direction: column; gap: 16px; }
.result-section h4 { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.result-text {
    background: var(--bg-input);
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    max-height: 120px;
    overflow-y: auto;
}
.result-prompt {
    background: var(--bg-input);
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--secondary-color);
    font-family: monospace;
    white-space: pre-wrap;
    max-height: 120px;
    overflow-y: auto;
}
.result-prompt.empty { color: var(--text-muted); font-style: italic; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ========== 提示词生成 ========== */
.prompt-gen-section { max-width: 1100px; margin: 0 auto; }
.prompt-gen-container { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
@media (max-width: 900px) { .prompt-gen-container { grid-template-columns: 1fr; } }

.prompt-input-panel, .prompt-output-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}
.prompt-input-panel h3, .prompt-output-panel h3 { font-size: 18px; margin-bottom: 20px; }
.prompt-input-panel textarea {
    width: 100%;
    height: 200px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    margin-bottom: 20px;
}
.prompt-input-panel textarea:focus { outline: none; border-color: var(--primary-color); }
.input-options { display: flex; gap: 15px; margin-bottom: 20px; }
.option-group { flex: 1; }
.option-group label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.option-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}
.input-actions { text-align: center; }
.input-actions .btn { width: 100%; justify-content: center; }

.generated-prompt {
    background: var(--bg-input);
    border-radius: 10px;
    padding: 20px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    min-height: 150px;
    color: var(--secondary-color);
}
.output-actions { display: flex; gap: 10px; margin-top: 15px; }

.prompt-library { margin-top: 30px; }
.prompt-library h3 { font-size: 18px; margin-bottom: 20px; }
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
.template-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.template-card:hover { border-color: var(--primary-color); transform: translateY(-2px); }
.template-card h4 { font-size: 15px; margin-bottom: 8px; }
.template-card p { font-size: 12px; color: var(--text-secondary); }

/* ========== 历史记录 ========== */
.history-section { max-width: 800px; margin: 0 auto; }
.history-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.history-count { font-size: 14px; color: var(--text-secondary); }
.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.history-empty .tip { font-size: 13px; margin-top: 8px; }

.history-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.history-card:hover { border-color: var(--primary-color); transform: translateX(4px); }
.history-thumb {
    width: 80px;
    height: 50px;
    background: var(--bg-input);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.history-thumb img { width: 100%; height: 100%; object-fit: cover; }
.history-info { flex: 1; }
.history-info-main { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.history-info h4 { font-size: 15px; }
.history-date { font-size: 12px; color: var(--text-muted); }
.history-meta { font-size: 13px; color: var(--text-secondary); }
.history-arrow { font-size: 24px; color: var(--text-muted); }

/* ========== 日志 ========== */
.stats-section { margin-bottom: 25px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.stat-icon { font-size: 28px; }
.stat-info { display: flex; flex-direction: column; }
.stat-info .stat-num { font-size: 24px; font-weight: 700; color: var(--primary-color); }
.stat-info .stat-label { font-size: 12px; color: var(--text-secondary); }
.stat-card.success .stat-num { color: var(--secondary-color); }
.stat-card.failed .stat-num { color: var(--danger-color); }
.stat-card.today .stat-num { color: var(--accent-color); }

.filter-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}
.filter-row { display: flex; align-items: flex-end; gap: 15px; flex-wrap: wrap; }
.filter-item { display: flex; flex-direction: column; gap: 6px; }
.filter-item label { font-size: 12px; color: var(--text-secondary); }
.filter-item select {
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    min-width: 130px;
}

.logs-section { margin-top: 20px; }
.logs-table-container { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }
.logs-table { width: 100%; border-collapse: collapse; }
.logs-table th, .logs-table td { padding: 12px 15px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border-color); }
.logs-table th { background: var(--bg-input); font-weight: 600; color: var(--text-secondary); font-size: 12px; text-transform: uppercase; }
.logs-table tr:last-child td { border-bottom: none; }
.log-row { cursor: pointer; transition: background 0.2s; }
.log-row:hover { background: var(--bg-hover); }
.log-row.log-error { background: rgba(239, 68, 68, 0.05); }

.action-tag { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; background: var(--primary-light); color: #818CF8; }
.status-success { color: var(--secondary-color); }
.status-failed { color: var(--danger-color); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 20px; }
.page-info { font-size: 13px; color: var(--text-secondary); }

/* ========== 弹窗 ========== */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal-large { max-width: 900px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border-color); }
.modal-header h3 { font-size: 18px; }
.modal-close {
    width: 32px; height: 32px;
    border: none;
    background: var(--bg-input);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover { background: var(--bg-hover); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 15px 20px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; }
.modal-date { font-size: 13px; color: var(--text-secondary); margin-bottom: 15px; }
.modal-frames { display: flex; flex-direction: column; gap: 15px; }
.modal-frame { display: flex; gap: 15px; padding: 12px; background: var(--bg-input); border-radius: 10px; }
.modal-frame img { width: 120px; height: 68px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.modal-frame-info { flex: 1; }
.modal-frame-info p { font-size: 12px; margin-bottom: 4px; color: var(--text-secondary); }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; }
.detail-item { background: var(--bg-input); padding: 12px; border-radius: 8px; }
.detail-item label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; }
.detail-item span { font-size: 13px; }
.detail-section { margin-top: 20px; }
.detail-section h4 { font-size: 14px; margin-bottom: 10px; color: var(--text-secondary); }
.detail-code {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 250px;
    overflow-y: auto;
    color: var(--text-secondary);
}
.detail-code.error { color: var(--danger-color); }

/* ========== Loading ========== */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-input);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay p { margin-top: 20px; color: var(--text-secondary); font-size: 15px; }

/* ========== Toast ========== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.toast.show { opacity: 1; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .container { padding: 15px; }
    .header { flex-direction: column; gap: 15px; text-align: center; }
    .module-grid { grid-template-columns: 1fr; }
    .filter-row { flex-direction: column; align-items: stretch; }
    .detail-grid { grid-template-columns: 1fr; }
    .results-stats { flex-wrap: wrap; justify-content: center; }
}

/* ===== 可展开分镜卡片 ===== */
.shot-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.shot-card-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.shot-card-header:hover {
    background: rgba(255,255,255,0.05);
}

.shot-images-mini {
    display: flex;
    gap: 4px;
    margin-right: 12px;
}

.shot-images-mini img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.shot-images-mini span {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.shot-info {
    flex: 1;
}

.shot-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shot-title {
    font-weight: 600;
    color: var(--text-primary);
}

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

.shot-preview-mini {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.status-pending {
    background: rgba(148, 163, 184, 0.2);
    color: #94A3B8;
}

.status-badge.status-analyzing {
    background: rgba(251, 191, 36, 0.2);
    color: #FBBF24;
}

.status-badge.status-done {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.status-badge.status-error {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #FBBF24;
    border-radius: 50%;
    margin-right: 4px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.shot-expand-icon {
    font-size: 18px;
    margin-left: 12px;
}

.shot-card-body {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: rgba(0,0,0,0.2);
}

.analysis-detail {
    margin-bottom: 16px;
}

.detail-section {
    margin-bottom: 16px;
}

.detail-section h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.detail-section pre {
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 300px;
    overflow-y: auto;
}

.analysis-text {
    color: var(--text-primary);
}

.prompt-text {
    color: #C4B5FD;
    font-size: 13px;
    line-height: 1.6;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.error-text {
    color: #F87171;
}

.detail-section.waiting {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.shot-images-full {
    margin-top: 12px;
}

.shot-images-full h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.images-grid img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.images-grid img:hover {
    transform: scale(1.05);
}

.section-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ===== 智能建议区域 ===== */
.suggestions-section {
    margin-top: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(102, 126, 234, 0.1);
}

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

.suggestions-list {
    padding: 16px 20px;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-icon {
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.suggestion-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.suggestion-good .suggestion-icon { color: #10B981; }
.suggestion-warning .suggestion-icon { color: #F59E0B; }
.suggestion-info .suggestion-icon { color: #6366F1; }
