[hidden]{display:none!important}
/* ============================================================
   biaodan.net · style.css
   浅色 / 单一主色 #1f5c4a / 系统字体栈 / 无外部资源
   ============================================================ */

:root {
  --pad-x: clamp(16px, 4vw, 32px);
  --ink: #16211c;
  --ink-2: #3c4a43;
  --muted: #68736d;
  --faint: #8b958f;
  --line: #e3e8e4;
  --line-2: #cfd8d2;
  --bg: #f6f7f7;
  --bg-2: #eff1f1;
  --card: #ffffff;
  --accent: #1f5c4a;
  --accent-d: #17483a;
  --accent-soft: #edf3f0;
  --ok: #2c7a58;
  --danger: #a0473b;
  --r: 10px;
  --r-sm: 7px;
  --shadow: 0 1px 2px rgba(22, 33, 28, .05), 0 10px 30px -18px rgba(22, 33, 28, .25);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 5.2vw, 46px); font-weight: 650; letter-spacing: -.025em; }
h2 { font-size: clamp(21px, 3vw, 27px); font-weight: 620; }
h3 { font-size: 16px; font-weight: 620; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .9em;
}

.wrap { width: 100%; max-width: none; margin: 0 auto; padding: 0 var(--pad-x); }
@media (min-width: 1100px) { .wrap { padding-left: clamp(24px, 2.6vw, 56px); padding-right: clamp(24px, 2.6vw, 56px); } }
.muted { color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid transparent;
  background: var(--card); color: var(--ink); font-size: 14px; font-weight: 550;
  cursor: pointer; text-decoration: none; line-height: 1.2; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .06s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-line { background: var(--card); border-color: var(--line-2); color: var(--ink-2); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 6px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- 顶部导航 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246,247,247,.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; }
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 650; font-size: 16px; color: var(--ink); letter-spacing: .01em;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 22px; height: 22px; flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='6' fill='%231f5c4a'/%3E%3Cpath d='M6.2 7.6h9M6.2 11.6h9M6.2 15.6h4.4' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' opacity='.92'/%3E%3Cpath d='M13.4 16.1l1.9 1.9 4-4.3' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.logo small { font-weight: 400; font-size: 11px; color: var(--faint); letter-spacing: .07em; }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 22px); font-size: 13px; }
.nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a[data-nav-login], .nav-links a[data-nav-account] {
  display: inline-flex; align-items: center; height: 28px; padding: 0 13px;
  border-radius: 999px; font-size: 13px; white-space: nowrap;
}
.nav-links a[data-nav-login] { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.nav-links a[data-nav-login]:hover { color: #fff; background: #1a5040; border-color: #1a5040; }
.nav-links a[data-nav-account] { background: #eef4f0; color: var(--accent); border: 1px solid #d6e4dd; }
.nav-links a[data-nav-account]:hover { background: #e3ece7; color: var(--accent); border-color: #cfded7; }
.bar-actions .btn-account { background: #eef4f0; border-color: #d6e4dd; color: var(--accent); }
.bar-actions .btn-account:hover { background: #e3ece7; }
.dd { position: relative; }
.dd > summary { list-style: none; cursor: pointer; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary::after { content: " ▾"; font-size: 10px; color: var(--faint); }
.dd[open] > summary { border-color: var(--accent); color: var(--accent); }
.dd-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 150px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px;
  box-shadow: 0 8px 24px rgba(20, 40, 30, .12);
}
.dd-item {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 8px 10px; border-radius: 6px; font: inherit; font-size: 12px;
  color: var(--ink); cursor: pointer; white-space: nowrap;
}
.dd-item:hover { background: var(--accent-soft); color: var(--accent); }


@media (max-width: 560px) {
  .nav-links .hide-sm { display: none; }
}

/* ---------- 落地页 Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 4vw, 48px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px); align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 99px; padding: 4px 11px; margin: 0 0 16px;
}
.hero h1 { margin-bottom: 14px; max-width: 15em; }
.lede { font-size: clamp(14.5px, 1.6vw, 16.5px); color: var(--ink-2); max-width: 34em; margin-bottom: 22px; }
.lede b { font-weight: 600; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.cta-row .btn-primary { padding: 12px 22px; font-size: 15px; }

/* 对照图 */
.shot { margin: 0; }
.shot-pair { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 560px) {
  .shot-pair { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
.shot-pane { min-width: 0; }
.shot-label {
  font-size: 11px; letter-spacing: .06em; color: var(--faint);
  text-transform: uppercase; margin-bottom: 6px;
}
.shot-arrow {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  box-shadow: 0 0 0 5px var(--bg); z-index: 2;
}
@media (max-width: 560px) { .shot-arrow { display: none; } }

.mock {
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card);
  box-shadow: var(--shadow); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 5px; padding: 7px 10px;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); flex: 0 0 auto; }
.mock-title {
  margin-left: 4px; font-size: 10px; color: var(--muted); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mock-body { padding: 9px; }
.mock-builder { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 7px; }
.mock-palette { display: flex; flex-direction: column; gap: 4px; }
.mock-chip {
  font-size: 8px; line-height: 1.1; padding: 4px 5px; border: 1px solid var(--line);
  border-radius: 4px; color: var(--muted); background: var(--bg); text-align: center;
  white-space: nowrap; overflow: hidden;
}
.mock-chip:first-child { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.mock-canvas { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mock-field {
  border: 1px solid var(--line); border-radius: 5px; padding: 5px 6px; background: #fff;
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.mock-field.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.mock-k { font-size: 9px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-line { display: block; height: 9px; border-radius: 3px; background: var(--bg-2); width: 100%; }
.mock-line.short { width: 52%; }
.mock-opts { display: flex; gap: 3px; flex-wrap: wrap; }
.mock-opts i {
  font-style: normal; font-size: 8px; padding: 1px 4px; border-radius: 3px;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.mock-opts i.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.mock-form { padding: 10px 9px; }
.mock-form .mock-k { font-size: 9px; margin-bottom: 4px; display: block; }
.mock-form .mock-field { margin-bottom: 6px; }
.mock-submit {
  margin-top: 2px; background: var(--accent); color: #fff; border-radius: 5px;
  text-align: center; font-size: 9px; padding: 5px 0; font-weight: 600;
}
.mock-receipt {
  margin-top: 7px; border: 1px dashed var(--line-2); border-radius: 5px; padding: 5px 6px;
  font-size: 8px; color: var(--muted); display: flex; align-items: center; gap: 5px;
}
.mock-receipt b { color: var(--ok); font-weight: 600; white-space: nowrap; }
.shot-caption { font-size: 12px; color: var(--faint); margin-top: 9px; line-height: 1.5; }

/* ---------- 通用区块 ---------- */
.section { padding: clamp(34px, 6vw, 68px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: clamp(20px, 3vw, 32px); }
.section-head p { color: var(--muted); margin: 0; }
.kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }

/* 三步 */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 26px); }
@media (max-width: 780px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.step { padding: 0 0 22px; border-top: 2px solid var(--line); padding-top: 14px; min-width: 0; }
@media (max-width: 780px) { .step { padding: 14px 0 18px; } }
.step-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; color: var(--accent); letter-spacing: .06em;
}
.step h3 { margin: 6px 0 5px; }
.step p { font-size: 13px; color: var(--muted); margin: 0; }
.step .mono { font-size: 11px; color: var(--ink-2); word-break: break-all; }

/* 定价 */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .pricing { grid-template-columns: minmax(0, 1fr); } }
.price-card {
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card);
  padding: clamp(18px, 2.6vw, 26px); display: flex; flex-direction: column; min-width: 0;
}
.price-card.pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.price-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price-name { font-size: 15px; font-weight: 620; }
.tag {
  font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft);
  color: var(--accent); border: 1px solid #d6e4dd;
}
.price { font-size: 30px; font-weight: 650; letter-spacing: -.02em; margin: 10px 0 2px; }
.price small { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price-note { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.feat-list { list-style: none; padding: 0; margin: 0 0 18px; font-size: 13px; color: var(--ink-2); }
.feat-list li { padding: 6px 0 6px 20px; position: relative; border-top: 1px solid var(--line); }
.feat-list li:first-child { border-top: 0; }
.feat-list li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--accent); opacity: .75;
}
.price-card .btn { margin-top: auto; width: 100%; }

/* 证据 */
.evidence {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(16px, 2.4vw, 24px);
}
@media (max-width: 720px) { .evidence { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.ev-item { min-width: 0; }
.ev-item .k {
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 3px;
}
.ev-item .v { font-size: 13px; color: var(--ink-2); }
.ev-note {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2);
  font-size: 12px; color: var(--muted);
}

/* 页脚 */
.site-foot { border-top: 1px solid var(--line); padding: 26px 0 34px; font-size: 12px; color: var(--faint); }
.foot-row { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-links a { color: var(--muted); }

/* ---------- 设计器 ---------- */
.bar {
  position: sticky; top: 0; z-index: 40; background: var(--card);
  border-bottom: 1px solid var(--line);
}
.bar-inner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px var(--pad-x); max-width: none; margin: 0 auto;
}
.bar .logo { font-size: 15px; flex: 0 0 auto; }
.title-input {
  flex: 1 1 160px; min-width: 0; border: 1px solid transparent; background: transparent;
  border-radius: 6px; padding: 6px 8px; font-size: 14px; font-weight: 600;
}
.title-input:hover { border-color: var(--line); }
.title-input:focus { outline: none; border-color: var(--accent); background: #fff; }
.bar-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.bar-actions select {
  max-width: 130px; border: 1px solid var(--line-2); border-radius: 6px;
  background: #fff; padding: 5px 6px; font-size: 12px; color: var(--ink-2);
}
@media (max-width: 520px) {
  .bar-inner { padding: 8px 10px; gap: 6px; }
  .bar .logo span.full { display: none; }
  .title-input { flex: 1 1 100%; order: 3; border-color: var(--line); font-size: 13px; }
  .bar-actions { width: 100%; gap: 5px; }
  .bar-actions .btn-sm { flex: 0 0 auto; padding: 5px 8px; font-size: 11px; }
  .bar-actions select { display: none; }
}

.builder {
  display: grid; grid-template-columns: 214px minmax(0, 1fr) 274px;
  gap: 14px; max-width: none; margin: 0 auto;
  padding: 14px var(--pad-x) 40px;
  align-items: start;
}
@media (max-width: 1180px) { .builder { grid-template-columns: 186px minmax(0, 1fr) 244px; gap: 10px; } }
@media (max-width: 940px) {
  .builder { grid-template-columns: minmax(0, 1fr); }
  .palette { position: static; }
  .palette-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
  .props { position: static; }
}

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px; min-width: 0;
}
.panel-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 10px;
}
.palette, .props { position: sticky; top: 62px; }
.palette-list { display: flex; flex-direction: column; gap: 5px; }
.pal-btn {
  display: flex; align-items: center; gap: 7px; width: 100%; text-align: left;
  border: 1px solid var(--line); background: #fff; border-radius: 6px;
  padding: 7px 8px; cursor: grab; color: var(--ink-2); font-size: 12px;
  min-width: 0; transition: border-color .12s, background .12s;
}
.pal-btn:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.pal-btn:active { cursor: grabbing; }
.pal-btn .g {
  font-size: 9px; color: var(--faint); background: var(--bg-2); border-radius: 3px;
  padding: 1px 4px; flex: 0 0 auto; font-family: ui-monospace, Menlo, monospace;
}
.pal-btn span.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-tip { font-size: 11px; color: var(--faint); margin-top: 10px; line-height: 1.5; }

.canvas-wrap { min-width: 0; }
.canvas-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.canvas-head .desc-input {
  width: 100%; border: 1px dashed var(--line-2); background: transparent; border-radius: 6px;
  padding: 6px 8px; font-size: 12px; color: var(--ink-2); resize: vertical; min-height: 34px;
}
.canvas-head .desc-input:focus { outline: none; border-color: var(--accent); border-style: solid; background: #fff; }
.canvas {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px; min-height: 380px; position: relative;
}
.canvas.dragover { border-color: var(--accent); background: #fcfdfc; }
.empty-canvas {
  border: 1px dashed var(--line-2); border-radius: 8px; padding: 38px 18px; text-align: center;
  color: var(--faint); font-size: 13px;
}
.empty-canvas b { display: block; color: var(--ink-2); font-size: 14px; margin-bottom: 4px; font-weight: 600; }

.fcard {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 8px; align-items: start; padding: 9px 9px 9px 6px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-bottom: 7px;
  cursor: pointer;
}
.fcard:last-child { margin-bottom: 0; }
.fcard:hover { border-color: var(--line-2); }
.fcard.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.fcard.dragging { opacity: .4; }
.handle {
  color: var(--line-2); cursor: grab; font-size: 13px; line-height: 1.5; text-align: center;
  user-select: none; padding-top: 1px;
}
.fcard-body { min-width: 0; }
.fcard-label {
  font-size: 13px; font-weight: 600; color: var(--ink);
  overflow-wrap: anywhere; display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.fcard-label .req { color: var(--danger); font-weight: 700; }
.fcard-meta { font-size: 11px; color: var(--faint); margin-top: 2px; overflow-wrap: anywhere; }
.fcard-preview { margin-top: 6px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.fcard-preview .pv-box {
  border: 1px solid var(--line); border-radius: 5px; padding: 4px 7px; background: var(--bg);
  color: var(--faint); display: block;
}
.fcard-preview .pv-opts { display: flex; gap: 5px; flex-wrap: wrap; }
.fcard-preview .pv-opts i {
  font-style: normal; border: 1px solid var(--line); border-radius: 99px; padding: 0 7px;
  font-size: 11px; color: var(--muted);
}
.fcard-actions { display: flex; gap: 2px; flex: 0 0 auto; }
.icon-btn {
  width: 24px; height: 24px; border: 1px solid transparent; background: transparent;
  border-radius: 5px; color: var(--muted); cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; font-size: 12px; padding: 0;
}
.icon-btn:hover { background: var(--bg-2); border-color: var(--line); color: var(--ink); }
.icon-btn.del:hover { color: var(--danger); border-color: #ecd3cf; background: #fdf4f2; }
.drop-line { height: 2px; background: var(--accent); border-radius: 2px; margin: -1px 0 6px; }

/* 属性面板 */
.props-body { min-width: 0; }
.props-empty { font-size: 12px; color: var(--faint); line-height: 1.6; }
.field-row { margin-bottom: 10px; }
.field-row > .lbl {
  display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; letter-spacing: .02em;
}
.input, .textarea, select.input {
  width: 100%; border: 1px solid var(--line-2); border-radius: 6px; background: #fff;
  padding: 6px 8px; font-size: 13px; min-width: 0;
}
.textarea { resize: vertical; min-height: 62px; line-height: 1.5; }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.input:disabled { background: var(--bg-2); color: var(--faint); }
.check-row { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.check-row input { width: 15px; height: 15px; accent-color: var(--accent); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.props-sep { border-top: 1px solid var(--line); margin: 14px 0 12px; }
.color-row { display: flex; align-items: center; gap: 8px; }
.color-row input[type=color] {
  width: 34px; height: 30px; padding: 0; border: 1px solid var(--line-2); border-radius: 6px;
  background: #fff; cursor: pointer;
}
.props-foot { display: flex; gap: 6px; margin-top: 6px; }
.props-foot .btn { flex: 1 1 auto; padding: 6px 8px; font-size: 12px; }

/* ---------- 设计器：正文整体大一档（登录后使用，按 2026-11-17 调整） ---------- */
.bar .logo { font-size: 16px; }
.title-input { font-size: 15px; }
.pal-btn { font-size: 13px; padding: 8px 9px; }
.pal-tip { font-size: 12px; }
.canvas-head .desc-input { font-size: 13px; }
.empty-canvas { font-size: 14px; }
.empty-canvas b { font-size: 15px; }
.fcard-label { font-size: 14px; }
.fcard-meta { font-size: 12px; }
.fcard-preview { font-size: 13px; }
.fcard-preview .pv-opts i { font-size: 12px; }
.props-empty { font-size: 13px; }
.field-row > .lbl { font-size: 12px; }
.input, .textarea, select.input { font-size: 14px; padding: 7px 9px; }
.check-row { font-size: 14px; }
.props-foot .btn { font-size: 12px; }
.panel-title { font-size: 12px; }

/* ---------- 填写页 ---------- */
.form-page { padding: clamp(18px, 4vw, 44px) 0 60px; }
.form-shell { width: 100%; max-width: none; margin: 0 auto; padding: 0 var(--pad-x); }
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(18px, 4vw, 30px); box-shadow: var(--shadow);
}
.form-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.form-head h1 { font-size: clamp(20px, 4vw, 26px); margin-bottom: 4px; }
.form-head p { margin: 0; color: var(--muted); font-size: 13px; }
.f-block { margin-bottom: 17px; min-width: 0; }
.f-label {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.f-label .req { color: var(--danger); margin-left: 3px; }
.f-hint { font-size: 11px; color: var(--faint); font-weight: 400; margin-left: 6px; }
.f-input, .f-textarea, .f-select {
  width: 100%; border: 1px solid var(--line-2); border-radius: 7px; background: #fff;
  padding: 9px 11px; font-size: 15px; min-width: 0; -webkit-appearance: none; appearance: none;
}
.f-textarea { min-height: 88px; resize: vertical; line-height: 1.55; }
.f-input:focus, .f-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.f-input.bad, .f-textarea.bad { border-color: var(--danger); box-shadow: 0 0 0 3px #fbeceb; }
.opt-list { display: flex; flex-direction: column; gap: 6px; }
.opt {
  display: flex; align-items: center; gap: 9px; border: 1px solid var(--line);
  border-radius: 7px; padding: 8px 11px; cursor: pointer; font-size: 14px;
  background: #fff; min-width: 0;
}
.opt:hover { border-color: var(--line-2); }
.opt input { width: 16px; height: 16px; accent-color: var(--accent); flex: 0 0 auto; margin: 0; }
.opt span { overflow-wrap: anywhere; }
.opt.checked { border-color: var(--accent); background: var(--accent-soft); }
.rating { display: flex; gap: 6px; flex-wrap: wrap; }
.star {
  width: 38px; height: 36px; border: 1px solid var(--line-2); background: #fff; border-radius: 7px;
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); padding: 0;
}
.star:hover { border-color: var(--accent); }
.star.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.note-block {
  font-size: 13px; color: var(--muted); background: var(--bg-2); border-left: 3px solid var(--line-2);
  padding: 10px 12px; border-radius: 0 6px 6px 0; white-space: pre-wrap;
}
.err-msg { color: var(--danger); font-size: 12px; margin-top: 5px; display: none; }
.err-msg.show { display: block; }
.form-actions { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.form-actions .btn-primary { width: 100%; padding: 12px; font-size: 15px; }
.form-foot {
  display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between;
  margin-top: 12px; font-size: 12px; color: var(--faint);
}
.wm { text-align: center; font-size: 11px; color: var(--faint); margin-top: 16px; letter-spacing: .03em; }
.device-note {
  display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: var(--muted);
  background: var(--accent-soft); border-radius: 7px; padding: 8px 10px; margin-top: 12px;
  line-height: 1.5;
}
.device-note b { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* 回执卡片 */
.receipt { text-align: left; }
.receipt .ok-mark {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft);
  color: var(--ok); display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 12px; border: 1px solid #d6e4dd;
}
.receipt h2 { font-size: 21px; margin-bottom: 6px; }
.rc-code {
  width: 100%; min-height: 90px; margin-top: 8px; border: 1px solid var(--line-2);
  border-radius: 8px; padding: 10px; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px; line-height: 1.5; background: var(--bg-2); color: var(--ink-2);
  resize: vertical; word-break: break-all;
}
.kv { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.kv th, .kv td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv th { font-weight: 550; color: var(--muted); width: 38%; overflow-wrap: anywhere; }
.kv td { overflow-wrap: anywhere; }
.rc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- 回执汇总 ---------- */
.rc-page { padding: clamp(18px, 3vw, 34px) 0 60px; }
.rc-shell { max-width: none; margin: 0 auto; padding: 0 var(--pad-x); }
.rc-head { margin-bottom: 16px; }
.rc-head h1 { font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 4px; }
.rc-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .rc-grid { grid-template-columns: minmax(0, 1fr); } }
.rc-input { min-height: 190px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.rc-bar { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 12px; }
.stat {
  border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; color: var(--muted);
  background: #fff;
}
.stat b { color: var(--ink); font-weight: 600; }
.stat.bad { border-color: #ecd3cf; color: var(--danger); background: #fdf4f2; }
.err-list { margin: 10px 0 0; padding: 0 0 0 4px; list-style: none; font-size: 12px; }
.err-list li {
  color: var(--danger); padding: 5px 8px; border-left: 2px solid var(--danger);
  background: #fdf6f4; border-radius: 0 4px 4px 0; margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.err-list li code { color: var(--ink-2); }
.table-wrap {
  width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--line);
  border-radius: var(--r); background: #fff; -webkit-overflow-scrolling: touch;
}
table.tbl { border-collapse: collapse; width: 100%; font-size: 12px; min-width: 520px; }
table.tbl th, table.tbl td {
  padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left;
  vertical-align: top; max-width: 260px; overflow-wrap: anywhere;
}
table.tbl th {
  background: var(--bg-2); font-weight: 600; color: var(--ink-2); white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover td { background: #fcfdfc; }
table.tbl .num { color: var(--faint); font-variant-numeric: tabular-nums; width: 34px; }
.empty-table { padding: 34px 18px; text-align: center; color: var(--faint); font-size: 13px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 14px);
  background: #182420; color: #fff; padding: 9px 16px; border-radius: 99px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
  z-index: 300; max-width: calc(100vw - 32px); text-align: center; line-height: 1.4;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #7d3a31; }

/* 小屏微调 */
@media (max-width: 420px) {
  body { font-size: 14px; }
  .canvas { padding: 9px; }
  .fcard { grid-template-columns: 12px minmax(0, 1fr); padding: 8px; }
  .fcard-actions { grid-column: 2; justify-content: flex-end; margin-top: 4px; }
  .icon-btn { width: 26px; height: 26px; }
  .form-card { padding: 16px; border-radius: 10px; }
  .price { font-size: 26px; }
}

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

/* ============================================================
   落地页 · 自然流式（可滚动）
   仅作用于 body.landing，不影响其他页面
   ============================================================ */
body.landing {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
body.landing .site-head {
  position: static;
  flex: 0 0 56px;
  height: 56px;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}
body.landing .nav { height: 56px; }
body.landing .logo small { white-space: nowrap; }

.landing-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  width: 100%;
  padding-top: clamp(8px, 2vh, 24px);
  padding-bottom: clamp(8px, 2vh, 24px);
}
.landing-copy { min-width: 0; }
.landing-copy h1 {
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: -.03em;
  margin-bottom: clamp(8px, 1.4vh, 16px);
  max-width: 14em;
}
.landing-copy .lede {
  font-size: clamp(13px, 1.15vw, 15.5px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 30em;
  margin-bottom: clamp(12px, 2vh, 20px);
}
.landing-copy .btn-primary {
  padding: 11px 20px;
  font-size: 14px;
  max-width: 100%;
  white-space: normal;
}
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: clamp(12px, 2vh, 18px) 0 0;
}
.mini-tags li {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px 9px;
  background: var(--card);
  white-space: nowrap;
}

/* 底部一行：三步 + 定价 + 模板 */
.landing-foot {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
}
.foot-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 9px;
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 12px;
  line-height: 1.5;
}
.foot-steps { color: var(--faint); letter-spacing: .01em; }
.foot-sep { color: var(--line-2); }
.foot-item {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  border-bottom: 1px dashed var(--line-2);
  line-height: 1.45;
}
.foot-item:hover { color: var(--accent); border-bottom-color: var(--accent); }
.foot-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.foot-brand { margin-left: auto; color: var(--faint); font-size: 11px; }

/* 展开层 */
.pop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(22, 33, 28, .18);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}
.pop[hidden] { display: none; }
.pop-card {
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 80px);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 18px 50px -20px rgba(22, 33, 28, .5);
  padding: 14px 16px 16px;
  margin-bottom: 6px;
}
.pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  font-size: 14px;
}
.pop-x {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid transparent;
  background: transparent; color: var(--muted); cursor: pointer; font-size: 12px;
}
.pop-x:hover { background: var(--bg-2); border-color: var(--line); color: var(--ink); }
.pop-body { font-size: 13px; color: var(--ink-2); }
.pop-list { margin: 0; padding-left: 18px; }
.pop-list li { padding: 3px 0; }
.pop-list li::marker { color: var(--accent); }
.pop-links { list-style: none; padding-left: 0; }
.pop-links li {
  display: flex; flex-direction: column; gap: 1px;
  padding: 7px 0; border-bottom: 1px solid var(--line);
}
.pop-links li:last-child { border-bottom: 0; }
.pop-links a { font-weight: 600; font-size: 13px; }
.pop-links span { font-size: 11px; color: var(--faint); }
.pop-actions { display: flex; gap: 8px; margin-top: 12px; }

/* 窄屏：隐藏对照图，字号降一档，纵向堆叠 */
@media (max-width: 720px) {
  .landing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .landing-copy h1 { font-size: clamp(24px, 7vw, 30px); line-height: 1.22; }
  .landing-copy .lede { font-size: 13px; }
  .shot { display: none; }
  .foot-line { font-size: 11px; gap: 2px 7px; padding-top: 7px; padding-bottom: 7px; }
  .foot-item { font-size: 11px; }
  .foot-steps { display: none; }
  .foot-steps + .foot-sep { display: none; }
  .foot-brand { margin-left: 0; }
}
@media (max-height: 620px) and (max-width: 720px) {
  body.landing .site-head, body.landing .nav { flex-basis: 48px; height: 48px; }
  .landing-copy h1 { font-size: 22px; margin-bottom: 6px; }
  .landing-copy .lede { font-size: 12px; line-height: 1.5; margin-bottom: 10px; }
  .mini-tags { margin-top: 10px; }
  .mini-tags li { font-size: 11px; padding: 1px 8px; }
}
@media (min-width: 1100px) { :root { --pad-x: clamp(24px, 2.6vw, 56px); } }

/* 首页首屏以下区块：渲染懒加载（视觉不变，减少首屏渲染） */
body.landing #fields,body.landing #templates,body.landing #flow-data,body.landing #compare,body.landing #limits,body.landing #faq,body.landing section.end{content-visibility:auto}
body.landing #fields{contain-intrinsic-size:auto 314px}
body.landing #templates{contain-intrinsic-size:auto 440px}
body.landing #flow-data{contain-intrinsic-size:auto 272px}
body.landing #compare{contain-intrinsic-size:auto 501px}
body.landing #limits{contain-intrinsic-size:auto 372px}
body.landing #faq{contain-intrinsic-size:auto 410px}
body.landing section.end{contain-intrinsic-size:auto 149px}
@media (max-width:899px){
  body.landing #fields{contain-intrinsic-size:auto 594px}
  body.landing #templates{contain-intrinsic-size:auto 869px}
  body.landing #flow-data{contain-intrinsic-size:auto 581px}
  body.landing #compare{contain-intrinsic-size:auto 488px}
  body.landing #limits{contain-intrinsic-size:auto 749px}
  body.landing #faq{contain-intrinsic-size:auto 794px}
  body.landing section.end{contain-intrinsic-size:auto 210px}
}
