/* ========== 基础样式 ========== */
:root {
    --primary-green: #38a660;
    --light-green: #6c9f3d;
    --dark-green: #1e7e34;
    --accent-pink: #e91e63;
    --nav-gradient: linear-gradient(135deg, #4CAF50, #45a049);
    --header-height: 70px;
    --tabs-height: 60px; 
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    font-weight: 400;
    max-width: 100vw !important;
    overflow-x: hidden;
    height: 100vh;
    background-color: #F6F6F6;
}

/* ========== 主要内容区域 ========== */
.main-content {
    padding: 0;
    min-height: calc(100vh - 70px - 440px - 60px); /* 减去头部导航、轮播图和标签导航的高度 */
}

.page-title {
    color: var(--primary-green);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

/* ========== 面包屑导航 ========== */
.breadcrumb-nav {
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item.active {
    color: var(--primary-green);
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

/* ========== 标签页导航 - 二级吸顶效果 ========== */
.tabs-container {
    width: 100vw;
    height: var(--tabs-height);
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: -webkit-sticky; /* Safari支持 */
    position: sticky;
    top: var(--header-height);
    z-index: 998;
    margin-left: calc(-50vw + 50%); /* 使元素突破容器限制，实现全宽 */
    margin-right: calc(-50vw + 50%);
    padding: 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    /* 确保sticky效果正常工作 */
    will-change: transform;
}

.tabs-container.sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ========== 标签页内容 ========== */
.tab-content {
    background: #fff;
    padding: 1px 0px;
}

.tab-pane {
    display: block;
}

.content-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
    text-align: justify;
}

/* ========== 新闻网格布局 ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 0 30px 0;
    
}

.news-item {
    background: #fff;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
}


.news-item:hover {
    transform: translateY(-8px) scale(1.02);
}

.news-item:hover::before {
    opacity: 1;
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1) saturate(1);
}

.news-item:hover .news-image img {
    transform: scale(1.08) rotate(0.5deg);
    filter: brightness(1.1) saturate(1.15);
}

.news-content {
    padding: 16px;
}

.news-title {
    font-size: 16px;
    font-family: PingFangSC-regular;
    /* font-weight: 500; */
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px;
}

.news-date {
    font-size: 14px;
    font-family: PingFangSC-regular;
    color: #bebebe;
    margin: 0;
    text-align: right;
}

/* ========== 分页导航主题覆盖 ========== */
/* 只覆盖组件的主题色，保持与页面风格一致 */
.pagination-wrapper .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green)) !important;
    border-color: var(--primary-green) !important;
}

.pagination-wrapper .page-item:not(.disabled):not(.active) .page-link:hover {
    color: var(--primary-green) !important;
    border-color: rgba(56, 166, 96, 0.3) !important;
}

/* ========== 工作动态列表样式 ========== */
.work-news-list {
    margin: 0 0 30px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.work-news-item {
    display: flex;
    height: 220px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.work-news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 166, 96, 0.05), transparent);
    transition: left 0.6s ease;
}

.work-news-item:hover {
    box-shadow: 0 8px 30px rgba(56, 166, 96, 0.15);
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(56, 166, 96, 0.3);
}

.work-news-item:hover::before {
    left: 100%;
}

.work-news-image {
    width: 240px;
    height: 180px;
    margin-right: 20px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.work-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1) saturate(1);
}

.work-news-item:hover .work-news-image img {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(1.1) saturate(1.2);
}

.work-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
    padding: 5px 0;
}

.work-news-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 63px;
    transition: all 0.3s ease;
    position: relative;
}

.work-news-item:hover .work-news-title {
    color: var(--primary-green);
    transform: translateX(3px);
}

.work-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #CECECE;
}

.work-news-date {
    font-size: 13px;
    color: #999;
    font-weight: 400;
}

.work-news-source {
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 500;
}

.work-news-source:hover {
    color: var(--primary-green);
}

/* ========== 事宜通告样式 ========== */
.former-leaders-list {
    margin: 0px 0 30px 0;
}

.former-leaders-item {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    margin: 0 -10px;
    padding: 20px 10px;
}

.former-leaders-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 166, 96, 0.08), transparent);
    transition: left 0.5s ease;
}

.former-leaders-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, rgba(56, 166, 96, 0.05) 100%);
    transform: translateX(5px);
    border-bottom: 1px solid #38a660;
   
}

.former-leaders-item:hover::before {
    left: 100%;
}

.news-number {
    width: 30px;
    height: 30px;
    background-color: rgb(241, 247,241);
    color: rgb(56, 166, 96);
    border-radius: 0px 12px 0px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
    margin-top: 10px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}
 
.news-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-green);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 0px 12px 0px 12px;
    z-index: 1;
}

.news-number span {
    position: relative;
    z-index: 2;
    color: inherit;
    transition: color 0.3s ease;
}

.former-leaders-item:hover .news-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 3px 10px rgba(56, 166, 96, 0.3);
    color: white;
}

.former-leaders-item:hover .news-number span {
    color: white;
}

.former-leaders-item:hover .news-number::before {
    opacity: 1;
}

.news-content {
    flex: 1;
}

.former-leaders-item .news-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 23px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: SourceHanSansSC-bold;
    font-weight: 600;
    position: relative;
}

.former-leaders-item:hover .news-title {
    color: #38a660;
    transform: translateX(8px);

}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.former-leaders-item:hover .news-excerpt {
    color: #555;
    transform: translateX(5px);
}

.news-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #999;
    transition: all 0.3s ease;
}

.former-leaders-item:hover .news-meta {
    transform: translateX(3px);
}

.news-source {
    color: #333333;

    font-family: SourceHanSansSC-regular;
}

.news-separator {
    margin: 0 10px;
    color: #ddd;
}

.news-date {
    color: #333333;
    font-family: SourceHanSansSC-regular;
}

/* ========== 花展活动样式 ========== */
/* .flower-show-list {
    margin: 0 0 30px 0; */
/* }

.flower-show-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin: 0 -10px;
}

.flower-show-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 166, 96, 0.06), transparent);
    transition: left 0.5s ease;
}

.flower-show-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, rgba(56, 166, 96, 0.03) 100%);
    transform: translateX(3px);
    box-shadow: 0 2px 10px rgba(56, 166, 96, 0.08);
}

.flower-show-item:hover::before {
    left: 100%;
}

.show-content {
    display: flex;
    align-items: center;
    flex: 1;
    font-family: PingFangSC-bold;
    font-size: 18px;
    color: #494a4a;
}

.show-bullet {
    color: #333;
    font-size: 16px;
    margin-right: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.flower-show-item:hover .show-bullet {
    color: var(--primary-green);
    transform: scale(1.3);
}

.show-title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flower-show-item:hover .show-title {
    color: var(--primary-green);
    transform: translateX(5px);
}

.show-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.show-date {
    font-size: 12px;
    color: #999;
}

.show-link {
    font-size: 12px;
    color: #999;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.flower-show-item:hover .show-link {
    color: var(--primary-green);
    transform: translateX(3px);
}

.flower-show-item:hover .show-link::after {
    width: 100%;
} */

/* ========== 文本样式 ========== */
.main-content p {
    font-size: 14px;
    line-height: 20px;
    color: #9a9a9a;
    font-family: SourceHanSansSC-normal;
    letter-spacing: 0.1px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 40px;
}

/* ========== 占位内容样式 ========== */
.placeholder-content {
    min-height: 800px;
    padding: 20px 0;
}

.placeholder-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 12px;
}


@media (min-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 30px 100px;
    }
    .work-news-list {
        padding: 24px 40px;
        gap: 20px; /* 增加间距 */
    }
    
    .work-news-item {
        height: 240px; /* 比PC端稍大 */
        padding: 24px; /* 增加内边距 */
    }
    
    .work-news-image {
        width: 260px; /* 比PC端稍大 */
        height: 195px;
        margin-right: 24px;
    }
    
    .work-news-title {
        font-size: 16px; /* 比PC端稍大 */
        max-height: 72px; /* 对应3行文字 */
    }
    
    .work-news-meta {
        margin-top: 16px;
        padding-top: 14px;
    }
    
    .work-news-date,
    .work-news-source {
        font-size: 14px; /* 比PC端稍大 */
    }
    .former-leaders-list {
        padding: 0px 40px;
    }
    .former-leaders-item {
        
    }
    .news-number {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
    .former-leaders-item .news-title {
        font-size: 17px;
      
    }
    .news-excerpt {
        font-size: 14px;
        margin-bottom: 18px;
        font-family: SourceHanSansSC-regular;
        color: #9A9A9A;
    }
    .news-meta {
        font-size: 13px;
    }
    /* .flower-show-list {
        padding: 0px 40px 30px 40px;
    }
    .flower-show-item {
        padding: 18px 0;
    } */
    .show-title {
        font-size: 15px;
    }
    .show-meta {
        gap: 25px;
    }
    .show-date,
    .show-link {
        font-size: 13px;
    }
}

/* 超大屏幕优化 (1440px以上) */
@media (min-width: 1440px) {
    .work-news-list {
        padding: 30px 60px;
        gap: 22px;
    }
    
    .work-news-item {
        height: 260px;
        padding: 28px;
    }
    
    .work-news-image {
        width: 280px;
        height: 210px;
        margin-right: 28px;
    }
    
    .work-news-title {
        font-size: 17px;
        max-height: 78px;
    }
    
    .work-news-meta {
        margin-top: 18px;
        padding-top: 16px;
    }
    
    .work-news-date,
    .work-news-source {
        font-size: 15px;
    }
}

/* ========== 响应式设计 ========== */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
      
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-title {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .main-content {
        min-height: calc(100vh - 70px - 320px - 60px);
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .main-content p {
        font-size: 1rem;
    }
    
    /* 新闻网格响应式 */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 20px 0;
    }
    
    .news-image {
        height: 170px;
    }
    
    .news-content {
        padding: 12px;
    }
    
    .news-title {
        font-size: 14px;
        -webkit-line-clamp: 3;
        min-height: 60px;
    }
    
    .pagination-wrapper {
        margin: 30px 0 15px;
    }
    
    .pagination {
        gap: 6px;
    }
    

    
    /* 工作动态响应式 - 平板端保持PC布局，按比例缩小 */
    .work-news-list {
        gap: 15px; /* PC端18px按比例缩小 */
    }
    
    .work-news-item {
        height: 180px; /* PC端220px按比例缩小 */
        padding: 16px; /* PC端20px按比例缩小 */
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .work-news-image {
        width: 190px; /* PC端240px按比例缩小 */
        height: 148px; /* PC端180px按比例缩小 */
        margin-right: 16px; /* PC端20px按比例缩小 */
        flex-shrink: 0;
    }
    
    .work-news-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        height: 100%;
        padding: 4px 0; /* PC端5px按比例缩小 */
    }
    
    .work-news-title {
        font-size: 14px; /* PC端15px按比例缩小 */
        -webkit-line-clamp: 3; /* 保持3行 */
        max-height: 54px; /* 对应3行文字高度 */
    }
    
    .work-news-meta {
        margin-top: 12px; /* PC端15px按比例缩小 */
        padding-top: 10px; /* PC端12px按比例缩小 */
    }
    
    /* 事宜通告响应式 */
    .former-leaders-item {
        padding: 16px 0;
    }
    
    .news-number {
        width: 26px;
        height: 26px;
        font-size: 13px;
        margin-right: 16px;
    }
    
    .former-leaders-item .news-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .news-excerpt {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    /* 花展活动平板端响应式 */
    .flower-show-item {
        padding: 14px 0;
    }
    
    .show-title {
        font-size: 14px;
    }
    
    .show-meta {
        gap: 18px;
    }
}

@media (max-width: 576px) {
    .tab-content {
        padding: 0.1px 15px;
    }
    
    .news-grid {
        margin: 0px 0;
        gap: 12px;
    }
    
    .news-content {
        padding: 10px;
    }
    
    .news-title {
        font-size: 13px;
        min-height: 40px;
    }
    
    .news-date {
        font-size: 12px;
    }
    
    .pagination-wrapper {
        margin: 20px 0 10px;
    }
    

    
    /* 工作动态响应式 - 保持PC端布局，按比例缩小 */
    .work-news-list {
       
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .work-news-item {
        height: 120px; /* PC端220px按比例缩小 */
        padding: 12px; /* PC端20px按比例缩小 */
        display: flex;
        flex-direction: row; /* 保持横向布局 */
        align-items: flex-start;
    }
    
    .work-news-item:hover {
        transform: translateY(-2px) scale(1.01); /* 稍微减小动画效果 */
    }
    
    .work-news-image {
        width: 130px; /* PC端240px按比例缩小 */
        height: 96px; /* PC端180px按比例缩小 */
        margin-right: 12px; /* PC端20px按比例缩小 */
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .work-news-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        height: 100%;
        padding: 3px 0; /* PC端5px按比例缩小 */
    }
    
    .work-news-title {
        font-size: 13px; /* PC端15px按比例缩小 */
        -webkit-line-clamp: 2; /* 减少行数以适应小屏 */
        max-height: 36px; /* 对应2行文字高度 */
        margin-bottom: 0;
    }
    
    .work-news-meta {
        margin-top: 8px; /* PC端15px按比例缩小 */
        padding-top: 8px; /* PC端12px按比例缩小 */
    }
    
    .work-news-date,
    .work-news-source {
        font-size: 11px; /* PC端13px按比例缩小 */
    }
    
    /* 事宜通告手机端响应式 */
    .former-leaders-item {
        padding: 15px 0;
        flex-direction: row;
        align-items: stretch;
    }
    
    .news-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
        margin-right: 0;
        margin-bottom: 12px;
        align-self: flex-start;
    }
    
    .former-leaders-item .news-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .news-excerpt {
        font-size: 12px;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
    }
    
    .news-meta {
        font-size: 12px;
    }
    
    /* 花展活动手机端响应式 */
    .flower-show-item {
        padding: 12px 0;
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }
    
    .show-content {
        width: 100%;
    }
    
    .show-title {
        font-size: 13px;
    }
    
    .show-meta {
        gap: 12px;
        align-self: flex-end;
    }
    
    .show-date,
    .show-link {
        font-size: 11px;
    }
}

/* 中等手机屏幕优化 (600px-768px) */
@media (max-width: 768px) and (min-width: 601px) {
    .work-news-item {
        height: 140px; /* 介于平板和小屏之间 */
        padding: 14px;
    }
    
    .work-news-image {
        width: 150px; /* 介于平板和小屏之间 */
        height: 112px;
        margin-right: 14px;
    }
    
    .work-news-title {
        font-size: 13px;
        -webkit-line-clamp: 2;
        max-height: 39px;
    }
    
    .work-news-meta {
        margin-top: 10px;
        padding-top: 9px;
    }
    
    .work-news-date,
    .work-news-source {
        font-size: 11px;
    }
}

/* 小屏手机优化 - 进一步缩小工作动态 */
@media (max-width: 480px) {
    .work-news-item {
        height: 100px; /* 进一步缩小 */
        padding: 10px; /* 减小内边距 */
    }
    
    .work-news-image {
        width: 110px; /* 进一步缩小图片 */
        height: 80px;
        margin-right: 10px;
    }
    
    .work-news-content {
        padding: 2px 0;
    }
    
    .work-news-title {
        font-size: 12px; /* 进一步缩小字体 */
        -webkit-line-clamp: 2;
        max-height: 30px;
        line-height: 1.25;
    }
    
    .work-news-meta {
        margin-top: 6px;
        padding-top: 6px;
    }
    
    .work-news-date,
    .work-news-source {
        font-size: 10px; /* 进一步缩小字体 */
    }
}
