/* ===== 移动端区域导航页面（左父级 + 右子级 两栏）===== */

.mobile-region-nav-page {
    background: #fff;
}

/* ===== 国内/国外切换标签 ===== */
.region-nav-tabs-mobile {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.region-nav-tab-mobile {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.region-nav-tab-mobile.active {
    color: #2B57A5;
    border-bottom-color: #2B57A5;
    font-weight: 600;
}

.region-nav-tab-mobile i {
    font-size: 16px;
}

/* ===== 两栏容器 ===== */
/* 头部 49px + 标签 ~45px，余下填满视口，左右各自滚动 */
.region-split-mobile {
    display: flex;
    height: calc(100vh - 94px);
    height: calc(100dvh - 94px);
    overflow: hidden;
}

/* ===== 左栏：父级区域 ===== */
.region-rail-mobile {
    flex: 0 0 96px;
    width: 96px;
    height: 100%;
    overflow-y: auto;
    background: #f5f6f8;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.region-rail-mobile::-webkit-scrollbar,
.region-content-mobile::-webkit-scrollbar {
    display: none;
}

.rail-item-mobile {
    padding: 14px 8px;
    text-align: center;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    position: relative;
    line-height: 1.3;
}

.rail-item-mobile.active {
    background: #fff;
    color: #2B57A5;
    font-weight: 600;
}

.rail-item-mobile.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: #2B57A5;
}

/* ===== 右栏：子级区域 ===== */
.region-content-mobile {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    background: #fff;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.region-panel-mobile {
    display: none;
}

.region-panel-mobile.active {
    display: block;
}

/* 面板头部（父级入口） */
.panel-head-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: #f5f6f8;
    border-radius: 4px;
    text-decoration: none;
}

.panel-head-name-mobile {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.panel-head-go-mobile {
    font-size: 12px;
    color: #2B57A5;
    display: flex;
    align-items: center;
    gap: 2px;
}

.panel-head-go-mobile i {
    font-size: 12px;
}

.panel-head-count-mobile {
    font-size: 12px;
    color: #999;
}

/* 子级城市分组 */
.panel-group-mobile {
    margin-top: 14px;
}

.panel-group-title-mobile {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    margin-bottom: 10px;
}

.panel-group-title-mobile i {
    font-size: 12px;
    color: #bbb;
}

/* 芯片网格 */
.panel-chips-mobile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.panel-chips-mobile:empty {
    display: none;
}

.panel-chip-mobile {
    padding: 9px 6px;
    background: #f5f6f8;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    color: #444;
    text-decoration: none;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-chip-mobile:active {
    background: #e8f0fb;
    color: #2B57A5;
}

/* 极窄屏：右栏改两列 */
@media (max-width: 360px) {
    .region-rail-mobile {
        flex-basis: 84px;
        width: 84px;
    }
    .panel-chips-mobile {
        grid-template-columns: repeat(2, 1fr);
    }
}
