/* 通用页面样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

/* 顶部导航栏 */
header {
    background-color: #3b3b3b;
    color: white;
    padding: 30px;
    text-align: center;
    font-size: 2em;
}

/* 导航栏链接 */
nav {
    background-color: #4e4e4e;
    padding: 10px;
    text-align: center;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

/* 页脚 */
footer {
    background-color: #3b3b3b;
    color: white;
    text-align: center;
    padding: 15px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* 主要内容区 */
.main-content {
    margin: 30px;
    text-align: center;
}

/* 标题样式 */
h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* 介绍段落 */
p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 主要功能列表 */
.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item {
    background-color: #eaeaea;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 1em;
    margin-bottom: 0;
}

/* 图示容器 */
.diagram-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.diagram-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.member-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: 50% 20%; /* 稍微靠上，脸居中 */
    border-radius: 20%;       /* 圆形头像 */
    margin: 20px auto 0;
    display: block;
}

/* 表格样式 - 自适应列宽 */
table {
    width: auto;                /* 让表格整体宽度随内容自适应 */
    table-layout: auto;         /* 关键：让列宽由内容决定 */
    border-collapse: collapse;  /* 使边框更紧凑 */
    margin: 0 auto;             /* 让表格居中，可选 */
}

/* 表格单元格样式优化 */
th, td {
    white-space: nowrap;        /* 不自动换行，让列宽由最长内容决定 */
    padding: 8px 12px;          /* 保持内容间距 */
    text-align: center;         /* 居中显示，可根据需要改为 left/right */
    vertical-align: middle;     /* 垂直居中 */
}

/* 如果内容太长，可以允许换行显示（去掉 nowrap）*/
td {
    white-space: normal;        /* 内容太长时允许换行 */
    word-wrap: break-word;      /* 避免单词撑破表格 */
}

/* 调整 Prediction History 表格每列宽度 */
.table.table-striped.table-hover th:nth-child(1),
.table.table-striped.table-hover td:nth-child(1) {
    width: 8%; /* Task ID */
}

.table.table-striped.table-hover th:nth-child(2),
.table.table-striped.table-hover td:nth-child(2) {
    width: 15%; /* Feature Method */
}

.table.table-striped.table-hover th:nth-child(3),
.table.table-striped.table-hover td:nth-child(3) {
    width: 10%; /* Number of Sequences */
}

.table.table-striped.table-hover th:nth-child(4),
.table.table-striped.table-hover td:nth-child(4) {
    width: 18%; /* Non-hemolytic / Hemolytic */
}

.table.table-striped.table-hover th:nth-child(5),
.table.table-striped.table-hover td:nth-child(5) {
    width: 10%; /* Time (seconds) */
}

.table.table-striped.table-hover th:nth-child(6),
.table.table-striped.table-hover td:nth-child(6) {
    width: 10%; /* Status */
}

.table.table-striped.table-hover th:nth-child(7),
.table.table-striped.table-hover td:nth-child(7) {
    width: 15%; /* Start Time */
}

.table.table-striped.table-hover th:nth-child(8),
.table.table-striped.table-hover td:nth-child(8) {
    width: 10%; /* Action */
}

