:root {
    /* --primary-color: #07519A; */
    --primary-color: #1A6CBD;
    --secondary-color: #C50808;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
}

/* 添加顶部背景容器 */
.top-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 170px;
    background-image: url(/scl/web_upload/images/top_bg.jpg);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: auto 130px;
    z-index: -1;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
    position: relative;
    z-index: 1;
}

/* 顶部样式 */
.top-bar {
    background-color: #fff;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.top-links a {
    color: var(--primary-color);
    margin-left: 15px;
    text-decoration: none;
    transition: all 0.3s;
}

.top-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.top-links i {
    margin-right: 5px;
    width: 16px;
    text-align: center;
}

/* 导航样式 - 改进后 */
.navbar {
    background: linear-gradient(to right, var(--primary-color), var(--primary-color));
    height: 50px;
    margin: 2px 0;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding-top: 0px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    /* height: 100%; */
    height: 50px;
}

.nav-menu li {
    display: flex;
    align-items: center;
    height: 100%;
    /* 确保高度充满 */
    width: 135px;
}

.nav-menu a {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

/* 导航悬停效果 - 改进后 */
.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* 内容区域样式 */
.main-content {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section-title {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
}

.section-title a {
    font-size: 14px;
    font-weight: normal;
    color: #666;
    text-decoration: none;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list a {
    color: #333;
    text-decoration: none;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s;
}

.news-list a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.news-date {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
    white-space: nowrap;
}

/* 轮播图样式 */
.swiper-container {
    height: 350px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.swiper-slide {
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 20px;
}

.slide-title {
    font-size: 20px;
    margin-bottom: 0px;
    font-weight: bold;
}

.slide-desc {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

/* 改进的分页器样式 */
.swiper-pagination {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    justify-content: flex-end;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: var(--secondary-color);
    transform: scale(1.2);
}


/* 横幅轮播 开始 */
.banner-swiper-container {
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    /* 添加相对定位 */
}

.banner-swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-swiper-pagination {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    justify-content: flex-end;
    z-index: 20;
}

.banner-swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 3px;
    cursor: pointer;
    transition: all 0.3s;
}

.banner-swiper-pagination-bullet-active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* 横幅轮播 结束 */




/* 公告栏 开始 */
.notice-board {
    height: 426px;
    width: 345px;
    margin: 0 auto;
    padding: 5px 0;
    position: relative;
    overflow: hidden;
}

.notice-scroll-container {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.notice-list {
    position: absolute;
    width: 100%;
    animation: scrollUp 40s linear infinite;
}

.notice-list.paused {
    animation-play-state: paused;
}

.notice-item {
    padding: 5px;
    background: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 2px solid #eee;
    margin-bottom: 5px;
}

.notice-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    border-left-color: #C50808;
}

.notice-badge {
    background: #07519A;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-weight: bold;
}

.notice-content {
    flex-grow: 1;
}

.notice-title {
    line-height: 1.5;
    margin-bottom: 5px;
}

.notice-title a {
    font-size: 16px;
    color: #333;
    text-decoration: none;

}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

@media (max-width: 480px) {
    .notice-board {
        width: 100%;
        padding: 20px;
    }
}

/* 公告栏 结束 */






/* 特色新闻块 */
.featured-news {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.featured-news:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.featured-news img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.featured-news h5 {
    font-size: 16px;
    margin-bottom: 8px;
}

.featured-news h5 a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.featured-news h5 a:hover {
    color: var(--secondary-color);
}

.featured-news p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 页脚样式 */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 30px 0 20px;
    text-align: center;
    font-size: 14px;
    margin-top: 30px;
}

.footer a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.footer a:hover {
    color: #ffd700;
    text-decoration: underline;
}

.footer-links {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    margin: 0 15px;
    padding: 5px 0;
}

.footer-info {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 新增的页脚布局样式 */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 80px;
}

/* 修改footer-logo样式，确保图片不变形 */
.footer-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    /* 改为自动宽度 */
    height: 80px;
    /* 保持固定高度 */
    object-fit: contain;
    /* 关键属性：保持图片比例不变形 */
}

/* 新增警察图标样式 */
.police-icon {
    width: auto;
    /* 自动宽度 */
    height: 20px;
    /* 适当高度 */
    object-fit: contain;
    /* 保持比例 */
    vertical-align: middle;
    /* 垂直对齐 */
    margin: 0;
    /* 左右间距 */
}

/* 确保footer-links中的图片也正确处理 */
.footer-links img {
    width: auto;
    height: 20px;
    object-fit: contain;
    margin-top: 4px;
}

.footer-text {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

/* 搜索表单 */
.search-form {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 15px;
}

.search-form .form-label {
    font-weight: bold;
    color: #555;
}

.search-form .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    width: 100%;
    padding: 8px;
    font-weight: bold;
}

/* 友情链接 */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.friend-links a {
    display: block;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    width: 345px;
    height: 74px;
}

.friend-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.friend-links img {
    width: 345px;
    height: 74px;
    object-fit: cover;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .nav-menu {
        flex-wrap: wrap;
        height: auto;
    }

    .nav-menu li {
        width: 33.333%;
        justify-content: center;
    }

    .swiper-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-menu li {
        width: 50%;
    }

    .swiper-container {
        height: 250px;
    }

    .top-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .top-links a {
        margin: 5px 0 5px 15px;
    }
}

@media (max-width: 576px) {
    .nav-menu li {
        width: 100%;
    }

    .swiper-container {
        height: 200px;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title a {
        margin-top: 5px;
    }
}