/* 
<!-- 制作者: 小苏 -->
<!-- 制作时间：2025年07月25日 13:48:00 -->
<!-- 仅供参考，不得在作者不知情的情况下使用 -->
*/

body {
    margin: 0;
    padding: 0;
    background-color: rgba(250, 235, 215, 0.484);
    background-size: 100% 100%;
}

.content {
    width: 100%;
    height: 100vh;
}

.headers {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 确保标题和用户信息栏之间有足够的空间 */
    height: 6%;
    width: 100%;
    background-color: #3a9bd9;
}

.title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-left: 20px;
    letter-spacing: 4px;
    text-shadow: 2px 2px 2px #000000;
}

.user-info {
    float: right;
    margin-right: 40px;
}

.user-info p {
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.user-info .logout a {
    color: rgb(255, 234, 0);
    font-size: 18px;
    font-weight: bold;
    margin-right: 20px; 
    text-decoration: none;
}

.user-info .logout a:hover {
    color: rgb(255, 0, 0);
    font-size: 18px;
    font-weight: bold;
    margin-right: 20px; 
    text-decoration: none;
}

.sidebar {
    width: 12%;
    min-width: 200px;
    height: 100%;
    background-color: #ffffff6a;
    box-shadow: 1px 1px 1px #dcdcdc;
    position: fixed;
    top: 6%;
    left: 0;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.book-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style-type: none;
    margin: 8% 0 0 0;
    padding: 0;
    height: 50%;
}

.book-side li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    height: 15%;
    line-height: 40px;
    text-align: center;
    background-color: #f2f2f2;
    border-bottom: 1px solid #dcdcdc;
    margin-bottom: 10%;
}

.book-side li:hover {
    background-color: #e6e6e6;
}

.book-side li a {
    text-decoration: none;
}

.main {
    width: 86.4%;
    height: 91.3%;
    margin-left: 20%;
    background-color: #ffffff;
    box-shadow: 1px 1px 1px #dcdcdc;
    position: fixed;
    top: 7%;
    left: 12.8%;
    z-index: 0;
    margin: 0;
    padding: 0;
    border: 1px solid #2600ff;
    border-radius: 5px;
    box-shadow: 3px 3px 3px #6767674a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#add, #borrow, #return, #manage {
    display: none;
}

.add-book {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    height: 80%;
    border: 10px solid #ff0000;
    padding: 20px;
    box-sizing: border-box;
}
