body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(179, 136, 255, 0.4), rgba(102, 204, 255, 0.4)), url('http://pi.amzcd.top:9199/background');
    backdrop-filter: blur(15px);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(31, 38, 135, 0.2);
}


.bottom-bar {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    height: 15vh;
    background: linear-gradient(135deg, rgba(152, 251, 152, 0.2), rgba(102, 204, 255, 0.2));
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(31, 38, 135, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-bar:hover {
    background-color: rgba(152, 251, 152, 0.4);
    box-shadow: 0 12px 36px rgba(31, 38, 135, 0.2);
}

h1 {
    text-align: center;
    color: #333;
}

.links {
    list-style-type: none;
    padding: 0;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.links li {
    margin: 10px;
}

.links a {
    text-decoration: none;
    color: #6c5ce7;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(255, 204, 204, 0.8), rgba(255, 182, 193, 0.8));
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    letter-spacing: 0.8px;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.15);
    position: relative;
    overflow: hidden;
}

.links a:hover {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.9), rgba(255, 204, 204, 0.9));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.25);
    color: #5f3dc4;
}

.links a:active {
    transform: translateY(1px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.1);
}

.window {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 8px solid rgba(255, 255, 255, 0.3);
    max-width: 30%;
    height: 40%;
    box-sizing: border-box;
    z-index: 1;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 36px rgba(31, 38, 135, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.window:hover {
    box-shadow: 0 12px 36px rgba(31, 38, 135, 0.25);
    transform: translateY(-2px);
}

/*可拖动的记事本框*/
.window#notepad {
    display: none;
    position: absolute;
    top: 10%;
    left: 5%;
}

#notearea {
    max-width: 30vw;
    width: 95%;
    height: 90%;
    margin-bottom: 10px;
    position: relative;
    background-color: transparent;
    outline: none;
    overflow: auto;
    border: none;
    resize: none;
    backdrop-filter: blur(5px);
}

/*查看端口是否占用*/
.window#portstatus {
    display: none;
    position: absolute;
    width: 100px;
    top: 20px;
    /* 距离顶部的位置 */
    right: 20px;
    /* 距离右侧的位置 */
}

#portStatusContainer {
    z-index: 1;
    background-color: rgba(236, 151, 255, 0.3);
    padding: 5px;
    backdrop-filter: blur(5px);
    /* 添加背景虚化效果 */
}

.port {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border: 2px solid transparent;
    /* 保持边框，但使其透明 */
    padding: 5px;
    height: 18px;
}

.port.occupied {
    border-color: purple;
    background-color: red;
    color: white;
    border-radius: 8px;
}

.port.available {
    border-color: purple;
    background-color: green;
    color: white;
    border-radius: 8px;
}

.port .number {
    flex: 1;
    color: white;
}

.port .status {
    width: 80px;
    text-align: center;
    color: white;
}

/*侧边栏*/

.sidenav {
    height: 90%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    backdrop-filter: blur(12px);
    background: linear-gradient(135deg, rgba(28, 28, 45, 0.8), rgba(41, 41, 61, 0.8));
    overflow-x: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 60px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

.sidenav a {
    padding: 15px 15px 15px 32px;
    text-decoration: none;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 10px 0;
    border-radius: 0 30px 30px 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05));
}

.sidenav a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.image-container {
    width: 50px;
    height: 50px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    filter: brightness(200%);
    transition: filter 0.3s ease;
}

.image-container:hover img {
    filter: brightness(400%);
}

@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

    .sidenav a {
        font-size: 18px;
    }
}

/*单词意思*/
#wordContainer {
    height: 100%;
    width: 100%;
}

.window#word {
    display: none;
    position: absolute;
    left: 630px;
    top: 50px;
    width: 200px;
    height: 150px;
    backdrop-filter: blur(5px);
    background-color: rgba(102, 93, 93, 0.5);

}

#wordslist {
    user-select: none;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    text-align: center;
    width: 150px;
}

.arrow {
    position: absolute;
    bottom: 15px;
    width: 40px;
    height: 40px;
    top: 70px;
    backdrop-filter: blur(5px);
    background-color: rgba(125, 117, 117, 0.5);
    cursor: pointer;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    border: 3px solid rgb(50, 50, 50);
    user-select: none;
}

#left-arrow {
    left: 15px;
}

#right-arrow {
    right: 15px;
}

#meaning-btn {
    position: absolute;
    bottom: 0px;
    left: 70px;
    width: 50px;
    height: 25px;
    background-color: #ccc;
    cursor: pointer;
    line-height: 20px;
    backdrop-filter: blur(5px);
    background-color: rgba(86, 70, 70, 0.5);
}

/*弹出框*/
.popup-container {
    border-radius: 8px;
    position: fixed;
    top: 20px;
    right: -300px;
    /* 初始位置在屏幕外 */
    backdrop-filter: blur(5px);
    background-color: rgba(86, 70, 70, 0.5);
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.5s ease-in-out;
    /* 过渡效果 */
}

.popup-container.show {
    right: 20px;
    /* 在右侧显示弹出框 */
}

/* 弹出框内容的样式 */
.popup-content {
    position: relative;
    color: white;

}

/* 关闭按钮的样式 */
.close {
    display: none;
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #999;
}

.close:hover {
    color: #333;
}