/* 继承页面1的样式并扩展 */
.body {
    font-size: 18px;
    color: #666666;
    background: #D2E9FF;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-family: "Times New Roman", Times, serif;
}

.nav-bar {
    background-color: #1e90ff;
    padding: 10px;
    margin-top: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-bar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.nav-bar li {
    display: inline-block;
    margin: 0 20px;
}

.nav-bar a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-bar a:hover {
    background-color: #0056b3;
}

.bgDiv {
    width: 100%;
    height: auto;
    min-height: 120px;
    border: 1px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    background-color: #7BC1FF;
    margin-top: 5px;
    padding: 20px 0;
}

.p1 {
    width: 100%;
    height: auto;
    text-align: center;
    padding-top: 20px;
    font-size: 30pt;
    font-family: "Times New Roman", Times, serif;
    color: #000000;
}

.p2 {
    width: 100%;
    height: auto;
    padding-top: 10px;
    text-align: center;
    padding-bottom: 10px;
    font-family: "Times New Roman", Times, serif;
    font-size: 24pt;
    color: #000000;
}

.p3 {
    width: 100%;
    height: auto;
    text-align: center;
    padding-top: 10px;
    font-size: 20pt;
    font-family: "Times New Roman", Times, serif;
    color: #F8F8FF;
}

.p4 {
    width: 100%;
    height: auto;
    padding-top: 10px;
    text-align: center;
    padding-bottom: 10px;
    font-family: "Times New Roman", Times, serif;
    font-size: 16pt;
}

.footer {
    width: 100%;
    height: auto;
    min-height: 80px;
    margin-top: 40px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    background-color: #00488f;
    padding: 20px 0;
}

.enabled1, .enabled2 {
    border: none;
    padding: 15px 30px;
    font-size: 20px;
    line-height: 1.5;
    background-color: #1e90ff;
    color: white;
    border-bottom: 3px solid #0056b3;
    outline: none;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    font-family: "Times New Roman", Times, serif;
}

.enabled1:hover, .enabled2:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

fieldset {
    padding: 20px;
    margin-top: 20px;
    background: #f0f0f0;
    border: 2px solid #1e90ff;
    border-radius: 8px;
}

fieldset legend {
    color: #0000FF;
    font-weight: bold;
    font-size: 24px;
    padding: 0 20px;
    border: 1px solid black;
    background: Snow;
    text-align: center;
    font-family: "Times New Roman", Times, serif;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 结果展示区域的样式 - 字体放大 */
#result {
    margin-top: 2rem;
    font-size: 18px;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-size: 22px !important;
}

.error {
    color: #c62828;
    background: #ffebee;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #c62828;
    font-size: 20px !important;
}

.model-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #eaeaea;
    font-size: 18px !important;
}

.results-header {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.5rem 2rem;
    align-items: center;
    background: #007BFF;
    color: white;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    font-size: 18px !important;
}

.results-list {
    border: 2px solid #e9ecef;
    border-radius: 0 0 8px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.results-list li.result-item {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.5rem 2rem;
    align-items: center;
    border-bottom: 1px solid #eee;
}

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

.sequence-id {
    font-weight: 600;
    color: #2c3e50;
    font-size: 18px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sequence-preview {
    font-family: 'Courier New', Courier, monospace;
    color: #495057;
    letter-spacing: 1px;
    font-size: 18px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.probability {
    position: relative;
}

.prob-bar {
    height: 30px;
    background: #4CAF50;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.prob-value {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    font-size: 18px !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.prediction {
    text-align: left;
    padding: 0.8rem 0;
    border-radius: 15px;
    font-weight: 600;
    font-size: 18px !important;
}

.positive {
    background: #e8f5e9;
    color: #2e7d32;
}

.negative {
    background: #ffebee;
    color: #c62828;
}

/* download button */
.download-btn {
    display: inline-flex;
    align-items: center;
    background: #28a745;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: opacity 0.2s;
    gap: 0.5rem;
    border-bottom: 3px solid #1e7e34;
    font-weight: 600;
    font-size: 18px !important;
}

.download-btn:hover {
    background: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .p1 {
        font-size: 24pt;
    }
    
    .p2 {
        font-size: 20pt;
    }
    
    .p3 {
        font-size: 16pt;
    }
    
    .p4 {
        font-size: 14pt;
    }
    
    .enabled1, .enabled2 {
        padding: 12px 24px;
        font-size: 18px;
    }
    
    .nav-bar li {
        margin: 0 10px;
    }
    
    .nav-bar a {
        font-size: 16px;
    }
    
    /* 响应式结果表格 */
    .results-header,
    .results-list li.result-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .results-header span {
        display: none;
    }
    
    .sequence-id {
        order: 1;
        padding-bottom: 0.5rem;
        border-bottom: 1px dashed #ddd;
    }
    
    .sequence-preview {
        order: 2;
        font-size: 16px !important;
    }
    
    .probability {
        order: 3;
        width: 100%;
    }
    
    .prediction {
        order: 4;
        margin-top: 0.5rem;
        text-align: center;
        padding: 0.5rem 1rem;
    }
}

/* 图片样式优化 */
img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* 图片容器 */
.image-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.image-title {
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 22px;
    text-align: center;
}

.image-caption {
    margin-top: 10px;
    color: #666;
    font-size: 18px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* 增强EnDeep4mC标题样式 */
em {
    font-style: italic !important;
    font-weight: bold !important;
}

/* 图片放大和悬停效果 */
.image-container {
    transition: all 0.3s ease;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 响应式调整 */
@media (min-width: 1200px) {
    .image-container {
        max-width: 1200px !important;
    }
}

/* 导航栏按钮悬停效果 */
.nav-bar a:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* 通用字体放大 */
h1, h2, h3, h4, h5, h6 {
    font-family: "Times New Roman", Times, serif !important;
}

h2 {
    font-size: 26px !important;
}

h3 {
    font-size: 24px !important;
}

h4 {
    font-size: 22px !important;
}

label {
    font-size: 20px !important;
}

select, textarea, input {
    font-size: 18px !important;
}

button {
    font-size: 20px !important;
}

li {
    font-size: 18px !important;
}

p {
    font-size: 18px !important;
}

pre {
    font-size: 18px !important;
}

/* 信息项样式 */
.info-item {
    font-size: 20px !important;
    margin-bottom: 10px;
}

.info-label {
    font-weight: bold;
    color: #0056b3;
}

.info-value {
    color: #333;
}

/* 结果表格样式 */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 18px;
}

.results-table th {
    background-color: #f5f5f5;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    font-weight: bold;
    color: #333;
}

.results-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.results-table tr:nth-child(even) {
    background-color: #fafafa;
}

/* 序列类型标签 */
.seq-type-long {
    background: #ff9800 !important;
    color: white;
}

.seq-type-41bp {
    background: #2196f3 !important;
    color: white;
}

.seq-type-short {
    background: #9c27b0 !important;
    color: white;
}

/* 下载区域样式 */
.download-area {
    text-align: center;
    background: #e8f4ff;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.download-area .title {
    font-size: 20px;
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 10px;
}

.download-area .description {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.download-area .button {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    font-size: 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 3px solid #1e7e34;
    transition: all 0.3s;
}

.download-area .button:hover {
    background-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 图例样式 */
.legend-container {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 18px;
}

.legend-title {
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 20px;
    text-align: center;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 18px;
}

.legend-color {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 2px;
    margin-right: 10px;
}

/* 概率条样式 */
.probability-bar {
    display: inline-block;
    position: relative;
    width: 120px;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
}

.probability-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.probability-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* 预测标签样式 */
.prediction-label {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
}

.prediction-positive {
    background: #e8f5e9;
    color: #2e7d32;
}

.prediction-negative {
    background: #ffebee;
    color: #c62828;
}