/* ============================================
   校车接送点样式 - 砖红色主题 (#d15941)
   高级质感设计
   ============================================ */

/* 首页 & 详情页通用头部样式 */
.shuttle-page-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.2rem;
}

.shuttle-page-header {
    max-width: 1200px;
    margin: 0 auto 0.32rem;
    padding: 0.2rem 0.2rem 0;
    text-align: center;
}
.shuttle-page-header .header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d15941 0%, #c44a33 100%);
    color: #fff;
    width: 0.56rem;
    height: 0.56rem;
    border-radius: 50%;
    font-size: 0.26rem;
    margin-bottom: 0.14rem;
    box-shadow: 0 4px 12px rgba(209, 89, 65, 0.35);
}
.shuttle-page-header h1 {
    margin: 0 0 0.06rem;
    font-size: clamp(0.24rem, 2.5vw, 0.32rem);
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}
.shuttle-page-header h1 small {
    font-size: clamp(0.11rem, 1.2vw, 0.14rem);
    color: #888;
    font-weight: 400;
    margin-left: 0.1rem;
    letter-spacing: 0.01em;
}
.shuttle-page-header .header-sub {
    font-size: clamp(0.11rem, 1.1vw, 0.13rem);
    color: #666;
    margin: 0 0 0.16rem;
    line-height: 1.6;
}
.shuttle-page-header .header-redline {
    width: 0.6rem;
    height: 3px;
    background: linear-gradient(90deg, #d15941 0%, #e87a65 100%);
    border-radius: 2px;
    margin: 0 auto;
}

/* ============================================
   主体布局：地图 + 右侧信息卡
   ============================================ */
.shuttle-wrapper {
    display: flex;
    gap: 0.2rem;
    align-items: stretch;
    margin-bottom: 0.28rem;
}

/* 地图区域 */
.shuttle-map-area {
    flex: 1;
    min-width: 0;
}
.shuttle-map {
    width: 100%;
    height: 4.5rem;
    border-radius: 0.12rem;
    overflow: hidden;
    background: #e8e8e8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 右侧信息卡 */
.shuttle-info-panel {
    width: 2.8rem;
    flex-shrink: 0;
    background: #fff;
    border-radius: 0.12rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.shuttle-info-header {
    background: linear-gradient(135deg, #d15941 0%, #c44a33 100%);
    color: #fff;
    padding: 0.14rem 0.16rem;
    font-size: clamp(0.12rem, 1.2vw, 0.14rem);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.08rem;
}
.shuttle-info-header i { font-size: 0.14rem; }
.shuttle-info-content {
    flex: 1;
    padding: 0.16rem;
    overflow-y: auto;
    font-size: clamp(0.11rem, 1.1vw, 0.13rem);
}

/* 信息卡占位 */
.shuttle-info-placeholder {
    text-align: center;
    color: #bbb;
    padding: 0.6rem 0.1rem;
}
.shuttle-info-placeholder i { 
    font-size: 0.4rem; 
    display: block; 
    margin-bottom: 0.12rem; 
    color: #ddd; 
}
.shuttle-info-placeholder p { margin: 0; font-size: 0.12rem; line-height: 1.6; color: #999; }

/* 信息卡内容 */
.shuttle-info-name {
    font-size: clamp(0.13rem, 1.3vw, 0.16rem);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.1rem;
    line-height: 1.4;
    padding-bottom: 0.08rem;
    border-bottom: 1px solid #f0f0f0;
}
.shuttle-info-row {
    color: #444;
    margin-bottom: 0.08rem;
    font-size: clamp(0.11rem, 1.1vw, 0.13rem);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}
.shuttle-info-row i { 
    color: #d15941; 
    margin-right: 0.06rem;
    flex-shrink: 0;
    margin-top: 0.02rem;
}
.shuttle-info-dir { 
    color: #666; 
    font-size: clamp(0.1rem, 1vw, 0.12rem);
    background: #faf8f7;
    padding: 0.06rem 0.1rem;
    border-radius: 0.04rem;
    border-left: 2px solid #d15941;
}
.shuttle-info-dir i { color: #d15941; }
.shuttle-info-coord {
    font-size: 0.1rem;
    color: #aaa;
    margin-top: 0.1rem;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    background: #f8f8f8;
    padding: 0.04rem 0.08rem;
    border-radius: 0.03rem;
    display: inline-block;
}
.shuttle-info-coord .sep { margin: 0 0.04rem; color: #ccc; }

/* 信息卡按钮组 - 砖红色主题 */
.shuttle-info-btns {
    display: flex;
    gap: 0.08rem;
    margin-top: 0.14rem;
}
.info-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.08rem 0.06rem;
    border-radius: 0.06rem;
    font-size: clamp(0.1rem, 1vw, 0.12rem);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: none;
}
.info-btn i { margin-right: 0.04rem; }
.info-btn-primary {
    background: linear-gradient(135deg, #d15941 0%, #c44a33 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(209, 89, 65, 0.3);
}
.info-btn-primary:hover { 
    background: linear-gradient(135deg, #c44a33 0%, #b33d28 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(209, 89, 65, 0.4);
}
.info-btn-secondary {
    background: #fff;
    color: #d15941;
    border: 1px solid #d15941;
}
.info-btn-secondary:hover { 
    background: #faf5f4;
    color: #c44a33;
    transform: translateY(-1px);
}

/* ============================================
   底部站点卡片网格
   ============================================ */
.shuttle-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.2rem;
    margin-bottom: 0.24rem;
}

.shuttle-card {
    background: #fff;
    border-radius: 0.12rem;
    padding: 0.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}
.shuttle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d15941 0%, #e87a65 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.shuttle-card:hover {
    box-shadow: 0 8px 28px rgba(209, 89, 65, 0.15);
    transform: translateY(-4px);
    border-color: rgba(209, 89, 65, 0.1);
}
.shuttle-card:hover::before { opacity: 1; }

.shuttle-card-num {
    position: absolute;
    top: 0.14rem;
    right: 0.14rem;
    background: linear-gradient(135deg, #d15941 0%, #c44a33 100%);
    color: #fff;
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.11rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(209, 89, 65, 0.3);
}

.shuttle-card-body { flex: 1; }

.shuttle-card-name {
    font-size: clamp(0.13rem, 1.3vw, 0.15rem);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.06rem;
    padding-right: 0.36rem;
    line-height: 1.4;
}

.shuttle-card-address {
    font-size: clamp(0.1rem, 1vw, 0.12rem);
    color: #666;
    margin-bottom: 0.04rem;
    line-height: 1.5;
}

.shuttle-card-direction {
    font-size: clamp(0.1rem, 1vw, 0.11rem);
    color: #d15941;
    margin-bottom: 0.04rem;
    font-weight: 500;
}

.shuttle-card-coord {
    font-size: 0.1rem;
    color: #aaa;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    margin-top: 0.06rem;
    background: #f8f8f8;
    padding: 0.03rem 0.06rem;
    border-radius: 0.03rem;
    display: inline-block;
}
.shuttle-card-coord .coord-sep { margin: 0 0.04rem; color: #ccc; }

.shuttle-card-actions {
    display: flex;
    gap: 0.08rem;
    margin-top: 0.08rem;
}
.btn-navi-card {
    flex: 1;
    padding: 0.08rem 0.1rem;
    border: none;
    border-radius: 0.06rem;
    font-size: clamp(0.1rem, 1vw, 0.12rem);
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-navi-card i { margin-right: 0.04rem; }
.btn-navi-primary {
    background: linear-gradient(135deg, #d15941 0%, #c44a33 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(209, 89, 65, 0.3);
}
.btn-navi-primary:hover { 
    background: linear-gradient(135deg, #c44a33 0%, #b33d28 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(209, 89, 65, 0.4);
}
.btn-navi-secondary {
    background: #fff;
    color: #d15941;
    border: 1px solid #d15941;
}
.btn-navi-secondary:hover { 
    background: #faf5f4;
    color: #c44a33;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(209, 89, 65, 0.15);
}

/* ============================================
   底部按钮
   ============================================ */
.shuttle-footer-btn {
    text-align: center;
    margin-top: 0.16rem;
}
.btn-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d15941;
    font-size: clamp(0.11rem, 1.1vw, 0.13rem);
    font-weight: 500;
    padding: 0.12rem 0.36rem;
    border: 1.5px solid #d15941;
    border-radius: 0.3rem;
    text-decoration: none;
    transition: all 0.25s ease;
    background: #fff;
}
.btn-view-all:hover {
    background: linear-gradient(135deg, #d15941 0%, #c44a33 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(209, 89, 65, 0.35);
}
.btn-view-all i { margin-right: 0.06rem; }

/* ============================================
   高德地图自定义标记 - 修复歪斜问题
   ============================================ */
.amap-marker-school {
    width: 0.4rem;
    height: 0.4rem;
    background: linear-gradient(135deg, #d15941 0%, #c44a33 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(209, 89, 65, 0.5);
    position: relative;
}
.amap-marker-school::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #d15941;
}
.amap-marker-school span {
    color: #fff;
    font-size: 0.12rem;
    font-weight: 700;
    line-height: 1;
}

/* 地图信息窗口 */
.amap-infowin {
    padding: 0.12rem 0.16rem;
    min-width: 220px;
}
.amap-infowin-name {
    font-size: clamp(0.13rem, 1.3vw, 0.15rem);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.08rem;
    padding-bottom: 0.06rem;
    border-bottom: 1px solid #f0f0f0;
}
.amap-infowin-row {
    font-size: clamp(0.11rem, 1.1vw, 0.13rem);
    color: #444;
    margin-bottom: 0.06rem;
    line-height: 1.5;
}
.amap-infowin-row i { color: #d15941; margin-right: 0.04rem; }
.amap-infowin-dir { color: #666; font-size: clamp(0.1rem, 1vw, 0.12rem); }
.amap-infowin-dir i { color: #d15941; }
.amap-infowin-coord {
    font-size: 0.1rem;
    color: #aaa;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    margin: 0.06rem 0;
    background: #f8f8f8;
    padding: 0.03rem 0.08rem;
    border-radius: 0.03rem;
    display: inline-block;
}
.amap-infowin-coord .sep { margin: 0 0.04rem; color: #ccc; }
.amap-infowin-btns {
    display: flex;
    gap: 0.1rem;
    margin-top: 0.12rem;
}
.amap-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.08rem 0.12rem;
    border-radius: 0.06rem;
    font-size: clamp(0.1rem, 1vw, 0.12rem);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: none;
}
.amap-btn i { margin-right: 0.04rem; }
.amap-btn-primary {
    background: linear-gradient(135deg, #d15941 0%, #c44a33 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(209, 89, 65, 0.3);
}
.amap-btn-primary:hover { 
    background: linear-gradient(135deg, #c44a33 0%, #b33d28 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(209, 89, 65, 0.4);
}
.amap-btn-secondary {
    background: #fff;
    color: #d15941;
    border: 1px solid #d15941;
}
.amap-btn-secondary:hover { 
    background: #faf5f4;
    color: #c44a33;
    transform: translateY(-1px);
}

/* ============================================
   空状态
   ============================================ */
.shuttle-empty {
    text-align: center;
    padding: 0.8rem 0.4rem;
    background: #fff;
    border-radius: 0.12rem;
    color: #999;
    max-width: 600px;
    margin: 0.4rem auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.shuttle-empty-icon { 
    font-size: 0.6rem; 
    margin-bottom: 0.16rem; 
    display: block;
}
.shuttle-empty p { 
    font-size: clamp(0.14rem, 1.4vw, 0.17rem); 
    color: #333; 
    margin: 0 0 0.08rem; 
    font-weight: 600; 
}
.shuttle-empty small { 
    font-size: clamp(0.1rem, 1vw, 0.12rem); 
    color: #888;
}

/* ============================================
   地图 Key 缺失提示
   ============================================ */
.shuttle-key-missing {
    text-align: center;
    padding: 0.4rem;
    background: linear-gradient(135deg, #fffbe6 0%, #fff7e0 100%);
    border-radius: 0.1rem;
    color: #ad8b00;
    margin-bottom: 0.24rem;
    font-size: clamp(0.11rem, 1.1vw, 0.13rem);
    border: 1px solid #ffe58f;
    box-shadow: 0 2px 8px rgba(250, 173, 20, 0.1);
}
.shuttle-key-missing i { color: #faad14; margin-right: 0.06rem; }
.shuttle-key-missing a { color: #d15941; font-weight: 500; }
.shuttle-key-missing a:hover { text-decoration: underline; }
.shuttle-key-missing code {
    background: rgba(0,0,0,0.06);
    padding: 0.02rem 0.06rem;
    border-radius: 0.03rem;
    font-family: 'SF Mono', 'Monaco', monospace;
}

/* ============================================
   在线客服浮窗
   ============================================ */
.shuttle-service-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #d15941 0%, #c44a33 100%);
    color: #fff;
    padding: 0.14rem 0.1rem;
    border-radius: 0.1rem 0 0 0.1rem;
    font-size: clamp(0.1rem, 1vw, 0.12rem);
    font-weight: 500;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: -3px 3px 12px rgba(209, 89, 65, 0.35);
    z-index: 999;
    transition: all 0.25s ease;
    letter-spacing: 0.05em;
}
.shuttle-service-tab:hover { 
    background: linear-gradient(135deg, #c44a33 0%, #b33d28 100%);
    transform: translateY(-50%) translateX(-2px);
    box-shadow: -4px 4px 16px rgba(209, 89, 65, 0.45);
}
.shuttle-service-tab i { margin-bottom: 0.06rem; font-size: 0.14rem; }

/* ============================================
   响应式布局
   ============================================ */
@media (max-width: 900px) {
    .shuttle-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.16rem;
    }
    .shuttle-map {
        height: 3.8rem;
    }
}

@media (max-width: 600px) {
    .shuttle-wrapper {
        flex-direction: column;
    }
    .shuttle-map {
        height: 3rem;
    }
    .shuttle-info-panel {
        width: 100%;
    }
    .shuttle-cards {
        grid-template-columns: 1fr;
        gap: 0.14rem;
    }
    .shuttle-service-tab {
        font-size: 0.1rem;
        padding: 0.1rem 0.08rem;
    }
    .shuttle-page-header {
        margin-bottom: 0.24rem;
    }
}
