/* ==================================================================== */
/*  SNPs_database 页面样式（从模板抽出，内容一字未改）                   */
/*  原模板：SNP/templates/SNP/SNPs_database.html                       */
/*  - 第一段 style：原行 32-959                                         */
/*  - 第二段 style：原行 960-2212                                       */
/* ==================================================================== */

/* ===================== Block 1 (原 32-959) ===================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #ffffff; min-height: 100vh; padding: 20px; }

        .main-container {
            max-width: 1200px;
            margin: 20px auto;
            background: white;
            border-radius: 20px;
            overflow: visible;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        }

        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 30px;
            text-align: center;
            color: white;
        }

        .header h1 {
            font-size: 2.8em;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .header p {
            font-size: 20px;
            opacity: 0.9;
            font-weight: 300;
        }

        .tab-container {
            background: #f8f9fa;
            border-bottom: 1px solid #e9ecef;
        }

        .tab-buttons {
            display: flex;
            max-width: 1200px;
            margin: 0 auto;
        }

        .tab-button {
            flex: 1;
            padding: 20px 30px;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 20px;
            font-weight: 600;
            color: #6c757d;
            transition: all 0.3s ease;
            border-bottom: 3px solid transparent;
            position: relative;
        }

        .tab-button:hover {
            background: rgba(102, 126, 234, 0.1);
            color: #667eea;
        }

        .tab-button.active {
            color: #667eea;
            border-bottom-color: #667eea;
            background: white;
        }

        .tab-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .tab-button.active::before {
            opacity: 0.05;
        }

        .tab-content {
            display: none;
            padding: 40px;
            max-width: 1200px;
            margin: 0 auto;
        }

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

        .section {
            background: white;
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            border-left: 5px solid #667eea;
        }

        .section h3 {
            color: #2c3e50;
            margin-bottom: 20px;
            font-size: 1.5em;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .query-section {
            border-left-color: #e74c3c;
        }

        .query-section h3 {
            color: #e74c3c;
        }

        .results-section {
            border-left-color: #27ae60;
        }

        .results-section h3 {
            color: #27ae60;
        }

        /* 查询表单样式 */
        .query-form {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-bottom: 30px;
        }

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

        .form-group label {
            font-weight: 600;
            color: #2c3e50;
            font-size: 16px;
        }

        .form-group input, .form-group select {
            padding: 12px 15px;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }

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

        /* 两列表单组样式 */
        .form-group-double {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .form-group-double .form-item {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-group-double .form-item label {
            font-weight: 600;
            color: #2c3e50;
            font-size: 16px;
        }

        .form-group-double .form-item input, .form-group-double .form-item select {
            padding: 12px 15px;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }

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

        .range-inputs {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 10px;
            align-items: center;
        }

        .range-inputs span {
            text-align: center;
            color: #6c757d;
            font-weight: 500;
        }

        /* 按钮样式 */
        .btn {
            padding: 12px 25px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }

        .btn-primary {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .btn-secondary {
            background: linear-gradient(45deg, #95a5a6, #7f8c8d);
            color: white;
        }

        .btn-secondary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
        }

        .btn-danger {
            background: linear-gradient(45deg, #e74c3c, #c0392b);
            color: white;
        }

        .btn-danger:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
        }

        .btn-success {
            background: linear-gradient(45deg, #27ae60, #2ecc71);
            color: white;
        }

        .btn-success:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
        }

        /* 新的按钮组布局 */
        .btn-group-row {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin: 15px 0;
            align-items: center;
        }

        .btn-group-row .btn {
            flex: 1;
            min-width: 140px;
            justify-content: center;
        }

        /* 导出按钮特殊样式 */
        .btn-export {
            flex: 2;
            background: linear-gradient(45deg, #27ae60, #2ecc71);
            color: white;
            font-weight: 700;
        }

        .btn-export:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
        }

        /* 原有样式保持不变 */
        textarea {
            width: 100%;
            height: 200px;
            padding: 15px;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
            font-family: 'Courier New', monospace;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }

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

        .upload-area {
            border: 3px dashed #667eea;
            border-radius: 12px;
            padding: 40px 20px;
            text-align: center;
            background: #f8f9fa;
            margin: 20px 0;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .upload-area:hover {
            border-color: #764ba2;
            background: #f0f3ff;
        }

        .upload-area.dragover {
            border-color: #27ae60;
            background: #f0fdf4;
            transform: scale(1.02);
        }

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

        .upload-text {
            font-size: 16px;
            color: #2c3e50;
        }

        .upload-text strong {
            color: #667eea;
        }

        .upload-text small {
            color: #6c757d;
            font-size: 16px;
        }

        .file-info {
            background: #d4edda;
            border: 1px solid #c3e6cb;
            border-radius: 8px;
            padding: 12px 15px;
            margin: 15px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .file-name {
            font-weight: 600;
            color: #155724;
        }

        .remove-file {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 16px;
            padding: 2px 5px;
        }

        .alert {
            padding: 15px 20px;
            border-radius: 8px;
            margin: 15px 0;
            border-left: 4px solid;
        }

        .alert-success {
            background: #d4edda;
            border-left-color: #28a745;
            color: #155724;
        }

        .alert-error {
            background: #f8d7da;
            border-left-color: #dc3545;
            color: #721c24;
        }

        .alert-warning {
            background: #fff3cd;
            border-left-color: #ffc107;
            color: #856404;
        }

        .alert-info {
            background: #d1ecf1;
            border-left-color: #17a2b8;
            color: #0c5460;
        }

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

        .modal-content {
            background-color: #fefefe;
            margin: 10% auto;
            padding: 30px;
            border: none;
            border-radius: 15px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.2);
            animation: slideIn 0.3s ease;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #f1f3f4;
        }

        .modal-header h3 {
            margin: 0;
            color: #2c3e50;
            font-size: 1.4em;
        }

        .close {
            color: #aaa;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s;
        }

        .close:hover {
            color: #dc3545;
        }

        .export-options {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .export-option {
            display: flex;
            align-items: center;
            padding: 15px;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .export-option:hover {
            border-color: #667eea;
            background: #f8f9fa;
        }

        .export-option.selected {
            border-color: #667eea;
            background: linear-gradient(135deg, #f0f3ff 0%, #e8f4fd 100%);
        }

        .export-option input[type="radio"] {
            margin-right: 12px;
            transform: scale(1.2);
        }

        .export-option-content {
            flex: 1;
        }

        .export-option-title {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 5px;
        }

        .export-option-desc {
            color: #6c757d;
            font-size: 16px;
            line-height: 1.4;
        }

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

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

        /* 表格样式 */
        .table-container {
            overflow-x: auto;
            margin: 20px 0;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            background: white;
        }

        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin: 0;
            background: white;
            font-size: 16px;
            min-width: 1200px;
        }

        .data-table th {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            padding: 15px 10px;
            text-align: center;
            font-weight: 600;
            font-size: 16px;
            line-height: 1.2;
            white-space: nowrap;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .data-table td {
            padding: 12px 10px;
            text-align: center;
            border-bottom: 1px solid #e9ecef;
            font-size: 16px;
            white-space: nowrap;
        }

        .data-table tr:nth-child(even) {
            background: #f8f9fa;
        }

        .data-table tr:hover {
            background: #e8f4fd;
            transform: scale(1.01);
            transition: all 0.2s ease;
        }

        .rank-excellent {
            background: #d4edda !important;
            font-weight: 600;
        }

        .rank-good {
            background: #fff3cd !important;
        }

        .rank-poor {
            background: #f8d7da !important;
        }

        .highlight-row {
            background: #fef2f2 !important;
            border: 2px solid #ef4444 !important;
        }

        /* 参数显示 */
        .parameter {
            margin: 10px 0;
            padding: 15px 20px;
            background: #f8f9fa;
            border-radius: 10px;
            border-left: 4px solid #667eea;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .parameter-name {
            font-weight: 600;
            color: #2c3e50;
            font-size: 16px;
        }

        .parameter-value {
            font-size: 16px;
            font-weight: 700;
            color: #667eea;
            font-family: 'Courier New', monospace;
        }

        /* 组合结果 */
        .combined-results {
            background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
            padding: 25px;
            border-radius: 15px;
            margin-top: 25px;
            border: 2px solid #3498db;
        }

        .combined-header {
            font-size: 20px;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 20px;
            text-align: center;
        }

        .selected-results {
            background: #fef2f2;
            border: 2px solid #fecaca;
            border-radius: 15px;
            margin-top: 25px;
            overflow: hidden;
        }

        .selected-header {
            background: linear-gradient(45deg, #ef4444, #dc2626);
            color: white;
            padding: 20px 25px;
            font-weight: 700;
            font-size: 20px;
        }

        .selected-content {
            padding: 25px;
            background: white;
        }

        /* 选择功能 */
        .selection-section {
            background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
            padding: 25px;
            border-radius: 15px;
            margin: 25px 0;
            border-left: 5px solid #ef4444;
        }

        .selection-controls {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }

        .selection-input {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .selection-input input {
            width: 80px;
            padding: 10px 15px;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
            font-size: 16px;
            text-align: center;
        }

        .selection-input input:focus {
            outline: none;
            border-color: #ef4444;
        }

        /* 图表容器样式 */
        .chart-container {
            background: white;
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            margin: 20px 0;
        }

        .chart-container h4 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 20px;
            text-align: center;
            border-bottom: 2px solid #f1f3f4;
            padding-bottom: 10px;
        }

        .chart-container canvas {
            max-width: 100%;
            height: auto;
            border: 1px solid #e9ecef;
            border-radius: 8px;
        }

        .chart-stats {
            margin-top: 15px;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 3px solid #667eea;
        }

        .chart-description {
            margin-top: 15px;
            padding: 15px;
            background: #fff3cd;
            border-radius: 8px;
            color: #856404;
            font-size: 16px;
            line-height: 1.5;
        }

        /* 统计组样式 */
        .stat-group {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 12px;
            border-left: 4px solid #667eea;
        }

        .stat-group h5 {
            margin-bottom: 15px;
            font-size: 20px;
            font-weight: 600;
        }

        .stat-item {
            margin: 8px 0;
            padding: 5px 0;
            font-size: 16px;
            color: #2c3e50;
            border-bottom: 1px solid #e9ecef;
        }

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

        /* 响应式设计 */
        @media (max-width: 768px) {
            .tab-buttons {
                flex-direction: column;
            }

            .tab-button {
                border-bottom: none;
                border-right: 3px solid transparent;
            }

            .tab-button.active {
                border-right-color: #667eea;
                border-bottom-color: transparent;
            }

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

            .btn-group-row {
                flex-direction: column;
            }

            .btn {
                justify-content: center;
                min-width: auto;
            }

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

            .chart-container h4 {
                font-size: 20px;
            }

            .chart-container canvas {
                height: 200px !important;
            }

            .stat-group {
                padding: 15px;
            }
        }

        /* 加载动画 */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        /* 统计卡片 */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 25px 0;
        }

        .stat-card {
            background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
            color: white;
            padding: 25px;
            border-radius: 15px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
        }

        .stat-number {
            font-size: 2.5em;
            font-weight: 700;
            margin-bottom: 5px;
            font-family: 'Courier New', monospace;
        }

        .stat-label {
            font-size: 20px;
            opacity: 0.9;
        }

        /* 返回顶部按钮 */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
            transition: all 0.3s ease;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .back-to-top.show {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
            background: linear-gradient(45deg, #764ba2, #667eea);
        }

        .back-to-top:active {
            transform: translateY(-1px);
        }

        @media (max-width: 768px) {
            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 45px;
                height: 45px;
                font-size: 20px;
            }
        }

        /* 分析功能按钮统一配色 */
        #analysis-tab .btn-primary,
        #analysis-tab .btn-secondary {
            background: linear-gradient(45deg, #6b7280, #4b5563);
            color: white;
        }

        #analysis-tab .btn-primary:hover,
        #analysis-tab .btn-secondary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(107, 114, 128, 0.4);
        }

        /* 响应式图表布局 */
        @media (max-width: 1200px) {
            .chart-container {
                margin: 15px 0;
                padding: 15px;
            }

            .chart-container h4 {
                font-size: 20px;
            }
        }

.gradient-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}


/* ===================== Block 2 (原 960-2212) ===================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #ffffff; min-height: 100vh; padding: 20px; }

        .main-container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            overflow: visible;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        }

        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 30px;
            text-align: center;
            color: white;
        }

        .header h1 {
            font-size: 2.8em;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .header p {
            font-size: 20px;
            opacity: 0.9;
            font-weight: 300;
        }

        .tab-container {
            background: #f8f9fa;
            border-bottom: 1px solid #e9ecef;
        }

        .tab-buttons {
            display: flex;
            max-width: 1200px;
            margin: 0 auto;
        }

        .tab-button {
            flex: 1;
            padding: 20px 30px;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 20px;
            font-weight: 600;
            color: #6c757d;
            transition: all 0.3s ease;
            border-bottom: 3px solid transparent;
            position: relative;
        }

        .tab-button:hover {
            background: rgba(102, 126, 234, 0.1);
            color: #667eea;
        }

        .tab-button.active {
            color: #667eea;
            border-bottom-color: #667eea;
            background: white;
        }

        .tab-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .tab-button.active::before {
            opacity: 0.05;
        }

        .tab-content {
            display: none;
            padding: 40px;
            max-width: 1200px;
            margin: 0 auto;
        }

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

        .section {
            background: white;
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            border-left: 5px solid #667eea;
        }

        .section h3 {
            color: #2c3e50;
            margin-bottom: 20px;
            font-size: 1.5em;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .query-section {
            border-left-color: #e74c3c;
        }

        .query-section h3 {
            color: #e74c3c;
        }

        .results-section {
            border-left-color: #27ae60;
        }

        .results-section h3 {
            color: #27ae60;
        }

        .paternity-section {
            border-left-color: #8e44ad;
        }

        .paternity-section h3 {
            color: #8e44ad;
        }

        /* Query form styles */
        .query-form {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-bottom: 30px;
        }

        /* ===== New CSS additions ===== */
        /* Query form optimization styles */
        .query-form-container {
            background: white;
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .query-section-group {
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            border: 2px solid #e9ecef;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .query-section-title {
            font-size: 16px;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #667eea;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .query-form-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 15px;
            margin-bottom: 15px;
        }

        .query-form-row-2 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 15px;
        }

        .query-form-row-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 15px;
        }

        .query-form-row-4 {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            margin-bottom: 15px;
        }

        @media (max-width: 1200px) {
            .query-form-row-4 {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {

            .query-form-row,
            .query-form-row-2,
            .query-form-row-3,
            .query-form-row-4 {
                grid-template-columns: 1fr;
            }
        }

        /* ===== End of new CSS ===== */

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

        .form-group label {
            font-weight: 600;
            color: #2c3e50;
            font-size: 16px;
        }

        .form-group input,
        .form-group select {
            padding: 12px 15px;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }

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

        /* Two-column form group styles */
        .form-group-double {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .form-group-double .form-item {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-group-double .form-item label {
            font-weight: 600;
            color: #2c3e50;
            font-size: 16px;
        }

        .form-group-double .form-item input,
        .form-group-double .form-item select {
            padding: 12px 15px;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }

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

        .range-inputs {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 10px;
            align-items: center;
        }

        .range-inputs span {
            text-align: center;
            color: #6c757d;
            font-weight: 500;
        }

        /* Button styles */
        .btn {
            padding: 12px 25px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }

        .btn-primary {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .btn-secondary {
            background: linear-gradient(45deg, #95a5a6, #7f8c8d);
            color: white;
        }

        .btn-secondary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
        }

        .btn-danger {
            background: linear-gradient(45deg, #e74c3c, #c0392b);
            color: white;
        }

        .btn-danger:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
        }

        .btn-success {
            background: linear-gradient(45deg, #27ae60, #2ecc71);
            color: white;
        }

        .btn-success:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
        }

        .btn-paternity {
            background: linear-gradient(45deg, #8e44ad, #9b59b6);
            color: white;
        }

        .btn-paternity:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(142, 68, 173, 0.4);
        }

        /* New button group layout */
        .btn-group-row {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin: 15px 0;
            align-items: center;
        }

        .btn-group-row .btn {
            flex: 1;
            min-width: 140px;
            justify-content: center;
        }

        /* Export button special styles */
        .btn-export {
            flex: 2;
            background: linear-gradient(45deg, #27ae60, #2ecc71);
            color: white;
            font-weight: 700;
        }

        .btn-export:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
        }

        /* Original styles remain unchanged */
        textarea {
            width: 100%;
            height: 200px;
            padding: 15px;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
            font-family: 'Courier New', monospace;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }

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

        .upload-area {
            border: 3px dashed #667eea;
            border-radius: 12px;
            padding: 40px 20px;
            text-align: center;
            background: #f8f9fa;
            margin: 20px 0;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .upload-area:hover {
            border-color: #764ba2;
            background: #f0f3ff;
        }

        .upload-area.dragover {
            border-color: #27ae60;
            background: #f0fdf4;
            transform: scale(1.02);
        }

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

        .upload-text {
            font-size: 16px;
            color: #2c3e50;
        }

        .upload-text strong {
            color: #667eea;
        }

        .upload-text small {
            color: #6c757d;
            font-size: 16px;
        }

        .file-info {
            background: #d4edda;
            border: 1px solid #c3e6cb;
            border-radius: 8px;
            padding: 12px 15px;
            margin: 15px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .file-name {
            font-weight: 600;
            color: #155724;
        }

        .remove-file {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 16px;
            padding: 2px 5px;
        }

        .alert {
            padding: 15px 20px;
            border-radius: 8px;
            margin: 15px 0;
            border-left: 4px solid;
        }

        .alert-success {
            background: #d4edda;
            border-left-color: #28a745;
            color: #155724;
        }

        .alert-error {
            background: #f8d7da;
            border-left-color: #dc3545;
            color: #721c24;
        }

        .alert-warning {
            background: #fff3cd;
            border-left-color: #ffc107;
            color: #856404;
        }

        .alert-info {
            background: #d1ecf1;
            border-left-color: #17a2b8;
            color: #0c5460;
        }

        /* Modal styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.5);
            animation: fadeIn 0.3s ease;
        }

        .modal-content {
            background-color: #fefefe;
            margin: 10% auto;
            padding: 30px;
            border: none;
            border-radius: 15px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            animation: slideIn 0.3s ease;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #f1f3f4;
        }

        .modal-header h3 {
            margin: 0;
            color: #2c3e50;
            font-size: 1.4em;
        }

        .close {
            color: #aaa;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s;
        }

        .close:hover {
            color: #dc3545;
        }

        .export-options {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .export-option {
            display: flex;
            align-items: center;
            padding: 15px;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .export-option:hover {
            border-color: #667eea;
            background: #f8f9fa;
        }

        .export-option.selected {
            border-color: #667eea;
            background: linear-gradient(135deg, #f0f3ff 0%, #e8f4fd 100%);
        }

        .export-option input[type="radio"] {
            margin-right: 12px;
            transform: scale(1.2);
        }

        .export-option-content {
            flex: 1;
        }

        .export-option-title {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 5px;
        }

        .export-option-desc {
            color: #6c757d;
            font-size: 16px;
            line-height: 1.4;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

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

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        /* Table styles */
        .table-container {
            overflow-x: auto;
            margin: 20px 0;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            background: white;
        }

        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin: 0;
            background: white;
            font-size: 16px;
            min-width: 1200px;
        }

        .data-table th {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            padding: 15px 10px;
            text-align: center;
            font-weight: 600;
            font-size: 16px;
            line-height: 1.2;
            white-space: nowrap;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .data-table td {
            padding: 12px 10px;
            text-align: center;
            border-bottom: 1px solid #e9ecef;
            font-size: 16px;
            white-space: nowrap;
        }

        .data-table tr:nth-child(even) {
            background: #f8f9fa;
        }

        .data-table tr:hover {
            background: #e8f4fd;
            transform: scale(1.01);
            transition: all 0.2s ease;
        }

        .rank-excellent {
            background: #d4edda !important;
            font-weight: 600;
        }

        .rank-good {
            background: #fff3cd !important;
        }

        .rank-poor {
            background: #f8d7da !important;
        }

        .highlight-row {
            background: #fef2f2 !important;
            border: 2px solid #ef4444 !important;
        }

        /* Parameter display */
        .parameter {
            margin: 10px 0;
            padding: 15px 20px;
            background: #f8f9fa;
            border-radius: 10px;
            border-left: 4px solid #667eea;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .parameter-name {
            font-weight: 600;
            color: #2c3e50;
            font-size: 16px;
        }

        .parameter-value {
            font-size: 16px;
            font-weight: 700;
            color: #667eea;
            font-family: 'Courier New', monospace;
        }

        /* Combined results */
        .combined-results {
            background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
            padding: 25px;
            border-radius: 15px;
            margin-top: 25px;
            border: 2px solid #3498db;
        }

        .combined-header {
            font-size: 20px;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 20px;
            text-align: center;
        }

        .selected-results {
            background: #fef2f2;
            border: 2px solid #fecaca;
            border-radius: 15px;
            margin-top: 25px;
            overflow: hidden;
        }

        .selected-header {
            background: linear-gradient(45deg, #ef4444, #dc2626);
            color: white;
            padding: 20px 25px;
            font-weight: 700;
            font-size: 20px;
        }

        .selected-content {
            padding: 25px;
            background: white;
        }

        /* Selection functionality */
        .selection-section {
            background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
            padding: 25px;
            border-radius: 15px;
            margin: 25px 0;
            border-left: 5px solid #ef4444;
        }

        .selection-controls {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }

        .selection-input {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .selection-input input {
            width: 80px;
            padding: 10px 15px;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
            font-size: 16px;
            text-align: center;
        }

        .selection-input input:focus {
            outline: none;
            border-color: #ef4444;
        }

        /* Chart container styles */
        .chart-container {
            background: white;
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            margin: 20px 0;
        }

        .chart-container h4 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 20px;
            text-align: center;
            border-bottom: 2px solid #f1f3f4;
            padding-bottom: 10px;
        }

        .chart-container canvas {
            max-width: 100%;
            height: auto;
            border: 1px solid #e9ecef;
            border-radius: 8px;
        }

        .chart-stats {
            margin-top: 15px;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 3px solid #667eea;
        }

        .chart-description {
            margin-top: 15px;
            padding: 15px;
            background: #fff3cd;
            border-radius: 8px;
            color: #856404;
            font-size: 16px;
            line-height: 1.5;
        }

        /* Statistical group styles */
        .stat-group {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 12px;
            border-left: 4px solid #667eea;
        }

        .stat-group h5 {
            margin-bottom: 15px;
            font-size: 20px;
            font-weight: 600;
        }

        .stat-item {
            margin: 8px 0;
            padding: 5px 0;
            font-size: 16px;
            color: #2c3e50;
            border-bottom: 1px solid #e9ecef;
        }

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

        /* Responsive design */
        @media (max-width: 768px) {
            .tab-buttons {
                flex-direction: column;
            }

            .tab-button {
                border-bottom: none;
                border-right: 3px solid transparent;
            }

            .tab-button.active {
                border-right-color: #667eea;
                border-bottom-color: transparent;
            }

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

            .btn-group-row {
                flex-direction: column;
            }

            .btn {
                justify-content: center;
                min-width: auto;
            }

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

            .chart-container h4 {
                font-size: 20px;
            }

            .chart-container canvas {
                height: 200px !important;
            }

            .stat-group {
                padding: 15px;
            }
        }

        /* Loading animation */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

            100% {
                transform: rotate(360deg);
            }
        }

        /* Scientific color scheme - Statistics card */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 25px 0;
        }

        .stat-card {
            background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
            color: white;
            padding: 25px;
            border-radius: 15px;
            text-align: center;
            box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
        }

        .stat-number {
            font-size: 2.5em;
            font-weight: 700;
            margin-bottom: 5px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .stat-label {
            font-size: 20px;
            opacity: 0.9;
            font-weight: 500;
        }

        /* Scientific color scheme - Analysis buttons */
        #analysis-tab .btn-primary {
            background: linear-gradient(45deg, #374151, #4b5563);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        #analysis-tab .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(75, 85, 99, 0.4);
            background: linear-gradient(45deg, #4b5563, #6b7280);
        }

        #analysis-tab .btn-secondary {
            background: linear-gradient(45deg, #6b7280, #9ca3af);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        #analysis-tab .btn-secondary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
            background: linear-gradient(45deg, #9ca3af, #d1d5db);
        }

        /* Back to top button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
            transition: all 0.3s ease;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .back-to-top.show {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
            background: linear-gradient(45deg, #764ba2, #667eea);
        }

        .back-to-top:active {
            transform: translateY(-1px);
        }

        @media (max-width: 768px) {
            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 45px;
                height: 45px;
                font-size: 20px;
            }
        }

        /* Responsive chart layout */
        @media (max-width: 1200px) {
            .chart-container {
                margin: 15px 0;
                padding: 15px;
            }

            .chart-container h4 {
                font-size: 20px;
            }
        }

        /* Paternity testing related styles */
        .paternity-upload-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin: 25px 0;
        }

        .paternity-upload-section {
            background: linear-gradient(135deg, #f8f4ff 0%, #f3f0ff 100%);
            padding: 20px;
            border-radius: 15px;
            border: 2px solid #d8b4fe;
        }

        .paternity-upload-section h4 {
            color: #7c3aed;
            margin-bottom: 15px;
            font-size: 20px;
            text-align: center;
        }

        .paternity-upload-area {
            border: 2px dashed #8e44ad;
            border-radius: 10px;
            padding: 25px 15px;
            text-align: center;
            background: white;
            transition: all 0.3s ease;
            cursor: pointer;
            min-height: 120px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .paternity-upload-area:hover {
            border-color: #9b59b6;
            background: #faf5ff;
        }

        .paternity-upload-area.dragover {
            border-color: #27ae60;
            background: #f0fdf4;
        }

        .paternity-file-info {
            background: #e8f5e8;
            border: 1px solid #c3e6cb;
            border-radius: 8px;
            padding: 10px 12px;
            margin: 10px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 16px;
        }

        .paternity-results {
            background: linear-gradient(135deg, #faf5ff 0%, #f3f0ff 100%);
            padding: 25px;
            border-radius: 15px;
            margin-top: 25px;
            border: 2px solid #8e44ad;
        }

        .paternity-result-header {
            background: linear-gradient(45deg, #8e44ad, #9b59b6);
            color: white;
            padding: 20px 25px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 20px;
            text-align: center;
            margin-bottom: 20px;
        }

        .paternity-summary {
            background: white;
            padding: 20px;
            border-radius: 10px;
            margin: 15px 0;
            border-left: 5px solid #8e44ad;
        }

        .pi-table {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            margin: 20px 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .conclusion-panel {
            background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
            border: 2px solid #86efac;
            border-radius: 15px;
            padding: 25px;
            margin: 20px 0;
        }

        .conclusion-panel.exclusion {
            background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
            border-color: #fca5a5;
        }

        .conclusion-title {
            font-size: 1.3em;
            font-weight: 700;
            margin-bottom: 15px;
            text-align: center;
        }

        .conclusion-title.inclusion {
            color: #16a34a;
        }

        .conclusion-title.exclusion {
            color: #dc2626;
        }

        .probability-display {
            text-align: center;
            margin: 20px 0;
        }

        .probability-value {
            font-size: 3em;
            font-weight: 700;
            color: #8e44ad;
            margin-bottom: 10px;
        }

        .probability-label {
            font-size: 20px;
            color: #6b7280;
            font-weight: 500;
        }

        .genotype-input {
            background: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 10px 12px;
            font-family: 'Courier New', monospace;
            font-size: 16px;
            transition: border-color 0.3s ease;
            width: 100%;
        }

        .genotype-input:focus {
            outline: none;
            border-color: #8e44ad;
            box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
        }

        .locus-analysis {
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 15px;
            margin: 10px 0;
        }

        .locus-header {
            font-weight: 600;
            color: #374151;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e5e7eb;
        }

        .genotype-display {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 10px;
            margin: 10px 0;
            font-family: 'Courier New', monospace;
            font-size: 16px;
        }

        .genotype-item {
            background: #f3f4f6;
            padding: 8px 10px;
            border-radius: 6px;
            text-align: center;
            border: 1px solid #d1d5db;
        }

        .pi-value {
            font-size: 20px;
            font-weight: 600;
            color: #8e44ad;
            text-align: center;
            margin-top: 10px;
        }

        .nav-link {
            font-size: 20px !important;
        }

        /* 修复导航栏被遮挡问题 */
        .navbar {
            position: relative;
            z-index: 9999;
        }

        .navbar .dropdown-menu {
            z-index: 9999;
        }

        .container-fluid.bg-white {
            position: relative;
            z-index: 9999;
        }
        /* 修复 body padding 导致导航栏错位 */
        body {
             padding: 0 !important;
        }

        .container-fluid.bg-white {
            position: relative;
            z-index: 9999;
        }

        .navbar-collapse {
            z-index: 9999;
        }

        .dropdown-menu {
            z-index: 10000 !important;
            position: absolute !important;
        }