/* ==========================================================================
   科研进展页面专属样式 (Scoped with .rw-page)
   ========================================================================== */
/* common.css */
html,
body,
#app {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden; /* 防止横向滚动条 */
    background: #fff;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

/* 页面基础容器 */
.rw-page {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff; /* 保证科研成果区域的自然过渡 */
    overflow-x: hidden;
}

/* 页面内容通用居中和宽度控制 */
.rw-page .rw-container {
    width: calc(100% - 80px);
    max-width: 1380px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ==================== 第一部分：科研顶部区域 (Hero) ==================== */
.rw-page .rw-hero {
    position: relative;
    width: 100%;
    min-height: 620px;
    /* 背景图不进行懒加载，页面打开立即显示 */
    /*background-image: url("/statics/images/temp//research-bg.png");*/
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 80px 0 60px;
}

/* 渐变遮罩：顶部较透明以显示背景，底部较白以融入下方内容 */
.rw-page .rw-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.35) 55%,
        rgba(255, 255, 255, 0.85) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* 保证顶部内容在遮罩上方 */
.rw-page .rw-hero .rw-container {
    position: relative;
    z-index: 2;
}

.rw-page .rw-hero-subtitle {
    color: #f47a20;
    /*color: #182987;*/
    font-size: 17px;
    margin-bottom: 16px;
    font-weight: 500;
}

.rw-page .rw-main-title {
    margin: 0 0 24px 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}

.rw-page .rw-title-zh {
    font-size: 44px;
    font-weight: 700;
    color: #111111;
}

.rw-page .rw-title-en {
    font-size: 32px;
    font-weight: 700;
    color: #606060;
}

.rw-page .rw-description {
    font-size: 18px;
    line-height: 1.8;
    color: #555555;
    max-width: 860px;
    margin: 0 0 48px 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8); /* 额外提升文字可读性 */
}

/* ==================== 科研数据统计 ==================== */
.rw-page .rw-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-bottom: 16px;
}

.rw-page .rw-stat-item {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 24px 16px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.rw-page .rw-stat-number {
    font-size: 46px;
    font-weight: 700;
    color: #111111;
    line-height: 1.1;
    margin-bottom: 8px;
}

.rw-page .rw-stat-label {
    font-size: 17px;
    color: #444444;
}

.rw-page .rw-stat-note {
    font-size: 15px;
    color: #666666;
    font-style: italic;
}

/* ==================== 第二部分：科研新闻区域 ==================== */
.rw-page .rw-research-section {
    position: relative;
    width: 100%;
    /* 假设存在一个新闻区域的浅色背景图，如果没有图片可降级为颜色 */
    /*background-image: url("./images/research/research-news-bg.jpg");*/
    background-color: #ffffff;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 70px 0 90px;
}

/* 保证新闻区域内容在可能存在的遮罩之上 */
.rw-page .rw-research-section .rw-container {
    position: relative;
    z-index: 2;
}

.rw-page .rw-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 16px;
}

.rw-page .rw-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rw-page .rw-section-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.rw-page .rw-section-title {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.rw-page .rw-section-title-zh {
    font-size: 34px;
    font-weight: 700;
    color: #111111;
}

.rw-page .rw-section-title-en {
    font-size: 26px;
    font-weight: 700;
    color: #606060;
}

.rw-page .rw-more-link {
    font-size: 16px;
    color: #f47a20;
    /*color: #182987;*/
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    outline: none;
}

.rw-page .rw-more-link:hover {
    opacity: 0.8;
}

/* ==================== 新闻列表 ==================== */
.rw-page .rw-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.rw-page .rw-news-card {
    display: flex;
    flex-direction: column;
}

.rw-page .rw-news-image-link {
    display: block;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f5f5f5; /* 占位背景色 */
    outline: none;
}

.rw-page .rw-news-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.rw-page .rw-news-image-link:hover .rw-news-image {
    transform: scale(1.02);
}

/* 懒加载渐显过渡效果 */
.rw-page .rw-lazy-image {
    opacity: 0;
}

.rw-page .rw-image-loaded {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.rw-page .rw-news-title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.rw-page .rw-news-title a {
    color: #111111;
    text-decoration: none;
    transition: color 0.3s ease;
    outline: none;
}

.rw-page .rw-news-title a:hover {
    color: #f47a20;
    /*color: #182987;*/
}

.rw-page .rw-news-summary {
    font-size: 15px;
    line-height: 1.7;
    color: #666666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 响应式设计 ==================== */

/* 平板及小屏PC (768px - 1199px) */
@media screen and (max-width: 1199px) {
    .rw-page .rw-container {
        width: calc(100% - 60px);
    }

    .rw-page .rw-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .rw-page .rw-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rw-page .rw-title-zh {
        font-size: 38px;
    }
    .rw-page .rw-title-en {
        font-size: 28px;
    }
    .rw-page .rw-section-title-zh {
        font-size: 30px;
    }
    .rw-page .rw-section-title-en {
        font-size: 22px;
    }
}

/* 手机端 (768px以下) */
@media screen and (max-width: 767px) {
    .rw-page .rw-container {
        width: calc(100% - 30px);
    }

    .rw-page .rw-hero {
        padding: 40px 0;
    }

    .rw-page .rw-main-title {
        flex-direction: column;
        gap: 4px;
    }

    .rw-page .rw-title-zh {
        font-size: 32px;
    }

    .rw-page .rw-title-en {
        font-size: 22px;
    }

    .rw-page .rw-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .rw-page .rw-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .rw-page .rw-stat-number {
        font-size: 32px;
    }

    .rw-page .rw-stat-label {
        font-size: 14px;
    }

    .rw-page .rw-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .rw-page .rw-section-title {
        flex-direction: column;
        gap: 4px;
    }

    .rw-page .rw-news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .rw-page .rw-news-title {
        font-size: 18px;
    }
}

/* 超小屏幕手机 (480px以下) */
@media screen and (max-width: 479px) {
    .rw-page .rw-stats {
        grid-template-columns: 1fr;
    }
}
