/* ============================================================
   联系我们页 · 分所交通指引样式  branch-guide.css
   作用：分组卡片式交通指引（地铁/公交/自驾/位置）+ 导航直达按钮
   ============================================================ */

/* ===== 指引容器 ===== */
.ct-guide{
    margin-top:18px;
    border-top:1px dashed var(--ct-line);
    padding-top:16px;
}

/* ===== 导航直达按钮 ===== */
.ct-gd-nav{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin-bottom:16px;
}
.ct-gd-navbtn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    padding:8px 6px;
    border-radius:999px;
    background:linear-gradient(135deg,#0d6efd,#0b5ed7);
    color:#fff;
    font-size:12.5px;
    font-weight:600;
    letter-spacing:.2px;
    white-space:nowrap;
    min-width:0;
    box-shadow:0 4px 12px rgba(13,110,253,.22);
    transition:.2s ease;
}
.ct-gd-navbtn:hover{
    color:#fff;
    transform:translateY(-1px);
    box-shadow:0 7px 18px rgba(13,110,253,.32);
}
.ct-gd-navbtn::after{
    content:"↗";
    font-size:12px;
    opacity:.85;
}

/* ===== 分组 ===== */
.ct-gd-group{
    margin-bottom:14px;
    border:1px solid var(--ct-line);
    border-radius:12px;
    overflow:hidden;
    background:#fff;
}
.ct-gd-ghead{
    display:flex;
    align-items:center;
    gap:9px;
    padding:10px 14px;
    background:linear-gradient(90deg,#f3f7ff,#fbfdff);
    border-bottom:1px solid var(--ct-line);
    font-size:14px;
    font-weight:700;
    color:var(--ct-navy);
}
.ct-gd-gico{
    flex:0 0 26px;
    width:26px;
    height:26px;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#eaf2ff;
    color:var(--ct-blue);
}
.ct-gd-gico svg{
    width:16px;
    height:16px;
}

/* ===== 条目 ===== */
.ct-gd-items{
    list-style:none;
    margin:0;
    padding:0;
}
.ct-gd-item{
    padding:11px 14px;
    border-bottom:1px dashed #eef2f8;
}
.ct-gd-item:last-child{
    border-bottom:0;
}
.ct-gd-item.is-best{
    background:linear-gradient(90deg,rgba(13,110,253,.045),transparent 70%);
    box-shadow:inset 3px 0 0 var(--ct-blue);
}
.ct-gd-mrow{
    display:flex;
    align-items:baseline;
    flex-wrap:wrap;
    gap:8px;
}
.ct-gd-main{
    font-size:14.5px;
    font-weight:700;
    color:#1f2937;
}
.ct-gd-note{
    font-size:12.5px;
    font-weight:600;
    color:var(--ct-blue);
    background:#eef4ff;
    border-radius:999px;
    padding:2px 9px;
    white-space:nowrap;
}
.ct-gd-item.is-best .ct-gd-note{
    background:linear-gradient(135deg,var(--ct-blue),var(--ct-blue-dark));
    color:#fff;
}
.ct-gd-tip{
    margin-top:5px;
    font-size:13px;
    line-height:1.65;
    color:var(--ct-mut);
}

/* ===== 移动端 ===== */
@media (max-width:900px){
    /* 单列布局时确保信息卡不溢出 */
    .ct-contact .ct-panel-info{
        min-width:0;
        width:100%;
        overflow:hidden;
    }
    .ct-contact .ct-panel-addr{
        word-break:break-all;
    }
}
@media (max-width:640px){
    .ct-gd-nav{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:6px;
    }
    .ct-gd-navbtn{
        padding:9px 8px;
        font-size:12.5px;
    }
    /* 第三个按钮（百度）独占一行，视觉更平衡 */
    .ct-gd-navbtn:nth-child(3){
        grid-column:1 / -1;
    }
    .ct-gd-item{
        padding:10px 12px;
    }
    .ct-gd-main{
        font-size:14px;
    }
    .ct-gd-mrow{
        gap:6px;
    }
    .ct-gd-note{
        font-size:12px;
        padding:2px 7px;
        white-space:normal;
    }
    .ct-gd-tip{
        font-size:12.5px;
        word-break:break-word;
    }
    .ct-gd-ghead{
        padding:9px 12px;
        font-size:13.5px;
    }
}
