/* ========================================================
   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-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;
}
/* 选区交互层：必须覆盖整张图片，否则鼠标事件落不到层上、无法框选 */
#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-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);
}
</content>