﻿/* 命名空间前缀 ts- 全部样式隔离，不污染全局 */
.ts-wrap * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ts-wrap body {
    padding: 40px 20%;
    font-family: "Microsoft YaHei", system-ui, sans-serif;
    background-color: #f7f9fc;
}

.ts-main-box {
    margin-bottom: 30px;
}

.ts-show-input {
    padding: 8px 12px;
    width: 400px;
    font-size: 15px;
    border: 1px solid #ccc;
    margin-right: 10px;
}

.ts-open-dialog-btn {
    display: inline-block;
    padding: 9px 20px;
    background: #2468c2;
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

/* 弹窗遮罩 唯一ID ts_maskWrap */
#ts_maskWrap {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ts-dialog {
    /*width: 90%;
    max-width: 1050px;
    background: #ffffff;
    padding: 36px;
    border-radius: 12px;
    position: relative;*/
    width:920px;
    background:#fff;
    padding:20px 24px 24px 24px; /* 缩小弹窗顶部内边距 */
    border-radius:8px;
    position:relative;
}

#ts_closeDialog {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    user-select: none;
}

.ts-h3 {
    /*font-size: 20px;
    color: #163866;
    margin-bottom: 16px;
    font-weight: 600;*/
      font-size:22px;
    color:#0F3460;
    /* 清除浏览器默认h3上下外边距 */
    margin: 0 0 16px 0;
    padding:0;
}
.ts-block{
    margin-bottom:18px;
}
.ts-h4 {
    font-size: 17px;
    color: #224b80;
    margin: 30px 0 14px;
    font-weight: 500;
}

.ts-tag-select-box {
    padding: 12px;
    background: #f7faff;
    border: 1px solid #e4ebf5;
}

.ts-tag-item {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 10px 12px 0;
    border: 1px solid #2468c2;
    border-radius: 0;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    background: #fff;
    transition: background-color 0.2s ease;
}

    .ts-tag-item:hover {
        background-color: #edf4fd;
    }

    .ts-tag-item input {
        display: none;
    }

    /* 兼容不支持:has浏览器 增加选中class兜底 */
    .ts-tag-item.ts-checked {
        background-color: #2468c2;
        border-color: #2468c2;
    }

        .ts-tag-item.ts-checked span {
            color: #fff;
        }

.ts-selected-tag-wrap {
    /*height:40px;
    padding: 16px;
    background: #fbfdff;
    border: 1px solid #e4ebf5;*/
      display:flex;
    flex-wrap:wrap;
    align-content: flex‑start;  /* 重点！多行flex从上往下排列，自动撑开父容器高度 */
    gap:10px;
    min-height:40px;
    padding:12px;
    border:1px solid #e8edf3;
    background:#f8fafe;
    height:auto;
    overflow:visible;
}

.ts-selected-tag {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    background: #2468c2;
    color: #fff;
    border-radius: 0;
    margin:0 10px 0px 10px;
    white-space: nowrap;
}

.ts-del-btn {
    margin-left: 12px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    user-select: none;
}

    .ts-del-btn:hover {
        background: rgba(255, 255, 255, 0.55);
    }

.ts-tip {
    color: #e03e3e;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
}

.ts-btn-get {
    margin-top: 20px;
    padding: 10px 24px;
    background: #224b80;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px; 
    float: right;
    text-decoration: none;
    display: inline-block;
    /*width: 110px;*/
}
