:root {
    --blue: #0284c7;
    --blue-dark: #0369a1;
    --blue-light: #f0f9ff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #fff;
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.06);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--slate-800);
    background-color: var(--slate-50);
    line-height: 1.7;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
img, svg {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}
/* 导航栏 */
header {
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.header-wrap {
    height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-box {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 60%;
}
.logo-box img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
}
.nav-item {
    position: relative;
}
.nav-item>a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--slate-700);
    padding: 10px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}
.nav-item>a .arrow {
    font-size: 11px;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
}
.nav-item>a .arrow i {
    transition: transform 0.3s ease;
}
.nav-item:hover>a,
.nav-item.active>a {
    color: var(--blue);
    background-color: var(--blue-light);
}
.nav-item:hover>a .arrow i {
    transform: rotate(180deg);
}
/* 下拉菜单 - 修复鼠标移出间隙问题 */
.dropdown-menu {
    position: absolute;
    top: calc(100% - 5px);  /* 关键：上移缩小间隙 */
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-100);
    list-style: none;
    min-width: 170px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 1001;
}
/* 在菜单上方增加一个透明的“桥接区”，防止鼠标移动时失焦 */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}
.dropdown-menu li a {
    display: block;
    padding: 11px 22px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--slate-600);
    white-space: nowrap;
}
.dropdown-menu li a:hover {
    color: var(--blue);
    background-color: var(--blue-light);
    padding-left: 26px;
}
/* 桌面端 hover 下拉菜单 */
@media (min-width: 861px) {
    .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(2px);
    }
}
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--slate-900);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: opacity;
    transition: opacity 0.35s ease, visibility 0.35s;
}
/* 巨幕 */
.hero-banner {
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.72) 0%, rgba(3, 105, 161, 0.82) 100%),
        url('../images/1ae14cee-a066-4f50-927f-4bf540bdf24e.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 0 24px;
}
.hero-banner h2 {
    font-size: 40px;
    letter-spacing: 5px;
    margin-bottom: 18px;
    font-weight: 300;
    animation: fadeInUp 1s ease-out;
}
.hero-banner h2 strong {
    font-weight: 800;
    color: #f0f9ff;
}
.hero-banner p {
    font-size: 17px;
    opacity: 0.9;
    letter-spacing: 2.5px;
    font-weight: 300;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 22px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: fadeInUp 1.2s ease-out;
}
/* 通用标题 */
.block-title {
    text-align: center;
    margin: 70px 0 40px;
}
.block-title h3 {
    font-size: 27px;
    color: var(--slate-900);
    font-weight: 800;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
}
.block-title p {
    font-size: 11px;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 5px;
    font-weight: 700;
}
.section-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 38px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(241, 245, 249, 0.8);
    margin-bottom: 10px;
}
/* 图文卡片样式（水务力量/党建/清廉/动态等通用） */
.media-news-item {
    display: flex;
    gap: 28px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--slate-100);
    transition: var(--transition);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin: 0 -6px 24px;
}
.media-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.media-news-item:hover {
    background: #fafcfd;
}
.media-img {
    width: 240px;
    height: 150px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}
.media-img img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}
.media-news-item:hover .media-img img {
    transform: scale(1.05);
}
.media-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    min-width: 0;
}
.media-text h4 {
    font-size: 18px;
    color: var(--slate-900);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
}
.media-text h4:hover {
    color: var(--blue);
}
.media-text p {
    font-size: 14px;
    color: var(--slate-500);
    margin-bottom: 14px;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.media-meta {
    font-size: 12px;
    color: var(--slate-400);
    font-weight: 600;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 5px;
}
/* 日期标题列表（无图片列表） */
.date-title-list {
    list-style: none;
/*            margin-top: 20px;*/
}
.date-title-list li {
    display: flex;
    align-items: center;
    padding: 16px 12px;
    border-bottom: 1px solid var(--slate-100);
    font-size: 15px;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    cursor: pointer;
    gap: 16px;
}
.date-title-list li:last-child {
    border-bottom: none;
}
.date-title-list .list-date {
    color: var(--blue);
    width: 110px;
    flex-shrink: 0;
    font-weight: 700;
    font-family: monospace;
    background: var(--blue-light);
    padding: 5px 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.date-title-list .list-date i {
    font-size: 11px;
}
.date-title-list .list-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    color: var(--slate-700);
    font-weight: 600;
    padding-left: 20px;
}
.date-title-list li:hover .list-title {
    color: var(--blue);
    transform: translateX(3px);
}
/* 选项卡导航 - 无图标 */
.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    background-color: var(--slate-50);
    padding: 6px;
    border-radius: 48px;
    width: 100%;
}
.tab-click-btn {
    flex: 1;
    padding: 10px 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 40px;
    color: var(--slate-500);
    transition: var(--transition);
    border: none;
    background: transparent;
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
@media (max-width: 640px) {
    .tab-click-btn {
        font-size: 11px;
        white-space: normal;
        padding: 8px 4px;
    }
    .tabs-nav {
        gap: 4px;
        border-radius: 32px;
    }
}
.tab-click-btn.active {
    background-color: var(--blue);
    color: #fff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}
.tab-click-btn:not(.active):hover {
    background: #e8ecf1;
    color: var(--slate-700);
}
.pane-display {
    display: none;
}
.pane-display.active {
    display: block;
    animation: fadeIn 0.4s ease;
}
/* 会员服务卡片 */
.service-links-grid {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0 10px;
}
.service-card-link {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    transition: all 0.25s ease;
    border: 1px solid var(--slate-100);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    background: linear-gradient(145deg, #fff, #fefefe);
}
.service-card-link:hover {
    transform: translateY(-6px);
    border-color: var(--blue);
    box-shadow: 0 20px 30px -12px rgba(2, 132, 199, 0.15);
}
.service-card-link .service-icon {
    font-size: 42px;
    margin-bottom: 16px;
    display: inline-block;
    color: var(--blue);
}
.service-card-link h4 {
    font-size: 21px;
    font-weight: 800;
    color: var(--slate-800);
    margin-bottom: 12px;
}
.service-card-link p {
    font-size: 13px;
    color: var(--slate-500);
    margin-bottom: 20px;
}
.service-card-link .link-arrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    border-bottom: 1.5px solid var(--blue);
    transition: gap 0.2s;
}
.service-card-link:hover .link-arrow i {
    transform: translateX(4px);
}
.service-card-link .link-arrow i {
    transition: transform 0.2s ease;
    margin-left: 4px;
    font-size: 11px;
}
/* 关于协会 */
.about-intro-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 50px 60px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(241, 245, 249, 0.8);
    text-align: justify;
    font-size: 15.5px;
    color: var(--slate-600);
    line-height: 2;
    position: relative;
    overflow: hidden;
}
.about-intro-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #0284c7 0%, #38bdf8 100%);
    border-radius: 0 3px 3px 0;
}
.about-intro-card p {
    text-indent: 2em;
    margin-bottom: 18px;
}
.about-intro-card p:last-child {
    margin-bottom: 0;
}
.about-intro-card .highlight-text {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    text-indent: 0;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.about-intro-card .highlight-text i {
    color: var(--blue);
    font-size: 22px;
}
/* 友情链接 */
.img-links-section {
    margin: 40px 0 60px;
}
.img-links-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.img-links-label .label-icon {
    width: 6px;
    height: 24px;
    background: var(--blue);
    border-radius: 3px;
    flex-shrink: 0;
}
.img-links-label span {
    font-size: 16px;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: 1px;
}
.img-links-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
.img-link-item {
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--slate-100);
    transition: transform 0.2s;
}
.img-link-item:hover {
    transform: translateY(-3px);
}
.img-link-item img {
    max-width: 130px;
    max-height: 65px;
    width: auto;
    height: auto;
    object-fit: contain;
}
footer {
    background-color: var(--slate-900);
    color: #94a3b8;
    padding: 60px 0 28px;
    font-size: 13px;
}
.footer-cols {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr;
    gap: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 36px;
}
.f-col h5 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 0.8px;
}
.f-col p {
    margin-bottom: 8px;
    font-size: 12px;
/*    display: flex;*/
    align-items: center;
    gap: 8px;
}
.f-col p i {
    width: 18px;
    font-size: 13px;
    color: #60a5fa;
}
.f-col ul {
    list-style: none;
}
.f-col li {
    margin-bottom: 8px;
    font-size: 12px;
}
.f-col li a i {
    margin-right: 6px;
    font-size: 10px;
    width: 14px;
}
.copyright {
    text-align: center;
    font-size: 11.5px;
    color: #64748b;
    margin-top: 22px;
    font-weight: 500;
}
.wechat-placeholder {
    background: rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-bottom: 8px;
    transition: 0.2s;
}
.wechat-placeholder i {
    font-size: 38px;
    color: #a0c4ff;
    margin-bottom: 5px;
}
.wechat-placeholder span {
    font-size: 9px;
    color: #94a3b8;
}
/* 窄屏专用样式：移动端菜单和下拉兼容增强 */
@media screen and (max-width: 860px) {
    .menu-toggle { display: flex; }
    .logo-box img { height: 38px; }
    .nav-list {
        position: fixed; top: 0; right: 0; width: 280px; height: 100vh;
        background: #ffffff; flex-direction: column; padding: 90px 24px;
        transform: translate3d(100%, 0, 0); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 995; overflow-y: auto; box-shadow: -4px 0 30px rgba(0, 0, 0, 0.08);
    }
    body.nav-active .nav-list { transform: translate3d(0, 0, 0); }
    body.nav-active .nav-overlay { opacity: 1; visibility: visible; pointer-events: auto; }
    .nav-item { width: 100%; }
    .nav-item>a { justify-content: space-between; width: 100%; padding: 12px 16px; border-radius: 12px; }
    .dropdown-menu {
        position: static; transform: none; opacity: 1; visibility: visible;
        box-shadow: none; border: none; background: var(--slate-100);
        margin: 0; padding: 0; min-width: auto; width: 100%;
        max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out;
        pointer-events: auto; left: auto; right: auto;
    }
    .dropdown-menu.show {
        max-height: 260px; margin: 8px 0 12px 0; padding: 8px 0;
        border-radius: 12px;
    }
    .dropdown-menu li a { padding: 10px 20px; white-space: normal; }
    .hero-banner { background-attachment: scroll; height: auto; min-height: 380px; padding: 60px 20px; }
    .hero-banner h2 { font-size: 26px; letter-spacing: 2px; }
    .media-news-item { flex-direction: column; gap: 14px; }
    .media-img { width: 100%; height: auto; max-height: 200px; }
    .section-card { padding: 24px 20px; }
    .block-title { margin: 50px 0 30px; }
    .footer-cols { grid-template-columns: 1fr; text-align: center; gap: 28px; }
    .service-links-grid { flex-direction: column; gap: 18px; }
    .wechat-placeholder { margin: 0 auto; }
    .about-intro-card { padding: 30px 24px; }
    .date-title-list li { flex-wrap: wrap; gap: 10px; }
    .date-title-list .list-date { width: auto; min-width: 100px; }
    .list-title { white-space: normal; word-break: break-word; }
}
@media screen and (max-width: 640px) {
    .tabs-nav { gap: 6px; border-radius: 28px; padding: 4px; }
    .tab-click-btn { font-size: 10.5px; padding: 6px 2px; white-space: normal; line-height: 1.3; }
    .hero-banner h2 { font-size: 22px; letter-spacing: 1px; }
    .hero-banner .sub-title { font-size: 12px; padding: 6px 16px; }
    .block-title h3 { font-size: 24px; }
    .media-text h4 { font-size: 16px; }
    .media-text p { font-size: 13px; }
    .service-card-link { padding: 24px 16px; }
    .service-card-link h4 { font-size: 19px; }
    .about-intro-card { font-size: 14px; padding: 24px 20px; }
    .about-intro-card .highlight-text { font-size: 16px; }
    .img-link-item img { max-width: 100px; max-height: 50px; }
    footer { padding: 40px 0 20px; }
    .footer-cols { gap: 24px; }
    .copyright { font-size: 10px; }
    .container { padding: 0 16px; }
}
@media screen and (max-width: 480px) {
    .hero-banner { min-height: 320px; padding: 40px 16px; }
    .hero-banner h2 { font-size: 20px; }
    .hero-banner .sub-title { font-size: 11px; }
    .block-title h3 { font-size: 22px; }
    .tab-click-btn { font-size: 9.5px; padding: 6px 1px; gap: 3px; }
    .tabs-nav { gap: 4px; }
    .section-card { padding: 20px 16px; }
    .media-news-item { margin: 0 0 20px; padding: 8px; }
    .date-title-list li { padding: 12px 8px; }
    .list-date { font-size: 11px; padding: 4px 8px; }
    .service-card-link { padding: 20px 12px; }
    .service-card-link .service-icon { font-size: 36px; }
    .service-card-link h4 { font-size: 18px; }
    .img-links-flex { justify-content: center; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 页面横幅 */
.page-banner {
    background: linear-gradient(135deg, rgba(2,132,199,0.92), rgba(3,105,161,0.96)), url('https://images.unsplash.com/photo-1567446537708-ac4aa75c9c28?auto=format&fit=crop&w=1200&q=80') center/cover;
    padding: 70px 0;
    text-align: center;
    color: white;
}
.page-banner h1 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.page-banner p {
    font-size: 16px;
    opacity: 0.9;
}

/* 分页样式 - 美观统一 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 40px 0 20px;
    padding: 0;
    list-style: none;
}
.pagination li {
    display: inline-block;
    margin: 0;
}
.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-700);
    background-color: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}
.pagination li a:hover {
    background-color: var(--blue-light);
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
}
.pagination li.active span {
    background-color: var(--blue);
    border-color: var(--blue);
    color: white;
    cursor: default;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}
.pagination li.disabled span {
    color: var(--slate-400);
    background-color: var(--slate-50);
    border-color: var(--slate-200);
    cursor: not-allowed;
    opacity: 0.6;
}
/* 上一页/下一页 箭头样式 */
.pagination li:first-child a,
.pagination li:last-child a,
.pagination li:first-child span,
.pagination li:last-child span {
    padding: 0 16px;
    font-weight: 600;
}
/* 移动端适配 */
@media (max-width: 640px) {
    .pagination {
        gap: 6px;
    }
    .pagination li a,
    .pagination li span {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 12px;
    }
    .pagination li:first-child a,
    .pagination li:last-child a,
    .pagination li:first-child span,
    .pagination li:last-child span {
        padding: 0 12px;
    }
}