/* ============================================================
 * MockupForge — Global Styles
 * 干净、现代、自适应（桌面 / 平板 / 手机）
 * ============================================================ */
:root {
  --brand: #FF5C39;
  --brand-dark: #E8491F;
  --brand-soft: #FFF0EB;
  --ink: #1C2433;
  --ink-2: #5B6472;
  --ink-3: #8A93A3;
  --line: #E7E4DC;
  --bg: #F7F6F2;
  --card: #FFFFFF;
  --mint: #16A085;
  --mint-soft: #E7F4F0;
  --gold: #C9A227;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(28, 36, 51, 0.08);
  --shadow-sm: 0 3px 12px rgba(28, 36, 51, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(255, 92, 57, .32); }
.btn-primary:hover { background: var(--brand-dark); }
.btn.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.is-active:hover { background: var(--brand-dark); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: #cfc9bd; background: #FBFBF9; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 246, 242, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; gap: 18px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.3px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #FF8B5C);
  display: grid; place-items: center; color: #fff; flex: none;
}
.logo-mark svg { width: 20px; height: 20px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 8px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: #EFEDE7; }
.nav a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: flex; background: #EFEDE7; border-radius: 999px; padding: 3px;
}
.lang-switch button {
  padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: all .15s;
}
.lang-switch button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.nav-toggle { display: none; }
.nav-toggle svg { width: 22px; height: 22px; }

/* 移动端导航抽屉 */
@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #EFEDE7; }
  .nav {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; display: none;
    box-shadow: 0 20px 40px rgba(28,36,51,.12);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
}

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--card); margin-top: 40px; }
.footer-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 48px 20px 28px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.footer-brand p { color: var(--ink-2); font-size: 14px; margin-top: 10px; max-width: 280px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; color: var(--ink-2); font-size: 14px; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 20px 26px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--ink-3); font-size: 13px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- 首页 Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint-soft); color: #0E7A64; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero-badge svg { width: 15px; height: 15px; }
.hero h1 { font-size: 46px; line-height: 1.15; letter-spacing: -1px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub { color: var(--ink-2); font-size: 17px; margin: 18px 0 28px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.trust-item svg { width: 17px; height: 17px; color: var(--mint); }

/* Hero 右侧演示样机 */
.hero-demo { position: relative; }
.hero-demo-inner {
  background: var(--card); border-radius: 24px; padding: 18px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  position: relative;
}
.hero-demo-canvas { width: 100%; border-radius: 16px; overflow: hidden; background: #F1EFEA; aspect-ratio: 1/1; }
.hero-demo-canvas canvas { width: 100%; height: 100%; }
.hero-demo-float {
  position: absolute; background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
}
.hero-demo-float svg { width: 18px; height: 18px; }
.float-1 { top: -14px; right: -8px; color: var(--mint); }
.float-2 { bottom: -14px; left: -8px; color: var(--brand); }

/* ---------- 区块标题 ---------- */
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.sec-head h2 { font-size: 32px; letter-spacing: -.6px; font-weight: 800; }
.sec-head p { color: var(--ink-2); margin-top: 10px; font-size: 16px; }

/* ---------- 步骤 ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; position: relative; box-shadow: var(--shadow-sm);
}
.step-num {
  width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- 功能网格 ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 22px; transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon.mint { background: var(--mint-soft); color: var(--mint); }
.feature-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature-card p { color: var(--ink-2); font-size: 14px; }

/* ---------- 模板展示 ---------- */
.showcase-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.showcase-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px; text-align: center; transition: transform .2s, box-shadow .2s;
}
.showcase-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.showcase-card .thumb { border-radius: 12px; overflow: hidden; background: #F1EFEA; aspect-ratio: 1/1; margin-bottom: 10px; }
.showcase-card .thumb img, .showcase-card .thumb canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase-card .name { font-size: 14px; font-weight: 600; }
.showcase-card .cat { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Pro 区块 ---------- */
.pro-band {
  background: linear-gradient(135deg, #1C2433, #2A3550);
  color: #fff; border-radius: 24px; padding: 44px 40px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
  box-shadow: 0 20px 50px rgba(28,36,51,.25);
}
.pro-band h2 { font-size: 28px; letter-spacing: -.5px; }
.pro-band p { color: #B9C2D4; margin-top: 10px; font-size: 15px; }
.pro-list { list-style: none; }
.pro-list li {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px;
}
.pro-list li:last-child { border-bottom: none; }
.pro-list svg { width: 18px; height: 18px; color: #5EE6C2; flex: none; }
.pro-badge {
  display: inline-block; font-size: 12px; font-weight: 700; color: #FFD48A;
  background: rgba(255,212,138,.12); border: 1px solid rgba(255,212,138,.35);
  border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: 2px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 22px; font-weight: 600; font-size: 15.5px; text-align: left;
}
.faq-q svg { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s; flex: none; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 22px 18px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--brand-soft); border: 1px solid #FFDCCE; border-radius: 24px;
  text-align: center; padding: 48px 30px;
}
.cta-band h2 { font-size: 28px; letter-spacing: -.5px; }
.cta-band p { color: var(--ink-2); margin: 10px 0 24px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-strip { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 38px; }
}
@media (max-width: 760px) {
  .section { padding: 44px 0; }
  .hero { padding: 40px 0 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-demo { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .showcase-strip { grid-template-columns: repeat(2, 1fr); }
  .pro-band { grid-template-columns: 1fr; padding: 32px 24px; }
  .sec-head h2 { font-size: 26px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 15.5px; }
}

/* ============================================================
 * 工具页
 * ============================================================ */
.tool-shell { max-width: 1440px; margin: 0 auto; padding: 24px 20px 60px; }
.tool-head { text-align: center; margin-bottom: 24px; }
.tool-head h1 { font-size: 28px; letter-spacing: -.5px; }
.tool-head p { color: var(--ink-2); margin-top: 6px; }

.tool-layout {
  display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px;
  gap: 20px; align-items: start;
}

/* 左栏：模板库 */
.tool-side-mask { display: none; } /* 移动端抽屉遮罩，桌面不占网格位 */
.tool-side {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; position: sticky; top: 84px; max-height: calc(100vh - 100px);
  display: flex; flex-direction: column;
}
.side-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.side-title h2 { font-size: 15px; font-weight: 700; }
.side-title .count { font-size: 12px; color: var(--ink-3); background: #F0EEE8; padding: 2px 9px; border-radius: 999px; }
.search-box { position: relative; margin-bottom: 12px; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); }
.search-box input {
  width: 100%; padding: 9px 12px 9px 36px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #FAF9F6; outline: none; transition: border .15s;
}
.search-box input:focus { border-color: var(--brand); background: #fff; }
.cat-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: #F0EEE8; color: var(--ink-2); transition: all .15s;
}
.chip:hover { background: #E7E4DC; }
.chip.is-active { background: var(--ink); color: #fff; }
.tpl-list { overflow-y: auto; flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-right: 2px; }
.tpl-card {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer;
  transition: all .15s; position: relative; background: #fff;
}
.tpl-card:hover { border-color: #cfc9bd; }
.tpl-card.is-active { border-color: var(--brand); background: var(--brand-soft); }
.tpl-card .t-thumb { aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: #F1EFEA; margin-bottom: 6px; }
.tpl-card .t-thumb img, .tpl-card .t-thumb canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpl-card .t-name { font-size: 12px; font-weight: 600; text-align: center; padding: 2px 0 4px; line-height: 1.3; }
.tpl-star {
  position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 999px;
  background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.14);
  color: var(--ink-3); transition: all .15s;
}
.tpl-star:hover { transform: scale(1.12); }
.tpl-star svg { width: 15px; height: 15px; }
.tpl-star.faved { color: var(--gold); }
.tpl-star.faved svg { fill: var(--gold); }
.tpl-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-3); font-size: 13px; padding: 30px 8px; }

/* 中栏：画布 */
.tool-main { min-width: 0; }
.stage-wrap {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px; box-shadow: var(--shadow-sm);
}
.stage-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.stage-info { flex: 1; min-width: 0; }
.stage-info .pname { font-weight: 700; font-size: 15px; }
.stage-info .pdesc { font-size: 12.5px; color: var(--ink-3); }
.stage-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stage-canvas {
  position: relative; border-radius: 14px; overflow: hidden; background: #EDEBE6;
  aspect-ratio: 1/1; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.stage-canvas.dragging { cursor: grabbing; }
.stage-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.drop-hint {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(255,255,255,.88); border: 2.5px dashed #cfc9bd; border-radius: 14px; text-align: center;
  z-index: 5; pointer-events: none;
}
.drop-hint.show { display: flex; }
.drop-hint .inner p:first-child { font-weight: 700; font-size: 16px; }
.drop-hint .inner p:last-child { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.drag-hint {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(28,36,51,.72); color: #fff; font-size: 11.5px; padding: 5px 12px;
  border-radius: 999px; white-space: nowrap; z-index: 4; pointer-events: none;
  opacity: 0; transition: opacity .3s;
}
.stage-canvas:hover .drag-hint, .stage-canvas.hint-on .drag-hint { opacity: 1; }
.empty-state {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 24px; z-index: 3; pointer-events: none; color: var(--ink-2);
}
.empty-state svg { width: 46px; height: 46px; color: #C9C4B8; }
.empty-state p { font-size: 14px; max-width: 300px; }
.empty-state button { pointer-events: auto; }

/* 颜色 / 场景 行 */
.color-row, .scene-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.row-label { font-size: 12.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; min-width: 88px; }
.color-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.color-dot {
  width: 30px; height: 30px; border-radius: 999px; border: 2.5px solid #fff;
  box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; transition: transform .12s;
  position: relative;
}
.color-dot:hover { transform: scale(1.14); }
.color-dot.is-active { box-shadow: 0 0 0 2.5px var(--brand); transform: scale(1.08); }
.color-dot .cd-label {
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 9;
}
.color-dot:hover .cd-label { opacity: 1; }
.scene-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.scene-chip {
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); transition: all .15s;
}
.scene-chip:hover { border-color: #cfc9bd; }
.scene-chip.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }

/* 右栏：调整 & 导出 */
.tool-panel { display: flex; flex-direction: column; gap: 16px; }
.panel-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px;
}
.panel-card h3 {
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between;
}
.panel-card h3 .hint { font-size: 11.5px; text-transform: none; font-weight: 500; color: var(--ink-3); }
.control { margin-bottom: 14px; }
.control:last-child { margin-bottom: 0; }
.control-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.control-label .val { color: var(--brand); font-variant-numeric: tabular-nums; }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: #E7E4DC; outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 999px; background: var(--brand);
  border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.22); cursor: pointer;
}
input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 999px; background: var(--brand);
  border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.22); cursor: pointer;
}
.ctrl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* 上传区 */
.upload-zone {
  border: 2px dashed var(--line); border-radius: 12px; padding: 14px;
  display: flex; align-items: center; gap: 12px; background: #FAF9F6; margin-bottom: 12px;
  transition: border .15s, background .15s;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--brand); background: var(--brand-soft); }
.upload-zone .u-info { flex: 1; min-width: 0; }
.upload-zone .u-info .u-title { font-size: 13.5px; font-weight: 700; }
.upload-zone .u-info .u-sub { font-size: 12px; color: var(--ink-3); }
.upload-zone .u-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.upload-zone .u-icon svg { width: 20px; height: 20px; }
.sample-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sample-btn {
  display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); transition: all .15s;
}
.sample-btn:hover { border-color: var(--brand); color: var(--brand); }
.sample-btn .s-dot { width: 22px; height: 22px; border-radius: 6px; overflow: hidden; flex: none; background: #F1EFEA; }
.sample-btn .s-dot img { width: 100%; height: 100%; object-fit: cover; }

/* 保存的设计 */
.saved-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.saved-card {
  border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff;
  position: relative;
}
.saved-card .s-thumb { aspect-ratio: 1/1; background: #F1EFEA; }
.saved-card .s-thumb img, .saved-card .s-thumb canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.saved-card .s-name {
  font-size: 10.5px; font-weight: 600; padding: 6px 7px 4px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.saved-card .s-actions { display: flex; gap: 4px; padding: 2px 6px 6px; }
.saved-card .s-actions button {
  flex: 1; font-size: 10.5px; padding: 4px 0; border-radius: 6px; background: #F0EEE8; font-weight: 600;
  color: var(--ink-2);
}
.saved-card .s-actions button:hover { background: #E7E4DC; }
.saved-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-3); font-size: 12.5px; padding: 14px 4px; line-height: 1.5; }

/* 导出 */
.export-size { display: flex; gap: 6px; margin-bottom: 12px; }
.size-btn {
  flex: 1; padding: 8px 4px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 700; color: var(--ink-2); text-align: center; transition: all .15s;
}
.size-btn small { display: block; font-size: 10px; font-weight: 500; color: var(--ink-3); }
.size-btn.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.export-opt { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 13px; font-weight: 500; cursor: pointer; }
.export-opt input { width: 17px; height: 17px; accent-color: var(--brand); }
.print-info {
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3);
  background: #F7F5F0; border-radius: 10px; padding: 9px 12px; margin-bottom: 12px;
}
.print-info svg { width: 15px; height: 15px; color: var(--mint); flex: none; }

/* toast */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--ink); color: #fff; font-size: 13.5px; padding: 11px 20px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); display: flex; align-items: center; gap: 8px;
  animation: toastIn .25s ease; max-width: 90vw;
}
.toast svg { width: 16px; height: 16px; color: #5EE6C2; }
.toast.err svg { color: #FF8B7A; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* 工具页移动端 */
.stage-bar #btnTemplates { display: none; }
@media (max-width: 1180px) {
  .tool-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .tool-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 860px) {
  .stage-bar #btnTemplates { display: inline-flex; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-side {
    position: fixed; top: 64px; bottom: 0; left: 0; width: min(88vw, 360px); z-index: 120;
    border-radius: 0 20px 20px 0; box-shadow: 20px 0 50px rgba(0,0,0,.18);
    transform: translateX(-105%); transition: transform .25s ease; max-height: none;
  }
  .tool-side.open { transform: translateX(0); }
  .tool-side-mask {
    position: fixed; inset: 64px 0 0 0; background: rgba(28,36,51,.4); z-index: 110;
    display: none;
  }
  .tool-side-mask.show { display: block; }
  .tool-panel { grid-template-columns: 1fr; }
  .tool-head h1 { font-size: 23px; }
}
@media (max-width: 560px) {
  .tool-shell { padding: 16px 12px 40px; }
  .stage-wrap { padding: 10px; }
  .stage-info .pdesc { display: none; }
  .saved-list { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
 * 内容页（关于 / 联系 / 隐私 / 收藏）
 * ============================================================ */
.page { max-width: 900px; margin: 0 auto; padding: 48px 20px 40px; }
.page-head { text-align: center; margin-bottom: 36px; }
.page-head h1 { font-size: 34px; letter-spacing: -.6px; font-weight: 800; }
.page-head p { color: var(--ink-2); margin-top: 10px; font-size: 16px; }
.page-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.page-card h2 { font-size: 20px; margin-bottom: 12px; }
.page-card h3 { font-size: 16px; margin: 18px 0 8px; }
.page-card p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 10px; }
.page-card a { color: var(--brand); font-weight: 600; }
.page-card a:hover { text-decoration: underline; }
.page-card ul { padding-left: 20px; color: var(--ink-2); font-size: 14.5px; margin-bottom: 10px; }
.page-card ul li { margin-bottom: 6px; }

/* 故事 */
.story-block { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 6px; }
.why-card { background: #FAF9F6; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.why-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.why-card p { font-size: 13.5px; }
@media (max-width: 760px) {
  .story-block { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .page { padding-top: 32px; }
  .page-card { padding: 22px; }
}

/* 时间轴（路线图） */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--brand), var(--brand-soft));
}
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -25px; top: 7px; width: 12px; height: 12px;
  border-radius: 999px; background: #fff; border: 3px solid var(--brand);
  box-sizing: border-box;
}
.tl-item .t { font-weight: 700; font-size: 15px; color: var(--brand); }
.tl-item .d { color: var(--ink-2); font-size: 14px; margin-top: 3px; }

/* 联系表单 */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #FAF9F6; outline: none; transition: border .15s; resize: vertical;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--brand); background: #fff; }
.form-field textarea { min-height: 130px; }
.contact-aside { display: flex; flex-direction: column; gap: 14px; }
.contact-note {
  font-size: 12.5px; color: var(--ink-3); background: #F7F5F0; border-radius: 10px;
  padding: 12px 14px; display: flex; gap: 9px; align-items: flex-start;
}
.contact-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--mint); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* 收藏页 */
.fav-section { margin-bottom: 34px; }
.fav-section > h2 { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.fav-section > h2 svg { width: 19px; height: 19px; color: var(--gold); }
.fav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fav-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; text-align: center; position: relative; transition: transform .15s, box-shadow .15s;
}
.fav-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.fav-card .f-thumb { aspect-ratio: 1/1; border-radius: 9px; overflow: hidden; background: #F1EFEA; margin-bottom: 8px; }
.fav-card .f-thumb img, .fav-card .f-thumb canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.fav-card .f-name { font-size: 13.5px; font-weight: 600; }
.fav-card .f-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.fav-card .f-actions { display: flex; gap: 6px; margin-top: 9px; }
.fav-card .f-actions .btn { flex: 1; padding: 7px 4px; font-size: 12px; }
.fav-empty {
  grid-column: 1 / -1; text-align: center; color: var(--ink-3); font-size: 14px;
  background: #FAF9F6; border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 36px 20px;
}
.fav-empty .btn { margin-top: 14px; }
@media (max-width: 900px) { .fav-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .fav-grid { grid-template-columns: repeat(2, 1fr); } }

/* 隐私政策 */
.privacy-meta { text-align: center; font-size: 13px; color: var(--ink-3); margin: -22px 0 26px; }

/* 工具入口卡片（首页「工具矩阵」） */
.tools-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-entry {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start; transition: transform .15s, box-shadow .15s;
  position: relative;
}
.tool-entry:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tool-entry .te-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.tool-entry .te-icon svg { width: 23px; height: 23px; }
.tool-entry h3 { font-size: 16px; }
.tool-entry > div:nth-child(2) { min-width: 0; padding-right: 84px; }
.tool-entry p { font-size: 13.5px; color: var(--ink-2); margin-top: 5px; }
.tool-entry .te-tag { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tool-entry .te-tag.hot { background: var(--brand-soft); color: var(--brand); }
.tool-entry .te-tag.soon { background: #F0EEE8; color: var(--ink-3); }
.tool-entry .te-star {
  position: absolute; top: 18px; right: 16px; width: 30px; height: 30px; border-radius: 999px;
  background: #F0EEE8; display: grid; place-items: center; color: var(--ink-3); transition: all .15s;
}
.tool-entry .te-star:hover { transform: scale(1.12); }
.tool-entry .te-star svg { width: 15px; height: 15px; }
.tool-entry .te-star.faved { background: #FDF3D7; color: var(--gold); }
.tool-entry .te-star.faved svg { fill: var(--gold); }
.tool-entry .te-arrow { margin-top: 12px; display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-size: 13px; font-weight: 700; }
.tool-entry .te-arrow svg { width: 14px; height: 14px; }
@media (max-width: 860px) { .tools-matrix { grid-template-columns: 1fr; } }

/* 无障碍 & 杂项 */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  background: var(--ink); color: #E8EBF2; border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 16px 50px rgba(0,0,0,.35); max-width: 640px; margin: 0 auto;
  display: none; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13.5px;
}
.consent-banner.show { display: flex; }
.consent-banner p { flex: 1; min-width: 240px; line-height: 1.55; }
.consent-banner a { color: #FFB49B; text-decoration: underline; }
.consent-banner .btn { flex: none; }
:focus-visible { outline: 3px solid rgba(255,92,57,.45); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 300;
}
.skip-link:focus { left: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ========== Blog / Article ========== */
.blog-hero {
  background: linear-gradient(135deg, #FFF8F3 0%, #FFF1E6 100%);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 40px;
}
.blog-hero-inner { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.blog-cat {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.blog-hero h1 { font-size: 32px; line-height: 1.25; margin: 0 0 14px; letter-spacing: -.02em; }
.blog-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.blog-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.article-body {
  max-width: 760px; margin: 0 auto; padding: 40px 20px 60px;
  font-size: 16.5px; line-height: 1.8; color: var(--ink-2);
}
.article-body > * + * { margin-top: 1.2em; }
.article-body h2 {
  font-size: 24px; font-weight: 800; color: var(--ink); margin-top: 2.2em !important;
  padding-bottom: 10px; border-bottom: 2px solid var(--brand-soft); letter-spacing: -.01em;
}
.article-body h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin-top: 1.8em !important; }
.article-body p { margin: 0; }
.article-body ul, .article-body ol { padding-left: 1.6em; margin: 0; }
.article-body li { margin-bottom: .5em; }
.article-body li::marker { color: var(--brand); }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: #C2410C; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body blockquote {
  border-left: 4px solid var(--brand); background: #FFFAF6;
  padding: 16px 20px; margin: 1.6em 0; border-radius: 0 10px 10px 0;
  font-size: 15.5px; color: var(--ink-2);
}
.article-body blockquote p { margin: 0; }
.article-body code {
  background: #F3F1EC; padding: 2px 7px; border-radius: 5px;
  font-size: 14px; font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
  color: #9A3412;
}
.article-body .callout {
  background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 12px;
  padding: 18px 22px; margin: 1.6em 0;
}
.article-body .callout-title { font-weight: 700; color: #9A3412; margin-bottom: 6px; font-size: 15px; }
.article-body .callout p { font-size: 15px; margin: 0; }
.article-body .step-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 24px; margin: 1.4em 0;
}
.article-body .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand);
  color: #fff; font-weight: 700; font-size: 14px; margin-right: 10px; flex: none;
}
.article-body .step-box h4 { display: flex; align-items: center; font-size: 17px; margin: 0 0 8px; color: var(--ink); }
.article-body .step-box p { font-size: 15.5px; margin: 0; }
.article-body table {
  width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 14.5px;
}
.article-body th, .article-body td {
  border: 1px solid var(--line); padding: 10px 14px; text-align: left;
}
.article-body th { background: #FAF8F4; font-weight: 700; color: var(--ink); }
.article-body tr:nth-child(even) td { background: #FDFCFA; }
.article-toc {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 24px; margin: 0 0 2em;
}
.article-toc h3 { margin: 0 0 12px; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.article-toc ol { padding-left: 1.4em; margin: 0; }
.article-toc li { margin-bottom: 6px; font-size: 14.5px; }
.article-toc a { color: var(--ink-2); text-decoration: none; }
.article-toc a:hover { color: var(--brand); text-decoration: underline; }
.article-cta {
  background: linear-gradient(135deg, var(--brand) 0%, #EA580C 100%);
  border-radius: 16px; padding: 32px; text-align: center; color: #fff; margin: 2.5em 0 0;
}
.article-cta h3 { color: #fff; font-size: 22px; margin: 0 0 8px; }
.article-cta p { color: rgba(255,255,255,.88); font-size: 15px; margin: 0 0 18px; }
.article-cta .btn { background: #fff; color: var(--brand); font-weight: 700; }
.article-cta .btn:hover { background: #FFF7ED; }
.related-posts { max-width: 760px; margin: 0 auto; padding: 0 20px 60px; }
.related-posts h2 { font-size: 22px; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; transition: transform .15s, box-shadow .15s; display: block; text-decoration: none; color: inherit;
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.related-card .rc-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); margin-bottom: 8px; }
.related-card h4 { font-size: 15.5px; margin: 0 0 6px; line-height: 1.4; color: var(--ink); }
.related-card p { font-size: 13px; color: var(--ink-3); margin: 0; line-height: 1.5; }
@media (max-width: 600px) {
  .blog-hero h1 { font-size: 25px; }
  .article-body { font-size: 15.5px; padding: 28px 16px 48px; }
  .article-body h2 { font-size: 21px; }
  .related-grid { grid-template-columns: 1fr; }
}

/* Blog index */
.blog-index-hero {
  background: linear-gradient(135deg, #FFF8F3 0%, #FFF1E6 100%);
  border-bottom: 1px solid var(--line); padding: 56px 0 48px; text-align: center;
}
.blog-index-hero h1 { font-size: 36px; margin: 0 0 12px; letter-spacing: -.02em; }
.blog-index-hero p { font-size: 17px; color: var(--ink-2); max-width: 560px; margin: 0 auto; }
.blog-list { max-width: 860px; margin: 0 auto; padding: 40px 20px 60px; }
.blog-card {
  display: flex; gap: 24px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px; margin-bottom: 18px; transition: transform .15s, box-shadow .15s;
  text-decoration: none; color: inherit;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.blog-card .bc-num {
  flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.blog-card .bc-body { min-width: 0; flex: 1; }
.blog-card .bc-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin-bottom: 6px; }
.blog-card h3 { font-size: 18px; margin: 0 0 8px; color: var(--ink); line-height: 1.35; }
.blog-card p { font-size: 14px; color: var(--ink-2); margin: 0 0 10px; line-height: 1.6; }
.blog-card .bc-meta { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 12px; align-items: center; }
.blog-card .bc-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
@media (max-width: 600px) {
  .blog-index-hero h1 { font-size: 27px; }
  .blog-card { flex-direction: column; gap: 14px; padding: 20px; }
  .blog-card .bc-num { width: 40px; height: 40px; font-size: 16px; }
}
