/* News Archive Page Styles */

/* Main Container */
.news-main {
    width: 100%;
    overflow-x: hidden;
}

/* Hero Banner Section */
.news-hero {
    position: relative;
    width: 100%;
    height: 58rem; /* 根据banner图片比例(1920x922)调整 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.news-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-hero-content {
    position: absolute;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: white;
}

.news-hero-title {
    font-family: 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Content Section */
.news-content-section {
    padding: 5rem 0;
    /* background: #f8f9fa; */
}

.news-container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.news-section-title {
    font-family: 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 3.75rem; /* 60px */
    font-weight: 900; /* Heavy */
    background: linear-gradient(180deg, #FF1426 0%, #951426 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: left; /* 居左对齐 */
    text-transform: uppercase;
    position: relative;
    max-width: 90rem; /* 版心宽度90rem */
    margin: 0 auto 6.125rem; /* 统一margin设置：上0 左右居中 下6.125rem */
}

/* Category Filter */
.news-filter{max-width:90rem;margin:0 auto 2rem}
.news-filter-list{display:flex;flex-wrap:wrap;gap:.5rem 1rem;list-style:none;padding:0;margin:0}
.news-filter-item a{display:inline-block;padding:.5rem 1rem;border:.125rem solid #ddd;border-radius:2rem;color:#666;text-decoration:none;transition:all .2s ease}
.news-filter-item a:hover{border-color:#B32A28;color:#B32A28}
.news-filter-item.active a,.news-filter-item a[aria-current="page"]{background:#B32A28;color:#fff;border-color:#B32A28}

/* News Grid */
.news-grid {
    max-width: 90rem; /* 版心宽度90rem */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* News Item Card - 水平布局 */
.news-item {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: stretch;
    min-height: 12rem;
}

.news-item:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.8rem 2.5rem rgba(0, 0, 0, 0.12);
    border-color: #B32A28;
}

/* News Item Image - 左侧固定宽度 */
.news-item-image {
    position: relative;
    width: 25.3125rem; /* 405px */
    /*height: 16.25rem; */
    border-radius: 1rem;
    flex-shrink: 0;
    overflow: hidden;
}

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

/*.news-item:hover .news-item-image {*/
/*    padding: 2rem;*/
/*}*/

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

/* News Item Content - 右侧内容区 */
.news-item-content {
    padding: 2rem 2rem 2rem 6rem; /* 左侧间距60px */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* Date Section - 左上角定位 */
.news-item-date {
    position: absolute;
    /* top: 1rem;
    left: 1.5rem; */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.news-date-icon {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

/* Title */
.news-item-title {
    margin-bottom: 1rem;
    margin-top: 2.5rem; /* 为日期留出空间 */
    line-height: 1.3;
}

.news-item-title a {
    font-family: 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem; /* 24px */
    font-weight: 800; /* Bold */
    color: #000; /* 黑色 */
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.news-item-title a:hover {
    color: #B32A28;
}

/* Excerpt */
.news-item-excerpt {
    font-family: 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem; /* 16px */
    font-weight: 300; /* Light */
    line-height: 1.6;
    color: #A7A7A7;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Actions */
.news-item-actions {
    display: flex;
    justify-content: flex-end;
    align-self: flex-end;
}

.news-read-more {
    background: linear-gradient(180deg, #FF1426 0%, #951426 100%);
    color: white;
    border: none;
    padding: 0;
    width: 16.875rem; /* 270px */
    height: 2.5rem; /* 40px */
    border-radius: 1.25rem; /* 20px radius */
    font-family: 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05rem;
}

.news-read-more:hover {
    background: linear-gradient(180deg, #7A1020 0%, #D61121 100%);
    color: white;
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(179, 42, 40, 0.3);
}

/* No Posts */
.news-no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    grid-column: 1 / -1;
}

.news-no-posts h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

/* Pagination */
.news-pagination {
    margin-top: 4rem;
    text-align: center;
}

.news-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.news-pagination .page-numbers li {
    display: inline-block;
}

.news-pagination .page-numbers a,
.news-pagination .page-numbers span {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    margin: 0 0.25rem;
    color: #666;
    text-decoration: none;
    border: 0.125rem solid #ddd;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.news-pagination .page-numbers a:hover,
.news-pagination .page-numbers .current {
    background: #B32A28;
    color: white;
    border-color: #B32A28;
}

/* Mobile Styles - 参考关于我们页面 */
@media (max-width: 48rem) {
    /* Hero Section */
    .news-hero {
        height: 60vh;
        min-height: 50vh;
    }
    
    .news-hero-bg {
        object-position: center center;
        object-fit: cover;
    }
    
    .news-hero-content {
        bottom: 12vw;
        max-width: 90%;
    }
    
    .news-hero-title {
        font-size: 8vw;
        font-weight: 700;
        text-transform: uppercase;
    }
    
    /* Content Section */
    .news-content-section {
        padding: 8vw 0;
    }
    
    .news-container {
        max-width: 100%;
        padding: 0 4vw;
    }
    
    .news-section-title {
        font-size: 8vw;
        margin: 0 auto 8vw;
        max-width: 90vw;
        text-align: left;
    }
    
    .news-grid {
        max-width: 90vw;
        margin: 0 auto;
        gap: 6vw;
        margin-bottom: 6vw;
    }
    
    /* News Items - 改为垂直布局 */
    .news-item {
        flex-direction: column;
        background: white;
        border-radius: 2vw;
        overflow: hidden;
        box-shadow: 0 1vw 3vw rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .news-item:hover {
        transform: translateY(-1vw);
        box-shadow: 0 2vw 4vw rgba(0, 0, 0, 0.15);
    }
    
    .news-item-image {
        width: 100%;
        height: 50vw;
        order: 1;
    }
    
    .news-item-content {
        width: 100%;
        padding: 4vw;
        order: 2;
        position: relative;
    }
    
    .news-item-date {
        position: absolute;
        top: 4vw;
        left: 4vw;
        display: flex;
        align-items: center;
        gap: 1vw;
        font-size: 3vw;
        color: #ADADAD;
    }
    
    .news-date-icon {
        width: 3vw;
        height: 3vw;
    }
    
    .news-item-title a {
        font-family: 'AlibabaPuHuiTi', sans-serif;
        font-weight: 700;
        font-size: 4.5vw;
        color: #000;
        text-decoration: none;
        display: block;
        margin: 6vw 0 3vw 0;
        line-height: 1.3;
    }
    
    .news-item-title a:hover {
        color: #B32A28;
    }
    
    .news-item-excerpt {
        font-family: 'AlibabaPuHuiTi', sans-serif;
        font-weight: 300;
        font-size: 3.5vw;
        color: #A7A7A7;
        line-height: 1.5;
        margin-bottom: 4vw;
    }
    
    .news-read-more {
        display: inline-block;
        padding: 2.5vw 5vw;
        background: linear-gradient(180deg, #FF1426 0%, #951426 100%);
        color: white;
        text-decoration: none;
        border-radius: 4vw;
        font-weight: 600;
        font-size: 3.5vw;
        transition: all 0.3s ease;
        min-width: auto;
        text-align: center;
        width: 35vw;
        height: 8vw;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .news-read-more:hover {
        background: linear-gradient(180deg, #7A1020 0%, #D61121 100%);
        transform: translateY(-0.5vw);
    }
    
    /* Pagination */
    .news-pagination {
        margin-top: 8vw;
    }
    
    .news-pagination .page-numbers {
        font-size: 4vw;
        padding: 2vw 3vw;
        margin: 0 1vw;
    }
}
