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

:root {
    /* 默认主题变量 */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-bg-hover: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-border-hover: rgba(255, 255, 255, 0.3);
    --glass-shadow: rgba(31, 38, 135, 0.37);
    --glass-shadow-hover: rgba(31, 38, 135, 0.5);
    --glass-blur: 20px;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: rgba(255, 255, 255, 0.9);
    --accent-color: #667eea;
    --accent-secondary: #764ba2;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* 黑色主题变量 */
    --dark-bg: #0a0a0a;
    --dark-surface: #1a1a1a;
    --dark-surface-elevated: #252525;
    --dark-border: rgba(255, 255, 255, 0.1);
    --dark-border-hover: rgba(255, 255, 255, 0.2);
    --dark-text: #e0e0e0;
    --dark-text-secondary: #a0a0a0;
    --dark-accent: #ffffff;
    --dark-accent-glow: rgba(255, 255, 255, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    transition: all 0.3s ease;
}

/* Glassmorphism 主题 */
body.theme-glass {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.8) 0%, 
        rgba(139, 92, 246, 0.8) 25%,
        rgba(236, 72, 153, 0.8) 50%,
        rgba(251, 146, 60, 0.8) 75%,
        rgba(34, 197, 94, 0.8) 100%);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

body.theme-glass::before {
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

/* 黑色主题 */
body.theme-dark {
    background: var(--dark-bg);
    color: var(--dark-text);
}

body.theme-dark::before {
    background: transparent;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

header {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 35px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid #e0e0e0;
    animation: slideDown 0.5s ease;
    transition: all 0.3s ease;
}

body.theme-glass header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.theme-glass header:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 12px 40px rgba(31, 38, 135, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.theme-dark header {
    background: var(--dark-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--dark-border);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(102, 126, 234, 0.1);
}

body.theme-dark header:hover {
    border-color: var(--dark-border-hover);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px var(--dark-accent-glow),
        inset 0 1px 0 rgba(102, 126, 234, 0.2);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
}

body.theme-glass header h1 {
    color: var(--text-light);
    text-shadow: 
        0 2px 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3);
}

body.theme-dark header h1 {
    color: var(--dark-text);
    text-shadow: 
        0 0 10px var(--dark-accent-glow),
        0 2px 20px var(--dark-accent-glow);
}

nav {
    display: flex;
    gap: 15px;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

nav a:hover {
    background: #f0f0f0;
    color: #333;
}

nav a.active {
    background: #333;
    color: white;
}

body.theme-dark nav a {
    color: var(--dark-text-secondary);
    background: transparent;
    border: 1px solid transparent;
}

body.theme-dark nav a:hover {
    background: var(--dark-surface-elevated);
    color: var(--dark-text);
    border-color: var(--dark-border);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(102, 126, 234, 0.1);
}

body.theme-dark nav a.active {
    background: var(--dark-surface-elevated);
    color: var(--dark-accent);
    border: 1px solid var(--dark-accent);
    box-shadow: 
        0 4px 15px var(--dark-accent-glow),
        inset 0 1px 0 rgba(102, 126, 234, 0.2),
        0 0 10px var(--dark-accent-glow);
}

main {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    animation: fadeIn 0.6s ease;
    transition: all 0.3s ease;
}

body.theme-glass main {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.theme-glass main:hover {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 12px 40px rgba(31, 38, 135, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.theme-dark main {
    background: var(--dark-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--dark-border);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(102, 126, 234, 0.1);
}

body.theme-dark main:hover {
    border-color: var(--dark-border-hover);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px var(--dark-accent-glow),
        inset 0 1px 0 rgba(102, 126, 234, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 表单样式 */
.test-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

body.theme-dark .form-header {
    border-bottom: 2px solid var(--dark-border);
}

body.theme-dark .form-header h2 {
    color: var(--dark-accent);
    text-shadow: 0 0 15px var(--dark-accent-glow);
}

body.theme-dark .form-description {
    color: var(--dark-text-secondary);
}

.form-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
}

.form-description {
    color: #666;
    font-size: 16px;
    margin-top: 10px;
}

.test-form h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #555;
    font-weight: 600;
    font-size: 15px;
}

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

.label-hint {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin-left: auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

body.theme-glass .form-group input,
body.theme-glass .form-group textarea,
body.theme-glass .form-group select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    box-shadow: 
        0 2px 8px rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.theme-glass .form-group input::placeholder,
body.theme-glass .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

body.theme-glass .form-group input:focus,
body.theme-glass .form-group textarea:focus,
body.theme-glass .form-group select:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 4px 16px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.theme-dark .form-group input,
body.theme-dark .form-group textarea,
body.theme-dark .form-group select {
    background: var(--dark-surface-elevated);
    border: 1px solid var(--dark-border);
    color: var(--dark-text);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(102, 126, 234, 0.05);
}

body.theme-dark .form-group input::placeholder,
body.theme-dark .form-group textarea::placeholder {
    color: var(--dark-text-secondary);
}

body.theme-dark .form-group input:focus,
body.theme-dark .form-group textarea:focus,
body.theme-dark .form-group select:focus {
    background: var(--dark-surface-elevated);
    border-color: var(--dark-accent);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 0 1px var(--dark-accent-glow),
        inset 0 1px 0 rgba(102, 126, 234, 0.2);
}

body.theme-dark .form-group label {
    color: var(--dark-text);
}

body.theme-dark .field-hint {
    color: var(--dark-text-secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

body.theme-glass .form-group select option {
    background: rgba(99, 102, 241, 0.9);
    color: var(--text-light);
}

.field-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

/* 图片上传和预览 */
.file-upload-area {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

body.theme-glass .file-upload-area {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    box-shadow: 
        0 4px 16px rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.file-upload-area:hover {
    border-color: #999;
    background: #f5f5f5;
}

body.theme-glass .file-upload-area:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 8px 24px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.file-upload-area.dragover {
    border-color: #333;
    background: #f0f0f0;
}

body.theme-glass .file-upload-area.dragover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 
        0 12px 32px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.theme-dark .file-upload-area {
    background: var(--dark-surface-elevated);
    border: 2px dashed var(--dark-border);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(102, 126, 234, 0.1);
}

body.theme-dark .file-upload-area:hover {
    border-color: var(--dark-accent);
    background: var(--dark-surface-elevated);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px var(--dark-accent-glow),
        inset 0 1px 0 rgba(102, 126, 234, 0.2);
}

body.theme-dark .file-upload-area.dragover {
    border-color: var(--dark-accent);
    background: var(--dark-surface-elevated);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.5),
        0 0 0 2px var(--dark-accent-glow),
        inset 0 1px 0 rgba(102, 126, 234, 0.3);
}

body.theme-dark .upload-placeholder p {
    color: var(--dark-text);
}

body.theme-dark .upload-hint {
    color: var(--dark-text-secondary);
}

.form-group input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-placeholder p {
    color: #666;
    margin: 8px 0;
    font-size: 16px;
}

.upload-hint {
    font-size: 13px !important;
    color: #999 !important;
}

.upload-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.upload-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.upload-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
    border: 3px solid #e0e0e0;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.preview-image:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.preview-image::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: #667eea;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.preview-image:hover::after {
    opacity: 1;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary {
    background: #333;
    color: white;
    border: 1px solid #333;
}

body.theme-glass .btn-primary {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 4px 15px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-primary:hover:not(:disabled) {
    background: #555;
    border-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.theme-glass .btn-primary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 6px 20px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body.theme-dark .btn-primary {
    background: var(--dark-surface-elevated);
    border: 1px solid var(--dark-accent);
    color: var(--dark-accent);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        0 0 10px var(--dark-accent-glow),
        inset 0 1px 0 rgba(102, 126, 234, 0.2);
}

body.theme-dark .btn-primary:hover:not(:disabled) {
    background: var(--dark-accent);
    color: var(--dark-text);
    box-shadow: 
        0 6px 20px var(--dark-accent-glow),
        0 0 20px var(--dark-accent-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.theme-dark .btn-secondary {
    background: var(--dark-surface-elevated);
    border: 1px solid var(--dark-border);
    color: var(--dark-text-secondary);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(102, 126, 234, 0.05);
}

body.theme-dark .btn-secondary:hover:not(:disabled) {
    background: var(--dark-surface-elevated);
    border-color: var(--dark-border-hover);
    color: var(--dark-text);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(102, 126, 234, 0.1);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.btn-secondary {
    background: #ffffff;
    color: #666;
    border: 1px solid #e0e0e0;
}

body.theme-glass .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    box-shadow: 
        0 2px 8px rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.theme-glass .btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 4px 12px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

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

/* 进度容器 */
.progress-container {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.progress-header {
    text-align: center;
    margin-bottom: 25px;
}

.progress-header h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 22px;
}

.progress-text {
    color: #666;
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-dark .progress-bar {
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
}

.progress-fill {
    height: 100%;
    background: #333;
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
    animation: pulse 2s infinite;
}

body.theme-dark .progress-fill {
    background: linear-gradient(90deg, var(--dark-accent) 0%, var(--dark-accent-secondary) 100%);
    box-shadow: 0 0 15px var(--dark-accent-glow);
}

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

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.theme-dark .step-icon {
    background: var(--dark-surface-elevated);
    border: 2px solid var(--dark-border);
    color: var(--dark-text-secondary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.step.active .step-icon {
    background: #333;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: pulseIcon 1.5s infinite;
}

body.theme-dark .step.active .step-icon {
    background: var(--dark-accent);
    border-color: var(--dark-accent);
    box-shadow: 
        0 4px 12px var(--dark-accent-glow),
        0 0 20px var(--dark-accent-glow);
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.step-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

body.theme-dark .step-text {
    color: var(--dark-text-secondary);
}

.step.active .step-text {
    color: #333;
    font-weight: 600;
}

body.theme-dark .step.active .step-text {
    color: var(--dark-accent);
    text-shadow: 0 0 5px var(--dark-accent-glow);
}

/* 结果容器 */
.result-container {
    margin-top: 30px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease;
    transition: all 0.3s ease;
}

body.theme-glass .result-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.theme-dark .result-container {
    background: var(--dark-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--dark-border);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(102, 126, 234, 0.1);
}

body.theme-dark .result-header h3 {
    color: var(--dark-accent);
    text-shadow: 0 0 10px var(--dark-accent-glow);
}

body.theme-dark .result-content {
    background: var(--dark-surface-elevated);
    border: 1px solid var(--dark-border);
    color: var(--dark-text);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

body.theme-dark .result-header {
    border-bottom: 2px solid var(--dark-border);
}

.result-header h3 {
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
}

body.theme-dark .result-header h3 {
    color: var(--dark-accent);
    text-shadow: 0 0 10px var(--dark-accent-glow);
}

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

.result-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    background: #333;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.result-container h3 {
    color: #333;
    margin-bottom: 15px;
}

.result-content {
    background: white;
    padding: 0;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

/* 状态信息卡片 */
.analysis-status-card {
    background: #fafafa;
    padding: 20px;
    border-bottom: 2px solid #e0e0e0;
}

body.theme-dark .analysis-status-card {
    background: var(--dark-surface-elevated);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 2px solid var(--dark-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.status-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 150px;
}

.status-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

body.theme-dark .status-label {
    color: var(--dark-text-secondary);
}

.status-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

body.theme-dark .status-value {
    color: var(--dark-text);
}

.status-value.code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #333;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid #e0e0e0;
}

body.theme-dark .status-value.code {
    color: var(--dark-accent);
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid var(--dark-accent);
    box-shadow: 0 0 10px var(--dark-accent-glow);
}

.status-value.status-processing {
    color: #ffa726;
}

.status-value.status-completed {
    color: #4caf50;
}

.status-value.status-failed {
    color: #f44336;
}

/* 结果区块 */
.result-section {
    padding: 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    animation: fadeInUp 0.5s ease;
}

body.theme-dark .result-section {
    border-bottom: 1px solid var(--dark-border);
}

.result-section:last-child {
    border-bottom: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

body.theme-dark .section-title {
    color: var(--dark-accent);
    text-shadow: 0 0 10px var(--dark-accent-glow);
}

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

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

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

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

body.theme-dark .info-label {
    color: var(--dark-text-secondary);
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

body.theme-dark .info-value {
    color: var(--dark-text);
}

.info-value.code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #333;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid #e0e0e0;
}

body.theme-dark .info-value.code {
    color: var(--dark-accent);
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid var(--dark-accent);
    box-shadow: 0 0 10px var(--dark-accent-glow);
}

/* 指标卡片 */
.metrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.chart-type-selector {
    display: flex;
    gap: 8px;
}

.chart-type-btn {
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.chart-type-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-type-btn.active {
    background: #333;
    border-color: #333;
    color: white;
}

body.theme-dark .chart-type-btn {
    background: var(--dark-surface-elevated);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

body.theme-dark .chart-type-btn:hover {
    background: var(--dark-surface-elevated);
    border-color: var(--dark-border-hover);
}

body.theme-dark .chart-type-btn.active {
    background: var(--dark-accent);
    border-color: var(--dark-accent);
    color: var(--dark-bg);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

/* 雷达图在顶部显示 */
.chart-container.chart-radar {
    grid-column: 1 / -1;
    margin-bottom: 30px;
    order: -1;
}

.metric-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.theme-glass .metric-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 16px rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
}

body.theme-glass .metric-card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 24px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.theme-dark .metric-card {
    background: var(--dark-surface-elevated);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--dark-border);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(102, 126, 234, 0.1);
}

body.theme-dark .metric-card:hover {
    background: var(--dark-surface-elevated);
    border-color: var(--dark-accent);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px var(--dark-accent-glow),
        inset 0 1px 0 rgba(102, 126, 234, 0.2);
}

body.theme-dark .metric-name {
    color: var(--dark-text);
}

body.theme-dark .metric-value {
    color: var(--dark-accent);
    text-shadow: 0 0 10px var(--dark-accent-glow);
}

body.theme-dark .metric-bar {
    background: var(--dark-accent);
}

body.theme-dark .column-bar {
    background: var(--dark-accent);
}

body.theme-dark .donut-progress {
    stroke: var(--dark-accent);
}

body.theme-dark .donut-background {
    stroke: var(--dark-border);
}

body.theme-dark .radar-area {
    fill: rgba(255, 255, 255, 0.1);
    stroke: var(--dark-accent);
}

body.theme-dark .radar-chart polygon,
body.theme-dark .radar-chart line {
    stroke: var(--dark-border);
}

body.theme-dark .radar-chart text {
    fill: var(--dark-text-secondary);
}

body.theme-dark .metric-description {
    color: var(--dark-text-secondary);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.metric-name {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.metric-value {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.metric-bar-container {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.chart-container {
    margin: 15px 0;
}

.metric-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 0%;
}

.metric-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 柱状图样式 */
.column-chart {
    height: 120px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 0;
}

.column-bar {
    flex: 1;
    max-width: 50px;
    border-radius: 4px 4px 0 0;
    transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 4px;
}

.column-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.1) 0%, 
        transparent 100%);
}

.column-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.4) 0%, 
        transparent 100%);
}

/* 环形图样式 */
.donut-chart-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 10px auto;
}

.donut-chart {
    transform: rotate(-90deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.donut-progress {
    transition: stroke-dasharray 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 4px currentColor);
}

.donut-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

/* 雷达图样式 */
.radar-chart-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
}

.radar-chart {
    width: 100%;
    height: auto;
    max-width: 500px;
    max-height: 500px;
}

.radar-area {
    animation: radarPulse 2s ease-in-out infinite;
}

@keyframes radarPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

/* 动画效果 */
@keyframes animated-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-fade-in {
    animation: animated-fade-in 0.6s ease forwards;
}

.metric-card {
    animation: cardSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

@keyframes cardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.metric-card:hover {
    transform: translateY(-4px) scale(1.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-description {
    font-size: 11px;
    color: #999;
    line-height: 1.4;
}

.animated-fade-in {
    animation: fadeInScale 0.6s ease both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 为每个指标卡片添加延迟动画 */
.metric-card:nth-child(1) { animation-delay: 0.1s; }
.metric-card:nth-child(2) { animation-delay: 0.2s; }
.metric-card:nth-child(3) { animation-delay: 0.3s; }
.metric-card:nth-child(4) { animation-delay: 0.4s; }
.metric-card:nth-child(5) { animation-delay: 0.5s; }
.metric-card:nth-child(6) { animation-delay: 0.6s; }
.metric-card:nth-child(7) { animation-delay: 0.7s; }
.metric-card:nth-child(8) { animation-delay: 0.8s; }

/* 原始数据区域 */
.raw-data-section {
    margin-top: 10px;
}

.raw-data-toggle {
    cursor: pointer;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-weight: 500;
    color: #667eea;
    user-select: none;
    transition: all 0.3s;
}

.raw-data-toggle:hover {
    background: #e9ecef;
}

.raw-data-content {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
    max-height: 400px;
    overflow-y: auto;
}

.result-item {
    margin-bottom: 12px;
}

.result-item strong {
    color: #667eea;
    display: inline-block;
    min-width: 120px;
}

.result-actions {
    display: flex;
    gap: 10px;
}

/* 历史记录样式 */
.history-container {
    max-width: 1000px;
    margin: 0 auto;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.history-header h2 {
    color: #333;
    font-size: 24px;
}

.history-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    padding: 10px 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    min-width: 200px;
    transition: all 0.3s ease;
}

body.theme-glass .search-input {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    box-shadow: 
        0 2px 8px rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.search-input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

body.theme-glass .search-input:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 4px 12px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.theme-glass .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

body.theme-dark .search-input {
    background: var(--dark-surface-elevated);
    border: 1px solid var(--dark-border);
    color: var(--dark-text);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(102, 126, 234, 0.05);
}

body.theme-dark .search-input:focus {
    background: var(--dark-surface-elevated);
    border-color: var(--dark-accent);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 0 1px var(--dark-accent-glow),
        inset 0 1px 0 rgba(102, 126, 234, 0.2);
}

body.theme-dark .search-input::placeholder {
    color: var(--dark-text-secondary);
}

body.theme-dark .history-header h2 {
    color: var(--dark-text);
}

body.theme-dark .pagination button {
    background: var(--dark-surface-elevated);
    border: 1px solid var(--dark-border);
    color: var(--dark-text-secondary);
}

body.theme-dark .pagination button:hover:not(:disabled) {
    border-color: var(--dark-accent);
    color: var(--dark-accent);
    box-shadow: 0 0 10px var(--dark-accent-glow);
}

body.theme-dark .pagination-info {
    color: var(--dark-text-secondary);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #333;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.theme-glass .history-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 4px 16px rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.history-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
}

body.theme-glass .history-item:hover {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 8px 24px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.theme-dark .history-item {
    background: var(--dark-surface-elevated);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--dark-border);
    border-left: 4px solid var(--dark-accent);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(102, 126, 234, 0.1);
}

body.theme-dark .history-item:hover {
    background: var(--dark-surface-elevated);
    border-color: var(--dark-border-hover);
    border-left-color: var(--dark-accent);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px var(--dark-accent-glow),
        inset 0 1px 0 rgba(102, 126, 234, 0.2);
}

body.theme-dark .history-item-prompt {
    color: var(--dark-text);
}

body.theme-dark .history-item-id,
body.theme-dark .history-item-time {
    color: var(--dark-text-secondary);
}

.history-item.status-processing {
    border-left-color: #ffa726;
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.05) 0%, rgba(255, 167, 38, 0.02) 100%);
}

.history-item.status-completed {
    border-left-color: #4caf50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(76, 175, 80, 0.02) 100%);
}

.history-item-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.status-processing {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffb74d;
}

.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
}

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

.status-text {
    font-size: 12px;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.history-item-id {
    font-size: 12px;
    color: #999;
    font-family: monospace;
}

.history-item-time {
    font-size: 12px;
    color: #999;
}

.history-item-prompt {
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-item-preview {
    font-size: 14px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.history-item-actions {
    display: flex;
    gap: 10px;
}

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

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

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

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 16px;
}

body.theme-dark .loading {
    color: var(--dark-text-secondary);
}

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

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

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination button {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

body.theme-glass .modal-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 10px 40px rgba(31, 38, 135, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.theme-dark .modal-content {
    background: var(--dark-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--dark-border);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(102, 126, 234, 0.1);
}

body.theme-dark .modal-header {
    border-bottom: 1px solid var(--dark-border);
}

body.theme-dark .modal-header h2 {
    color: var(--dark-text);
}

body.theme-dark .modal-close {
    color: var(--dark-text-secondary);
    border: 1px solid var(--dark-border);
}

body.theme-dark .modal-close:hover {
    color: var(--dark-accent);
    border-color: var(--dark-accent);
    box-shadow: 0 0 10px var(--dark-accent-glow);
}

body.theme-dark .modal-body {
    background: var(--dark-surface-elevated);
    color: var(--dark-text);
}

body.theme-dark .detail-section h3 {
    color: var(--dark-accent);
    border-bottom: 1px solid var(--dark-border);
}

body.theme-dark .detail-content {
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    color: var(--dark-text);
}

body.theme-dark .detail-item strong {
    color: var(--dark-accent);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    color: #333;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

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

.detail-section h3 {
    color: #667eea;
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.detail-content code {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.status-processing {
    background: #fff3e0;
    color: #e65100;
}

.status-badge.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.status-failed {
    background: #ffebee;
    color: #c62828;
}

.detail-item {
    margin-bottom: 12px;
}

.detail-item strong {
    color: #667eea;
    display: inline-block;
    min-width: 120px;
}

/* 提示卡片 */
.tips-card {
    margin-top: 30px;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #333;
    animation: fadeIn 0.8s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.theme-dark .tips-card {
    background: var(--dark-surface-elevated);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--dark-border);
    border-left: 4px solid var(--dark-accent);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(102, 126, 234, 0.1);
}

.tips-card h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.theme-dark .tips-card h4 {
    color: var(--dark-accent);
    text-shadow: 0 0 10px var(--dark-accent-glow);
}

.tips-card ul {
    list-style: none;
    padding: 0;
}

.tips-card li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

body.theme-dark .tips-card li {
    color: var(--dark-text);
}

.tips-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #333;
    font-weight: bold;
    font-size: 16px;
}

body.theme-dark .tips-card li::before {
    color: var(--dark-accent);
    text-shadow: 0 0 10px var(--dark-accent-glow);
}

.tips-card li:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

body.theme-dark .tips-card li:not(:last-child) {
    border-bottom: 1px solid var(--dark-border);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .history-header {
        flex-direction: column;
        align-items: stretch;
    }

    .history-controls {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }

    .preview-image {
        max-width: 150px;
        max-height: 150px;
    }
}

/* 主题切换按钮 */
.theme-toggle {
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 40px;
    height: 40px;
}

body.theme-glass .theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 2px 8px rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.theme-toggle:hover {
    background: #f5f5f5;
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.theme-glass .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 4px 12px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.theme-dark .theme-toggle {
    background: var(--dark-surface-elevated);
    border: 1px solid var(--dark-border);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(102, 126, 234, 0.05);
}

body.theme-dark .theme-toggle:hover {
    background: var(--dark-surface-elevated);
    border-color: var(--dark-accent);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 10px var(--dark-accent-glow),
        inset 0 1px 0 rgba(102, 126, 234, 0.2);
}

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

.theme-toggle:hover .theme-icon {
    transform: rotate(180deg);
}
    
    .progress-steps {
        flex-wrap: wrap;
    }
    
    .step {
        min-width: 80px;
        margin-bottom: 15px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .status-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}


