.pdf2ofd-page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: #f6f7fb;
}

.pdf2ofd-page.is-dragover .pdf2ofd-import-box {
    outline: 3px dashed rgba(121, 181, 74, 0.45);
    outline-offset: 8px;
}

.pdf2ofd-hero {
    border: 1px solid #c8d8ee;
    border-left: none;
    border-right: none;
    background: #f8fafc;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf2ofd-hero__slogan {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    color: #111111;
    letter-spacing: 1px;
}

.pdf2ofd-main {
    flex: 1 1 auto;
    border-left: 1px solid #c8d8ee;
    border-right: 1px solid #c8d8ee;
    background: #f6f7fb;
}

/* =========================
   导入页：压缩到一屏显示
   ========================= */

.pdf2ofd-main--import {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 430px;
}

.pdf2ofd-main__inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 36px 16px;
}

.pdf2ofd-import-box {
    width: 100%;
    max-width: 1040px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pdf2ofd-import-box__title {
    margin: 0 0 28px;
    font-size: 52px;
    line-height: 1.15;
    font-weight: 700;
    color: #000000;
    text-align: center;
}

.pdf2ofd-import-box__actions {
    margin-bottom: 24px;
}

.pdf2ofd-big-upload-btn {
    width: 360px;
    height: 76px;
    border: none;
    border-radius: 12px;
    background: #79b54a;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.pdf2ofd-big-upload-btn:hover {
    background: #6ea541;
}

.pdf2ofd-big-upload-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.pdf2ofd-import-box__tip {
    font-size: 16px;
    line-height: 1.6;
    color: #2e2e2e;
    text-align: center;
}

.pdf2ofd-message {
    margin-top: 10px;
    min-height: 22px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    color: #d93025;
}

.pdf2ofd-message.is-success {
    color: #2f7d32;
}

.pdf2ofd-message.is-error {
    color: #d93025;
}

/* =========================
   操作步骤区：整体压缩
   ========================= */

.pdf2ofd-steps-panel {
    border: 1px solid #c8d8ee;
    background: #ffffff;
    min-height: 168px;
    padding: 18px 30px 16px;
}

.pdf2ofd-steps-panel__title {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;
    color: #111111;
}

.pdf2ofd-steps-panel__list {
    margin: 0;
    padding-left: 24px;
    font-size: 13px;
    line-height: 1.65;
    color: #1e1e1e;
}

.pdf2ofd-steps-panel__list li {
    margin-bottom: 0;
}

/* =========================
   处理页：少量发票时一屏显示
   ========================= */

.pdf2ofd-main--process {
    min-height: 430px;
    padding: 18px 30px 18px;
}

.pdf2ofd-process-layout {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.pdf2ofd-process-main {
    flex: 1 1 auto;
    min-width: 0;
}

.pdf2ofd-process-summary {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: #111111;
}

.pdf2ofd-process-table-wrap {
    width: 100%;
    max-height: 330px;
    overflow-x: auto;
    overflow-y: auto;
}

.pdf2ofd-process-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: transparent;
}

.pdf2ofd-process-table th,
.pdf2ofd-process-table td {
    padding: 5px 8px;
    font-size: 14px;
    line-height: 1.45;
    color: #111111;
    border: none;
    text-align: center;
    vertical-align: middle;
}

.pdf2ofd-process-table th {
    font-weight: 700;
}

.pdf2ofd-process-table__name {
    text-align: left !important;
    word-break: break-all;
}

.pdf2ofd-process-table__radio {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.pdf2ofd-process-row {
    cursor: pointer;
    transition: background 0.2s ease;
}

.pdf2ofd-process-row:hover {
    background: #f7fbf7;
}

.pdf2ofd-process-row.is-selected {
    background: #eef8ec;
}

.pdf2ofd-empty-state {
    padding: 24px 0;
    font-size: 14px;
    color: #555555;
    text-align: center;
}

.pdf2ofd-process-footer {
    margin-top: 8px;
}

.pdf2ofd-process-side {
    width: 128px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.pdf2ofd-side-btn {
    width: 100%;
    height: 36px;
    border: none;
    border-radius: 14px;
    background: #c8e4c5;
    color: #1d1d1d;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.pdf2ofd-side-btn:hover {
    background: #b8d8b5;
}

.pdf2ofd-side-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.pdf2ofd-start-btn {
    width: 128px;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: #79b54a;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.pdf2ofd-start-btn:hover {
    background: #6ea541;
}

.pdf2ofd-start-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

/* =========================
   结果页：压缩到一屏显示
   ========================= */

.pdf2ofd-main--result {
    min-height: 430px;
    padding: 20px 34px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf2ofd-result-box {
    width: 100%;
    max-width: 980px;
    text-align: center;
}

.pdf2ofd-result-box__success-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}

.pdf2ofd-result-box__title {
    font-size: 52px;
    line-height: 1.15;
    font-weight: 700;
    color: #79b54a;
}

.pdf2ofd-result-box__icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1fd11f;
    color: #ffffff;
    border: 3px solid #111111;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.pdf2ofd-result-box__desc {
    margin-bottom: 10px;
    font-size: 21px;
    line-height: 1.55;
    color: #111111;
}

.pdf2ofd-result-box__filename {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.55;
    color: #111111;
    word-break: break-all;
}

.pdf2ofd-result-box__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin-bottom: 14px;
}

.pdf2ofd-result-main-btn {
    min-width: 250px;
    height: 66px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #79b54a;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.pdf2ofd-result-main-btn:hover {
    background: #6ea541;
    color: #ffffff;
    text-decoration: none;
}

.pdf2ofd-result-main-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.pdf2ofd-result-box__expire {
    font-size: 17px;
    line-height: 1.5;
    color: #111111;
}

.pdf2ofd-result-box__expire-warn {
    color: #f15a24;
    font-weight: 700;
    margin-right: 6px;
}

.pdf2ofd-result-box__delete-link {
    margin-left: 12px;
    border: none;
    background: transparent;
    color: #111111;
    font-size: 17px;
    line-height: 1.5;
    cursor: pointer;
}

.pdf2ofd-result-box__delete-link:hover {
    text-decoration: underline;
}

.pdf2ofd-result-box__delete-link:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    text-decoration: none;
}

.tool-hidden-input {
    display: none !important;
}

/* =========================
   响应式
   ========================= */

@media (max-width: 1500px) {
    .pdf2ofd-hero {
        min-height: 56px;
    }

    .pdf2ofd-hero__slogan {
        font-size: 22px;
    }

    .pdf2ofd-main--import,
    .pdf2ofd-main--process,
    .pdf2ofd-main--result {
        min-height: 390px;
    }

    .pdf2ofd-import-box {
        min-height: 320px;
    }

    .pdf2ofd-import-box__title {
        font-size: 44px;
        margin-bottom: 24px;
    }

    .pdf2ofd-big-upload-btn {
        width: 320px;
        height: 68px;
        font-size: 26px;
    }

    .pdf2ofd-result-box__title {
        font-size: 44px;
    }

    .pdf2ofd-result-box__desc {
        font-size: 19px;
    }

    .pdf2ofd-result-main-btn {
        min-width: 230px;
        height: 60px;
        font-size: 22px;
    }

    .pdf2ofd-steps-panel {
        min-height: 150px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .pdf2ofd-steps-panel__list {
        line-height: 1.55;
    }
}

@media (max-width: 1200px) {
    .pdf2ofd-hero__slogan {
        font-size: 21px;
    }

    .pdf2ofd-main__inner,
    .pdf2ofd-main--process,
    .pdf2ofd-main--result {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pdf2ofd-import-box__title {
        font-size: 36px;
    }

    .pdf2ofd-process-layout {
        flex-direction: column;
        gap: 14px;
    }

    .pdf2ofd-process-side {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .pdf2ofd-side-btn,
    .pdf2ofd-start-btn {
        width: auto;
        min-width: 112px;
    }

    .pdf2ofd-result-box__actions {
        flex-direction: row;
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .pdf2ofd-hero {
        min-height: 52px;
    }

    .pdf2ofd-hero__slogan {
        font-size: 18px;
    }

    .pdf2ofd-main--import,
    .pdf2ofd-main--process,
    .pdf2ofd-main--result {
        min-height: auto;
    }

    .pdf2ofd-main__inner {
        padding: 18px 16px 14px;
    }

    .pdf2ofd-import-box {
        min-height: 300px;
    }

    .pdf2ofd-import-box__title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .pdf2ofd-big-upload-btn {
        width: 240px;
        height: 62px;
        font-size: 22px;
    }

    .pdf2ofd-process-table th,
    .pdf2ofd-process-table td {
        font-size: 13px;
        padding: 5px 6px;
    }

    .pdf2ofd-result-box__success-line {
        gap: 10px;
    }

    .pdf2ofd-result-box__title {
        font-size: 30px;
    }

    .pdf2ofd-result-box__icon {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .pdf2ofd-result-box__desc,
    .pdf2ofd-result-box__expire,
    .pdf2ofd-result-box__delete-link {
        font-size: 15px;
    }

    .pdf2ofd-result-box__actions {
        flex-direction: column;
        gap: 12px;
    }

    .pdf2ofd-result-main-btn {
        min-width: 220px;
        height: 58px;
        font-size: 20px;
    }

    .pdf2ofd-steps-panel {
        min-height: auto;
        padding: 14px 18px;
    }

    .pdf2ofd-steps-panel__title {
        font-size: 17px;
    }

    .pdf2ofd-steps-panel__list {
        font-size: 12px;
        line-height: 1.55;
    }
}