/* ========== 整体容器 ========== */
#table-container {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 40px;
    padding: 10px 15px 30px;
}

/* 单个表格面板 */
.table-panel {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 面板标题 */
.panel-title {
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title i {
    color: #2866d1;
    font-size: 18px;
}

/* 工具栏：下载 + 搜索 */
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
    flex-shrink: 0;
}

.btn-download {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Roboto', sans-serif;
}

.btn-download i {
    margin-right: 4px;
}

.btn-download:hover {
    background: #f0f0f0;
    border-color: #999;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-box label {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

.search-box input {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    width: 200px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #2866d1;
    box-shadow: 0 0 0 2px rgba(40, 102, 209, 0.1);
}

/* 表格滚动区域 */
.table-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 650px;
    /* 限制高度，内部滚动 */
    flex: 1;
}

/* ========== 学术期刊表格 ========== */
.journal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-family: 'Open Sans', sans-serif;
    color: #222;
    table-layout: fixed;
    background: white;
}

.journal-table thead th {
    position: sticky;
    top: 0;
    background: #f5f5f5;
    border-bottom: 2px solid #aaa;
    padding: 8px 4px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #444;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
    z-index: 2;
    line-height: 1.4;
}

.journal-table thead th i {
    margin-right: 4px;
    color: #2866d1b8;
    font-size: 20px;
}

.journal-table tbody td {
    padding: 5px 6px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s;
}

/* 斑马条纹 */
.journal-table tbody tr:nth-child(even) td {
    background: #fdfdfd;
}

.journal-table tbody tr:hover td {
    background: #eef5ff;
}

/* 搜索高亮 */
.journal-table td.highlight {
    background-color: #fff3cd !important;
    box-shadow: inset 0 0 0 1px #ffc107;
}

/* download zip */
.title {
    width: 72%;
    margin: 0 auto;
    height: 45px;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: #2a4fa5c7;
}

#sourcedload {
    display: flex;
    height: 100px;
    width: 72%;
    margin: 0 auto;
    border-radius: 8px;
    align-items: center;
    justify-content: space-around;
    /* background: linear-gradient(45deg, #17647e70, transparent); */
}

.sourcezip {
    box-shadow: 0 0 6px white;
    border-radius: 8px;
    padding: 5px 14px;
    width: 150px;
    text-align: center;
    background: linear-gradient(122deg, #17647e70, #79d6f573);
    color: #000000a6;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(180deg, #17647e70, transparent);
}

.arrow-wrapper {
    display: inline-block;
    overflow: hidden;
    color: #0000006b;
    border-bottom: 2px solid;
    display: inline-block;
    overflow: hidden;
    line-height: 0.75;
}

.arrow-icon {
    display: inline-block;
}

.sourcezip:hover .arrow-icon {
    animation: floatDown 1.2s infinite ease-in-out;
}

@keyframes floatDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    40% {
        transform: translateY(4px);
        opacity: 0.3;
    }

    60% {
        transform: translateY(8px);
        /* 超出父容器高度，被裁剪 */
        opacity: 0;
    }

    80% {
        transform: translateY(0);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


/* downcsv part */
#rnamapdload {
    width: 72%;
    margin: 12px auto;
    display: flex;
    /* gap: 65px; */
    /* padding-left: 46px; */
}

#drugD,
#rnaT {
    font-size: 16px;
    color: #1b4964;
    background: linear-gradient(0deg, #17647e70, transparent);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}