/*
 * ZFLNC 站点样式（Bootstrap 5.3.9 之上）
 *
 * 网站从 Bootstrap 3.3.7 升级到 5.3.9。下面补回 Bootstrap 5 已移除、但本站仍在使用的样式，
 * 让页面外观与升级前保持一致。数值取自 Bootstrap 3.3.7。
 */

/* ---------- 整体字体、链接颜色（保持原有观感） ---------- */
:root {
    --bs-body-font-size: 14px;
    --bs-body-line-height: 1.42857143;
    --bs-body-color: #333;
    --bs-link-color-rgb: 51, 122, 183;          /* #337ab7 */
    --bs-link-hover-color-rgb: 35, 82, 124;     /* #23527c */
}
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
a {
    text-decoration: none;
}
a:hover, a:focus {
    text-decoration: underline;
}
.text-primary {
    color: #337ab7 !important;
}
.text-justify {
    text-align: justify !important;
}

/* 标题字号：Bootstrap 5 的标题比 Bootstrap 3 大，恢复原尺寸 */
h1, .h1 { font-size: 36px; }
h2, .h2 { font-size: 30px; }
h3, .h3 { font-size: 24px; }
h4, .h4 { font-size: 18px; }
h5, .h5 { font-size: 14px; }
h6, .h6 { font-size: 12px; }
h1, h2, h3 { margin-top: 20px; margin-bottom: 10px; }
h4, h5, h6 { margin-top: 10px; margin-bottom: 10px; }
h1 small, h2 small, h3 small { font-size: 65%; color: #777; font-weight: 400; }
h4 small, h5 small, h6 small { font-size: 75%; color: #777; font-weight: 400; }

/* 标签（原 label label-info）：白字浅蓝底 */
.badge.text-bg-info { background-color: #5bc0de !important; color: #fff !important; }

/* ---------- 图标：Bootstrap 4 起移除了 glyphicons，这里只保留本站用到的 4 个 ---------- */
@font-face {
    font-family: 'Glyphicons Halflings';
    src: url(../fonts/glyphicons-halflings-regular.eot);
    src: url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),
         url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'),
         url(../fonts/glyphicons-halflings-regular.woff) format('woff'),
         url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),
         url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg');
}
.glyphicon {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.glyphicon-search:before        { content: "\e003"; }
.glyphicon-arrow-up:before      { content: "\e093"; }
.glyphicon-envelope:before      { content: "\2709"; }
.glyphicon-question-sign:before { content: "\e085"; }

/* ---------- 卡片：原 panel 的间距和配色（模板中 card 上保留了 panel-info 等类名） ---------- */
.card {
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
.card-header {
    padding: 10px 15px;
}
.card-body {
    padding: 15px;
}
.panel-info    { border-color: #bce8f1; }
.panel-info > .card-header    { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; }
.panel-success { border-color: #d6e9c6; }
.panel-success > .card-header { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; }
.panel-primary { border-color: #337ab7; }
.panel-primary > .card-header { color: #fff; background-color: #337ab7; border-color: #337ab7; }

/* ---------- 导航栏：原 navbar-default 的外观 ---------- */
.zflnc-navbar {
    --bs-navbar-nav-link-padding-x: 15px;
    --bs-navbar-padding-y: 0;
    margin-bottom: 20px;
    background-color: #f8f8f8;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
}
.zflnc-navbar .nav-link {
    font-size: 18px;
    padding: 10px 15px;
    color: #337ab7;
}
.zflnc-navbar .nav-link:hover {
    background-color: #eee;
    border-radius: 4px;
    text-decoration: none;
}

/* ---------- 表单：Bootstrap 3 中标签默认加粗，水平表单的标签右对齐 ---------- */
label {
    font-weight: 700;
}
@media (min-width: 768px) {
    .form-horizontal .col-form-label {
        text-align: right;
    }
}

/* ---------- 提示框：原 alert-info 的浅蓝配色 ---------- */
.alert-info {
    --bs-alert-color: #31708f;
    --bs-alert-bg: #d9edf7;
    --bs-alert-border-color: #bce8f1;
}

/* ---------- 基因组浏览器（Biodalliance 0.13 自带的旧版 Bootstrap 样式依赖浮动布局）----------
 * Bootstrap 5 的 .btn-toolbar 是 flex 布局，会让工具栏右侧按钮组跑到左边，这里恢复为块布局 */
.dalliance .btn-toolbar {
    display: block;
}
