@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100..900&family=Poppins:wght@100;300;400;500;600&display=swap');

/* 
浅蓝：#3e9cbc
深蓝：#032D4f
灰色：#666 
*/

*{
    font-family: 'Poppins',sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    transition: .2s linear;
    line-height: 1.3;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1{
    font-size: 2.9rem;
    font-weight: bold;
    color: #032D4F;
    margin-bottom: 1rem;
}



/* header 部分 */
.header{
    position: fixed;
    top: 0;
    left: 0;right: 0;z-index: 1000;
    background: white;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 6%;
    font-weight: bold;


    .logo{
        font-size: 2.8rem;
        
        color:#222;
        text-decoration: none;
        letter-spacing: -0.25rem;

        i{
            color:#032D4F;
            padding-right: 0.5rem;
        }
    }

    #mainnav{
        a{
            font-size: 1.8rem;
            color:#666;
            margin: 0 1rem;
            text-decoration: none;

            &:hover{
                color:#3e9cbc;
            }
        }
    }

    #contact-btn{
        font-size: 1.6rem;
        display: inline-block;
        border-radius: 0.5rem;
        padding: 0.7rem 2rem;
        background: #3e9cbc;
        cursor: pointer;
        color: #fff;

        &:hover{
            background:#032D4F;
        }
    }

    .contact-box{
        position: absolute;
        top: -300%;
        right: 3rem;
        width: 30rem;
        border-radius: 0.5rem;
        padding: 2rem 2rem ;
        height: 18rem;
        box-shadow:0 .5rem 1rem rgba(0,0,0,.1) ;
        background:#fff;

        h2{
            text-align: center;
            font-size: 2.2rem;
            font-weight: bold;
            color: #032D4f;
            margin: 0 0 1rem 0;
        }

        p{
            font-size: 1.5rem;
            font-weight: normal;
        }

        span{
            font-weight: bold;
        }
    }

    div.contact-box.active {
        position: absolute;
        top: 115%;
        transition: 0.5s;
    }
}


.AboutRNA{
    margin-top: 10rem;
    margin-bottom: 4rem ;
    width: 85%; 
    margin-left: auto;
    margin-right: auto;

    p{
        font-size: 1.6rem;
    }

    .description{
        display: flex;
        margin: 2rem 0;
        img{
            width: 50%;
        }
    }

    .intro{
        display: grid;
        grid-template-columns: repeat(3,1fr);
        gap: 3rem;

        div{
            box-shadow: 0 0 7px rgba(0, 0, 0, 0.2);
            border-radius: 1rem;
            padding: 1rem 2rem ;
            margin-top: 1rem ;
            
            h2{
                margin: 1rem;
                font-size: 2.2rem;
                font-weight: bold;
                text-align: center;
                color: #032D4F;
            }
        }
    }
    
}

.aboutdb{
    background-color: #3e9cbc25;
    margin-bottom: 4rem ;
    padding: 3rem 7.5%;

    .container1{
        margin-left: 0;
        width: 100%;


        .container2{
            display: flex;

            p{
                width: 38%;
                font-size: 1.6rem;
            }

            .species{
                width: 60%;
                margin-left: 3rem;
                margin-top: 0;
                display: grid;
                grid-template-columns: repeat(3,1fr);
                gap:2rem;

                .smallBox{
                    box-shadow: 0 0 7px rgba(0, 0, 0, 0.2);
                    border-radius: 1rem;
                    margin-top: 1rem ;
                    background-color: white;

                    img{
                        height:60%;
                        width: 100%;
                        display: block;
                        object-fit: cover;
                        overflow: hidden;
                        border-top-left-radius: 1rem;
                        border-top-right-radius: 1rem;
                    }
                    
                    h2{
                        margin: 1rem 0 0.5rem 0;
                        font-size: 1.8rem;
                        font-weight: 600;
                        text-align: center;
                        color:black;
                    }

                    .btns1{
                        display: grid;
                        grid-template-columns:  repeat(3,1fr);
                        gap: 0.8rem;
                        margin: 1rem 2rem 0 2rem ;

                        a{
                            display: flex;
                            border: 1.5px solid #3e9cbc;
                            border-radius: 4px;
                            font-size: 1.5rem ;
                            font-weight: 500;
                            text-decoration: none;
                            align-items: center;
                            justify-content: center;
                            color: #3e9cbc;

                            &:hover{
                                color: white;
                                background-color: #032D4f;
                                border-color:  #032D4f;

                            } 
                            
                        }
                    }

                    .btns2{
                        display: grid;
                        grid-template-columns:  repeat(2,1fr);
                        gap: 0.8rem;
                        margin: 0.5rem 2rem ;

                        a{
                            display: flex;
                            box-sizing: border-box;
                            border: 1.5px solid #bfe2ef;
                            border-radius: 4px;
                            font-size: 1.5rem ;
                            font-weight: 600;
                            text-decoration: none;
                            align-items: center;
                            justify-content: center;
                            color: #032D4f;
                            background-color: #bfe2ef;

                            &:hover{
                                color: white;
                                background-color: #032D4f;
                                border-color:#032D4f ;

                            }

                        }
                    }

                }


            }
        }


    }
}

.link{
    margin-top: 2rem;
    margin-bottom: 5rem ;
    width: 85%; 
    margin-left: auto;
    margin-right: auto;

    .links{
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4,1fr);
        gap: 7rem;
        margin-top: 1rem ;

        img{
            max-width: 100%;
            height: 6rem;
        }

    }
}

.AStable{
    margin-top: 10rem;
    margin-bottom: 4rem ;
    width: 85%; 
    margin-left: auto;
    margin-right: auto;

    .species-select{
        display: flex;
        align-items: center;

        select{
            font-size: 1.5rem;
            margin-left: 1rem ;
            width: 20rem;
            height:3.5rem;
            box-shadow: none;
            cursor: pointer;

            &:focus {
                border-color:#dddddd;
                box-shadow: none;
            }
        }
    
    }

    .table-border{
        border: 0.1px solid #dddddd;
    }

    table{
        font-size: 1.5rem;
    }

    /* 搜索框容器 */
    .fixed-table-toolbar {
        display: flex;
        align-items: center;

        .search {
        font-size: 1.5rem;
        height: 3.5rem ;
        margin-left: auto;



        input {
            border: 1px solid #dddddd;
            width:50rem;
            font-size: 1.5rem;

            &:focus {
                border-color:#032D4f;
                box-shadow: none;
            }
        }
    }
}

mark {
    background-color: #3e9cbc75 !important; /* 浅蓝色 */ 
    border-radius:0.5rem;
    padding: 0 0.5rem;
  }

    /* 列选择按钮 */
.fixed-table-toolbar .columns {
    .btn {
    background: #fff;
    color: #495057;
    border: 1px solid #dddddd;
    font-size: 2rem;
    height: 3.5rem ;
    box-shadow: none;
    padding: 0;
    width: 5rem;
    }

    .dropdown-menu {
        min-width: 10rem;
        box-shadow: none;
        font-size: 1.4rem;

        label {
            display: block;
            padding: 0.5rem 1rem;
            cursor: pointer;

            &:hover {
                background-color: #f8f9fa;
            }
        }
    }
}

.fixed-table-pagination{
    display: flex;
    justify-content: space-between;
    padding-right: 0;


    .float-left.pagination-detail{
        font-size: 1.5rem;

        button{
            background: #fff;
            color: #495057;
            border: 1px solid #dddddd;
            box-shadow: none;
        }

        span{
            font-size: 1.5rem;
        }
   
    }

    .float-right.pagination{
        margin-left: auto;

        input {
            border: 1px solid #dddddd;
            margin-top: 0.5rem;
            font-size: 1.5rem;
            padding: 0 auto;
            margin-left: 1rem;

            &:focus {
                box-shadow: none;
            }
        }

        button{
            background-color: #3e9cbc;
            margin-top: 0.5rem;
            color: white;
            border: none;
            font-size: 1.5rem;
            padding: 0 0.5rem;

            &:hover{
                background-color: #032D4f;
                border: none;
            }
        }
    }

    /* 每页显示条数下拉框 */
.dropdown-menu.show{
    min-width: 10rem;
    font-size: 1.5rem;
}


}

      /* 设置分页按钮的样式 */
    .pagination .page-item .page-link {
            margin-top: 0.5rem;
            background-color: white;  
            color: black; 
            padding: 1rem 1rem;  /* 设置按钮内边距*/ 
            font-size: 1.5rem; 

            &:hover {
                background-color: #032D4f;  
                color: white;
            }
        }

        /* 点击分页按钮后，按钮变得不同 */
        .pagination .page-item.active .page-link {
            background-color: #3e9cbc;  /* 活动页码按钮的背景色 */
            color: white;
            border: none;
        }

}


.browse{
    margin-top: 10rem;
    margin-bottom: 4rem ;
    width: 85%; 
    margin-left: auto;
    margin-right: auto;

    .select{
        display: flex;
        align-items: center;
        margin-bottom: 1rem;

        select{
            font-size: 1.5rem;
            margin-left: 1rem ;
            width: 20rem;
            height:3.5rem;
            box-shadow: none;
            cursor: pointer;

            &:focus {
                border-color:#dddddd;
                box-shadow: none;
            }
        }

        h2{
            font-size: 1.8rem;
            color:black;
            margin: 0 1rem 1rem 0;
        }
    }
}

.help{
    margin-top: 10rem;
    margin-bottom: 3rem ;
    width: 85%; 
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 2rem;
    background-color: #b3c5cb25;

    .help-navbar{
        display: flex;
        align-items: center;
        justify-content:space-evenly;

        a{
            flex: 1;
            background-color:#032D4f;
            text-align: center;
            position: relative;
            padding: 1rem 1rem;
            color: white;
            font-size: 1.7rem;
            font-weight: 500;
            text-decoration: none;
            transition: 0.05s;

            &::after{
                display: none;
                background-color:#032D4f;
                width:3rem;
                height:2.5rem;
                left: 50%;
                bottom: -2.4rem;
                transform: translate(-50%);
                content:"";
                position: absolute;
                clip-path: polygon(50% 40%,0 0, 100% 0 );

            }

            &.active{
                background-color:#3e9cbc;
                color: white;

                &::after{
                    display:block;
                    background-color:#3e9cbc;
                }
            }
        }

    }

    .content{
        display:none;
        padding-top: 2rem;

        h1{
            font-size: 2.8rem;
            font-weight: bold;
            color: #032D4F;
            margin-bottom: 1rem;
            margin-left: 2rem;
        }

        img{
            max-width: 84%;
            margin: 1rem 8%;
        }
        
        p{
            font-size: 1.6rem;
            padding: 0;
            margin: 0.3rem 2rem;
        }

        &.active{
            display:block;
        }
    }

}



/*页脚内容*/
footer {
    background-color: #032D4F;
    color: white;
    font-size: 1.6rem;
    padding: 1.5rem 0;
    text-align: center;
}


.boxes{
    display: grid;
    grid-template-columns: 72% 24%;
    gap: 4%;
    margin-top: 10rem;
    margin-left: auto;
    margin-right: auto;
    width: 85%;
    font-size: 1.5rem;

    h1{
        font-size: 2.8rem;
        font-weight: bold;
        color: #032D4F;
        margin-bottom: 1rem;
    }

    section{
        margin-bottom: 4rem;

        button{
                width:8rem;
                padding: 0.5rem 1rem;
                cursor: pointer;
                background-color: #3e9cbc;
                color: white;
                font-size: 1.5rem;
                border-radius: 0.3rem;

        }
    }

    /* 登录框样式 */
    .login-container {
        background-color: #fff;
        padding: 3rem 2rem;
        border-radius: 1rem;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

        h2 {
            text-align: center;
            margin-bottom: 2rem;
            font-size: 2rem;
        }

        input {
            width: 100%;
            padding: 1rem;
            margin-bottom: 2rem;
            border: 1px solid #ccc;
            border-radius: 1rem;
        }

        button {
            width: 100%;
            padding: 1rem;
            background-color: #3e9cbc;
            color: #fff;
            border: none;
            border-radius: 1rem;
            cursor: pointer;

            &:hover {
                background-color: #032D4f;}
        }
    }
}


