.banner {
    width: 100%;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    /* height: auto; */
    height: 400px;
    display: block;
    /* 确保图片作为块级元素显示 */
    object-fit: cover;
    /* 保持图片比例并填满容器 */
    object-position: center;
    /* 图片居中显示 */
    margin: 0;
    /* 移除所有边距 */
    padding: 0;
    /* 移除所有内边距 */
}

/* 如果需要确保整个页面内容占满屏幕，可以添加以下样式 */
.media-page {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

.media-tabs {
    margin-bottom: 20px;
    padding: 10px 0;
    background: #efefef;

    .l1Name {
        margin-top: 7px;
        font-size: 20px;
        font-weight: 600;
        color: #940c11;
        margin-right: 10px;
        padding: 0 50px;
        border-right: 1px solid #646464;
        width: 200px;
        align-content: center;
    }
}



.media-content {
    display: none;
    margin-top: 30px;
    /* 增加上边距 */
    text-align: left;
    /* 确保内容靠左对齐 */
}

.media-content.active {
    display: flex;
    gap: 30px;
    align-items: center;
    /* 垂直居中对齐 */
    flex-wrap: wrap;
    text-align: left;
    /* 确保内容靠左对齐 */
}

.media-left {
    flex: 0 0 50%;
}

.media-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 文字垂直居中 */
}

.media-img {
    width: 100%;
    height: auto;
    /* border-radius: 8px; */
}

.medi-page h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;
    color: #333;
}


.media-tab-btn {
    padding: 10px 0;
    /*background-color: #f5f5f5;*/
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    flex: 1;
    min-width: 200px;
    transition: all 0.3s;
}

.media-tab-btn.active,
.media-tab-btn:hover {
    color: #940c11;
}

.media-content {
    display: none;
}

.media-content.active {
    display: block;
}

.notice-list,
.recruit-list {
    list-style: none;
}

.notice-item,
.recruit-item {
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-item a,
.recruit-item a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.notice-item a:hover,
.recruit-item a:hover {
    color: #940c11;
}

.notice-date,
.recruit-depart {
    color: #999;
    font-size: 14px;
}

/* 新闻列表项样式 - 自定义表格样式 */
.news-item {
    /* width: 70%; */
    border-radius: 10px;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px;
    /* border: 1px solid #ddd; */
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* .news-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
} */

.news-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    /* align-items: center; */
    margin-bottom: 20px;

}

.news-date {
    display: flex;
    align-items: center;
    text-align: center;
    margin-right: 20px;
    min-width: 100px;
    border-radius: 4px;
    margin-top: 30px;
}

.news-date .month {
    font-size: 16px;
}

.news-date .day {
    font-size: 24px;
    font-weight: bold;
    padding-top: 5px;
    font-style: oblique;
}

.news-date .year {
    font-size: 14px;
    margin-left: 20px;
    color: #666;
}

.news-meida h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    margin-left: 20px;
}

.news-media h3 a {
    color: #333;
    text-decoration: none;
    margin-left: 20px;
}

.news-media h3 a:hover {
    color: #940c11;
    text-decoration: underline;
    margin-left: 20px;
}

.news-content {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-left: 20px;
    margin-top: 10px;
}

.news-content p {
    margin: 0;
    padding: 0;
}

.news-photo img {
    width: 250px;
    height: 170px;
    border-radius: 6px;
}

.clock-icon {
    width: 15px;
    height: 15px;
    margin-right: 10px;
}

/* 移动端自适应样式 */

/* 平板设备 (768px 及以下) */
@media (max-width: 768px) {
    .banner-img {
        height: 350px;
    }

    .media-page {
        padding: 0;
        margin: 0;
    }

    .media-tabs {
        padding: 8px 0;
        margin-bottom: 15px;
    }

    .media-tabs .l1Name {
        font-size: 18px;
        padding: 0 30px;
        width: 150px;
        margin-top: 5px;
        border-right: 1px solid #646464;
    }

    .media-tab-btn {
        font-size: 18px;
        min-width: 100%;
        padding: 10px 0;
        margin-bottom: 8px;
        text-align: center;
    }

    .media-content {
        margin-top: 20px;
    }

    .media-content.active {
        gap: 20px;
    }

    .media-left {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }

    .medi-page h2 {
        font-size: 26px;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .news-item {
        padding: 12px;
        margin: 15px 10px;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .news-date {
        flex-direction: row;
        align-items: center;
        margin-right: 0;
        min-width: auto;
        margin-top: 0;
        margin-bottom: 10px;
        width: 100%;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }

    .news-date .month {
        font-size: 14px;
    }

    .news-date .day {
        font-size: 20px;
        padding-top: 0;
        padding-left: 5px;
    }

    .news-date .year {
        font-size: 13px;
        margin-left: auto;
    }

    .news-meida h3,
    .news-media h3 {
        font-size: 18px;
        margin-bottom: 6px;
        margin-left: 0;
    }

    .news-media h3 a,
    .news-meida h3 a {
        margin-left: 0;
    }

    .news-content {
        font-size: 14px;
        margin-left: 0;
        margin-top: 8px;
        -webkit-line-clamp: 4;
    }

    .news-photo {
        margin-top: 15px;
        text-align: center;
    }

    .news-photo img {
        width: 100%;
        height: auto;
        max-width: 300px;
        border-radius: 6px;
    }

    .notice-item,
    .recruit-item {
        padding: 12px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-date,
    .recruit-depart {
        font-size: 13px;
        margin-top: 5px;
    }
}

/* 小屏幕手机 (480px 及以下) */
@media (max-width: 480px) {
    .banner-img {
        height: 280px;
    }

    .media-tabs {
        padding: 6px 0;
        margin-bottom: 10px;
    }

    .media-tabs .l1Name {
        font-size: 16px;
        /*padding: 0 20px;*/
        width: 120px;
        margin-top: 4px;
        border-right-width: 0.5px;
    }

    .media-tab-btn {
        font-size: 16px;
        padding: 8px 0;
        margin-bottom: 6px;
    }

    .media-content {
        margin-top: 15px;
    }

    .medi-page h2 {
        font-size: 22px;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .news-item {
        padding: 10px;
        margin: 12px 5px;
    }

    .news-date {
        flex-direction: row;
        padding-bottom: 8px;
    }

    .news-date .month {
        font-size: 13px;
    }

    .news-date .day {
        font-size: 18px;
    }

    .news-date .year {
        font-size: 12px;
    }

    .news-meida h3,
    .news-media h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .news-content {
        font-size: 13px;
        margin-top: 6px;
        line-height: 1.5;
    }

    .news-photo img {
        max-width: 100%;
        height: auto;
    }

    .notice-item,
    .recruit-item {
        padding: 10px 0;
    }

    .notice-date,
    .recruit-depart {
        font-size: 12px;
    }
}

/* 超小屏幕手机 (320px 及以下) */
@media (max-width: 320px) {
    .banner-img {
        height: 240px;
    }

    .media-tabs .l1Name {
        font-size: 14px;
        padding: 0 15px;
        width: 100px;
    }

    .media-tab-btn {
        font-size: 14px;
        padding: 6px 0;
    }

    .medi-page h2 {
        font-size: 20px;
    }

    .news-item {
        padding: 8px;
        margin: 10px 3px;
    }

    .news-date .month {
        font-size: 12px;
    }

    .news-date .day {
        font-size: 16px;
    }

    .news-date .year {
        font-size: 11px;
    }

    .news-meida h3,
    .news-media h3 {
        font-size: 15px;
    }

    .news-content {
        font-size: 12px;
    }
}

/* 通用移动端优化 */
@media (max-width: 768px) {

    /* 优化触摸体验 */
    .media-tab-btn,
    .notice-item a,
    .recruit-item a,
    .news-media h3 a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }

    /* 优化字体渲染 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    /* 优化图片加载 */
    .banner-img,
    .media-img,
    .news-photo img {
        image-rendering: -webkit-optimize-contrast;
    }

    /* 防止文本调整大小 */
    html {
        -webkit-text-size-adjust: 100%;
    }

    /* 优化容器宽度 */
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    /* 优化列表项 */
    .notice-item,
    .recruit-item {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* 针对超长内容的优化 */
@media (max-width: 768px) {
    .news-content {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .news-content * {
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* 1. 标题独占一行 */
    .media-tabs .l1Name {
        /* width: 2% !important; */
        border-right: none !important;
        margin: 0 0 1px 0 !important;
        text-align: center;
    }

    /* 2. 按钮容器：横排 一排两个 + 加大间距 */
    .media-tabs .column.flex {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 16px 12px;
        /* 上下间距16px，左右间距12px */
    }

    /* 3. 每个按钮占一半宽度 */
    .media-tab-btn {
        flex: 0 0 calc(50% - 6px) !important;
        /* 减一半左右间距 */
        min-width: auto !important;
        margin: 0 !important;
        text-align: center;
    }

}