/* === Home Page Styles === */

/* News Banner */
.news-banner {
    padding: 16px 0;
    background: #fff;
}

.szyw {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

.sz_img {
    height: 100px;
}

.news-banner__inner {
    -ms-flex: 1;
    flex: 1;
    height: 100px;
    line-height: 100px;
    border-bottom: 5px solid #1b54b8;
    margin-left: -10px;
    padding-left: 30px;
    font-size: 28px;
    font-weight: 600;
}

/* Slogan Banners */
.slogan-banner {
    padding: 24px 0;
}

.slogan-banner__inner {
    border-radius: 4px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.slogan-banner__inner img {
    width: 100%;
    height: 100%;
}

/* Section base */
.section {
    padding: 36px 0;
}

.section--special {
    padding: 28px 0;
}

.section--articles {
    background: #F3F9FF;
    padding: 36px 0 40px;
}

.section--systems {
    padding: 36px 0 40px;
}

/* Police News */
.police-news {
    display: -ms-flexbox;
    display: flex;
}

.police-news__left {
    width: 480px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 36px;
}

.police-news__right {
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}

/* Simple Slideshow */
.slideshow {
    position: relative;
    height: 485px;
    border-radius: 4px;
    overflow: hidden;
}

.slideshow__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    -webkit-transition: opacity 0.5s ease;
    transition: opacity 0.5s ease;
}

.slideshow__slide--active {
    opacity: 1;
}

.slideshow__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(25, 25, 25, 0.57);
    padding: 14px 20px;
}

.slideshow__caption span {
    color: #fff;
    font-size: 19px;
}

.slideshow__dots {
    position: absolute;
    bottom: 50px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    display: -ms-flexbox;
    display: flex;
    z-index: 5;
}

.slideshow__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 4px;
    cursor: pointer;
    border: none;
}

.slideshow__dot--active {
    background: #fff;
}

/* News List */
.news-list__item {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    padding: 16px 0;
    position: relative;
    cursor: pointer;
}

.news-list__content {
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    margin-right: 12px;
}

.news-list__title {
    display: block;
    font-size: 17px;
    color: #2F3030;
    line-height: 1.5;
    margin-bottom: 6px;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.news-list__item:hover .news-list__title {
    color: #1B54B8;
}

.news-list__title--highlight {
    color: #1B54B8;
}

.news-list__summary {
    font-size: 15px;
    color: #98989E;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.news-list__item:hover .news-list__summary {
    color: #1B54B8;
}

.news-list__date {
    font-size: 14px;
    color: #B0B0B0;
    white-space: nowrap;
    padding-top: 2px;
}

.news-list__divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #EAEAEA;
}

/* Special Area */
.special-area {
    display: -ms-flexbox;
    display: flex;
}

.special-area__left {
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    margin-right: 28px;
}

.special-area__right {
    width: 280px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.special-area__title {
    font-size: 28px;
    font-weight: 700;
    color: #1B54B8;
    text-align: center;
    margin-bottom: 8px;
}

.special-area__title-line {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 24px;
}

.special-area__title-line::before,
.special-area__title-line::after {
    content: "";
    width: 230px;
    height: 2px;
    background: #1F74DB;
}

/* Special Cards */
.special-cards {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.special-card {
    position: relative;
    width: 25%;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
}

a.special-card {
    display: -ms-flexbox;
    display: flex;
    text-decoration: none;
    color: inherit;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
    -webkit-transition: -webkit-transform 0.2s;
    transition: transform 0.2s;
    padding: 8px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.special-card:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.special-card__bg {
    width: 96%;
    height: 96%;
    position: absolute;
    border-radius: 6px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.92;
}

.special-card__icon{
    width: 50px;
    height: 54px;
    margin-right: 25px;
}

.special-card__icon {
    position: relative;
    z-index: 1;
    font-size: 32px;
    color: #fff;
    opacity: 0.9;
}

.special-card__label-line {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    margin: 8px 0;
}

.special-card__label {
    position: relative;
    z-index: 1;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

/* Video News */
.video-slider {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
}

.video-slider__viewport {
    -ms-flex: 1;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.video-news-grid {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-transition: -webkit-transform 0.4s ease;
    transition: transform 0.4s ease;
}

.video-slider__btn {
    width: 30px;
    height: 57px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    margin: 70px 8px 0;
    -webkit-transition: opacity 0.2s;
    transition: opacity 0.2s;
}

.video-slider__btn img {
    width: 100%;
    height: 100%;
    display: block;
}

.video-slider__btn:hover:not(:disabled) {
    opacity: 0.8;
}

.video-slider__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.video-card {
    width: 20%;
    min-width: 200px;
    padding: 0 8px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

a.video-card {
    text-decoration: none;
    color: inherit;
}

.video-card__img {
    border-radius: 4px;
    overflow: hidden;
    height: 172px;
    margin-bottom: 10px;
}

.video-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
}

.video-card:hover .video-card__img img {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

.video-card__title {
    font-size: 16px;
    color: #2F3030;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card__title--blue {
    color: #1B54B8;
    font-weight: 700;
}

/* Articles */
.articles-grid {
    display: -ms-flexbox;
    display: flex;
}

.article-col {
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    background: #fff;
    padding: 24px 24px 16px;
    border-radius: 6px;
    margin-right: 32px;
}

.article-col:last-child {
    margin-right: 0;
}

.section-header--compact .section-header__tab--sm {
    font-size: 22px;
}

/* Compact List */
.compact-list__item {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #EAEAEA;
    cursor: pointer;
}

.compact-list__item:last-child {
    border-bottom: none;
}

.compact-list__dot {
    width: 10px;
    height: 10px;
    margin-right: 8px;
}

.compact-list__title {
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    font-size: 16px;
    color: #2F3030;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.compact-list__item:hover .compact-list__title {
    color: #1B54B8;
}

.compact-list__date {
    font-size: 14px;
    color: #999999;
    white-space: nowrap;
    margin-left: 8px;
}

/* Visit Stats */
.visit-stats {
    margin: 20px 0;
}

.visit-stats__inner {
    padding: 16px;
    background: #3A80D9;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

.visit-stats__label {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    margin-right: 16px;
}

.visit-stats__value {
    font-size: 15px;
    color: #fff;
}

.visit-stats__value strong {
    font-weight: 700;
    font-size: 20px;
}

.visit-stats__link {
    margin-left: auto;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.visit-stats__link:hover {
    opacity: 0.85;
}

/* System Cards */
/* === System Card Slider === */
.system-slider {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

.system-slider__viewport {
    -ms-flex: 1;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.system-slider__btn {
    width: 30px;
    height: 57px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    margin: 0 4px;
    -webkit-transition: opacity 0.2s;
    transition: opacity 0.2s;
}

.system-slider__btn img {
    width: 100%;
    height: 100%;
    display: block;
}

.system-slider__btn:hover:not(:disabled) {
    opacity: 0.8;
}

.system-slider__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.system-cards {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-transition: -webkit-transform 0.4s ease;
    transition: transform 0.4s ease;
}

.system-card {
    width: 33.333%;
    min-width: 200px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 24px 28px;
    background-size: 100% 100%;
    border-radius: 6px;
    cursor: pointer;
    -webkit-transition: -webkit-transform 0.2s;
    transition: transform 0.2s;
    margin-right: 16px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.system-card:last-child {
    margin-right: 0;
}

.system-card:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.system-card__icon img {
    width: 30px;
    height: 30px;
}

.system-card__icon {
    margin-right: 16px;
}

.system-card__label {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1200px) {
    .police-news__left {
        width: 400px;
    }
}

@media (max-width: 960px) {
    .police-news {
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .police-news__left {
        width: 100%;
        margin-right: 0;
        margin-bottom: 24px;
    }

    .slideshow {
        height: 360px;
    }

    .special-area {
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .special-area__left {
        margin-right: 0;
        margin-bottom: 24px;
    }

    .special-area__right {
        width: 100%;
    }

    .video-card {
        width: 33.33%;
        margin-bottom: 16px;
    }

    .articles-grid {
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .article-col {
        margin-right: 0;
        margin-bottom: 24px;
    }

    .system-card {
        margin-right: 8px;
    }
}

@media (max-width: 640px) {
    .news-banner__inner {
        height: auto;
        line-height: 1.5;
        padding: 10px 0 10px 20px;
    }

    .special-card {
        width: 50%;
    }

    .video-card {
        width: 50%;
    }

    .section-header__tab {
        font-size: 22px;
        padding: 0 12px;
    }
}

.visit-stats__img{
    width: 21px;
    height: 19px;
    margin-right: 10px;
}

/* === 一区一品 和煦护未 === */
.section--yqyp {
    padding: 36px 0 40px;
}

.yqyp-title {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #1B54B8;
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 50px;
}

.yqyp-title::before,
.yqyp-title::after {
    content: "";
    -ms-flex: 1;
    flex: 1;
    height: 2px;
    background: #1F74DB;
}

.yqyp-title::before {
    margin-right: 16px;
}

.yqyp-title::after {
    margin-left: 16px;
}

.yqyp-bg {
    position: absolute;
    display: block;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    height: 150px;
    z-index: -1;
    top: 30px;
}

/* 外层左右布局 */
.yqyp-wrap {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
}

.yqyp-wrap__main {
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    margin-right: 50px;
    position: relative;
}

.yqyp-wrap__side {
    width: 350px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-item-align: stretch;
    align-self: stretch;
}

/* 内层两栏布局（封面 + 文章列表） */
.yqyp-area {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: stretch;
    align-items: stretch;
}

/* 左侧：封面图片 */
.yqyp-area__cover {
    width: 35%;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-right: 16px;
}

.yqyp-image {
    display: block;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    text-decoration: none;
}

.yqyp-image > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yqyp-image__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    padding: 14px 16px;
}

.yqyp-image__overlay span {
    color: #fff;
    font-size: 15px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 中间：文章列表 */
.yqyp-area__list {
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}

.yqyp-articles {
    list-style: none;
    height: 100%;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
}

.yqyp-articles li {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #EAEAEA;
    cursor: pointer;
}

.yqyp-articles li:last-child {
    border-bottom: none;
}

.yqyp-articles__dot {
    width: 10px;
    height: 10px;
    margin-right: 8px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.yqyp-articles__title {
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    font-size: 16px;
    color: #2F3030;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.yqyp-articles li:hover .yqyp-articles__title {
    color: #1B54B8;
}

.yqyp-articles__date {
    font-size: 14px;
    color: #999999;
    white-space: nowrap;
    margin-left: 8px;
}

/* 右侧图标按钮已在 yqyp-wrap__side 中 */

.yqyp-icons {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex: 1;
    flex: 1;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
}

.yqyp-icon-btn {
    width: 46%;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 10px 6px;
    background: #F3F9FF;
    border-radius: 6px;
    cursor: pointer;
    -webkit-transition: background 0.2s, -webkit-transform 0.2s;
    transition: background 0.2s, transform 0.2s;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.yqyp-icon-btn:hover {
    background: #e0edff;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.yqyp-icon-btn img {
    height: 40px;
    margin-bottom: 8px;
}

.yqyp-icon-btn span {
    font-size: 13px;
    color: #2F3030;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* 一区一品 响应式 */
@media (max-width: 960px) {
    .yqyp-wrap {
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .yqyp-wrap__main {
        margin-right: 0;
        margin-bottom: 24px;
    }

    .yqyp-wrap__side {
        width: 100%;
    }

    .yqyp-area {
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .yqyp-area__cover {
        width: 100%;
        margin-right: 0;
        margin-bottom: 24px;
    }

    .yqyp-image {
        height: 360px;
    }

    .yqyp-icons {
        height: auto;
    }

    .yqyp-icon-btn {
        padding: 16px 8px;
    }
}

@media (max-width: 640px) {
    .yqyp-image {
        height: 260px;
    }

    .yqyp-icon-btn img {
        width: 32px;
        height: 32px;
    }

    .yqyp-icon-btn span {
        font-size: 12px;
    }
}

/* === 首页飘窗 === */
.floating-ad {
    position: fixed;
    z-index: 9999;
}

.floating-ad img {
    display: block;
    max-width: 100%;
    height: auto;
}

.floating-ad__close {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    cursor: pointer;
    line-height: 22px;
    text-align: center;
    font-size: 16px;
    padding: 0;
}

/* 关闭按钮定位：始终置于朝向视口中心的角，飘窗贴边时不被视口裁切 */
.floating-ad__close--top_left     { bottom: -12px; right: -12px; }
.floating-ad__close--top_right    { bottom: -12px; left: -12px; }
.floating-ad__close--bottom_left  { top: -12px; right: -12px; }
.floating-ad__close--bottom_right { top: -12px; left: -12px; }

.floating-ad__close:hover {
    background: rgba(0, 0, 0, 0.8);
}
