.float-search-wrap {
    position: fixed;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}
.float-search-wrap.visible {
    opacity: 1;
    visibility: visible;
}

.float-pill {
    display: flex;
    align-items: center;
    width: 590px;
    height: 58px;
    background: #fff;
    border: 1px solid #8078f7;
    border-radius: 29px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    padding: 0 6px 0 10px;
    transition: opacity 0.25s, visibility 0.25s;
    text-align: left;
}
.float-pill .pill-placeholder {
    flex: 1;
    font-size: 14px;
    color: #999;
    padding-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.float-pill .pill-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 34px;
    padding: 0 18px;
    background: linear-gradient(135deg, #3a6fff, #0043ff);
    color: #fff;
    border: none;
    border-radius: 17px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.float-pill .pill-btn:hover {
    background: linear-gradient(135deg, #5a88ff, #4d7cfe);
}
.float-pill .pill-btn .pill-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../img/icon.png') no-repeat;
    background-size: 254px 185px;
    background-position: -10.3px -57px;
    vertical-align: middle;
}

.float-panel {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 880px;
    background: #fff;
    border: 1px solid #0043ff;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    overflow: hidden;
}
.float-search-wrap.expanded .float-pill {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.float-search-wrap.expanded .float-panel {
    opacity: 1;
    visibility: visible;
}

/* --- Tab æ  --- */
.float-panel .panel-tabs {
    display: flex;
    align-items: center;
    background: #f5f5f7;
    border-bottom: none;
    padding-left: 16px;
    gap: 0;
    padding-top: 4px;
}
.float-panel .panel-tab {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 6px 25px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: inherit;
    position: relative;
    transition: color 0.2s, background 0.2s;
    /* line-height: 43px; */
}
.float-panel .panel-tab:hover {
    /* background: rgba(255, 255, 255, 0.6); */
}
.float-panel .panel-tab.active {
    color: #333;
    font-weight: 600;
    background: none;
    position: relative;
    z-index: 1;
}
.float-panel .panel-tab.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: #fff; */
    /* clip-path: polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%); */
    z-index: -1;
    background-image: url('../img/pptbj.png');
    background-size: 164px;
    background-position-x: 0px;
    background-position-y: 6px;
    background-repeat: no-repeat;
}
.float-panel .panel-tab.active::after {
    display: none;
}
.float-panel .panel-tab .tab-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: inline-block;
    flex-shrink: 0;
    background: url('../img/icon.png') no-repeat;
    text-indent: -9999px;
    overflow: hidden;
    vertical-align: middle;
}
.float-panel .panel-tab .tab-icon.icon-p {
    background-size: 168px 122px;
    background-position: -5.5px -6.3px;
}
.float-panel .panel-tab .tab-icon.icon-w {
    background-size: 168px 122px;
    background-position: -41.9px -6.3px;
}
.float-panel .panel-tab .tab-icon.icon-grid {
    background-size: 168px 122px;
    background-position: -78.5px -6.3px;
}

.float-panel .panel-body {
    padding: 0px 16px 0px;
}

.float-panel .panel-textarea {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 8px;
    outline: none;
    resize: none;
    font-size: 14px;
    color: #333;
    font-family: inherit;
    line-height: 1.6;
    padding: 10px 12px;
    box-sizing: border-box;
}
.float-panel .panel-textarea:focus {
    border: none;
    box-shadow: none;
}
.float-panel .panel-textarea::placeholder {
    color: #ccc;
}

.float-panel .panel-footer {
    display: flex;
    align-items: center;
    padding: 0px 16px 6px;
    color: #99B;
    font-size: 15px;
}
.float-panel .footer-filename {
    flex: 1;
    font-size: 13px;
    color: #bbb;
    margin-left: 12px;
    text-align: left;
}
.float-panel .panel-ref {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s;
    font-family: inherit;
}
.float-panel .panel-ref:hover {
    /* border-color: #4d7cfe; */
    /* color: #4d7cfe; */
}
.float-panel .panel-ref .ref-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url('../img/icon.png') no-repeat;
    background-size: 222px 162px;
    background-position: -35.8px -123px;
    vertical-align: middle;
}
.float-panel .panel-generate {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 22px;
    background: linear-gradient(135deg, #3a6fff, #0043ff);
    color: #fff;
    border: none;
    border-radius: 38px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.float-panel .panel-generate:hover {
    background: linear-gradient(135deg, #5a88ff, #4d7cfe);
}
.float-panel .panel-generate .gen-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../img/icon.png') no-repeat;
    background-size: 254px 185px;
    background-position: -10.3px -57px;
    vertical-align: middle;
}
