/* =========================================
   School Directions Page
   ========================================= */

 /* --- 1. Hero Banner --- */
 .dir-hero {
     position: relative;
     height: 60vh;
     min-height: 400px;
     display: flex;
     align-items: center;
     justify-content: center;
     margin-top: -80px;
     /* 抵消 header 高度 */
     padding-top: 80px;
 }

 .dir-hero-bg {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-size: cover;
     background-position: center;
     filter: brightness(0.6);
     /* 降低亮度突出文字 */
     z-index: 0;
 }

 .dir-hero-overlay {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     /* 渐变遮罩 */
     background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.5));
     z-index: 1;
 }

 .dir-hero-content {
     position: relative;
     z-index: 2;
     text-align: center;
     color: #fff;
 }

 .dir-hero-content h1 {
     font-size: 3.5rem;
     font-weight: 700;
     margin-bottom: 15px;
     letter-spacing: 1px;
 }

 .dir-hero-content p {
     font-size: 1.5rem;
     font-weight: 300;
     opacity: 0.9;
 }

 /* --- 2. Info Grid (Contact & Weather) --- */
 .dir-section {
     padding: 80px 0;
 }

 .bg-light {
     background-color: #f5f7fa;
 }

 .info-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 40px;
 }

 /* 通用卡片样式 */
 .info-card,
 .weather-card {
     background: #fff;
     border-radius: 16px;
     box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
     overflow: hidden;
     transition: transform 0.3s ease;
 }

 .info-card:hover,
 .weather-card:hover {
     transform: translateY(-5px);
 }

 /* 联系卡片 */
 .card-header {
     background: var(--primary-color, #800810);
     color: #fff;
     padding: 25px 30px;
 }

 .card-header h3 {
     margin: 0;
     font-size: 1.5rem;
 }

 .card-body {
     padding: 30px;
 }

 .info-item {
     display: flex;
     align-items: flex-start;
     margin-bottom: 25px;
 }

 .info-item i {
     font-size: 1.4rem;
     color: var(--primary-color, #800810);
     margin-right: 20px;
     margin-top: 5px;
     width: 25px;
     text-align: center;
 }

 .info-item h4 {
     margin: 0 0 5px 0;
     font-size: 0.9rem;
     text-transform: uppercase;
     color: #888;
     letter-spacing: 1px;
 }

 .info-item p {
     margin: 0;
     font-size: 1.15rem;
     color: #333;
     font-weight: 500;
 }

 .dir-btn {
     display: block;
     text-align: center;
     background: #1a1a1a;
     color: #fff;
     padding: 15px;
     border-radius: 8px;
     text-decoration: none;
     font-weight: 600;
     margin-top: 30px;
     transition: background 0.3s;
 }

 .dir-btn:hover {
     background: #333;
 }

 /* 天气卡片 */
 .weather-card {
     background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
     color: #fff;
     padding: 30px;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
 }

 .weather-header {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
 }

 .weather-header h3 {
     margin: 0;
     font-size: 1.8rem;
 }

 .weather-date {
     font-size: 0.9rem;
     opacity: 0.9;
     margin-top: 5px;
 }

 .weather-icon-large {
     font-size: 3rem;
     color: #ffeb3b;
 }

 .current-temp {
     margin: 20px 0;
 }

 .current-temp .degree {
     font-size: 4rem;
     font-weight: 700;
     display: block;
     line-height: 1;
 }

 .current-temp .desc {
     font-size: 1.2rem;
     font-weight: 500;
 }

 .weekly-forecast {
     border-top: 1px solid rgba(255, 255, 255, 0.3);
     padding-top: 20px;
     display: flex;
     justify-content: space-between;
 }

 .day-item {
     text-align: center;
     display: flex;
     flex-direction: column;
     gap: 8px;
 }

 .day-name {
     font-size: 0.85rem;
     opacity: 0.9;
 }

 .day-item i {
     font-size: 1.2rem;
 }

 .day-temp {
     font-size: 0.85rem;
     font-weight: 600;
 }

 .weather-note {
     font-size: 0.7rem;
     opacity: 0.7;
     margin-top: 15px;
     text-align: right;
 }

 /* --- 3. Map Section (Full Width Fixed) --- */
 .map-section {
     width: 100%;
     height: 500px;
     background: #e0e0e0;
     margin-top: 0;
     position: relative;
     z-index: 1;
     display: block;
     /* 块级显示，独占一行 */
     clear: both;
     /* 清除浮动 */
 }

 .map-section iframe {
     display: block;
     filter: grayscale(0.2);
     transition: filter 0.3s;
     width: 100% !important;
     height: 100% !important;
     /* 关键：强制填满父容器，防止溢出覆盖下方文字 */
 }

 .map-section:hover iframe {
     filter: grayscale(0);
 }

 /* --- 4. Travel Tips / Getting Here (Enhanced) --- */
 .tips-section {
     padding: 80px 0;
     background-color: #fff;
     width: 100%;
     display: block;
 }

 .rs-section-title {
     font-size: 2.2rem;
     color: #800810;
     margin-bottom: 50px;
     text-align: center;
     position: relative;
 }

 .rs-section-title::after {
     content: '';
     display: block;
     width: 50px;
     height: 3px;
     background: var(--primary-color, #800810);
     margin: 15px auto 0;
 }

 .tips-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     /* 强制三列 */
     gap: 40px;
 }

 /* Tips Card Style */
 .tip-box {
     text-align: center;
     padding: 40px 30px;
     background: #fff;
     border: 1px solid #eee;
     border-radius: 12px;
     transition: all 0.4s ease;
     position: relative;
     top: 0;
 }

 .tip-box:hover {
     border-color: transparent;
     box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
     top: -5px;
 }

 /* Icon Wrapper (Circle Background) */
 .tip-icon-wrapper {
     width: 80px;
     height: 80px;
     margin: 0 auto 25px auto;
     background-color: rgba(128, 8, 16, 0.08);
     /* 淡红背景 */
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.4s ease;
 }

 .tip-icon-wrapper i {
     font-size: 2rem;
     color: var(--primary-color, #800810);
     transition: all 0.4s ease;
 }

 /* Hover Effect: Red Circle, White Icon */
 .tip-box:hover .tip-icon-wrapper {
     background-color: var(--primary-color, #800810);
     transform: scale(1.1);
 }

 .tip-box:hover .tip-icon-wrapper i {
     color: #fff;
 }

 .tip-box h4 {
     font-size: 1.25rem;
     font-weight: 700;
     margin-bottom: 12px;
     color: #222;
 }

 .tip-box p {
     color: #666;
     font-size: 0.95rem;
     line-height: 1.6;
 }

 .tip-box p strong {
     color: var(--primary-color, #800810);
     font-weight: 700;
 }

 /* --- 动画类 (rs- 前缀) --- */
 .rs-anim {
     opacity: 0;
     transition: all 0.8s ease;
 }

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

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

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

 .rs-anim.is-visible {
     opacity: 1;
     transform: translate(0, 0);
 }

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

 /* --- 移动端适配 --- */
 @media (max-width: 768px) {
     .dir-hero {
         height: 50vh;
     }

     .dir-hero-content h1 {
         font-size: 2.5rem;
     }

     .info-grid {
         grid-template-columns: 1fr;
     }

     /* 信息卡片变单列 */
     .tips-grid {
         grid-template-columns: 1fr;
     }

     /* Getting Here 变单列 */

     .map-section {
         height: 350px;
         margin-bottom: 40px;
         /* 在地图下方强制推开一段距离 */
     }

     .tips-section {
         padding-top: 40px;
         /* 确保 Getting Here 标题有足够的顶部空间 */
         position: relative;
         z-index: 5;
         /* 提高层级，防止被上方元素意外遮挡 */
     }

     /* 稍微缩小一点移动端的标题字号，防止换行太难看 */
     .rs-section-title {
         font-size: 1.8rem;
         margin-bottom: 30px;
     }
 }


 