/* ===== 底部悬浮AI写作栏 ===== */
.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: 608px;
    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;
}
.float-pill .pill-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 35px;
    border-radius: 5px;
    border: 1.5px solid #d0d0d8;
    color: #b0b0b8;
    font-size: 16px;
    font-weight: 300;
    flex-shrink: 0;
    margin-right: 6px;
    background: #f7f7fa;
    cursor: pointer;
    transition: transform .3s cubic-bezier(.4,0,.2,1), border-color .2s, color .2s, background .2s;
    line-height: 1;
    will-change: transform;
    transform: skewX(8deg);
    margin-left: 14px;
}
.float-pill .pill-add:hover {
    border-color: #8b7cf7;
    color: #8b7cf7;
    background: #f0eeff;
    transform: skewX(10deg) translateY(-3px) scale(1.1);
}
.float-pill .pill-add:active {
    transform: skewX(10deg) scale(0.97);
}
.float-pill .pill-placeholder {
    flex: 1;
    font-size: 14px;
    color: #999;
    padding-left: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.float-pill .pill-input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    outline: none;
    padding-left: 17px;
    padding-right: 12px;
    box-sizing: border-box;
    pointer-events: none;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.float-pill .pill-input2 {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    outline: none;
    padding-left: 17px;
    padding-right: 12px;
    box-sizing: border-box;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.float-pill .pill-input::placeholder {
    color: #999;
}
.float-pill .pill-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 34px;
    padding: 0 18px;
    background: #4318d9;
    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, #7c6cf7, #b865ff);
}
.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: 720px;
    background: #fff;
    border: 1px solid #8078f7;
    border-radius: 21px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    overflow: visible;
}
.float-search-wrap.expanded .float-pill {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.float-search-wrap.expanded .float-panel {
    opacity: 1;
    visibility: visible;
}

/* --- 设置栏 --- */
.float-panel .panel-settings {
    display: flex;
    align-items: center;
    padding: 12px 16px 12px;
    gap: 8px;
    background: #f8f8f8;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

/* --- 精灵图标通用（icon.png） --- */
.sp-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../img/icon.png') no-repeat;
    background-size: 254px 185px;
    vertical-align: middle;
    flex-shrink: 0;
}
.sp-icon.icon-sparkle  { background-position: -10.3px -57px; }
.sp-icon.icon-upload   { background-position: -42px -140px; }

/* --- 写作图标精灵（xiezuo.png 100×24） --- */
.xz-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('../img/xiezuo.png') no-repeat;
    background-size: 93px 21px;
    vertical-align: middle;
    flex-shrink: 0;
}
.xz-icon.icon-brain  {background-position: -1px -1px;}
.xz-icon.icon-globe  {background-position: -25px -1px;}
.xz-icon.icon-book   {background-position: -49px -1px;}
.xz-icon.icon-file   {background-position: -72px 0px;}

/* --- 设置项（药丸形） --- */
.float-panel .setting-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 18px;
    background: #fff;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background 0.2s;
}
.float-panel .setting-item:hover {
    background: #eeeef5;
}

/* --- 开关 --- */
.float-panel .toggle-switch {
    position: relative;
    width: 36px;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.float-panel .toggle-switch.on {
    background: #52c41a;
}
.float-panel .toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.2s;
}
.float-panel .toggle-switch.on::after {
    left: 18px;
}

/* --- 上传按钮 --- */
.float-panel .setting-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 18px;
    border: none;
    background: #fff;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.float-panel .setting-btn:hover {
    background: #eeeef5;
}

/* --- 内容区 --- */
.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;
    text-align: left;
}
.float-panel .panel-textarea::placeholder {
    color: #bbb;
}

/* --- 附件提示 --- */
.float-panel .panel-attachment {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 16px 0;
    padding: 8px 12px;
    background: #f8f8f8;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
}
.float-panel .panel-attachment .att-close {
    margin-left: auto;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    line-height: 1;
}
.float-panel .panel-attachment .att-close:hover {
    color: #333;
}

/* --- 底部操作栏 --- */
.float-panel .panel-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0px 16px 6px;
}
.float-panel .footer-file-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 260px;
    padding: 8px 26px 8px 10px;
    border: 1px solid #d8e3ff;
    border-radius: 8px;
    background: #f5f8ff;
}
.float-panel .footer-filename {
    display: block;
    font-size: 13px;
    color: #3b4a7a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: auto;
}
.float-panel .footer-file-chip .file-close-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: #ff6b6b;
    color: #fff;
    font-size: 12px;
    line-height: 16px;
    cursor: pointer;
    padding: 0;
}
.float-panel .footer-file-chip .file-close-btn:hover {
    background: #ff4f4f;
}
.float-panel .panel-generate {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 22px;
    background: #4318d9;
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    margin-left: auto;
    flex-shrink: 0;
}
.float-panel .panel-generate:hover {
    background: linear-gradient(135deg, #7c6cf7, #b865ff);
}
.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;
}

/* ===== 第二条底部栏（AI简历） ===== */
.float-resume-wrap {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}
.float-resume-wrap.visible {
    opacity: 1;
    visibility: visible;
}
.float-resume-pill {
    display: flex;
    align-items: center;
    width: 500px;
    height: 50px;
    background: #fff;
    border: 1px solid #8078f7;
    border-radius: 25px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    padding: 0 6px 0 16px;
}
.float-resume-pill .pill-placeholder {
    flex: 1;
    font-size: 14px;
    color: #999;
    padding-left: 6px;
}
.float-resume-pill .pill-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 34px;
    padding: 0 18px;
    background: #4318d9;
    color: #fff;
    border: none;
    border-radius: 17px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.float-resume-pill .pill-btn:hover {
    background: linear-gradient(135deg, #7c6cf7, #b865ff);
}
.float-resume-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;
}

.webuploader-container {position: relative;}
.webuploader-element-invisible {position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px,1px,1px,1px);}
.webuploader-pick-disable {opacity: 0.6;pointer-events:none;}

.wrongtishi {
    position: fixed;
    padding: 10px 16px;
    top: 50%;
    left: 50%;
    background: #eb5149;
    font-size: 13px;
    color: #fff;
    border-radius: 12px;
    z-index: 1001;
    transform: translate(-50%,-50%)
}

.wrongtishi span {
    display: inline-block;
    width: 27px;
    height: 27px;
    background: url('https://static.tukuppt.com/wsw/img/tb.png') 1px 0px no-repeat;
    vertical-align: middle
}

.float-search-wrap .jindu{
    display: block;
    font-size: 13px;
    color: #3b4a7a;
    white-space: nowrap;
    width:auto;
    margin-right: auto;
}
