/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 科技蓝紫色主题 */
    --primary-color: #00d4ff;
    --secondary-color: #6b5ce7;
    --accent-color: #00ffaa;
    --bg-dark: #0a0e27;
    --bg-darker: #060920;
    --surface: rgba(15, 23, 42, 0.7);
    --surface-light: rgba(30, 41, 59, 0.5);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #00ffaa 100%);
    --gradient-glow: linear-gradient(90deg, #00d4ff, #6b5ce7, #00ffaa);

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: 0 0 20px rgba(0, 212, 255, 0.5);

    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== 背景动画 ==================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* 分子结构动画 */
.molecule-container {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

/* 渐变光球 */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s infinite ease-in-out;
    opacity: 0.3;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-color), transparent);
    bottom: -250px;
    right: -250px;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, 50px) scale(1.1); }
    50% { transform: translate(-30px, 80px) scale(0.9); }
    75% { transform: translate(-60px, -40px) scale(1.05); }
}

/* ==================== 容器 ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* ==================== Header ==================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--surface);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen;
}

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

.logo-text h1 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text .highlight {
    color: var(--accent-color);
}

.subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    border-radius: 50px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.status-text {
    font-size: 0.875rem;
    color: var(--success);
    font-weight: 500;
}

/* ==================== 主要内容 ==================== */
.main-content {
    display: grid;
    gap: 2rem;
}

/* ==================== 面板 ==================== */
.panel {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.panel:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: var(--shadow-lg), var(--glow);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.panel-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    flex: 1;
}

.panel-header .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-header .btn-icon:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* ==================== 表单元素 ==================== */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.form-group label i {
    color: var(--primary-color);
}

.input-field {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--surface-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.input-field::placeholder {
    color: var(--text-secondary);
}

/* ==================== 选项卡 ==================== */
.input-method-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.875rem;
    background: var(--surface-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
    box-shadow: var(--glow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ==================== 药物输入列表 ==================== */
.drug-input-container {
    background: var(--bg-darker);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.drug-input-header {
    display: grid;
    grid-template-columns: 1fr 150px 80px;
    gap: 1rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.drug-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* 自定义滚动条 */
.drug-list::-webkit-scrollbar {
    width: 6px;
}

.drug-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.drug-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.drug-input-row {
    display: grid;
    grid-template-columns: 1fr 150px 80px;
    gap: 1rem;
    align-items: center;
}

.drug-input-row input {
    padding: 0.75rem 1rem;
    background: var(--surface-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
}

.drug-input-row input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-remove-drug {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    border-radius: 8px;
    color: var(--error);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-drug:hover {
    background: var(--error);
    color: white;
    transform: scale(1.1);
}

.btn-add-drug {
    width: 100%;
    padding: 0.875rem;
    background: var(--surface-light);
    border: 1px dashed rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-drug:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
}

/* ==================== CSV 上传 ==================== */
.upload-area {
    border: 2px dashed rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-darker);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.05);
}

.upload-area.dragover {
    border-color: var(--accent-color);
    background: rgba(0, 255, 170, 0.05);
}

.upload-area i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-area p {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.uploaded-file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    border-radius: 12px;
    margin-top: 1rem;
}

.uploaded-file-info i {
    font-size: 2rem;
    color: var(--success);
}

.uploaded-file-info span {
    color: var(--text-primary);
}

.uploaded-file-info #fileCount {
    color: var(--accent-color);
    font-weight: 600;
    margin-left: auto;
}

.uploaded-file-info .btn-remove {
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    border-radius: 8px;
    color: var(--error);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.uploaded-file-info .btn-remove:hover {
    background: var(--error);
    color: white;
}

/* ==================== 按钮 ==================== */
.btn-primary {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--gradient-accent);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--glow);
}

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

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ==================== 进度面板 ==================== */
.progress-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.progress-step {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface-light);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    opacity: 0.5;
}

.progress-step.active {
    opacity: 1;
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: var(--glow);
}

.progress-step.completed {
    opacity: 1;
    border-color: var(--success);
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.progress-step.active .step-icon {
    background: var(--primary-color);
    color: white;
    animation: pulse 1.5s infinite;
}

.progress-step.completed .step-icon {
    background: var(--success);
    color: white;
}

.step-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.step-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: var(--surface-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loading-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-accent);
    border-radius: 4px;
    transition: width 0.5s ease;
    animation: shimmer 2s infinite;
}

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

.progress-message {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ==================== 结果面板 ==================== */
.report-content {
    color: var(--text-primary);
    line-height: 1.8;
    max-width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
    word-break: break-word;
}

.report-content h1,
.report-content h2,
.report-content h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.report-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.report-content h2 {
    font-size: 1.5rem;
}

.report-content h3 {
    font-size: 1.25rem;
}

.report-content p {
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.report-content ul,
.report-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.report-content li {
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.report-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--surface-light);
    border-radius: 12px;
    overflow: hidden;
    table-layout: auto;
    max-width: 100%;
}

.report-content table td {
    max-width: 300px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.report-content th,
.report-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-content th {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

.report-content tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.report-content code {
    background: var(--surface-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
    word-break: break-all;
}

.report-content pre {
    background: var(--surface-light);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    max-width: 100%;
}

.report-content pre code {
    background: none;
    padding: 0;
    color: var(--accent-color);
    word-break: normal;
    white-space: pre-wrap;
}

.report-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-left: 0;
    margin-right: 0;
    color: var(--text-secondary);
    font-style: italic;
}

.report-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.report-content a:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.report-content blockquote a {
    color: var(--accent-color);
    font-style: normal;
    font-weight: 500;
}

.report-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* ==================== Footer ==================== */
.footer {
    margin-top: 3rem;
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer i {
    color: var(--primary-color);
    margin: 0 0.25rem;
}

.divider {
    margin: 0 1rem;
    color: rgba(255, 255, 255, 0.2);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-citation {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.footer-citation a {
    color: var(--accent-color);
    font-style: italic;
}

/* ==================== Toast 通知 ==================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--surface);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.toast.success i {
    color: var(--success);
}

.toast.error i {
    color: var(--error);
}

/* ==================== 疾病模糊搜索下拉 ==================== */
.disease-search-wrapper {
    position: relative;
}

.disease-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-darker);
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 12px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: var(--shadow-lg), 0 0 12px rgba(0, 212, 255, 0.15);
}

.disease-dropdown.visible {
    display: block;
}

.disease-dropdown::-webkit-scrollbar {
    width: 6px;
}

.disease-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.disease-dropdown::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.disease-option {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.disease-option:last-child {
    border-bottom: none;
}

.disease-option:hover,
.disease-option.active {
    background: rgba(0, 212, 255, 0.12);
    color: var(--primary-color);
}

.disease-option mark {
    background: transparent;
    color: var(--accent-color);
    font-weight: 700;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .progress-steps {
        grid-template-columns: 1fr;
    }

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

    .drug-input-header {
        display: none;
    }
}

/* ==================== 自动推理模式样式 ==================== */
.auto-inference-info {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(138, 43, 226, 0.08));
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.auto-inference-info i.fa-robot {
    font-size: 2.5rem;
    color: var(--primary-color);
    display: block;
    margin: 0 auto 1rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.auto-inference-info .info-text {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
}

.auto-inference-info .info-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.settings-row label {
    color: var(--text-primary);
    font-weight: 600;
    flex: 0 0 auto;
}

.select-field {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-darker);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s;
    cursor: pointer;
}

.select-field:hover {
    border-color: var(--primary-color);
}

.select-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    margin-top: 1rem;
}

.note i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==================== 数据来源切换 ==================== */
.data-source-toggle {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.toggle-btn {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.toggle-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.toggle-btn.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(138, 43, 226, 0.2));
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.toggle-btn i {
    font-size: 1.2rem;
}

/* ==================== 模式内容 ==================== */
.mode-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.mode-content.active {
    display: block;
}

.mode-hint {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(138, 43, 226, 0.1);
    border-left: 3px solid var(--accent-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-hint i {
    color: var(--accent-color);
}

/* ==================== 自定义上传容器 ==================== */
.custom-upload-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.upload-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upload-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-label i {
    color: var(--primary-color);
}

.upload-label .required {
    color: #ff6b6b;
    font-weight: 700;
}

.file-upload-area {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-area:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: var(--primary-color);
}

.file-upload-area.dragover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-color);
    transform: scale(1.02);
}

.file-upload-area i {
    font-size: 2.5rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.75rem;
}

.file-upload-area p {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.file-upload-area .upload-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
}

.file-info i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.file-info .file-name {
    flex: 1;
    color: var(--text-primary);
    font-weight: 600;
}

.file-info .btn-remove-file {
    padding: 0.5rem;
    background: rgba(255, 107, 107, 0.2);
    border: none;
    border-radius: 6px;
    color: #ff6b6b;
    cursor: pointer;
    transition: all 0.2s;
}

.file-info .btn-remove-file:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: scale(1.1);
}

/* ==================== 示例下载 ==================== */
.example-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(138, 43, 226, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.btn-download-example {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-download-example:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-download-example i {
    font-size: 1.1rem;
}

.example-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.example-hint i {
    color: #ffd93d;
}

/* ==================== 上传校验结果 ==================== */
.upload-validation-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.06);
    margin-top: 0.5rem;
}

.upload-validation-result .validation-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.upload-validation-result .validation-details {
    flex: 1;
}

.upload-validation-result .validation-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.25rem 0;
}

.upload-validation-result .validation-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ==================== 分析参数 ==================== */
.analysis-note {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* ==================== Language Toggle Button ==================== */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 8px 18px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.lang-toggle:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    transform: translateY(-1px);
}

/* ==================== 响应式优化 ==================== */
@media (max-width: 768px) {
    .data-source-toggle {
        flex-direction: column;
    }

    .toggle-btn {
        width: 100%;
    }

    .lang-toggle {
        top: 10px;
        right: 10px;
        padding: 6px 14px;
        font-size: 12px;
    }
}
