:root {
    --ppt-primary: #3a94f4;
    --ppt-primary-dark: #227fdc;
    --ppt-primary-soft: #eef6ff;
    --ppt-bg: #f4f9ff;
    --ppt-card: #ffffff;
    --ppt-border: #d6e4f8;
    --ppt-text: #203b5b;
    --ppt-muted: #6c86a5;
    --ppt-success: #2f855a;
    --ppt-danger: #c94646;
}

.content-body.ppt-content-body {
    min-height: 95vh !important;
}

.ppt-generation-container {
    padding: 0;
    color: var(--ppt-text);
}

#progressbar.ppt-three-step-progressbar li {
    width: 33.333333%;
    text-align: center;
}

#progressbar.ppt-three-step-progressbar {
    margin-bottom: 12px;
}

.ppt-step {
    background: linear-gradient(180deg, #fff 0%, #f6fbff 100%);
    border: 1px solid var(--ppt-border);
    border-radius: 14px;

}

.step-hint {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: var(--ppt-primary-soft);
    border: 1px solid #cfe2ff;
    border-radius: 10px;
    color: #2f5e90;
    font-size: 14px;
}

.step-tip-note {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f7fbff;
    border: 1px dashed #c8dcf7;
    border-radius: 10px;
    color: #3b6797;
    font-size: 13px;
}
#title{
    height: 8vh;
    min-height: 8vh;
}

.title-upload-box {
    border: 1px solid var(--ppt-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.title-upload-box.drag-over {
    border-color: #8bb4e1;
    box-shadow: 0 0 0 3px rgba(139, 180, 225, 0.15);
}

.modern-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 0;
    border-radius: 0;
    background: #fff;
    height: 8vh;
    min-height: 8vh;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: none;
}

.modern-input:focus {
    outline: none;
    border: 0;
    box-shadow: none;
}

.file-input-hidden {
    display: none;
}



.file-list {
    height: 3vh;
    min-height: 3vh;
    border-top: 1px dashed #bcd8f6;
    display: flex;
    align-items: stretch;
    background: #f9fcff;
}

.file-prompt-empty {
    width: 100%;
    height: 3vh;
    min-height: 3vh;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 13px;
    color: #4c719b;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

@media (max-width: 520px) {
    .file-list {
        height: 5vh;
        min-height: 5vh;
    }
}

@media (max-width: 520px) {
    .file-prompt-empty {
        height: 5vh;
        min-height: 5vh;
    }
}

.file-prompt-empty:hover {
    background: #eef6ff;
    color: #2d5f94;
}

.file-item {
    width: 100%;
    height: 3vh;
    min-height: 3vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px 0 14px;
    background: #f1f8ff;
    border: 0;
    color: #365b87;
    font-size: 13px;
}

.file-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-remove {
    border: 0;
    background: transparent;
    color: #8f4a4a;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.file-item-remove:hover {
    color: #b03131;
}

.template-combined-panel {
    margin-top: 10px;
    border: 1px solid var(--ppt-border);
    border-radius: 10px;
    padding: 10px 10px 0;
    background: #fff;
}

.template-combined-panel .template-filter-panel {
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.template-combined-panel .template-list-container {
    height: 30vh;
    min-height: 30vh;
    margin-top: 0;
    border: 0;
    border-top: 1px solid #edf3fa;
    border-radius: 0;
    padding: 10px 0 0;

}
@media (min-height: 600px) {
    .template-combined-panel .template-list-container {
        height: 34vh;
        min-height: 34vh;
    }
}


@media (min-height: 950px) {
    .template-combined-panel .template-list-container {
        height: 40vh;
        min-height: 40vh;
    }
}

@media (min-height: 1200px) {
    .template-combined-panel .template-list-container {
        height: 45vh;
        min-height: 45vh;
    }
}

.step1-actions {
    margin-top: 8px;
    justify-content: flex-start;
    position: sticky;
    bottom: 0;
    z-index: 2;
    border-top: 1px solid #edf3fa;
    background: #fff;
    padding: 10px 0;
}

.ppt-lite-fill {
    margin-top: 14px;
    border: 1px solid var(--ppt-border);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
    padding: 14px 16px;
}

.ppt-lite-fill-title {
    font-size: 14px;
    font-weight: 700;
    color: #2f5f92;
    margin-bottom: 10px;
}

.ppt-lite-fill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ppt-lite-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 16px;
    background: #edf5ff;
    border: 1px solid #d5e5f9;
    color: #3c6696;
    font-size: 12px;
    line-height: 1.4;
}

.btn-generate,
.btn-action,
.download-action,
.outline-node-actions button,
.outline-level-actions button {
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
    -moz-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    -webkit-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    -ms-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    border-radius: 0.375em;
    border: 0;
    box-shadow: inset 0 0 0 2px var(--ppt-primary);
    color: var(--ppt-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Roboto Slab", serif;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.075em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    background-color: transparent;
}

.btn-generate,
.btn-action {
    height: 3.5em;
    line-height: 3.5em;
    padding: 0 2.25em;
}

.btn-generate:hover,
.btn-action:hover,
.download-action:hover {
    background-color: var(--ppt-primary);
    color: #fff;
}

.btn-action.btn-primary,
.modern-btn {
    background-color: var(--ppt-primary);
    color: #fff;
}

.btn-action.btn-primary:hover,
.modern-btn:hover {
    background-color: var(--ppt-primary-dark);
    color: #fff;
}

.btn-action.btn-secondary {
    background: transparent;
    color: var(--ppt-primary);
}

.btn-action:disabled,
.btn-generate:disabled,
.download-action:disabled,
.download-action.is-disabled {
    box-shadow: inset 0 0 0 2px #cadcf2;
    color: #9bb2cc !important;
    background: transparent !important;
    cursor: not-allowed;
    pointer-events: none;
}

.template-filter-panel {
    background: #fff;
    border: 1px solid var(--ppt-border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    min-width: 40px;
    font-size: 13px;
    color: #4b6f98;
    font-weight: 700;
    padding-top: 6px;
}

.filter-options {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
}

.filter-chip {
    flex: 0 0 auto;
    border: 1px solid #c7daf3;
    background: #fff;
    color: #4a6f98;
    border-radius: 16px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

.filter-chip.active {
    border-color: var(--ppt-primary);
    background: var(--ppt-primary-soft);
    color: #1e5da3;
}

.template-list-container {
    border: 1px solid var(--ppt-border);
    border-radius: 10px;
    background: #fff;
    overflow-y: auto;
    padding: 12px;
}

.template-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.template-card {
    border: 1px solid #d5e4f8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

.template-card::after {
    content: '';
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #c2dcfb;
    background: rgba(255, 255, 255, 0.95);
    color: #2f86e8;
    font-size: 11px;
    line-height: 1.6;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease, visibility 0.1s ease;
    pointer-events: none;
}

.template-card:hover {
    transform: translateY(-2px);
    border-color: #b8d9ff;
    box-shadow: 0 8px 16px rgba(93, 146, 206, 0.18), 0 0 0 4px rgba(173, 213, 255, 0.82);
}

.template-card:hover::after {
    content: '选中模板';
    opacity: 1;
    visibility: visible;
}

.template-card.active {
    border-color: #2f86e8;
    box-shadow: 0 0 0 4px rgba(47, 134, 232, 0.72);
}

.template-card.active::after {
    content: '已选中';
    opacity: 1;
    visibility: visible;
    border-color: #96c2f2;
    color: #1f6ec5;
}

.template-cover {
    width: 100%;
    aspect-ratio: 4 / 2.2;
    object-fit: cover;
    background: #f3f8ff;
    display: block;
    transform: scale(1);
    transition: transform 0.14s ease;
}

.template-card:hover .template-cover {
    transform: scale(1.2);
}

.template-loading,
.template-empty {
    text-align: center;
    color: var(--ppt-muted);
    padding: 14px 0;
    font-size: 13px;
}

.sse-output {
    white-space: pre-wrap;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--ppt-border);
    margin-bottom: 10px;
    display: none;
}

.outline-tree {
    border: 1px solid var(--ppt-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.outline-tree-header {
    padding: 12px 16px;
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(135deg, #2f86e8 0%, #62b1ff 100%);
    border-bottom: 1px solid #d8eaff;
}

.outline-tree-header span {
    display: inline-block;
    font-size: 16px;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 2px rgba(26, 76, 132, 0.2);
}

.outline-tree-body {
    padding: 14px;
}

#outline-tree-container {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 4px;
}

.outline-node {
    margin: 10px 0;
}

.outline-node.level-0 { margin-left: 0; }
.outline-node.level-1 { margin-left: 24px; }
.outline-node.level-2 { margin-left: 52px; }
.outline-node.level-3 { margin-left: 80px; }

.outline-node-card {
    display: flex;
    align-items: stretch;
    gap: 10px;
    border: 1px solid var(--ppt-border);
    border-left: 4px solid #a9caef;
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
}

.outline-type-title .outline-node-card { border-left-color: #533cfd; background: #f2f8ff; }
.outline-type-subtitle .outline-node-card { border-left-color: #476ffb; background: #f4f9ff; }
.outline-type-chapter .outline-node-card { border-left-color: #51a0f1; background: #f6fbff; }
.outline-type-content .outline-node-card { border-left-color: #95c9ff; background: #f8fcff; }

.outline-type {
    width: 24px;
    flex: 0 0 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #466a95;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 1px;
}

.outline-content-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.outline-content-input {
    flex: 1;
    border: 1px solid #d5e4f8;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    background: #fff;
}

.outline-content-input:focus {
    outline: none;
    border-color: var(--ppt-primary);
    box-shadow: 0 0 0 2px rgba(58, 148, 244, 0.2);
}

.outline-level-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.outline-node:hover .outline-level-actions {
    opacity: 1;
    transform: translateX(0);
}

.outline-level-actions button {
    min-width: 46px;
    height: 28px;
    padding: 0 8px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
    border-radius: 6px;
}

.outline-level-actions button:hover {
    background: var(--ppt-primary);
    color: #fff;
}

.outline-level-actions button:disabled {
    box-shadow: inset 0 0 0 2px #cadcf2;
    color: #9bb2cc !important;
    cursor: not-allowed;
}

.outline-node-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.outline-node-actions button {
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 15px;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
}

.outline-node-actions .btn-add-outline:hover {
    background: #2f855a;
    box-shadow: inset 0 0 0 2px #2f855a;
    color: #fff;
}

.outline-node-actions .btn-delete-outline:hover {
    background: var(--ppt-danger);
    box-shadow: inset 0 0 0 2px var(--ppt-danger);
    color: #fff;
}

.outline-node-actions .btn-delete-outline:disabled {
    box-shadow: inset 0 0 0 2px #cadcf2;
    color: #9bb2cc !important;
    cursor: not-allowed;
}

.outline-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.progress-panel {
    border: 1px solid var(--ppt-border);
    border-radius: 12px;
    padding: 16px;
    background: linear-gradient(180deg, #fff 0%, #f6fbff 100%);
}

.progress-text {
    font-size: 14px;
    color: #456b95;
    margin-bottom: 10px;
}

.progress-track {
    height: 14px;
    background: #e7f1ff;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #d3e4fb;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #3a94f4 0%, #6cb6ff 100%);
    position: relative;
    transition: width 0.35s ease;
}

.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.28) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.28) 50%,
        rgba(255, 255, 255, 0.28) 75%,
        transparent 75%,
        transparent
    );
    background-size: 18px 18px;
    animation: ppt-progress-stripes 0.8s linear infinite;
}

@keyframes ppt-progress-stripes {
    from { background-position: 0 0; }
    to { background-position: 18px 0; }
}

.download-panel {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.download-action {
    height: 3.2em;
    line-height: 3.2em;
    padding: 0 1.8em;
}

.status-message {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    display: none;
    font-size: 13px;
}

.status-message.success {
    color: #1f6b46;
    background: #e7f8ef;
    border: 1px solid #bce6ce;
}

.status-message.error {
    color: #9f2f2f;
    background: #fff1f1;
    border: 1px solid #ffd6d6;
}

.ppt-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #214b79;
    color: #fff;
    padding: 10px 16px;
    border-radius: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10000;
    font-size: 13px;
}

.ppt-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ppt-global-loading {
    position: fixed;
    inset: 0;
    background: rgba(244, 249, 255, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 12000;
}

.ppt-global-loading.show {
    display: flex;
}

.ppt-global-loading-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--ppt-border);
    border-radius: 10px;
    padding: 14px 18px;
    color: #3c618b;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(96, 150, 210, 0.22);
}

.ppt-global-loading-spinner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #d3e6ff;
    border-top-color: var(--ppt-primary);
    animation: ppt-spin 0.8s linear infinite;
}

@keyframes ppt-spin {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
    .template-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .template-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .template-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .template-list-container {
        min-height: 320px;
        height: 46vh;
    }

    .outline-node.level-1 { margin-left: 12px; }
    .outline-node.level-2 { margin-left: 24px; }
    .outline-node.level-3 { margin-left: 36px; }
}


/*form styles*/
#msform {
    text-align: center;
    position: relative;
    margin-top: 0px;
}
@media only screen and (max-width: 821px) and (min-width: 768px){
    #msform {
        margin-bottom: 15rem;
    }
}

#msform fieldset {
    background: white;
    border: 0 none;
    border-radius: 10px;
    padding: 20px 10px;
    box-sizing: border-box;
    width: 100%;

    /*stacking fieldsets above each other*/
    position: relative;
}

/*Hide all except first fieldset*/
#msform fieldset:not(:first-of-type) {
    display: none;
}

/*buttons*/
#msform .action-button {
    width: 100px;
    background: #ee0979;
    font-weight: bold;
    color: white;
    border: 0 none;
    border-radius: 25px;
    cursor: pointer;
    padding: 10px 5px;
    margin: 10px 5px;
}

#msform .action-button:hover, #msform .action-button:focus {
    box-shadow: 0 0 0 2px white, 0 0 0 3px #ee0979;
}

#msform .action-button-previous {
    width: 100px;
    background: #C5C5F1;
    font-weight: bold;
    color: white;
    border: 0 none;
    border-radius: 25px;
    cursor: pointer;
    padding: 10px 5px;
    margin: 10px 5px;
}

#msform .action-button-previous:hover, #msform .action-button-previous:focus {
    box-shadow: 0 0 0 2px white, 0 0 0 3px #C5C5F1;
}

/*headings*/
.fs-title {
    font-size: 18px;
    text-transform: uppercase;
    color: #2C3E50;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-weight: bold;
}

.fs-subtitle {
    font-weight: normal;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

/*progressbar*/
#progressbar {
    /*margin-bottom: 30px;*/
    overflow: hidden;
    /*CSS counters to number the steps*/
    counter-reset: step;
    padding-left: 0rem;
}

#progressbar li {
    list-style-type: none;
    color: #2C3E50;
    text-transform: uppercase;
    font-size: 16px;
    width: 25%;
    float: left;
    position: relative;
    letter-spacing: 1px;
}

#progressbar li:before {
    content: counter(step);
    counter-increment: step;
    width: 40px;
    height: 40px;
    line-height: 40px;
    display: block;
    font-size: 16px;
    color: #333;
    background: rgb(240 240 240);
    border-radius: 25px;
    margin: 0 auto 10px auto;
    z-index: 10;
    position: relative;
}

/*progressbar connectors*/
#progressbar li:after {
    content: '';
    width: 90%;
    height: 2px;
    background: rgb(240 240 240);
    position: absolute;
    left: -45%;
    top: 19px;
    z-index: 9; /*put it behind the numbers*/
}

#progressbar li:first-child:after {
    /*connector not needed before the first step*/
    content: none;
}

/*marking active/completed steps green*/
/*The number of the step and the connector before it = green*/
#progressbar li.active:before, #progressbar li.active:after {
    background: #24be58;
    color: white;
}

/* ===== write 页五步进度条：第五步"售后无忧"纯展示步，不参与流程推进 ===== */
/* 全局 #progressbar li 是 25% 四步均分（rewrite 等页面共用），这里用专属 class 覆盖为五等分 */
#progressbar.five-step-progressbar li {
    width: 20%;
}

/* 气泡会弹出进度条盒子之外，取消 overflow:hidden 的裁剪；
   原来的 overflow:hidden 是为了包含 li 的浮动，改用 ::after 清浮动代替 */
#progressbar.five-step-progressbar {
    overflow: visible;
}

#progressbar.five-step-progressbar::after {
    content: '';
    display: block;
    clear: both;
}

/* 第五步：悬浮/点击弹出售后气泡，pointer 提示可交互 */
#progressbar .after-sale-step {
    cursor: pointer;
}

/* 售后气泡：默认隐藏，悬浮（:hover）或点击（JS 加 bubble-open）时显示；
   蓝白风格参考向导弹窗（.wizard-restore-dialog）：白底 + #d3e6ff 描边 + #3c618b 文字 */
#progressbar .after-sale-bubble {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    box-sizing: border-box;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #d3e6ff;
    color: #3c618b;
    font-size: 13px;
    letter-spacing: 0;
    line-height: 1.6;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(96, 150, 210, 0.22);
    white-space: normal;
    z-index: 30;
}

/* 气泡顶部小箭头，指向第五步：外层边框色三角 + 内层白色三角叠加出描边效果 */
#progressbar .after-sale-bubble::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #d3e6ff;
}

#progressbar .after-sale-bubble::after {
    content: '';
    position: absolute;
    bottom: calc(100% - 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #fff;
}

#progressbar .after-sale-step:hover .after-sale-bubble,
#progressbar .after-sale-step.bubble-open .after-sale-bubble {
    display: block;
}

/* ===== 进度条第一步"基本信息"：文字右侧的绿色查看图标，点击弹窗展示已选信息 ===== */
/* 脉冲动画吸引点击；title 属性悬浮提示含义；inline-flex 让 SVG 在圆内居中，
   vertical-align 负值把图标中心对齐到中文字符的视觉中心 */
#progressbar .basic-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: -2px;
    margin-left: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform .15s ease;
    animation: basic-info-pulse 1.6s ease-in-out infinite;
}

#progressbar .basic-info-icon:hover {
    transform: scale(1.25);
}

@keyframes basic-info-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(36, 190, 88, 0.45); }
    50% { box-shadow: 0 0 0 6px rgba(36, 190, 88, 0); }
}

/* ===== step1 图表公式选项：悬浮弹出的格式示例图（样式参考第二步 .sampleBox1） ===== */
/* label 作为弹层定位基准 */
.paperFormatSelect .paperFormatLabel {
    position: relative;
}

/* 示例图弹层：默认隐藏，悬浮时由 JS fadeIn 显示 */
.paperFormatSelect .formatSampleBox {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 460px;
    z-index: 10;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    padding: 2px;
    box-sizing: border-box;
    background: #fff;
}

.paperFormatSelect .formatSampleBox img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== step3 大纲初始空容器：按钮行贴近容器底部（全局 .empty-tips 是垂直居中，index.html 也在用） ===== */
.outline-empty-tips {
    align-items: flex-end;
    padding-bottom: 10px;
}

/* step3 空大纲按钮行：竖线分隔 + 生成3级大纲的"推荐"小字 */
/* 容器 flex-end 贴底对齐（align-self:center 会以整个空大纲容器居中导致飘高），
   竖线保持贴底、收紧行高后用底部外边距抬到按钮中线 */
.outline-empty-tips .outline-btn-divider {
    color: #c5ccd6;
    line-height: 1;
    margin: 0 12px 8px;
}

/* step3 自定义大纲下方按钮行：竖线分隔，视觉同推荐大纲按钮行（垂直居中，无贴底补偿） */
.item-box-edit .outline-btn-divider {
    color: #c5ccd6;
    line-height: 1;
    margin: 0 12px;
}

.outline-empty-tips .outline-recommend-wrap {
    display: inline-flex;
    position: relative;
}

/* "推荐"小标签：斜贴在按钮右上角的绿色小贴纸 */
.outline-empty-tips .outline-recommend-tag {
    background: #24be58;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(36, 190, 88, 0.35);
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    padding: 2px 5px;
    position: absolute;
    right: -8px;
    top: -9px;
    transform: rotate(-12deg);
    white-space: nowrap;
    z-index: 1;
}

/* step3 空大纲按钮悬浮气泡：视觉同 #progressbar .after-sale-bubble（白底 #d3e6ff 描边 #3c618b 文字），
   弹出位置改为按钮上方，箭头朝下指向按钮；pre-line 让示例里的换行生效 */
.outline-empty-tips .btn {
    position: relative;
}

.outline-empty-tips .outline-tip-bubble {
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #d3e6ff;
    border-radius: 8px;
    bottom: calc(100% + 12px);
    box-shadow: 0 10px 22px rgba(96, 150, 210, 0.22);
    color: #3c618b;
    display: none;
    font-size: 13px;
    font-weight: 400;
    left: 50%;
    letter-spacing: 0;
    line-height: 1.6;
    padding: 10px 12px;
    pointer-events: none;
    position: absolute;
    text-align: left;
    text-transform: none;
    transform: translateX(-50%);
    white-space: pre-line;
    width: 200px;
    z-index: 30;
}

/* 气泡底部小箭头指向按钮：外层边框色三角 + 内层白色三角叠加出描边效果 */
.outline-empty-tips .outline-tip-bubble::before {
    border: 6px solid transparent;
    border-top-color: #d3e6ff;
    content: '';
    left: 50%;
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
}

.outline-empty-tips .outline-tip-bubble::after {
    border: 6px solid transparent;
    border-top-color: #fff;
    content: '';
    left: 50%;
    position: absolute;
    top: calc(100% - 1px);
    transform: translateX(-50%);
}

.outline-empty-tips .btn:hover .outline-tip-bubble {
    display: block;
}

/* ===== step3 自定义大纲编辑器：空内容时的灰色占位提示 ===== */
/* contenteditable 原生不显示 placeholder 属性，用 :empty + attr() 实现；
   文案（含换行和文献条数）由 write.js 的 updateOutlinePlaceholder 写入 placeholder 属性 */
#outlineEditor:empty::before {
    content: attr(placeholder);
    white-space: pre-line;
    color: #a6a6a6;
    pointer-events: none;
    display: block;
    min-height: 1em;
}

/* ===== step3 大纲编辑卡片：去掉卡片边框阴影（视觉透明），flex 让编辑区占满剩余高度 ===== */
/* index.html 首页共用 .major-outline-main-item.edit-item，所以用 write 专属 class 限定 */
.outline-edit-card {
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    /* 去掉 main.css 给的 14px 四周内边距，编辑区贴满卡片 */
    padding: 0;
}

/* 卡片顶部的快捷键提示行：压成单行小字，只占最小高度 */
.outline-edit-card .title-r {
    margin: 0 0 6px 2px;
    padding-left: 0;
    line-height: 1.4;
}

/* 编辑区固定 50vh 高，卡片高度跟着内容收缩；main.css 断点的 calc(100% - xxxpx)!important
   需用更高优先级 + !important 覆盖 */
.outline-edit-card .child-component-box {
    flex: none;
    height: 50vh !important;
    min-height: 0;
}


/* Not relevant to this form */
.dme_link {
    margin-top: 30px;
    text-align: center;
}
.dme_link a {
    background: #FFF;
    font-weight: bold;
    color: #ee0979;
    border: 0 none;
    border-radius: 25px;
    cursor: pointer;
    padding: 5px 25px;
    font-size: 12px;
}

.dme_link a:hover, .dme_link a:focus {
    background: #C5C5F1;
    text-decoration: none;
}

.w_dle {
    align-items: flex-start;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 3px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin-bottom: 8px;
    padding: 15px;
}

.w_dle_read_only {
    align-items: flex-start;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 3px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin-bottom: 8px;
    padding: 15px;
}

.w_dle:hover {
    box-shadow: 0 1px 4px rgba(68, 90, 116, .25);
}

.w_dle_img {
    color: #999;
    margin-top: 12px;
}

.w_dle_anticon {
    display: inline-flex;
    align-items: center;
    font-style: normal;
    line-height: 0;
    text-align: center;
    text-transform: none;
    vertical-align: -0.125em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.w_dle_content {
    display: flex;
    flex: 1 1;
    flex-direction: column;
}

.w_dle_input {
    align-items: center;
    display: flex;
    flex: 1 1;
}

.w_dle_textarea {
    text-align: left;
    max-width: 100%;
    min-height: 32px;
    line-height: 1.5714285714285714;
    vertical-align: bottom;
    transition: all 0.3s, height 0s;
    resize: vertical;

    box-sizing: border-box;
    margin: 0;
    padding: 4px 11px;
    color: rgba(0, 0, 0, 0.88);
    font-size: 18px;
    resize: none;
    height: 36px;
    line-height: 1.5714285714285714;
    list-style: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    position: relative;
    display: inline-block;
    width: 100%;
    min-width: 0;
    background-color: #ffffff;
    background-image: none;
    border-width: 1px;
    border-style: solid;
    border-color: #d9d9d9;
    border-radius: 6px;
    transition: all 0.2s;
    background-color: transparent;
    border: none;
    box-shadow: none;
}
.w_dle_textarea1 {
    text-align: left;
    max-width: 100%;
    min-height: 32px;
    vertical-align: bottom;
    resize: vertical;

    box-sizing: border-box;
    margin: 0;
    padding: 4px 11px;
    font-size: 14px;
    resize: none;
    list-style: none;
    position: relative;
    display: inline-block;
    width: 100%;
    min-width: 0;
    background-color: #ffffff;
    background-image: none;
    border-width: 1px;
    border-style: solid;
    border-color: #d9d9d9;
    border-radius: 6px;
    transition: all 0.2s;
    background-color: transparent;
    border: none;
    box-shadow: none;
}
@media only screen and (max-width: 575px) {
    .w_dle_textarea {
        font-size: 14px;
    }
    .ref_shang_box {
        bottom: 14rem!important;
        height: 39rem!important;
    }
    #shang_box2 {
        top: 15rem!important;
    }
    #shang_box3 {
        top: 15rem!important;
    }
    .refContainer {
        height: 28rem!important;
    }
}

.w_dle_btn {
    width: 30px;
    border-radius: 4px;
    background-color: #ff4d4f;
    box-shadow: 0 2px 0 rgba(255, 38, 5, 0.06);
    color: #ffffff;
    outline: none;
    position: relative;
    display: inline-block;
    font-weight: 400;
    white-space: nowrap;
    text-align: center;
    background-image: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    user-select: none;
    touch-action: manipulation;
    line-height: 1.5714285714285714;
    box-sizing: border-box;
}
.zyDivContent1 {
    background: rgba(242, 242, 245, .4);
}

.ui-state-default:hover {
    cursor: pointer;
}

.ui-state-default {
    border: 0px solid #c5c5c5 !important;
}

.w_dle_drag {
    background-color: rgba(238, 182, 115, 0.13);
    border-color: #f7941d;
}



.preview_page_title {
    font-size: 26px;
    line-height: 150%;
    margin-bottom: 40px;
    margin-top: 0;
    text-align: center;
}

.preview_page_summary {
    font-size: 20px;
    font-weight: 700;
    margin: 20px 0;
    text-align: center;
}

.preview_page_summary_space {
    font-size: 16px;
    font-weight: 700;
    margin: 10px 0;
}

.preview_page_summary_content {
    font-size: 16px;
    line-height: 32px;
    white-space: pre-line;
    word-break: break-all;
    text-indent: 2em;
}

.preview_page_chapter_title {
    font-size: 20px;
    font-weight: 700;
    margin: 20px 0;
    text-align: center;
}

.preview_page_chapter_content {
    font-size: 16px;
    word-break: break-all;
    line-height: 30px;
}

.result_pay_order {
    bottom: 0;
    left: 0;
    position: absolute;
    width: 100%;
}

.result_pay_order_hide_top {
    background: linear-gradient(180deg, hsla(0, 0%, 100%, 0), #fff);
    height: 150px;
    width: 100%;
}

.result_pay_order_content {
    align-items: center;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
    color: #00ABFF;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    height: 150px;
    justify-content: center;
    width: 100%;
}

.result_pay_order_content_flex {
    align-items: center;
    display: flex;
}

.result_pay_order_nested_loading {
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    font-size: 14px;
    box-sizing: border-box;
}


.result_pay_order_spin_container {
    position: relative;
    transition: opacity 0.3s;
    box-sizing: border-box;
}

.result_pay_order_ant_btn {
    outline: none;
    position: relative;
    display: inline-block;
    font-weight: 400;
    white-space: nowrap;
    text-align: center;
    background-image: none;
    background-color: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    user-select: none;
    touch-action: manipulation;
    line-height: 1.5714285714285714;
    color: rgba(0, 0, 0, 0.88);
}

.result_pay_order_btn {
    align-items: center;
    background-color: #00ABFF;
    background-size: 100%;
    color: #FFFFFF;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    height: 52px;
    justify-content: center;
    margin: 0 auto;
    width: 185px;
    padding: 4px 15px;
    font-size: 14px;
}

.result_pay_order_extra {
    display: flex;
    margin-top: 6px;
}

.result_pay_order_wrapper {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: rgba(0, 0, 0, 0.88);
    font-size: 14px;
    line-height: 1.5714285714285714;
    list-style: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    display: inline-flex;
    align-items: baseline;
    cursor: pointer;
    margin-right: 2rem;
}

.result_pay_order_checkbox {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: rgba(0, 0, 0, 0.88);
    font-size: 14px;
    line-height: 1;
    list-style: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    top: 0.2em;
    position: relative;
    white-space: nowrap;
    cursor: pointer;
}

result_pay_order_checkboxed:after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    visibility: hidden;
    border: 2px solid #00ABFF;
    animation-name: css-1c6ny5m-antCheckboxEffect;
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: backwards;
    content: "";
    transition: all 0.3s;
}

.result_pay_order_checkbox_inner {
    border-color: #00ABFF;
    box-sizing: border-box;
    position: relative;
    top: 0;
    left: 0;
    display: block;
    width: 16px;
    height: 16px;
    direction: ltr;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    border-collapse: separate;
    transition: all 0.3s;
}

.result_pay_order_checkbox_inner_selected {
    background-color: #00ABFF;
}

.result_pay_order_checkbox_inner:after {
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 21.5%;
    display: table;
    width: 5.7142857142857135px;
    height: 9.142857142857142px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    content: "";
    opacity: 1;
    transform: rotate(45deg) scale(1) translate(-50%, -50%);
    transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
}

.result_pay_order_pay_tip {
    align-items: center;
    display: flex;
    margin-top: 8px;
    text-align: center;
}

.result_pay_order_pay_tip_wrapper {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: rgba(0, 0, 0, 0.88);
    font-size: 14px;
    line-height: 1.5714285714285714;
    list-style: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    display: inline-flex;
    align-items: baseline;
    cursor: pointer;
}

.result_pay_order_pay_tip_wrapper_checkbox {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: rgba(0, 0, 0, 0.88);
    font-size: 14px;
    line-height: 1;
    list-style: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    top: 0.2em;
    position: relative;
    white-space: nowrap;
    cursor: pointer;
}

.result_pay_order_pay_tip_wrapper_checkbox_input {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
    box-sizing: border-box;
}

result_pay_order_pay_tip_wrapper_checkbox+span {
    padding-left: 8px;
    padding-right: 8px;
}

.preview_page_chapter_content li {
    padding: 0.5rem;
}

.result_result {
    flex: 1 1;
    overflow: auto;
    padding: 30px 0 0;
}

.result_result_page {
    background-color: #fff;
    margin: 0 auto;
    padding: 20px 10px;
    position: relative;
    width: 100%;
}

.reference_item_content {
    color: #999;
    font-size: 12px;
    margin: 3px 0 0;
    padding: 0 0 0 0;
}

.result_title {
    padding: 10px 11px;
    border-radius: 4px;
    background-color: rgba(17, 17, 17, .05);
    margin-right: 10px;
    margin-bottom: 10px;
    color: rgba(64, 64, 64, .5);
    font-size: 16px;
}

.result_title_tip {
    padding: 10px 11px;
    border-radius: 4px;
    background-color: rgba(17, 17, 17, .05);
    margin-right: 10px;
    margin-bottom: 10px;
    color: rgba(64, 64, 64, .5);
    font-size: 16px;
}

.choose-ref {
    font-size: 14px;
    height: 32px;
    padding: 4px 15px;
    border-radius: 6px;
    outline: none;
    position: relative;
    display: inline-block;
    font-weight: 400;
    white-space: nowrap;
    text-align: center;
    background-image: none;
    background-color: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    user-select: none;
    touch-action: manipulation;
    line-height: 1.5714285714285714;
    color: rgba(0, 0, 0, 0.88);
    background-color: #ffffff;
    border-color: #d9d9d9;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
}
.choose-ref >span {
    display: inline-block;
}
.choose-ref .anticon {
     display: inline-flex;
     align-items: center;
     color: inherit;
     font-style: normal;
     line-height: 0;
     text-align: center;
     text-transform: none;
     vertical-align: -0.125em;
     text-rendering: optimizeLegibility;
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
 }
.choose-ref .anticon svg {
    display: inline-block;
}

.ref-selected {
    background-color: rgba(202, 239, 215, .482);
    border-color: #24be58;
}

.ref-selected-checked {
    color: #17a34b;
    font-size: 24px;
    padding: 0 30px;
}

/* ===== Wizard "是否继续上次订单" 弹窗 ===== */
/* 遮罩样式参考 defense-ppt.css .ppt-global-loading：rgba 浅色背景 + z-index:12000；
   弹窗渲染在 body 最外层，position:fixed 覆盖整页，显示时由 JS 锁 body 滚动 */
/* 弹窗样式：wizard restore 与 文献校验结果弹窗共用同一套视觉风格 */
#wizardRestoreMask,
#verifyRefMask,
#refListMask,
#outlineListMask,
#basicInfoMask {
    position: fixed;
    inset: 0;
    background: rgba(244, 249, 255, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12000;
}

#wizardRestoreMask .wizard-restore-dialog,
#verifyRefMask .wizard-restore-dialog,
#refListMask .wizard-restore-dialog,
#outlineListMask .wizard-restore-dialog,
#basicInfoMask .wizard-restore-dialog {
    background: #ffffff;
    border-radius: 10px;
    padding: 0;
    min-width: 340px;
    max-width: 480px;
    border: 1px solid #f0f0f0;
    /* 三层阴影：白底浮层靠施影层次（而非底色染色）与页面拉开 */
    box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12),
                0 6px 16px 0 rgba(0, 0, 0, 0.08),
                0 9px 28px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    /* 内容区通栏浅灰底，靠 overflow 贴住底部圆角 */
    overflow: hidden;
}

/* 文献校验结果弹窗 / 已选文献列表弹窗 / 大纲预览弹窗单独加宽（wizard restore 弹窗维持原宽度） */
#verifyRefMask .wizard-restore-dialog,
#refListMask .wizard-restore-dialog,
#outlineListMask .wizard-restore-dialog {
    min-width: 720px;
    max-width: 900px;
}

/* 基本信息弹窗：无按钮区，靠标题+键值对撑开，宽度介于默认与加宽弹窗之间 */
#basicInfoMask .wizard-restore-dialog {
    min-width: 560px;
    max-width: 680px;
}

/* 标题栏：左对齐 + 底部实线与内容区分层（右侧留白给关闭按钮） */
#wizardRestoreMask .wizard-restore-title,
#verifyRefMask .wizard-restore-title,
#refListMask .wizard-restore-title,
#outlineListMask .wizard-restore-title,
#basicInfoMask .wizard-restore-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    text-align: left;
    padding: 16px 48px 12px 24px;
    border-bottom: 1px solid #dee2e6;
}

/* 内容区：整体浅灰底通栏，与白色标题栏/按钮区形成背景层次 */
#wizardRestoreMask .wizard-restore-body,
#verifyRefMask .wizard-restore-body,
#refListMask .wizard-restore-body,
#outlineListMask .wizard-restore-body,
#basicInfoMask .wizard-restore-body {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.6;
    background: #f8f9fa;
    padding: 16px 24px;
}

#wizardRestoreMask .wizard-restore-buttons,
#verifyRefMask .wizard-restore-buttons,
#refListMask .wizard-restore-buttons,
#outlineListMask .wizard-restore-buttons,
#basicInfoMask .wizard-restore-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 24px 18px;
}

#wizardRestoreMask .wizard-restore-buttons .btn,
#verifyRefMask .wizard-restore-buttons .btn,
#refListMask .wizard-restore-buttons .btn,
#outlineListMask .wizard-restore-buttons .btn,
#basicInfoMask .wizard-restore-buttons .btn {
    margin: 0 6px;
    min-width: 80px;
}

/* 基本信息弹窗 / 预览目录 / 查看文献：不显示遮罩底色，但虚化弹窗后方背景（毛玻璃效果） */
#basicInfoMask,
#refListMask,
#outlineListMask {
    background: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* 右上角 X 关闭按钮：与 .wizard-restore-dialog 的 position:relative 配合定位 */
.wizard-restore-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 26px;
    height: 26px;
    line-height: 24px;
    text-align: center;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    border-radius: 4px;
    user-select: none;
    font-family: Arial, sans-serif;
}
.wizard-restore-close:hover {
    color: rgba(0, 0, 0, 0.88);
    background: #f5f5f5;
}

/* ===== "一键文献验证" loading 遮罩的转圈动画（参考 defense-ppt.css .ppt-global-loading-spinner） ===== */
/* 颜色写死，不依赖 --ppt-primary / --ppt-border 变量（write 这边未定义） */
.verify-ref-loading-spinner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #d3e6ff;
    border-top-color: #3c618b;
    animation: verify-ref-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes verify-ref-spin {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

/* ===== "一键文献验证" 按钮抖动提示 ===== */
/* 自包含动画：duration/animation-name 全部写死在一个 class 里，
   不依赖 animate.css / plugins/animation.css 的加载链路。
   连续触发靠 JS 端 removeClass + 强制 reflow（读 offsetWidth）+ addClass 重新播放。 */
.verify-ref-shake {
    animation: verify-ref-shake 2s ease-in-out;
}

@keyframes verify-ref-shake {
    0%   { transform: translateX(0) rotate(0); }
    20%  { transform: translateX(-8px) rotate(-4deg); }
    40%  { transform: translateX(8px) rotate(4deg); }
    60%  { transform: translateX(-6px) rotate(-3deg); }
    80%  { transform: translateX(6px) rotate(3deg); }
    100% { transform: translateX(0) rotate(0); }
}

/* ===== 顶部短提示 toast（与 defense-ppt 同样式，write 这边不引 defense-ppt.css 所以另写一份） ===== */
.write-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #214b79;
    color: #fff;
    padding: 10px 16px;
    border-radius: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10000;
    font-size: 13px;
}

.write-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===== "自定义" 文献标签（仅 prependParsedReferences 渲染的 local- 文献条目有） ===== */
/* 黄色描边圆圈 + 黄色"导"字，背景透明 */
.ref-custom-tag {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #f0a500;
    color: #f0a500;
    font-size: 11px;
    font-weight: bold;
    margin-left: 6px;
    vertical-align: middle;
    margin-bottom: 4px;
    box-sizing: border-box;
}

/* ===== "开题报告传入" 文献标签：绿色描边圆圈 + 绿色"传"字，背景透明 ===== */
.ref-upload-tag {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #2e8b57;
    color: #2e8b57;
    font-size: 11px;
    font-weight: bold;
    margin-left: 6px;
    vertical-align: middle;
    margin-bottom: 4px;
    box-sizing: border-box;
}

/* ===== 文献语言标签：红色"中" / 蓝色"英"，圆形样式与"导"字一致 ===== */
/* 边框颜色用 currentColor，跟随文字颜色 */
.ref-lang-tag {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid currentColor;
    font-size: 11px;
    font-weight: bold;
    margin-left: 6px;
    vertical-align: middle;
    margin-bottom: 4px;
    box-sizing: border-box;
}

.ref-lang-cn {
    color: #e57373;
}

.ref-lang-en {
    color: #1976d2;
}

/* ===== 章节标题后状态标签：圆形描边，与"传"/"中"等文献标签同款 ===== */
/* "改"标签：绿色描边 + 绿字（章节要求输入框内容被改动、不再是默认值时显示） */
.chapter-modified-tag {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #2e8b57;
    color: #2e8b57;
    font-size: 11px;
    font-weight: bold;
    margin-left: 6px;
    vertical-align: middle;
    margin-bottom: 4px;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* "引"标签：红色描边 + 红字（章节勾选了引用文献时显示） */
.chapter-ref-tag {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #e57373;
    color: #e57373;
    font-size: 11px;
    font-weight: bold;
    margin-left: 6px;
    vertical-align: middle;
    margin-bottom: 4px;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* step3 大纲/附录 标签栏 */
.outline-tab-bar {
    display: flex;
    border-bottom: 1px solid #e8e8e8;
    padding-left: 10px;
    margin-bottom: 20px;
}

.outline-tab {
    padding: 8px 28px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    user-select: none;
    transition: color .2s;
}

.outline-tab:hover {
    color: #e55981;
}

.outline-tab.active {
    color: #EA7A9A;
    font-weight: bold;
}

.outline-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #EA7A9A;
}

/* 附录标签右上角的条数徽标：红底白字圆点，显示标题非空的附录行数 */
.outline-tab-badge {
    display: none;
    position: absolute;
    top: 1px;
    right: 10px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #f5222d;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    box-sizing: border-box;
}

.outline-tab-badge.show {
    display: inline-block;
}

/* 标签栏中间的文献条数计数：占满 tabs 与右侧按钮之间的剩余空间并居中显示 */
.outline-ref-count {
    flex: 1;
    text-align: center;
    align-self: center;
    font-size: 14px;
    color: #666;
}

/* 标签栏右侧操作按钮区（查看大纲/查看已选文献） */
.outline-tab-actions {
    margin-left: auto;
    align-self: center;
    display: flex;
    align-items: center;
    padding-right: 10px;
}

/* 移动端：标签栏一行放不下（tabs + 文献计数 + 双按钮），改为三行堆叠——tabs 平分首行、计数与按钮各占整行 */
@media only screen and (max-width: 767px) {
    .outline-tab-bar {
        flex-wrap: wrap;
        padding-left: 0;
    }

    .outline-tab {
        flex: 1;
        padding: 8px 10px;
        text-align: center;
    }

    .outline-ref-count {
        flex-basis: 100%;
        font-size: 13px;
        padding: 4px 10px 6px;
        text-align: left;
    }

    .outline-tab-actions {
        flex-basis: 100%;
        margin-left: 0;
        padding: 0 0 10px;
    }

    .outline-tab-actions .btn {
        flex: 1;
    }
}

/* step3 附录面板（极简文档风） */
.appendix-tree {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.appendix-tree-body {
    padding: 10px 12px;
    flex: 1;
    background: #fafafa;
}

.appendix-node {
    margin: 3px 0;
}

.appendix-node-card {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    background: #fff;
    padding: 5px 8px;
    transition: border-color .2s;
}

.appendix-node-card:hover {
    border-color: #d0d0d0;
}

.appendix-label {
    flex: 0 0 auto;
    min-width: 43px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    letter-spacing: 0;
}

.appendix-content-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.appendix-content-input {
    flex: 1;
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    padding: 4px 9px;
    font-size: 14px;
    background: #fff;
    min-width: 0;
    transition: border-color .2s;
}

.appendix-content-input:focus {
    outline: none;
    border-color: #333;
}

/* 标题输入框：短 */
.appendix-title-input {
    flex: 0 1 18%;
}

/* 要求输入框：长，撑满剩余 */
.appendix-requirement-input {
    flex: 1;
}

/* 触发按钮 + 下拉菜单容器 */
.appendix-feature-dropdown {
    position: relative;
    flex: 0 0 auto;
}

/* 触发按钮：点击展开下拉，仅显示一个"添加内容"图标 */
.appendix-feature-trigger {
    position: relative;
    width: 32px;
    height: 26px;
    padding: 0;
    border: 1px solid #e0c0cd;
    border-radius: 3px;
    background: #fff;
    color: #EA7A9A;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s, color .2s;
}

.appendix-feature-trigger:hover {
    border-color: #EA7A9A;
    background: #fdeef3;
}

/* 已选附录类型：按钮整体填充高亮，单选语义 */
.appendix-feature-trigger.has-value {
    background: #EA7A9A;
    border-color: #EA7A9A;
    color: #fff;
}

.appendix-feature-trigger.has-value:hover {
    background: #e25588;
    border-color: #e25588;
}

/* 下拉菜单：绝对定位到触发按钮下方，右对齐避免溢出 */
.appendix-feature-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 140px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 4px 0;
    z-index: 20;
}

/* 下拉项：图标 + 文案 + 选中圆点 */
.appendix-feature-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.appendix-feature-option:hover {
    background: #fdeef3;
    color: #EA7A9A;
}

.appendix-feature-option > span {
    flex: 1;
}

/* 选中圆点：仅 active 时显示 */
.appendix-feature-check {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    visibility: hidden;
}

.appendix-feature-option.active {
    color: #EA7A9A;
    font-weight: 500;
}

.appendix-feature-option.active .appendix-feature-check {
    background: #EA7A9A;
    visibility: visible;
}

.appendix-node-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: 0 0 auto;
}

.btn-appendix-add,
.btn-appendix-delete {
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s, color .2s;
}

.btn-appendix-add:hover {
    background: #EA7A9A;
    border-color: #EA7A9A;
    color: #fff;
}

.btn-appendix-delete:hover {
    background: #e55981;
    border-color: #e55981;
    color: #fff;
}

/* ============ 第四步 Word 视图预览 ============ */

/* Word 预览模式：隐藏站点左菜单和左上角 logo 容器，主区让位给大纲导航 */
body.outline-preview-mode .deznav,
body.outline-preview-mode .nav-header {
    display: none;
}

body.outline-preview-mode .content-body {
    margin-left: 18.563rem;
}

/* 中屏档位跟随 .deznav/.content-body 的常规缩窄 */
@media only screen and (min-width: 1200px) and (max-width: 1400px) {
    body.outline-preview-mode .content-body {
        margin-left: 17rem;
    }
}

/* 栅格内边距也让位：纸张区横向铺满 content-body（Bootstrap container/row/col 各 15px 互相抵消后仍剩 col 内边距），
   顶部 15px（style.css .content-body .container-fluid）一并取消让纸张贴顶 */
body.outline-preview-mode .content-body > .container-fluid {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}

body.outline-preview-mode .content-body > .container-fluid > .row {
    margin-left: 0;
    margin-right: 0;
}

body.outline-preview-mode .content-body > .container-fluid > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

/* Word 视图去容器化 + 解除高度约束（主题 .card 的 height:calc(100%-30px) 会让 .result_result 出滚动条）：
   外层白卡（.card/fieldset/.result_result_page）去掉底色、圆角、阴影、内边距，宽度全让给纸张区，
   观感上只剩 #paperScrollArea 一层容器；内容直接撑开由最外层页面滚动条接管 */
body.outline-preview-mode .card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    height: auto;
}

body.outline-preview-mode .card-body {
    padding: 0;
}

body.outline-preview-mode #msform fieldset {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

body.outline-preview-mode .result_result_page {
    background: transparent;
    padding: 0;
}

body.outline-preview-mode .result_result {
    overflow: visible;
    padding: 0;
}

/* 隐藏原文本预览的"题目：xxx"行/摘要/大纲区（底部支付区保留） */
body.outline-preview-mode .result_title,
body.outline-preview-mode .result_result_page > .preview_page_title,
body.outline-preview-mode .allSummary,
body.outline-preview-mode .allOutlineItemDiv {
    display: none !important;
}

/* Word 视图容器：左侧大纲导航 + 中间 A4 纸张 */
#wordPreviewWrap {
    display: none;
}

body.outline-preview-mode #wordPreviewWrap {
    display: flex;
    align-items: stretch;
    /* 纸张区顶部紧贴通栏顶栏（.header）底边，不留背景色横条 */
    margin-bottom: 2rem;
    text-align: left;
}

/* 左侧大纲导航窗格：fixed 钉在页面最左侧、顶端与右上菜单栏齐平（logo 容器已随预览模式隐藏）；
   z-index 高于顶栏（.header 的 99）避免顶部被顶栏白底盖住；宽度对齐 .deznav（18.563rem，1200-1400px 屏 17rem），视觉同弹窗黑白简约风 */
#outlineNav {
    background: #fff;
    border-right: 1px solid #f0f0f0;
    bottom: 0;
    box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12),
                0 6px 16px 0 rgba(0, 0, 0, 0.08),
                0 9px 28px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    left: 0;
    position: fixed;
    top: 0;
    width: 18.563rem;
    z-index: 100;
}

@media only screen and (min-width: 1200px) and (max-width: 1400px) {
    #outlineNav {
        width: 17rem;
    }
}

/* 移动端（窄屏）：目录导航改成抽屉——默认滑出屏幕外，点悬浮按钮展开，点遮罩/缩略图收回；
   宽度改 80vw，content-body 不再预留左边距，纸张区占满全宽 */
@media only screen and (max-width: 960px) {
    body.outline-preview-mode .content-body {
        margin-left: 0;
    }

    #outlineNav {
        max-width: 320px;
        transform: translateX(-100%);
        transition: transform .25s ease;
        width: 80vw;
        z-index: 1001;
    }

    #outlineNav.open {
        transform: translateX(0);
    }

    body.outline-preview-mode #outlineNavToggle {
        display: inline-flex;
    }

    body.outline-preview-mode #outlineNavBackdrop.show {
        display: block;
    }
}

/* 抽屉悬挂 tab：固定在屏幕左上角、一半探出屏幕左缘（translateX(-50%) 只露右半边），
   文字钉在右半边不被切；默认隐藏，仅预览模式 + 窄屏显示 */
#outlineNavToggle {
    align-items: center;
    background: #3c618b;
    border: none;
    border-radius: 0 19px 19px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: #fff;
    cursor: pointer;
    display: none;
    font-size: 14px;
    height: 38px;
    justify-content: flex-end;
    left: 0;
    padding-right: 12px;
    position: fixed;
    top: 0;
    transform: translateX(-50%);
    width: 84px;
    z-index: 1002;
}

/* 抽屉展开时的半透明遮罩：盖住纸张区，点击收回 */
#outlineNavBackdrop {
    background: rgba(0, 0, 0, 0.35);
    bottom: 0;
    display: none;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
}

/* tab 栏：目录/缩略图 平级切换，配色同弹窗蓝白风；固定 4rem 高，tab 用 flex 垂直居中适配 */
#outlineNav .outlineNavTabs {
    border-bottom: 1px solid #dee2e6;
    display: flex;
    height: 4rem;
}

#outlineNav .outlineNavTab {
    align-items: center;
    box-sizing: border-box;
    color: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    display: flex;
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    height: 100%;
    justify-content: center;
    text-align: center;
    user-select: none;
}

#outlineNav .outlineNavTab.active {
    border-bottom: 2px solid #3c618b;
    color: #3c618b;
}

/* 树内容区：视觉同弹窗 .wizard-restore-body 的浅灰底通栏 */
#outlineNav .outlineNavTree {
    background: #f8f9fa;
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.outlineNavTree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.outlineNavTree li {
    color: rgba(0, 0, 0, 0.65);
    cursor: default;
    font-size: 13px;
    line-height: 1.9;
    overflow: hidden;
    padding: 0 12px 0 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 渲染结构是平铺的（子 ul 与 li 同级，非嵌套），按 ul 嵌套深度区分层级缩进 */
.outlineNavTree ul ul li {
    padding-left: calc(24px + 1em);
}

.outlineNavTree ul ul ul li {
    padding-left: calc(24px + 2em);
}

/* 缩略图窗格：默认隐藏，切 tab 由 JS 显示；布局同 .outlineNavTree（浅灰底通栏 + 自滚动） */
#outlineNav .outlineThumbList {
    background: #f8f9fa;
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px;
}

/* 单页缩略图：白纸小图 + 页码，点击跳转右侧纸张对应页；描边反馈同蓝白风 */
.outlineThumbItem {
    cursor: pointer;
    margin-bottom: 14px;
}

.outlineThumbItem .outlineThumbImg {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.outlineThumbItem img {
    display: block;
    width: 100%;
}

.outlineThumbItem .outlineThumbLabel {
    color: rgba(0, 0, 0, 0.45);
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
}

.outlineThumbItem:hover .outlineThumbImg {
    border-color: #d3e6ff;
}

.outlineThumbItem.active .outlineThumbImg {
    border-color: #3c618b;
}

.outlineThumbItem.active .outlineThumbLabel {
    color: #3c618b;
}

/* 缩略图空态提示（模板未出图时切到缩略图 tab） */
.outlineThumbEmpty {
    color: rgba(0, 0, 0, 0.45);
    font-size: 13px;
    padding: 24px 0;
    text-align: center;
}

/* 中间纸张滚动区（仿 Word 灰色画布）：高度直接按 95vh 截断 */
#paperScrollArea {
    background: #e8eaed;
    border-radius: 6px;
    flex: 1;
    height: 95vh;
    max-height: 95vh;
    min-width: 0;
    overflow-y: auto;
    padding: 24px 16px;
    position: relative;
}

#paperScrollArea .a4page {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    margin: 0 auto 24px;
    max-width: 794px;
    width: 100%;
}

#paperScrollArea .a4page img {
    display: block;
    width: 100%;
}

/* 纸张区 loading 遮罩：默认隐藏，显示由 class 控制（不用 jQuery .show()，避免 display:block 覆盖 flex） */
#paperPagesLoader {
    display: none;
}

/* 遮罩：绝对定位只盖内容页纸张区，持续到完整版（含摘要）出图才揭开；
   视觉同 defense-ppt.css .ppt-global-loading（颜色写死，同 .verify-ref-loading-spinner） */
#paperPagesLoader.paper-pages-mask {
    align-items: center;
    background: rgba(244, 249, 255, 0.88);
    border-radius: 6px;
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 5;
}

.paperPagesMaskCard {
    align-items: center;
    background: #fff;
    border: 1px solid #d3e6ff;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(96, 150, 210, 0.22);
    color: #3c618b;
    display: flex;
    font-weight: 700;
    gap: 12px;
    padding: 14px 18px;
}

.paperPagesMaskSpinner {
    animation: paper-pages-spin 0.8s linear infinite;
    border: 3px solid #d3e6ff;
    border-radius: 50%;
    border-top-color: #3c618b;
    flex-shrink: 0;
    height: 22px;
    width: 22px;
}

@keyframes paper-pages-spin {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

/* 纸张区/大纲导航树/缩略图列表滚动条：细条无箭头，灰色常规配色（页面其余滚动条不动） */
#paperScrollArea,
#outlineNav .outlineNavTree,
#outlineNav .outlineThumbList {
    scrollbar-color: #c1c1c1 transparent;
    scrollbar-width: thin;
}

#paperScrollArea::-webkit-scrollbar,
#outlineNav .outlineNavTree::-webkit-scrollbar,
#outlineNav .outlineThumbList::-webkit-scrollbar {
    height: 5px;
    width: 5px;
}

/* 去掉上下两端的三角形箭头按钮 */
#paperScrollArea::-webkit-scrollbar-button,
#outlineNav .outlineNavTree::-webkit-scrollbar-button,
#outlineNav .outlineThumbList::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

#paperScrollArea::-webkit-scrollbar-track,
#outlineNav .outlineNavTree::-webkit-scrollbar-track,
#outlineNav .outlineThumbList::-webkit-scrollbar-track {
    background: transparent;
}

#paperScrollArea::-webkit-scrollbar-thumb,
#outlineNav .outlineNavTree::-webkit-scrollbar-thumb,
#outlineNav .outlineThumbList::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 0;
}

#paperScrollArea::-webkit-scrollbar-thumb:hover,
#outlineNav .outlineNavTree::-webkit-scrollbar-thumb:hover,
#outlineNav .outlineThumbList::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ============ 第一步 开题报告上传进度条 ============ */

/* 容器在 .upload-report-container（纵向 flex）内通栏伸展，默认隐藏由 JS 显示 */
.upload-progress {
    align-self: stretch;
    display: none;
    margin-top: 10px;
}

.upload-progress-info {
    display: flex;
    font-size: 13px;
    color: #666;
    justify-content: space-between;
    margin-bottom: 5px;
}

.upload-progress-percent {
    color: #409EFF;
    font-weight: 600;
}

.upload-progress-track {
    background: #e8f1ff;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.upload-progress-bar {
    background: linear-gradient(90deg, #409EFF, #79bbff);
    border-radius: 4px;
    height: 100%;
    transition: width .35s ease;
    width: 0;
}

