﻿body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: hsl(0, 0%, 70%);
    color: white;
    padding: 10px 20px;
    justify-content: space-between;
    align-items: center;
    height: 55px;
}

.container {
    width: 1280px;
    margin: 0 auto;
}
/*第一层*/
.top {
    display: flex;
    justify-content: space-between; /* 使子元素之间的间隔相等，并分布在容器的两端 */
    margin: 3px;
}

    .top a {
        text-decoration: none;
        margin: 0 10px;
        color: white;
    }

/*导航层*/
.navigation {
    margin: 0 auto;
    width: 1280px;
}

nav {
    display: flex;
    align-items: center;
    float: left;
    font-size: 18px;
}

    nav a {
        color: white;
        text-decoration: none;
        margin: 0 15px;
    }

/*搜索框样式*/
.search-box {
    display: flex;
    float: right;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 5px 0px 5px 0px;
    max-width: 400px;
    height: 20px;
    margin-left: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input {
    border: none;
    outline: none;
    height: 26px;
    padding: 4px 15px 0px 15px;
    flex: 1;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    font-size: 16px;
}

.search-button {
    background-color: #007BFF;
    color: white;
    border: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 6px 15px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-left: -8px;
}

    .search-button:hover {
        background-color: #0056b3;
    }
/*搜索样式结束*/
.content {
    overflow: hidden;
    margin-top: 10px;
}

    .content .left {
        float: left;
    }

    .content .right {
        float: right;
    }

.left .news-item span {
    padding-left: 15px;
    position: relative;
    left: 700px;
}

.detail {
    width: 950px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
}

    .detail h3 {
        justify-self: center; /*水平居中*/
        margin: 0 auto; /* 水平居中 */
        align-self: center;
        align-items: center;
        margin: 0; /* 移除默认的margin */
    }

.detail_title {
    border: 0px dashed #DCDCDC; /* 设置边框 */
    margin: 0 auto; /* 水平居中 */
    padding: 5px; /* 内边距 */
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: black;
}

.detail_remind {
    border: 1px dashed #DCDCDC; /* 设置边框 */
    margin: 0 auto; /* 水平居中 */
    padding: 5px; /* 内边距 */
    max-width: 600px; /* 最大宽度 */
    font-size: 13px;
    text-align: center;
    color: #A9A9A9;
}

.news-item {
    width: 950px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

    .news-item a {
        color: black;
        text-decoration: none;
    }
    .news-item img {
        width: 20px;
        height: 20px;
        border-radius:2px;
        vertical-align: middle;
    }

    .news-item p {
        color: dimgray;
        font-size: small;
        float: right;
    }


.list {
    width: 250px;
    height: 272px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}

    .list a {
        color: black;
        text-decoration: none
    }

    .list p {
        font-size: 15px;
    }

footer {
    background-color: hsl(0, 0%, 70%);
    color: white;
    padding: 10px 20px;
    text-align: center;
}

    footer a {
        color: white;
        text-decoration: none;
    }

hr {
    border: 0;
    height: 1px;
    background-color: #333;
    margin-top: 20px;
}

/*轮播样式开始*/
.carousel {
    position: relative;
    width: 1276px;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    border: 2px solid #ddd;
    border-radius: 10px;
}

.carousel-images {
    height: 300px;
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-image {
    min-width: 100%;
    box-sizing: border-box;
}

.buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.button {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
}
/*轮播样式结束*/

/*分页样式*/
.pageshow {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    height: 50px; /* 设置div的高度 */
}

    .pageshow a {
        color: #333; /* 文字颜色 */
        padding: 5px 10px; /* 内边距 */
        text-decoration: none; /* 去除下划线 */
        border: 1px solid #ddd; /* 边框 */
        display: inline-block; /* 使其成为行内块元素 */
    }

    .pageshow a {
        background-color: #f0f0f0; /* 鼠标悬停背景色 */
    }


/* 面包屑导航样式 */
.breadcrumb {
    display: flex; /* 使用弹性盒子布局 */
    align-items: center; /* 垂直居中对齐 */
    font-size: 14px; /* 字体大小 */
    color: hsl(0, 0%, 60%); /* 字体颜色 */
    padding: 10px 0; /* 上下内边距 */
}

    .breadcrumb a {
        text-decoration: none; /* 去掉下划线 */
        color: hsl(0, 0%, 60%); /* 链接颜色 */
    }

        .breadcrumb a:hover {
            text-decoration: underline; /* 悬停时添加下划线 */
        }

    .breadcrumb span {
        margin: 0 5px; /* 左右间距 */
    }

    /* 分隔符样式 */
    .breadcrumb .separator {
        margin: 0 5px; /* 分隔符左右间距 */
    }
/*结束*/

/*登录样式*/
.login {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    margin: 100px auto;
}

    .login h2 {
        text-align: center;
    }

.login_form {
    margin-bottom: 15px;
}

    .login_form label {
        display: block;
        margin-bottom: 10px;
        margin-left: 29px;
    }

    .login_form input {
        width: 80%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        display: flex;
        margin: 0 auto;
    }

.login_btn {
    width: 30%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    justify-content: center;
    display: flex;
    margin: 0 auto;
}

    .login_btn:hover {
        background-color: #0056b3;
    }

.copybtn, .losebtn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
}
/*资源失效的按钮*/
.losebtn {
    background-color: gray;
    font-size: 12px;
}
    .copybtn:hover {
        background-color: #0056b3;
    }

.resourceurl,.lose {
    border: 1px dashed #DCDCDC; /* 设置边框 */
    margin: 0 auto; /* 水平居中 */
    padding: 2px; /* 内边距 */
    max-width: 600px; /* 最大宽度 */
    font-size: 13px;
    text-align: center;
    color: #A9A9A9;
}
.lose {
    text-decoration: line-through;
}
