/* =========================================
    School Research Page Style
   ========================================= */

/* --- 动画类 (重命名为 rs-anim 以防冲突) --- */
.rs-anim {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rs-fade-up {
    transform: translateY(60px);
}

.rs-slide-right {
    transform: translateX(-50px);
}

.rs-slide-left {
    transform: translateX(50px);
}

.rs-zoom-in {
    transform: scale(0.9);
}

/* 激活状态 */
.rs-anim.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.rs-delay-1 {
    transition-delay: 0.1s;
}

.rs-delay-2 {
    transition-delay: 0.2s;
}

.rs-delay-3 {
    transition-delay: 0.3s;
}

/* --- 1. Hero Banner --- */
.rs-hero {
    position: relative;
    height: 70vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-top: -80px;
    /* 抵消 header 高度 */
    padding-top: 80px;
    overflow: hidden;
}

.rs-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.rs-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.rs-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}

.rs-hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.rs-hero-text p {
    font-size: 1.4rem;
    line-height: 1.6;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
}

/* --- 2. Interlude Section --- */
.rs-interlude-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    text-align: center;
}

.rs-interlude-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    transform: scale(1.1);
    z-index: 0;
}

.rs-interlude-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 8, 16, 0.85);
    /* 红色遮罩 */
    z-index: 1;
}

.rs-relative-z {
    position: relative;
    z-index: 2;
}

.rs-question-box h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
}

.rs-intro-sub {
    font-size: 1.5rem;
    color: #fff;
}

/* --- 3. Features Grid --- */
.rs-section-container {
    padding: 80px 0;
}

.rs-bg-pattern {
    background-color: #f8f9fa;
    background-image: radial-gradient(#d1d1d1 1px, transparent 1px);
    background-size: 20px 20px;
}

.rs-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.rs-feature-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rs-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.rs-card-img-top {
    height: 280px;
    position: relative;
    overflow: hidden;
}

.rs-card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* <--- 修改点：强制显示顶部头部区域 */
    transition: transform 0.6s ease;
}

.rs-feature-card:hover .rs-card-img-top img {
    transform: scale(1.1);
}

.rs-card-badge {
    display: none !important;
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    /* 使用 main-style 的变量 */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.rs-card-body {
    padding: 40px 30px 30px 30px;
    flex: 1;
}

.rs-card-body h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #222;
    font-weight: 700;
}

.rs-card-body p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* --- 4. Conclusion Section (Red Background) --- */
.rs-bg-red {
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.rs-bg-red::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
    opacity: 0.1;
    pointer-events: none;
}

.rs-conclusion-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* 强制内容左对齐 (修复 Button 对齐问题) */
.rs-concl-text {
    flex: 1;
    text-align: left !important;
    padding-right: 40px;
}

.rs-highlight-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
    font-weight: 700;
}

/* 装饰线 */
.rs-highlight-title::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    background-color: #fff;
}

.rs-large-text {
    font-size: 1.25rem;
    color: #e0e0e0;
    line-height: 1.8;
}

.rs-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 30px 0;
}

.rs-sub-text {
    font-size: 1.1rem;
    color: #ffcccc;
    /* 红色背景下的浅粉色字 */
}

.rs-concl-img {
    flex: 1;
}

.rs-concl-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.2);
    display: block;
}

/* 按钮样式 (rs- 前缀) */
.rs-btn-white {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;

    /* 边距控制：确保左侧贴边 */
    margin-top: 25px;
    margin-left: 0;
    margin-right: auto;

    transition: all 0.3s;
}

.rs-btn-white:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* --- 移动端 --- */
@media (max-width: 768px) {
    .rs-hero {
        height: 60vh;
    }

    .rs-hero-title {
        font-size: 2.5rem;
    }

    .rs-features-grid {
        grid-template-columns: 1fr;
    }

    .rs-conclusion-row {
        flex-direction: column;
    }

    .rs-concl-text {
        padding-right: 0;
    }

    .rs-highlight-title::before {
        left: -15px;
    }
}
