body {
    background-color: #FFF9F0;
    color: #000;
}

/* 所有标题设置为黑色 */

h1, h2, h3, h4, h5, h6 {
    color: #000;
}

.card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.table th, .table td {
    vertical-align: middle;
    color: #000;
}

/* 分子信息弹框样式 */

.molecule-modal .modal-xl {
    max-width: 1200px;
}

.molecule-modal .nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.molecule-modal .nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.molecule-modal .nav-tabs .nav-link:hover {
    border-color: #007bff;
    color: #007bff;
}

.molecule-modal .nav-tabs .nav-link.active {
    border-color: #007bff;
    color: #007bff;
    background-color: transparent;
}

.molecule-modal .tab-content {
    padding: 1.5rem 0;
}

.molecule-modal .card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.molecule-modal .card-header {
    background-color: #FFF9F0;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.molecule-modal .table th {
    background-color: #FFF9F0;
    font-weight: 600;
    color: #495057;
}

.molecule-modal .table td {
    vertical-align: middle;
}

.molecule-modal .molecule-viewer {
    background: linear-gradient(135deg, #FFF9F0 0%, #e9ecef 100%);
    border-radius: 0.5rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.molecule-modal .spectrum-chart {
    border-radius: 0.5rem;
    overflow: hidden;
}

.molecule-modal .network-graph {
    border-radius: 0.5rem;
    overflow: hidden;
}

.molecule-modal .loading-spinner {
    color: #007bff;
    font-size: 2rem;
}

.molecule-modal .no-data {
    color: #6c757d;
    text-align: center;
    padding: 2rem;
}

.molecule-modal .no-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 响应式设计 */

@media (max-width: 768px) {
    .molecule-modal .modal-xl {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .molecule-modal .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .molecule-modal .tab-content {
        padding: 1rem 0;
    }
}

/* 图表容器样式 */

.chart-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.chart-container canvas {
    border-radius: 0.5rem;
}

/* 分子结构查看器样式 */

.molecule-viewer-3d {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border-radius: 0.5rem;
    background: white;
}

/* 数据表格样式优化 */

.molecule-data-table {
    font-size: 0.9rem;
}

.molecule-data-table th {
    white-space: nowrap;
    min-width: 120px;
}

.molecule-data-table td {
    word-break: break-word;
    max-width: 200px;
}

/* 标签页动画 */

.tab-pane.fade {
    transition: opacity 0.3s ease-in-out;
}

.tab-pane.fade.show {
    opacity: 1;
}

/* 按钮样式 */

.molecule-modal .btn-export {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.molecule-modal .btn-export:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

/* 图标样式 */

.molecule-modal .nav-link i {
    margin-right: 0.5rem;
}

.molecule-modal .card-header i {
    margin-right: 0.5rem;
    color: #007bff;
}

/* 数据高亮 */

.molecule-modal .highlight {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-weight: 500;
}

/* 加载状态 */

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 0.5rem;
}

.loading-overlay .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* 分页容器样式 */

.pagination-container {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.pagination {
    margin-bottom: 0.5rem;
}

.pagination .page-item .page-link {
    color: #007bff;
    border-radius: 0.2rem;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
}

.pagination .page-item .page-link:hover {
    background-color: #f8f9fa;
    color: #0056b3;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link:hover {
    background-color: #0069d9;
    color: white;
}

/* 表格样式优化 */

.table-responsive {
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom-width: 1px;
    font-weight: 600;
    white-space: nowrap;
    color: #495057;
}

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* 客服邮箱浮框样式 */

.customer-service-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 320px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 1.5s ease;
}

.service-icon:hover::before {
    left: 100%;
}

.service-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.service-icon i {
    color: white;
    font-size: 24px;
    z-index: 1;
    position: relative;
}

.service-content {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 320px;
    background: #FFF9F0;
    border: 1px solid #e0d8d0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: scale(0) translateY(20px);
    transform-origin: bottom right;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-content.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 10px;
    border-bottom: 1px solid #e0d8d0;
    background: linear-gradient(135deg, #f8f4ed 0%, #e0d8d0 100%);
    border-radius: 12px 12px 0 0;
}

.service-header h6 {
    margin: 0;
    color: #355e3b;
    font-weight: 600;
    font-size: 16px;
}

.service-header i {
    margin-right: 8px;
    color: #007bff;
}

.close-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #dc3545;
}

.service-body {
    padding: 20px;
}

.service-desc {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
}

.contact-info {
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.contact-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-1px);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: #007bff;
    margin-right: 10px;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.contact-item span {
    flex: 1;
    color: #000;
    font-weight: 500;
    font-size: 14px;
}

.copy-btn {
    background: #e9ecef;
    border: none;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #007bff;
    color: white;
    transform: scale(1.1);
}

.service-time {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

.service-time i {
    color: #007bff;
    margin-right: 8px;
    font-size: 12px;
}

.service-time small {
    color: #495057;
    font-size: 12px;
}

/* 响应式设计 */

@media (max-width: 768px) {
    .customer-service-float {
        bottom: 15px;
        right: 15px;
        max-width: 280px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 20px;
    }
    
    .service-content {
        width: 280px;
    }
    
    .service-header {
        padding: 12px 15px 8px;
    }
    
    .service-body {
        padding: 15px;
    }
}

/* 复制成功提示动画 */

.copy-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    z-index: 10000;
    font-size: 14px;
    opacity: 0;
    animation: copyNotification 2s ease-in-out;
}

@keyframes copyNotification {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    15%, 85% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}
