/* ===== PDF转Word工具（讯飞翻译）· 独立样式 v1 ===== */
/* 布局模式同 pdf2zh / reduce-aigc / reduce-repeat，与平台 template/style.css 色系和谐 */

/* 滚动发生在 .main（topbar 下方）：滚动条贴窗口右缘、从 topbar 下方开始 */
/* .main 自身不限宽，限宽只加在内层内容元素上 */
.pdf2word {
    padding-bottom: 40px;
    min-width: 0;
}

/* 内容超出时按容器收缩，避免出现横向滚动条 */
.pdf2word img,
.pdf2word .workbench {
    max-width: 100%;
}

/* 内层内容居中限宽（滚动容器 .main 永远全宽，滚动条贴窗口右缘） */
.pdf2word > * {
    max-width: min(1200px, 100%);
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 页面标题 ---------- */
.page-head {
    margin: 4px auto 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.page-title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: .5px;
}
.page-desc {
    margin: 0;
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ---------- 立即使用 + 效果展示按钮 ---------- */
.action-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
    box-shadow: 0 4px 14px rgba(47, 107, 255, .25);
}
.btn-download:hover {
    background: var(--brand-dark);
    box-shadow: 0 6px 20px rgba(47, 107, 255, .35);
    transform: translateY(-1px);
}
.btn-demo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
}
.btn-demo:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-light);
}

/* ---------- 核心卖点 ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}
.feature-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: box-shadow .2s ease;
}
.feature-item:hover {
    box-shadow: var(--shadow-card);
}
.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: var(--brand-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
}
.feature-item h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.feature-item p {
    margin: 0;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ---------- 通用区块标题 ---------- */
.section-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}
.section-desc {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--text-2);
    text-align: center;
}

/* ---------- 使用步骤 ---------- */
.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.step-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand);
    opacity: 0;
    transition: opacity .3s ease;
}
.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(47, 107, 255, .12);
    border-color: #bae6fd;
}
.step-card:hover::before {
    opacity: 1;
}
.step-num-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(47, 107, 255, .25);
}
.step-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    flex-shrink: 0;
    min-width: 100px;
}
.step-desc {
    margin: 0;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
    flex: 1;
}
.step-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    flex-shrink: 0;
    padding: 6px 12px;
    background: rgba(47, 107, 255, .06);
    border-radius: 8px;
    transition: all .2s ease;
}
.step-link:hover {
    background: rgba(47, 107, 255, .12);
    color: var(--brand-dark);
    text-decoration: none;
}

/* ---------- 转换效果展示 ---------- */
.workbench-section {
    margin-bottom: 48px;
}
.workbench {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.workbench-head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 18px;
    background: linear-gradient(180deg, #f7f9fc, #eef2f9);
    border-bottom: 1px solid var(--border);
}
.wb-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.wb-dot-red { background: #ff5f57; }
.wb-dot-yellow { background: #febc2e; }
.wb-dot-green { background: #28c840; }
.wb-title {
    margin-left: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}
.workbench-img {
    padding: 20px;
}
.workbench-img img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: block;
}
.workbench-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 10px 18px;
    border-top: 1px solid var(--border);
    background: #f8fafd;
    font-size: 12.5px;
    color: var(--text-3);
}
.wb-status-ok {
    color: #16a34a;
    font-weight: 600;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .page-title { font-size: 24px; }
    .action-bar { flex-direction: column; align-items: stretch; }
    .btn-download, .btn-demo { text-align: center; justify-content: center; }
    .features { grid-template-columns: 1fr; }
    .workbench-foot { gap: 14px; flex-wrap: wrap; }
    .step-card { flex-wrap: wrap; gap: 10px; }
    .step-title { min-width: auto; }
}
