/* ========== 预测页面样式 ========== */

/* 页面主容器 */
.prediction-page {
    display: flex;
    min-height: calc(100vh - 70px);
    background: #f5f7fa;
    padding-top: 70px;
}

/* ========== 左侧边栏 ========== */
.prediction-sidebar {
    width: 280px;
    min-width: 280px;
    background: white;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    font-size: 24px;
}

.sidebar-subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
}

.sidebar-section {
    margin-bottom: 8px;
}

.sidebar-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    margin: 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.sidebar-nav-item:hover {
    background: #f3f4f6;
    color: #667eea;
}

.sidebar-nav-item.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 600;
}

.sidebar-nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sidebar-nav-item.disabled:hover {
    background: transparent;
    color: #4b5563;
}

.sidebar-nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-nav-item-content {
    flex: 1;
}

.sidebar-nav-item-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.sidebar-nav-item-desc {
    font-size: 12px;
    color: #9ca3af;
    margin: 2px 0 0 0;
}

.sidebar-nav-item.active .sidebar-nav-item-desc {
    color: #667eea;
    opacity: 0.8;
}

/* ========== 主内容区 ========== */
.prediction-main {
    flex: 1;
    margin-left: 280px;
    padding: 24px;
    overflow-y: auto;
}

.prediction-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* 页面标题 */
.prediction-page-header {
    background: white;
    border-radius: 12px;
    padding: 24px 30px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.prediction-page-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.prediction-page-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.prediction-page-title p {
    font-size: 14px;
    color: #6b7280;
    margin: 4px 0 0 0;
}

.prediction-page-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.prediction-page-badges {
    display: flex;
    gap: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge i {
    font-size: 8px;
}

.badge-lanthanide {
    background: #fef3c7;
    color: #92400e;
}

.badge-actinide {
    background: #dbeafe;
    color: #1e40af;
}

/* ========== 登录提示区域 ========== */
.login-required-container {
    background: white;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.login-required-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.login-required-icon i {
    font-size: 36px;
    color: white;
}

.login-required-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.login-required-text {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.login-required-hint {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 32px 0;
}

.login-required-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.login-required-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ========== 预测功能区 ========== */
.prediction-function-area {
    display: none;
}

.prediction-function-area.active {
    display: block;
}

/* 输入表单区域 */
.prediction-form-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-section {
    margin-bottom: 32px;
}

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

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.form-section-title i {
    color: #667eea;
}

/* 元素周期表选择器 */
.periodic-table-selector {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.element-legend {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #6b7280;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.lanthanide {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fcd34d;
}

.legend-color.actinide {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #93c5fd;
}

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

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

.element-group-title {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin: 0 0 12px 0;
}

.periodic-table-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.element-btn {
    width: 60px;
    height: 70px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    padding: 4px;
}

.element-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.element-btn.selected {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.element-btn.lanthanide {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
}

.element-btn.lanthanide:hover {
    border-color: #f59e0b;
}

.element-btn.lanthanide.selected {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
    color: white;
}

.element-btn.actinide {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #93c5fd;
}

.element-btn.actinide:hover {
    border-color: #3b82f6;
}

.element-btn.actinide.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    color: white;
}

.element-btn .element-number {
    font-size: 9px;
    opacity: 0.7;
}

.element-btn .element-symbol {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.element-btn .element-name {
    font-size: 10px;
    opacity: 0.8;
}

/* 选中的元素显示 */
.selected-element-display {
    display: none;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.selected-element-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.selected-element-symbol {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 700;
}

.selected-element-info {
    flex: 1;
}

.selected-element-name {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.selected-element-details {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* 氧化态选择器 */
.oxidation-state-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.oxidation-label {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

.oxidation-buttons {
    display: flex;
    gap: 12px;
}

.oxidation-btn {
    padding: 10px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.oxidation-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.oxidation-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

/* 配体输入区域 */
.input-method-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.input-method-tab {
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-method-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.input-method-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.ligand-input-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ligand-input-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
}

.ligand-info-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
}

.ligand-input-title {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.smiles-input-wrapper {
    display: flex;
    gap: 8px;
}

.smiles-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', monospace;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.smiles-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.smiles-input.valid {
    border-color: #10b981;
}

.smiles-input.invalid {
    border-color: #ef4444;
}

.smiles-validate-btn {
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.smiles-validate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.smiles-status {
    margin-top: 8px;
    font-size: 13px;
    min-height: 20px;
}

.smiles-status.valid {
    color: #10b981;
}

.smiles-status.invalid {
    color: #ef4444;
}

/* 分子结构预览 */
.molecule-preview {
    margin-top: 16px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    border: 2px dashed #e5e7eb;
}

.molecule-preview img {
    max-width: 100%;
    max-height: 200px;
}

.molecule-preview-placeholder {
    color: #9ca3af;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.molecule-preview-placeholder i {
    font-size: 32px;
}

/* 分子信息面板 */
.molecule-info-panel {
    background: white;
    border-radius: 8px;
    padding: 16px;
    min-height: 200px;
}

.molecule-info-placeholder {
    color: #9ca3af;
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.molecule-info-placeholder i {
    font-size: 32px;
}

/* 示例配体 */
.example-ligands {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.example-title {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.example-title i {
    color: #f59e0b;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.example-smiles-btn {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.example-smiles-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.example-smiles-btn .example-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.example-smiles-btn .example-smiles {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* JSME分子编辑器 */
.jsme-container {
    height: 350px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    overflow: hidden;
}

.jsme-loading {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
}

.jsme-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.jsme-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.jsme-btn.secondary {
    background: white;
    color: #4b5563;
    border: 2px solid #e5e7eb;
}

.jsme-btn:hover {
    transform: translateY(-1px);
}

/* 条件输入 */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.condition-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.condition-label {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 6px;
}

.condition-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.condition-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.condition-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.condition-input:disabled {
    background: #f3f4f6;
    color: #9ca3af;
}

.condition-unit {
    font-size: 14px;
    color: #6b7280;
    min-width: 50px;
}

.condition-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
}

.condition-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
}

.condition-hint {
    font-size: 12px;
    color: #9ca3af;
}

.condition-presets {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.preset-label {
    font-size: 13px;
    color: #6b7280;
}

.preset-btn {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

/* 提交按钮 */
.predict-btn-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f3f4f6;
}

.predict-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

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

.predict-btn.secondary {
    background: white;
    color: #4b5563;
    border: 2px solid #e5e7eb;
    box-shadow: none;
}

.predict-btn.secondary:hover {
    border-color: #667eea;
    color: #667eea;
}

.predict-btn i {
    font-size: 18px;
}

/* ========== 预测结果区域 ========== */
.prediction-results-container {
    display: none;
}

.prediction-results-container.active {
    display: block;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.results-title i {
    color: #10b981;
}

.results-actions {
    display: flex;
    gap: 12px;
}

.results-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.results-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.results-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.results-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 结果卡片网格 */
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.result-card.full-width {
    grid-column: 1 / -1;
}

.result-card.highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.result-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.result-card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.result-card-icon.metal {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.result-card-icon.ligand {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.result-card-icon.condition {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.result-card-icon.chart {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.result-card-icon.thermo {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.result-card-icon.history {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.result-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* 主要预测结果 */
.main-result {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
}

.main-result-value {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.main-result-label {
    font-size: 16px;
    color: #6b7280;
    margin: 8px 0 0 0;
}

.main-result-secondary {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.secondary-result {
    text-align: center;
}

.secondary-result-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.secondary-result-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* 信息表格 */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #f3f4f6;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 12px 0;
    font-size: 14px;
}

.info-table td:first-child {
    color: #6b7280;
    width: 40%;
}

.info-table td:last-child {
    color: #1f2937;
    font-weight: 500;
    text-align: right;
}

.info-table .smiles-cell {
    font-family: monospace;
    font-size: 11px;
    word-break: break-all;
}

/* 分子结构显示 */
.molecule-display {
    text-align: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.molecule-display img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
}

/* 热力学参数网格 */
.thermo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.thermo-item {
    text-align: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.thermo-value {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.thermo-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.thermo-unit {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* 图表容器 */
.chart-container {
    height: 300px;
    position: relative;
}

/* 历史记录表格 */
.history-table-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.history-table th {
    position: sticky;
    top: 0;
    background: #f9fafb;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #4b5563;
    border-bottom: 2px solid #e5e7eb;
}

.history-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.history-table tr:hover {
    background: #f9fafb;
}

.history-table .history-btn {
    padding: 4px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 12px;
}

.history-table .history-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

/* 加载状态 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f4f6;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: 20px;
    font-size: 16px;
    color: #4b5563;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .prediction-sidebar {
        width: 240px;
        min-width: 240px;
    }
    
    .prediction-main {
        margin-left: 240px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .ligand-input-container {
        grid-template-columns: 1fr;
    }
    
    .conditions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .example-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thermo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .prediction-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .prediction-main {
        margin-left: 0;
    }
    
    .prediction-page {
        flex-direction: column;
    }
    
    .conditions-grid {
        grid-template-columns: 1fr;
    }
    
    .main-result-secondary {
        flex-direction: column;
        gap: 20px;
    }
    
    .example-grid {
        grid-template-columns: 1fr;
    }
    
    .prediction-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .condition-presets {
        flex-wrap: wrap;
    }
}


/* ========== 新增样式 - 模式切换按钮 ========== */
.mode-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn i {
    font-size: 16px;
}

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

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

.mode-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* ========== SMILES输入组样式 ========== */
.smiles-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.smiles-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.smiles-input-wrapper label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.smiles-input-wrapper label i {
    color: #667eea;
}

.smiles-input-group {
    display: flex;
    gap: 12px;
}

.smiles-input-group input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', monospace;
    transition: all 0.2s ease;
}

.smiles-input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.smiles-input-group input.valid {
    border-color: #10b981;
    background: #f0fdf4;
}

.smiles-input-group input.invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.validate-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

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

.smiles-validation-status {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.smiles-validation-status.valid {
    background: #f0fdf4;
    color: #059669;
}

.smiles-validation-status.invalid {
    background: #fef2f2;
    color: #dc2626;
}

/* 分子预览区域 */
.molecule-preview {
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.molecule-preview img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.molecule-preview-placeholder {
    text-align: center;
    color: #9ca3af;
    padding: 20px;
}

.molecule-preview-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}

.molecule-preview-placeholder span {
    font-size: 14px;
}

/* 分子信息面板 */
.molecule-info-panel {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.molecule-info-panel h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.molecule-info-panel h4 i {
    color: #667eea;
}

.molecule-info-table {
    width: 100%;
    border-collapse: collapse;
}

.molecule-info-table td {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
}

.molecule-info-table td:first-child {
    font-weight: 600;
    color: #6b7280;
    width: 100px;
}

.molecule-info-table td:last-child {
    color: #1f2937;
    font-family: 'Consolas', 'Monaco', monospace;
}

.molecule-info-table tr:last-child td {
    border-bottom: none;
}

/* ========== 常用配体示例样式 ========== */
.common-ligands {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #f3f4f6;
}

.common-ligands-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.common-ligands-title i {
    color: #f59e0b;
}

.ligand-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ligand-example-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 18px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

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

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

.ligand-example-btn .ligand-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.ligand-example-btn .ligand-smiles {
    font-size: 11px;
    color: #9ca3af;
    font-family: 'Consolas', 'Monaco', monospace;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 实验条件设置样式 ========== */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.condition-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
}

.condition-item label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.condition-item label i {
    color: #667eea;
}

.slider-container {
    margin-bottom: 12px;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: all 0.2s ease;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.slider-value {
    text-align: right;
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
    margin-top: 8px;
}

.quick-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quick-value-btn {
    padding: 8px 14px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-value-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.quick-value-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

/* ========== 提交按钮样式 ========== */
.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f3f4f6;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #4b5563;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* ========== 绘制结构区域样式 ========== */
.draw-section-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.draw-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.draw-container label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.draw-container label i {
    color: #667eea;
}

.molecule-editor-container {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.draw-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

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

.action-btn.secondary {
    background: white;
    border: 2px solid #e5e7eb;
    color: #4b5563;
}

.action-btn.secondary:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* ========== 多选模式快捷按钮 ========== */
.multi-select-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 10px;
}

.multi-select-btn {
    padding: 10px 18px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.multi-select-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.multi-select-btn.lanthanide-btn:hover {
    border-color: #f59e0b;
    color: #f59e0b;
}

.multi-select-btn.actinide-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.multi-select-btn.clear-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* ========== 已选金属列表样式 ========== */
.selected-metals-list {
    margin-top: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.selected-metals-list h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-metals-list h4 i {
    color: #667eea;
}

.selected-metals-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.metal-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.metal-chip.lanthanide {
    border-color: #fcd34d;
    background: #fef3c7;
    color: #92400e;
}

.metal-chip.actinide {
    border-color: #93c5fd;
    background: #dbeafe;
    color: #1e40af;
}

.metal-chip .remove-metal {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    color: inherit;
    transition: all 0.2s ease;
}

.metal-chip .remove-metal:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* ========== 批量预测按钮样式 ========== */
.batch-predict-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

.batch-predict-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== 响应式补充 ========== */
@media (max-width: 1200px) {
    .smiles-input-row {
        grid-template-columns: 1fr;
    }
    
    .draw-section-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mode-selector {
        flex-direction: column;
    }
    
    .mode-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ligand-examples {
        flex-direction: column;
    }
    
    .ligand-example-btn {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-btn,
    .reset-btn,
    .batch-predict-btn {
        width: 100%;
    }
}


/* ========== 编辑器选择器样式 ========== */
.editor-selector {
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.editor-options {
    display: flex;
    gap: 10px;
}

.editor-option-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.editor-option-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.editor-option-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.editor-panel {
    position: relative;
    min-height: 400px;
}

.editor-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #667eea;
    font-size: 14px;
}

.editor-loading i {
    font-size: 24px;
}

.editor-loading.hidden {
    display: none;
}

/* 手动输入面板 */
.manual-input-container {
    padding: 24px;
}

.manual-input-container textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    resize: vertical;
    transition: all 0.2s ease;
}

.manual-input-container textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.manual-input-container textarea::placeholder {
    color: #9ca3af;
}

/* 编辑器错误回退 */
.editor-fallback {
    padding: 40px;
    text-align: center;
    color: #6b7280;
}

.editor-fallback i {
    font-size: 48px;
    color: #f59e0b;
    margin-bottom: 16px;
}

.editor-fallback p {
    margin: 8px 0;
}

.editor-fallback .fallback-hint {
    font-size: 13px;
    color: #9ca3af;
}

.fallback-btn {
    margin-top: 16px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* ========== 输入方法标签页样式增强 ========== */
.input-method-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.input-method-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-method-tab i {
    font-size: 16px;
}

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

.input-method-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ========== 配体输入容器样式 ========== */
.ligand-input-container {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.smiles-input-section,
.draw-input-section {
    display: block;
}

/* ========== 模式提示样式 ========== */
.mode-hint {
    font-size: 13px;
    font-weight: 400;
    color: #9ca3af;
    margin-left: 8px;
}

/* ========== 多金属对比结果样式增强 ========== */
.multi-result-section {
    display: none;
}

.multi-result-section.active {
    display: block;
}

.comparison-table-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table td {
    font-size: 14px;
    color: #1f2937;
}

.comparison-table tr:hover td {
    background: #f9fafb;
}

.comparison-table .metal-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-table .metal-symbol {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}

.comparison-table .metal-symbol.lanthanide {
    background: #fef3c7;
    color: #92400e;
}

.comparison-table .metal-symbol.actinide {
    background: #dbeafe;
    color: #1e40af;
}

/* ========== 图表容器样式 ========== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chart-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-card h4 i {
    color: #667eea;
}

.chart-container {
    height: 300px;
    position: relative;
}

/* ========== 统计摘要样式 ========== */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card .stat-icon i {
    font-size: 20px;
    color: white;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: #6b7280;
}

@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-summary {
        grid-template-columns: 1fr;
    }
    
    .editor-options {
        flex-direction: column;
    }
    
    .input-method-tabs {
        flex-direction: column;
    }
    
    .input-method-tab {
        width: 100%;
        justify-content: center;
    }
}

