/* ==========================================================================
   像素工坊 · 在线图片压缩页
   设计语言与 /tools/seal-generator/ 共用一套：砖红主色、白卡、细边框、大字重标题
   用法：整份作为 style.css 引用（或贴进主题自定义 CSS），不含 <style> 标签
   结构：变量 → 基础 → 页头 → 按钮 → 区段头 → 工作区 → 流程 → 特色 → 格式 → 示例 → FAQ → 响应式
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计变量
   -------------------------------------------------------------------------- */
.ds-page {
    --ds-red: #cc3333;
    --ds-red-dark: #a61f1f;
    --ds-red-soft: #fff1f1;
    --ds-blue: #3b82f6;
    --ds-blue-soft: #eff6ff;
    --ds-green: #10b981;
    --ds-green-soft: #ecfdf5;
    --ds-orange: #f59e0b;
    --ds-orange-soft: #fffbeb;
    --ds-purple: #8b5cf6;
    --ds-purple-soft: #f5f3ff;
    --ds-ink: #1f2937;
    --ds-muted: #667085;
    --ds-border: #eee4e4;
    --ds-card: #ffffff;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    color: var(--ds-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
.ds-page * { box-sizing: border-box; }
/* WPBakery 给每个 content element 默认加了 35px 下外边距，会破坏栅格对齐，这里清掉 */
.wpb_raw_code:has(.ds-page) { margin-bottom: 0; }
.ds-page a, .ds-page button { -webkit-tap-highlight-color: transparent; }

/* 页面底色：只给一个中性底，hero / 各行背景在 WPBakery 里自行设置 */
.page-id-18368 { background: #fbf8f7; }
/* 锚点跳转时避开悬浮页头 */
html:has(body.page-id-18368) { scroll-behavior: smooth; }
.page-id-18368 [id^="ds-"],
.page-id-18368 #image-compressor-tool,
.page-id-18368 #image-compressor-hero { scroll-margin-top: 96px; }

/* --------------------------------------------------------------------------
   2. Hero
   -------------------------------------------------------------------------- */
.ds-hero { padding: 76px 0 58px; }
.ds-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(204, 51, 51, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: var(--ds-red-dark);
    font-size: 14px;
    font-weight: 700;
}
.ds-eyebrow i { color: var(--ds-red); font-size: 13px; }

.ds-hero h1 {
    margin: 22px 0 18px;
    color: var(--ds-ink);
    font-size: 52px;
    line-height: 1.12;
    letter-spacing: -1.4px;
    font-weight: 850;
}
.ds-hero h1 span {
    background: linear-gradient(90deg, var(--ds-red), #e05252);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ds-hero-desc {
    max-width: 620px;
    margin: 0;
    color: var(--ds-muted);
    font-size: 16px;
    line-height: 1.75;
}
.ds-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.ds-hero-badges li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #f0e5e5;
    border-radius: 10px;
    background: rgba(255, 255, 255, .86);
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}
.ds-hero-badges i { color: var(--ds-red); font-size: 12px; }
.ds-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* Hero 右栏：抽象体积对比（两张浮卡 + 点阵，不用照片、不做假拖拽） */
.ds-hero-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 76px 0 78px;
}
/* WPBakery 的行是 flex，默认 stretch 顶对齐；这里让 hero 两栏垂直居中 */
.grve-row:has(.ds-hero-side) { align-items: center; }

.ds-visual {
    position: relative;
    width: 100%;
    max-width: 470px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
/* 点阵底纹：半径不到 1px 的红点，向四周淡出 */
.ds-visual-dots {
    position: absolute;
    inset: -10% -6%;
    background-image: radial-gradient(rgba(204, 51, 51, .3) 1.2px, transparent 1.2px);
    background-size: 16px 16px;
    -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 100%);
    mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 100%);
    opacity: .85;
}

.ds-vcard {
    padding: 22px 24px 20px;
    border: 1px solid rgba(204, 51, 51, .1);
    border-radius: 20px;
    background: #fff;
}
.ds-vcard--before {
    width: 82%;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 40px rgba(31, 41, 55, .1);
    transform: rotate(-1.6deg);
    backdrop-filter: blur(6px);
}
.ds-vcard--after {
    align-self: flex-end;
    width: 78%;
    margin-top: -34px;
    z-index: 2;
    box-shadow: 0 26px 56px rgba(31, 41, 55, .18), 0 0 0 1px rgba(204, 51, 51, .06);
    transform: rotate(1.1deg);
}
.ds-vcard-tag {
    display: block;
    color: #a3928f;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    line-height: 1;
}
.ds-vcard--after .ds-vcard-tag { color: var(--ds-red); }
.ds-vcard strong {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 9px;
    color: var(--ds-ink);
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -1.8px;
    line-height: 1;
}
.ds-vcard strong span {
    color: #9a8b88;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
}
.ds-vcard--after strong { color: var(--ds-red-dark); font-size: 46px; }
.ds-vcard--after strong span { color: #b5787a; }

.ds-vcard-bar {
    display: block;
    height: 8px;
    margin-top: 14px;
    border-radius: 999px;
    background: #f4eceb;
    overflow: hidden;
}
.ds-vcard-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #dcc9c6, #c2a9a6);
}
.ds-vcard--before .ds-vcard-bar i { width: 100%; }
.ds-vcard--after .ds-vcard-bar i {
    width: 18%;
    background: linear-gradient(90deg, var(--ds-red), #e46a6a);
}
.ds-vcard-meta {
    display: block;
    margin-top: 8px;
    margin-bottom: 10px;
    color: #9a8b88;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .01em;
}
.ds-vcard-save {
    position: absolute;
    top: 16px;
    right: 18px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--ds-green-soft);
    color: #047857;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .01em;
}

/* --------------------------------------------------------------------------
   3. 按钮
   -------------------------------------------------------------------------- */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.ds-btn:hover { transform: translateY(-1px); }
.ds-btn i { font-size: 13px; }

.ds-btn-primary {
    background: linear-gradient(135deg, var(--ds-red), #e44949);
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(204, 51, 51, .22);
}
.ds-btn-primary:hover {
    background: linear-gradient(135deg, var(--ds-red-dark), var(--ds-red));
    color: #fff !important;
}
.ds-btn-ghost {
    border-color: rgba(204, 51, 51, .22);
    background: #fff;
    color: var(--ds-red-dark) !important;
}
.ds-btn-ghost:hover { background: var(--ds-red-soft); color: var(--ds-red-dark) !important; }
.ds-btn-soft {
    border-color: rgba(204, 51, 51, .16);
    background: var(--ds-red-soft);
    color: var(--ds-red-dark) !important;
}
.ds-btn-soft:hover { background: #ffe7e7; color: var(--ds-red-dark) !important; }
.ds-btn-soft-blue {
    border-color: rgba(59, 130, 246, .18);
    background: var(--ds-blue-soft);
    color: #1d4ed8 !important;
}
.ds-btn-soft-blue:hover { background: #e2edff; color: #1d4ed8 !important; }

/* --------------------------------------------------------------------------
   4. 区段骨架 / 白色卡片
   -------------------------------------------------------------------------- */
.ds-section { padding: 14px 0; }
.ds-card-section {
    padding: 34px 34px 30px;
    border: 1px solid #f1e8e6;
    border-radius: 26px;
    background: var(--ds-card);
    box-shadow: 0 18px 44px rgba(31, 41, 55, .05);
}
.ds-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}
.ds-section-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--ds-red);
    font-size: 12.5px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.ds-section-head h2 {
    margin: 0;
    color: var(--ds-ink);
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -.4px;
    font-weight: 800;
}
.ds-section-head p {
    max-width: 780px;
    margin: 9px 0 0;
    color: var(--ds-muted);
    font-size: 14.5px;
    line-height: 1.7;
}
.ds-section-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

/* --------------------------------------------------------------------------
   5. 工作区
   -------------------------------------------------------------------------- */
.ds-shell {
    position: relative;
    overflow: hidden;
    padding: 12px;
    border: 1px solid #f0e6e4;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(31, 41, 55, .06);
}
/* 工具原本把配色变量写在单独 index.html 的 <style> 里，嵌进页面后全部丢失，
   导致按钮 background:var(--accent) 解析失败变透明、文字退回黑色。这里补回来。
   注意：进编辑态时 app 会把自己搬到 body 下（xsic-compressor-host-fullscreen），
   所以变量必须挂在 #app 上，才会跟着走。 */
#app {
    --ink: #293241;
    --muted: #6f4a4a;
    --accent: #c33;
    --accent-deep: #922626;
    --surface: #fff;
    --surface-soft: #fff7f7;
    --line: rgba(204, 51, 51, .22);
    --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    --pink: #c33;
    --hot-pink: #a52626;
    --white: #fff;
    --black: #000;
    --off-black: #1d1d1d;
    --blue: #d96666;
    --dim-blue: #a52626;
    --deep-blue: #922626;
    --light-blue: #edaaaa;
    --less-light-gray: #bcbcbc;
    --medium-light-gray: #d1d1d1;
    --light-gray: #eaeaea;
    --dark-gray: #333;
    --dim-text: #343a3e;
    --dark-text: #142630;
    --button-fg: #c33;
}
/* 退出工作区：砖红实底 + 纯白字 */
#app [class*="exit-fullscreen"] {
    border-color: transparent;
    background: #c33;
    color: #fff;
    box-shadow: 0 8px 20px rgba(146, 38, 38, .28);
}
#app [class*="exit-fullscreen"]:hover { background: #a61f1f; }
/* 下载按钮：同色系，字号字重保持原样 */
#app [class*="download-all"] {
    color: #fff;
    background: #c33;
    box-shadow: 0 8px 22px rgba(204, 51, 51, .28);
}
#app [class*="download-all"]:hover { background: #a61f1f; }
.ds-shell #app { display: block; }

/* 空白态的整块点击区：改成虚线投放区（app 原本写死 680px 高，这里收一收） */
.ds-shell #app [class*="placeholder-shell"] {
    height: clamp(320px, 34vw, 460px);
    max-height: none;
    min-height: 300px;
    padding: 0 16px;
    border: 2px dashed rgba(204, 51, 51, .22);
    border-radius: 14px;
    background: #fffcfb;
    color: #57504e;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    align-content: center;
    grid-auto-rows: min-content;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.ds-shell #app [class*="placeholder-shell"]:hover {
    border-color: rgba(204, 51, 51, .45);
    background: #fff7f6;
    color: var(--ds-red-dark);
}
.ds-shell #app [class*="placeholder-shell"]::after {
    content: "支持 JPG / PNG / WebP · 可一次选多张";
    margin-top: 10px;
    color: #a3928f;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}
/* 空白态主标题「添加图片以开始」—— 比默认醒目一点 */
.ds-shell #app [class*="placeholder-shell"] > span:not([class*="placeholderPreview"]) {
    color: #2f3742;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .01em;
}
.ds-shell #app [class*="placeholder-shell"]:hover > span:not([class*="placeholderPreview"]) {
    color: var(--ds-red-dark);
}

/* --------------------------------------------------------------------------
   5b. 退出工作区后：最后一张图铺满整块画布 + 悬停遮罩
   --------------------------------------------------------------------------
   app 内部类名带构建 hash（_placeholderPreview_18wbb_33），只能用 [class*="…"] 匹配。
   有图时 button 里只有 placeholderPreview 这一个 span，所以 :has() 可以准确区分「有图/无图」。
   -------------------------------------------------------------------------- */
.ds-shell #app [class*="placeholder-shell"]:has([class*="placeholderPreview"]) {
    position: relative;
    padding: 0;
    min-height: 0;
    border-color: transparent;
    background: #fff;
    overflow: hidden;
}
.ds-shell #app [class*="placeholder-shell"]:has([class*="placeholderPreview"]) [class*="placeholderPreview"] {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
    margin: 0;
}
.ds-shell #app [class*="placeholderPreview"] img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    border-radius: 0;
    transform: scale(1);
    transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.ds-shell #app [class*="placeholder-shell"]:hover [class*="placeholderPreview"] img {
    transform: scale(1.035);
}
/* 遮罩 + 文案（两张图层都用伪元素，不动 DOM） */
.ds-shell #app [class*="placeholderPreview"]::before,
.ds-shell #app [class*="placeholderPreview"]::after {
    content: "";
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}
.ds-shell #app [class*="placeholderPreview"]::after {
    inset: 0;
    z-index: 1;
    background: linear-gradient(165deg, rgba(31, 41, 55, .3), rgba(146, 38, 38, .58));
}
.ds-shell #app [class*="placeholderPreview"]::before {
    content: "继续添加图片";
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 12px));
    padding: 13px 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    color: var(--ds-red-dark);
    box-shadow: 0 14px 34px rgba(78, 20, 20, .3);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
}
.ds-shell #app [class*="placeholder-shell"]:hover [class*="placeholderPreview"]::after { opacity: 1; }
.ds-shell #app [class*="placeholder-shell"]:hover [class*="placeholderPreview"]::before {
    opacity: 1;
    transform: translate(-50%, -50%);
}
/* 能悬停的设备上，隐藏工具自带的常驻提示，避免和遮罩文案重复 */
@media (hover: hover) {
    .ds-shell #app [class*="placeholderPreview"] > span {
        opacity: 0;
        transition: opacity .2s ease;
    }
}

.ds-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    color: var(--ds-muted);
    font-size: 13px;
}
.ds-tips li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    line-height: 1.6;
}
.ds-tips li::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: var(--ds-red);
    box-shadow: 0 0 0 4px rgba(204, 51, 51, .1);
}
.ds-tips b { color: #3f4650; font-weight: 800; }

/* --------------------------------------------------------------------------
   6. 使用流程
   -------------------------------------------------------------------------- */
.ds-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.ds-flow li {
    position: relative;
    margin: 0;
    padding: 22px 20px 20px;
    border: 1px solid #f2eae8;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdfc, #fff);
    list-style: none;
}
.ds-flow li::before {
    counter-increment: step;
    content: "0" counter(step);
    position: absolute;
    top: 18px;
    right: 20px;
    color: #e7d4d2;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.5px;
}
.ds-flow-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--ds-red-soft);
    color: var(--ds-red);
    font-size: 16px;
}
.ds-flow h3 {
    margin: 0 0 8px;
    color: var(--ds-ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}
.ds-flow p {
    margin: 0;
    color: var(--ds-muted);
    font-size: 13.5px;
    line-height: 1.75;
}
.ds-flow p b { color: #3f4650; font-weight: 800; }

/* --------------------------------------------------------------------------
   7. 功能特色
   -------------------------------------------------------------------------- */
.ds-features {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}
.ds-feature {
    grid-column: span 3;
    padding: 22px 22px 20px;
    border: 1px solid #f2eae8;
    border-radius: 18px;
    background: #fff;
}
.ds-feature--third { grid-column: span 2; }
.ds-feature-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.ds-feature-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 12px;
    font-size: 16px;
}
.ds-ico-red { background: var(--ds-red-soft); color: var(--ds-red); }
.ds-ico-blue { background: var(--ds-blue-soft); color: #2563eb; }
.ds-ico-green { background: var(--ds-green-soft); color: #059669; }
.ds-ico-orange { background: var(--ds-orange-soft); color: #d97706; }
.ds-ico-purple { background: var(--ds-purple-soft); color: #7c3aed; }
.ds-feature h3 {
    margin: 0;
    color: var(--ds-ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}
.ds-feature > p {
    margin: 0 0 12px;
    color: var(--ds-muted);
    font-size: 13.5px;
    line-height: 1.75;
}
.ds-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ds-list li {
    position: relative;
    margin: 0;
    padding-left: 15px;
    color: var(--ds-muted);
    font-size: 13px;
    line-height: 1.9;
    list-style: none;
}
.ds-list li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ds-red);
}
.ds-list b { color: #b02a2a; font-weight: 800; }
.ds-list code {
    padding: 1px 5px;
    border-radius: 5px;
    background: #f7f2f1;
    color: #7a3c3c;
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   8. 格式指南
   -------------------------------------------------------------------------- */
.ds-formats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.ds-format {
    display: flex;
    flex-direction: column;
    padding: 22px 20px 20px;
    border: 1px solid #f2eae8;
    border-radius: 18px;
    background: #fff;
}
.ds-format-top {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #f0e4e2;
}
.ds-format-top strong {
    color: var(--ds-ink);
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -.3px;
}
.ds-format-top em {
    color: var(--ds-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}
.ds-format-top span {
    margin-left: auto;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--ds-red-soft);
    color: var(--ds-red-dark);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.ds-format-top span.is-blue { background: var(--ds-blue-soft); color: #1d4ed8; }
.ds-format-top span.is-green { background: var(--ds-green-soft); color: #047857; }
.ds-format p {
    margin: 12px 0 0;
    color: var(--ds-muted);
    font-size: 13px;
    line-height: 1.75;
}
.ds-format dl {
    margin: 12px 0 0;
    padding: 0;
}
.ds-format dt {
    color: #3f4650;
    font-size: 12px;
    font-weight: 800;
}
.ds-format dd {
    margin: 3px 0 10px;
    margin-inline-start: 0;
    padding-left: 0;
    color: var(--ds-muted);
    font-size: 12.5px;
    line-height: 1.7;
}
.ds-format dd:last-child { margin-bottom: 0; }
.ds-format-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 20px 0 0;
    padding: 13px 16px;
    border: 1px solid #f0e4e2;
    border-radius: 14px;
    background: #fffaf9;
    color: var(--ds-muted);
    font-size: 13px;
    line-height: 1.7;
}
.ds-format-note i { margin-top: 2px; color: var(--ds-red); }

/* --------------------------------------------------------------------------
   9. 压缩效果示例（纯 CSS 条形对比）
   -------------------------------------------------------------------------- */
.ds-bars { display: grid; gap: 24px; max-width: 920px; }
.ds-bar-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) 152px;
    grid-template-areas:
        "name before val-before"
        "name after  val-after";
    align-items: center;
    gap: 7px 18px;
}
.ds-bar-name { grid-area: name; }
.ds-bar-name strong {
    display: block;
    color: var(--ds-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}
.ds-bar-name span {
    display: block;
    margin-top: 3px;
    color: var(--ds-muted);
    font-size: 11.5px;
    line-height: 1.4;
}
.ds-bar {
    height: 12px;
    border-radius: 999px;
    background: #f6eeec;
    overflow: hidden;
}
.ds-bar--before { grid-area: before; }
.ds-bar--after { grid-area: after; }
.ds-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
}
.ds-bar--before i { background: linear-gradient(90deg, #ded0cd, #c9b0ad); }
.ds-bar--after i { background: linear-gradient(90deg, var(--ds-red), #e46a6a); }
.ds-bar-val {
    grid-area: val-before;
    color: var(--ds-muted);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}
.ds-bar-val--after {
    grid-area: val-after;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ds-bar-val--after b {
    color: var(--ds-ink);
    font-size: 14px;
    font-weight: 900;
}
.ds-bar-val--after em {
    padding: 3px 9px;
    white-space: nowrap;
    border-radius: 999px;
    background: var(--ds-green-soft);
    color: #047857;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 900;
}
.ds-bars-note {
    margin: 18px 0 0;
    color: #8b817f;
    font-size: 12px;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   10. FAQ
   -------------------------------------------------------------------------- */
.ds-faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
}
.ds-faq details {
    border-bottom: 1px dashed #f0e4e2;
    padding: 0;
}
.ds-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 2px;
    color: #2f3742;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}
.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq summary::after {
    content: "\203A";
    flex: none;
    color: #c9b9b6;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    transform: rotate(90deg);
    transition: transform .2s ease, color .2s ease;
}
.ds-faq details[open] summary { color: var(--ds-red-dark); }
.ds-faq details[open] summary::after { transform: rotate(-90deg); color: var(--ds-red); }
.ds-faq p {
    margin: 0 2px 16px;
    color: var(--ds-muted);
    font-size: 13.5px;
    line-height: 1.8;
}
.ds-faq code {
    padding: 1px 5px;
    border-radius: 5px;
    background: #f7f2f1;
    color: #7a3c3c;
    font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   11. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    /* 栏宽由 WPBakery 控制，这里只管文字与卡片比例 */
    .ds-hero, .ds-hero-side { padding: 58px 0 20px; }
    .ds-hero h1 { font-size: 44px; letter-spacing: -1px; }
    .ds-visual { max-width: 100%; }
    .ds-feature { grid-column: span 3; }
    .ds-feature--third { grid-column: span 3; }
}

@media (max-width: 900px) {
    .ds-card-section { padding: 26px 22px 24px; border-radius: 20px; }
    .ds-section-head { flex-direction: column; align-items: flex-start; margin-bottom: 20px; }
    .ds-section-actions { flex-wrap: wrap; }
    .ds-section-head h2 { font-size: 24px; }
    .ds-hero h1 { font-size: 38px; letter-spacing: -.8px; }
    .ds-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ds-formats { grid-template-columns: minmax(0, 1fr); }
    .ds-features { grid-template-columns: minmax(0, 1fr); }
    .ds-feature, .ds-feature--third { grid-column: span 1; }
    .ds-faq { grid-template-columns: minmax(0, 1fr); }
    .ds-bar-row {
        grid-template-columns: minmax(0, 1fr) 146px;
        grid-template-areas:
            "name name"
            "before val-before"
            "after val-after";
        gap: 7px 12px;
    }
    .ds-bar-name { margin-bottom: 4px; }
}

@media (max-width: 600px) {
    .ds-hero { padding: 64px 0 26px; }
    .ds-hero-side { padding: 10px 0 34px; }
    .ds-hero h1 { font-size: 31px; letter-spacing: -.4px; }
    .ds-hero-desc { font-size: 14.5px; }
    .ds-hero-actions .ds-btn { flex: 1 1 auto; }
    .ds-vcard { padding: 18px 20px 16px; border-radius: 16px; }
    .ds-vcard--after { margin-top: -22px; }
    .ds-vcard strong { font-size: 30px; letter-spacing: -1px; }
    .ds-vcard--after strong { font-size: 33px; }
    .ds-vcard-tag { font-size: 9.5px; }
    .ds-vcard-bar { margin-top: 11px; height: 7px; }
    .ds-vcard-meta { margin-top: 8px; font-size: 10.5px; }
    .ds-flow { grid-template-columns: minmax(0, 1fr); }
    .ds-card-section { padding: 22px 16px 20px; border-radius: 18px; }
    .ds-section-head h2 { font-size: 21px; }
    .ds-faq summary { font-size: 13.5px; }
}
.ds-qa .ds-card-section{
border:none;
box-shadow:none;
padding:0
}

.ds-qa .grve-container {
    margin-top: 24px;
    padding: 28px;
    border-radius: 22px;
    border: 1px solid #eee4e4;
    box-shadow: 0 18px 42px rgba(31,41,55,.045)
}



.qa-title h2 {
    margin-bottom: 0
}

.ds-qa .qa1 .grve-column-wrapper,.ds-qa .qa2 .grve-column-wrapper {
    padding: 20px 16px;
    border-radius: 18px;
    border: 1px solid #eee4e4
}

.ds-qa .grve-title {
    font-size: 16px
}

.ds-qa .grve-accordion .grve-title-wrapper {
    padding: 10px 0
}

.ds-qa .grve-accordion .grve-title-wrapper:after {
    border-top: 1px dashed
}

.ds-qa .grve-accordion-content {
    font-size: 16px;
    font-style: italic
}

.ds-qa .grve-svg-heading-color {
    fill: #999
}