/* 扫描 PDF 翻译 — 与 gaojidoc / docstext 风格对齐 */

.doc-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.doc-tab {
    text-decoration: none;
    padding: 6px 25px;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    background: #fff;
    transition: all .2s;
}
.doc-tab:hover { color: #1a73e8; background: #edf4ff; }
.doc-tab.is-active { color: #fff; background: #1a73e8; pointer-events: none; }

#pdfscan-page .gp-login-tip {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 4px;
    font-size: 13px;
    color: #64748b;
}
#pdfscan-page .gp-login-tip a {
    color: #1a73e8;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #1a73e8;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    transition: all .15s;
}
#pdfscan-page .gp-login-tip a:hover {
    background: #1a73e8;
    color: #fff;
}

#pdfscan-page .doc-body { padding: 0 18px 18px; }
#pdfscan-page .doc-main-area {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
#pdfscan-page .doc-main-area.has-active-task .doc-dropzone {
    min-height: 140px;
}
#pdfscan-page .doc-main-area.has-active-task .doc-drop-main {
    font-size: 13px;
}
#pdfscan-page .doc-dropzone {
    border: 1px dashed #bdd4fb;
    background: #f7fbff;
    border-radius: 12px;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    cursor: pointer;
    margin-bottom: 0;
    padding: 12px;
    position: relative;
    transition: border-color .25s, background .25s;
}
#pdfscan-page .doc-dropzone.is-dragover {
    border-color: #3b82f6;
    background: #eef5ff;
}
#pdfscan-page .doc-drop-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
#pdfscan-page .doc-drop-icon svg { width: 24px; height: 24px; }
#pdfscan-page .doc-drop-main { margin: 0 0 4px; color: #1f2937; font-size: 14px; }
#pdfscan-page .doc-drop-main .pdfscan-pick-link { color: #1a73e8; text-decoration: underline; }
#pdfscan-page .doc-drop-hint { margin: 0; color: #64748b; font-size: 12px; line-height: 1.6; }
#pdfscan-page .doc-drop-hint .lang-label { color: #0ab990; font-weight: 600; }
#pdfscan-page .doc-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
#pdfscan-page .doc-download-bar { display: none; margin-top: 0; }
#pdfscan-page .doc-download-bar .btn-download {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid #16a34a;
    background: #16a34a;
    color: #fff;
    text-decoration: none;
    box-sizing: border-box;
    transition: background .2s, border-color .2s;
}
#pdfscan-page .doc-download-bar .btn-download:hover {
    background: #15803d;
    border-color: #15803d;
}
#pdfscan-page .doc-info-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #f8fafd;
    border: 1px solid #e6edf8;
    border-radius: 10px;
    font-size: 13px;
}
#pdfscan-page .doc-info-bar a {
    color: #1a73e8;
    text-decoration: none;
}
#pdfscan-page .doc-info-bar a:hover {
    text-decoration: underline;
}
#pdfscan-page .doc-token-info { color: #555; }
#pdfscan-page .doc-token-info strong { color: #1a73e8; font-size: 15px; }
#pdfscan-page .doc-token-info .token-cost { color: #e74c3c; font-size: 12px; }
#pdfscan-page .doc-uploaded-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid #e6edf8;
    border-radius: 12px;
    background: #f8fafd;
    padding: 14px 16px;
    text-align: center;
}
#pdfscan-page .doc-uploaded-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #1f2937;
}
#pdfscan-page .doc-uploaded-icon { font-size: 20px; flex-shrink: 0; }
#pdfscan-page .doc-uploaded-name { font-weight: 600; word-break: break-all; }
#pdfscan-page .doc-uploaded-size { color: #6b7280; font-size: 12px; white-space: nowrap; }
#pdfscan-page .pdfscan-action-row {
    border-top: 0;
    background: transparent;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}
#pdfscan-page .btn-main {
    background: #1a73e8;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 32px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: filter .2s;
}
#pdfscan-page .btn-main:hover { filter: brightness(1.05); }
#pdfscan-page .btn-main:disabled { opacity: .6; cursor: not-allowed; }
#pdfscan-page .btn-main.is-loading { pointer-events: none; }
#pdfscan-page .btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pdfscan-spin .7s linear infinite;
}
#pdfscan-page .btn-main.is-loading .btn-spinner { display: inline-block; }
#pdfscan-page .pdfscan-status-bar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e6edf8;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef5ff 0%, #f8faff 100%);
}
#pdfscan-page .pdfscan-status-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #dce5fb;
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: pdfscan-spin .8s linear infinite;
    flex-shrink: 0;
    margin-top: 2px;
}
#pdfscan-page .pdfscan-status-main { flex: 1; min-width: 0; }
#pdfscan-page .pdfscan-status-text { display: block; font-size: 14px; color: #475569; margin-bottom: 8px; }
#pdfscan-page .pdfscan-progress-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
#pdfscan-page .pdfscan-progress-inner {
    display: block;
    height: 100%;
    background: #1a73e8;
    width: 0;
    transition: width .3s;
}
#pdfscan-page .doc-tips {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.7;
}
#pdfscan-page .doc-tips a { color: #1a73e8; }
@keyframes pdfscan-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
