: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: 0px;
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.4);
    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;
}


/* 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;
}

