
/* ==================== 轮播图 ==================== */
.bigimg { margin-top: 10px; }
.ck-slide {
    position: relative; width: 100%;
    aspect-ratio: 1080 / 450;
    background: #e9edf2; border-radius: 8px; overflow: hidden;
}
.ck-slide-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.ck-slide-wrapper > li {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity .6s ease;
}
.ck-slide-wrapper > li.active { opacity: 1; z-index: 2; }
.ck-slide-wrapper > li img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ck-slidebox {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 34px 24px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
}
.ck-slidebox .boxtitle {
    flex: 1; min-width: 0;
    color: #fff; font-size: 16px; font-weight: 600;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.slideWrap .dot-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.slideWrap .dot-wrap li {
    width: 26px; height: 26px; border-radius: 50%;
    line-height: 22px; text-align: center;
    font-size: 12px; font-weight: 500; color: #fff;
    background: rgba(255, 255, 255, .32);
    border: 2px solid transparent;
    cursor: pointer; user-select: none; transition: all .3s;
}
.slideWrap .dot-wrap li.current { background: #0288d9; border-color: #fff; transform: scale(1.1); }
.slideWrap .dot-wrap li:hover { background: rgba(255, 255, 255, .6); }
.slideWrap .dot-wrap li.current:hover { background: #0288d9; }

/* ==================== 通用标签栏 ==================== */
.tabbar,
.smnewtab,
.jprojectitle,
.middlenewtab {
    background: #fff;
    border-bottom: 2px solid #0288d9;
    padding: 0 12px;
    border-radius: 4px 4px 0 0;
}
.tabbar ul,
.smnewtab ul,
.jprojectitle ul,
.middlenewtab ul {
    display: flex; align-items: center;
    height: 40px;
    flex-wrap: nowrap;
    overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.tabbar ul::-webkit-scrollbar,
.smnewtab ul::-webkit-scrollbar,
.jprojectitle ul::-webkit-scrollbar,
.middlenewtab ul::-webkit-scrollbar { display: none; width: 0; height: 0; }

.tabbar ul > li,
.smnewtab ul > li,
.jprojectitle ul > li,
.middlenewtab ul > li {
    flex: 0 0 auto;
    padding: 0 18px;
    height: 40px; line-height: 40px;
    font-size: 14px; font-weight: 500; color: #555;
    cursor: pointer; white-space: nowrap;
    border-radius: 4px 4px 0 0;
    transition: all .2s;
}
.tabbar ul > li.smactive,
.smnewtab ul > li.smactive,
.middlenewtab ul > li.smactive,
.jprojectitle ul > li.active { background: #0288d9; color: #fff; }
.tabbar ul > li:hover,
.smnewtab ul > li:hover,
.middlenewtab ul > li:hover,
.jprojectitle ul > li:hover { color: #0288d9; }
.tabbar ul > li.smactive:hover,
.smnewtab ul > li.smactive:hover,
.middlenewtab ul > li.smactive:hover,
.jprojectitle ul > li.active:hover { color: #fff; }

.tabbar #tabmore,
.smmore,
.jprojectitle ul > li.more {
    margin-left: auto !important;
    padding-right: 0 !important;
    font-weight: 400; color: #0288d9; cursor: pointer;
}
.tabbar #tabmore a,
.smmore a,
.jprojectitle ul > li.more a { color: #0288d9; }
.tabbar #tabmore a:hover,
.smmore a:hover,
.jprojectitle ul > li.more a:hover { text-decoration: underline; }

/* ==================== 新闻列表 ==================== */
.newsbar {
    margin-top: 18px; background: #fff; border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04); overflow: hidden;
    height: 320px;
}
.tabnews { padding: 0 12px 12px; }
.tabnewstitle { padding-top: 6px; }
.titlebar { display: block; min-height: 380px; }

.titlebar table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.titlebar table tr { transition: background .15s; }
.titlebar table tr:hover { background: #f0f8ff; }
.titlebar table td { padding: 9px 4px; font-size: 14px; vertical-align: middle; }
.titlebar td.news-title-td {
    padding-left: 5px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.titlebar td.news-title-td i { color: #e53935; font-style: normal; margin-right: 4px; }
.titlebar td.news-date-td {
    width: 96px; padding-right: 5px;
    text-align: right; white-space: nowrap;
}
.titlebar table td a { color: #333; }
.titlebar table td a:hover { color: #0288d9; }
.titlebar td.news-date-td a { color: #8b98a5; font-size: 13px; }

/* ==================== 服务信息 ==================== */
.formmiddel {
    margin-top: 18px; background: #fff; border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04); overflow: hidden;
    padding: 0 12px 18px;
}
.middlenewtab { margin: 0 -12px; padding: 0 12px; border-radius: 0; }
.middletabcon { padding-top: 14px; overflow: hidden; min-height: 200px; }
.middlelist { overflow: hidden; position: relative; }
.middlelist .scroll-wrap {
    display: flex; gap: 20px;
    animation: scrollLeft 28s linear infinite;
    width: max-content;
    /*暂停滑动*/
    /*animation: none;*/
}
.middlelist .scroll-wrap:hover { animation-play-state: paused; }
.middlelist .scroll-wrap li { flex-shrink: 0; width: 160px; transition: transform .25s; }
.middlelist .scroll-wrap li:hover { transform: scale(1.04); }
.middlelist .scroll-wrap li a { display: block; }
.middlelist .scroll-wrap li a img {
    width: 160px; height: 160px; object-fit: cover;
    border-radius: 75px; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); display: block;
}
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==================== 政策法规 & 党的建设 ==================== */
.newsbar2 { display: flex; gap: 18px; margin-top: 18px; }
.newsbar2 .smnews {
    flex: 1; min-width: 0;
    background: #fff; border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04); overflow: hidden;
    padding: 0 12px 14px;
}
.smnewtab { margin: 0 -12px; padding: 0 12px; border-radius: 0; }
.smnewlist { padding-top: 10px; min-height: 430px; }

.smnewimgbar {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 10px 0 12px; margin-bottom: 10px;
    border-bottom: 1px solid #e8edf2;
}
.smnewimgbar .smnewimg_img { flex-shrink: 0; }
.smnewimgbar .smnewimg_img img {
    width: 150px; height: 150px; object-fit: cover; border-radius: 6px;
}
.smnewimgbar .smnewimg_con {
    font-size: 15px; font-weight: 600; line-height: 1.6;
    padding-top: 4px; color: #1a2332;
}
.smnewimgbar .smnewimg_con a:hover { color: #0288d9; }

.smnewlist table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.smnewlist table tr { transition: background .15s; }
.smnewlist table tr:hover { background: #f0f8ff; }
.smnewlist table td {
    padding: 8px 2px; font-size: 13px; vertical-align: middle;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.smnewlist table td:first-child { width: auto; }
.smnewlist table td:last-child { width: 90px; text-align: right; white-space: nowrap; color: #888; }
.smnewlist table td > div { width: auto !important; text-align: right !important; }
.smnewlist table td a { color: #333; }
.smnewlist table td a:hover { color: #0288d9; }
.smnewlist table td:last-child a { color: #8b98a5; font-size: 12px; }

/* ==================== 旅居养老 ==================== */
.jproject {
    margin-top: 18px; background: #fff; border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04); overflow: hidden;
    padding: 0 12px 22px;
}
.jprojectitle { margin: 0 -12px; padding: 0 12px; border-radius: 0; }
.vmc-container { overflow: hidden; position: relative; padding-top: 6px; }
.vmc-viewport { overflow: hidden; position: relative; }
/*横向滑动*/
.vmc-viewport .vmc-track {
    display: flex; gap: 20px;
    animation: scrollRight 32s linear infinite;
    width: max-content;
    /*暂停滑动*/
    /*animation: none;*/
}
.vmc-viewport .vmc-track:hover { animation-play-state: paused; }
.vmc-viewport .vmc-track li { flex-shrink: 0; width: 270px; transition: transform .25s; }
.vmc-viewport .vmc-track li:hover { transform: scale(1.03); }
.vmc-viewport .vmc-track li a {
    display: block; border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .07); background: #fafcfd;
}
.vmc-viewport .vmc-track li a img {
    width: 270px; height: 190px; object-fit: cover; display: block;
}
.vmc-viewport .vmc-track li a .overlay {
    display: flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 10px 12px;
    background: #fff; border-top: 2px solid #eef3f7;
    font-size: 13px; font-weight: 500; color: #1a2332;
    line-height: 1.4; text-align: center;
}
.vmc-viewport .vmc-track li a .overlay:hover { color: #0288d9; }
@keyframes scrollRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ==================================================================
   响应式 —— 手机
   ================================================================== */
@media (max-width: 640px) {
    

    /* ---- 标签栏：横向滑动 + “更多”吸边 ---- */
    .tabbar, .smnewtab, .middlenewtab { padding: 0 10px; }
    .tabbar ul > li,
    .smnewtab ul > li,
    .middlenewtab ul > li,
    .jprojectitle ul > li { padding: 0 12px; font-size: 13px; height: 38px; line-height: 38px; }

    .tabbar #tabmore,
    .smmore {
        position: sticky; right: 0;
        padding: 0 2px 0 14px !important;
        background: #fff;
        box-shadow: -12px 0 12px -6px rgba(2, 136, 217, .35);
    }

    /* ---- 轮播图 ---- */
    .ck-slide { aspect-ratio: 3 / 2; }
    .ck-slidebox { padding: 22px 12px 10px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .ck-slidebox .boxtitle { font-size: 13px; white-space: normal; line-height: 1.45; }
    .slideWrap .dot-wrap li { width: 22px; height: 22px; line-height: 18px; font-size: 10px; }

    /* ---- 主新闻列表：标题与日期上下排列 ---- */
    .tabnews { padding: 0 10px 10px; }
    .titlebar { min-height: 220px; }

    .titlebar table,
    .titlebar table tbody,
    .titlebar table tr,
    .titlebar table td { display: block; width: 100% !important; }

    .titlebar table tr {
        padding: 10px 2px;
        border-bottom: 1px dashed #d0e4f0;
    }
    .titlebar table tr:last-child { border-bottom: 0; }
    .titlebar table td { padding: 0; font-size: 13px; }
    .titlebar td.news-title-td {
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.5;
    }
    .titlebar td.news-date-td { width: auto !important; text-align: left !important; padding-top: 4px; }
    .titlebar td.news-date-td a { font-size: 12px; }

    /* ---- 政策法规 / 党建列表 ---- */
    .smnews { padding: 0 10px 12px; }
    .smnewlist { min-height: 0; padding-top: 6px; }
    .smnewimgbar { flex-direction: column; align-items: center; text-align: center; padding: 8px 0 12px; }
    .smnewimgbar .smnewimg_img img { width: 100%; height: auto; max-width: 320px; border-radius: 8px; }
    .smnewimgbar .smnewimg_con { font-size: 14px; padding-top: 8px; }

    .smnewlist table,
    .smnewlist table tbody,
    .smnewlist table tr,
    .smnewlist table td { display: block; width: 100% !important; }
    .smnewlist table tr { padding: 9px 2px; border-bottom: 1px dashed #e8edf2; }
    .smnewlist table tr:last-child { border-bottom: 0; }
    .smnewlist table td { padding: 0; font-size: 13px; white-space: normal; }
    .smnewlist table td:last-child { text-align: left !important; padding-top: 3px; }
    .smnewlist table td > div { text-align: left !important; }

    /* ---- 服务信息 / 旅居养老 ---- */
    .middletabcon { min-height: 0; }
    .middlelist .scroll-wrap { gap: 12px; }
    .middlelist .scroll-wrap li { width: 100px; }
    .middlelist .scroll-wrap li a img { width: 100px; height: 100px; }

    .vmc-viewport .vmc-track { gap: 12px; }
    .vmc-viewport .vmc-track li { width: 160px; }
    .vmc-viewport .vmc-track li a img { width: 160px; height: 115px; }
    .vmc-viewport .vmc-track li a .overlay { font-size: 12px; min-height: 42px; padding: 8px 6px; }

    
}

@media (max-width: 380px) {
    .nav .all > li > a { padding: 13px 14px; font-size: 14px; }
    .ck-slidebox .boxtitle { font-size: 12px; }
    .middlelist .scroll-wrap li { width: 88px; }
    .middlelist .scroll-wrap li a img { width: 88px; height: 88px; }
}
