/* ========== 基础样式 ========== */
: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;
}



/* ========== 分页导航 ========== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.page-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
}

.page-btn.active:hover {
    background: var(--dark-green);
    border-color: var(--dark-green);
}

.page-btn:disabled {
    display: none;
}

.page-btn:disabled:hover {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #ccc;
    transform: none;
}

.page-ellipsis {
    padding: 8px 16px;
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
    min-width: 40px;
    text-align: center;
    justify-content: center;
}

/* ========== 新闻网格布局 ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 0 30px 0;
}

.news-item {
    background: #fff;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 1px solid #e5e5e5;
    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;
    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;
    margin: 0;
}

.news-date {
    font-size: 14px;
    font-family: PingFangSC-regular;
    color: #bebebe;
    margin: 0;
    text-align: right;
}





/* ========== 论文列表样式 ========== */
.paper-list {
    margin: 0 0 30px 0;
    padding: 0 30px;
}

.paper-header {
    display: grid;
    grid-template-columns: 3fr 1.5fr 0.8fr 1.5fr 0.8fr;
    gap: 20px;
    align-items: center;
    padding: 15px 15px;
    border-bottom: 1px solid #efefef;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    margin: 0 -15px 0 -15px;
    border-radius: 4px 4px 0 0;
}

.header-title,
.header-authors,
.header-year,
.header-journal,
.header-pages {
    color: #495057;
    font-weight: 600;
}

.header-year,
.header-pages {
    text-align: center;
}

/* 桌面端年份和页码居中，移动端左对齐 */
.paper-year,
.paper-pages {
    text-align: center;
}

.paper-item {
    display: grid;
    grid-template-columns: 3fr 1.5fr 0.8fr 1.5fr 0.8fr;
    gap: 20px;
    align-items: center;
    padding: 18px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 4px;
    margin: 0 -15px;
}

.paper-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, rgba(56, 166, 96, 0.03) 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(56, 166, 96, 0.08);
}

.paper-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.paper-item:hover .paper-title {
    color: var(--primary-green);
}

.paper-authors {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.paper-item:hover .paper-authors {
    color: #555;
}

.paper-year {
    font-size: 13px;
    color: #777;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.paper-item:hover .paper-year {
    color: var(--primary-green);
}

.paper-journal {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.paper-item:hover .paper-journal {
    color: #555;
}

.paper-pages {
    font-size: 13px;
    color: #777;
    text-align: center;
    transition: all 0.3s ease;
}

.paper-item:hover .paper-pages {
    color: var(--primary-green);
}

.mobile-label {
    display: none;
    font-weight: 600;
    color: var(--primary-green);
    margin-right: 5px;
    text-align: left;
}

/* ========== 花展活动样式 ========== */
.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;
}

.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);
}



/* ========== 文本样式 ========== */
.main-content p {
    font-size: 14px;
    line-height: 20px;
    color: #BEBEBE;
    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);
        padding: 30px 100px;
    }

    .paper-list {
        padding: 0 60px 30px 60px;
    }
    
    .paper-header {
        grid-template-columns: 3fr 1.5fr 0.8fr 1.5fr 0.8fr;
        gap: 24px;
        padding: 18px 20px;
        margin: 0 -20px 0 -20px;
        font-size: 15px;
    }
    
    .paper-item {
        grid-template-columns: 3fr 1.5fr 0.8fr 1.5fr 0.8fr;
        gap: 24px;
        padding: 22px 20px;
        margin: 0 -20px;
    }
    
    .paper-title {
        font-size: 16px;
    }
    
    .paper-authors {
        font-size: 14px;
    }
    
    .paper-year {
        font-size: 14px;
    }
    
    .paper-journal {
        font-size: 14px;
    }
    
    .paper-pages {
        font-size: 14px;
    }

    .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) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        
    }
}

/* ========== 响应式设计 ========== */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-image {
        height: 170px;
    }
    
    .news-title {
        font-size: 15px;
    }
    
    .paper-list {
        padding: 0 40px 30px 40px;
    }
    
    .paper-header {
        grid-template-columns: 2.5fr 1.2fr 0.7fr 1.3fr 0.7fr;
        gap: 15px;
        padding: 15px 15px;
        margin: 0 -15px 0 -15px;
        font-size: 13px;
    }
    
    .paper-item {
        grid-template-columns: 2.5fr 1.2fr 0.7fr 1.3fr 0.7fr;
        gap: 15px;
        padding: 18px 15px;
        margin: 0 -15px;
    }
    
    .paper-title {
        font-size: 14px;
    }
    
    .paper-authors {
        font-size: 12px;
    }
    
    .paper-year {
        font-size: 12px;
    }
    
    .paper-journal {
        font-size: 12px;
    }
    
    .paper-pages {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .main-content {
        min-height: calc(100vh - 70px - 320px - 60px);
        padding: 0px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .main-content p {
        font-size: 12px;
    }
    

    
    .pagination-wrapper {
        margin: 30px 0 15px;
    }
    
    .pagination {
        gap: 6px;
    }
    
    .page-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 36px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .news-image {
        height: 160px;
    }
    
    .news-content {
        padding: 12px;
    }
    
    .news-title {
        font-size: 14px;
    }
    
    /* 论文列表平板端响应式 */
    .paper-list {
        padding: 0 20px 30px 20px;
    }
    
    .paper-header {
        display: none;
    }
    
    .paper-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 15px 10px;
        margin: 0 -10px;
        text-align: left;
    }
    
    .paper-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
        text-align: left;
    }
    
    .paper-authors {
        font-size: 12px;
        color: #666;
        text-align: left;
    }
    
    .paper-year {
        font-size: 12px;
        color: var(--primary-green);
        font-weight: 500;
        text-align: left;
    }
    
    .paper-journal {
        font-size: 12px;
        color: #666;
        text-align: left;
    }
    
    .paper-pages {
        font-size: 12px;
        color: #888;
        text-align: left;
    }
    
    .mobile-label {
        display: inline;
        font-size: 12px;
    }

    /* 花展活动平板端响应式 */
    .flower-show-item {
        padding: 14px 0;
    }
    
    .show-title {
        font-size: 14px;
    }
    
    .show-meta {
        gap: 18px;
    }
}

@media (max-width: 576px) {
    .tab-content {
        padding: 5px 15px;
    }
    
    .pagination-wrapper {
        margin: 20px 0 10px;
    }
    
    .page-btn {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 32px;
    }
    
    .news-grid {
        margin: 10px 0;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .news-item:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    .news-image {
        height: 140px;
    }
    
    .news-content {
        padding: 10px;
        text-align: left;
    }
    
    .news-title {
        font-size: 13px;
        text-align: left;
    }
    
    .news-date {
        font-size: 12px;
        text-align: left;
    }
    
    /* 论文列表手机端响应式 */
    .paper-list {
        padding: 0 15px 20px 15px;
    }
    
    .paper-header {
        display: none;
    }
    
    .paper-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px 8px;
        margin: 0 -8px;
        text-align: left;
    }
    
    .paper-item:hover {
        transform: translateY(-1px);
    }
    
    .paper-title {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 6px;
        line-height: 1.3;
        text-align: left;
    }
    
    .paper-authors {
        font-size: 11px;
        color: #666;
        text-align: left;
    }
    
    .paper-year {
        font-size: 11px;
        color: var(--primary-green);
        font-weight: 500;
        text-align: left;
    }
    
    .paper-journal {
        font-size: 11px;
        color: #666;
        text-align: left;
    }
    
    .paper-pages {
        font-size: 11px;
        color: #888;
        text-align: left;
    }
    
    .mobile-label {
        display: inline;
        font-size: 11px;
    }

    /* 花展活动手机端响应式 */
    .flower-show-item {
        padding: 12px 0;
        flex-direction: column;
        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) {
    .news-content {
        padding: 14px;
        text-align: left;
    }
    
    .news-image {
        height: 150px;
    }
    
    .news-title {
        font-size: 13px;
        text-align: left;
    }
    
    .news-date {
        text-align: left;
    }
    
    .paper-header {
        display: none;
    }
    
    .paper-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px 8px;
        text-align: left;
    }
    
    .paper-title {
        font-size: 13px;
        font-weight: 600;
        text-align: left;
    }
    
    .paper-authors {
        font-size: 11px;
        text-align: left;
    }
    
    .paper-year {
        font-size: 11px;
        text-align: left;
    }
    
    .paper-journal {
        font-size: 11px;
        text-align: left;
    }
    
    .paper-pages {
        font-size: 11px;
        text-align: left;
    }
    
    .mobile-label {
        display: inline;
        font-size: 11px;
    }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
    .news-content {
        padding: 10px;
        text-align: left;
    }
    
    .news-image {
        height: 120px;
    }
    
    .news-title {
        font-size: 16px;
        line-height: 1.25;
        text-align: left;
    }
    
    .news-date {
        text-align: left;
    }
    
    .paper-header {
        display: none;
    }
    
    .paper-item {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 10px 6px;
        text-align: left;
    }
    
    .paper-title {
        font-size: 12px;
        line-height: 1.3;
        font-weight: 600;
        text-align: left;
    }
    
    .paper-authors {
        font-size: 10px;
        text-align: left;
    }
    
    .paper-year {
        font-size: 10px;
        text-align: left;
    }
    
    .paper-journal {
        font-size: 10px;
        text-align: left;
    }
    
    .paper-pages {
        font-size: 10px;
        text-align: left;
    }
    
    .mobile-label {
        display: inline;
        font-size: 10px;
    }
}
