
* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: #f8f9fa;
        color: #333;
        line-height: 1.2;
    }
    ul{
        list-style: none;
        padding: 0;
        margin: 0;
    }
    a{
        text-decoration: none;
    }

    :root {
        --primary-color: #2c3e50;
        --active-color: #3498db;
        --light-bg: #f8f9fa;
        --border-color: #e0e0e0;
        --text-secondary: #666;
    }
    
/* 顶部导航栏起点 */
.topnav_outer{
    width: 100%;
    background-color: #f8f9fa;
    position: relative;
    
  }
  
  /* logo - 在 topnav 上方，单独一行，居中 */
  .topnav_outer>.logo {
    width: 100%;
    text-align: center;
    padding: 10px 7.5%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #5ccfc945;
    box-shadow: 0 4px 8px rgba(92, 207, 201, 0.2);
  }
  
  .topnav_outer>.logo img {
    max-height: 55px;
    max-width:68%;
    height: auto;
    width: auto;
  }
  
  .topnav_box{
    width: 85%;
    margin: 0 auto;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
        
    /* pc端起点 */
    .topnav_box>.topnav{
        width: 100%; 
        height: 100%;
        display: grid;
        grid-template-columns: 0.9fr 1.6fr 1.9fr 1fr 1fr 1.1fr 1fr 0.6fr;
        position: relative;
    }
    
    .topnav>li{
        display: block;
        height: 100%;
        text-align: center;
        align-content: center;
        font-size: 15px;
        color: #000000;
        font-weight: 500;
        position: relative;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
    }
    
    /* 针对长文本的菜单项允许换行 */
    .topnav>li#family_li,
    .topnav>li#browse_li {
        white-space: normal;
        overflow: visible;
        word-wrap: break-word;
        line-height: 1.2;
    }
    
        .topnav>li>span{
            height: 100%;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 100 ;
            position: relative;
            white-space: nowrap;
            padding: 0 8px;
        }
        
        .topnav>li>span>a {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    
    /* 针对长文本的菜单项span也允许换行 */
    .topnav>li#family_li>span,
    .topnav>li#browse_li>span {
        white-space: normal;
        flex-wrap: wrap;
        align-content: center;
        line-height: 1.2;
    }
    .topnav>li::after {
        content: '';
        position: absolute;
        bottom: 5px; /* 调整横线距离文字底部的距离 */
        left: 50%; /* 从中间开始 */
        transform: translateX(-50%) scaleX(0); /* 从中心开始且初始时不可见 */
        transform-origin: center; /* 确保缩放从中心开始 */
        width: 100%; /* 伪元素的宽度与li相同 */
        height: 3px; /* 横线的高度 */
        background-color:#2c91b6; /* 横线的颜色 */
        transition:  0.8s ease; /* 平滑展开效果 */
    }
    /* 激活态：当前分组高亮 */
    .topnav>li.active>span{
        position: relative;
        font-weight: 900;
        transform: translateY(-4px);
        color: #2c3e50;
    }
    .topnav>li.active::after{
        transform: translateX(-50%) scaleX(1);
    }
    /* 顶部导航栏鼠标放上去的样式 */
        .topnav>li:hover>span{
            position: relative;
            font-weight: 900;
            font-size: 15.5px;
            transform: translateY(-4px);
        }
        .topnav>li:hover::after {
            transform: translateX(-50%) scaleX(1); /* 鼠标悬停时完全展开 */
        }

        /* 下拉框样式 */
    
    .drop_menu{
        position: absolute;
        width: 100%;
        top: 60px;
        transform: translateY(-8%);
        opacity: 0;
        transition: 0.5s ease;
        z-index: -2;
    }
    .drop_menu>ul{
        background-color: #f8f9fa;
        border-radius:0 0 20px 20px;
    }

    .drop_menu>ul>li{
        display: block;
        height: 50px;
        text-align: center;
        align-content: center;
    }
    .drop_menu>ul>li:nth-last-child(1){
        border-radius: 0 0 20px 20px;
    }
    .drop_menu>ul>li>a{
        color: #000000;
        font-size: 13px;
        display: block;
        width: 100%;
        height: 100%;
        align-content: center;
    }
    /* 下拉框放上去的效果 */
    .drop_menu>ul>li:hover{
        transform: translateY(-4px);
        font-weight: 600;
        color: #ca5734;
    }

    /* 顶部导航栏与下拉框相连 */
    .drop_active{
        z-index: 99;
        opacity: 1;
        transform: translateY(0) ;
    }
    /* 令移动端按钮消失 */
    #menu_button_box{
            display: none;
    }


/* ==================== home页面样式 ==================== */


    /* 欢迎页面样式开始 */
    .welcome-section {
        margin-top: 30px;
        text-align: center;
        background-color: white;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        padding: 50px 30px;
    }
    .welcome-logo img{
        width: 200px;
        height: 200px;

    }
    .welcome-title {
        font-size: 2.5rem;
        color: var(--primary-color);
        margin-bottom: 20px;
        font-weight: 700;
    }
 .welcome-subtitle {
        font-size: 1.2rem;
        color: var(--text-secondary);
        margin-bottom: 40px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
   }
   /* 欢迎页面样式结束 */
   
/* 搜索页面开始 */

.search-section {
    margin-top: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    padding: 15px;
    }

 .search-header{
    text-align: left;
    margin-bottom: 30px;
 }

/* 高级搜索布局 */
.adv-search { 
    margin-top: 10px; 
}
.adv-rows { 
    display: flex; 
    flex-direction: column; 
    gap: 14px; 
}
.adv-row { 
    display: grid; 
    grid-template-columns: 100px 180px 1fr 110px; 
    gap: 16px; 
    align-items: center; 
}
.adv-cell select, .adv-cell .adv-input { 
    width: 100%; 
    height: 40px; 
}
.adv-cell .adv-input { 
    padding: 8px 12px; 
    border: 2px solid var(--border-color); 
    border-radius: 8px; 
}
.adv-cell .adv-input:focus { 
    outline: none; 
    border-color: var(--active-color); 
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1); }
.adv-op.is-first { 
    visibility: hidden; 
}
.adv-actions { 
    display: flex; 
    justify-content: space-evenly;
    margin-top: 10px;
    padding-top: 15px;
}
.adv-actions-cell { display: flex; gap: 8px; }
.adv-icon { 
    border: none; 
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    height: 36px; width: 36px; 
    border-radius: 10px; 
    cursor: pointer; 
    font-size: 20px; 
    font-weight: bold;
    line-height: 36px; 
    color: #495057;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08), inset 0 0 0 1px #dee2e6;
    transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
}
.adv-icon:hover { 
    transform: translateY(-1px); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.12), inset 0 0 0 1px #ced4da;
}
.adv-icon.add { color: #28a745; background: linear-gradient(135deg, #e9f7ef, #ffffff); font-weight: 900; }
.adv-icon.del { color: #dc3545; background: linear-gradient(135deg, #fdecea, #ffffff); font-weight: 900; }

/* 美化字段下拉框 */
.adv-field { position: relative; }
.adv-field-select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    padding: 0 40px 0 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
    color: #2c3e50;
    font-weight: 600;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.adv-field-select:hover { border-color: #bfc6cc; }
.adv-field-select:focus { outline: none; border-color: var(--active-color); box-shadow: 0 0 0 3px rgba(52,152,219,0.12); background: #ffffff; }
.adv-field::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #495057;
    transform: translateY(-50%);
    pointer-events: none;
}
.search-form-vertical { 
    display: flex; 
    flex-direction: column; 
    gap: 18px; 
}

.search-row-horizontal {
    display: flex;
    gap: 18px;
}

.search-row { 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    padding: 12px; 
    border: 1px solid #e9ecef; 
    border-radius: 8px; 
    background: #fff; 
    flex: 1;
}

.input-wrapper { 
    position: relative; 
}

.search-input { 
    width: 100%; 
    min-width: 300px; 
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--active-color);
}

.search-row label { 
    font-weight: 600; 
    color: var(--primary-color); 
}

.search-actions { 
    margin-top: 10px; 
}



/* 自动完成下拉框样式 */
.suggest-dropdown { 
    position: absolute; 
    top: 100%; 
    margin-top: -1px; 
    left: 0; 
    right: 0; 
    max-height: 200px; 
    overflow-y: auto; 
    overflow-x: hidden;
    background: #fff; 
    border: 1px solid #e2e8f0; 
    z-index: 1000; 
    display: none; 
    border-radius: 8px; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggest-item { 
    padding: 8px 12px; 
    cursor: pointer; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
    color: #374151;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
}

.suggest-item:hover { 
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-left-color: #3b82f6;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    color: #1e40af;
}

.suggest-item.active { 
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left-color: #1d4ed8;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    color: #1e40af;
    font-weight: 500;
}

.suggest-item:active {
    transform: translateX(1px) scale(0.98);
    transition: transform 0.1s ease;
}

.suggest-item.suggest-more {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-style: italic;
    font-weight: 500;
    border-left-color: #f59e0b;
}

.suggest-item.suggest-more:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
    color: #78350f;
    border-left-color: #d97706;
}

.suggest-item.suggest-empty {
    color: #6b7280;
    font-style: italic;
    cursor: default;
}

.suggest-item.suggest-empty:hover {
    background: transparent;
    transform: none;
    border-left-color: transparent;
    box-shadow: none;
}

.suggest-loading { 
    padding: 8px 10px; 
    color: #409eff; 
    font-size: 13px; 
}

.search-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.search-option {
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    min-width: 250px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-option:hover {
    border-color: var(--active-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.search-option-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--active-color);
}

.search-option-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.search-option-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.features-section {
    margin-top: 60px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 40px 30px;
}

.features-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.feature-icon {
    width: 2rem;
    height: 2rem;
    color: var(--active-color);
    margin-bottom: 15px;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* BLAST页面样式 */
.blast-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.blast-header {
    text-align: center;
    margin-bottom: 40px;
}

.blast-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.blast-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.blast-form-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.blast-form-section {
    margin-bottom: 35px;
}

.blast-form-section:last-child {
    margin-bottom: 0;
}

.blast-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: black;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.blast-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--active-color);
    border-radius: 2px;
}

.blast-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blast-textarea {
    width: 100%;
    min-height: 180px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    background: #fafafa;
}

.blast-textarea:focus {
    outline: none;
    border-color: var(--active-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.blast-textarea::placeholder {
    color: #999;
    font-style: italic;
}

.blast-file-upload {
    position: relative;
    display: inline-block;
    width: 35%;
}

.blast-file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.blast-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-secondary);
}

.blast-file-label:hover {
    border-color: var(--active-color);
    background: #e3f2fd;
    color: var(--active-color);
}

.blast-file-label.has-file {
    border-color: var(--active-color);
    background: #e8f5e8;
    color: var(--primary-color);
}

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

.blast-param-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blast-param-label {
    font-weight: 600;
    color: black;
    font-size: 0.95rem;
}

.blast-param-input,
.blast-param-select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.blast-param-input:focus,
.blast-param-select:focus {
    outline: none;
    border-color: var(--active-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.blast-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.blast-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--active-color);
}

.blast-checkbox-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.blast-buttons {
    display: flex;
    justify-content:space-evenly;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.blast-submit-btn,
.blast-reset-btn {
    padding: 18px 60px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    max-width: 200px;
    justify-self: center;
}

.blast-submit-btn {
    background: linear-gradient(135deg, var(--primary-color), #2c3e50);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.blast-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

.blast-reset-btn {
    background: #f8f9fa;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.blast-reset-btn:hover {
    background: #e9ecef;
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}



/* 响应式设计 */
@media (max-width: 768px) {
    .blast-container {
        padding: 15px;
    }
    
    .blast-form-container {
        padding: 25px;
    }
    
    .blast-header h1 {
        font-size: 2rem;
    }
    
    .blast-parameters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blast-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .blast-submit-btn,
    .blast-reset-btn {
        width:100%;
        max-width: 300px;
        justify-self: center;
    }
}

/* 搜索页面结束 */
/* 提示框 */
 /* 通知样式 - 和home.html保持一致 */
 .notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.error {
    background-color: #e74c3c;
}

.notification.warning {
    background-color: #f39c12;
}

.notification.info {
    background-color: #3498db;
}

.notification .close-btn {
    margin-left: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
}

.notification .close-btn:hover {
    opacity: 1;
}

/* 首页样式结束 */

    /* footer {
        display: none;
    } */






