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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    font-size: 14px;
}

.container {
    max-width: 100%;
    min-height: calc(100vh - 30px);
    margin: 0 auto;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* 主布局 - 左右分栏 */
.main-layout {
    display: flex;
    gap: 15px;
    flex: 1;
    overflow: visible;
    margin-top: 10px;
    min-height: 0;
}

/* 左侧边栏 */
.left-sidebar {
    width: 280px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 8px;
    max-height: calc(100vh - 200px);
}

/* 右侧主内容区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
    min-height: 0;
}

h1 {
    text-align: center;
    color: #667eea;
    font-size: 1.8em;
    margin: 0 0 10px 0;
    flex-shrink: 0;
}

/* ==================== 标签页切换 ==================== */
.tab-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 0 15px;
}

.tab-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px 6px 0 0;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #e5e7eb;
    color: #6b7280;
}

.tab-btn:hover {
    background: #d1d5db;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.tab-content {
    display: none;
}

.tab-content[data-tab-content="dress"] {
    display: block;
}

/* ==================== 公告栏 ==================== */
.announcement-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 0;
    margin-bottom: 5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    overflow: hidden;
}

.announcement-header {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 15px;
    font-weight: bold;
    color: white;
    font-size: 1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.announcement-content {
    padding: 12px 15px;
    color: white;
}

.announcement-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #fef3c7;
}

.announcement-item {
    margin-bottom: 6px;
    font-size: 0.9em;
    line-height: 1.5;
    padding-left: 8px;
    opacity: 0.95;
}

.announcement-item:last-child {
    margin-bottom: 0;
}

/* ==================== 工具栏 ==================== */
.toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 按钮组 - 同一行显示多个按钮 */
.btn-group-inline {
    display: flex;
    gap: 8px;
    width: 100%;
}

.btn-group-inline .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.9em;
}

/* 批量下载包装器和二级菜单 */
.batch-download-wrapper {
    position: relative;
}

.batch-download-menu {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 1000;
    margin-top: 5px;
}

.download-menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

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

.download-menu-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover:not(:disabled) {
    background: #f0f0ff;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
}

.btn-info {
    background: #3b82f6;
    color: white;
}

.btn-info:hover:not(:disabled) {
    background: #2563eb;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background: #d97706;
}

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

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

.btn-loading {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* ==================== 压缩设置 ==================== */
.compression-settings {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f0fdf4;
    border: 2px solid #22c55e;
    border-radius: 10px;
}

.compression-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
}

.compression-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.compression-toggle span {
    user-select: none;
}

.compression-info {
    color: #666;
    font-size: 0.9em;
    padding: 5px 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #d4d4d4;
}

/* ==================== AI辅助设置 ==================== */
.ai-assist-settings {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    padding: 15px;
    background: #ede9fe;
    border: 2px solid #8b5cf6;
    border-radius: 10px;
}

.ai-assist-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
}

.ai-assist-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #8b5cf6;
}

.ai-assist-toggle span {
    user-select: none;
}

.ai-assist-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-assist-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9em;
}

.ai-assist-controls input[type="number"] {
    width: 60px;
    padding: 5px 8px;
    border: 2px solid #d4d4d4;
    border-radius: 6px;
    font-size: 1em;
    text-align: center;
}

.ai-assist-controls input[type="number"]:focus {
    outline: none;
    border-color: #8b5cf6;
}

.ai-assist-info {
    color: #666;
    font-size: 0.85em;
    padding: 5px 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #d4d4d4;
}

/* ==================== 模型选择 ==================== */
.model-selector {
    display: none;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #fff7ed;
    border: 2px solid #fb923c;
    border-radius: 10px;
}

.model-selector label {
    font-weight: bold;
    color: #666;
}

.model-selector strong {
    color: #ea580c;
}

.model-selector select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.95em;
    min-width: 250px;
}

.model-selector select:focus {
    outline: none;
    border-color: #fb923c;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9em;
}

/* ==================== 存储信息 ==================== */
.storage-info {
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #f0f9ff;
    border-radius: 8px;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

.storage-warning {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.storage-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-weight: bold;
}

/* ==================== 统一控制栏 ==================== */
.unified-control-bar,
.material-control-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.ps-service-group {
    flex: 0 0 auto;
}

.ai-group {
    flex: 0 0 auto;
}

.concurrent-group {
    flex: 0 0 auto;
}

.zoom-group {
    flex: 0 0 auto;
    max-width: 280px;
}

/* PS服务器组样式 */
.ps-service-group .status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ps-service-group .status-text {
    font-weight: 600;
    font-size: 0.85em;
    white-space: nowrap;
}

.ps-service-group .btn-start-server {
    padding: 5px 10px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8em;
    white-space: nowrap;
}

.ps-service-group .btn-start-server:hover {
    background: #059669;
}

/* AI组样式 */
.ai-group .ai-assist-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    font-size: 0.85em;
    white-space: nowrap;
}

.ai-group .ai-assist-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.ai-group .iterations-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: #555;
    font-size: 0.85em;
    white-space: nowrap;
}

.ai-group input[type="number"] {
    width: 45px;
    padding: 3px 6px;
    border: 1px solid #667eea;
    border-radius: 4px;
    font-size: 0.85em;
    text-align: center;
}

/* 并发数组样式 */
.concurrent-group label {
    font-weight: 600;
    color: #555;
    font-size: 0.85em;
    white-space: nowrap;
}

.concurrent-group input[type="number"] {
    width: 45px;
    padding: 3px 6px;
    border: 1px solid #10b981;
    border-radius: 4px;
    font-size: 0.85em;
    text-align: center;
}

/* 批量提示词按钮 */
.btn-batch-prompt {
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85em;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 10px;
}

.btn-batch-prompt:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* 配置按钮（内联版） */
.btn-config-inline {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85em;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 10px;
}

.btn-config-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ==================== 自定义右键菜单 ==================== */
.context-menu {
    position: fixed;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 150px;
    padding: 4px 0;
    user-select: none;
}

.context-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9em;
    color: #333;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.context-menu-item:hover {
    background: #667eea;
    color: white;
}

.context-menu-item:active {
    background: #5568d3;
}

/* ==================== 进度条 ==================== */
.progress-bar {
    margin-bottom: 10px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 35px;
    flex-shrink: 0;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    z-index: 2;
    color: #333;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    width: 0%;
}

/* ==================== 表格缩放控制（紧凑版） ==================== */
.zoom-group label {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    font-size: 0.9em;
}

.zoom-group input[type="range"] {
    width: 120px;
    height: 4px;
    border-radius: 2px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.zoom-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zoom-group input[type="range"]::-webkit-slider-thumb:hover {
    background: #764ba2;
    transform: scale(1.2);
}

.zoom-group input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.zoom-group input[type="range"]::-moz-range-thumb:hover {
    background: #764ba2;
    transform: scale(1.2);
}

#tableZoomValue {
    font-weight: bold;
    color: #667eea;
    min-width: 45px;
    text-align: center;
    font-size: 0.9em;
}

.btn-zoom-reset {
    padding: 4px 8px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.2s ease;
}

.btn-zoom-reset:hover {
    background: #764ba2;
    transform: scale(1.1);
}

/* ==================== 表格 ==================== */
.table-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 300px;
    max-height: calc(100vh - 350px);
}

/* 表头导入按钮 */
.btn-import-header {
    margin-left: 8px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.btn-import-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.btn-import-header:active {
    transform: translateY(0);
}

/* 表头删除按钮 */
.btn-delete-header {
    margin-left: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(245, 87, 108, 0.3);
}

.btn-delete-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.5);
    background: linear-gradient(135deg, #ff6b9d 0%, #c92a2a 100%);
}

.btn-delete-header:active {
    transform: translateY(0);
}

/* 表头复制按钮 */
.btn-copy-header {
    margin-left: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(79, 172, 254, 0.3);
}

.btn-copy-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.5);
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.btn-copy-header:active {
    transform: translateY(0);
}

/* 图片单元格内的复制按钮 */
.btn-copy-to-dress {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.image-preview-cell:hover .btn-copy-to-dress {
    opacity: 1;
}

.btn-copy-to-dress:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.btn-copy-to-dress:active {
    transform: scale(0.95);
}

.image-preview-cell {
    position: relative;
}

.main-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1800px;
}

.main-table thead {
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.main-table th {
    padding: 15px 10px;
    text-align: center;
    font-weight: bold;
    color: #555;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
}

.main-table td {
    padding: 10px;
    border: 1px solid #dee2e6;
    vertical-align: middle;
}

.main-table tbody tr:hover {
    background: #f8f9fa;
}

/* 列宽 */
.col-checkbox {
    width: 50px;
    text-align: center;
}

.col-number {
    width: 80px;
    text-align: center;
    font-weight: bold;
}

.col-action {
    width: 100px;
    text-align: center;
}

.col-image {
    width: 200px;
    text-align: center;
}

.col-prompt {
    width: 300px;
}

.col-result {
    width: 180px;
    text-align: center;
    min-width: 150px;
}

.col-analysis {
    width: 100px;
    text-align: center;
}

/* 素材处理特有列 */
.col-status {
    width: 100px;
    text-align: center;
}

.col-progress {
    width: 120px;
    text-align: center;
}

.col-details {
    width: 200px;
    font-size: 0.85em;
}

.col-actions {
    width: 100px;
    text-align: center;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-waiting {
    background: #e5e7eb;
    color: #6b7280;
}

.status-uploading {
    background: #dbeafe;
    color: #1e40af;
}

.status-running {
    background: #fed7aa;
    color: #c2410c;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-failed {
    background: #fecaca;
    color: #dc2626;
}

/* 进度条 */
.progress-container {
    width: 100%;
    height: 20px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75em;
    font-weight: 600;
    color: #374151;
}

/* 详情信息文本 */
.details-text {
    font-size: 0.85em;
    color: #6b7280;
    line-height: 1.4;
    max-height: 60px;
    overflow-y: auto;
}

.details-error {
    color: #dc2626;
}

/* 素材处理图片预览 */
#materialTableBody .image-preview-container {
    position: relative;
    width: 150px;
    margin: 5px auto;
}

#materialTableBody .image-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

#materialTableBody .image-preview:hover {
    transform: scale(1.05);
}

#materialTableBody .result-image-container {
    width: 150px;
    margin: 5px auto;
}

#materialTableBody .result-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

#materialTableBody .result-image:hover {
    transform: scale(1.05);
}

/* 素材处理分行显示 */
.material-status-container,
.material-progress-container,
.material-details-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.material-status-row,
.material-progress-row,
.material-details-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.material-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.85em;
    min-width: 35px;
}

/* 迷你进度条 */
.progress-mini-container {
    position: relative;
    width: 80px;
    height: 16px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.progress-mini-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.progress-mini-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7em;
    font-weight: 600;
    color: #374151;
}

.material-details-row .details-text {
    font-size: 0.85em;
    line-height: 1.3;
    max-height: none;
    overflow: visible;
}

/* 结果图预览网格 */
.preview-modal-content {
    max-width: 95vw;
    max-height: 95vh;
    width: 95%;
    background: white;
    border-radius: 16px;
    padding: 30px;
    overflow-y: auto;
}

.preview-modal-content h2 {
    text-align: center;
    color: #667eea;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px;
}

.preview-item {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.preview-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.preview-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
}

.preview-item-label {
    font-size: 0.9em;
    color: #667eea;
}

.preview-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.preview-image-wrapper {
    position: relative;
}

.preview-image-title {
    font-size: 0.75em;
    color: #6b7280;
    margin-bottom: 5px;
    text-align: center;
}

.preview-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.preview-image.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 0.85em;
}

.preview-item-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.preview-download-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: #667eea;
    color: white;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.preview-download-btn:hover {
    background: #5568d3;
    transform: scale(1.05);
}

/* 批量重命名模态框 */
.rename-modal-content {
    max-width: 600px;
    max-height: 90vh;
    width: 90%;
    background: white;
    border-radius: 16px;
    padding: 30px;
    overflow-y: auto;
}

.rename-modal-content h2 {
    text-align: center;
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.rename-section {
    margin-bottom: 25px;
}

.rename-section h3 {
    color: #374151;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.rename-rule {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.rename-rule label {
    min-width: 100px;
    font-weight: 600;
    color: #374151;
}

.rename-rule input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.95em;
}

.rename-rule input:focus {
    outline: none;
    border-color: #667eea;
}

.rename-preview {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.rename-preview h3 {
    color: #374151;
    font-size: 1em;
    margin-bottom: 10px;
}

#renamePreviewList {
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.8;
}

.rename-preview-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #e5e7eb;
}

.rename-preview-old {
    color: #9ca3af;
    text-decoration: line-through;
}

.rename-preview-arrow {
    color: #667eea;
    margin: 0 10px;
}

.rename-preview-new {
    color: #059669;
    font-weight: 600;
}

.rename-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.2em;
}

/* ==================== 图片单元格 ==================== */
.image-upload-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
}

.upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 2px dashed #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
    color: #999;
    font-size: 0.9em;
}

.upload-label:hover {
    border-color: #667eea;
    background: #f0f0ff;
    color: #667eea;
}

.image-preview-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.thumbnail {
    max-width: 180px;
    max-height: 120px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* 性能优化 */
    will-change: transform;
    backface-visibility: hidden;
}

.thumbnail:hover {
    transform: scale(1.05) translateZ(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.image-name {
    font-size: 0.8em;
    color: #666;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-remove-image {
    position: absolute;
    top: -8px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease;
}

.btn-remove-image:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* ==================== 提示词输入 ==================== */
.prompt-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.95em;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.prompt-input:focus {
    outline: none;
    border-color: #667eea;
}

/* ==================== 结果单元格 ==================== */
.result-idle {
    color: #999;
    font-size: 0.9em;
}

.result-loading {
    color: #3b82f6;
    font-weight: bold;
    animation: pulse 1.5s ease-in-out infinite;
}

.result-error {
    color: #ef4444;
    font-size: 0.85em;
}

.result-error small {
    display: block;
    margin-top: 5px;
    color: #999;
}

.result-time {
    font-size: 0.75em;
    color: #999;
}

.btn-download {
    margin-top: 5px;
    padding: 6px 12px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.btn-download:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* ==================== 行操作按钮 ==================== */
.btn-small {
    padding: 6px 10px;
    margin: 2px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.btn-run {
    background: #10b981;
    color: white;
}

.btn-run:hover {
    background: #059669;
    transform: scale(1.05);
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
    transform: scale(1.05);
}

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

.btn-danger:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.btn-cancel-row {
    background: #f59e0b;
    color: white;
    font-weight: 500;
}

.btn-cancel-row:hover {
    background: #d97706;
    transform: scale(1.05);
}

/* ==================== 模态框 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    pointer-events: none;
    background: transparent;
}

.modal-content > * {
    pointer-events: auto;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: #dc2626;
    transform: scale(1.1);
}

#modalImage {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    cursor: default;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    display: block;
    position: relative;
    z-index: 1;
    /* 性能优化 */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.modal-info {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.95em;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 10000;
}

/* ==================== 提示信息 ==================== */
.info-section {
    padding: 12px 15px;
    background: #e6f7ff;
    border: 2px solid #1890ff;
    border-radius: 8px;
    color: #0050b3;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-line;
    max-height: 300px;
    overflow-y: auto;
    word-break: break-word;
}

.error-section {
    padding: 12px 15px;
    background: #ffe6e6;
    border: 2px solid #ff4444;
    border-radius: 8px;
    color: #cc0000;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-line;
    max-height: 300px;
    overflow-y: auto;
    word-break: break-word;
}

/* ==================== 结果图状态按钮 ==================== */
.result-status-buttons {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    justify-content: center;
}

.status-btn {
    flex: 1;
    padding: 4px 8px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f5f5f5;
    color: #999;
}

.status-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.status-btn.status-completed {
    border-color: #e0e0e0;
}

.status-btn.status-completed.active {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    border-color: #4caf50;
}

.status-btn.status-modified {
    border-color: #e0e0e0;
}

.status-btn.status-modified.active {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    color: white;
    border-color: #ff9800;
}

.status-btn.status-rejected {
    border-color: #e0e0e0;
}

.status-btn.status-rejected.active {
    background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
    color: white;
    border-color: #f44336;
}

/* 模态框中的状态按钮 */
.modal-status-buttons {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 15px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    z-index: 10000;
}

.modal-status-buttons .status-btn {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 10px 20px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.shortcut-hint {
    opacity: 0.7;
    font-size: 12px;
    font-weight: normal;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1400px) {
    .container {
        padding: 20px;
    }
    
    .main-table {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    .toolbar {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .table-wrapper {
        overflow-x: scroll;
    }
}

/* ==================== 复选框美化 ==================== */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

/* ==================== 提示词悬停显示 ==================== */
.result-with-prompt {
    position: relative;
}

.prompt-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    max-width: 500px;
    min-width: 200px;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.5;
    max-height: 200px;
    overflow-y: auto;
}

.prompt-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.prompt-tooltip div {
    margin: 0;
    text-align: left;
}

/* ==================== 行内提示词输入框 ==================== */
.prompt-input-inline {
    width: 100%;
    padding: 8px;
    border: 2px solid #d4d4d4;
    border-radius: 6px;
    font-size: 0.9em;
    margin-top: 5px;
}

.prompt-input-inline:focus {
    outline: none;
    border-color: #667eea;
}

/* ==================== 状态单元格 ==================== */
.status-cell {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.85em;
    text-align: center;
    margin: 5px 0;
    font-weight: 500;
}

.status-idle {
    background: #f3f4f6;
    color: #6b7280;
}

.status-generating {
    background: #dbeafe;
    color: #1e40af;
}

.status-analyzing {
    background: #fef3c7;
    color: #92400e;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-max_iterations {
    background: #fed7aa;
    color: #9a3412;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
}

/* ==================== 模态框样式 ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

/* 分析模态框的内容样式 */
#analysisModal .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 1;
}

.analysis-modal-content {
    max-width: 1000px;
    max-height: 85vh;
    width: 95%;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ef4444;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.analysis-modal-content h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.5em;
}

.analysis-history-container {
    max-height: 60vh;
    overflow-y: auto;
}

/* 批量提示词模态框 */
.batch-prompt-modal-content {
    max-width: 700px;
    width: 90%;
    padding: 30px;
}

.batch-prompt-modal-content h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.5em;
}

.modal-description {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

.batch-prompt-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.95em;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.batch-prompt-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.modal-actions .btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-actions .btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.modal-actions .btn-secondary:hover {
    background: #d1d5db;
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.modal-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.analysis-record {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.analysis-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d1d5db;
}

.analysis-iteration {
    font-weight: 700;
    font-size: 1.1em;
    color: #8b5cf6;
}

.analysis-timestamp {
    font-size: 0.85em;
    color: #6b7280;
}

.analysis-text {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    font-size: 0.95em;
}

.analysis-prompts {
    background: #ede9fe;
    padding: 15px;
    border-radius: 8px;
}

.analysis-prompts div {
    margin: 8px 0;
}

.analysis-prompts strong {
    color: #7c3aed;
}

/* ==================== 分析历史详细样式 ==================== */
.analysis-section {
    margin: 20px 0;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.analysis-section-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ede9fe;
}

.analysis-sent-info {
    margin: 10px 0;
}

.analysis-mode-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
}

.mode-first {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.mode-followup {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.analysis-sent-prompt {
    margin: 15px 0;
}

.prompt-used {
    background: #f9fafb;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    margin-top: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    color: #374151;
    line-height: 1.6;
}

.analysis-template-details {
    margin-top: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.analysis-template-details summary {
    padding: 10px 15px;
    background: #f9fafb;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
    user-select: none;
    transition: background 0.2s;
}

.analysis-template-details summary:hover {
    background: #f3f4f6;
}

.analysis-template-details[open] summary {
    background: #ede9fe;
    color: #667eea;
}

.template-content {
    padding: 15px;
    background: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.8;
    color: #374151;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

.prompt-item {
    margin: 12px 0;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 4px solid #10b981;
}

.prompt-value {
    margin-top: 8px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.6;
    color: #1f2937;
}

.analysis-complete {
    text-align: center;
    padding: 20px;
    background: #d1fae5;
    color: #065f46;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 8px;
    border: 2px solid #6ee7b7;
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ==================== 配置模态框样式 ==================== */
/* 配置样式统一定义在文件后面 */

.config-hint {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.9em;
    background: #fef3c7;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid #f59e0b;
}

.config-hint code {
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #dc2626;
    font-weight: 600;
}

.config-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #d4d4d4;
    border-radius: 8px;
    font-size: 0.95em;
    font-family: 'Courier New', monospace;
    resize: vertical;
    line-height: 1.6;
    background: #f9fafb;
}

.config-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
}

.config-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #d4d4d4;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.config-select:focus {
    outline: none;
    border-color: #667eea;
}

.config-select:hover {
    border-color: #8b9dc3;
}

.config-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

/* 配置页脚 */
.config-footer {
    padding: 14px 24px;
    background: #f8f9fa;
    border-top: 2px solid #dee2e6;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-shrink: 0;
}

.btn-large {
    padding: 10px 24px;
    font-size: 0.95em;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    justify-content: center;
    transition: all 0.25s ease;
}

.btn-icon {
    font-size: 1.05em;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 统一配置模态框关闭按钮 */
.unified-config-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.unified-config-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.8);
    transform: rotate(90deg) scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .unified-config-modal {
        width: 98%;
        max-height: 90vh;
    }
    
    .config-header {
        padding: 20px 24px;
    }
    
    .config-icon {
        font-size: 36px;
    }
    
    .config-header h2 {
        font-size: 1.5em;
    }
    
    .config-body {
        padding: 20px;
    }
    
    .config-grid,
    .config-grid-3 {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .config-section > .config-item {
        padding: 16px;
    }
    
    .config-footer {
        padding: 16px 20px;
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
}

/* ==================== 配置按钮 ==================== */
.btn-config {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    margin-bottom: 15px;
}

.btn-config:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ==================== PS服务器状态显示 ==================== */
.ps-server-status {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 15px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95em;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: none;
}

@keyframes pulse-dot {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.status-text {
    color: #374151;
}

.status-text.online {
    color: #065f46;
}

.status-text.offline {
    color: #991b1b;
}

.btn-start-server {
    padding: 8px 16px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-start-server:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ==================== 自定义右键菜单 ==================== */
.context-menu {
    position: fixed;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    min-width: 180px;
    z-index: 10000;
    display: none;
    border: 1px solid #e5e7eb;
}

.context-menu.show {
    display: block;
    animation: contextMenuShow 0.15s ease-out;
}

@keyframes contextMenuShow {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.context-menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    color: #374151;
    user-select: none;
}

.context-menu-item:hover {
    background: #f3f4f6;
    color: #667eea;
}

.context-menu-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #9ca3af;
}

.context-menu-item.disabled:hover {
    background: transparent;
    color: #9ca3af;
}

.context-menu-icon {
    font-size: 1.2em;
}

/* 图片右键时的视觉反馈 */
.thumbnail.context-active {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* ==================== 数字列状态标签 ==================== */
.col-number {
    text-align: center;
    vertical-align: middle;
}

.row-number {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.row-status-badge {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
}

.row-status-badge.status-completed {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
}

.row-status-badge.status-modified {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    color: white;
}

.row-status-badge.status-rejected {
    background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
    color: white;
}

/* ==================== 统计面板（右上角） ==================== */
.stats-bar-container {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    min-width: 400px;
    transition: all 0.3s ease;
}

.stats-bar-container:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.stats-info {
    margin-bottom: 10px;
    text-align: center;
}

.stats-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

#statsTotal {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
}

.stats-progress-bar {
    display: flex;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #e0e0e0;
}

.segment {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    min-width: 30px;
}

.segment-text {
    font-size: 14px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    z-index: 1;
}

.segment-completed {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
}

.segment-modified {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
}

.segment-rejected {
    background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
}

.segment-unmarked {
    background: #e0e0e0;
}

.segment-unmarked .segment-text {
    color: #999;
    text-shadow: none;
}

.segment:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
    z-index: 2;
}

/* ==================== 配置模态框样式 ==================== */
/* ==================== 全新配置界面 v4.0 - 卡片式设计 ==================== */
.unified-config-modal {
    max-width: 1600px;
    max-height: 88vh;
    width: 92%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10002;
}

/* 配置头部 */
.config-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 28px 36px;
    color: white;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.config-icon {
    font-size: 32px;
    margin-bottom: 6px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.config-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.55em;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
}

.config-header p {
    margin: 0;
    font-size: 0.93em;
    opacity: 0.92;
    font-weight: 300;
}

/* 配置主体 */
.config-body {
    padding: 32px 40px 24px 40px;
    overflow-y: auto;
    flex: 1;
    background: #f7f8fa;
}

.config-section {
    margin-bottom: 24px;
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.config-section:last-child {
    margin-bottom: 0;
}

.section-header {
    padding: 12px 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    font-size: 18px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.section-header h3 {
    margin: 0;
    font-size: 1em;
    color: #495057;
    font-weight: 600;
}

/* 配置网格布局 */
.config-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 14px 18px;
}

.config-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.config-item.full-width {
    grid-column: 1 / -1;
}

.config-section > .config-item {
    padding: 20px 24px;
}

.config-item {
    margin-bottom: 0;
}

.config-item + .config-item {
    border-top: 1px solid #f1f3f5;
}

.config-item label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.94em;
}

.config-input,
.config-textarea,
.config-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.9em;
    transition: all 0.25s ease;
    font-family: 'Segoe UI', -apple-system, sans-serif;
    background: white;
    box-sizing: border-box;
}

.config-input:hover,
.config-select:hover {
    border-color: #adb5bd;
}

.config-input:focus,
.config-textarea:focus,
.config-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: #fafbff;
}

.config-textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
    font-size: 0.95em;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    padding: 14px;
    width: 100%;
}

.config-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23667eea' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.config-item small {
    display: block;
    margin-top: 6px;
    color: #6c757d;
    font-size: 0.82em;
    line-height: 1.4;
}

.config-item small code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #667eea;
    font-weight: 600;
}

.ps-path-info {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.ps-path-info p {
    margin-bottom: 10px;
    color: #374151;
    line-height: 1.6;
}

.ps-path-info p:last-child {
    margin-bottom: 0;
}

.ps-path-info code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #667eea;
}

/* ==================== 图片编辑器样式 ==================== */
.image-editor-modal-content {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    max-width: none;
    max-height: none;
    display: flex;
    flex-direction: column;
    padding: 15px;
    margin: 10px;
}

.image-editor-modal-content h2 {
    color: #667eea;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.5em;
}

/* 工具栏 */
.editor-toolbar {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9em;
    white-space: nowrap;
}

.tool-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2em;
}

.tool-btn:hover {
    background: #f3f4f6;
    border-color: #667eea;
    transform: translateY(-2px);
}

.tool-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.tool-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 颜色选择器 */
#brushColor {
    width: 50px;
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    padding: 2px;
}

#brushColor:hover {
    border-color: #667eea;
}

/* 画笔大小滑动条 */
#brushSize {
    width: 120px;
    height: 6px;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    background: #e5e7eb;
}

#brushSize::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

#brushSize::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #764ba2;
}

#brushSize::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

#brushSizeValue {
    font-weight: bold;
    color: #667eea;
    min-width: 30px;
    display: inline-block;
    text-align: center;
}

#zoomLevel {
    font-weight: bold;
    color: #667eea;
    min-width: 50px;
    display: inline-block;
    text-align: center;
}

/* 画布容器 */
.canvas-container {
    flex: 1;
    position: relative;
    background: #f9fafb;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none !important;
    min-height: 0;
}

.canvas-container.grabbing {
    cursor: none !important;
}

.canvas-container.grab {
    cursor: none !important;
}

#editorCanvas {
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform-origin: center;
    transition: transform 0.1s ease-out;
}

/* 底部按钮 */
.editor-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.editor-actions .btn {
    padding: 12px 30px;
    font-size: 1.1em;
}

/* 提示信息 */
.editor-hint {
    text-align: center;
    color: #6b7280;
    font-size: 0.9em;
    margin-top: 10px;
    padding: 8px;
    background: #f9fafb;
    border-radius: 8px;
}

/* ==================== 主题切换器 ==================== */
.theme-switcher {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
}

.theme-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.8em;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.theme-btn:active {
    transform: translateY(-1px) scale(1);
}

.theme-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.theme-btn:hover .theme-icon {
    transform: rotate(20deg);
}

/* ==================== 主题样式 ==================== */
/* 明亮主题（默认） */
:root {
    --bg-gradient-start: #667eea;
    --bg-gradient-end: #764ba2;
    --container-bg: #ffffff;
    --text-color: #333333;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --hover-bg: #f3f4f6;
    --input-bg: #ffffff;
    --input-border: #d1d5db;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
    --primary-color: #667eea;
    --primary-hover: #5568d3;
    --sidebar-bg: #ffffff;
    --table-header-bg: #f9fafb;
    --table-border: #e5e7eb;
    --modal-backdrop: rgba(0, 0, 0, 0.5);
    --status-waiting: #9ca3af;
    --status-uploading: #3b82f6;
    --status-running: #f59e0b;
    --status-completed: #10b981;
    --status-failed: #ef4444;
}

/* 暗色主题 - 简洁清晰 */
body.dark-theme {
    --bg-gradient-start: #2b2b2b;
    --bg-gradient-end: #1e1e1e;
    --container-bg: #2b2b2b;
    --text-color: #ffffff;
    --text-secondary: #cccccc;
    --border-color: #3f3f3f;
    --hover-bg: #353535;
    --input-bg: #1e1e1e;
    --input-border: #3f3f3f;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --shadow-heavy: rgba(0, 0, 0, 0.8);
    --primary-color: #667eea;
    --primary-hover: #5568d3;
    --sidebar-bg: #1e1e1e;
    --table-header-bg: #252525;
    --table-border: #3f3f3f;
    --modal-backdrop: rgba(0, 0, 0, 0.85);
    --status-waiting: #888888;
    --status-uploading: #4a9eff;
    --status-running: #ffa500;
    --status-completed: #4caf50;
    --status-failed: #f44336;
}

/* 应用主题变量 */
body {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-color);
}

.container {
    background: var(--container-bg);
    box-shadow: 0 20px 60px var(--shadow-heavy);
}

.left-sidebar {
    background: var(--sidebar-bg);
}

h1 {
    color: var(--primary-color);
}

body.dark-theme h1 {
    color: #ffffff;
}

/* 输入框和文本区域 */
input[type="text"],
input[type="number"],
textarea,
select {
    background: var(--input-bg);
    color: var(--text-color);
    border-color: var(--input-border);
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
}

/* 表格 */
.main-table {
    background: var(--container-bg);
    color: var(--text-color);
}

.main-table thead {
    background: var(--table-header-bg);
}

.main-table th,
.main-table td {
    border-color: var(--table-border);
}

.main-table tbody tr:hover {
    background: var(--hover-bg);
}

/* 模态框 */
.modal-backdrop {
    background: var(--modal-backdrop);
}

.modal-content {
    background: var(--container-bg);
    color: var(--text-color);
}

/* 信息提示 */
.info-section,
.error-section {
    color: var(--text-color);
}

.empty-state {
    color: var(--text-secondary);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 暗色主题下按钮保持原样，只确保文字清晰 */
body.dark-theme .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

body.dark-theme .btn-success {
    color: white;
}

body.dark-theme .btn-warning {
    color: white;
}

body.dark-theme .btn-danger {
    color: white;
}

body.dark-theme .btn-secondary {
    background: #454545;
    color: white;
}

body.dark-theme .btn-secondary:hover {
    background: #505050;
}

/* 状态徽章 */
.status-badge.status-waiting {
    background: var(--status-waiting);
}

.status-badge.status-uploading {
    background: var(--status-uploading);
}

.status-badge.status-running {
    background: var(--status-running);
}

.status-badge.status-completed {
    background: var(--status-completed);
}

.status-badge.status-failed {
    background: var(--status-failed);
}

/* 暗色主题下的滚动条 */
body.dark-theme ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

body.dark-theme ::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 6px;
}

body.dark-theme ::-webkit-scrollbar-thumb {
    background: #505050;
    border-radius: 6px;
}

body.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: #606060;
}

/* 暗色主题下只关注文字清晰度 */
body.dark-theme .tab-btn {
    color: #cccccc;
}

body.dark-theme .tab-btn:hover {
    color: #ffffff;
}

body.dark-theme .tab-btn.active {
    color: white;
}

body.dark-theme .upload-label {
    color: #cccccc;
}

body.dark-theme .upload-label:hover {
    color: #ffffff;
}

body.dark-theme button {
    color: white;
}

body.dark-theme .image-name {
    color: #cccccc;
}

body.dark-theme .prompt-input {
    color: #ffffff;
}

body.dark-theme .analysis-text {
    color: #ffffff;
}

body.dark-theme .config-input,
body.dark-theme .config-select,
body.dark-theme .config-textarea {
    color: #ffffff;
}

body.dark-theme .section-header {
    color: #ffffff;
}

body.dark-theme small {
    color: #cccccc;
}

body.dark-theme code {
    color: #667eea;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3 {
    color: #ffffff;
}

body.dark-theme .main-table td,
body.dark-theme .main-table th {
    color: #ffffff;
}

body.dark-theme .details-text {
    color: #cccccc;
}

body.dark-theme .modal-info {
    color: #cccccc;
}

body.dark-theme .stats-label {
    color: #cccccc;
}

body.dark-theme .segment-text {
    color: white;
}

body.dark-theme label {
    color: #ffffff;
}

body.dark-theme .material-label {
    color: #cccccc;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .image-editor-modal-content {
        width: 95vw;
    }
    
    .editor-toolbar {
        gap: 10px;
    }
    
    .toolbar-group {
        gap: 5px;
    }
    
    .theme-switcher {
        bottom: 20px;
        left: 20px;
    }
    
    .theme-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }
}

/* ==================== 全新提示词卡片样式 ==================== */
.prompt-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
}

.prompt-card:last-child {
    margin-bottom: 0;
}

.prompt-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.prompt-card-header {
    background: linear-gradient(135deg, #f8f9fc 0%, #f1f3f9 100%);
    padding: 20px 24px;
    border-bottom: 2px solid #e5e7eb;
}

.prompt-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.prompt-card-header h3 {
    margin: 12px 0 6px 0;
    font-size: 1.15em;
    font-weight: 600;
    color: #1f2937;
}

.prompt-desc {
    margin: 0;
    font-size: 0.88em;
    color: #6b7280;
    line-height: 1.5;
}

.prompt-textarea {
    width: 100%;
    min-height: 180px;
    padding: 20px 24px;
    border: none;
    border-radius: 0;
    font-size: 0.95em;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.7;
    color: #1f2937;
    background: #ffffff;
    resize: vertical;
    transition: all 0.2s ease;
}

.prompt-textarea:focus {
    outline: none;
    background: #fafbfc;
}

.prompt-textarea::placeholder {
    color: #9ca3af;
}

.prompt-hint {
    background: #fef3c7;
    border-top: 1px solid #fde68a;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.87em;
    color: #92400e;
}

.hint-icon {
    font-size: 1.1em;
    flex-shrink: 0;
}

.prompt-hint code {
    background: #fed7aa;
    color: #7c2d12;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.92em;
    font-weight: 600;
}
