/* ===================================================================
   365Lab 图片裁剪 — 样式表（扁平现代风 · 电脑/手机自适应 · 亮/暗主题）
   =================================================================== */

:root {
  --accent: #5B5BD6;
  --accent-600: #4B4BC4;
  --accent-weak: #EEEEFB;
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --surface-2: #F1F3F7;
  --border: #E3E7EE;
  --border-strong: #CDD5E0;
  --text: #1F2530;
  --text-2: #59626E;
  --muted: #64707E;        /* was #8A94A2 — only 2.8:1 on --bg, below AA for the 12px hints */
  --danger: #CE3B50;
  /* Surfaces that sit ON TOP of an accent/danger fill. Kept as tokens because the readable
     choice inverts between themes: white on indigo, but dark-on-lavender once dark mode
     lightens --accent from #5B5BD6 to #8B8BF0 (white there was a 2.98:1 failure). */
  --on-accent: #FFFFFF;
  --on-danger: #FFFFFF;
  --ok: #12805A;
  --mask-color: rgba(8, 10, 18, .55);
  --shadow-canvas: 0 4px 20px rgba(0, 0, 0, .18);
  --warn-bg: #FFF6E6;
  --warn-border: #F2C97A;
  --warn-text: #A76A12;
  --check-a: #EDEFF3;
  --check-b: #FFFFFF;
  --shadow: 0 1px 2px rgba(20,25,40,.06), 0 8px 24px rgba(20,25,40,.06);
  --shadow-sm: 0 1px 2px rgba(20,25,40,.08);
  --shadow-lg: 0 2px 6px rgba(20,25,40,.07), 0 24px 48px -12px rgba(20,25,40,.16);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --header-h: 60px;
  --toolbar-h: 116px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --accent: #8B8BF0;
  --accent-600: #7676E8;
  --accent-weak: #26264A;
  --bg: #14161C;
  --surface: #1D2027;
  --surface-2: #262A33;
  --border: #2E333D;
  --border-strong: #3B4250;
  --text: #E7EAF0;
  --text-2: #AEB6C2;
  --muted: #7A8493;
  --danger: #FF6B7E;
  --on-accent: #14161C;
  --on-danger: #14161C;
  --ok: #3DDC97;
  --mask-color: rgba(4, 6, 12, .62);
  --shadow-canvas: 0 6px 26px rgba(0, 0, 0, .55);
  --warn-bg: #2E2517;
  --warn-border: #6B5326;
  --warn-text: #F2C97A;
  --check-a: #22262E;
  --check-b: #1A1D23;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.35);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow-lg: 0 2px 8px rgba(0,0,0,.5), 0 28px 56px -14px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 18px; }
.container.narrow { max-width: 820px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--surface); /* fallback before the color-mix sheen */
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-weight: 800; }
.brand-mark { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; background: var(--accent-weak); border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; color: var(--text); }
.brand-text strong { font-size: 15px; }
.brand-text em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.main-nav { display: flex; gap: 6px; margin-left: 8px; }
.main-nav a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 600; transition: .15s; }
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; transition: .15s; }
.icon-btn:hover:not(:disabled) { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
.icon-btn:disabled { opacity: .38; cursor: not-allowed; }
.icon-btn.active { color: var(--accent); border-color: var(--accent); background: var(--accent-weak); }
.lang-btn { width: 38px; height: 38px; padding: 0; border: 1px solid var(--accent); color: var(--accent); background: transparent; border-radius: 10px; font-weight: 700; font-size: 13px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: .15s; }
.lang-btn:hover { background: var(--accent); color: var(--on-accent); }
#themeBtn .i-moon { display: none; }
html[data-theme="dark"] #themeBtn .i-sun { display: none; }
html[data-theme="dark"] #themeBtn .i-moon { display: block; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius); padding: 11px 18px; font-size: 14px; font-weight: 700; transition: .16s; line-height: 1; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-600); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: var(--surface); color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text); }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-block { width: 100%; padding: 13px; }

/* ── Landing ── */
.tool-section { padding: 22px 0 8px; scroll-margin-top: var(--header-h); }
.landing { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 0 40px; }
.hero-copy { max-width: 720px; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-weak); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.hero-title { font-size: clamp(28px, 5vw, 46px); margin: 0 0 12px; letter-spacing: -.02em; line-height: 1.15; }
.hero-sub { font-size: clamp(15px, 2.2vw, 18px); color: var(--text-2); margin: 0 auto 26px; max-width: 620px; }
.dropzone {
  width: 100%; max-width: 640px; padding: 44px 26px;
  border: 2px dashed var(--border-strong); border-radius: var(--radius-lg);
  background: var(--surface); cursor: pointer; transition: .18s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--accent-weak); }
.dz-icon { color: var(--accent); margin-bottom: 8px; }
.dz-title { font-size: 17px; font-weight: 700; margin: 8px 0 4px; }
.dz-hint { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.dz-privacy { color: var(--muted); font-size: 12.5px; margin: 16px 0 0; }

/* ── Workbench ── */
.workbench { display: grid; grid-template-columns: 1fr 344px; gap: 14px; align-items: start; }
.wb-main { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }

.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.tb-group { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.tb-sep { width: 1px; height: 26px; background: var(--border); margin: 0 2px; }
.tb-spacer { flex: 1 1 auto; }
.mode-tabs { gap: 2px; flex-wrap: wrap; }
.tabmode { border: none; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 600; padding: 7px 11px; border-radius: 8px; white-space: nowrap; transition: .15s; }
.tabmode:hover { background: var(--surface); color: var(--text); }
.tabmode.active { background: var(--accent); color: var(--on-accent); }
.text-btn { border: none; background: transparent; color: var(--text-2); font-weight: 700; font-size: 12px; padding: 6px 8px; border-radius: 8px; }
.text-btn:hover { background: var(--surface); }
.zoom-label { font-size: 12px; color: var(--muted); min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; }

/* Stage */
.stage { position: relative; min-height: min(72vh, 680px); min-height: clamp(300px, calc(100dvh - 320px), 720px); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 26px;
  background-color: var(--check-a);
  background-image: linear-gradient(45deg, var(--check-b) 25%, transparent 25%), linear-gradient(-45deg, var(--check-b) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--check-b) 75%), linear-gradient(-45deg, transparent 75%, var(--check-b) 75%);
  background-size: 22px 22px; background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}
.canvas-wrap { position: relative; display: inline-block; line-height: 0; touch-action: none; box-shadow: var(--shadow-canvas); }
.crop-canvas { display: block; max-width: none; }
.crop-svg { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
.crop-mask { fill: var(--mask-color); }
.crop-outline { fill: none; stroke: #fff; stroke-width: 1.4px; }
/* Circle / rounded / shape modes export the silhouette, so the silhouette is the truthful edge.
   The bounding rectangle is demoted to a dashed guide — it sizes the crop, it is not the crop. */
.crop-shape-outline { fill: none; stroke: var(--accent); stroke-width: 1.8px; paint-order: stroke; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .45)); }
.crop-outline.is-guide { stroke: #fff; stroke-width: 1px; opacity: .45; stroke-dasharray: 5 4; }
.crop-guides line { stroke: rgba(255,255,255,.9); stroke-width: 1px; }
.snap-lines line { stroke: #ff3b6b; stroke-width: 1.5px; }
.crop-handles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.chandle { position: absolute; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; background: #fff; border: 2px solid var(--accent); border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.4); }

/* ==================== R26 光标语义 ====================
   光标统一由 JS 在 .canvas-wrap 上驱动（app.js 的 hoverCursor / setDragCursor）。
   为什么不写在 CSS 里 —— .crop-handles 与 .path-pts 都是 pointer-events:none，指针永远
   穿过它们命中底下的 canvas，而浏览器只认指针正下方那个元素的 cursor。
   所以给 .chandle / .pvertex 写 cursor 或 :hover，一律是安静的死代码：不报错、不生效、
   工具也查不出来。这条踩过一次（8 个方向光标写了很久却从未显示），记在这里防复发。 */
.chandle { transition: transform .12s ease, background .12s ease, border-color .12s ease; }
/* 命中高亮由 JS 按实际计算结果标记（同上的原因，这里收不到 :hover）。
   13px 的白点太素，扫过去不容易意识到「这里能拉」，提亮放大把可发现性补上。 */
.chandle.hot { background: var(--accent); border-color: #fff; transform: scale(1.42); }
/* 拖动期间全局接管光标。只设在 .canvas-wrap 上是不够的：指针一旦拖出画布边缘，cursor 就
   交还给指针正下方的元素，抓取中的手会突然变回箭头，看起来像操作被打断。
   --drag-cursor 由 JS 按 drag.mode 写入（grabbing / crosshair / 方向光标），
   拖动结束立刻摘掉 class，其余时刻完全不参与，不干扰任何既有 cursor。 */
body.is-dragging,
body.is-dragging * { cursor: var(--drag-cursor, grabbing) !important; }
.size-badge { position: absolute; left: 0; top: 0; font-size: 11.5px; font-weight: 700; color: var(--on-accent); background: var(--accent); padding: 2px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; transform: translateY(0); font-variant-numeric: tabular-nums; }
.float-upload { position: absolute; top: 10px; right: 10px; z-index: 6; }

/* Status bar */
.statusbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; padding: 7px 14px; border-top: 1px solid var(--border); background: var(--surface); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.statusbar b { color: var(--text); font-weight: 700; }
.statusbar label { color: var(--muted); font-weight: 600; }
.sb-hint { margin-left: auto; opacity: .8; }

/* Right side */
.wb-side { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; position: sticky; top: calc(var(--header-h) + 12px); max-height: calc(100vh - var(--header-h) - 24px); }
.right-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.rptab { flex: 1 1 0; min-width: 0; border: none; background: transparent; padding: 12px 4px; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; transition: .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rptab:hover { color: var(--text-2); }
.rptab.active { color: var(--accent); border-bottom-color: var(--accent); background: var(--surface); }
.right-pane { overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 14px; }
.card.center { text-align: center; }
.fld-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px; }
.fld-hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.mini-btn { margin-left: auto; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 7px; }
.mini-btn:hover { color: var(--accent); border-color: var(--accent); }
.text-input, .select { width: 100%; padding: 10px 11px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); color: var(--text); font-size: 14px; }
.text-input:focus, .select:focus, input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 91, 214, .18); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.select { min-height: 40px; }
.wh-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wh-cell { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.wh-cell input { width: 100%; padding: 9px 10px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.range { width: 100%; accent-color: var(--accent); height: 32px; }
.chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); padding: 9px 4px; border-radius: 9px; font-size: 13px; font-weight: 700; transition: .14s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ratio-custom { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ratio-custom input { width: 100%; padding: 9px 10px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); color: var(--text); font-size: 14px; }
.ratio-custom span { color: var(--muted); font-weight: 700; }
.shape-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.shapebtn { aspect-ratio: 1; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 9px; display: flex; align-items: center; justify-content: center; transition: .14s; }
.shapebtn:hover { border-color: var(--accent); color: var(--accent); }
.shapebtn.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.warn { display: block; margin: 10px 0 0; padding: 8px 10px; background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); border-radius: 8px; font-size: 12.5px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.seg button { border: none; background: transparent; color: var(--text-2); padding: 9px; border-radius: 7px; font-weight: 700; font-size: 13px; }
.seg button.active { background: var(--accent); color: var(--on-accent); }
.seg.seg-2 { grid-template-columns: repeat(2, 1fr); }
.fld-label.fld-sub { margin-top: 14px; }
.apply-row { display: flex; gap: 10px; }
.apply-row .btn { flex: 1; }
.hint-card { background: var(--accent-weak); border: 1px solid var(--border); border-color: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: var(--radius); padding: 12px 14px; font-size: 13px; color: var(--text-2); }
.hint-card p { margin: 0; }
.preview-box { background: var(--check-a); border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: flex; align-items: center; justify-content: center; min-height: 120px; }
#preview { max-width: 100%; height: auto; border-radius: 4px; }
.muted { color: var(--muted); font-size: 13px; margin: 10px 0 0; font-variant-numeric: tabular-nums; }

/* ── Content sections ── */
.content-section { padding: 54px 0; scroll-margin-top: var(--header-h); }
.content-section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-title { text-align: center; font-size: clamp(22px, 3.6vw, 32px); margin: 0 0 8px; letter-spacing: -.01em; }
.sec-sub { text-align: center; color: var(--text-2); max-width: 620px; margin: 0 auto 36px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; transition: .18s; }
.content-section.alt .feat { background: var(--bg); }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.feat-ic { font-size: 26px; margin-bottom: 12px; }
.feat h3 { margin: 0 0 8px; font-size: 16.5px; }
.feat p { margin: 0; color: var(--text-2); font-size: 14px; }

.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { text-align: center; padding: 20px 14px; }
.step-n { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 19px; margin-bottom: 12px; }
.steps h3 { margin: 0 0 6px; font-size: 16px; }
.steps p { margin: 0; color: var(--text-2); font-size: 14px; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2px 18px; }
.faq-list summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--accent); font-size: 20px; font-weight: 700; }
.faq-list details[open] summary::after { content: '–'; }
.faq-list p { color: var(--text-2); margin: 0 0 14px; }

/* ── Footer ── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0 22px; margin-top: 20px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.brand-foot { margin-bottom: 12px; }
.foot-desc { color: var(--text-2); font-size: 14px; max-width: 340px; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 12px; }
.foot-col a { display: block; color: var(--text-2); font-size: 14px; padding: 5px 0; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* ── Toast ── */
.toast { position: fixed; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); color: var(--on-danger); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .workbench { grid-template-columns: 1fr 312px; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .workbench { grid-template-columns: 1fr; }
  .wb-side { position: static; max-height: none; }
  .right-pane { max-height: none; }
  .stage { min-height: 44vh; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .toolbar::-webkit-scrollbar { display: none; }
  .toolbar .tb-group, .toolbar .mode-tabs { flex: 0 0 auto; }
  .mode-tabs { flex-wrap: nowrap; }
  .tb-spacer { display: none; }  .container { padding: 0 14px; }
  .toolbar { gap: 6px; padding: 8px; }
  .tb-sep { display: none; }
  .tabmode { padding: 6px 9px; font-size: 12.5px; }
  .stage { min-height: 40vh; padding: 14px; }
  .feat-grid, .steps { grid-template-columns: 1fr; }
  .shape-grid { grid-template-columns: repeat(5, 1fr); }
  .sb-hint { display: none; }
  .icon-btn, .lang-btn { width: 36px; height: 36px; }
  .dropzone { padding: 30px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Coarse pointers (touch): larger grab affordances for crop handles + path vertices */
@media (pointer: coarse) {
  .chandle { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 4px; }
  .pvertex { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: 12px; }
}

/* ==================== 首页 / 视觉 ==================== */
.main-nav a.nav-active { color: var(--accent); background: var(--accent-weak); }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 13px; }
.btn-light { background: var(--on-accent); color: var(--accent); }
.btn-light:hover { background: var(--surface-2); }
.center-cta { text-align: center; margin-top: 34px; }

/* Hero */
.hero { padding: 46px 0 30px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-text .hero-title { font-size: clamp(30px, 5vw, 50px); margin: 0 0 14px; letter-spacing: -.02em; line-height: 1.12; }
.hero-text .hero-sub { font-size: clamp(15px, 2vw, 18px); color: var(--text-2); margin: 0 0 26px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-stats { list-style: none; display: flex; gap: 30px; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: 22px; color: var(--accent); font-weight: 800; }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* Hero mock */
.hero-visual { display: flex; justify-content: center; }
.mock { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { height: 34px; background: var(--surface-2); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-bar span:first-child { background: #ff6b7e; } .mock-bar span:nth-child(2) { background: #ffcc5c; } .mock-bar span:nth-child(3) { background: #4cd97b; }
.mock-body { display: grid; grid-template-columns: 1fr 120px; gap: 12px; padding: 14px; }
.mock-photo { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: #dfe6f5; }
.mp-sky { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: linear-gradient(180deg, #cfe0ff 0%, #eaf1ff 60%); }
.mp-sun { position: absolute; top: 16%; right: 18%; width: 34px; height: 34px; border-radius: 50%; background: #ffd166; box-shadow: 0 0 24px #ffd166; }
.mp-hill { position: absolute; bottom: 0; left: -10%; width: 80%; height: 55%; background: #7c83db; border-radius: 50% 50% 0 0 / 60% 60% 0 0; }
.mp-hill2 { position: absolute; bottom: 0; right: -12%; width: 85%; height: 42%; background: #5b63c8; border-radius: 50% 50% 0 0 / 60% 60% 0 0; }
.mock-crop { position: absolute; left: 18%; top: 20%; width: 55%; height: 52%; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(10,12,24,.42); border-radius: 3px; }
.mock-crop .mh { position: absolute; width: 11px; height: 11px; background: #fff; border: 2px solid var(--accent); border-radius: 2px; }
.mock-crop .mh.nw { left: -6px; top: -6px; } .mock-crop .mh.ne { right: -6px; top: -6px; }
.mock-crop .mh.sw { left: -6px; bottom: -6px; } .mock-crop .mh.se { right: -6px; bottom: -6px; }
.mock-rule { position: absolute; left: 33.3%; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.7); }
.mock-rule.r2 { left: 66.6%; }
.mock-dim { position: absolute; top: -22px; left: 0; font-size: 11px; font-weight: 700; color: var(--on-accent); background: var(--accent); padding: 1px 7px; border-radius: 5px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--surface) 70%, transparent); }
.mock-side { display: flex; flex-direction: column; gap: 8px; }
.ms-title { font-size: 11.5px; font-weight: 700; color: var(--text-2); margin-bottom: 2px; }
.ms-chip { font-size: 11px; font-weight: 700; text-align: center; padding: 6px; border-radius: 7px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.ms-chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ms-line { height: 8px; border-radius: 4px; background: var(--surface-2); }
.ms-line.s { width: 60%; }
.ms-btn { margin-top: auto; height: 30px; border-radius: 8px; background: var(--accent); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-600) 100%); color: var(--on-accent); padding: 46px 0; margin-top: 10px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0 0 6px; color: var(--on-accent); }
.cta-inner p { margin: 0; color: var(--on-accent); opacity: .88; max-width: 620px; }

/* ==================== 裁剪工具页 ==================== */
.tool-main { padding: 18px 0 40px; }
.empty { display: flex; align-items: center; justify-content: center; padding: 30px 0 46px; }
.empty-inner { width: 100%; max-width: 620px; padding: 54px 26px; text-align: center; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; transition: .18s; }
.empty:hover .empty-inner, .empty.dragover .empty-inner { border-color: var(--accent); background: var(--accent-weak); }
.empty .dz-icon { color: var(--accent); margin-bottom: 8px; }
.empty .dz-title { font-size: 18px; font-weight: 700; margin: 8px 0 4px; }
.empty .dz-hint { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.empty .dz-privacy { color: var(--muted); font-size: 12.5px; margin: 16px 0 0; }
/* The dropzone now lives inside the stage so the workbench (toolbar + right panels) is usable
   before any upload. It must read as a floating panel over the empty canvas, not a page section. */
.stage #empty { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 6; padding: 16px; background: var(--bg); border-radius: var(--radius-lg); }
.stage #empty .empty-inner { max-width: 440px; padding: 40px 22px; }
.stage #empty .dz-hint { margin-bottom: 16px; }
.stage #empty .dz-title { font-size: 17px; }

/* path vertices */
.path-pts { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.pvertex { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; background: var(--accent); color: #fff; border: 2px solid #fff; border-radius: 50%; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.path-btns { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.path-btns .btn { flex: 1; min-width: 84px; padding: 8px 6px; font-size: 12.5px; }

/* ==================== 响应式（首页） ==================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { order: -1; }
  .mock { max-width: 420px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .hero { padding: 26px 0 10px; }
  .hero-stats { gap: 18px; }
  .hero-stats b { font-size: 19px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { flex-direction: row; flex-wrap: wrap; }
  .ms-title { width: 100%; }
  .ms-chip { flex: 1; }
  .ms-line, .ms-btn { display: none; }
  .empty-inner { padding: 38px 18px; }
}

/* ==================== 批量裁剪 & 比例预设 ==================== */
.right-tabs { flex-wrap: wrap; }
.rptab { min-width: 25%; }
.fav-list { display: flex; flex-wrap: wrap; gap: 7px; }
.favs-empty { font-size: 12.5px; color: var(--muted); }
.fav-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px 6px 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; transition: .14s; }
.fav-chip:hover { border-color: var(--accent); color: var(--accent); }
.fav-del { width: 16px; height: 16px; line-height: 14px; text-align: center; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-weight: 800; font-size: 13px; }
.fav-del:hover { background: var(--danger); color: var(--on-danger); }
.fav-shape { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 10px; cursor: pointer; }
.fav-shape:hover { border-color: var(--accent); color: var(--accent); }
.fav-shape .fav-del { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; line-height: 14px; }

.batch-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 46vh; overflow-y: auto; }
.batch-empty { color: var(--muted); font-size: 13px; text-align: center; margin: 6px 0; }
.batch-item { display: flex; align-items: center; gap: 9px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.batch-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--check-a); flex: none; }
.bi-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bi-name { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-dim { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bi-st { font-size: 13px; font-weight: 800; width: 16px; text-align: center; flex: none; }
.bi-st.done { color: var(--ok); } .bi-st.error { color: var(--danger); } .bi-st.run { color: var(--accent); }
.bi-dl { width: 28px; height: 28px; flex: none; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); border-radius: 7px; font-weight: 800; }
.bi-dl:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.bi-dl:disabled { opacity: .4; cursor: not-allowed; }

/* ==================== R27 批量面板：尺寸策略 / 命名 / 勾选 ====================
   增量叠加，沿用 .card / .sub-field / .sub-label / .text-input 的变量与圆角。
   文件名从 <span> 换成 <input>，所以这里要把输入框"伪装"成一段普通文字：
   常态透明边框、无背景、继承字号字重，只有 hover / focus 才显形 —— 否则一整列
   带边框的框子会把列表压成一张表格，反而更难扫读。
   注意 focus 的描边必须跟 .text-input:focus 用同一套 accent 环，点击过渡时才不会"跳色"。 */
.batch-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.check-line { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; user-select: none; }
.check-line input[type="checkbox"] { width: 15px; height: 15px; flex: none; accent-color: var(--accent); cursor: pointer; }
.batch-stat { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.num-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.num-row .sub-label { flex: none; }
.num-x { color: var(--muted); font-weight: 800; }
.mini-input { flex: none; width: 76px; padding: 8px 9px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; text-align: center; }
.mini-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.batch-prev { margin-top: 10px; padding: 9px 11px; border: 1px dashed var(--border-strong); border-radius: 9px; background: var(--surface-2); font-size: 12px; color: var(--text-2); line-height: 1.75; word-break: break-all; font-variant-numeric: tabular-nums; }
.bi-sel { width: 15px; height: 15px; flex: none; align-self: center; accent-color: var(--accent); cursor: pointer; }
.bi-name-in { width: 100%; padding: 2px 4px; margin: -2px -4px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; }
.bi-name-in:hover { border-color: var(--border); }
.bi-name-in:focus { background: var(--surface); border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.batch-item.off { opacity: .55; }
.batch-item.off img { filter: grayscale(1); }
.batch-prev-none { display: block; opacity: .6; font-size: 11.5px; }

/* 压缩面板：场景建议的「当前设置」与三步引导，刻意做成易读的键值列表而非技术参数表 */
.comp-setting { font-size: 12px; font-weight: 700; color: var(--accent); margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.comp-summary { list-style: none; margin: 6px 0 0; padding: 0; }
.comp-summary li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-2); padding: 4px 0; border-bottom: 1px dashed var(--border); }
.comp-summary li:last-child { border-bottom: none; }
.comp-summary b { color: var(--text); font-variant-numeric: tabular-nums; }
.comp-steps { margin: 6px 0 0; padding-left: 20px; font-size: 12.5px; line-height: 1.75; color: var(--text-2); }
.comp-steps li::marker { color: var(--accent); font-weight: 800; }
.comp-steps + .comp-steps { margin-top: 0; }
.est-line { text-align: center; font-size: 13px; color: var(--muted); margin: 2px 0 4px; }
.est-line b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.sub-field { margin-top: 12px; }
.sub-field:first-of-type { margin-top: 2px; }
.sub-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }

/* Help / shortcuts modal */
.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(8,10,18,.55); backdrop-filter: blur(3px); }
.modal.open { display: flex; }
.modal-box { width: 100%; max-width: 520px; max-height: 86vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px 24px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-head h2 { margin: 0; font-size: 19px; }
.modal-close { width: 34px; height: 34px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); border-radius: 9px; font-size: 20px; line-height: 1; }
.modal-close:hover { color: var(--danger); border-color: var(--danger); }
.kbd-list { display: flex; flex-direction: column; gap: 2px; margin: 0 0 16px; }
.kbd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.kbd-row:last-child { border-bottom: none; }
.kbd-keys { display: flex; gap: 4px; flex: none; }
kbd { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; color: var(--text); }
.modal-note { font-size: 13px; color: var(--text-2); background: var(--accent-weak); border: 1px solid var(--border); border-color: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 10px; padding: 10px 12px; margin: 0; }

/* R72: 长文内提示框（复用 accent 变量，纯叠加） */
.g-tip { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-weak); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 12px 14px; margin: 16px 0; font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.g-tip svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.g-tip p { margin: 0; }
.g-tip strong { color: var(--text); }










/* ===================================================================
   R19 增量美化叠加层
   —— 原则：只做增量，不重写既有规则；颜色一律走 token。
   =================================================================== */

/* ── 1. 统一的键盘焦点环 ──
   此前全站只有一条 input:focus{outline:none}，键盘用户除了输入框几乎看不到焦点位置。 */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.chip:focus-visible, .tabmode:focus-visible, .rptab:focus-visible, .shapebtn:focus-visible,
.fav-chip:focus-visible, .fav-shape:focus-visible, .bi-dl:focus-visible, .icon-btn:focus-visible,
.mini-btn:focus-visible, .text-btn:focus-visible, .btn:focus-visible, .lang-btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.empty-inner:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* 输入框已自带 ring，去掉双环 */
.text-input:focus-visible, .select:focus-visible, input:focus-visible { outline: none; }

/* ── 2. 按压反馈（此前全站 0 条 :active 规则） ── */
.btn:active:not(:disabled) { transform: translateY(1px); }
.icon-btn:active:not(:disabled), .mini-btn:active, .bi-dl:active:not(:disabled) { transform: translateY(1px); }
.chip:active, .shapebtn:active, .fav-chip:active, .fav-shape:active { transform: scale(.96); }
.tabmode:active, .rptab:active, .seg button:active { opacity: .82; }
.btn, .icon-btn, .chip, .shapebtn, .fav-chip, .fav-shape, .bi-dl, .mini-btn, .text-btn {
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .1s ease, box-shadow .16s ease;
}

/* ── 3. 工具条：把「7 个模式 tab」固定为独立一行 ──
   原先 flex-wrap 随机换行：桌面 1240px 下可用宽仅 ~846px 而内容需 ~1160px，
   tab 组与工具组被切成不规则 2~3 行（英文文案下更糟）。现在行结构是确定的。 */
.toolbar { row-gap: 8px; gap: 6px; }
.mode-tabs { flex: 1 1 100%; order: -1; justify-content: flex-start; gap: 3px; padding: 3px; }
.tb-spacer { min-width: 0; }
/* 第二行原本需要 835px 而只有 820px 可用，"选择图片"因此被挤到第三行。
   这里把间隔、分隔线外边距与缩放读数压紧约 36px，让它回到工具组同一行。 */
.tb-sep { margin: 0; }
.zoom-label { min-width: 40px; }
.text-btn { padding: 6px; }

/* 让「选择图片」与模式条同行。它原本排在 DOM 末尾，在 768~1100px 区间被挤成
   孤零零的第三行；借 order 把它提到模式条右侧（模式条让出 116px），工具组整条独占第二行。 */
@media (min-width: 561px) {
  /* flex-grow 必须是 0（写成 1 1 calc(...) 就会出问题）：
     英文下模式条按 basis 排好后还会「长」到把整行填满， flex 的行分配已经完成，
     于是「选择图片」按钮被挤到第二行，三个工具组又被挤成第三行（英文 1280/1100
     实测 3 行、168px）。改成不增长后，模式条稳定停在 calc(100% - 116px)，
     按钮留在第一行，三个工具组在第二行内排开。 */
  /* 预留宽度必须覆盖最宽的「选择图片」按钮：中文 101px、英文 135px，
     加 6px 行间距与 ~8px 分隔线，取 152px 才两边都放得下（早期写 116px 时
     英文按钮被挤到第二行，工具组又被挤到第三行）。 */
  .toolbar .mode-tabs { order: -1; flex: 0 1 calc(100% - 152px); }
  /* :not(.mode-tabs) 是必须的 —— .mode-tabs 自身也带 .tb-group，否则下面这条
     会以同等特异性、更靠后的位置把它重新设成 order:1，把「选择图片」挤到最左边。 */
  .toolbar .tb-sep, .toolbar .tb-group:not(.mode-tabs), .toolbar .tb-spacer { order: 1; }
  .toolbar #outUpload { order: 0; margin-left: auto; }
}

/* 1000~1099px 是唯一「三个工具组塞不下第二行」的区间（含 iPad mini 横屏 1024、
   iPad 10.2 横屏 1080）：工具条可用宽仅 612~660px，而三组 + 分隔线需 667px，
   于是缩放组被单独挤到第三行，工具条长到 168px。
   这里只在该区间把图标按钮从 38px 收到 34px、缩放读数 40→36px，
   三组共省下约 60px，回到两行（34px 仍远高于 WCAG 2.5.8 的 24px 最小命中区）。
   1000px 以下（768 平板竖屏）本来就能放下，不受影响。 */
@media (min-width: 1000px) and (max-width: 1099.98px) {
  .toolbar .icon-btn { width: 34px; height: 34px; }
  .toolbar .zoom-label { min-width: 36px; }
  .toolbar .tb-group { padding: 3px; }
}

/* ── 4. 状态栏：数据胶囊化，窄屏更早让位给读数 ── */
.statusbar { gap: 8px 10px; }
.statusbar > span:not(.sb-hint) {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.sb-hint { position: relative; padding-left: 12px; }
.sb-hint::before {
  content: ''; position: absolute; left: 2px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong);
}
@media (max-width: 1100px) { .sb-hint { display: none; } }

/* ── 5. 滚动条（右栏 / 批量列表 / 弹窗长期滚动） ── */
.right-pane, .batch-list, .modal-box { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.right-pane::-webkit-scrollbar, .batch-list::-webkit-scrollbar,
.modal-box::-webkit-scrollbar, .toolbar::-webkit-scrollbar { width: 8px; height: 8px; }
.right-pane::-webkit-scrollbar-thumb, .batch-list::-webkit-scrollbar-thumb,
.modal-box::-webkit-scrollbar-thumb {
  background: var(--border-strong); border-radius: 99px;
  border: 2px solid transparent; background-clip: content-box;
}
.right-pane::-webkit-scrollbar-thumb:hover, .batch-list::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: content-box; }
.right-pane::-webkit-scrollbar-track, .batch-list::-webkit-scrollbar-track { background: transparent; }

/* ── 6. 卡片微层级：1px 顶部高光，让卡片从面板里浮起 ── */
.card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
html[data-theme="dark"] .card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
html[data-theme="dark"] .content-section.alt .feat { background: var(--surface-2); }

/* ── 7. 首页 hero：低强度光晕 ── */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -10% -5% auto -5%; height: 520px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(760px 340px at 18% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 68%),
    radial-gradient(620px 300px at 88% 8%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; }

/* ── 8. hero mock：双层投影 + 顶栏渐变 + 暗色调光 ── */
.mock { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); transform: translateZ(0); }
.mock-bar { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
html[data-theme="dark"] .mock-photo { filter: brightness(.84) saturate(.92); }
.mock-crop { box-shadow: 0 0 0 9999px var(--mask-color); }
.mock-side { padding-top: 2px; }

/* ── 9. 空状态（整站最高转化位） ── */
.empty-inner { transition: border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.empty-inner:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.empty .dz-icon {
  width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 18px;
  background: var(--accent-weak); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.empty .dz-title { font-size: 19px; }
.empty .dz-hint { max-width: 420px; margin-left: auto; margin-right: auto; }

/* ── 10. 功能图标：统一描边 SVG 容器（替代原先 6 个 emoji） ── */
.feat-ic {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 14px;
  background: var(--accent-weak); color: var(--accent);
  display: flex; align-items: center; justify-content: center; line-height: 0;
  transition: background-color .18s ease, color .18s ease;
}
.feat:hover .feat-ic { background: var(--accent); color: var(--on-accent); }
.feat-ic svg { width: 23px; height: 23px; }

/* ── 11. 标题排版 ── */
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.012em; }
.hero-title, .hero-sub, .sec-title, .sec-sub { text-wrap: balance; }

/* ── 12. 法务页（原先 5 条规则重复内联在两个 HTML 里） ── */
.legal { max-width: 860px; }
.legal-title { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 6px; text-align: left; }
.legal-updated { margin: 0 0 26px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; padding-top: 22px; border-top: 1px solid var(--border); }
.legal h2:first-of-type { margin-top: 26px; }
.legal h3 { font-size: 15.5px; margin: 20px 0 4px; color: var(--text); }
.legal p, .legal li { color: var(--text-2); font-size: 14.5px; }
.legal p strong { color: var(--text); }
.legal code { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.nav-cta { white-space: nowrap; }
.foot-bottom-plain { margin-top: 0; padding-top: 0; border-top: none; }
/* R63：页脚链接与周围文字同色同重（继承 muted 系），悬浮只加深颜色，禁下划线（全站红线） */
.foot-link { color: inherit; font-weight: inherit; }
.foot-link:hover, .foot-link:focus-visible, .foot-link:active { color: var(--text); text-decoration: none; }
@media (max-width: 560px) { .legal h2 { font-size: 19px; } .nav-cta { display: none; } }

/* ── 13. 404 页 ── */
.nf-inner { text-align: center; padding: 56px 18px 64px; }
.nf-code {
  font-size: clamp(76px, 16vw, 128px); font-weight: 900; line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-600) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nf-title { font-size: clamp(21px, 3.2vw, 27px); margin: 12px 0 8px; }
.nf-desc { color: var(--text-2); margin: 0 auto 26px; max-width: 460px; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ── 14. 触屏：24px 删除命中区（视觉小圆点保持不变） ── */
@media (pointer: coarse) {
  .fav-chip .fav-del { position: relative; }
  .fav-chip .fav-del::after { content: ''; position: absolute; inset: -7px; }
}

/* ── 15. 降低动效偏好时还原位移 ── */
@media (prefers-reduced-motion: reduce) {
  .feat:hover, .empty-inner:hover, .btn:active, .icon-btn:active, .chip:active { transform: none; }
}

/* ── 16. 画布舞台：固定高度，切断「放大 → 舞台变大 → fit 变大」的反馈环 ──
   原先 .stage 只有 min-height，内容是超大画布时舞台会被撑高；而 ResizeObserver
   监听 stage 并在尺寸变化时 recomputeFit()，于是"适应窗口"的基准随放大倍数漂移，
   「按 0 回到适应」永远回不到同一个缩放值。现在高度被钳死：
     · 桌面  clamp(320px, 100dvh - 320px, 720px)
     · ≤900 / ≤560 档同样给出确定值
   同时用 safe center 对齐，避免放大后画布左上角被裁到不可达。 */
.stage { min-height: 0; height: clamp(320px, calc(100dvh - 320px), 720px); }
@media (max-width: 900px) { .stage { min-height: 0; height: clamp(280px, calc(100dvh - 250px), 560px); } }
@media (max-width: 560px) { .stage { min-height: 0; height: clamp(260px, calc(100dvh - 220px), 460px); } }
.stage { justify-content: safe center; align-items: safe center; }

/* ── 17. 手机工具条：模式条独占一行横向滑动，工具组换行全部可见 ──
   原先 ≤560 时整条工具条被压成"单行横向滚动"，撤销 / 缩放 / 旋转 / 复位被推到约三屏
   之外，用户几乎不可能发现它们。现在把 tab 条与工具组拆成两个维度：
   模式条自己横向滑动（带右缘渐隐提示），工具组自动换行、全部直接可见。 */
@media (max-width: 560px) {
  .toolbar { flex-wrap: wrap; overflow-x: visible; row-gap: 6px; }
  .toolbar .mode-tabs {
    flex: 1 1 100%; min-width: 0; max-width: 100%;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; scroll-snap-type: x proximity;
    padding-right: 24px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 87%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 87%, transparent 100%);
  }
  .toolbar .mode-tabs::-webkit-scrollbar { display: none; }
  .toolbar .tabmode { scroll-snap-align: center; }
  .toolbar .tb-group { flex: 0 0 auto; }
  .toolbar .tb-spacer { display: none; }
  .toolbar #outUpload { margin-left: auto; }
}

/* ── 18. 输出预览移到画布下方（R24）──
   预览原先锁在右栏「输出」页签里，每次瞄一眼成品都要切页签再切回来。现在它紧贴画布下沿，
   与选区同屏：拖一下裁剪框，眼睛往下扫一眼就能核对结果。
   空图时整条隐藏 —— 复用 R21 已有的 body.has-image 开关，不加新 JS。 */
.out-strip {
  display: none;
  align-items: stretch; gap: 12px;
  margin-top: 10px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
body.has-image .out-strip { display: flex; }
/* 缩略图：高度定死、宽度随图等比（width:auto），既看得清成品又不会拉满整行把位图放大糊掉
   （预览位图最大只有 240px）。120px 见方的方框对 295×413 的竖版证件照只有 73px 宽，太小。 */
.out-strip .out-thumb { flex: 0 0 auto; width: auto; min-width: 118px; max-width: 280px; height: 160px; min-height: 0; padding: 8px; }
.out-strip .out-thumb canvas { width: auto !important; height: auto !important; max-width: 100%; max-height: 100%; }
.out-strip .out-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.out-strip .out-head { display: flex; align-items: baseline; gap: 8px; }
.out-strip .out-head .fld-label { margin: 0; }
.out-strip .out-head b { font-variant-numeric: tabular-nums; font-size: 13.5px; }
.out-strip .out-hint { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* 舞台高度按「整列刚好放进视口」的既有纪律重算：多出预览条，就要把这部分从预算里扣掉，
   否则工具栏 / 画布 / 预览 / 状态栏这条纵列会溢出视口，状态栏被挤到折叠线以下。
   各档预算不是估的，是 _dev/_measure.cjs 量出来的（预览条桌面 142px / ≤560 档 106px）：
     · 1440×900：页头 60 + 工具条 114 + 预览条 142 + 状态栏 42 + 列内间隙 12 = 370 ⇒ 预算 402（余 ~30px）
     · ≤900：同构，预算 400
     · ≤560：工具条换行后高 157~196，预览条 106，而原 460px 上限已把舞台顶住 ⇒ 预算 420，
       让手机端整列总高与改动前持平（不改动前也不满一屏，这里只保证不再多溢出） */
.stage { height: clamp(320px, calc(100dvh - 442px), 720px); }
@media (max-width: 900px) { .stage { height: clamp(280px, calc(100dvh - 440px), 560px); } }
@media (max-width: 560px) {
  .out-strip { padding: 8px 10px; gap: 10px; margin-top: 8px; }
  .out-strip .out-thumb { width: auto; min-width: 84px; max-width: 160px; height: 108px; padding: 6px; }
  .out-strip .out-hint { display: none; } /* 手机上把纵向空间优先让给选区本身 */
  .stage { height: clamp(260px, calc(100dvh - 440px), 460px); }
}

/* ── 19. 模式面板内的卡间距（R34）──
   右栏的纵向节奏原本只有一处来源：.right-pane 的 `gap: 12px`。但 gap 只作用于「直接子元素」，
   而「比例」和「尺寸预设」两个模式面板是先把 2~3 张 .card 装进一个 .panel-mode，再把这个
   包裹层挂进右栏的。.panel-mode 此前没有任何规则（用户报的截图里量到 display:block、gap:normal），
   于是包裹层内部的卡与卡之间是 0 间距：两张卡各带 1px 边框，贴在一起就成了一道 2px 的「双线」。
   结果是同一个纵列里并存两套节奏 —— 包裹层外的「换底色 ↔ 校正角度」是 12px，包裹层内却是 0。
   最扎眼的是「常用尺寸」：它只有一行「暂无收藏」，高 80px，上下两张卡都紧贴它的边框，
   看起来像被挤扁的附属块，而不是一张独立卡片（用户截图的两支箭头正是点在这两道 0 间距上）。
   这里只补一条规则：让 .panel-mode 自己长成与右栏同节奏的纵向 flex 容器，两套节奏并回一套。
   显隐不受影响 —— .panel-mode 的开关由 JS 写内联 `style.display = ''/'none'`（app.js:949），
   活跃态写的是空字符串，不会以内联值压掉这条 class 规则；非活跃态的内联 none 照旧生效。 */
.panel-mode { display: flex; flex-direction: column; gap: 12px; }

/* ── 20. 模式行与工具栏的层次精修（R37）──
   用户圈出的是工具条上的两行：模式页签行（自由裁剪…尺寸预设）与图标按钮行。
   它们的功能没错，问题是「平」—— 七个模式、四组按钮、一个缩放读数全部共用同一种
   灰边框 + 白底，分组只靠 1px 淡分隔线勉强暗示；选中态是一个纯色块，没有前后关系。
   眼睛要逐个比对才能确认「现在是哪个模式、这几颗按钮是一组的」。

   这一节的纪律：**只叠加光影与色彩，绝不碰任何宽高 / 内外边距 / 间距**。
   工具条高度不是自由变量 —— 它是 .stage 视口预算（calc(100dvh - 442px)）里的一项，
   且窄屏会按内容宽度换行。任何 1px 的尺寸增长都会让整列（工具条/画布/预览条/状态栏）
   溢出视口，把状态栏挤到折叠线以下。所以下面全部是 box-shadow / background /
   border-color / color / font-weight 这类不参与布局的属性。
   1px 的柔和阴影用变量分流，暗色主题下同样的一层「白边高光」会变成脏边。 */
:root {
  --accent-glow: rgba(91, 91, 214, .34);   /* 选中态投在底上的紫晕 */
  --inset-soft: rgba(20, 25, 40, .05);     /* 凹槽：按钮组内陷 */
  --raise-soft: rgba(20, 25, 40, .06);     /* 凸起：单个按钮的浅投影 */
}
html[data-theme="dark"] {
  --accent-glow: rgba(139, 139, 240, .42); /* 暗色下 accent 更亮，晕要更实才看得见 */
  --inset-soft: rgba(0, 0, 0, .34);
  --raise-soft: rgba(0, 0, 0, .42);
}

/* 20.1 按钮组：从「四个带边框的方块」变成「一个凹槽」——组内按钮是浮在槽上的 */
.toolbar .tb-group {
  border-radius: 12px;
  box-shadow: inset 0 1px 3px var(--inset-soft);
}

/* 20.2 模式页签：选中项做上下渐变 + 紫晕，一眼看出「当前模式」而非「某个被点过的块」；
        未选中的项 hover 时浮起一层浅影，明示它可以点 */
.mode-tabs .tabmode.active {
  background: linear-gradient(180deg, var(--accent), var(--accent-600));
  box-shadow: 0 2px 7px -2px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .17);
}
.mode-tabs .tabmode:not(.active):hover { box-shadow: var(--shadow-sm); }

/* 20.3 图标按钮：默认一层几乎看不见的浅投影把它从凹槽里托起；
        hover 时边框与图标同时转成主色（比原状只改底色更明确指向「这颗可点」）；
        常驻激活项（如网格参考线）外圈套一道主色淡环，与 hover 区分开 */
.toolbar .icon-btn { box-shadow: 0 1px 1px var(--raise-soft); }
.toolbar .icon-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 2px 8px -3px var(--accent-glow);
}
.toolbar .icon-btn.active {
  box-shadow: 0 0 0 2px var(--accent-weak), 0 1px 1px var(--raise-soft);
}

/* 20.4 分隔线：实心 1px 竖条改成上下淡出的渐变，视线不被打断，分组仍然读得出来 */
.toolbar .tb-sep { background: linear-gradient(180deg, transparent, var(--border-strong), transparent); }

/* 20.5 缩放读数：100% 原来是浮在空白里的灰字，加重字重让它像「一块读数」而不是零散字符。
        宽度安全 —— 容器是 min-width 定宽 + 居中 + tabular-nums，5 字符（如 800%）也在框内。 */
.toolbar .zoom-label { color: var(--text-2); font-weight: 700; }

/* 20.6 右侧「选择图片」：与图标按钮同一套光影语言，hover 转主色以强调它是这一行的出口 */
.toolbar #outUpload { box-shadow: 0 1px 1px var(--raise-soft); }
.toolbar #outUpload:hover { border-color: var(--accent); color: var(--accent); }



/* ── R52 兼容回退层：不支持 aspect-ratio 的旧内核里，形状钮不能塌成一条线 ── */
.shapebtn { min-height: 44px; }
/* ── R57: 内容页语言分区 —— head.js 已写 html[data-lang]，导航/正文/页脚单语显隐 ── */
html[data-lang="zh"] .bi-en { display: none; }
html[data-lang="en"] .bi-zh { display: none; }

/* ── R59: 工具页页脚 = 首页同款方框行，压缩上下死空白 ──
   首页那条线是 .foot-bottom 自己的 border-top；工具页无四列区，
   故外壳 .site-footer 不再重复画线，只留单条盒线与紧凑间距。 */
.tool-page .site-footer { border-top: none; padding: 0 0 20px; margin-top: 12px; }
.tool-page .foot-bottom { margin-top: 0; }

/* ── R64: 工具页底部文字推荐位 —— 纯文字整卡可点，禁推广标签与卡内 CTA；四卡四种样式 ── */
.ad-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: 100%; max-width: 1240px; margin: 22px auto 0; padding: 0 18px; box-sizing: border-box; }
.ad-slot { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-height: 72px; justify-content: center; text-decoration: none; color: var(--text); border-radius: 14px; border: 1px solid var(--border); transition: transform .14s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease; }
.ad-slot strong { font-size: 14.5px; line-height: 1.3; }
.ad-slot span { font-size: 12px; line-height: 1.5; color: var(--muted); }
.ad-slot:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 6px 18px rgba(20, 20, 60, .08); }
.ad-slot:hover strong { color: var(--accent); }
.ad-slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 外框四卡统一；差异全在背景与文字 */
.ad-slot.v1 { background: var(--surface); }
.ad-slot.v1 strong { font-size: 14.5px; }
.ad-slot.v2 { background: var(--accent-weak); }
.ad-slot.v2 strong { color: var(--accent); }
.ad-slot.v3 { background: linear-gradient(120deg, var(--surface) 30%, var(--accent-weak)); }
.ad-slot.v3 strong { letter-spacing: .6px; }
.ad-slot.v4 { background: radial-gradient(130% 150% at 0% 0%, var(--accent-weak), transparent 55%), var(--surface); }
.ad-slot.v4 strong { font-weight: 800; font-size: 15px; }
@media (max-width: 900px) { .ad-slots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ad-slots { grid-template-columns: 1fr; } }

/* ── R68: 教程中心 / 文章页 —— 尺寸对照表与文章卡片（增量叠加，沿用既有变量与圆角） ── */
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 14px; line-height: 1.55; }
.legal .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0 22px; }
.legal .table-wrap table { margin: 0; }
.legal th, .legal td { border: 1px solid var(--border); padding: 9px 13px; text-align: left; vertical-align: top; }
.legal thead th { background: var(--surface-2); font-weight: 700; color: var(--text); white-space: nowrap; }
.legal tbody tr:nth-child(odd) { background: var(--surface); }
.legal tbody tr:hover { background: var(--accent-weak); }
.legal td b, .legal th b { color: var(--text); }
.legal caption { caption-side: bottom; font-size: 12.5px; color: var(--muted); padding-top: 8px; text-align: left; }
html[data-theme="dark"] .legal thead th { background: rgba(255, 255, 255, .05); }

/* 文章卡片：教程中心 hub 与首页「热门教程」共用 */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 10px 0 6px; }
.post-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 16px; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20, 22, 50, .10); border-color: var(--accent); }
.post-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.post-card .pc-kicker { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--accent); }
.post-card h3 { font-size: 16.5px; margin: 0; color: var(--text); line-height: 1.3; }
.post-card p { font-size: 13.5px; color: var(--text-2); margin: 0; line-height: 1.6; }
.post-card .pc-go { margin-top: auto; padding-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.post-card .pc-go svg { transition: transform .15s ease; }
.post-card:hover .pc-go svg { transform: translateX(3px); }
.post-card .pc-read { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 860px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

/* 教程中心 hub 顶部分类导语 */
.guides-intro { color: var(--text-2); font-size: 14.5px; margin: 0 0 22px; }

/* 文章目录 TOC（R69，增加内链与停留时长） */
.toc { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin: 0 0 28px; }
.toc__title { font-size: 12.5px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin: 7px 0; }
.toc a { color: var(--brand); text-decoration: none; font-size: 14.5px; }
.toc a:hover { text-decoration: underline; }
.legal h2 { scroll-margin-top: 92px; }
@media (max-width: 560px) { .toc { padding: 14px 16px; } }

/* 文章「最后更新」元信息（E-E-A-T / 新鲜度信号） */
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--text-2); margin: -2px 0 20px; }
.article-meta .dot { opacity: .45; }
.article-meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; opacity: .7; }

/* 相关阅读（文章内链块） */
.rel-articles { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.rel-title { font-size: 18px; font-weight: 700; margin: 0 0 16px; color: var(--text); }
.rel-articles .post-grid { margin: 0; }
@media (max-width: 720px) { .rel-articles .post-grid { grid-template-columns: 1fr; } }


/* ════════ R78 overlay：导航右移 / 特性卡横排 / 分页 / 卡片美化 / 相关阅读对齐 ════════ */

/* 顶部菜单靠右显示（header-actions 随其后） */
.main-nav { margin-left: auto; }
.header-actions { margin-left: 0; }

/* 首页特性卡：标题移到图标右侧（图标纵向跨标题+描述，整体居中对齐） */
.feat { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.feat .feat-ic { grid-column: 1; grid-row: 1 / span 2; margin-bottom: 0; align-self: center; }
.feat h3 { grid-column: 2; grid-row: 1; margin: 0 0 4px; }
.feat p { grid-column: 2; grid-row: 2; }
@media (max-width: 560px) {
  .feat { grid-template-columns: auto 1fr; column-gap: 12px; }
}

/* 教程中心分页控件（js/paginate.js 动态插入） */
.pg-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 24px 0 8px; }
.pg-btn { min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 10px; font-weight: 700; font-size: 14px; line-height: 1; cursor: pointer; transition: .15s; }
.pg-btn:hover:not(:disabled):not(.pg-active) { border-color: var(--accent); color: var(--accent); background: var(--surface-2); }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }
.pg-btn.pg-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 教程卡片美化：顶部渐变条 + 标题变色 + kicker 小圆点 */
.post-card { position: relative; overflow: hidden; }
.post-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: 0; transition: opacity .18s ease; }
.post-card:hover::before { opacity: 1; }
.post-card:hover h3 { color: var(--accent); }
.post-card .pc-kicker { display: inline-flex; align-items: center; gap: 6px; }
.post-card .pc-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); opacity: .75; }

/* 文章页「相关阅读」与正文同宽（对齐 container.narrow：820 + 18px 内边距） */
.rel-articles { max-width: 820px; margin-left: auto; margin-right: auto; padding-left: 18px; padding-right: 18px; }

/* ── R83 overlay：特性卡图标放大（与右侧文字块高度相近）+ 步骤标题移到数字右侧 ── */
.feat-ic { width: 58px; height: 58px; border-radius: 15px; }
.feat-ic svg { width: 28px; height: 28px; }
.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; text-align: left; }
.steps li .step-n { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.steps li h3 { grid-column: 2; grid-row: 1; margin: 0; }
.steps li p { grid-column: 1 / -1; grid-row: 2; margin-top: 8px; }
@media (max-width: 760px) {
  .feat-ic { width: 50px; height: 50px; border-radius: 13px; }
  .feat-ic svg { width: 25px; height: 25px; }
}
