@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=optional');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    background-color: #f9fafb;
}

/* Hero Section：紧贴 header，预留高度避免图片加载时整页下移造成“闪一下” */
.news-hero {
    position: relative;
    height: auto;
    min-height: 42vh;
    overflow: visible;
    margin-top: 0;
}

.news-hero-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: none;
    vertical-align: middle;
}

.news-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 1rem;
}

.news-hero-title {
    font-size: 2.25rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.news-hero-quote {
    color: #d1d5db;
    font-size: 3rem;
}

.news-hero-main {
    font-weight: bold;
}

.news-hero-sub {
    margin: 0 1rem;
    font-size: 1.875rem;
    font-weight: 200;
    color: #f3f4f6;
}

.news-hero-line {
    width: 96px;
    height: 2px;
    background-color: white;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .news-hero-title {
        font-size: 3.75rem;
    }
    .news-hero-quote {
        font-size: 4.5rem;
    }
    .news-hero-sub {
        font-size: 3rem;
    }
}

/* Main Content */
.news-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem 3.5rem;
}

/* Featured Grid */
.news-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    min-height: 320px;
}

@media (min-width: 1024px) {
    .news-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.news-featured-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: white;
    padding: 1.25rem;
    border-radius: 2px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid transparent;
    position: relative;
}

.news-featured-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px);
    border-color: #f9fafb;
}

.news-featured-image {
    overflow: hidden;
    border-radius: 2px;
    margin-bottom: 1rem;
    /* 再稍微降低高度，让卡片更小一些 */
    aspect-ratio: 16/8;
}

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

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

.news-featured-title {
    /* 标题略小一点 */
    font-size: 1.125rem;
    font-weight: bold;
    color: #000000;
    line-height: 1.375;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-featured-card:hover .news-featured-title {
    color: #dc2626;
}

.news-featured-date {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.75rem;
    font-weight: 500;
}

.news-featured-summary {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.75rem;
    line-height: 1.625;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.news-featured-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    color: #d1d5db;
    transition: all 0.3s;
    font-size: 1.5rem;
}

.news-featured-card:hover .news-featured-arrow {
    color: #ef4444;
    transform: translateX(4px);
}

/* News List Container */
.news-list-container {
    display: flex;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

.news-list-item {
    cursor: pointer;
    background-color: white;
    /* 列表项内边距缩小 */
    padding: 1.75rem 2rem;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s;
}

.news-list-item:first-child {
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

.news-list-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

.news-list-item:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 20;
    transform: translateY(-4px);
}

.news-list-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .news-list-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.news-list-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #1f2937;
    line-height: 1.25;
    flex: 1;
    padding-right: 3rem;
    transition: color 0.2s;
}

.news-list-item:hover .news-list-title {
    color: #dc2626;
}

.news-list-date {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
}

.news-list-summary {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.625;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-right: 3rem;
    margin-bottom: 0.5rem;
}

.news-list-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    color: #d1d5db;
    transition: all 0.3s;
    font-size: 1.25rem;
}

.news-list-item:hover .news-list-arrow {
    color: #ef4444;
    transform: translateX(4px);
}

/* Pagination */
.news-pagination {
    /* 分页与列表间距缩小 */
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.news-pagination-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background-color: white;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
}

.news-pagination-btn:hover:not(:disabled) {
    color: #ef4444;
    border-color: #ef4444;
}

.news-pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.news-pagination-number {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background-color: white;
    color: #6b7280;
}

.news-pagination-number:hover {
    background-color: #f9fafb;
}

.news-pagination-number.active {
    background-color: #dc2626;
    color: white;
    border-color: #dc2626;
    cursor: default;
}

/* Detail Page：紧贴 header，与列表页一致 */
.news-detail-banner {
    height: 160px;
    overflow: hidden;
    position: relative;
    margin-top: 0;
}

@media (min-width: 768px) {
    .news-detail-banner {
        height: 224px;
    }
}

.news-detail-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
}

.news-detail-back {
    max-width: 896px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-top: 2rem;
}

.news-back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

.news-back-btn:hover {
    color: #dc2626;
}

.news-back-btn i {
    transition: transform 0.2s;
}

.news-back-btn:hover i {
    transform: translateX(-4px);
}

.news-article {
    max-width: 896px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
    background-color: white;
    min-height: calc(100vh - 64px);
}

.news-article-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .news-article-header {
        text-align: left;
    }
}

.news-article-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .news-article-title {
        font-size: 2.25rem;
    }
}

.news-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

@media (min-width: 768px) {
    .news-article-meta {
        justify-content: flex-start;
    }
}

.news-article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-article-meta-separator {
    display: none;
}

@media (min-width: 640px) {
    .news-article-meta-separator {
        display: inline;
    }
}

.news-article-subheader {
    background-color: #f9fafb;
    border-left: 4px solid #ef4444;
    padding: 1.5rem;
    margin-bottom: 3rem;
    font-style: italic;
    color: #374151;
    line-height: 1.75;
    font-size: 1.125rem;
}

.news-article-content {
    color: #4b7280;
    line-height: 1.8;
    margin-bottom: 4rem;
}

.news-article-content p {
    text-align: justify;
    margin-bottom: 2rem;
}

.news-article-images {
    margin-top: 3rem;
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* 多图并排（如 news-feature-4 与 news-feature-5） */
.news-article-images-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 900px;
}

.news-article-images-row .news-article-image {
    flex: 1 1 45%;
    max-width: 45%;
}

/* news-feature-15 与 news-feature-16 竖排 */
.news-article-images-row:has(img[src*="news-feature-15"]):has(img[src*="news-feature-16"]) {
    flex-direction: column;
    max-width: 560px;
}
.news-article-images-row:has(img[src*="news-feature-15"]):has(img[src*="news-feature-16"]) .news-article-image {
    flex: 1 1 auto;
    max-width: 100%;
}

@media (max-width: 640px) {
    .news-article-images-row .news-article-image {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.news-article-image {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    overflow: hidden;
    background-color: white;
}

.news-article-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* 单张图限制宽度，点击可放大（控制除 news-feature-3、news-feature-8 外的所有单张图） */
/* 单张图整体缩小约 30%（原 800px → 560px） */
.news-article-content .news-article-image:not(.news-article-images-row .news-article-image) {
    max-width: 560px;
    margin: 2rem auto;
}

/* news-feature-3.jpg 缩略图横屏占满整栏，不参与 560px 限制 */
.news-article-content .news-article-image:has(img[src*="news-feature-3"]) {
    width: 100% !important;
    max-width: 100% !important;
    margin: 2rem 0 !important;
    box-sizing: border-box;
}
.news-article-content .news-article-image:has(img[src*="news-feature-3"]) img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    display: block;
}

/* news-feature-8.jpg 再缩小 40%（560px → 336px） */
.news-article-content .news-article-image:has(img[src*="news-feature-8.jpg"]) {
    max-width: 336px;
}

.news-article-image-clickable {
    cursor: pointer;
}

/* 图片放大灯箱 */
.news-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.news-lightbox[aria-hidden="false"] {
    display: flex;
}

.news-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.news-lightbox-img {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.news-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.news-lightbox-close:hover {
    background: #fff;
}

.news-article-bottom {
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: center;
}

.news-back-btn-large {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 2rem;
    background-color: #111827;
    color: white;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    font-weight: 600;
}

.news-back-btn-large:hover {
    background-color: #dc2626;
}

.news-back-btn-large:active {
    transform: scale(0.95);
}

/* Floating Action Buttons */
.news-fab-container {
    position: fixed;
    right: 1.5rem;
    bottom: 5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 40;
}

.news-fab {
    width: 3rem;
    height: 3rem;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.news-fab:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.news-fab-top {
    background-color: #333;
    color: white;
    border-radius: 2px;
}

.news-fab-top:hover {
    background-color: #dc2626;
}

/* Footer */
.news-footer {
    background-color: black;
    padding: 2rem 0;
}

.news-footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.news-footer-content p {
    color: #9ca3af;
    font-size: 0.75rem;
    letter-spacing: -0.025em;
}
