/* 首页特有样式 */

/* Banner区域 */
.banner {
    width: 100%;
    max-width: 1920px;
    margin: 120px auto 0;
    position: relative;
    overflow: hidden;
    height: 600px;
}

.banner-wrapper {
    width: 100%;
    position: relative;
}

.banner-slider {
    width: 100%;
    height: 600px;
    overflow: hidden;
    position: relative;
}

.banner-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 3;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: var(--transition);
}

.banner-dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* 新闻动态和通知公告区域 */
.news-section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.news-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.news-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
}

.news-section .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.news-subtitle {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: left;
    position: relative;
    padding-bottom: 15px;
}

.news-subtitle:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* 标题行：标题 + 更多链接 */
.subtitle-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
}

.subtitle-row .news-subtitle {
    margin-bottom: 0;
    flex: 1;
}

/* 新闻动态/通知公告 更多链接 */
.subtitle-more-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 14px;
    font-weight: 400;
    color: var(--dark-gray);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s;
    padding-bottom: 16px;
}

.subtitle-more-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
}

.subtitle-more-link:hover {
    color: var(--secondary-color);
}

.subtitle-more-link:hover svg {
    transform: translateX(3px);
}

/* 纪检文件 查看更多按钮容器 */
.tab-more-container {
    text-align: center;
    padding-top: 20px;
}

/* 查看更多红色按钮 */
.tab-more-btn {
    display: inline-block;
    padding: 8px 28px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tab-more-btn:hover {
    background-color: var(--secondary-color);
}

.news-container {
    display: flex;
    gap: 33px;
    margin-bottom: 40px;
}

.news-main {
    flex: 3;
}

.news-sidebar {
    flex: 1;
}

.news-carousel {
    display: flex;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    background-color: var(--white);
    height: 465px;
}

.carousel-images {
    flex: none;
    position: relative;
    overflow: hidden;
    width: 580px;
    height: 465px;
    min-width: 580px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: var(--white);
    padding: 20px 20px 45px;
    box-sizing: border-box;
    z-index: 2;
}

.carousel-controls {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 3;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #999999;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    width: 24px;
    border-radius: 5px;
    background-color: var(--primary-color);
}

.carousel-caption h3 {
    font-size: 18px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.carousel-caption .carousel-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.carousel-content {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 320px;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.news-item:hover {
    transform: translateX(5px);
    background-color: rgba(173, 15, 25, 0.05);
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-bottom: 8px;
    color: var(--text-color);
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    min-height: 3em;
    max-height: 3em;
    cursor: pointer;
}

.news-item:hover .news-title {
    color: var(--primary-color);
}

.news-date {
    font-size: 13px;
    color: var(--dark-gray);    
}

.notice-board {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    width: 381px;
    height: 465px;
    overflow-y: auto;
    flex: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.notice-board::-webkit-scrollbar {
    display: none;
}

.notice-item {
    padding: 9px 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;;
    cursor: pointer;
    transition: var(--transition);
}

.notice-item:hover {
    transform: translateX(5px);
    background-color: rgba(173, 15, 25, 0.05);
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-date {
    background-color: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: var(--transition);
    flex-shrink: 0;
}

.notice-item:hover .notice-date {
    background-color: var(--secondary-color);
}

.notice-day {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.notice-month {
    font-size: 12px;
    line-height: 1;
}

.notice-text {
    font-size: 18px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: var(--transition);
    flex: 1;
    line-height: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-item:hover .notice-text {
    color: var(--primary-color);
}

/* 小Banner区域 */
.small-banner {
    width: 100vw;
    max-width: 1920px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.small-banner-container {
    width: 100vw;
    max-width: 100%;
    position: relative;
    padding-top: calc(100% / 10.66666667);
    overflow: hidden;
}

.small-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 快捷服务区域 */
.services-section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.services-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.services-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
}

.services-section .container {
    position: relative;
    z-index: 1;
}

.services-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 10px 15px;
    min-height: 140px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    min-width: 100px;
    height: 100px;
    margin-bottom: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img,
.service-icon svg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
    line-height: 1.4;
    letter-spacing: 1px;
    margin-top: 5px;
    min-height: 24px;
    white-space: nowrap;
}

/* 纪检文件区域 */
.documents-section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.documents-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.documents-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
}

.documents-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tab-headers {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--light-gray);
}

.tab-header {
    padding: 15px 30px;
    font-size: 32px;
    font-weight: 500;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-header:hover {
    color: var(--primary-color);
}

.tab-header.active {
    color: var(--primary-color);
}

.tab-header.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

/* 两列新闻列表容器 */
.tab-content-wrapper {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px 40px;
    box-shadow: var(--shadow);
    min-height: 400px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 两列布局 */
.tab-content .document-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
    list-style: none;
}

.tab-content .document-list .document-item:nth-child(n+11) {
    display: none;
}

.tab-content .document-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.tab-content .document-item:hover {
    background-color: rgba(173, 15, 25, 0.05);
    padding-left: 8px;
}

.tab-content .document-item:last-child {
    border-bottom: none;
}

.tab-content .document-title {
    font-size: 18px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-color);
    transition: var(--transition);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 15px;
}

.tab-content .document-item:hover .document-title {
    color: var(--primary-color);
}

.tab-content .document-date {
    font-size: 14px;
    color: var(--dark-gray);
    flex-shrink: 0;   
}

/* 后勤影像区域 */
.gallery-section {
    padding: var(--section-spacing) 0 80px;
    position: relative;
}

.gallery-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.gallery-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
}

.gallery-section .container {
    position: relative;
    z-index: 1;
}

/* CSS Grid 布局：中间大图 + 四周小图 */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 480px;
}

/* 第1张：左上 */
.gallery-grid .gallery-slide:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

/* 第2张：左下 */
.gallery-grid .gallery-slide:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

/* 第3张：中间大图（跨两行两列） */
.gallery-grid .gallery-slide:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / 3;
}

/* 第4张：右上 */
.gallery-grid .gallery-slide:nth-child(4) {
    grid-column: 3;
    grid-row: 1;
}

/* 第5张：右下 */
.gallery-grid .gallery-slide:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
}

/* 多余的项目隐藏 */
.gallery-grid .gallery-slide:nth-child(n+6) {
    display: none;
}

.gallery-slide {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

/* 隐藏没有内容的空slide */
.gallery-slide:empty {
    display: none;
}

/* 隐藏gallery-grid中非gallery-slide的子元素（CMS可能生成的多余包装） */
.gallery-grid > :not(.gallery-slide):not(.gallery-track) {
    display: none;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-slide:hover img {
    transform: scale(1.05);
}

/* 图片标题覆盖层 */
.gallery-slide .gallery-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.45);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
    z-index: 2;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 0;
}

/* 中间大图标题更大 */
.gallery-grid .gallery-slide:nth-child(3) .gallery-caption {
    font-size: 24px;
    padding: 14px 28px;
    letter-spacing: 3px;
}

/* 图片悬停时标题更明显 */
.gallery-slide:hover .gallery-caption {
    background-color: rgba(173, 15, 25, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 首页特有响应式设计 */
@media (max-width: 1920px) {
    .banner {
        height: 500px;
    }
    
    .banner-slider {
        height: 500px;
    }
}

@media (max-width: 1400px) {
    .carousel-images {
        width: 500px;
        min-width: 500px;
    }
    
    .gallery-grid {
        height: 420px;
    }
}

@media (max-width: 1200px) {
    .banner {
        height: 400px;
    }
    
    .banner-slider {
        height: 400px;
    }
    
    .services-container {
        gap: 10px;
    }
    
    .service-item {
        width: 120px;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
    }
    
    .nav-links li {
        margin-left: 30px;
    }
    
    .gallery-grid {
        height: 380px;
    }
    
    .gallery-slide .gallery-caption {
        font-size: 15px;
        padding: 8px 14px;
    }
    
    .gallery-grid .gallery-slide:nth-child(3) .gallery-caption {
        font-size: 20px;
        padding: 12px 22px;
    }
}

@media (max-width: 992px) {
    .news-container {
        flex-direction: column;
    }
    
    /* 平板：改为上下两行布局 */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    
    .gallery-grid .gallery-slide:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    .gallery-grid .gallery-slide:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    .gallery-grid .gallery-slide:nth-child(3) {
        grid-column: 1 / 3;
        grid-row: 2;
        height: 300px;
    }
    
    .gallery-grid .gallery-slide:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
    }
    
    .gallery-grid .gallery-slide:nth-child(5) {
        grid-column: 2;
        grid-row: 3;
    }
    
    .gallery-grid .gallery-slide {
        height: 200px;
    }
    
    .service-item {
        width: 110px;
    }
    
    .banner {
        height: 350px;
    }
    
    .banner-slider {
        height: 350px;
    }
    
    .small-banner {
        height: auto;
    }
    
    .small-banner-container {
        width: 100vw;
    }
    
    .news-carousel {
        flex-direction: column;
        height: auto;
    }
    
    .carousel-images {
        height: 350px;
        width: 100% !important;
        min-width: 100% !important;
        flex: none;
    }
    
    .carousel-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f5f5f5;
    }
    
    .carousel-slide.active {
        opacity: 1;
    }
    
    .carousel-slide img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    .carousel-content {
        padding: 20px;
        width: 100%;
        flex: none;
    }
    
    .news-main .carousel-content .news-item:nth-child(n+5) {
        display: none;
    }
    
    .notice-board {
        width: 100% !important;
        height: auto;
        padding: 20px;
    }
    
    .notice-item {
        padding: 10px 0;
    }
    
    .notice-date {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .notice-day {
        font-size: 18px;
    }
    
    .notice-month {
        font-size: 11px;
    }
    
    .notice-text {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .banner-content h2 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .news-subtitle {
        font-size: 28px;
    }
    
    .tab-headers {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-header {
        width: 100%;
        text-align: center;
        font-size: 28px;
        padding: 10px 20px;
    }
    
    /* 手机：单列布局 */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 12px;
    }
    
    .gallery-grid .gallery-slide:nth-child(n) {
        grid-column: 1;
        grid-row: auto;
        height: 220px;
    }
    
    .gallery-grid .gallery-slide:nth-child(3) {
        height: 280px;
    }
    
    .gallery-grid .gallery-slide:nth-child(n+6) {
        display: none;
    }
    
    .services-container {
        gap: 10px;
    }
    
    .service-item {
        width: 140px;
    }
    
    .search-box {
        width: 250px;
        right: -50px;
    }
    
    .banner {
        height: 300px;
    }
    
    .banner-slider {
        height: 300px;
    }
    
    .small-banner {
        height: auto;
    }
    
    .small-banner-container {
        width: 100vw;
    }
    
    .news-title {
        font-size: 15px;
    }
    
    .news-date {
        font-size: 12px;
    }
    
    .gallery-dots {
        padding: 15px 0;
    }
    
    /* 两列文档列表在手机上改为单列 */
    .tab-content {
        overflow: hidden;
    }
    
    .tab-content .document-list {
        grid-template-columns: 1fr;
        gap: 0;
        overflow: hidden;
    }
    
    /* 修复移动端标题溢出：flex子项和父容器都需要约束 */
    .tab-content .document-item {
        min-width: 0;
        overflow: hidden;
    }
    
    .tab-content .document-item > a {
        min-width: 0;
        overflow: hidden;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .tab-content .document-title {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: initial;
    }
    
    .tab-content-wrapper {
        padding: 20px;
        overflow: hidden;
    }
}

@media (max-width: 576px) {
    .service-item {
        width: 120px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
    
    .search-box {
        width: 200px;
        right: -100px;
    }
    
    .banner {
        height: 250px;
    }
    
    .banner-slider {
        height: 250px;
    }
    
    .banner-content h2 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .carousel-images {
        height: 300px;
    }
    
    .small-banner {
        height: auto;
    }
    
    .news-subtitle {
        font-size: 24px;
    }
    
    .tab-header {
        font-size: 24px;
    }
    
    .notice-board {
        padding: 15px;
    }
    
    .notice-date {
        width: 45px;
        height: 45px;
    }
    
    .notice-day {
        font-size: 16px;
    }
    
    .notice-month {
        font-size: 10px;
    }
    
    .notice-text {
        font-size: 15px;
    }
    
    .platform-icon {
        width: 40px;
        height: 40px;
    }
    
    .platform-icon i {
        font-size: 22px;
    }
    
    .qrcode-popup {
        width: 100px;
        height: 100px;
    }
    
    .mobile-controls {
        gap: 10px;
    }
    
    .mobile-menu-btn, .mobile-search-btn {
        font-size: 20px;
        padding: 3px;
    }
    
    .gallery-grid .gallery-slide {
        height: 180px;
    }
    
    .gallery-grid .gallery-slide:nth-child(3) {
        height: 240px;
    }
    
    .gallery-slide .gallery-caption {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .gallery-grid .gallery-slide:nth-child(3) .gallery-caption {
        font-size: 18px;
        padding: 10px 18px;
    }
}

/* 1300px 导航栏与通知公告同步切换 */
@media (max-width: 1300px) {
    /* 通知公告切换为移动端样式 */
    .news-container {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .news-main {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .news-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 20px !important;
    }
    
    .notice-board {
        width: 100% !important;
        height: auto !important;
        padding: 20px !important;
    }
    
    .notice-item {
        display: flex !important;
        align-items: flex-start !important;
        word-break: break-word !important;
    }
    
    .notice-item .notice-date {
        flex-shrink: 0 !important;
        width: 50px !important;
        height: 50px !important;
        margin-right: 10px !important;
    }
    
    .notice-item .notice-text {
        flex-grow: 1 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.4 !important;
        font-size: 14px !important;
    }
    
    /* 新闻动态区域也同步调整为移动端 */
    .news-carousel {
        flex-direction: column !important;
        height: auto !important;
    }
    
    .carousel-images {
        width: 100% !important;
        min-width: 100% !important;
        height: 350px !important;
    }
    
    .carousel-content {
        width: 100% !important;
        padding: 20px !important;
        flex: none !important;
    }
    
    .news-subtitle {
        font-size: 28px !important;
    }
}