/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header Styles */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.logo {
    height: 50px;
    margin-right: 15px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #34495e;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 0;
    background-color: #3498db;
    color: white;
    margin-bottom: 30px;
    border-radius: 5px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Search Section */
.search-section {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.search-section form {
    display: flex;
    gap: 10px;
}

.search-section input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-section select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-section button {
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-section button:hover {
    background-color: #34495e;
}

/* Database Info Section */
.database-info {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.database-info h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.database-info ul {
    margin-left: 20px;
    margin-top: 10px;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #2c3e50;
    color: white;
}

tr:hover {
    background-color: #f5f5f5;
}

.sequence {
    font-family: monospace;
}

/* About Page Styles */
.about-content section {
    margin-bottom: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.about-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.team-list {
    list-style-type: none;
}

.team-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    background-color: #2c3e50;
    color: white;
}
/* 新增MSA列样式 */
.msa {
    font-family: monospace;
    max-width: 300px;
    word-break: break-all;
}

/* 基因组链接样式 */
table a {
    color: #2980b9;
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
}

/* 动态表格响应式处理 */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

table {
    min-width: 100%;
    white-space: nowrap;
}

th, td {
    min-width: 120px;
    padding: 12px 15px;
}
/* 链接样式 */
.msa-link a {
    color: #2980b9;
    padding: 2px 6px;
    border-radius: 3px;
    background: #e8f4f8;
}
.genome-link a {
    color: #27ae60;
    padding: 2px 6px;
    border-radius: 3px;
    background: #f0f8db;
}

/* 状态提示 */
.invalid-domain { color: #e67e22; cursor: help; }
.invalid-url { color: #e74c3c; }
.na { color: #95a5a6; font-style: italic; }

/* 分页容器 */
.pagination-container {
    width: 100%;
    margin: 40px 0;
    text-align: center;  /* 备用居中方案 */
}

.pagination {
    display: inline-flex;  /* 关键修改 */
    gap: 20px;
    padding: 12px 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 auto;        /* 双重居中保障 */
}

/* 分页按钮 */
.pagination a, 
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #3498db;  /* 增加边框强调 */
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 当前页样式 */
.pagination .current {
    background: #3498db;
    color: white;
    border-color: transparent;
    transform: scale(1.1);
}

/* 禁用状态 */
.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* 悬停效果 */
.pagination a:hover {
    background: #f0f4f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52,152,219,0.2);
}

/* 序列显示样式 */
.sequence {
    font-family: monospace;
    color: #2c3e50;
    max-width: 200px;
    word-break: break-all;
}

/* 基因组链接 */
.genome-link a {
    color: #27ae60;
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.3s;
}

.genome-link a:hover {
    color: #219a52;
    text-decoration: none;
}

/* 空值提示 */
.na {
    color: #95a5a6;
    font-style: italic;
}

/* 藻类硒蛋白 */
