/* ========================================================
   PDF 压缩 / PDF Compress  - 全局样式
   基于 pdfwatermark.css 的设计语言（复用 hero/feature/FAQ）
   扩展：滑块、单页预览、压缩比可视化
   ======================================================== */

/* ============ Hero 区 ============ */
.pdc-hero {
    position: relative;
    padding: 56px 0 72px;
    overflow: hidden;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 45%, #7e3af2 100%);
    color: #fff;
}
.pdc-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;
}
.pdc-hero-inner {
    position: relative;
    z-index: 1;
}
.pdc-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);
}
.pdc-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74,222,128,.7);
    animation: pdc-pulse 2s infinite;
}
@keyframes pdc-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); }
}
.pdc-hero-title {
    font-size: 44px;
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -.5px;
}
.pdc-hero-subtitle {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,.88);
    margin: 0 0 22px;
}
.pdc-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: rgba(255,255,255,.85);
}
.pdc-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pdc-meta-item svg {
    color: #a7f3d0;
}

.pdc-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) {
    .pdc-hero { padding: 32px 0 40px; }
    .pdc-hero-title { font-size: 30px; }
    .pdc-hero-subtitle { font-size: 14px; }
}

/* ============ 上传卡片 ============ */
.pdc-upload-card {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .25s ease;
    background: #f8fafc;
}
.pdc-upload-card:hover,
.pdc-upload-card.dragover {
    border-color: #2563eb;
    background: #eff6ff;
}
.pdc-upload-icon-wrap {
    color: #2563eb;
    margin-bottom: 12px;
}
.pdc-upload-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}
.pdc-upload-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 14px;
}
.pdc-upload-btn {
    background: #2563eb;
    border: none;
}
.pdc-upload-btn:hover {
    background: #1d4ed8;
}

/* ============ Section 通用 ============ */
.pdc-section {
    padding: 56px 0;
}
.pdc-section-head {
    text-align: center;
    margin-bottom: 36px;
}
.pdc-section-title {
    font-size: 30px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px;
}
.pdc-section-subtitle {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

/* ============ 编辑工作区（默认隐藏） ============ */
.pdc-editor-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.pdc-editor-card {
    border: 0;
    box-shadow: 0 24px 60px rgba(15,23,42,.08);
    border-radius: 18px;
    overflow: hidden;
}
.pdc-editor-header {
    background: linear-gradient(135deg, #2563eb 0%, #7e3af2 100%);
    color: #fff;
    border: 0;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pdc-editor-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pdc-editor-header .btn-outline-secondary {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.4);
    color: #fff;
}
.pdc-editor-header .btn-outline-secondary:hover {
    background: rgba(255,255,255,.32);
    color: #fff;
}
.pdc-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,.22);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 13px;
}

/* ============ 滑块（核心控件） ============ */
.pdc-slider-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 20px;
}
.pdc-slider-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-weight: 700;
    color: #1e293b;
}
.pdc-slider-card-title .pdc-slider-level {
    font-size: 14px;
    color: #2563eb;
    background: #dbeafe;
    padding: 4px 10px;
    border-radius: 999px;
}
.pdc-slider-track {
    position: relative;
    padding: 18px 0 6px;
}
.pdc-slider-track input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #34d399 0%, #fbbf24 50%, #ef4444 100%);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}
.pdc-slider-track input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    background: #fff;
    border: 3px solid #2563eb;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(15,23,42,.18);
    transition: transform .15s ease;
}
.pdc-slider-track input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.12);
}
.pdc-slider-track input[type="range"]::-moz-range-thumb {
    width: 26px;
    height: 26px;
    background: #fff;
    border: 3px solid #2563eb;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(15,23,42,.18);
}
.pdc-slider-marks {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

/* ============ 预估结果卡 ============ */
.pdc-estimate-box {
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 20px;
}
.pdc-estimate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    align-items: center;
}
.pdc-est-item {
    text-align: center;
}
.pdc-est-label {
    font-size: 12px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}
.pdc-est-value {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
}
.pdc-est-arrow {
    font-size: 24px;
    color: #2563eb;
    font-weight: 700;
    text-align: center;
}
.pdc-est-saving {
    font-size: 13px;
    color: #16a34a;
    text-align: center;
    margin-top: 6px;
    font-weight: 600;
}
@media (max-width: 575.98px) {
    .pdc-estimate-grid { grid-template-columns: 1fr; }
    .pdc-est-arrow { display: none; }
}

/* ============ 预览图 ============ */
.pdc-preview-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
}
.pdc-preview-card-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pdc-preview-image-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    max-height: 460px;
    overflow: auto;
}
.pdc-preview-image-wrap img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.pdc-preview-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13px;
    color: #475569;
    flex-wrap: wrap;
    gap: 8px;
}
.pdc-preview-meta b {
    color: #1e293b;
}

/* ============ 提交区 ============ */
.pdc-submit-bar {
    background: linear-gradient(135deg, #2563eb 0%, #7e3af2 100%);
    color: #fff;
    border-radius: 14px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.pdc-submit-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.pdc-submit-price-currency {
    font-size: 18px;
    color: rgba(255,255,255,.85);
}
.pdc-submit-price-value {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
}
.pdc-submit-price-unit {
    font-size: 14px;
    color: rgba(255,255,255,.85);
    margin-left: 6px;
}
.pdc-submit-btn {
    background: #fff;
    color: #2563eb;
    border: 0;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 10px;
    transition: transform .15s ease;
}
.pdc-submit-btn:hover {
    transform: translateY(-1px);
    color: #1d4ed8;
}
.pdc-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* ============ 步骤三栏 ============ */
.pdc-step-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    height: 100%;
    transition: all .25s ease;
}
.pdc-step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15,23,42,.08);
}
.pdc-step-card-featured {
    background: linear-gradient(135deg, #2563eb 0%, #7e3af2 100%);
    color: #fff;
    border: 0;
}
.pdc-step-card-featured .pdc-step-desc {
    color: rgba(255,255,255,.88);
}
.pdc-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 12px;
}
.pdc-step-card-featured .pdc-step-num {
    background: rgba(255,255,255,.22);
    color: #fff;
}
.pdc-step-icon {
    color: #2563eb;
    margin-bottom: 12px;
}
.pdc-step-card-featured .pdc-step-icon {
    color: #fff;
}
.pdc-step-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1e293b;
}
.pdc-step-card-featured .pdc-step-title {
    color: #fff;
}
.pdc-step-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ============ 特性卡 ============ */
.pdc-feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    height: 100%;
    transition: all .25s ease;
}
.pdc-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15,23,42,.08);
}
.pdc-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 16px;
    color: #fff;
}
.pdc-feature-icon-1 { background: linear-gradient(135deg, #34d399, #10b981); }
.pdc-feature-icon-2 { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.pdc-feature-icon-3 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.pdc-feature-icon-4 { background: linear-gradient(135deg, #f472b6, #ec4899); }
.pdc-feature-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1e293b;
}
.pdc-feature-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ============ FAQ ============ */
.pdc-faq-list {
    max-width: 820px;
    margin: 0 auto;
}
.pdc-faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 16px 22px;
    transition: box-shadow .2s ease;
}
.pdc-faq-item[open] {
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.pdc-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #1e293b;
    list-style: none;
}
.pdc-faq-q::-webkit-details-marker { display: none; }
.pdc-faq-arrow {
    transition: transform .2s ease;
    color: #64748b;
}
.pdc-faq-item[open] .pdc-faq-arrow {
    transform: rotate(180deg);
}
.pdc-faq-a {
    margin-top: 12px;
    color: #475569;
    line-height: 1.7;
    font-size: 14px;
}

/* ============ CTA ============ */
.pdc-cta-section { padding: 56px 0; }
.pdc-cta-card {
    background: linear-gradient(135deg, #2563eb 0%, #7e3af2 100%);
    color: #fff;
    border-radius: 20px;
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    box-shadow: 0 30px 60px rgba(37,99,235,.22);
}
.pdc-cta-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px;
}
.pdc-cta-desc {
    margin: 0;
    color: rgba(255,255,255,.85);
    font-size: 14px;
}
.pdc-cta-btn {
    background: #fff;
    color: #2563eb;
    border: 0;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 10px;
}

/* ============ 加载遮罩 ============ */
.pdc-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.85);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
    border-radius: 14px;
}
.pdc-loading-overlay-static {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdc-loading-modal {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
}

/* ============ 响应式 ============ */
@media (max-width: 767.98px) {
    .pdc-section { padding: 36px 0; }
    .pdc-section-title { font-size: 22px; }
    .pdc-editor-card { border-radius: 14px; }
    .pdc-submit-bar { padding: 16px 18px; }
    .pdc-submit-price-value { font-size: 26px; }
}

/* 核心特性区的浅底。原先是写在 HTML 上的内联 style="background:#f8fafc"，
   内联样式压过一切选择器，暗色下根本覆盖不了，所以收回成一个 class。 */
.pdc-section-soft { background: #f8fafc; }

/* =========================================================
   暗夜模式适配
   ---------------------------------------------------------
   本文件里 pdc-* 全是硬编码浅色：#fff 卡片 + #1e293b / #64748b 深字。
   切到暗色后文字被主题翻转成浅色、卡片却仍是白底，实测
   「如何在线压缩 PDF 文件？」这类标题对比度只有 1.1，等于看不见。
   这里整体覆盖一遍，深色取值沿用首页 .hm-* 那套：
   #182433 卡片 / #22303f 边框 / #f1f5f9 正文 / #93a4b8 次要文字。
   注意：hero、.pdc-step-card-featured、.pdc-feature-icon、.pdc-submit-bar、
   .pdc-cta-card 都是彩色渐变底上的白字，本来就可读，一律不动。
   ========================================================= */

/* ---------- 卡片 / 面板容器 ---------- */
[data-bs-theme="dark"] .pdc-hero-upload-card,
[data-bs-theme="dark"] .pdc-step-card,
[data-bs-theme="dark"] .pdc-feature-card,
[data-bs-theme="dark"] .pdc-faq-item,
[data-bs-theme="dark"] .pdc-loading-modal {
    background: #182433;
    border-color: #22303f;
    color: #f1f5f9;
}

[data-bs-theme="dark"] .pdc-upload-card,
[data-bs-theme="dark"] .pdc-slider-card,
[data-bs-theme="dark"] .pdc-preview-card,
[data-bs-theme="dark"] .pdc-preview-image-wrap {
    background: #1b293a;
    border-color: #22303f;
}
/* 拖拽框靠虚线提示可投放区域，虚线要比卡片边框更亮才看得出来 */
[data-bs-theme="dark"] .pdc-upload-card { border-color: #2f4a6d; }
[data-bs-theme="dark"] .pdc-upload-card:hover,
[data-bs-theme="dark"] .pdc-upload-card.dragover {
    background: rgba(125, 177, 255, .12);
    border-color: #7db1ff;
}

[data-bs-theme="dark"] .pdc-section-soft,
[data-bs-theme="dark"] .pdc-editor-section {
    background: #151f2c;
}
[data-bs-theme="dark"] .pdc-editor-section {
    background: linear-gradient(180deg, #182433 0%, #151f2c 100%);
}
[data-bs-theme="dark"] .pdc-estimate-box {
    background: linear-gradient(135deg, #1b293a 0%, #232042 100%);
}

/* ---------- 标题与正文 ---------- */
[data-bs-theme="dark"] .pdc-upload-title,
[data-bs-theme="dark"] .pdc-section-title,
[data-bs-theme="dark"] .pdc-slider-card-title,
[data-bs-theme="dark"] .pdc-est-value,
[data-bs-theme="dark"] .pdc-preview-card-title,
[data-bs-theme="dark"] .pdc-preview-meta b,
[data-bs-theme="dark"] .pdc-step-title,
[data-bs-theme="dark"] .pdc-feature-title,
[data-bs-theme="dark"] .pdc-faq-q {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .pdc-upload-desc,
[data-bs-theme="dark"] .pdc-section-subtitle,
[data-bs-theme="dark"] .pdc-slider-marks,
[data-bs-theme="dark"] .pdc-est-label,
[data-bs-theme="dark"] .pdc-preview-meta,
[data-bs-theme="dark"] .pdc-step-desc,
[data-bs-theme="dark"] .pdc-feature-desc,
[data-bs-theme="dark"] .pdc-faq-arrow {
    color: #93a4b8;
}

[data-bs-theme="dark"] .pdc-faq-a { color: #b8c6d6; }

/* ---------- 序号与图标（原为浅蓝底 #eff6ff + #2563eb）---------- */
[data-bs-theme="dark"] .pdc-step-num {
    background: rgba(125, 177, 255, .14);
    color: #7db1ff;
}
[data-bs-theme="dark"] .pdc-step-icon { color: #7db1ff; }
[data-bs-theme="dark"] .pdc-slider-card-title .pdc-slider-level {
    background: #1c2f4a;
    color: #7db1ff;
}