/* 限定在 .ro-page 内部，禁止污染全局样式 */
.ro-page {
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #14213d;
}

.ro-page * {
    box-sizing: border-box;
}

.ro-page .ro-container {
    width: calc(100% - 80px);
    max-width: 1280px;
    margin: 0 auto;
}

/* ================== 第一部分：科研概况 ================== */
.ro-page .ro-overview {
    text-align: center;
    padding: 70px 0 50px;
}

.ro-page .ro-section-mark {
    width: 30px;
    height: 2px;
    background-color: #163a9f;
    margin: 0 auto 15px;
}

.ro-page .ro-overview-title {
    font-size: 36px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 25px;
}

.ro-page .ro-overview-desc {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 2;
    color: #5f6673;
}

/* ================== 第二部分：科研数据统计 ================== */
.ro-page .ro-stats {
    background-color: #f8fbff;
    padding: 60px 0;
    margin-bottom: 50px;
}

.ro-page .ro-stats-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 1280px;
    width: calc(100% - 40px);
    margin: 0 auto;
}

.ro-page .ro-stat-item {
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.ro-page .ro-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: #e2e8f0;
}

.ro-page .ro-stat-number {
    font-size: 52px;
    font-weight: 400;
    color: #173fa3;
    line-height: 1.1;
    margin-bottom: 12px;
}

.ro-page .ro-stat-unit {
    font-size: 30px;
    margin-left: 2px;
}

.ro-page .ro-stat-title {
    font-size: 18px;
    font-weight: 600;
    color: #263248;
    margin: 0 0 10px;
}

.ro-page .ro-stat-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #7a8494;
    margin: 0;
}

/* ================== 第三部分：科研成果内容 ================== */
.ro-page .ro-results {
    padding-bottom: 70px;
}

.ro-page .ro-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.ro-page .ro-result-card {
    display: flex;
    flex-direction: column;
}

.ro-page .ro-result-image-wrap {
    width: 100%;
    aspect-ratio: 1.55 / 1;
    overflow: hidden;
    border-radius: 2px; /* 极小圆角 */
    margin-bottom: 20px;
    background-color: #f0f0f0;
    display: block;
}

.ro-page .ro-result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ro-page .ro-result-image-wrap:hover .ro-result-image {
    transform: scale(1.03);
}

.ro-page .ro-result-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ro-page .ro-result-title a {
    color: #16213b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ro-page .ro-result-title a:hover {
    color: #173fa3;
}

.ro-page .ro-result-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #7a8494;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ro-page .ro-more-wrap {
    text-align: center;
    margin-top: 50px;
}

.ro-page .ro-more {
    display: inline-block;
    font-size: 16px;
    color: #173fa3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ro-page .ro-more:hover {
    color: #0d2870;
}

/* ================== 图片懒加载 ================== */
.ro-page .ro-lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ro-page .ro-lazy-image.ro-image-loaded {
    opacity: 1;
}

/* ================== 响应式 ================== */

/* 768px - 1199px */
@media (max-width: 1199px) {
    .ro-page .ro-container {
        width: calc(100% - 60px);
    }
    
    .ro-page .ro-stats-inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 0;
    }
    
    /* 3+2 布局，去掉每行最后一个分隔线 */
    .ro-page .ro-stat-item:nth-child(3n)::after {
        display: none;
    }
    .ro-page .ro-stat-item:last-child::after {
        display: none;
    }

    .ro-page .ro-result-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 25px;
    }
}

/* < 768px */
@media (max-width: 767px) {
    .ro-page .ro-container {
        width: calc(100% - 40px);
    }

    .ro-page .ro-overview {
        padding: 40px 0 30px;
    }

    .ro-page .ro-overview-title {
        font-size: 28px;
    }

    .ro-page .ro-stats {
        padding: 40px 0;
        margin-bottom: 40px;
    }

    /* 移动端数据 2列布局 */
    .ro-page .ro-stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 0;
    }

    /* 移动端去掉竖线 */
    .ro-page .ro-stat-item::after {
        display: none;
    }

    .ro-page .ro-stat-number {
        font-size: 40px;
    }
    .ro-page .ro-stat-unit {
        font-size: 22px;
    }

    /* 移动端科研成果 1列布局 */
    .ro-page .ro-result-grid {
        grid-template-columns: 1fr;
        gap: 35px 0;
    }

    .ro-page .ro-result-title {
        font-size: 17px;
    }
}
