:root {
  --qe-primary: #005bff;
  --qe-primary-dark: #00368f;
  --qe-primary-bg: #e6efff;
  --qe-primary-border: #b8d0ff;
  --qe-ok: #16a34a;
  --qe-ok-bg: #dcfce7;
  --qe-warn: #d97706;
  --qe-warn-bg: #fef3c7;
  --qe-warn-border: #fde68a;
  --qe-danger: #dc2626;
  --qe-danger-bg: #fee2e2;
  --qe-danger-border: #fecaca;
  --qe-text: #0a0c14;
  --qe-text-2: #3a3e47;
  --qe-muted: #6b7280;
  --qe-border: #e9ebef;
  --qe-surface: #ffffff;
  --qe-surface-soft: #fafbfc;
  --qe-shadow: 0 16px 48px rgba(10, 12, 20, 0.18), 0 0 0 1px rgba(10, 12, 20, 0.04);
}

* {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f6f8fa;
    color: var(--qe-text);
}

/* 顶部 */
.topContent {
    width: 100%;
    background: linear-gradient(135deg, #1e7bff, var(--qe-primary));
    height: 50px;
    box-shadow: 0 4px 12px rgba(0, 91, 255, 0.25);
}

.topContent>.content {
    width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: end;
}

.topContent>.content>.leftContent {
    display: flex;
    justify-content: space-between;
    width: 28%;
}

.topContent>.content>.leftContent .logo {
    width: 50%;
    margin-top: 5px;
}

.topContent>.content>.leftContent>.toolName {
    width: 50%;
    font-size: 16px;
    margin-top: 12px;
    color: #fff;
}

.toolName label {
    font-size: 0.6em;
    margin-left: 5px;
}

.toolName span {
    font-size: 13px;
    font-weight: 200;
    margin-right: 10px;
}

.topContent>.content>.leftContent .logo img {
    width: 90%;
}

.topContent>.content>.rightContent {
    width: 15%;
    display: flex;
    justify-content: space-around;
    color: #fff;
    line-height: 80px;
    /* font-weight: 900; */
    font-size: 1.6em;
}

.toHome a {
    text-decoration: none;
    color: #fff;
}

.topContent>.content>.rightContent>div {
    cursor: pointer;
    width: 50%;
    text-align: center;
}

.topContent>.content>.rightContent>div:hover {
    background-color: rgba(255,255,255,0.12);
    border-radius: 6px;
}

.topContent>.content>.rightContent>.toLogin a {
    text-decoration: none;
    color: #fff;
}

/* 采集部分页面内容 */
.mainConent {
    width: 100%;
    background-color: #f6f8fa;
}

.mainConent>.content {
    background-color: #fff;
    width: 1100px;
    margin: 20px auto;
    overflow: hidden;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--qe-shadow);
    border: 1px solid var(--qe-border);
}

.mainConent>.content>.title {
    float: left;
    font-size: 14px;
    color: var(--qe-muted);
    margin: 10px 24px;
    font-weight: 600;
}

#errorMessage {
    display: none;
    margin: 0 22px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
}

#errorMessage.visible {
    display: block;
}

.mainConent>.content>#showCollected {
    float: right;
    margin: 10px 24px;
    color: var(--qe-primary);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

#urlCollect {
    width: 95%;
    max-width: 95%;
    min-height: 140px;
    margin: 0px 20px 10px;
    padding: 10px;
    border: 1px solid var(--qe-border);
    font-size: 13px;
    resize: vertical;
    border-radius: 8px;
    background: var(--qe-surface-soft);
    color: var(--qe-text);
}

#urlCollect.visible {
    border: 1px solid #dc2626;
}

#urlCollect:focus {
    outline: none;
    border-color: var(--qe-primary);
    box-shadow: 0 0 0 3px rgba(0, 91, 255, 0.12);
}

.tip:after {
    content: "?";
    color: #fff;
    background: #999;
    width: 13px;
    display: inline-block;
    height: 13px;
    text-align: center;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

.mainConent>.content>.footContent {
    width: 97%;
    margin: 10px auto;
    display: flex;
    justify-content: space-between;
}

.mainConent>.content>.footContent>.terrace {
    font-size: 14px;
    width: 55%;
    color: var(--qe-muted);
}

.mainConent>.content>.footContent>.terrace a {
    text-decoration: none;
    color: var(--qe-muted);
    font-size: 13px;
}

.mainConent>.content>.footContent>.terrace a:hover {
    color: var(--qe-primary);
}

.mainConent>.content>.footContent>.terrace h3 {
    /* color: #656565; */
    font-size: 0.8em;
    line-height: 1.4em;
}

.mainConent>.content>.footContent>.terrace p {
    font-size: 13px;
}

    .mainConent > .content > .footContent > .btn {
        width: 40%;
        display: flex;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .mainConent > .content > .footContent > .btn > div {
        font-size: 13px;
        color: var(--qe-text-2);
        width: 100%;
        text-align:right;
    }

.mainConent>.content>.footContent>.btn>div>input {
    border: 1px solid var(--qe-border);
    width: 60px;
    height: 22px;
    border-radius: 4px;
    padding: 0 4px;
}

.mainConent>.content>.footContent>.btn>div>input:focus {
    outline: none;
    border-color: var(--qe-primary);
    box-shadow: 0 0 0 3px rgba(0, 91, 255, 0.12);
}


.mainConent>.content>.footContent>.btn button {
    outline: none;
    width: 80px;
    font-size: 14px;
    /*margin-top: 20px;*/
    font-family: inherit;
    line-height: 30px;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    /* padding: 11px 12px; */
}

.mainConent>.content>.footContent>.btn button:active {
    transform: scale(0.98);
}

.mainConent>.content>.footContent #urlCollectBtn:active {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.mainConent>.content>.footContent #urlCollectBtn {
    background: linear-gradient(135deg, #1e7bff, var(--qe-primary));
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 91, 255, 0.25);
}

.mainConent>.content>.footContent #reset,#toHome {
    border: 1px solid var(--qe-border);
    color: var(--qe-text-2);
    background: var(--qe-surface-soft);
}


/* 未登录时的弹框 */
.promptPopup {
    display: none;
    position: fixed;
    top: 52px;
    left: 37%;
    width: 338px;
    border-radius: 12px;
    background-color: var(--qe-surface);
    z-index: 2;
    box-shadow: var(--qe-shadow);
    border: 1px solid var(--qe-border);
    overflow: hidden;
}

.promptPopup.visible {
    display: block;
}

.prompt-top {
    width: 100%;
    height: 36px;
    line-height: 36px;
    border-bottom: 1px solid var(--qe-border);
    background: linear-gradient(135deg, #eef4ff 0%, #dbe7ff 100%);
}

.prompt-text {
    float: left;
    margin-left: 16px;
    font-weight: 600;
    font-size: 13px;
    color: var(--qe-text);
}

.prompt-no {
    cursor: pointer;
    float: right;
    margin-right: 16px;
    color: var(--qe-muted);
}

.prompt-content {
    margin: 12px 16px;
    width: 90%;
    height: 35px;
}

.prompt-content p {
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--qe-text-2);
}

.prompt-buttom a {
    cursor: pointer;
    text-decoration: none;
    color: var(--qe-primary);
    margin-top: 10px;
    font-weight: 600;
    font-size: 13px;
}

.prompt-content a:hover {
    color: var(--qe-primary-dark);
}

.prompt-buttom {
    margin: 0 auto;
    width: 90%;
    height: 50px;
    display: flex;
    justify-content: space-between;
}

.prompt-close {
    cursor: pointer;
    /* float: right; */
    /* margin: 8px 15px; */
    padding: 6px 14px;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(135deg, #1e7bff, var(--qe-primary));
    border: none;
    height: 34px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 91, 255, 0.25);
}

/* 重复采集时的弹出框 */
.popup {
    display: none;
    position: fixed;
    top: 52px;
    left: 20%;
    width: 60%;
    border-radius: 12px;
    background-color: var(--qe-surface);
    z-index: 2;
    overflow: auto;
    box-shadow: var(--qe-shadow);
    border: 1px solid var(--qe-border);
}

.popup.visible {
    display: block;
}

/* 遮罩层 */
.popup-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 12, 20, 0.45);
    z-index: 1;
}

.popup-mask.visible {
    display: block;
}

.popup-container {
    background-color: var(--qe-surface);
    width: 500px;
    margin: 0 auto;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--qe-shadow);
    border: 1px solid var(--qe-border);
}

.popup-body {
    max-height: 320px;
    overflow: auto;
    border-top: 1px solid var(--qe-border);
    border-bottom: 1px solid var(--qe-border);
    padding: 10px;
}

.popup-body tr:hover {
    background-color: var(--qe-primary-bg);
}

.popup-body .info {
    width: 90%;
    margin: 5px auto 10px;
    border: 1px solid var(--qe-warn-border);
    height: 33px;
    line-height: 33px;
    border-radius: 6px;
    margin-bottom: 10px;
    text-align: center;
    background-color: var(--qe-warn-bg);
    color: var(--qe-warn);
    font-size: 14px;
    font-weight: 600;
}

.popup-body table {
    border-collapse: collapse;
    width: 90%;
    margin: 0 auto;
    border: none;
}

.popup-body table input {
    width: 18px;
    height: 18px;
}

.popup-body th,
.popup-body td {
    border: 1px solid var(--qe-border);
    padding: 8px;
    text-align: center;
    font-size: 13px;
}

.popup-body th {
    background: var(--qe-primary-bg);
    color: var(--qe-primary-dark);
    font-weight: 600;
}

.imgStyle {
    width: 71px;
    height: 71px;
    margin: auto;
    border-radius: 6px;
}

.popup-body td:first-child {
    text-align: center;
}

.popup-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    background: linear-gradient(135deg, #eef4ff 0%, #dbe7ff 100%);
    border-bottom: 1px solid var(--qe-border);
}

.popup-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--qe-text);
}

.popup-header button {
    background-color: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--qe-muted);
    line-height: 1;
}

.popup-header button:focus {
    outline: none;
}

.popup-footer {
    display: flex;
    justify-content: flex-end;
    margin: 10px;
    gap: 8px;
}

.popup-footer button {
    background-color: var(--qe-surface-soft);
    border: 1px solid var(--qe-border);
    border-radius: 6px;
    color: var(--qe-text-2);
    cursor: pointer;
    font-size: 13px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.popup-footer button:focus {
    outline: none;
}

.popup-footer button.popup-confirm {
    background: linear-gradient(135deg, #1e7bff, var(--qe-primary));
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 91, 255, 0.25);
}

.popup-footer button.popup-cancel {
    border: 1px solid var(--qe-border);
    color: var(--qe-muted);
}


/* 采集结果提醒 */
.collect_results {
    display: none;
    position: fixed;
    top: 52px;
    left: 30%;
    width: 40%;
    border-radius: 12px;
    background-color: var(--qe-surface);
    z-index: 2;
    font-size: 13px;
    box-shadow: var(--qe-shadow);
    border: 1px solid var(--qe-border);
    overflow: hidden;
}

.collect_results.visible {
    display: block;
}

.collect_results-top {
    width: 100%;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px solid var(--qe-border);
    background: linear-gradient(135deg, #eef4ff 0%, #dbe7ff 100%);
}

.collect_results-text {
    float: left;
    margin-left: 16px;
    font-weight: 600;
    color: var(--qe-text);
}

.collect_results-no {
    cursor: pointer;
    float: right;
    margin-right: 16px;
    font-size: 22px;
    color: var(--qe-muted);
    line-height: 40px;
}

.collect_results-content {
    margin: 15px auto 0;
    padding: 0 16px 0 20px;
}

.wyys-main-link {
    word-wrap: break-word;
    width: 100%;
    max-width: 100%;
    max-height: 300px;
    overflow: auto;
}

/* .link::-webkit-scrollbar {
  width: 6px;
  height: 120px;
  background-color: #bcbcbc;
} */
.reasonP {
    margin-top: 10px;
}

.failUrl {
    color: var(--qe-primary);
}

.collect_results-content>div {
    color: var(--qe-text);
}

.collect_results-content label {
    color: var(--qe-primary);
    font-weight: 600;
}

.collect_results-close {
    cursor: pointer;
    float: right;
    margin: 8px 15px;
    padding: 8px 16px;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(135deg, #1e7bff, var(--qe-primary));
    border: none;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 91, 255, 0.25);
    /* font-weight: bold; */
}

/* 进度条、 */
.progress[data-percent] {
    position: relative;
}

.progress {
    border-radius: 8px;
    -webkit-box-shadow: none;
    box-shadow: none;
    background: var(--qe-border);
    height: 15px;
    margin-bottom: 10px;
    width: 99%;
    overflow: hidden;
}

/* .progress:before {
display: inline-block;
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: radial-gradient(9px 9px 0deg,circle cover,#0ff 0,rgba(0,0,255,0) 100%,#00f 95%);
} */
.progress[data-percent]:after {
    display: inline-block;
    content: attr(data-percent);
    color: #FFF;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    line-height: 16px;
    text-align: center;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.progress-bar {
    float: left;
    /* 修改加载宽度 */
    width: 0;
    height: 100%;
    font-size: 12px;
    color: #fff;
    text-align: center;
    background: linear-gradient(90deg, #1e7bff, var(--qe-primary));
    -webkit-box-shadow: inset 0 -1px 0 rgb(0 0 0 / 15%);
    box-shadow: inset 0 -1px 0 rgb(0 0 0 / 15%);
    -webkit-transition: width .6s ease;
    transition: width .6s ease;
}

.progress .progress-bar {
    -webkit-box-shadow: none;
    box-shadow: none;
    line-height: 18px;
}

.btn button {
    height: 35px;
}

/* 右上角提醒 */

/* 悬浮按钮组合容器 */
.qe-float-wrapper {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 6px;
  background: rgba(255,255,255,0.92);
  border-radius: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* 悬浮小圆圈按钮（可拖动） */
.float-distributing-goods.qe-float-btn {
    all: initial !important;
    position: relative !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #1e88e5, #0d47a1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    cursor: grab !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    user-select: none !important;
    touch-action: none !important;
    transition: box-shadow 0.2s ease, transform 0.15s ease !important;
}
.float-distributing-goods.qe-float-btn:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
    transform: scale(1.05) !important;
}
.float-distributing-goods.qe-float-btn.qe-float-btn--dragging {
    cursor: grabbing !important;
    transition: none !important;
}
.float-distributing-goods.qe-float-btn img {
    width: 30px !important;
    height: 30px !important;
    pointer-events: none !important;
    border-radius: 50% !important;
}

/* 弹窗样式 */
.distributing-goods-layer {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    height: 80vh !important;  
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    z-index: 2147483647 !important;
}

/* 关闭按钮样式 */
.distributing-goods-close-btn {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 18px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
    z-index: 2147483647 !important;
}

/* 备用关闭按钮样式 */
.distributing-goods-close-btn.fallback {
    position: fixed !important;
    top: calc(50% - 40vh) !important;
    right: calc(50% - 400px) !important;
    left: auto !important;
    margin-top: -15px !important;
}

.distributing-goods-close-btn:hover {
    background: rgba(0, 0, 0, 0.7) !important;
}