/* News Page Styles */
.news-banner {
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.banner-content h1 {
    margin-bottom: 20px;
    font-weight: 700;
}

.banner-content p {
    max-width: 700px;
    margin: 0 auto;
}

.news-container {
    max-width: 1680px;
    margin: 60px auto;
    padding: 0 20px;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 15px;
    text-align: center;
    border-radius: 5px;
}

.news-date .day {
    display: block;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.news-date .month,
.news-date .year {
    font-size: 12px;
    line-height: 1.2;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    margin-bottom: 15px;
    color: #333;
}

.news-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: #1a73e8;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
}

.read-more:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a73e8;
    transition: width 0.3s ease;
}

.read-more:hover:after {
    width: 100%;
}

.page-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 10px;
}

.page-box a {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    /* 新增，防止被压缩 */
    min-height: 40px;
    /* 新增，防止被压缩 */
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    /* 新增，确保padding和border不影响尺寸 */
}

.page-box a:hover,
.page-box a.active {
    background: #1a73e8;
    color: #fff;
}

.page-box .prev,
.page-box .next {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

.newsletter {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.newsletter h3 {
    margin-bottom: 15px;
    color: #333;
}

.newsletter p {
    color: #666;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
}

.newsletter-form button {
    padding: 12px 25px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #0d5bba;
}

/* Responsive Styles */
@media (max-width: 1024px) {

    /* 默认隐藏所有子项 */
    .page-box>* {
        display: none;
    }

    /* 显示第一个子项 */
    .page-box>*:first-child {
        display: block;
    }

    /* 显示最后一个子项 */
    .page-box>*:last-child {
        display: block;
    }

    /* 显示带有 active 类的子项 */
    .page-box>*.active {
        display: block;
    }

    .news-banner {
        height: 350px;
    }

    .news-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {

    /* 默认隐藏所有子项 */
    .page-box>* {
        display: none;
    }

    /* 显示第一个子项 */
    .page-box>*:first-child {
        display: block;
    }

    /* 显示最后一个子项 */
    .page-box>*:last-child {
        display: block;
    }

    /* 显示带有 active 类的子项 */
    .page-box>*.active {
        display: block;
    }

    .news-banner {
        height: 300px;
    }

    .banner-content h1 {
        font-size: 42px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: 4px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .news-banner {
        height: 250px;
    }

    .banner-content h1 {
        font-size: 36px;
    }

    .banner-content p {
        font-size: 18px;
    }

    .news-list {
        grid-template-columns: 1fr;
    }

    .news-pagination {
        flex-wrap: wrap;
    }
}

/* 新闻详情 */
/* News Detail Page Minimal Styles */
.news-detail {
    max-width: 1680px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    /* 添加宽度100%确保占满容器 */
}

.news-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.news-content {
    font-size: 16px;
    line-height: 1.8;
}

.news-content p {
    margin-bottom: 20px;
}

.news-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 4px;
}

/* 添加媒体查询确保移动端全宽显示 */
@media (max-width: 768px) {
    .news-detail {
        padding: 0 15px;
        max-width: 100%;
        /* 修改为100%宽度 */
        margin: 20px auto;
        /* 调整边距 */
    }

    .news-title {
        font-size: 24px;
    }

    .news-meta {
        gap: 10px;
        font-size: 13px;
    }

    .news-content {
        font-size: 15px;
    }

    .news-content [style] {
        max-width: 100% !important;
        width: auto !important;
    }

    .news-content img {
        width: auto !important;
        /* 覆盖任何内联的固定宽度 */
        max-width: 100% !important;
        /* 确保不超过父容器宽度 */
        height: auto !important;
        /* 保持原始宽高比 */
        margin: 10px auto !important;
    }

    /* 针对带有内联样式的图片强制覆盖 */
    .news-content p img,
    .news-content img[style] {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* 图片描述文字 */
    .img-desc {
        max-width: 100% !important;
        padding: 0 10px;
    }
}

/* 主要按钮样式 - 基于图片中的按钮 */
.honor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 25px;
    background-color: #76b6ff;
    /* 明亮的浅蓝色 */
    color: white;
    border: none;
    border-radius: 40px;
    /* 增大圆角半径 */
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(87, 157, 236, 0.3);
    min-width: 240px;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.honor-button:hover {
    background-color: #4A90E2;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(101, 164, 236, 0.4);
}

.honor-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(83, 152, 231, 0.3);
}