* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    background-color: #fff;
    min-height: 100vh;
    max-width: 1920px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.top-bar {
    background-color: #416fbb;
    color: white;
    padding: 5px 0;
}

.top-bar-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    padding: 0 20px;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
}

.header {
    background-color: #fff;
    width: 100%;
}

.banner {
    width: 100%;
    max-width: 1490px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.main-content {
    max-width: 1250px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-section {
    background: white;
    padding: 20px;
    margin: 10px;
    border-radius: 4px;
    box-shadow: -4px 4px 4px 0px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* 针对手机等小屏设备的媒体查询 */
@media screen and (max-width: 768px) {
    .news-section {
        margin: 10px 0px;
    }
}

.section-header {
    border-bottom: 2px solid #1b4b99;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    color: #1b4b99;
    font-size: 22px;
    font-weight: bold;
    display: inline-block;
    position: relative;
    padding-left: 12px;
    margin-top: 10px;
    margin-bottom: 0px;
    line-height: 1.5;
}

/* 针对手机等小屏设备的媒体查询 */
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 18px;
    }
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: #1b4b99;
}

.more-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
    padding-right: 20px;
    background: url(/shpg/css/../img/index_more.png) right center no-repeat;
}

.news-list {
    list-style: none;
}

.news-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #333;
    text-decoration: none;
    font-size: 18px;
}

/* 针对手机等小屏设备的媒体查询 */
@media screen and (max-width: 768px) {
    .news-title {
        font-size: 14px;
    }
}

.news-title:hover {
    color: #1b4b99;
}

.news-date {
    color: #999;
    margin-left: 15px;
}

.footer {
    background-color: #416fbb;
    color: white;
    padding: 20px 0;
    margin-top: auto;
    font-size: 18px;
}

@media screen and (max-width: 768px) {
    .footer {
        font-size: 14px;
    }
}

.footer-content {
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.footer p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .nav-list {
        flex-direction: column;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        background-color: #2960b8;
    }

    .dropdown a {
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-title {
        font-size: 20px;
    }
}

/* 顶部搜索框 */
.top-search {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 20px;
    font-family: "Microsoft YaHei", sans-serif;
}

.search-form {
    display: flex;
    align-items: center;
    height: 28px;
}

.search-input {
    width: 160px;
    height: 100%;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 14px 0 0 14px;
    /* 左侧圆角 */
    font-size: 12px;
    color: #666;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #0c84bd;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    height: 100%;
    padding: 0 15px;
    border: 1px solid #0c84bd;
    border-radius: 0 14px 14px 0;
    /* 右侧圆角 */
    background: #0c84bd;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #0e03ad;
    border-color: #0e03ad;
}

/* 适配原网站的响应式设计 */
@media screen and (max-width: 768px) {
    .top-search {
        margin-right: 10px;
    }

    .search-input {
        width: 120px;
    }
}

/* 底部友情链接 */
.friendly-links {
    width: 100%;
    padding: 20px 0;
    margin-top: 30px;
    margin-left: 10px;
    font-family: "Microsoft YaHei", sans-serif;
}

.links-container {
    width: 100%;
    margin: 0 auto;
}

.links-header {
    border-bottom: 2px solid #1b4b99;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.links-title {
    display: inline-block;
    font-size: 20px;
    color: #1b4b99;
    font-weight: bold;
    position: relative;
    padding-left: 12px;
    line-height: 1.5;
}

.links-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: #1b4b99;
}

.links-content {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    padding: 10px 0;
}

.link-item {
    color: #666;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.link-item:hover {
    color: #1b4b99;
}

@media screen and (max-width: 768px) {
    .links-content {
        gap: 10px 20px;
    }

    .link-item {
        font-size: 16px;
    }
}

/* 日历样式的公告通知 */
.notice-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: "Microsoft YaHei", sans-serif;
}

.notice-list {
    list-style: none;
    padding: 0;
}

.notice-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 60px;
}

.notice-item:hover {
    transform: translateX(10px);
}

.date-box {
    width: 100px;
    padding: 8px;
    background: #d7d7d7;
    border-radius: 6px 0 0 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.date-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.month,
.year {
    font-size: 14px;
    color: #666;
}

.day {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.content-box {
    flex: 1;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.notice-title {
    margin: 0;
    font-size: 18px;
    color: #333;
    line-height: 1.4;
}

/* 针对手机等小屏设备的媒体查询 */
@media screen and (max-width: 768px) {
    .notice-title {
        font-size: 14px;
    }
}

.notice-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.notice-title a:hover {
    color: #1890ff;
}

.mobile {
    display: none;
}

/* 针对手机等小屏设备的媒体查询 */
@media screen and (max-width: 768px) {
    .mobile {
        display: inline;
    }

    .unmobile {
        display: none;
    }
}