:root {
    /* 主色调 */
    --primary-lighter: #ECF2FF;
    --primary-light: #818CF8;
    --primary: #4F46E5;
    --primary-dark: #3730A3;
    
    /* 次要色调 */
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --error: #EF4444;
    --error-light: #FEE2E2;
    --info: #3B82F6;
    --info-light: #DBEAFE;
    
    /* 灰色色调 */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --gray-950: #020617;
    
    /* 文本颜色 */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-tertiary: var(--gray-500);
    --text-light: var(--gray-50);
    
    /* 背景颜色 */
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-sidebar: #FFFFFF;
    --bg-terminal: #0F172A;
    
    /* 边框半径 */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* 字体 */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    
    /* 其他 */
    --header-height: 64px;
    --sidebar-width: 380px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 基础样式重置 --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-main);
}

body {
    overflow-x: hidden;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    text-decoration: underline;
}

svg {
    display: inline-block;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- 布局 --- */
.app-container {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* --- 侧边栏 --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-left: 2.75rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
}

.nav-item:hover {
    background-color: var(--gray-100);
}

.nav-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-secondary);
}

/* Config Panel */
.config-panel {
    background-color: var(--gray-50);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    padding: 1rem;
    transition: max-height 0.5s ease, opacity 0.3s ease, overflow 0s linear 0.3s;
}

details#config-details {
    cursor: pointer;
    user-select: none;
}

details#config-details > summary {
    list-style: none;
}

details#config-details > summary::-webkit-details-marker {
    display: none;
}

.config-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

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

.config-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Warning Banner */
.warning-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background-color: var(--warning-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--gray-800);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.warning-banner svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--warning);
    margin-top: 0.125rem;
}

/* Test Section */
.test-section {
    margin-top: 1.5rem;
}

.test-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.test-section h2 svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
}

.section-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* List Containers */
.list-container {
    background-color: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    max-height: 225px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition-fast);
}

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

.list-item:hover {
    background-color: var(--primary-lighter);
}

.list-item.selected {
    background-color: var(--primary-lighter);
    border-left: 3px solid var(--primary);
}

.list-item span {
    flex-grow: 1;
    margin-right: 0.75rem;
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.actions {
    display: flex;
    gap: 0.375rem;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-main);
    min-width: 0;
}

.main-header {
    padding: 1.5rem 2rem;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

.main-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.main-header h2 svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.current-run-container {
    flex: 1;
    padding: 1.5rem 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#current-run-info {
    padding: 1rem;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    color: var(--text-secondary);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.terminal-container {
    flex: 1;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-300);
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: var(--gray-800);
    border-bottom: 1px solid var(--gray-700);
}

.terminal-title {
    color: var(--gray-200);
    font-size: 0.875rem;
    font-weight: 500;
}

.terminal-actions {
    display: flex;
    gap: 0.5rem;
}

.terminal-btn {
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-btn:hover {
    color: var(--gray-200);
    background-color: rgba(255, 255, 255, 0.1);
}

.terminal-btn svg {
    width: 1rem;
    height: 1rem;
}

.terminal {
    flex: 1;
    background-color: var(--bg-terminal);
    color: var(--gray-300);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 1rem;
    white-space: pre-wrap;
    overflow-y: auto;
}

.terminal .stdout {
    color: var(--success-light);
    background-color: rgba(16, 185, 129, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    margin: 0.125rem 0;
}

.terminal .stderr, .terminal .error {
    color: var(--error-light);
    background-color: rgba(239, 68, 68, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    margin: 0.125rem 0;
}

.terminal .info {
    color: var(--info-light);
    background-color: rgba(59, 130, 246, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    margin: 0.125rem 0;
}

.terminal .warning {
    color: var(--warning-light);
    background-color: rgba(245, 158, 11, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    margin: 0.125rem 0;
}

.terminal .final {
    color: var(--success-light);
    font-weight: bold;
    margin-top: 0.75rem;
    border-top: 1px dashed var(--gray-700);
    padding-top: 0.75rem;
}

/* 报告链接 */
.report-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.report-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-lighter);
    color: var(--primary-dark);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
    border: 1px solid var(--primary-light);
}

.report-links a:hover {
    background-color: var(--primary-light);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.report-links a svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* 按钮样式 */
.btn-primary, .btn-secondary, .btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: white;
    color: var(--text-primary);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--error);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-primary:disabled, .btn-secondary:disabled, .btn-danger:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary svg, .btn-secondary svg, .btn-danger svg {
    width: 1.125rem;
    height: 1.125rem;
}

.create-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.create-btn svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* 列表项按钮 */
.list-item button {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    box-shadow: none;
}

.list-item button svg {
    width: 0.875rem;
    height: 0.875rem;
}

.list-item .run-btn {
    background-color: var(--success);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.list-item .run-btn:hover {
    background-color: #059669;
    transform: none;
}

.list-item .edit-btn {
    background-color: var(--warning);
    color: white;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.list-item .edit-btn:hover {
    background-color: #d97706;
    transform: none;
}

.list-item .delete-btn {
    background-color: var(--error);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.list-item .delete-btn:hover {
    background-color: #dc2626;
    transform: none;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-group small {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.required {
    color: var(--error);
    margin-left: 0.25rem;
}

input[type="text"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background-color: white;
    color: var(--text-primary);
    transition: var(--transition-fast);
    font-size: 0.9375rem;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-400);
}

.password-field {
    position: relative;
    display: flex;
}

.password-field input {
    flex: 1;
    padding-right: 2.5rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.toggle-password:hover {
    color: var(--gray-700);
}

.toggle-password svg {
    width: 1.125rem;
    height: 1.125rem;
}

.toggle-password .eye-off-icon {
    display: none;
}

.toggle-password.show-password .eye-icon {
    display: none;
}

.toggle-password.show-password .eye-off-icon {
    display: block;
}

.select-container {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    overflow: hidden;
}

select[multiple] {
    border: none;
    height: 200px;
    padding: 0.5rem;
}

select[multiple] option {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.25rem;
    transition: var(--transition-fast);
}

select[multiple] option:checked {
    background-color: var(--primary-lighter);
    color: var(--primary-dark);
}

select[multiple] option:hover {
    background-color: var(--gray-100);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* 状态消息 */
#config-status,
#create-task-status,
#create-suite-status {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 1rem 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#config-status.success,
#create-task-status.success,
#create-suite-status.success {
    background-color: var(--success-light);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
    opacity: 1;
}

#config-status.error,
#create-task-status.error,
#create-suite-status.error {
    background-color: var(--error-light);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    opacity: 1;
}

#config-status.info,
#create-task-status.info,
#create-suite-status.info {
    background-color: var(--info-light);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.3);
    opacity: 1;
}

.form-error-message {
    color: var(--error);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    min-height: 1em;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.close-button:hover {
    background-color: var(--gray-100);
    color: var(--gray-800);
}

.modal form {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-50);
}

/* 变量容器 */
.variables-container {
    margin-bottom: 1.25rem;
}

.variable-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.variable-key, .variable-value {
    flex: 1;
}

.remove-variable-btn, .remove-step-btn {
    padding: 0.25rem !important;
    color: var(--error) !important;
    background-color: transparent !important;
    border: 1px solid var(--error-light) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.remove-variable-btn:hover, .remove-step-btn:hover {
    background-color: var(--error-light) !important;
}

.remove-variable-btn svg, .remove-step-btn svg {
    width: 1rem;
    height: 1rem;
}

/* 步骤容器 */
.steps-container {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    background-color: var(--gray-50);
    margin-bottom: 1.25rem;
}

.placeholder-text {
    text-align: center;
    color: var(--text-tertiary);
    padding: 2rem 0;
}

.task-step-group {
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.task-step-group:last-child {
    margin-bottom: 0;
}

.task-step-group .remove-step-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.save-btn {
    margin-top: 1rem;
    width: 100%;
}

/* 增强动画和交互效果 */
/* 自定义工具提示 */
.custom-tooltip {
    position: absolute;
    z-index: 9999;
    background-color: var(--gray-800);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    max-width: 250px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: var(--gray-800) transparent transparent;
}

/* 高亮动画 */
@keyframes highlight {
    0% { background-color: var(--primary-lighter); }
    100% { background-color: var(--bg-card); }
}

.highlight {
    animation: highlight 1s ease;
}

/* 配置面板滑动动画 */
.config-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
}

/* 列表项动画 */
.list-item {
    transition: background-color 0.2s ease, transform 0.2s ease, border-left 0.2s ease;
}

.list-item:hover {
    transform: translateX(3px);
}

.list-item.selected {
    transform: translateX(5px);
}

/* 加载动画 */
.spin-icon {
    animation: spin 1.5s linear infinite;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 添加脉冲效果到运行按钮 */
.run-btn {
    position: relative;
    overflow: hidden;
}

.run-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.run-btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0) translate(-50%, -50%);
        opacity: 1;
    }
    100% {
        transform: scale(20) translate(-50%, -50%);
        opacity: 0;
    }
}

/* 终端成功状态 */
.terminal-btn.success {
    background-color: var(--success);
    color: white;
}

/* 报告链接悬停效果 */
.report-links a {
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.1);
}

.report-links a:hover {
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

/* 表单字段聚焦效果 */
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
    to { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3); }
}

/* 模态框渐入动画 */
.modal {
    transition: opacity 0.3s ease;
}

.modal-content {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 进度条 - 修复版 */
.progress-bar-container {
    height: 4px;
    background-color: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin: 1rem 0;
    width: 100%;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    width: 0%;
    transition: width 0.5s ease-out;
    background-size: 200% 200%;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 确保进度条动画平滑 */
@media (prefers-reduced-motion: no-preference) {
    .progress-bar {
        transition: width 0.5s ease-out;
    }
}

/* 确保进度条在各种状态下的视觉反馈 */
.progress-bar.success {
    background: linear-gradient(90deg, var(--success-light), var(--success));
}

.progress-bar.error {
    background: linear-gradient(90deg, var(--error-light), var(--error));
}

/* 暗色模式切换 */
#theme-toggle {
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
}

#theme-toggle:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

#theme-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* 暗色模式 */
body.dark-mode {
    --bg-main: #0F172A;
    --bg-card: #1E293B;
    --bg-sidebar: #1E293B;
    --bg-terminal: #020617;
    
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-tertiary: #94A3B8;
    
    --gray-50: #1E293B;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748B;
    --gray-800: #E2E8F0;
    
    --primary-lighter: rgba(99, 102, 241, 0.2);
    
    color: var(--text-primary);
}

body.dark-mode .logo h1 {
    color: #818CF8;
}

body.dark-mode #theme-toggle {
    color: var(--gray-300);
}

body.dark-mode .list-item:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

body.dark-mode .list-item.selected {
    background-color: rgba(99, 102, 241, 0.15);
    border-left-color: var(--primary-light);
}

body.dark-mode #current-run-info {
    border-color: var(--gray-700);
}

body.dark-mode .warning-banner {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

body.dark-mode .modal-footer {
    background-color: var(--gray-800);
}

body.dark-mode .close-button:hover {
    background-color: var(--gray-700);
}

/* 按钮按下效果 */
.btn-primary:active,
.btn-secondary:active,
.btn-danger:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-sm);
}

/* 下拉菜单 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    min-width: 180px;
    background-color: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    z-index: 100;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--gray-100);
    text-decoration: none;
}

/* 快捷键提示 */
.shortcut-hint {
    display: inline-block;
    margin-left: auto;
    background-color: var(--gray-100);
    color: var(--gray-600);
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
}

body.dark-mode .dropdown-content {
    background-color: var(--gray-800);
    border-color: var(--gray-700);
}

body.dark-mode .dropdown-item:hover {
    background-color: var(--gray-700);
}

body.dark-mode .shortcut-hint {
    background-color: var(--gray-700);
    color: var(--gray-300);
}

/* 通知提示 */
#notification-center {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 9000;
}

.notification {
    background-color: white;
    border-left: 4px solid var(--primary);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    max-width: 350px;
    animation: slideInRight 0.3s ease;
    position: relative;
}

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

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

.notification.error {
    border-left-color: var(--error);
}

.notification-icon {
    margin-right: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.notification-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

.notification.success .notification-icon svg {
    color: var(--success);
}

.notification.warning .notification-icon svg {
    color: var(--warning);
}

.notification.error .notification-icon svg {
    color: var(--error);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: var(--gray-400);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-close:hover {
    color: var(--gray-600);
    background-color: var(--gray-100);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: var(--gray-300);
    width: 100%;
}

.notification-progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 100%;
}

.notification.success .notification-progress-bar {
    background-color: var(--success);
}

.notification.warning .notification-progress-bar {
    background-color: var(--warning);
}

.notification.error .notification-progress-bar {
    background-color: var(--error);
}

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

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

.notification.exit {
    animation: slideOutRight 0.3s ease forwards;
}

body.dark-mode .notification {
    background-color: var(--gray-800);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

body.dark-mode .notification-message {
    color: var(--gray-300);
}

body.dark-mode .notification-close:hover {
    background-color: var(--gray-700);
}

/* 针对多选框和选择过滤器的样式 */
.select-filter {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    border-bottom: 1px solid var(--gray-300);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-size: 0.875rem;
    color: var(--text-primary);
    background-color: white;
}

.select-filter:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 -1px 0 0 var(--primary-light);
}

.select-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    border-top: 1px solid var(--gray-300);
    background-color: var(--gray-50);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* 自动完成下拉菜单 */
.autocomplete-dropdown {
    background-color: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.autocomplete-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: var(--primary-lighter);
}

/* 步骤拖拽排序 */
.step-drag-handle {
    cursor: grab;
    color: var(--gray-500);
    padding: 0.25rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-drag-handle:hover {
    color: var(--primary);
}

.step-placeholder {
    border: 2px dashed var(--primary-light);
    background-color: var(--primary-lighter);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    transition: height 0.2s ease;
}

/* 步骤编辑器强化 */
.task-step-group {
    position: relative;
    padding-left: 2.5rem;
}

/* 粘性头部 */
.main-header {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* 增强表单验证反馈 */
input:invalid,
textarea:invalid,
select:invalid {
    border-color: var(--error);
}

input:invalid:focus,
textarea:invalid:focus,
select:invalid:focus {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.invalid-feedback {
    display: none;
    font-size: 0.75rem;
    color: var(--error);
    margin-top: 0.25rem;
}

input:invalid + .invalid-feedback,
textarea:invalid + .invalid-feedback,
select:invalid + .invalid-feedback {
    display: block;
}

/* 暗色模式增强 */
body.dark-mode .select-filter {
    background-color: var(--gray-800);
    border-color: var(--gray-700);
    color: var(--text-primary);
}

body.dark-mode .select-actions {
    background-color: var(--gray-800);
    border-color: var(--gray-700);
}

body.dark-mode .autocomplete-dropdown {
    background-color: var(--gray-800);
    border-color: var(--gray-700);
}

body.dark-mode .autocomplete-item:hover,
body.dark-mode .autocomplete-item.selected {
    background-color: var(--gray-700);
}

body.dark-mode .step-placeholder {
    border-color: var(--primary-light);
    background-color: rgba(99, 102, 241, 0.1);
}

/* 浏览器滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

body.dark-mode::-webkit-scrollbar-track {
    background: var(--gray-800);
}

body.dark-mode::-webkit-scrollbar-thumb {
    background: var(--gray-600);
}

body.dark-mode::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 50vh;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .main-content {
        height: 50vh;
    }
    
    .modal-content {
        width: 95%;
        margin: 2.5% auto;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    #notification-center {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .notification {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .sidebar-header {
        padding: 1rem;
    }
    
    .sidebar-nav {
        padding: 0.75rem;
    }
    
    .main-header {
        padding: 1rem;
    }
    
    .current-run-container {
        padding: 1rem;
    }
    
    .list-item .actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .terminal-container {
        min-height: 250px;
    }
    
    .report-links {
        flex-direction: column;
    }
    
    #theme-toggle {
        top: 0.75rem;
        right: 0.75rem;
    }
}

/* 小屏幕优化 */
@media (max-width: 640px) {
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group small {
        font-size: 0.7rem;
    }
    
    .task-step-group {
        padding-left: 2rem;
    }
    
    .terminal {
        font-size: 0.8rem;
    }
    
    .sidebar-header {
        padding: 0.75rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    #theme-toggle {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .notification {
        max-width: 100%;
        margin: 0 1rem;
    }
}

/* 动画细节优化 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 打印样式优化 */
@media print {
    .sidebar,
    .terminal-actions,
    button,
    .modal,
    #notification-center,
    #theme-toggle {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
    
    .main-content {
        width: 100%;
    }
    
    .terminal-container {
        border: 1px solid #000;
    }
    
    .terminal {
        color: #000;
        background-color: #fff;
    }
    
    .terminal div {
        color: #000 !important;
        background-color: transparent !important;
    }
}


/* === Excel上传增强功能样式 === */
/* 添加在style.css文件的末尾 */

/* Excel上传状态样式 */
#excel-upload-status {
  transition: all 0.3s ease;
  margin-top: 0.75rem; 
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

#excel-upload-status.info {
  background-color: var(--info-light);
  color: var(--info);
  padding: 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

#excel-upload-status.success {
  background-color: var(--success-light);
  color: var(--success);
  padding: 0.75rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

#excel-upload-status.error {
  background-color: var(--error-light);
  color: var(--error);
  padding: 0.75rem;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

#excel-upload-status.warning {
  background-color: var(--warning-light);
  color: var(--warning);
  padding: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* 上传进度条优化 */
#excel-upload-status .progress-bar-container {
  height: 6px;
  background-color: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.75rem;
  width: 100%;
}

#excel-upload-status .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  width: 0%;
  transition: width 0.3s ease-out;
  background-size: 200% 200%;
  animation: shimmer 2s infinite linear;
}

/* Excel帮助按钮样式 */
.excel-help-btn {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  margin-left: 0.5rem;
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.excel-help-btn:hover {
  color: var(--primary);
  background-color: var(--primary-lighter);
}

/* Excel帮助模态框样式 */
.excel-help-modal .modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: 70vh;
}

.excel-help-modal h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 1.1rem;
}

.excel-help-modal ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.excel-help-modal li {
  margin-bottom: 0.5rem;
}

.excel-example {
  margin: 1rem 0;
  padding: 1rem;
  background-color: var(--gray-50);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.excel-example table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.excel-example th {
  padding: 0.625rem;
  background-color: var(--primary-lighter);
  text-align: left;
  color: var(--primary-dark);
  font-weight: 600;
}

.excel-example td {
  padding: 0.625rem;
  border-top: 1px solid var(--gray-200);
}

.download-template {
  margin-top: 2rem;
  text-align: center;
}

.download-template a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--success-light);
  color: var(--success);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.download-template a:hover {
  background-color: var(--success);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 模板下载按钮样式 */
.template-download-btn {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

/* 优化Excel上传按钮 */
#upload-excel-btn {
  position: relative;
  overflow: hidden;
}

/* 添加微妙的闪光效果 */
@keyframes shine {
  0% { transform: translateX(-100%) rotate(30deg); }
  20%, 100% { transform: translateX(100%) rotate(30deg); }
}

/* 错误动画 */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* 高亮动画 */
.highlight {
  animation: highlight-fade 1.5s ease;
}

@keyframes highlight-fade {
  0% { background-color: var(--primary-lighter); }
  100% { background-color: transparent; }
}

/* 处理动画 */
.spin-icon {
  animation: spin 1.5s linear infinite;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 暗色模式适配 */
body.dark-mode .excel-example {
  background-color: var(--gray-800);
}

body.dark-mode .excel-example th {
  background-color: var(--gray-700);
}

body.dark-mode .excel-example td {
  border-color: var(--gray-700);
}

/* === Excel上传增强功能样式 === */

/* Excel上传状态样式 */
#excel-upload-status {
    transition: all 0.3s ease;
    margin-top: 0.75rem; 
    border-radius: var(--radius-md);
    font-size: 0.875rem;
  }
  
  #excel-upload-status.info {
    background-color: var(--info-light);
    color: var(--info);
    padding: 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
  }
  
  #excel-upload-status.success {
    background-color: var(--success-light);
    color: var(--success);
    padding: 0.75rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
  }
  
  #excel-upload-status.error {
    background-color: var(--error-light);
    color: var(--error);
    padding: 0.75rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
  }
  
  #excel-upload-status.warning {
    background-color: var(--warning-light);
    color: var(--warning);
    padding: 0.75rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
  }
  
  /* 上传进度条优化 */
  #excel-upload-status .progress-bar-container {
    height: 6px;
    background-color: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.75rem;
    width: 100%;
  }
  
  #excel-upload-status .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    width: 0%;
    transition: width 0.3s ease-out;
    background-size: 200% 200%;
    animation: shimmer 2s infinite linear;
  }
  
  /* Excel帮助按钮样式 */
  .excel-help-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    margin-left: 0.5rem;
    padding: 0.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }
  
  .excel-help-btn:hover {
    color: var(--primary);
    background-color: var(--primary-lighter);
  }
  
  /* Excel帮助模态框样式 */
  .excel-help-modal .modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 70vh;
  }
  
  .excel-help-modal h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 1.1rem;
  }
  
  .excel-help-modal ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .excel-help-modal li {
    margin-bottom: 0.5rem;
  }
  
  .excel-example {
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--gray-50);
    border-radius: var(--radius-md);
    overflow-x: auto;
  }
  
  .excel-example table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
  }
  
  .excel-example th {
    padding: 0.625rem;
    background-color: var(--primary-lighter);
    text-align: left;
    color: var(--primary-dark);
    font-weight: 600;
  }
  
  .excel-example td {
    padding: 0.625rem;
    border-top: 1px solid var(--gray-200);
  }
  
  .download-template {
    margin-top: 2rem;
    text-align: center;
  }
  
  .download-template a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--success-light);
    color: var(--success);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
  }
  
  .download-template a:hover {
    background-color: var(--success);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  /* 模板下载按钮样式 */
  .template-download-btn {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
  }
  
  /* 优化Excel上传按钮 */
  #upload-excel-btn {
    position: relative;
    overflow: hidden;
  }
  
  /* 添加微妙的闪光效果 */
  @keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    20%, 100% { transform: translateX(100%) rotate(30deg); }
  }
  
  /* 错误动画 */
  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
  }
  
  /* 高亮动画 */
  .highlight {
    animation: highlight-fade 1.5s ease;
  }
  
  @keyframes highlight-fade {
    0% { background-color: var(--primary-lighter); }
    100% { background-color: transparent; }
  }
  
  /* 处理动画 */
  .spin-icon {
    animation: spin 1.5s linear infinite;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* 暗色模式适配 */
  body.dark-mode .excel-example {
    background-color: var(--gray-800);
  }
  
  body.dark-mode .excel-example th {
    background-color: var(--gray-700);
  }
  
  body.dark-mode .excel-example td {
    border-color: var(--gray-700);
  }

