/* ========================================================
   PDF 去水印 / PDF Watermark Remover  - 全局样式
   模仿 lightpdf.cn 的 SaaS 落地页风格
   ======================================================== */

/* ============ Hero 区 ============ */
.pdw-hero {
    position: relative;
    padding: 56px 0 72px;
    overflow: hidden;
    background: linear-gradient(135deg, #1d4ed8 0%, #206bc4 45%, #7e3af2 100%);
    color: #fff;
}
.pdw-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 30%, rgba(255,255,255,.16) 0, transparent 36%),
        radial-gradient(circle at 82% 70%, rgba(255,255,255,.12) 0, transparent 32%),
        radial-gradient(circle at 50% 110%, rgba(255,255,255,.08) 0, transparent 50%);
    pointer-events: none;
}
.pdw-hero-inner {
    position: relative;
    z-index: 1;
}
.pdw-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}
.pdw-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74,222,128,.7);
    animation: pdw-pulse 2s infinite;
}
@keyframes pdw-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.7); }
    70%  { box-shadow: 0 0 0 12px rgba(74,222,128,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.pdw-hero-title {
    font-size: 44px;
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -.5px;
}
.pdw-hero-subtitle {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,.88);
    margin: 0 0 22px;
}
.pdw-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: rgba(255,255,255,.85);
}
.pdw-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pdw-meta-item svg {
    color: #a7f3d0;
}

.pdw-hero-upload-card {
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 30px 60px rgba(15,23,42,.28);
    color: #1e293b;
}
@media (max-width: 991.98px) {
    .pdw-hero { padding: 32px 0 40px; }
    .pdw-hero-title { font-size: 30px; }
    .pdw-hero-subtitle { font-size: 14px; }
}

/* ============ 上传卡片（Hero 中） ============ */
.pdw-upload-card {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .25s;
    background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
}
.pdw-upload-card:hover,
.pdw-upload-card.dragover {
    border-color: #206bc4;
    background: linear-gradient(180deg, #f0f7ff 0%, #e0eaff 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(32,107,196,.15);
}
.pdw-upload-icon-wrap {
    width: 88px;
    height: 88px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0eaff 0%, #f0f7ff 100%);
    border-radius: 50%;
    color: #206bc4;
}
.pdw-upload-card .icon-upload {
    color: #206bc4;
}
.pdw-upload-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 6px;
}
.pdw-upload-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px;
}
.pdw-upload-btn {
    padding: 8px 22px;
    border-radius: 999px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============ Section 通用 ============ */
.pdw-section {
    padding: 64px 0;
}
.pdw-section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
}
.pdw-section-title {
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    letter-spacing: -.3px;
}
.pdw-section-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}
@media (max-width: 767.98px) {
    .pdw-section { padding: 40px 0; }
    .pdw-section-title { font-size: 22px; }
}

/* ============ Steps ============ */
.pdw-section-steps {
    background: #f8fafc;
}
.pdw-step-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px 28px;
    box-shadow: 0 4px 16px rgba(15,23,42,.06);
    text-align: center;
    height: 100%;
    transition: transform .25s, box-shadow .25s;
}
.pdw-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15,23,42,.1);
}
.pdw-step-card-featured {
    background: linear-gradient(135deg, #206bc4 0%, #7e3af2 100%);
    color: #fff;
}
.pdw-step-card-featured .pdw-step-title,
.pdw-step-card-featured .pdw-step-desc {
    color: #fff;
}
.pdw-step-card-featured .pdw-step-desc {
    opacity: .9;
}
.pdw-step-num {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #206bc4, #7e3af2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 6px 18px rgba(32,107,196,.35);
}
.pdw-step-card-featured .pdw-step-num {
    background: #fff;
    color: #206bc4;
}
.pdw-step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    background: #eff6ff;
    color: #206bc4;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdw-step-card-featured .pdw-step-icon {
    background: rgba(255,255,255,.18);
    color: #fff;
}
.pdw-step-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #0f172a;
}
.pdw-step-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ============ Features ============ */
.pdw-feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 16px rgba(15,23,42,.06);
    height: 100%;
    transition: transform .25s, box-shadow .25s;
    border: 1px solid #f1f5f9;
}
.pdw-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(15,23,42,.12);
}
.pdw-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #fff;
}
.pdw-feature-icon-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.pdw-feature-icon-2 { background: linear-gradient(135deg, #06b6d4, #0ea5e9); }
.pdw-feature-icon-3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.pdw-feature-icon-4 { background: linear-gradient(135deg, #10b981, #22c55e); }
.pdw-feature-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #0f172a;
}
.pdw-feature-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* ============ Use Cases ============ */
.pdw-section-cases {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.pdw-case-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 14px rgba(15,23,42,.05);
    border: 1px solid #f1f5f9;
    transition: all .25s;
}
.pdw-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15,23,42,.1);
}
.pdw-case-illu {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.pdw-case-illu-1 { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.pdw-case-illu-2 { background: linear-gradient(135deg, #047857, #10b981); }
.pdw-case-illu-3 { background: linear-gradient(135deg, #b45309, #f59e0b); }
.pdw-case-illu-4 { background: linear-gradient(135deg, #be185d, #ec4899); }
.pdw-case-title {
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 8px;
}
.pdw-case-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* ============ FAQ ============ */
.pdw-section-faq {
    background: #fff;
}
.pdw-faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pdw-faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: all .25s;
}
.pdw-faq-item[open] {
    box-shadow: 0 8px 24px rgba(15,23,42,.08);
    border-color: #cbd5e1;
}
.pdw-faq-q {
    list-style: none;
    cursor: pointer;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 15.5px;
    color: #0f172a;
    user-select: none;
}
.pdw-faq-q::-webkit-details-marker { display: none; }
.pdw-faq-arrow {
    color: #206bc4;
    transition: transform .25s;
    flex-shrink: 0;
    margin-left: 12px;
}
.pdw-faq-item[open] .pdw-faq-arrow {
    transform: rotate(180deg);
}
.pdw-faq-a {
    padding: 0 24px 20px;
    color: #475569;
    font-size: 14px;
    line-height: 1.75;
}

/* ============ CTA Section ============ */
.pdw-cta-section {
    padding: 0 0 64px;
}
.pdw-cta-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: #fff;
    border-radius: 22px;
    padding: 38px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 24px 48px rgba(15,23,42,.18);
}
.pdw-cta-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}
.pdw-cta-desc {
    font-size: 14px;
    color: rgba(255,255,255,.8);
    margin: 0;
}
.pdw-cta-btn {
    background: #fff;
    color: #1e293b;
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .25s;
}
.pdw-cta-btn:hover {
    transform: translateY(-2px);
    background: #f1f5f9;
    color: #206bc4;
}

/* ============ Editor 工作区 ============ */
.pdw-editor-section {
    padding: 40px 0 56px;
    background: #f8fafc;
}
.pdw-editor-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(15,23,42,.08);
    overflow: hidden;
}
.pdw-editor-header {
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}
.pdw-editor-header-left {
    display: flex;
    align-items: center;
}
.pdw-page-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.pdw-thumb-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px;
    background: #f1f5f9;
    border-radius: 12px;
    max-height: 600px;
    overflow-y: auto;
}
.pdw-thumb {
    width: 90px;
    height: 116px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    background: #fff;
    transition: all .15s;
    flex-shrink: 0;
}
.pdw-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.pdw-thumb.active {
    border-color: #206bc4;
    box-shadow: 0 0 0 2px rgba(32,107,196,.25);
}
.pdw-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pdw-thumb .page-num {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
}
.pdw-thumb .has-region {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #22c55e;
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
}
/* 命中页：橙色描边 + 左上角标签，与"已框选"的绿色 ✓ 互不干扰 */
.pdw-thumb.hit {
    border-color: #f59e0b;
}
/* 当前页同时是命中页时保留蓝色选中态，改用橙色光圈表达命中 */
.pdw-thumb.hit.active {
    border-color: #206bc4;
    box-shadow: 0 0 0 2px rgba(245,158,11,.35);
}
.pdw-thumb .hit-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #f59e0b;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 8px;
    line-height: 14px;
}

.pdw-canvas-wrap {
    position: relative;
    display: inline-block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
    box-shadow: 0 4px 14px rgba(15,23,42,.06);
}
.pdw-canvas-wrap canvas {
    display: block;
    max-width: 100%;
    height: auto;
}
/* 页面预览图：块级显示，消除行内基线空隙，保证选区坐标对齐 */
.pdw-canvas-wrap img {
    display: block;
    max-width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}
/* 命中标记层：只画"将被移除"的位置，不接收任何鼠标事件，
   否则会盖住下面的选区层导致框选失效 */
#hitMarksLayer {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}
/* 橙色虚线，区别于用户自己画的红色实线选区框 */
.pdw-hit-rect {
    position: absolute;
    border: 2px dashed #f59e0b;
    background: rgba(245,158,11,.22);
    border-radius: 3px;
    pointer-events: none;
}
/* 选区交互层：必须覆盖整张图片，否则鼠标事件落不到层上、无法框选 */
#regionsLayer {
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: crosshair;
}
.pdw-region-rect {
    position: absolute;
    border: 2px solid #ef4444;
    background: rgba(239,68,68,.18);
    cursor: move;
    border-radius: 4px;
}
.pdw-region-rect .del {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    border: 2px solid #fff;
}

.pdw-page-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.pdw-page-info {
    color: #475569;
    font-size: 14px;
}
.pdw-mode-switch {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.pdw-mode-switch button {
    border: none;
    background: #fff;
    padding: 6px 14px;
    cursor: pointer;
    color: #475569;
    font-size: 13px;
    transition: all .2s;
}
.pdw-mode-switch button:hover {
    background: #f1f5f9;
}
.pdw-mode-switch button.active {
    background: linear-gradient(135deg, #206bc4, #7e3af2);
    color: #fff;
}

.pdw-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 12px;
}

.pdw-region-count {
    background: #eff6ff;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #dbeafe;
}

.pdw-step-badge {
    background: linear-gradient(135deg, #206bc4, #7e3af2);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    display: inline-block;
    font-size: 12px;
    margin-right: 8px;
    font-weight: 700;
}

/* 命中页清单：把"会改哪些页"直接列出来，点击可跳转核对 */
.pdw-hit-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    font-size: 13px;
}
.pdw-hit-label {
    font-weight: 600;
    color: #92400e;
}
.pdw-hit-page {
    min-width: 28px;
    height: 26px;
    padding: 0 6px;
    border: 1px solid #fcd34d;
    background: #fff;
    color: #92400e;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}
.pdw-hit-page:hover {
    background: #fef3c7;
}
.pdw-hit-page.current {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
    font-weight: 600;
}
.pdw-hit-more,
.pdw-hit-legend {
    color: #92400e;
    font-size: 12px;
}
.pdw-hit-legend {
    margin-left: auto;
}
.pdw-helper-tip {
    background: #f8fafc;
    border-left: 3px solid #206bc4;
    padding: 12px 16px;
    margin-bottom: 14px;
    color: #475569;
    font-size: 13px;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pdw-helper-tip svg {
    flex-shrink: 0;
    color: #206bc4;
}
.pdw-helper-tip strong { color: #0f172a; }

/* 价格区 */
.pdw-price-box {
    margin-top: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.pdw-price-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pdw-price-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 4px;
}
.pdw-price-currency {
    font-size: 18px;
    color: #206bc4;
    font-weight: 600;
}
.pdw-price-value {
    font-size: 30px;
    color: #206bc4;
    font-weight: 800;
    letter-spacing: -.5px;
}
.pdw-price-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pdw-submit-btn {
    padding: 10px 26px;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #206bc4 0%, #7e3af2 100%);
    border: none;
}
.pdw-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(32,107,196,.35);
}

/* ===== 底部吸底提交条 =====
   费用预览 + 提交按钮常驻视口底部，避免整页渲染图把按钮顶出屏幕需要来回滚动。
   仅在 .pdw-price-dock 上生效（去水印页），压缩页等同款 .pdw-price-box 不受影响。 */
.pdw-price-box.pdw-price-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    margin-top: 0;
    padding: 12px 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .12);
}
.pdw-price-dock .pdw-price-dock-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    flex-wrap: wrap;
}
/* 吸底时改为横排，把标题/金额/明细压成一行，控制整条高度 */
.pdw-price-dock .pdw-price-left {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    min-width: 0;
}
.pdw-price-dock .pdw-price-left strong { font-size: 15px; }
.pdw-price-dock .pdw-price-main { margin-top: 0; }
.pdw-price-dock .pdw-price-value { font-size: 26px; }
.pdw-price-dock .pdw-price-left .small { margin-top: 0 !important; }
.pdw-price-dock .pdw-price-right { margin-left: auto; }

@media (max-width: 575.98px) {
    .pdw-price-box.pdw-price-dock {
        padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    }
    .pdw-price-dock .pdw-price-dock-inner { gap: 8px 12px; }
    .pdw-price-dock .pdw-price-value { font-size: 22px; }
    .pdw-price-dock .pdw-price-right { width: 100%; margin-left: 0; }
    .pdw-price-dock .pdw-submit-btn { flex: 1 1 auto; justify-content: center; }
}

/* ===== 水印自动识别结果面板 ===== */
.pdw-detect-panel {
    background: linear-gradient(135deg, #eef6ff 0%, #ffffff 100%);
    border: 1px solid #c7ddf7;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 18px;
}
.pdw-detect-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.pdw-detect-head > svg {
    flex-shrink: 0;
    color: #206bc4;
}
.pdw-detect-text {
    flex: 1 1 240px;
    min-width: 0;
}
.pdw-detect-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.pdw-detect-sub {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}
.pdw-detect-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pdw-detect-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pdw-detect-list li {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-all;
}
.pdw-detect-kind {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e7f0fd;
    color: #206bc4;
}
.pdw-detect-meta {
    margin-left: auto;
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 12px;
}

/* ===== 顶部操作条：进入编辑器后常驻可见，明确"一键去除 / 框选识别"两条路径 ===== */
.pdw-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef6ff 0%, #ffffff 100%);
    border: 1px solid #c7ddf7;
}
.pdw-action-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1 1 320px;
    min-width: 0;
}
.pdw-action-text { min-width: 0; }
.pdw-action-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 22px;
}
.pdw-action-sub {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}
.pdw-action-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 工具行内的弹性间隔：把右侧选区操作推到行尾 */
.pdw-toolbar-gap { flex: 1 1 auto; }
.pdw-toolbar-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pdw-toolbar-group .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pdw-nav-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    line-height: 1;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: all .15s;
}
.pdw-nav-btn:hover {
    background: #f1f5f9;
    color: #206bc4;
}

@media (max-width: 575.98px) {
    .pdw-action-bar { padding: 12px 14px; }
    .pdw-action-right { width: 100%; }
    .pdw-action-right .btn { flex: 1 1 auto; }
}
</content>