/* =========================================
   RESIDENTIAL LIFE PAGE STYLES
   ========================================= */
 .rl-section {
     padding: 60px 0;
     /* 增加上下间距，显得大气 */
 }

 .rl-bg-gray {
     background-color: var(--rl-gray);
     border-top: 1px solid #eee;
     border-bottom: 1px solid #eee;
 }

 /* --- 标题与排版 --- */
 .rl-title {
     font-family: 'Georgia', serif;
     font-size: 2.2rem;
     color: var(--primary-color);
     margin-bottom: 20px;
 }

 .rl-divider-left {
     width: 60px;
     height: 4px;
     background: var(--primary-color);
     margin-bottom: 30px;
 }

 .rl-divider-center {
     width: 60px;
     height: 4px;
     background: var(--primary-color);
     margin: 20px auto;
 }

 .rl-section-header {
     text-align: center;
     max-width: 800px;
     margin: 0 auto 60px;
 }

 .rl-section-header h2 {
     font-family: 'Georgia', serif;
     font-size: 2.4rem;
     color: var(--primary-color);
 }

 .rl-section-header p {
     font-size: 1.1rem;
     color: #666;
     margin-top: 15px;
 }

 /* --- 图文混排 (Row Layout) --- */
 .rl-feature-row {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 80px;
     /* 大间距 */
 }

 .rl-media-col {
     flex: 1;
     max-width: 50%;
 }

 .rl-media-col img {
     width: 100%;
     height: auto;
     border-radius: 8px;
     box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
     /* 深邃阴影 */
     transition: transform 0.5s ease;
 }

 .rl-feature-row:hover .rl-media-col img {
     transform: scale(1.02);
     /* 悬停微动 */
 }

 .rl-text-col {
     flex: 1;
     max-width: 50%;
 }

 .rl-text-col p {
     font-size: 1.05rem;
     line-height: 1.6;
     color: #444;
     margin-bottom: 15px;
     text-align: justify;
 }

 .rl-lead-text {
     font-size: 1.2rem !important;
     font-weight: 500;
     color: #333 !important;
 }

 /* 列表样式 */
 .rl-check-list {
     list-style: none;
     padding: 0;
     margin-top: 20px;
 }

 .rl-check-list li {
     position: relative;
     padding-left: 30px;
     margin-bottom: 8px;
     /* 列表项不需要太大的间距，改小 */
     line-height: 1.5;
     /* 列表文字行高 */
     font-size: 1.05rem;
     color: #444;
 }

 .rl-check-list li::before {
     content: "✓";
     position: absolute;
     left: 0;
     color: var(--primary-color);
     font-weight: bold;
 }

 /* 反向布局 */
 .rl-feature-row.reverse {
     flex-direction: row-reverse;
 }

 /* --- 图标卡片 (Grid Layout) --- */
 .rl-grid-3 {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 40px;
 }

 .rl-icon-card {
     background: #fff;
     padding: 50px 30px;
     border-radius: 8px;
     text-align: center;
     border: 1px solid rgba(0, 0, 0, 0.03);
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
     transition: all 0.4s ease;
 }

 .rl-icon-card:hover {
     transform: translateY(-10px);
     box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
     border-bottom: 3px solid var(--primary-color);
 }

 .icon-circle {
     width: 80px;
     height: 80px;
     line-height: 80px;
     background: #f4f4f4;
     border-radius: 50%;
     margin: 0 auto 25px;
     font-size: 2.5rem;
     transition: all 0.3s ease;
 }

 .rl-icon-card:hover .icon-circle {
     background: var(--primary-color);
     color: #fff;
     transform: rotateY(180deg);
     /* 趣味翻转效果 */
 }

 .rl-icon-card h3 {
     font-size: 1.35rem;
     margin-bottom: 15px;
     color: #222;
 }

 .rl-icon-card p {
     font-size: 0.95rem;
     line-height: 1.6;
     color: #666;
 }

 /* --- 位置展示 Hero (Location Hero) --- */
 .rl-location-hero {
     position: relative;
     /* 使用与 Student Life 一致的红色渐变叠加 */
     background: linear-gradient(to bottom,
             rgba(128, 8, 16, 0.92),
             rgba(128, 8, 16, 0.85)),
         /* 建议背景图换成普林斯顿小镇的街景或校园全景 */
         url('/images/student-life/rl-01.jpg');

     background-size: cover;
     background-position: center;
     background-attachment: fixed;
     /* 保持视差滚动，显高级 */
     padding: 120px 0;
     color: #fff;
     /* 强制白字 */
     text-align: center;
 }

 .rl-subtitle-caps {
     text-transform: uppercase;
     letter-spacing: 3px;
     font-size: 0.9rem;
     opacity: 0.8;
     color: rgba(255, 255, 255, 0.9);
     display: block;
     margin-bottom: 10px;
     font-weight: 600;
 }

 .rl-location-content h2 {
     font-family: 'Georgia', serif;
     font-size: 3rem;
     color: #fff;
     margin-bottom: 20px;
 }

 /* 分割线改为红色，因为背景是白的 */
 .sl-divider-white {
     width: 80px;
     height: 3px;
     background-color: rgba(255, 255, 255, 0.6);
     margin: 0 auto 40px;
 }

 .rl-location-content p {
     font-size: 1.2rem;
     max-width: 800px;
     margin: 0 auto;
     line-height: 1.5;
     /* 这种大号字，行高要更小，1.5 比较合适 */
     font-weight: 300;
     color: rgba(255, 255, 255, 0.95);
 }

 /* --- 小引用块 --- */
 .rl-quote-box-small {
     margin-top: 30px;
     padding: 25px;
     background: #fcfcfc;
     border-left: 4px solid var(--primary-color);
     font-family: 'Georgia', serif;
     font-style: italic;
     font-size: 1.2rem;
     color: #555;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
 }

 /* --- 轮播图画廊组件 (Gallery Slider) --- */
 /* --- 轮播图外层包裹 --- */
 .rl-gallery-wrapper-static {
     position: relative;
     width: 100%;
     /* 可以在这里加一个 margin-bottom 给点留位置，防止贴太紧 */
     margin-bottom: 10px;
 }

 /* --- 视窗容器 (限制显示区域) --- */
 .rl-gallery-window {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; 
    
    /* 【修改】去掉背景色和阴影，只保留底部空间 */
    background-color: transparent; 
    box-shadow: none; 
    
    /* 仍然需要留出底部空间给圆点，否则圆点会盖住下一段文字 */
    padding-bottom: 40px; 
    box-sizing: border-box;

    overflow: hidden; 
    border-radius: 6px; /* 图片本身的圆角保留，看起来更精致 */
    
    /* 交互设置 */
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.rl-gallery-window:active {
    cursor: grabbing;
}

/* --- 2. 轨道 --- */
.rl-gallery-track {
    display: flex;
    
    /* 绝对定位：占满顶部，留出底部 padding 的区域 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 40px); /* 图片高度 = 总高 - 圆点区域 */
    
    will-change: transform;
}

/* --- 3. 单个滑块 --- */
.rl-slide-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    
    /* 遮罩修复圆角 */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

/* --- 4. 图片样式 --- */
.rl-slide-item img {
    /* 102% 放大修复缝隙 */
    width: 102%;
    height: 100%;
    position: relative;
    left: -1%;
    
    object-fit: cover;
    display: block;
    
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0); 
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    pointer-events: none;
    -webkit-user-drag: none;
}

.rl-slide-item:hover img {
    transform: scale(1.08) translateZ(0);
}

/* --- 5. 底部圆点容器 --- */
.rl-dots-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px; /* 对应 padding-bottom */
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    
    z-index: 10;
    background-color: transparent; /* 透明背景 */
}

/* --- 圆点样式 (适配无背景模式) --- */
.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    
    /* 【修改】因为没有白色底座了，默认圆点颜色加深一点，防止看不清 */
    background: rgba(0, 0, 0, 0.2); 
    
    cursor: pointer;
    transition: all 0.3s ease;
    border: 4px solid transparent; 
    box-sizing: content-box; 
    background-clip: padding-box;
}

/* 选中状态 */
.gallery-dot.active {
    background-color: #800810; /* 品牌红 */
    transform: scale(1.2);
    opacity: 1;
}

/* 悬停状态 */
.gallery-dot:hover {
    background-color: rgba(0, 0, 0, 0.5);
}
.gallery-dot.active:hover {
    background-color: #800810;
}
 /* --- 移动端适配 --- */
 @media (max-width: 768px) {

     .rl-feature-row,
     .rl-feature-row.reverse {
         flex-direction: column;
         gap: 40px;
     }

     .rl-media-col,
     .rl-text-col {
         max-width: 100%;
         width: 100%;
     }

     .rl-grid-3 {
         grid-template-columns: 1fr;
     }

     .rl-location-content h2 {
         font-size: 2.2rem;
     }

     .rl-section {
         padding: 40px 0;
     }
 }