/* --- 全局和对话框基础样式 (来自 1.txt) --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #f5f7fa;
}

h1 {
    text-align: center;
}

/* 对话框遮罩层 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* display: flex; 由JS控制 */
    justify-content: center;
    align-items: center;
    z-index: 200000;
    /* 确保在最顶层 */
}

/* 对话框内容 */
.dialog-content {
    background: #ffffff;
    border-radius: .520833vw;
    width: 35.416667vw;
    min-height: 31.25vw;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
    animation: dialogAppear 0.3s ease-out;
}

@keyframes dialogAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialog-header {
    padding: 1.5625vw;
    padding-top: 1.666667vw;
    /* border-bottom: 1px solid #eee; */
    font-size: .9375vw;
    color: #303133;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0%;
    display: flex;
    justify-content: space-between;

}

.dialogCloseImg {
    width: .833333vw;
    height: .833333vw;
    cursor: pointer;
}

.dialog-body {
    padding: 0 1.5625vw;
    margin-bottom: .520833vw;
    height: max-content;
    position: relative;
    /* 为loading-mask提供定位上下文 */
}

/* --- 对话框内部元素样式 (来自 1.txt) --- */
.selectBox {
    margin-bottom: .625vw;
    position: relative;
}

.searchImg {
    position: absolute;
    left: .833333vw;
    top: 50%;
    transform: translate(0, -50%);
    z-index: 10;
    width: .833333vw;
    height: .833333vw;
}

.selectInput {
    width: 100%;
    height: 1.979167vw;
    padding: .520833vw .833333vw .520833vw 2.083333vw;
    background: #F6F7FB;
    border: 0;
    border-radius: .520833vw;
    font-size: .729167vw;
    box-sizing: border-box;
    /* 确保padding不会撑大元素 */
}

.selectInput::placeholder {
    color: #C0C4CC;
    font-family: PingFang SC;
    font-weight: 400;
    font-style: Regular;
    font-size: .729167vw;
    line-height: 1;
    letter-spacing: 0%;
}

.selectInput:focus {
    outline: none;
    border-color: #30B3B7;
}

.chosedTotal {
    width: 100%;
    margin-bottom: .9375vw;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hotItem {
    display: inline-block;
    height: 1.25vw;
    min-width: 2.8125vw;
    width: max-content;
    border-radius: .208333vw;
    background-color: #F2FBF9;
    color: #30B3B7;
    font-family: PingFang SC;
    font-weight: 500;
    font-size: .729167vw;
    line-height: 1.25vw;
    letter-spacing: 0px;
    padding: .260417vw .625vw .260417vw .833333vw;
    /* 垂直居中 */
}

.cancelImg {
    padding: .15625vw;
    width: .46875vw;
    height: .46875vw;
    margin-top: .260417vw;
    color: #20B49A;
    cursor: pointer;
}

.cancelImg:hover {
    border-radius: .208333vw;
    background-color: #D3F1F2;
}

.demo-tabs {
    margin-bottom: .625vw;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #E8E8E8;
    height: 1.5625vw;
}

.tab-pane {
    padding-right: 2.708333vw;
    padding-left: .104167vw;
    height: 1.5625vw;
    line-height: 1.145833vw;
    font-size: .729167vw;
    color: #303133;
    cursor: pointer;
}

.tab-pane.active {
    color: #000000;
    font-weight: 500;
    position: relative;
}

.tab-pane.active::before {
    content: "";
    position: absolute;
    width: .729167vw;
    height: .208333vw;
    border-radius: .520833vw;
    bottom: 0;
    left: .520833vw;
    background-color: #303133;
}

.chooseBox {
    width: 100%;
    display: flex;
    justify-content: space-between;
    height: 17.8125vw;
}

.firLevelList {
    height: 17.8125vw;
    border-radius: .3125vw;
    background-color: #F6F7FB;
    overflow: hidden;
    overflow-y: auto;
    padding: .520833vw 0;
    box-sizing: border-box;
}

.firItem {
    width: 100%;
    padding: .260417vw 0;
    line-height: 1.145833vw;
    margin-bottom: .260417vw;
    text-align: center;
    font-family: PingFang SC;
    font-weight: 400;
    font-size: .729167vw;
    color: #3A3A3A;
    cursor: pointer;
}

.chosedFirItem {
    font-weight: 500;
    color: #20B49A;

}

/* 动态宽度 */ 
.cityStyle {
    width: 9vw;
}

.industryStyle {
    width: 10.9375vw;
}

.firIndustry {
    text-align: left !important;
    padding-left: 16px !important;
}


.secLevelList {
    width: calc(100% - 6.770833vw - .9375vw);
    /* 默认按cityStyle计算 */
    height: 17.8125vw;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
    overflow-y: auto;
    padding: .520833vw 10px;
    box-sizing: border-box;
}

/* 如果是行业模式，调整二级列表宽度 */
/* 这个可以通过JS动态添加class来控制，或者使用CSS选择器 */
/* .industry-mode-active .secLevelList { width: calc(100% - 210px - 18px); } */


.secItem {
    display: inline-block;
    padding: .208333vw .3125vw;
    font-family: PingFang SC;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    color: #3A3A3A;
}

/* .secItem:hover {
    background: #f5f7fa;
} */

.chosedSecItem {
    font-weight: 400;
    color: #20B49A;
    background: #ffffff;
}

/* --- 底部按钮和Loading样式 (来自 1.txt) --- */
.dialog-footer {
    box-sizing: border-box;
    padding: 0 1.5625vw 1.666667vw 1.5625vw;
    text-align: right;
    /* border-top: 1px solid #eee; */
}

.dialog-btn {
    /* padding: .46875vw .78125vw; */
    font-size: .729167vw;
    cursor: pointer;
    margin-left: .520833vw;
    display: inline-block;
}

.dialog-btn-cancel {
    width: 5vw;
    height: 1.770833vw;
    line-height: 1.770833vw;
    text-align: center;
    background: #f6f7fb;
    color: #7c8087;
    border: none;
    border-radius: .520833vw;
}

/* .dialog-btn-cancel:hover {
    background: #82848a;
} */

.dialog-btn-confirm {
    width: 5vw;
    height: 1.770833vw;
    line-height: 1.770833vw;
    text-align: center;
    background: #20B49A;
    color: #ffffff;
    border: none;
    border-radius: .520833vw;
}

/* .dialog-btn-confirm:hover {
    background: #279a9e;
} */

.loading-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: none;
    /* 由JS控制 */
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 4px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #30B3B7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.search-dropdown {
    position: absolute;
    top: 120%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #DCDFE6;
    border-radius: .260417vw;
    z-index: 10;
    min-height: 1.5625vw;
    max-height: 15.625vw;
    overflow-y: auto;
    overflow: visible;
    padding: .416667vw 0;
    box-shadow: 0 .104167vw .625vw 0 rgba(0, 0, 0, 0.1),
        0 .208333vw 1.25vw 0 rgba(0, 0, 0, 0.08);
}

.search-dropdown::before {
    content: "";
    position: absolute;
    top: -.78125vw;
    /* 三角形高度 */
    left: 48%;
    /* 距离左侧位置 */
    width: .104167vw;
    height: .3125vw;
    border-left: .416667vw solid transparent;
    border-right: .416667vw solid transparent;
    border-bottom: .416667vw solid #DCDFE6;
    /* 与边框颜色一致 */
    z-index: 100;
}

.search-result-item {
    padding: .416667vw .625vw;
    cursor: pointer;
    font-size: .729167vw;
    font-family: PingFang SC;
    font-weight: 400;
    color: #3A3A3A;
}

.search-result-item:hover {
    background-color: #F5F7FA;
}

.search-result-onItem {
    background: #fff;
    text-align: center;
    padding: .416667vw .625vw;
    cursor: pointer;
    font-size: .729167vw;
    font-family: PingFang SC;
    font-weight: 400;
    color: #3A3A3A;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}