/* =====================================================================
   交付中心（前台）· 独立浅色风格
   ---------------------------------------------------------------------
   刻意不跟随站点前台的深色 / 浅色主题：交付中心的配色以参考设计稿为准
   （#f6f7f9 底 + 纯白卡片 + 14px 圆角 + 极淡投影），这样无论站点用哪套
   主题，交付中心的外观都保持一致。

   每个库的主题色通过页面根节点上的 --kc 变量注入（见 delivery/page.php），
   组件里一律用 color-mix(in srgb, var(--kc) N%, var(--dc-card)) 派生浅色底，
   不写死具体色值 —— 以后加库只要给一个 color 就能直接生效。

   顶栏「色系」面板可切换 4 套中性色方案（云境/星洲/极光/曜石），
   只覆盖 body.dc[data-dc-scheme] 上的令牌值，组件规则一律不写死色值；
   用户选择存 localStorage（dc_scheme），只影响本人浏览，全站 8 个库统一生效。
   ===================================================================== */

.dc,
.dc * { box-sizing: border-box; }

/* hidden 属性兜底：组件规则里的 display（如 .dc-gs-par{display:block}）
   属于作者样式，优先级天然高于浏览器默认的 [hidden]{display:none}，
   会导致带 hidden 的元素照样显示（切图器参数区全部堆在一起就是这个原因）。
   这里显式声明：交付中心内凡带 hidden 的元素一律不显示。 */
.dc [hidden] { display: none !important; }

.dc {
    --kc: #22b573;
    --dc-bg: #f6f7f9;
    --dc-card: #ffffff;
    --dc-soft: #f4f5f8;
    --dc-soft-2: #eceef3;
    --dc-kc-ink: color-mix(in srgb, var(--kc) 85%, #000 0%);
    --dc-line: rgba(20, 25, 40, .07);
    --dc-line-2: rgba(20, 25, 40, .13);
    --dc-text: #16181d;
    --dc-text-2: #3f4552;
    --dc-muted: #6f7686;
    --dc-muted-2: #9aa1ad;
    --dc-radius: 14px;
    min-height: 100vh;
    background: var(--dc-bg);
    color: var(--dc-text);
    font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

/* ---------------- 色系方案（云境=默认 / 星洲 / 极光 / 曜石） ----------------
   只覆盖中性色令牌，不碰 --kc；曜石为完整深色模式。 */

body.dc[data-dc-scheme="xingzhou"] {
    --dc-bg: #eef4fb;
    --dc-soft: #e7eef8;
    --dc-soft-2: #dbe7f4;
    --dc-line: rgba(23, 60, 96, .08);
    --dc-line-2: rgba(23, 60, 96, .15);
}
body.dc[data-dc-scheme="jiguang"] {
    --dc-bg: #edf7f2;
    --dc-soft: #e6f1ec;
    --dc-soft-2: #d9ebe2;
    --dc-line: rgba(16, 80, 52, .08);
    --dc-line-2: rgba(16, 80, 52, .15);
}
body.dc[data-dc-scheme="yaoshi"] {
    --dc-bg: #14171d;
    --dc-card: #1c212b;
    --dc-soft: #232936;
    --dc-soft-2: #2b3242;
    --dc-line: rgba(255, 255, 255, .08);
    --dc-line-2: rgba(255, 255, 255, .16);
    --dc-text: #e8ecf4;
    --dc-text-2: #c3cad8;
    --dc-muted: #98a2b3;
    --dc-muted-2: #6d7686;
    --dc-kc-ink: color-mix(in srgb, var(--kc) 72%, #fff);
    color-scheme: dark;
}
body.dc[data-dc-scheme="yaoshi"] ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); }
body.dc[data-dc-scheme="yaoshi"] ::selection { background: rgba(91, 124, 250, .45); }
body.dc[data-dc-scheme="yaoshi"] .dc-qa-pend { color: #f2b23e; }
body.dc[data-dc-scheme="yaoshi"] .dc-toast { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }

.dc a { color: inherit; text-decoration: none; }
.dc h1, .dc h2, .dc h3, .dc p { margin: 0; }
.dc img { max-width: 100%; }
.dc button, .dc input, .dc select, .dc textarea { font-family: inherit; font-size: inherit; }
.dc ::-webkit-scrollbar { width: 10px; height: 10px; }
.dc ::-webkit-scrollbar-thumb { background: rgba(20, 25, 40, .16); border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }

/* ---------------- 顶栏 ---------------- */

.dc-top {
    position: sticky; top: 0; z-index: 30;
    height: 60px; flex: none;
    background: var(--dc-card);
    border-bottom: 1px solid var(--dc-line);
}
.dc-top-in {
    height: 100%;
    display: flex; align-items: center; gap: 8px;
    padding: 0 24px;
}
.dc-brand { display: inline-flex; align-items: center; gap: 8px; flex: none; margin-right: 8px; }
.dc-brand img { display: block; height: 26px; width: auto; max-width: 130px; }
.dc-brand .dc-brand-i {
    width: 26px; height: 26px; border-radius: 8px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--kc); color: #fff; font-size: 13px;
}
.dc-brand b { font-size: 15px; font-weight: 700; letter-spacing: -.2px; white-space: nowrap; }

.dc-tabs { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.dc-tabs::-webkit-scrollbar { display: none; }
.dc-tab {
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 14px; border-radius: 999px;
    font-size: 13.5px; color: var(--dc-muted); white-space: nowrap;
    transition: background-color .16s ease, color .16s ease;
}
.dc-tab i { font-size: 12px; opacity: .8; }
.dc-tab:hover { background: var(--dc-soft); color: var(--dc-text); }
.dc-tab.on {
    background: var(--kc); color: #fff; font-weight: 600;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--kc) 30%, transparent);
}
.dc-tab.on i { opacity: 1; }

.dc-top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.dc-srch {
    display: flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 6px 0 14px; width: 216px;
    background: var(--dc-soft); border-radius: 999px;
}
.dc-srch i { color: var(--dc-muted-2); font-size: 12.5px; }
.dc-srch input {
    flex: 1; min-width: 0; border: 0; background: transparent; outline: 0;
    font-size: 13px; color: var(--dc-text);
}
.dc-srch input::placeholder { color: var(--dc-muted-2); }
.dc-srch button {
    flex: none; height: 26px; padding: 0 12px; border: 0; border-radius: 999px;
    background: var(--kc); color: #fff; font-size: 12px; cursor: pointer;
}
.dc-upd {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; color: var(--dc-muted-2); white-space: nowrap;
}
.dc-upd::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: #22b573; box-shadow: 0 0 0 3px rgba(34, 181, 115, .16);
}
.dc-theme {
    display: inline-flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 12px; border: 1px solid var(--dc-line-2);
    border-radius: 999px; background: var(--dc-card); color: var(--dc-muted);
    font-size: 12.5px; cursor: pointer; white-space: nowrap;
    transition: color .16s ease, border-color .16s ease;
}
.dc-theme i { font-size: 12px; }
.dc-theme:hover { color: var(--kc); border-color: color-mix(in srgb, var(--kc) 45%, var(--dc-card)); }

/* 色系下拉面板 */
.dc-theme-wrap { position: relative; flex: none; }
.dc-theme-pop {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 50;
    width: 316px; padding: 14px;
    background: var(--dc-card); border: 1px solid var(--dc-line-2); border-radius: 14px;
    box-shadow: 0 18px 44px rgba(20, 25, 40, .18);
}
.dc-theme-pop[hidden] { display: none; }
.dc-theme-pop-h b { display: block; font-size: 13.5px; font-weight: 700; }
.dc-theme-pop-h span { display: block; font-size: 11.5px; color: var(--dc-muted-2); margin-top: 2px; }
.dc-sc-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.dc-sc {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 9px 10px; border: 1px solid var(--dc-line); border-radius: 10px;
    background: transparent; cursor: pointer; text-align: left; color: inherit;
    transition: border-color .14s ease, background-color .14s ease;
}
.dc-sc:hover { border-color: var(--dc-line-2); background: var(--dc-soft); }
.dc-sc.on {
    border-color: color-mix(in srgb, var(--kc) 55%, var(--dc-card));
    background: color-mix(in srgb, var(--kc) 6%, var(--dc-card));
}
.dc-sc-sw { display: flex; flex: none; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(20, 25, 40, .12); }
.dc-sc-sw i { width: 11px; height: 24px; display: block; }
.dc-sc-tx { min-width: 0; flex: 1; }
.dc-sc-tx b { display: block; font-size: 13px; font-weight: 600; }
.dc-sc-tx > span { display: block; font-size: 11.5px; color: var(--dc-muted-2); margin-top: 1px; }
.dc-sc-ok { flex: none; color: var(--kc); font-size: 13px; visibility: hidden; }
.dc-sc.on .dc-sc-ok { visibility: visible; }

/* ---------------- Hero ---------------- */

.dc-wrap { padding: 20px 24px 0; }

.dc-hero {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 24px;
    padding: 26px 30px; border-radius: 20px;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--kc) 13%, var(--dc-card)),
            color-mix(in srgb, var(--kc) 3%, var(--dc-card)) 62%);
}
.dc-hero-deco {
    position: absolute; right: 330px; top: 50%; transform: translateY(-50%);
    font-size: 150px; line-height: 1;
    color: color-mix(in srgb, var(--kc) 13%, transparent);
    pointer-events: none; user-select: none;
}
.dc-hero-l { position: relative; z-index: 1; min-width: 0; flex: 1; }
.dc-hero-tag {
    display: inline-flex; align-items: center; gap: 6px;
    height: 26px; padding: 0 12px; border-radius: 999px;
    background: color-mix(in srgb, var(--kc) 15%, var(--dc-card));
    color: var(--dc-kc-ink);
    font-size: 12px; font-weight: 600;
}
.dc-hero-t { font-size: 30px; font-weight: 700; letter-spacing: -.4px; margin: 12px 0 0; }
.dc-hero-d { font-size: 13.5px; color: var(--dc-muted); line-height: 1.7; margin: 8px 0 0; max-width: 640px; }
.dc-hero-s { position: relative; z-index: 1; display: flex; gap: 12px; flex: none; }
.dc-stat {
    min-width: 106px; padding: 14px 8px; border-radius: 14px; text-align: center;
    background: var(--dc-card); border: 1px solid var(--dc-line);
    box-shadow: 0 1px 3px rgba(20, 25, 40, .05);
}
.dc-stat b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.dc-stat span { display: block; font-size: 12px; color: var(--dc-muted-2); margin-top: 2px; }
.dc-stat.hl {
    border-color: color-mix(in srgb, var(--kc) 45%, var(--dc-card));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--kc) 12%, transparent);
}

/* ---------------- 筛选栏 ---------------- */

.dc-filter {
    /* 下方留出与卡片网格的间距：筛选行原先紧贴卡片，视觉上挤在一起 */
    margin-top: 14px; margin-bottom: 18px; padding: 10px 16px;
    background: var(--dc-card); border: 1px solid var(--dc-line); border-radius: var(--dc-radius);
}
.dc-fl { display: flex; align-items: center; gap: 8px; padding: 6px 0; flex-wrap: wrap; }
.dc-fl + .dc-fl { border-top: 1px dashed var(--dc-line); }
.dc-fl-g { font-size: 12.5px; color: var(--dc-muted-2); flex: none; padding-right: 2px; }
.dc-fl-o {
    display: inline-flex; align-items: center; gap: 6px;
    height: 30px; padding: 0 12px; border-radius: 999px;
    background: var(--dc-soft); color: var(--dc-muted); font-size: 12.5px;
    white-space: nowrap; transition: background-color .14s ease, color .14s ease;
}
.dc-fl-o b { font-weight: 600; opacity: .75; }
.dc-fl-o:hover { background: var(--dc-soft-2); color: var(--dc-text); }
.dc-fl-o.on { background: var(--kc); color: #fff; }
.dc-fl-o.on b { opacity: .9; }
.dc-fl-right { margin-left: auto; font-size: 12.5px; color: var(--dc-muted-2); }

/* ---------------- 卡片网格 ---------------- */

.dc-body { padding-top: 16px; }
.dc-grid { display: grid; gap: 16px; padding-bottom: 44px; }
.dc-grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dc-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dc-grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dc-grid.auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.dc-card {
    display: flex; flex-direction: column;
    background: var(--dc-card);
    border: 1px solid var(--dc-line);
    border-radius: var(--dc-radius);
    overflow: hidden;
    transition: box-shadow .18s ease, transform .18s ease;
}
.dc-card:hover { box-shadow: 0 10px 26px rgba(20, 25, 40, .09); transform: translateY(-2px); }

.dc-tag {
    display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
    border-radius: 6px; font-size: 11.5px; font-weight: 600;
    background: color-mix(in srgb, var(--kc) 12%, var(--dc-card));
    color: var(--dc-kc-ink);
    white-space: nowrap;
}
.dc-tag.soft { background: var(--dc-soft); color: var(--dc-muted); font-weight: 500; }
.dc-tag.line {
    background: var(--dc-card); border: 1px solid color-mix(in srgb, var(--kc) 34%, var(--dc-card));
    color: var(--dc-kc-ink); font-weight: 500;
}

.dc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 32px; padding: 0 13px; border-radius: 8px; cursor: pointer;
    border: 1px solid var(--dc-line-2); background: var(--dc-card); color: var(--dc-text-2);
    font-size: 12.5px; white-space: nowrap;
    transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.dc-btn:hover { background: var(--dc-soft); }
.dc-btn.kc { border-color: color-mix(in srgb, var(--kc) 42%, var(--dc-card)); color: var(--kc); }
.dc-btn.kc:hover { background: color-mix(in srgb, var(--kc) 8%, var(--dc-card)); }
.dc-btn.solid {
    background: var(--kc); border-color: var(--kc); color: #fff; font-weight: 500;
}
.dc-btn.solid:hover { background: color-mix(in srgb, var(--kc) 86%, #000); border-color: transparent; }
.dc-btn.sm { height: 30px; padding: 0 12px; font-size: 12px; }
.dc-btn:disabled { opacity: .5; cursor: not-allowed; }

.dc-empty {
    grid-column: 1 / -1;
    padding: 60px 20px; text-align: center; color: var(--dc-muted-2);
    background: var(--dc-card); border: 1px dashed var(--dc-line-2); border-radius: var(--dc-radius);
}
.dc-empty i { display: block; font-size: 30px; margin-bottom: 12px; opacity: .5; }
.dc-empty p { font-size: 13px; }

/* ---------------- 朋友圈 ---------------- */

.dc-mo { background: linear-gradient(180deg, color-mix(in srgb, var(--kc) 6%, var(--dc-card)), var(--dc-card) 34%); }
.dc-mo-h { display: flex; align-items: center; gap: 8px; padding: 14px 14px 0; }
.dc-mo-h .dc-eye {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11.5px; color: var(--dc-muted-2);
}
.dc-mo-d { margin-left: auto; font-size: 12px; color: var(--dc-muted-2); }
.dc-mo-t { padding: 10px 14px 0; font-size: 14px; font-weight: 600; }
.dc-mo-x {
    padding: 8px 14px 0; font-size: 13.5px; color: var(--dc-text);
    line-height: 1.9; white-space: pre-wrap; word-break: break-word; flex: 1;
}
.dc-mo-imgs { padding: 10px 14px 0; display: grid; gap: 6px; }
.dc-mo-imgs.one { grid-template-columns: 1fr; }
.dc-mo-imgs.multi { grid-template-columns: 1fr 1fr; }
.dc-mo-imgs img {
    display: block; width: 100%; border-radius: 10px; object-fit: cover;
    background: var(--dc-soft); cursor: zoom-in;
}
.dc-mo-imgs.one img { max-height: 300px; }
.dc-mo-imgs.multi img { aspect-ratio: 1 / 1; }
.dc-mo-a { display: flex; gap: 8px; padding: 12px 14px 14px; }
.dc-mo-a .dc-btn { flex: 1; padding: 0 6px; }

/* ---------------- 案例库 ---------------- */

.dc-ca-h { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 14px 0; }
.dc-ca-t { padding: 8px 14px 0; font-size: 15px; font-weight: 700; }
.dc-ca-x { padding: 6px 14px 0; font-size: 12.5px; color: var(--dc-muted); line-height: 1.75; }
.dc-ca-cv {
    margin: 10px 14px 0; border-radius: 10px; overflow: hidden; background: var(--dc-soft);
    aspect-ratio: 16 / 10;
}
.dc-ca-cv img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.dc-ca-m { display: flex; gap: 6px; padding: 12px 14px 0; }
.dc-ca-m > div { flex: 1; min-width: 0; }
.dc-ca-m em { display: block; font-style: normal; font-size: 11.5px; color: var(--dc-muted-2); }
.dc-ca-m b { display: block; font-size: 15px; font-weight: 700; color: var(--dc-text); letter-spacing: -.2px; }
.dc-ca-q {
    margin: 12px 14px 14px; padding: 10px 12px; border-radius: 10px;
    background: var(--dc-soft); font-size: 12.5px; color: var(--dc-text-2); line-height: 1.75;
}
.dc-ca-q::before {
    content: "客户证言"; display: block;
    font-size: 11px; font-weight: 600; margin-bottom: 4px;
    color: var(--dc-kc-ink);
}
/* 案例截图轮播（多张时） */
.dc-ca-car {
    position: relative; margin: 10px 14px 0; border-radius: 10px;
    overflow: hidden; background: var(--dc-soft); aspect-ratio: 16 / 10;
}
.dc-ca-car img {
    display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in;
}
.dc-ca-car img[hidden] { display: none; }
.dc-ca-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border: 0; border-radius: 50%;
    background: rgba(22, 24, 29, .45); color: #fff; font-size: 13px;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    transition: background-color .16s ease;
}
.dc-ca-nav:hover { background: rgba(22, 24, 29, .68); }
.dc-ca-nav.prev { left: 10px; }
.dc-ca-nav.next { right: 10px; }
.dc-ca-num {
    position: absolute; right: 10px; bottom: 10px;
    height: 22px; padding: 0 9px; border-radius: 999px;
    display: inline-flex; align-items: center;
    background: rgba(22, 24, 29, .55); color: #fff; font-size: 11.5px;
}
.dc-ca-num b { font-weight: 600; }
/* 案例卡操作行：复制案例 / 保存截图 / 转发 */
.dc-ca-a { display: flex; gap: 8px; padding: 0 14px 14px; }
.dc-ca-h + .dc-ca-a { padding-top: 14px; }
.dc-ca-a .dc-btn { flex: 1; padding: 0 6px; justify-content: center; }

/* ---------------- 物料库 ---------------- */

.dc-ma-h { display: flex; align-items: center; gap: 8px; padding: 14px 14px 0; }
.dc-fbadge {
    display: inline-flex; align-items: center; height: 20px; padding: 0 6px;
    border-radius: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .2px;
    color: #fff; background: #6b7a92;
}
.dc-ma-dl { margin-left: auto; font-size: 11.5px; color: var(--dc-muted-2); }
.dc-ma-t { padding: 8px 14px 0; font-size: 15px; font-weight: 700; }
.dc-ma-x { padding: 6px 14px 0; font-size: 12.5px; color: var(--dc-muted); line-height: 1.75; }
.dc-ma-files { margin: 10px 14px 0; display: flex; flex-direction: column; gap: 6px; }
.dc-ma-f {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px;
    background: var(--dc-soft); border-radius: 8px; font-size: 12px; color: var(--dc-muted);
}
.dc-ma-f .dc-fbadge { flex: none; }
.dc-ma-f span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-ma-f em { margin-left: auto; font-style: normal; flex: none; color: var(--dc-muted-2); }
.dc-ma-a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 14px; margin-top: auto; }
.dc-ma-a > span { font-size: 12px; color: var(--dc-muted-2); }

/* ---------------- 工具库 ---------------- */

.dc-to-pv {
    position: relative; height: 168px; flex: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: var(--dc-soft); border-bottom: 1px solid var(--dc-line);
    overflow: hidden;
}
.dc-to-pv.has-img { display: block; }
.dc-to-pv.has-img img {
    display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in;
}
.dc-to-pv .dc-to-ic {
    width: 56px; height: 56px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--dc-card); color: var(--kc); font-size: 22px;
    box-shadow: 0 2px 8px rgba(20, 25, 40, .07);
}
.dc-to-pv span {
    position: absolute; right: 10px; bottom: 10px;
    height: 22px; padding: 0 9px; border-radius: 999px;
    display: inline-flex; align-items: center;
    background: rgba(22, 24, 29, .55); color: #fff; font-size: 11.5px;
}
.dc-to-b { padding: 14px; flex: 1; }
.dc-to-b .dc-to-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-to-t { margin: 10px 0 0; font-size: 15px; font-weight: 700; }
.dc-to-x {
    margin: 6px 0 0; font-size: 12.5px; color: var(--dc-muted); line-height: 1.75;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dc-to-a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px 14px; }
.dc-to-a > span { font-size: 11.5px; color: var(--dc-muted-2); }

/* ---------------- 福利库 ---------------- */

.dc-we-cv {
    position: relative; height: 172px; flex: none; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #1c2130, #0e131e);
}
.dc-we-cv::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--kc) 34%, transparent), transparent 62%);
    pointer-events: none;
}
.dc-we-ic {
    position: relative; z-index: 1;
    width: 58px; height: 58px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .96); color: var(--kc); font-size: 23px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.dc-we-cat { position: absolute; left: 12px; top: 12px; z-index: 2; background: rgba(255, 255, 255, .16); color: #fff; }
.dc-we-bd { position: absolute; right: 12px; top: 12px; z-index: 2; background: var(--kc); color: #fff; }
.dc-we-b { padding: 14px; flex: 1; }
.dc-we-t { font-size: 15px; font-weight: 700; }
.dc-we-x { margin: 6px 0 0; font-size: 12.5px; color: var(--dc-muted); line-height: 1.75; }
.dc-we-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dc-we-a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px 14px; }
.dc-we-a > span { font-size: 11.5px; color: var(--dc-muted-2); }

/* ---------------- 教程库 ---------------- */

.dc-tu { padding: 16px; }
.dc-tu-h { display: flex; gap: 12px; }
.dc-tu-ic {
    width: 44px; height: 44px; flex: none; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f7a83c, #ef8f1f); color: #fff; font-size: 18px;
    box-shadow: 0 3px 10px rgba(239, 143, 31, .3);
}
.dc-tu-h > div { min-width: 0; }
.dc-tu-t { font-size: 15px; font-weight: 700; }
.dc-tu-s { margin: 3px 0 0; font-size: 12.5px; color: var(--dc-muted-2); }
.dc-tu-steps { margin: 12px 0 0; display: flex; flex-direction: column; gap: 5px; }
.dc-tu-step { display: flex; gap: 8px; font-size: 12.5px; color: var(--dc-muted); line-height: 1.6; }
.dc-tu-step b { flex: none; font-weight: 600; color: #ef8f1f; font-variant-numeric: tabular-nums; }
.dc-tu-more { font-size: 12px; color: var(--dc-muted-2); cursor: pointer; background: none; border: 0; padding: 2px 0 0; text-align: left; }
.dc-tu-more:hover { color: #ef8f1f; }
/* 教程库组内折叠展开按钮 */
.dc-tu-gmore {
    margin: 14px auto 22px; display: flex; align-items: center; justify-content: center; gap: 6px;
    height: 34px; padding: 0 18px; border-radius: 999px;
    border: 1px solid var(--dc-line-2); background: var(--dc-card); color: var(--dc-muted);
    font-size: 12.5px; cursor: pointer;
    transition: color .16s ease, border-color .16s ease;
}
.dc-tu-gmore:hover { color: var(--kc); border-color: color-mix(in srgb, var(--kc) 45%, var(--dc-card)); }
.dc-tu-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dc-tu-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dc-tu-stat {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 9px; border-radius: 6px; background: var(--dc-soft);
    font-size: 11.5px; color: var(--dc-muted);
}
.dc-tu-stat b { color: var(--dc-text-2); font-weight: 700; }
.dc-tu-a { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.dc-btn.or { background: #ef8f1f; border-color: #ef8f1f; color: #fff; font-weight: 500; }
.dc-btn.or:hover { background: #dd8214; border-color: transparent; }

/* ---------------- 交付库 ---------------- */

.dc-dv-grp { margin-bottom: 6px; }
.dc-dv-gh {
    display: flex; align-items: center; gap: 10px;
    margin: 6px 0 12px; padding-left: 11px; position: relative;
}
.dc-dv-gh::before {
    content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px;
    border-radius: 2px; background: var(--kc);
}
.dc-dv-gh b { font-size: 15.5px; font-weight: 700; }
.dc-dv-gh span { margin-left: auto; font-size: 12px; color: var(--dc-muted-2); }
.dc-dv-grp + .dc-dv-grp { margin-top: 26px; }

.dc-dv-cv {
    position: relative; height: 150px; flex: none;
    background: linear-gradient(140deg, #4f8ef7, #2563eb);
    display: flex; align-items: flex-start; justify-content: flex-end; padding: 12px;
}
.dc-dv-cv .dc-dv-n {
    height: 24px; padding: 0 10px; border-radius: 999px;
    display: inline-flex; align-items: center;
    background: rgba(255, 255, 255, .22); color: #fff;
    font-size: 11.5px; font-weight: 600;
}
.dc-dv-b { padding: 14px; flex: 1; }
.dc-dv-th { display: flex; align-items: center; gap: 8px; }
.dc-dv-th b { font-size: 15px; font-weight: 700; }
.dc-dv-th .dc-tag { background: var(--kc); color: #fff; }
.dc-dv-x { margin: 8px 0 0; font-size: 12.5px; color: var(--dc-muted); line-height: 1.75; }
.dc-dv-rows { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.dc-dv-r > em {
    display: block; font-style: normal; font-size: 11.5px; color: var(--dc-muted-2); margin-bottom: 5px;
}
.dc-dv-r .dc-dv-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-dv-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 9px; border-radius: 6px; font-size: 11.5px;
    background: color-mix(in srgb, var(--kc) 9%, var(--dc-card));
    color: var(--dc-kc-ink);
}
.dc-dv-pill.num { background: var(--dc-soft); color: var(--dc-muted); }
.dc-dv-a { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.dc-dv-a > span { font-size: 11.5px; color: var(--dc-muted-2); }

/* ---------------- 问答库 ---------------- */

.dc-qa-hero {
    position: relative; overflow: hidden;
    padding: 42px 30px 34px; border-radius: 20px; text-align: center;
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--kc) 10%, var(--dc-card)),
            color-mix(in srgb, var(--kc) 2%, var(--dc-card)) 70%);
}
.dc-qa-hero .dc-hero-tag { height: 28px; }
.dc-qa-t {
    font-size: 36px; font-weight: 700; letter-spacing: -.8px; margin: 16px 0 0;
}
.dc-qa-t em {
    font-style: normal;
    background: linear-gradient(100deg, #4f8ef7, #7b5bf0);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dc-qa-sub { margin: 12px 0 0; font-size: 13px; color: var(--dc-muted); }
.dc-qa-sub b { color: var(--dc-text); font-weight: 700; }
.dc-qa-srch {
    display: flex; align-items: center; gap: 10px;
    max-width: 620px; margin: 22px auto 0;
    padding: 6px 6px 6px 20px;
    background: var(--dc-card); border-radius: 999px;
    box-shadow: 0 6px 22px rgba(20, 25, 40, .08);
}
.dc-qa-srch i { color: var(--dc-muted-2); }
.dc-qa-srch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13.5px; }
.dc-qa-srch button {
    flex: none; height: 40px; padding: 0 26px; border: 0; border-radius: 999px;
    background: var(--kc); color: #fff; font-size: 13.5px; font-weight: 500; cursor: pointer;
}
.dc-qa-hot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
    margin-top: 16px;
}
.dc-qa-hot em { font-style: normal; font-size: 12px; color: var(--dc-muted-2); }
.dc-qa-hot a { font-size: 12.5px; color: var(--dc-muted); }
.dc-qa-hot a:hover { color: var(--kc); }

.dc-qa-bar {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
}
.dc-qa-bar > span { font-size: 12.5px; color: var(--dc-muted-2); }
.dc-qa-bar .dc-qa-bar-r { margin-left: auto; display: flex; gap: 8px; }

.dc-qa-c { padding: 14px; }
.dc-qa-ch { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-qa-q { margin: 10px 0 0; font-size: 15px; font-weight: 700; line-height: 1.6; }
.dc-qa-d {
    margin: 8px 0 0; font-size: 12.5px; color: var(--dc-muted); line-height: 1.75;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dc-qa-f {
    display: flex; align-items: center; gap: 10px; margin-top: 12px;
    padding-top: 12px; border-top: 1px solid var(--dc-line);
}
.dc-qa-f em { font-style: normal; font-size: 11.5px; color: var(--dc-muted-2); }
.dc-qa-f .dc-qa-go {
    margin-left: auto; font-size: 12.5px; font-weight: 600;
    color: var(--dc-kc-ink);
    background: none; border: 0; cursor: pointer; padding: 0;
}
.dc-qa-f .dc-qa-go:hover { text-decoration: underline; }
.dc-qa-pend {
    display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
    border-radius: 6px; font-size: 11.5px; font-weight: 600;
    background: rgba(245, 158, 11, .14); color: #a96a06;
}

/* ---------------- 弹窗 ---------------- */

.dc-modal {
    position: fixed; inset: 0; z-index: 60;
    display: none; align-items: center; justify-content: center;
    padding: 24px;
}
.dc-modal.on { display: flex; }
.dc-modal-mask { position: absolute; inset: 0; background: rgba(16, 20, 30, .5); }
.dc-modal-c {
    position: relative; z-index: 1;
    width: 100%; max-width: 680px; max-height: 86vh;
    display: flex; flex-direction: column;
    background: var(--dc-card); border-radius: 16px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(16, 20, 30, .3);
}
.dc-modal-h {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 20px; border-bottom: 1px solid var(--dc-line); flex: none;
}
.dc-modal-h b { font-size: 15.5px; font-weight: 700; min-width: 0; }
.dc-modal-x {
    margin-left: auto; flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px;
    background: var(--dc-soft); color: var(--dc-muted); font-size: 16px; cursor: pointer; line-height: 1;
}
.dc-modal-x:hover { background: var(--dc-soft-2); color: var(--dc-text); }
.dc-modal-b { padding: 20px; overflow-y: auto; font-size: 13.5px; line-height: 1.85; color: var(--dc-text-2); }
.dc-modal-b img { border-radius: 10px; height: auto; }
.dc-modal-b video { max-width: 100%; border-radius: 10px; }
.dc-modal-f {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    padding: 14px 20px; border-top: 1px solid var(--dc-line); flex: none;
}

.dc-imgbig { max-width: 92vw; max-height: 88vh; border-radius: 12px; display: block; }

/* ---------------- 工具页 ---------------- */

.dc-tool { padding-bottom: 44px; }
.dc-tool-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dc-tool-h .dc-tool-ic {
    width: 46px; height: 46px; flex: none; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--kc) 14%, var(--dc-card)); color: var(--kc); font-size: 19px;
}
.dc-tool-h b { display: block; font-size: 18px; font-weight: 700; }
.dc-tool-h p { font-size: 12.5px; color: var(--dc-muted); margin-top: 2px; }
.dc-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; color: var(--dc-muted); margin-bottom: 14px;
    background: none; border: 0; cursor: pointer; padding: 0;
}
.dc-back:hover { color: var(--kc); }

.dc-panel {
    background: var(--dc-card); border: 1px solid var(--dc-line); border-radius: var(--dc-radius);
    padding: 20px; margin-bottom: 16px;
}
.dc-panel > h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }

.dc-drop {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 34px 20px; border: 1px dashed var(--dc-line-2); border-radius: 12px;
    background: var(--dc-soft); color: var(--dc-muted); cursor: pointer; text-align: center;
}
.dc-drop:hover { border-color: var(--kc); background: color-mix(in srgb, var(--kc) 4%, var(--dc-card)); }
.dc-drop i { font-size: 26px; color: var(--dc-muted-2); }
.dc-drop b { font-size: 13.5px; color: var(--dc-text-2); font-weight: 600; }
.dc-drop span { font-size: 12px; color: var(--dc-muted-2); }
.dc-drop input[type="file"] { display: none; }

.dc-fields { display: grid; gap: 14px; }
.dc-fields.two { grid-template-columns: 1fr 1fr; }
.dc-fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dc-fld > span { font-size: 12.5px; color: var(--dc-muted); }
.dc-fld > span i { color: #e5484d; font-style: normal; }
.dc-fld input[type="text"],
.dc-fld input[type="number"],
.dc-fld select,
.dc-fld textarea {
    width: 100%; padding: 9px 12px; border: 1px solid var(--dc-line-2);
    border-radius: 8px; background: var(--dc-card); color: var(--dc-text); outline: 0;
    font-size: 13px; transition: border-color .14s ease, box-shadow .14s ease;
}
.dc-fld textarea { resize: vertical; line-height: 1.7; }
.dc-fld input:focus, .dc-fld select:focus, .dc-fld textarea:focus {
    border-color: var(--kc);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--kc) 14%, transparent);
}
.dc-fld em { font-style: normal; font-size: 11.5px; color: var(--dc-muted-2); }

.dc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-chip {
    height: 32px; padding: 0 14px; border-radius: 8px; cursor: pointer;
    border: 1px solid var(--dc-line-2); background: var(--dc-card); color: var(--dc-text-2);
    font-size: 12.5px; display: inline-flex; align-items: center;
}
.dc-chip:hover { border-color: color-mix(in srgb, var(--kc) 45%, var(--dc-card)); }
.dc-chip.on { background: var(--kc); border-color: var(--kc); color: #fff; font-weight: 500; }

.dc-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.dc-acts .dc-btn { height: 36px; padding: 0 18px; font-size: 13px; }
.dc-note { font-size: 12px; color: var(--dc-muted-2); }

.dc-canvas-wrap {
    display: flex; align-items: center; justify-content: center;
    min-height: 220px; padding: 16px; border-radius: 12px; background: var(--dc-soft);
    overflow: auto;
}
.dc-canvas-wrap canvas { max-width: 100%; height: auto; background: #fff; border-radius: 6px; display: block; }
.dc-canvas-wrap .dc-ph { font-size: 12.5px; color: var(--dc-muted-2); }

/* ---------------- 图片尺寸调整工具 ---------------- */

/* 大号上传虚线框 + 拖拽悬停态 */
.dc-drop.big { padding: 54px 20px; }
.dc-drop.over { border-color: var(--kc); background: color-mix(in srgb, var(--kc) 8%, var(--dc-card)); }

/* 文件信息条（缩略图 + 文件名/尺寸/体积 + 换一张） */
.dc-ir-file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.dc-ir-file img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; background: var(--dc-soft); }
.dc-ir-fm { flex: 1; min-width: 0; }
.dc-ir-fm b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-ir-fm span { display: block; margin-top: 3px; font-size: 12px; color: var(--dc-muted-2); }
.dc-ir-file .dc-btn { flex: none; }

/* 区块标题行：左侧小标题 + 右侧灰字说明 */
.dc-fld-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.dc-fld-h > span { font-size: 13.5px; font-weight: 600; color: var(--dc-text); }
.dc-fld-h > em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--dc-muted-2); text-align: right; }

/* 分段控件（按比例|按像素 / 缩放方式 / 输出文件） */
.dc-seg {
    display: flex; gap: 4px; padding: 4px; border-radius: 10px;
    background: var(--dc-soft); border: 1px solid var(--dc-line);
}
.dc-seg button {
    flex: 1; height: 36px; border-radius: 8px; font-size: 13px; cursor: pointer;
    color: var(--dc-muted); transition: background-color .14s ease, color .14s ease;
}
.dc-seg button:hover { color: var(--dc-text); }
.dc-seg button.on { background: var(--kc); color: #fff; font-weight: 500; }

/* 恢复默认参数：通栏描边按钮 */
.dc-ir-reset { width: 100%; height: 38px; margin-top: 14px; }

/* 棋盘格预览底：PNG/WebP 的透明留白一眼可辨（双斜纹错位拼接，兼容性最好） */
.dc-canvas-wrap.checker {
    background-color: var(--dc-card);
    background-image:
        linear-gradient(45deg, color-mix(in srgb, var(--dc-muted-2) 20%, var(--dc-card)) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--dc-muted-2) 20%, var(--dc-card)) 75%),
        linear-gradient(45deg, color-mix(in srgb, var(--dc-muted-2) 20%, var(--dc-card)) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--dc-muted-2) 20%, var(--dc-card)) 75%);
    background-size: 18px 18px;
    background-position: 0 0, 9px 9px;
}
.dc-canvas-wrap.checker canvas { background: transparent; box-shadow: 0 2px 14px rgba(0, 0, 0, .18); }

/* 下载图片：通栏大按钮 */
.dc-ir-dl { width: 100%; height: 44px; margin-top: 14px; font-size: 14px; }

/* 「怎么用？」说明区：行内加粗紧跟说明，避免词条孤行 */
.dc-ir-help ol { margin: 0 0 10px 18px; font-size: 12.5px; color: var(--dc-muted); line-height: 1.9; }
.dc-ir-help p { font-size: 12px; color: var(--dc-muted-2); line-height: 1.8; }
.dc-ir-help b { color: var(--dc-text-2); font-weight: 600; }

.dc-out {
    margin-top: 12px; padding: 12px 14px; border-radius: 10px;
    background: var(--dc-soft); border: 1px solid var(--dc-line);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12.5px; line-height: 1.9; color: var(--dc-text-2);
    max-height: 300px; overflow: auto; white-space: pre-wrap; word-break: break-all;
}
.dc-out:empty { display: none; }

.dc-share {
    display: flex; align-items: center; gap: 10px;
    margin-top: 12px; padding: 12px 14px; border-radius: 10px;
    background: color-mix(in srgb, var(--kc) 7%, var(--dc-card));
    border: 1px solid color-mix(in srgb, var(--kc) 24%, var(--dc-card));
}
.dc-share input {
    flex: 1; min-width: 0; border: 0; background: transparent; outline: 0;
    font-size: 13px; color: var(--dc-text); font-family: inherit;
}

/* 图片灯箱 */
.dc-light {
    position: fixed; inset: 0; z-index: 80; display: none;
    align-items: center; justify-content: center; padding: 24px;
    background: rgba(10, 14, 22, .86); cursor: zoom-out;
}
.dc-light.on { display: flex; }

/* ---------------- VIP 提示页 ---------------- */

.dc-vip {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 32px; background: var(--dc-bg);
}
.dc-vip-c {
    width: 100%; max-width: 460px; padding: 36px 32px; text-align: center;
    background: var(--dc-card); border: 1px solid var(--dc-line); border-radius: 20px;
    box-shadow: 0 16px 48px rgba(20, 25, 40, .08);
}
.dc-vip-ic {
    width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f7b955, #e8a02c); color: #fff; font-size: 26px;
    box-shadow: 0 8px 22px rgba(232, 160, 44, .32);
}
.dc-vip-c h2 { font-size: 20px; font-weight: 700; }
.dc-vip-c p { margin: 10px 0 0; font-size: 13px; color: var(--dc-muted); line-height: 1.8; }
.dc-vip-c .dc-vip-a { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.dc-vip-c .dc-vip-a .dc-btn { height: 40px; padding: 0 22px; font-size: 13.5px; }
.dc-btn.gold { background: linear-gradient(135deg, #f7b955, #e8a02c); border-color: transparent; color: #fff; font-weight: 600; }
.dc-btn.gold:hover { filter: brightness(1.04); }

/* VIP 引导页 · 客服微信弹窗（点「去开通 VIP」弹出） */
.dc-kf { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dc-kf[hidden] { display: none; }
.dc-kf-m { position: absolute; inset: 0; background: rgba(16, 20, 30, .55); }
.dc-kf-c {
    position: relative; z-index: 1; width: 320px; max-width: 100%;
    padding: 26px 22px 22px; text-align: center;
    background: var(--dc-card); border-radius: 16px;
    box-shadow: 0 24px 60px rgba(10, 14, 24, .3);
}
.dc-kf-x {
    position: absolute; right: 10px; top: 10px;
    width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--dc-soft); color: var(--dc-muted); font-size: 15px; line-height: 1;
}
.dc-kf-x:hover { background: var(--dc-soft-2); color: var(--dc-text); }
.dc-kf-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 14px;
    background: color-mix(in srgb, #22b573 14%, var(--dc-card));
    color: #1a9c62; font-size: 26px;
}
.dc-kf-t { display: block; font-size: 16px; font-weight: 700; margin-top: 12px; color: var(--dc-text); }
.dc-kf-qr { display: block; width: 190px; height: 190px; object-fit: contain; margin: 14px auto 0; border-radius: 10px; border: 1px solid var(--dc-line); background: #fff; }
.dc-kf-tip { font-size: 12.5px; color: var(--dc-muted); margin-top: 10px; line-height: 1.7; }
.dc-kf-tel { font-size: 13.5px; color: var(--dc-text-2); margin-top: 10px; }
.dc-kf-tel b { color: var(--dc-text); font-size: 15px; }
.dc-kf-tel i { color: #1a9c62; margin-right: 4px; }

/* ---------------- 开户链接生成器（填写 + 实时预览） ---------------- */

.dc-step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%; margin-right: 8px;
    background: var(--kc); color: #fff;
    font-size: 11.5px; font-style: normal; font-weight: 600;
    vertical-align: 2px;
}

.dc-lg {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 16px; align-items: start;
}
.dc-lg-form > h3, .dc-lg-prev > h3 { display: flex; align-items: center; }
.dc-lg-form .dc-fld { margin-bottom: 14px; }
.dc-lg-form .dc-fld:last-of-type { margin-bottom: 0; }
.dc-lg-cnt { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--dc-muted-2); font-weight: 400; }

/* 红色重要提示 */
.dc-lg-warn {
    margin: -6px 0 14px; padding: 8px 12px; border-radius: 8px;
    background: rgba(229, 72, 77, .08); color: #d4383c;
    font-size: 12.5px; line-height: 1.6;
}

/* 行业可搜索下拉 */
.dc-lg-ind { position: relative; }
.dc-lg-ind > input {
    width: 100%; height: 40px; padding: 0 34px 0 13px;
    border: 1px solid var(--dc-line); border-radius: 10px;
    background: var(--dc-bg); color: var(--dc-text); outline: 0;
    transition: border-color .15s ease, background-color .15s ease;
}
.dc-lg-ind > input:focus {
    border-color: color-mix(in srgb, var(--kc) 55%, var(--dc-card));
    background: var(--dc-card);
}
.dc-lg-ind > i {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    font-size: 11px; color: var(--dc-muted-2); pointer-events: none;
}
.dc-lg-ind-d {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40;
    max-height: 280px; overflow-y: auto; padding: 6px;
    background: var(--dc-card); border: 1px solid var(--dc-line-2); border-radius: 12px;
    box-shadow: 0 16px 40px rgba(20, 25, 40, .16);
}
.dc-lg-ind-d[hidden] { display: none; }
.dc-lg-ind-d > em {
    display: block; padding: 8px 10px 3px;
    font-style: normal; font-size: 11px; color: var(--dc-muted-2);
}
.dc-lg-ind-d > button {
    display: block; width: 100%; padding: 8px 10px 8px 20px;
    border: 0; border-radius: 8px; background: transparent;
    font-size: 13px; color: var(--dc-text-2); text-align: left; cursor: pointer;
}
.dc-lg-ind-d > button:hover { background: color-mix(in srgb, var(--kc) 8%, var(--dc-card)); color: var(--kc); }
.dc-lg-ind-none { padding: 12px 10px; font-size: 12px; color: var(--dc-muted-2); }

/* 一级列表顶部提示 */
.dc-lg-ind-hint { padding: 8px 10px 6px; font-size: 11.5px; color: var(--dc-muted-2); }

/* 一级行业行：名称 + 二级数量 + 箭头 */
.dc-lg-ind-d > button.dc-lg-ind-top {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 10px;
}
.dc-lg-ind-top span { flex: 1; min-width: 0; font-size: 13px; color: var(--dc-text); }
.dc-lg-ind-top em {
    flex: none; font-style: normal; font-size: 11px; color: var(--dc-muted-2);
    background: var(--dc-soft); border-radius: 999px; padding: 1px 8px;
}
.dc-lg-ind-top i { flex: none; font-size: 10px; color: var(--dc-muted-2); }
.dc-lg-ind-top:hover span { color: var(--kc); }
.dc-lg-ind-top:hover em,
.dc-lg-ind-top:hover i { color: var(--kc); }

/* 二级行（与旧选项视觉一致，类名显式化） */
.dc-lg-ind-d > button.dc-lg-ind-opt { padding-left: 20px; }

/* 二级列表顶部的「返回一级分类」条 */
.dc-lg-ind-back {
    position: sticky; top: -6px; z-index: 2;
    display: flex; align-items: center; gap: 8px;
    margin: -6px -6px 4px; padding: 8px 10px;
    background: var(--dc-card); border-bottom: 1px solid var(--dc-line);
}
.dc-lg-ind-back button {
    display: inline-flex; align-items: center; gap: 5px;
    border: 0; background: transparent; padding: 0;
    font-size: 12px; color: var(--kc); cursor: pointer;
}
.dc-lg-ind-back i { font-size: 10px; }
.dc-lg-ind-back em {
    font-style: normal; font-size: 12px; font-weight: 600; color: var(--dc-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 页面风格 2×2 卡片 */
.dc-lg-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dc-lg-theme {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border: 1px solid var(--dc-line-2); border-radius: 10px;
    background: var(--dc-card); cursor: pointer; text-align: left; color: inherit;
    transition: border-color .14s ease, background-color .14s ease;
}
.dc-lg-theme:hover { border-color: color-mix(in srgb, var(--kc) 40%, var(--dc-card)); }
.dc-lg-theme.on {
    border-color: var(--kc);
    background: color-mix(in srgb, var(--kc) 6%, var(--dc-card));
    box-shadow: 0 0 0 1px var(--kc) inset;
}
.dc-lg-theme > i { flex: none; width: 22px; height: 22px; border-radius: 50%; }
.dc-lg-theme > span { min-width: 0; line-height: 1.35; }
.dc-lg-theme b { display: block; font-size: 13px; font-weight: 600; }
.dc-lg-theme em { display: block; font-style: normal; font-size: 11px; color: var(--dc-muted-2); }

/* 产品图上传后的信息行 */
.dc-lg-cov {
    display: flex; align-items: center; gap: 10px; margin-top: 10px;
    padding: 10px; border: 1px solid var(--dc-line); border-radius: 10px;
    background: var(--dc-soft);
}
.dc-lg-cov[hidden] { display: none; }
.dc-lg-cov img { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.dc-lg-covm { min-width: 0; flex: 1; }
.dc-lg-covm b {
    display: block; font-size: 13px; font-weight: 500;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dc-lg-covm span { display: block; font-size: 11.5px; color: var(--dc-muted-2); margin-top: 2px; }
.dc-lg-cov button {
    flex: none; align-self: flex-end; border: 0; background: transparent;
    color: #e5484d; font-size: 12px; cursor: pointer; padding: 2px 0;
}
.dc-lg-cov button:hover { text-decoration: underline; }

.dc-lg-acts { display: flex; gap: 10px; margin-top: 16px; }
.dc-lg-acts .dc-btn { flex: 1; height: 42px; font-size: 13.5px; }

/* 右侧实时预览 */
.dc-lg-live {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
    font-style: normal; font-size: 12px; font-weight: 400; color: #1a9c62;
}
.dc-lg-live i {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22b573; box-shadow: 0 0 0 3px rgba(34, 181, 115, .18);
}
.dc-lg-phone {
    max-height: 600px; overflow-y: auto;
    padding: 18px; border-radius: 16px;
    background: #edf1f8;
}
body.dc[data-dc-scheme="yaoshi"] .dc-lg-phone { background: var(--dc-soft); }
.dc-lg-phone .dc-h5 {
    min-height: 0; padding-bottom: 22px;
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 10px 28px rgba(20, 25, 40, .14);
}

/* 生成好了 */
.dc-lg-done { border-color: color-mix(in srgb, #22b573 40%, var(--dc-card)); }
.dc-lg-done[hidden] { display: none; }
.dc-lg-done > h3 { display: flex; align-items: center; gap: 8px; color: var(--dc-text); }
.dc-lg-done > h3 > i { color: #22b573; font-size: 16px; }
.dc-lg-done > h3 > em {
    margin-left: auto; font-style: normal; font-weight: 400;
    font-size: 12px; color: var(--dc-muted-2);
}
.dc-lg-link { display: flex; gap: 8px; }
.dc-lg-link input {
    flex: 1; min-width: 0; height: 40px; padding: 0 13px;
    border: 1px solid var(--dc-line); border-radius: 10px;
    background: var(--dc-bg); color: var(--dc-text-2); outline: 0;
}
.dc-lg-link .dc-btn { flex: none; height: 40px; padding: 0 20px; }
.dc-lg-done .dc-lg-acts .dc-btn { flex: none; height: 36px; padding: 0 16px; font-size: 12.5px; }

/* 我的生成记录 */
.dc-lg-rcnt {
    margin-left: auto; font-style: normal; font-weight: 400;
    font-size: 12px; color: var(--dc-muted-2);
}
.dc-lg-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; margin-bottom: 10px;
    border: 1px solid var(--dc-line); border-radius: 12px;
    background: var(--dc-soft);
}
.dc-lg-rm { min-width: 0; flex: 1; }
.dc-lg-rm b {
    display: block; font-size: 13.5px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dc-lg-rm span { display: block; font-size: 12px; color: var(--dc-muted-2); margin-top: 2px; }
.dc-lg-ra { flex: none; display: flex; gap: 6px; }
.dc-btn.sm.danger { border-color: rgba(229, 72, 77, .35); color: #e5484d; background: rgba(229, 72, 77, .07); }
.dc-btn.sm.danger:hover { background: rgba(229, 72, 77, .14); }

/* ---------------- SHA256 手机号加密工具 ---------------- */

.dc-sh {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px; align-items: start;
}
.dc-sh-l, .dc-sh-r { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* 头部徽章（工具名右侧） */
.dc-sh-top { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.dc-sh-local {
    display: inline-flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 14px; border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--kc) 45%, var(--dc-card));
    color: var(--kc); font-size: 12.5px; white-space: nowrap;
}

/* 区块标题前的蓝色圆点 */
.dc-sh-dot { display: inline-flex; align-items: center; }
.dc-sh-dot::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    margin-right: 8px; background: #2f88ff;
    box-shadow: 0 0 0 3px rgba(47, 136, 255, .16);
}

/* 手输框 */
.dc-sh-in {
    width: 100%; padding: 12px 13px;
    border: 1px solid var(--dc-line); border-radius: 10px;
    background: var(--dc-bg); color: var(--dc-text); outline: 0;
    font: 13px/1.9 ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
    resize: vertical;
    transition: border-color .15s ease, background-color .15s ease;
}
.dc-sh-in:focus {
    border-color: color-mix(in srgb, var(--kc) 55%, var(--dc-card));
    background: var(--dc-card);
}

/* 选项胶囊（checkbox 变 chip） */
.dc-sh-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.dc-sh-opt { cursor: pointer; }
.dc-sh-opt input { position: absolute; opacity: 0; pointer-events: none; }
.dc-sh-opt span {
    display: inline-flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--dc-line-2); background: var(--dc-card);
    font-size: 12.5px; color: var(--dc-muted);
    transition: all .14s ease; user-select: none;
}
.dc-sh-opt span::before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    font-size: 10px; opacity: 0; width: 0; overflow: hidden;
    transition: opacity .14s ease, width .14s ease;
}
.dc-sh-opt input:checked + span {
    border-color: var(--kc); color: var(--kc);
    background: color-mix(in srgb, var(--kc) 8%, var(--dc-card));
    font-weight: 500;
}
.dc-sh-opt input:checked + span::before { opacity: 1; width: 12px; }
.dc-sh-opt input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--kc) 25%, transparent); }

.dc-sh-l .dc-fld { margin-bottom: 14px; }
.dc-sh-l .dc-fld:last-child, .dc-sh-l .dc-fld:last-of-type { margin-bottom: 0; }
.dc-sh-l .dc-fld input[type="text"], .dc-sh-l .dc-fld select { width: 100%; }

/* 右侧统计卡 */
.dc-sh-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px; margin-bottom: 12px;
}
.dc-sh-stat {
    padding: 10px 12px; border-radius: 10px;
    background: var(--dc-soft); border: 1px solid var(--dc-line);
}
.dc-sh-stat em { display: block; font-style: normal; font-size: 11.5px; color: var(--dc-muted-2); }
.dc-sh-stat b { display: block; font-size: 19px; font-weight: 700; color: #2f88ff; margin-top: 2px; letter-spacing: -.3px; }
.dc-sh-stat.green b { color: #12b76a; }
.dc-sh-stat.orange b { color: #f79009; }

/* 导出行 */
.dc-sh-export { display: flex; gap: 8px; margin-bottom: 12px; }
.dc-sh-export select {
    flex: 1; min-width: 0; height: 34px; padding: 0 10px;
    border: 1px solid var(--dc-line); border-radius: 8px;
    background: var(--dc-bg); color: var(--dc-text); outline: 0; font-size: 12.5px;
}
.dc-sh-export .dc-btn { flex: none; white-space: nowrap; }

/* 结果表格：hash 太长，允许横向滚动 */
.dc-sh-tblw {
    overflow-x: auto; border: 1px solid var(--dc-line); border-radius: 10px;
    background: var(--dc-card);
}
.dc-sh-tbl { width: 100%; border-collapse: collapse; min-width: 520px; }
.dc-sh-tbl th, .dc-sh-tbl td {
    padding: 9px 12px; font-size: 12.5px; text-align: left;
    border-bottom: 1px solid var(--dc-line); vertical-align: top;
}
.dc-sh-tbl thead th {
    font-size: 11.5px; font-weight: 600; color: var(--dc-muted-2);
    background: var(--dc-soft); white-space: nowrap;
    position: sticky; top: 0;
}
.dc-sh-tbl tbody tr:last-child td { border-bottom: 0; }
.dc-sh-tbl tbody tr.hit td { background: color-mix(in srgb, #12b76a 10%, var(--dc-card)); }
.dc-sh-tbl td:first-child { color: var(--dc-muted-2); width: 34px; }
.dc-sh-hash {
    font: 11.5px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
    color: var(--dc-text-2); word-break: break-all; min-width: 220px;
}
.dc-sh-src {
    display: inline-block; max-width: 130px; padding: 2px 9px; border-radius: 999px;
    background: var(--dc-soft-2); color: var(--dc-muted);
    font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    vertical-align: middle;
}
.dc-sh-src.manual { background: color-mix(in srgb, var(--kc) 12%, var(--dc-card)); color: var(--kc); }
.dc-sh-empty { padding: 22px 14px; text-align: center; font-size: 12.5px; color: var(--dc-muted-2); }
.dc-sh-scrollhint { text-align: center; margin-top: 8px; }

/* 反查提示状态色 */
.dc-fld em.ok { color: #12b76a; }
.dc-fld em.miss { color: #f79009; }

/* 使用提示（黄底） */
.dc-sh-tips {
    background: #fdf6e3; border: 1px solid #f3e3b3;
    font-size: 12.5px; line-height: 2; color: #8a6d1a;
}
.dc-sh-tips b { color: #7a5f10; }
body.dc[data-dc-scheme="yaoshi"] .dc-sh-tips {
    background: rgba(247, 185, 85, .1); border-color: rgba(247, 185, 85, .25); color: #e5c06a;
}
body.dc[data-dc-scheme="yaoshi"] .dc-sh-tips b { color: #f2cf8a; }

/* 页脚 */
.dc-sh-foot { text-align: center; font-size: 12px; color: var(--dc-muted-2); padding: 26px 0 8px; }

/* ---------------- 朋友圈切图器 ---------------- */

/* 上传大卡：蓝色虚线框 */
.dc-gs-up {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    min-height: 250px; border: 2px dashed #2f88ff; border-radius: 14px;
    background: rgba(47, 136, 255, .05); cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.dc-gs-up:hover, .dc-gs-up.over {
    background: rgba(47, 136, 255, .1); border-color: #1f6fe0;
}
.dc-gs-up b { font-size: 17px; font-weight: 700; color: #1f2937; }
.dc-gs-up span { font-size: 13px; color: #98a2b3; }
body.dc[data-dc-scheme="yaoshi"] .dc-gs-up b { color: var(--dc-text); }

/* 切法分段控件 */
.dc-gs-tabs {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 4px; border-radius: 12px; background: var(--dc-soft); gap: 2px;
}
.dc-gs-tabs button {
    height: 42px; border: 0; border-radius: 9px; background: transparent;
    font-size: 13.5px; color: var(--dc-muted); cursor: pointer; white-space: nowrap;
    transition: background-color .14s ease, color .14s ease;
}
.dc-gs-tabs button b { font-weight: 700; color: inherit; }
.dc-gs-tabs button:hover { color: var(--dc-text); }
.dc-gs-tabs button.on {
    background: var(--dc-card); color: var(--kc); font-weight: 600;
    box-shadow: 0 2px 8px rgba(20, 25, 40, .08);
}

/* 参数输入 */
.dc-gs-par { display: block; margin-top: 16px; }
.dc-gs-par > span, .dc-gs-par2 span {
    display: block; font-size: 13px; color: var(--dc-muted); margin-bottom: 7px;
}
.dc-gs-par input {
    width: 100%; max-width: 300px; height: 42px; padding: 0 13px; text-align: center;
    border: 1px solid var(--dc-line); border-radius: 10px;
    background: var(--dc-bg); color: var(--dc-text); outline: 0;
    font-size: 15px; font-weight: 600;
    transition: border-color .15s ease, background-color .15s ease;
}
.dc-gs-par input:focus { border-color: color-mix(in srgb, var(--kc) 55%, var(--dc-card)); background: var(--dc-card); }
.dc-gs-par2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px;
    max-width: 520px;
}
.dc-gs-par2 input {
    width: 100%; height: 42px; padding: 0 13px; text-align: center;
    border: 1px solid var(--dc-line); border-radius: 10px;
    background: var(--dc-bg); color: var(--dc-text); outline: 0;
    font-size: 15px; font-weight: 600;
}
.dc-gs-par2 input:focus { border-color: color-mix(in srgb, var(--kc) 55%, var(--dc-card)); background: var(--dc-card); }

/* 工作区小节 */
.dc-gs-sec { margin-top: 22px; }
.dc-gs-sec > h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.dc-gs-sec > h4 em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--dc-muted-2); margin-left: 8px; }

/* 切割舞台 */
.dc-gs-stage {
    position: relative; border-radius: 12px; overflow: hidden;
    background: var(--dc-soft-2);
    user-select: none; -webkit-user-select: none; touch-action: none;
}
.dc-gs-stage > img { display: block; width: 100%; pointer-events: none; }
.dc-gs-lines { position: absolute; inset: 0; }
.dc-gs-line { position: absolute; z-index: 2; }
.dc-gs-line.h {
    left: 0; right: 0; height: 0; margin-top: -1px;
    border-top: 2px dashed #2f88ff; cursor: ns-resize;
}
.dc-gs-line.v {
    top: 0; bottom: 0; width: 0; margin-left: -1px;
    border-left: 2px dashed #2f88ff; cursor: ew-resize;
}
.dc-gs-line::after {
    content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%;
    background: #fff; border: 2px solid #2f88ff;
    box-shadow: 0 1px 4px rgba(20, 25, 40, .25);
}
.dc-gs-line.h::after { left: 50%; top: 0; transform: translate(-50%, -50%); }
.dc-gs-line.v::after { top: 50%; left: 0; transform: translate(-50%, -50%); }
.dc-gs-line:hover { z-index: 3; }
.dc-gs-line:hover::after { background: #2f88ff; }
.dc-gs-line.sel { z-index: 4; border-color: #ef8f1f; border-width: 2px; }
.dc-gs-line.sel::after { border-color: #ef8f1f; background: #ef8f1f; transform: translate(-50%, -50%) scale(1.15); }
.dc-gs-line.sel:focus { outline: none; }

.dc-gs-segs { margin: 10px 2px; font-size: 12.5px; color: var(--dc-muted-2); line-height: 1.9; }
.dc-gs-lineacts { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-gs-pos {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
    font-size: 13px; color: var(--dc-muted);
}
.dc-gs-pos input {
    width: 96px; height: 34px; padding: 0 10px; text-align: center;
    border: 1px solid var(--dc-line); border-radius: 8px;
    background: var(--dc-bg); color: var(--dc-text); outline: 0;
}
.dc-gs-pos input:not(:disabled) { border-color: color-mix(in srgb, var(--kc) 45%, var(--dc-card)); }
.dc-gs-pos i { font-style: normal; color: var(--dc-muted-2); }

/* 切片预览网格 */
.dc-gs-slices {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.dc-gs-slice {
    position: relative; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--dc-line); background: var(--dc-soft);
    cursor: pointer; min-height: 150px;
    transition: transform .14s ease, box-shadow .14s ease;
}
.dc-gs-slice:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20, 25, 40, .12); }
.dc-gs-slice img {
    display: block; width: 100%; opacity: 0;
    transition: opacity .2s ease;
}
.dc-gs-slice.ready img { opacity: 1; }
.dc-gs-slbar {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 10px 7px;
    background: linear-gradient(transparent, rgba(15, 23, 42, .72));
    color: #fff;
}
.dc-gs-slbar span { font-size: 11.5px; font-weight: 600; letter-spacing: .2px; }
.dc-gs-sldl {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: #1f2937; font-size: 12px;
    opacity: 0; transform: translateY(3px);
    transition: opacity .14s ease, transform .14s ease;
}
.dc-gs-slice:hover .dc-gs-sldl { opacity: 1; transform: translateY(0); }

/* 怎么用 */
.dc-gs-help { margin-top: 16px; }
.dc-gs-help ol { margin: 12px 0 0; padding-left: 22px; }
.dc-gs-help li { margin: 9px 0; font-size: 13.5px; color: var(--dc-text-2); line-height: 1.8; }
.dc-gs-help li::marker { color: var(--kc); font-weight: 700; }
.dc-gs-help b { color: var(--kc); font-weight: 600; }

/* ---------------- H5 分享页（成品页 + 工具页右侧预览共用） ----------------
   4 套主题色只改 --h5c1 / --h5c2 两个变量，组件一律用变量取色。 */

.dc-h5-blue   { --h5c1: #2f88ff; --h5c2: #57b0ff; }
.dc-h5-orange { --h5c1: #ff6a3d; --h5c2: #ff9a5c; }
.dc-h5-green  { --h5c1: #12b76a; --h5c2: #3dd68c; }
.dc-h5-purple { --h5c1: #8b5cf6; --h5c2: #a78bfa; }

.dc-h5 {
    min-height: 100vh; padding: 0 0 40px;
    background: #f6f7f9; color: var(--dc-text);
    font: 14px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}
.dc-h5-top {
    padding: 30px 22px 36px; color: #fff;
    background: linear-gradient(140deg, var(--h5c1, #2f88ff), var(--h5c2, #57b0ff));
}
.dc-h5-top em {
    display: inline-block; font-style: normal; font-size: 12px;
    padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .2);
}
.dc-h5-top h1 { margin: 14px 0 0; font-size: 24px; font-weight: 700; }
.dc-h5-top p { margin: 10px 0 0; font-size: 13.5px; opacity: .92; line-height: 1.8; }
.dc-h5-in { max-width: 680px; margin: -20px auto 0; padding: 0 18px; }
.dc-h5-c {
    background: #fff; border-radius: 16px; padding: 18px; margin-bottom: 14px;
    box-shadow: 0 6px 20px rgba(20, 25, 40, .07);
}
.dc-h5-c h3 {
    position: relative; padding-left: 10px;
    font-size: 14px; font-weight: 700; margin-bottom: 12px;
}
.dc-h5-c h3::before {
    content: ""; position: absolute; left: 0; top: 3px; bottom: 3px;
    width: 3px; border-radius: 2px; background: var(--h5c1, #2f88ff);
}
.dc-h5-imgc { padding: 0; overflow: hidden; }
.dc-h5-imgc img { display: block; width: 100%; border-radius: 0; }
.dc-h5-c img { display: block; width: 100%; border-radius: 10px; }
.dc-h5-txt { font-size: 13.5px; color: var(--dc-text-2); white-space: pre-line; word-break: break-word; }
.dc-h5-txt.none { color: var(--dc-muted-2); }
.dc-h5-kv { display: flex; flex-direction: column; }
.dc-h5-kv > div {
    display: flex; gap: 12px; font-size: 13px;
    padding: 10px 0; border-bottom: 1px dashed var(--dc-line-2);
}
.dc-h5-kv > div:first-child { padding-top: 0; }
.dc-h5-kv > div:last-child { padding-bottom: 0; border-bottom: 0; }
.dc-h5-kv em { font-style: normal; color: var(--dc-muted-2); flex: none; min-width: 78px; }
.dc-h5-kv b { font-weight: 500; color: var(--dc-text-2); word-break: break-all; }
.dc-h5-self {
    width: fit-content; margin: 18px auto 0;
    padding: 5px 16px; border-radius: 999px;
    border: 1px solid var(--h5c1, #2f88ff); color: var(--h5c1, #2f88ff);
    font-size: 12px;
}
.dc-h5-ft { text-align: center; font-size: 12px; color: var(--dc-muted-2); padding: 14px 20px 0; }
.dc-h5-ft b { font-weight: 500; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1200px) {
    .dc-hero-deco { display: none; }
    .dc-tab { padding: 0 11px; }
    .dc-tab span { display: none; }
    .dc-tab i { font-size: 14px; }
    .dc-srch { width: 170px; }
    .dc-upd { display: none; }
    .dc-theme span { display: none; }
    .dc-theme { padding: 0 10px; }
}

@media (max-width: 980px) {
    .dc-grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dc-grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dc-grid.g2 { grid-template-columns: 1fr; }
    .dc-hero { flex-direction: column; align-items: flex-start; gap: 18px; }
    .dc-hero-s { width: 100%; }
    .dc-stat { flex: 1; min-width: 0; }
    .dc-lg { grid-template-columns: 1fr; }
    .dc-lg-phone { max-height: 520px; }
    .dc-sh { grid-template-columns: 1fr; }
    .dc-gs-tabs { overflow-x: auto; grid-template-columns: repeat(5, max-content); }
    .dc-gs-tabs button { padding: 0 18px; }
}

@media (max-width: 720px) {
    .dc-top-in { padding: 0 14px; gap: 6px; }
    .dc-brand b { display: none; }
    .dc-srch { display: none; }
    .dc-wrap { padding: 14px 14px 0; }
    .dc-hero { padding: 20px; border-radius: 16px; }
    .dc-hero-t { font-size: 23px; }
    .dc-grid { gap: 12px; padding-bottom: 30px; }
    .dc-grid.g4, .dc-grid.g3 { grid-template-columns: minmax(0, 1fr); }
    .dc-fields.two { grid-template-columns: 1fr; }
    .dc-qa-t { font-size: 26px; }
    .dc-qa-hero { padding: 30px 18px 26px; }
    .dc-modal { padding: 12px; }
    .dc-modal-c { max-height: 92vh; }
    .dc-h5-in { padding: 0 12px; }
    .dc-theme-pop { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
    .dc-lg-row { flex-direction: column; align-items: stretch; }
    .dc-lg-ra { flex-wrap: wrap; }
    .dc-lg-ra .dc-btn { flex: 1; }
    .dc-sh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dc-sh-top .dc-sh-local { display: none; }
}

/* =====================================================================
   补充：问答提问区 / 轻提示
   ===================================================================== */

/* 两列栅格里的卡片高度不一，按顶部对齐，避免短卡片被拉伸出空白 */
.dc-grid.g2 { align-items: start; }

.dc-qa-ask {
    display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
}
.dc-qa-ask-l { flex: 1; min-width: 240px; }
.dc-qa-ask-l input {
    width: 100%; height: 44px; padding: 0 15px;
    border: 1px solid var(--dc-line); border-radius: 10px;
    background: var(--dc-bg); color: var(--dc-text);
    font-size: 13.5px; font-family: inherit; outline: 0;
}
.dc-qa-ask-l input:focus { border-color: var(--kc); background: var(--dc-card); }
.dc-qa-ask-l span {
    display: block; margin-top: 8px;
    font-size: 12px; color: var(--dc-muted-2);
}
.dc-qa-ask .dc-btn { height: 44px; }

.dc-qa-ok, .dc-qa-err {
    display: flex; align-items: center; gap: 7px;
    margin: 14px 0 0; font-size: 12.5px;
}
.dc-qa-ok { color: #1a9c62; }
.dc-qa-err { color: #e5484d; }

.dc-toast {
    position: fixed; left: 50%; bottom: 42px; z-index: 90;
    transform: translate(-50%, 14px);
    max-width: 76vw; padding: 10px 20px;
    border-radius: 999px;
    background: rgba(22, 26, 34, .92); color: #fff;
    font-size: 13px; line-height: 1.5;
    opacity: 0; pointer-events: none;
    transition: opacity .22s, transform .22s;
}
.dc-toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
    .dc-qa-ask { flex-direction: column; align-items: stretch; }
    .dc-qa-ask-l { min-width: 0; }
    .dc-toast { bottom: 24px; }
}

/* =====================================================================
   工具五：图片压缩
   ===================================================================== */

/* 上传前：左效果演示 + 右上传区 */
.dc-ic-pick {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px;
    align-items: stretch;
}
.dc-ic-demo { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.dc-ic-demo-img {
    position: relative; flex: 1; min-height: 250px; border-radius: 12px; overflow: hidden;
    background:
        radial-gradient(120% 90% at 18% 18%, color-mix(in srgb, var(--kc) 42%, #fff) 0%, transparent 55%),
        radial-gradient(120% 100% at 85% 80%, color-mix(in srgb, var(--kc) 28%, #1f2733) 0%, transparent 60%),
        linear-gradient(160deg, color-mix(in srgb, var(--kc) 30%, #dfe6f2), #20262f 78%);
}
.dc-ic-demo-img::after {
    /* 抽象山形剪影，纯 CSS，不依赖外部图片 */
    content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
    background: linear-gradient(180deg, transparent, rgba(10, 14, 22, .55));
    clip-path: polygon(0 72%, 16% 40%, 30% 62%, 46% 26%, 62% 58%, 78% 34%, 100% 66%, 100% 100%, 0 100%);
}
.dc-ic-badge {
    position: absolute; top: 12px; z-index: 2;
    padding: 3px 10px; border-radius: 999px;
    background: rgba(15, 20, 30, .55); color: #fff; font-size: 11.5px; font-style: normal;
    backdrop-filter: blur(4px);
}
.dc-ic-badge.l { left: 12px; }
.dc-ic-badge.r { right: 12px; }
.dc-ic-demo-line {
    position: absolute; top: 0; bottom: 0; left: 50%; z-index: 1;
    width: 2px; background: rgba(255, 255, 255, .85);
}
.dc-ic-demo-drag {
    position: absolute; top: 50%; left: 50%; z-index: 2;
    transform: translate(-50%, -50%);
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--dc-text); font-size: 13px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.dc-ic-demo-b { display: flex; align-items: center; gap: 10px; }
.dc-ic-demo-b > div {
    flex: 1; padding: 10px 12px; border-radius: 10px; background: var(--dc-soft);
}
.dc-ic-demo-b > div.r { text-align: right; }
.dc-ic-demo-b span { display: block; font-size: 11.5px; color: var(--dc-muted-2); }
.dc-ic-demo-b b { font-size: 18px; font-weight: 700; }
.dc-ic-cut {
    flex: none; display: inline-flex; align-items: center; gap: 4px;
    font-style: normal; font-size: 11.5px; font-weight: 600;
    color: var(--kc);
}
.dc-ic-cut i { font-size: 10px; }
.dc-ic-cut.big {
    display: inline-flex; margin: 2px 0 12px; padding: 4px 12px;
    border-radius: 999px; background: color-mix(in srgb, var(--kc) 10%, var(--dc-card));
}

/* 上传区 */
.dc-ic-up { display: flex; }
.dc-ic-drop {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; padding: 34px 20px; text-align: center;
    border: 2px dashed var(--dc-line-2); border-radius: 12px;
    cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.dc-ic-drop:hover, .dc-ic-drop.drag {
    border-color: var(--kc);
    background: color-mix(in srgb, var(--kc) 5%, var(--dc-card));
}
.dc-ic-drop > i { font-size: 40px; color: var(--kc); }
.dc-ic-drop b { font-size: 15px; font-weight: 600; }
.dc-ic-upbtn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 26px; margin-top: 2px;
    border-radius: 999px; background: var(--kc); color: #fff;
    font-size: 13.5px; font-weight: 500;
}
.dc-ic-drop em { font-style: normal; font-size: 12px; color: var(--dc-muted-2); }
.dc-ic-drop input { display: none; }

/* 四个场景 */
.dc-ic-scene-t {
    margin: 22px 2px 12px; font-size: 15px; font-weight: 700; text-align: center;
}
.dc-ic-scenes {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.dc-ic-scene { padding: 18px 14px; text-align: center; }
.dc-ic-scene i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px; margin-bottom: 10px;
    font-size: 18px;
    background: color-mix(in srgb, var(--kc) 12%, var(--dc-card));
    color: var(--kc);
}
.dc-ic-scene b { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.dc-ic-scene span { display: block; font-size: 12px; color: var(--dc-muted-2); line-height: 1.6; }

/* 上传后：左预览 + 右参数 */
.dc-ic-work {
    display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px;
    align-items: start;
}
.dc-ic-prev { padding: 16px; }
.dc-ic-canvas.checker {
    display: flex; align-items: center; justify-content: center;
    min-height: 280px; max-height: 520px; padding: 14px; border-radius: 10px; overflow: hidden;
    background-color: var(--dc-soft);
    background-image:
        linear-gradient(45deg, color-mix(in srgb, var(--dc-muted-2) 16%, var(--dc-card)) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--dc-muted-2) 16%, var(--dc-card)) 75%),
        linear-gradient(45deg, color-mix(in srgb, var(--dc-muted-2) 16%, var(--dc-card)) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--dc-muted-2) 16%, var(--dc-card)) 75%);
    background-size: 18px 18px; background-position: 0 0, 9px 9px;
}
.dc-ic-canvas canvas {
    max-width: 100%; max-height: 492px; width: auto; height: auto;
    object-fit: contain; box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}
.dc-ic-prev-b {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--dc-line);
}
.dc-ic-prev-b p { font-size: 12.5px; margin: 2px 0; }
.dc-ic-prev-b .l span { color: var(--dc-muted-2); margin-right: 8px; }
.dc-ic-prev-b .l em { font-style: normal; color: var(--dc-text); }
.dc-ic-prev-b .r { text-align: right; }
.dc-ic-prev-b .r b { display: block; font-size: 13px; }
.dc-ic-prev-b .r em {
    display: block; font-style: normal; font-size: 13px; font-weight: 700;
    color: #16a34a;
}
.dc-ic-prev-b .r em.warn { color: #d97706; font-weight: 500; font-size: 12px; }

/* 右侧参数列 */
.dc-ic-side { display: flex; flex-direction: column; gap: 12px; }
.dc-ic-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-ic-pills button {
    height: 32px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--dc-line-2); background: var(--dc-card);
    color: var(--dc-text-2); font-size: 12.5px; cursor: pointer;
    transition: border-color .14s ease, background-color .14s ease, color .14s ease;
}
.dc-ic-pills button:hover { border-color: color-mix(in srgb, var(--kc) 45%, var(--dc-card)); }
.dc-ic-pills button.on {
    border-color: var(--kc);
    background: color-mix(in srgb, var(--kc) 10%, var(--dc-card));
    color: var(--kc); font-weight: 600;
}
.dc-ic-info p {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 0; font-size: 13px;
    border-bottom: 1px dashed var(--dc-line);
}
.dc-ic-info p:last-of-type { border-bottom: 0; }
.dc-ic-info p span { color: var(--dc-muted); }
.dc-ic-info p em { font-style: normal; color: var(--dc-text); font-weight: 500; }
.dc-ic-pngtip {
    display: flex; gap: 7px; align-items: flex-start;
    margin-top: 8px; padding: 8px 10px; border-radius: 8px;
    background: color-mix(in srgb, #f59e0b 9%, var(--dc-card));
    color: #b45309; font-size: 11.5px; line-height: 1.6;
}
.dc-ic-pngtip i { margin-top: 3px; flex: none; }
.dc-ic-go { width: 100%; height: 46px; font-size: 15px; border-radius: 10px; }
.dc-ic-change { width: 100%; height: 38px; border-radius: 10px; }

/* 结果卡 */
.dc-ic-result h4 {
    display: flex; align-items: center; gap: 7px;
    margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #16a34a;
}
.dc-ic-result-r p {
    display: flex; justify-content: space-between;
    padding: 6px 0; font-size: 13px; border-bottom: 1px dashed var(--dc-line);
}
.dc-ic-result-r p:last-child { border-bottom: 0; }
.dc-ic-result-r span { color: var(--dc-muted); }
.dc-ic-result-r b { font-weight: 600; }
.dc-ic-result-r b.ok { color: #16a34a; }
.dc-ic-result .dc-ic-cut { margin-top: 10px; }
.dc-ic-result .dc-btn { width: 100%; height: 40px; margin-top: 10px; border-radius: 10px; }

body.dc[data-dc-scheme="yaoshi"] .dc-ic-pngtip { color: #fbbf24; }

@media (max-width: 960px) {
    .dc-ic-pick, .dc-ic-work { grid-template-columns: 1fr; }
    .dc-ic-scenes { grid-template-columns: repeat(2, 1fr); }
    .dc-ic-demo-img { min-height: 200px; }
}
@media (max-width: 560px) {
    .dc-ic-scenes { grid-template-columns: 1fr 1fr; gap: 8px; }
    .dc-ic-drop { padding: 26px 14px; }
    .dc-ic-pills button { flex: 1; padding: 0 8px; }
}