/* ============================================================
 * 车马慢邮 · 写信页样式
 * 主题：牛皮纸 / 时光 / 手写感
 * ============================================================ */
:root {
  --paper: #f5efe4;
  --paper-2: #fffdf8;
  --ink: #3f3428;
  --ink-2: #6b5b47;
  --muted: #a8977f;
  --line: #e6dccb;
  --brand: #a67c46;
  --brand-2: #c8a06a;
  --brand-soft: #f6eddf;
  --danger: #c0563a;
  --ok: #5c8a5c;
  --radius: 14px;
  --shadow: 0 6px 26px rgba(126, 100, 62, .10);
  --shadow-lg: 0 14px 44px rgba(126, 100, 62, .16);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 关键：作者样式里的 display 会覆盖 HTML hidden 属性，这里强制兜底 */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(200, 160, 106, .13), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(166, 124, 70, .10), transparent 46%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 18px; }

/* ------------------------------------------------ 头部 */
.site-header {
  background: linear-gradient(135deg, #b98f56, #a67c46 55%, #96703e);
  color: #fff;
  box-shadow: 0 2px 18px rgba(120, 90, 50, .22);
  padding: 18px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  display: grid; place-items: center; font-size: 23px;
}
.brand-text { min-width: 0; }

/* 站点信封图标（内联 SVG）：emoji ✉ 在部分手机/微信内置浏览器里会缺字变方框，
   换成 SVG 后所有设备一致，也不额外发请求。 */
.icon-envelope {
  display: inline-flex; align-items: center; justify-content: center;
  color: inherit; line-height: 0;
}
.icon-envelope svg { display: block; width: 26px; height: 20px; }
.brand-text h1 { margin: 0; font-size: 21px; letter-spacing: 4px; font-weight: 700; }
.brand-text p { margin: 2px 0 0; font-size: 12px; opacity: .88; letter-spacing: 1px; }
.brand-nav { display: flex; gap: 8px; flex: 0 0 auto; }
.brand-nav a {
  color: #fff; text-decoration: none; font-size: 13px;
  padding: 7px 14px; border-radius: 20px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  transition: .18s; white-space: nowrap;
}
.brand-nav a:hover { background: rgba(255, 255, 255, .26); }
/* 「联系客服」是个按钮（点了弹窗），长得跟旁边的链接一样 */
.brand-nav .nav-btn {
  font-family: inherit; color: #fff; font-size: 13px;
  padding: 7px 14px; border-radius: 20px; cursor: pointer;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  transition: .18s; white-space: nowrap; line-height: 1.5;
}
.brand-nav .nav-btn:hover { background: rgba(255, 255, 255, .26); }

/* ------------------------------------------------ 进度 */
.progress-wrap {
  background: rgba(255, 253, 248, .86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
  padding: 12px 0 0;
}
.steps { list-style: none; display: flex; margin: 0; padding: 0; gap: 4px; }
.steps li {
  flex: 1; text-align: center; font-size: 12px; color: var(--muted);
  padding-bottom: 9px; position: relative; cursor: default; transition: .2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.steps li .n {
  display: inline-grid; place-items: center;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--line); color: var(--muted);
  font-size: 11px; margin-right: 6px; vertical-align: -5px; transition: .2s;
}
.steps li.active { color: var(--brand); font-weight: 600; }
.steps li.active .n { background: var(--brand); color: #fff; }
.steps li.done { color: var(--ok); }
.steps li.done .n { background: var(--ok); color: #fff; }
.steps li.done .n::after { content: "✓"; }
.steps li.done .n { font-size: 0; }
.steps li.done .n::after { font-size: 12px; }
.progress-bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: -1px; }
.progress-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-2), var(--brand)); transition: width .35s ease; }

/* ------------------------------------------------ 面板 */
main { padding: 26px 0 10px; }

.panel { animation: fadeUp .34s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.panel-head { margin-bottom: 20px; }
.panel-head h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: 1px; }
.panel-head h2 .icon { margin-right: 8px; }
.panel-head p { margin: 0; color: var(--muted); font-size: 13px; }

.field { margin-bottom: 22px; }
.flabel { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.field > label.flabel {
  display: block; font-weight: 600; font-size: 14.5px;
  margin-bottom: 7px; color: var(--ink);
}
.field > label.flabel .req { color: var(--danger); margin-left: 3px; }
/* 隐藏日期开关：标题右侧内联，冻结/提示随状态切换 */
/* 字段标题行：标题 + 内联开关（隐藏日期 / 寄给自己）靠左排在一起，
   不再一个在左一个在最右 —— 离得太远客户根本注意不到这些选项 */
.flabel-row { display: flex; align-items: center; justify-content: flex-start; gap: 8px 10px; flex-wrap: wrap; margin-bottom: 7px; }
.flabel-row > .flabel { display: block; margin: 0; }
.flabel-row .req { color: var(--danger); margin-left: 3px; }
/* 「寄给自己，复用写信人号码」小开关（收信人手机号右侧） */
.selfcopy { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  color: #8a5a12; background: #fdf2dc; border: 1px solid #f0d9a8; border-radius: 14px;
  padding: 2px 10px 2px 9px; cursor: pointer; white-space: nowrap;
  user-select: none; flex: 0 0 auto; transition: .18s; }
.selfcopy:hover { border-color: var(--brand); color: var(--brand); background: #fbeacd; }
.selfcopy input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; margin: 0; }
/* 「隐藏此日期」小开关：同样是紧贴标题的淡黄胶囊，勾选后加深，一眼能看见 */
.hidetoggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  color: #8a5a12; background: #fdf2dc; border: 1px solid #f0d9a8; border-radius: 14px;
  padding: 2px 10px 2px 9px; cursor: pointer; white-space: nowrap; user-select: none;
  flex: 0 0 auto; transition: .18s; }
.hidetoggle:hover { border-color: var(--brand); color: var(--brand); background: #fbeacd; }
.hidetoggle:has(input:checked) { background: var(--brand-soft); border-color: var(--brand-2); color: var(--brand); font-weight: 600; }
.hidetoggle input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; margin: 0; }
.hide-tip { font-size: 12px; color: var(--danger); margin: -2px 0 9px; line-height: 1.6;
  background: #fdf3ee; border: 1px solid #f0dcd2; border-radius: 8px; padding: 7px 10px; }
.finput:disabled, .ftextarea:disabled { background: #f3efe9; color: #b7a98f; cursor: not-allowed; opacity: .85; }
.fnote { font-size: 12.5px; color: var(--muted); margin: -3px 0 9px; line-height: 1.7; }
.fnote .hl { color: var(--danger); font-weight: 600; }
.fnote a { color: var(--brand); }

.finput, .ftextarea, select.finput {
  width: 100%; padding: 11px 14px; font-size: 15px; font-family: inherit;
  color: var(--ink); background: var(--paper-2);
  border: 1.5px solid var(--line); border-radius: 10px;
  transition: .18s; outline: none;
}
.finput:focus, .ftextarea:focus {
  border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(200, 160, 106, .17);
}
.ftextarea { resize: vertical; line-height: 1.9; min-height: 90px; }
.finput::placeholder, .ftextarea::placeholder { color: #c3b6a2; }
.finput[type="date"] { cursor: pointer; }

/* 省 / 市 / 区三级联动 */
.region-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.region-pick select {
  width: 100%; padding: 11px 12px; font-size: 14.5px; font-family: inherit;
  color: var(--ink); background: var(--paper-2);
  border: 1.5px solid var(--line); border-radius: 10px; outline: none; transition: .18s;
}
.region-pick select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(200, 160, 106, .17); }
.region-pick select:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 560px) { .region-pick { grid-template-columns: 1fr; } }

.counter { text-align: right; font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ------------------------------------------------ 日期框（自绘三段式滚轮） */
.datebox {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; font-size: 15px; font-family: inherit; color: var(--ink);
  background: var(--paper-2); border: 1.5px solid var(--line); border-radius: 10px;
  cursor: pointer; text-align: left; transition: .18s;
}
.datebox:hover { border-color: var(--brand-2); }
.datebox:focus-visible { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(200, 160, 106, .17); }
.datebox .dp-ico { opacity: .75; }
.datebox.disabled { opacity: .6; cursor: not-allowed; background: #f3efe9; }
.flabel[data-dp] { cursor: pointer; }

.dp-mask {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 180; background: rgba(28, 22, 15, .45);
  display: flex; align-items: flex-end; justify-content: center;
}
.dp-panel {
  width: 100%; max-width: 560px; background: #fffdf8; border-radius: 18px 18px 0 0;
  padding: 6px 0 max(10px, env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0, 0, 0, .18);
  animation: dpUp .22s ease;
}
@keyframes dpUp { from { transform: translateY(16px); opacity: .5; } to { transform: none; opacity: 1; } }
.dp-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 4px; }
.dp-title { font-size: 13.5px; color: var(--muted); }
.dp-btn { font-family: inherit; font-size: 15px; border: 0; background: none; cursor: pointer;
  padding: 8px 10px; border-radius: 9px; color: var(--ink-2); }
.dp-cancel { color: var(--muted); }
.dp-today { color: var(--brand); }
.dp-body { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; height: 200px; margin: 0 12px; }
.dp-band {
  position: absolute; left: -12px; right: -12px; top: 80px; height: 40px;
  background: var(--brand-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  pointer-events: none;
}
.dp-col {
  height: 200px; overflow-y: auto; scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; position: relative; z-index: 1;
}
.dp-col::-webkit-scrollbar { display: none; }
.dp-pad { height: 80px; }
.dp-item {
  height: 40px; line-height: 40px; text-align: center; font-size: 16px; color: var(--muted);
  scroll-snap-align: center; cursor: pointer; transition: color .15s, font-size .15s;
  white-space: nowrap;
}
.dp-item.on { color: var(--ink); font-weight: 700; font-size: 18px; }
.dp-foot { padding: 10px 16px 4px; }
.dp-foot .dp-ok {
  display: block; width: 100%; background: var(--brand); color: #fff; font-size: 15.5px;
  font-weight: 600; padding: 12px; border-radius: 11px;
}
.dp-foot .dp-ok:hover { background: #96703e; }

/* 选项（单选/多选） */
.opts { display: flex; flex-direction: column; gap: 10px; }
.opts-inline { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.opts-inline .opt { flex: 1 1 0; min-width: 150px; padding: 11px 14px; }
.opt {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  background: var(--paper-2); cursor: pointer; transition: .18s;
}
.opt:hover { border-color: var(--brand-2); background: #fff; }
.opt input { appearance: none; -webkit-appearance: none; margin: 3px 0 0; flex: 0 0 auto;
  width: 19px; height: 19px; border: 1.5px solid #cdbfa9; background: #fff; transition: .15s; position: relative; }
.opt input[type="radio"] { border-radius: 50%; }
.opt input[type="checkbox"] { border-radius: 5px; }
/* 选中态统一由外层 .opt.checked 驱动（不再用 input:checked）：
   input 自身的 :checked 在个别手机浏览器上会和 JS 维护的状态错位，
   出现「背景色已经变了、前面对勾却没出来」。底色和对勾都从 .opt.checked 派生，
   二者永远不会不一致。 */
.opt.checked input { background: var(--brand); border-color: var(--brand); }
.opt.checked input[type="checkbox"]::after {
  content: "✓"; position: absolute; top: 0; right: 0; bottom: 0; left: 0; color: #fff; font-size: 13px;
  display: grid; place-items: center; line-height: 1;
}
.opt.checked input[type="radio"]::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff;
}
.opt-main { flex: 1; min-width: 0; }
.opt-title { font-size: 14.5px; font-weight: 500; }
.opt-desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.65; }
.opt.checked { border-color: var(--brand); background: var(--brand-soft); }
.opt:hover .opt-desc { color: var(--ink-2); }

/* 图片单选 */
.imgrid { display: grid; gap: 11px; }
.imgopt { cursor: pointer; text-align: center; transition: .18s; }
.imgopt .thumb {
  border: 2.5px solid transparent; border-radius: 10px; overflow: hidden;
  background: #fff; box-shadow: 0 2px 9px rgba(126, 100, 62, .10); transition: .18s;
  aspect-ratio: 3 / 4; display: grid; place-items: center;
}
.imgopt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgopt .cap { font-size: 12px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
.imgopt:hover .thumb { transform: translateY(-2px); box-shadow: var(--shadow); }
.imgopt.checked .thumb { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(166, 124, 70, .18); }
.imgopt.checked .cap { color: var(--brand); font-weight: 600; }
.imgopt .zoom {
  position: absolute; right: 7px; top: 7px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0, 0, 0, .42); color: #fff; display: grid; place-items: center;
  font-size: 12px; opacity: 0; transition: .18s;
}
.imgopt .thumbwrap { position: relative; }
.imgopt:hover .zoom { opacity: 1; }

/* 上传 */
.uploader {
  border: 2px dashed var(--line); border-radius: 12px; background: var(--paper-2);
  padding: 22px; text-align: center; cursor: pointer; transition: .18s;
}
.uploader:hover, .uploader.drag { border-color: var(--brand-2); background: var(--brand-soft); }
.uploader:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.uploader .up-icon { font-size: 26px; }
.uploader .up-main { font-size: 14px; margin-top: 7px; }
.uploader .up-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.uploader input[type="file"] { display: none; }

.filelist { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.fileitem {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 9px; font-size: 13px;
}
.fileitem .fi-thumb {
  width: 40px; height: 40px; border-radius: 7px; overflow: hidden; flex: 0 0 40px;
  background: var(--brand-soft); display: grid; place-items: center; font-size: 18px;
}
.fileitem .fi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fileitem .fi-main { flex: 1; min-width: 0; }
.fileitem .fi-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fileitem .fi-meta { font-size: 11.5px; color: var(--muted); }
.fileitem .fi-bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 5px; }
.fileitem .fi-bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.fileitem .fi-del {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 17px; padding: 4px 7px; border-radius: 6px; line-height: 1;
}
.fileitem .fi-del:hover { color: var(--danger); background: #fbeeea; }
.fileitem.err { border-color: #e6b8ab; background: #fdf4f1; }
.fileitem.err .fi-meta { color: var(--danger); }

/* 地址区块 */
.section-block {
  background: var(--brand-soft); border: 1px dashed #dcc8a8; border-radius: 12px;
  padding: 18px 20px; margin-bottom: 22px;
}
.section-block h3 { margin: 0 0 9px; font-size: 15px; color: var(--brand); }
.section-block .addr-text { font-size: 14px; line-height: 2; white-space: pre-line; user-select: all; }
.section-block .copy-btn {
  margin-top: 11px; font-size: 12.5px; padding: 6px 14px; border-radius: 18px;
  border: 1px solid var(--brand-2); background: #fff; color: var(--brand); cursor: pointer;
}
.section-block .copy-btn:hover { background: var(--brand); color: #fff; }
.section-block .express-tip { margin-top: 13px; padding-top: 12px; border-top: 1px dashed #e0cdb0; font-size: 12.5px; line-height: 1.9; color: #8a7a63; }
.section-block .express-tip p { margin: 2px 0; }

/* 步骤导航 */
.form-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 30px 0 40px; padding-top: 22px; border-top: 1px solid var(--line);
}
/* 第一步没有「上一步」按钮时，让「下一步」靠右 */
.form-nav.nav-end { justify-content: flex-end; }
.btn {
  font-family: inherit; font-size: 15px; padding: 12px 30px; border-radius: 26px;
  border: 1.5px solid transparent; cursor: pointer; transition: .2s; font-weight: 500;
  white-space: nowrap;
}
.btn[hidden] { display: none !important; }
.btn-primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 4px 15px rgba(166, 124, 70, .3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 7px 21px rgba(166, 124, 70, .38); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand); }
.btn-ghost[disabled] { opacity: .4; cursor: not-allowed; }
.nav-hint { flex: 1; text-align: center; font-size: 12.5px; color: var(--muted); }
.nav-hint.error { color: var(--danger); font-weight: 500; }

/* 成功页 */
.done-card {
  background: var(--paper-2); border-radius: 18px; padding: 40px 32px;
  box-shadow: var(--shadow-lg); text-align: center; margin-bottom: 40px;
  animation: fadeUp .4s ease both;
}
.done-title { margin: 14px 0 10px; }
.done-title .dt-main {
  display: block; font-size: 22px; font-weight: 700; letter-spacing: 2px; color: var(--ink);
}
.done-title .dt-sub {
  display: block; font-size: 15px; font-weight: 400; letter-spacing: 1px;
  color: var(--muted); margin-top: 5px;
}
.done-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 24px; line-height: 1.9; }
.code-box {
  display: inline-block; background: var(--brand-soft); border: 1.5px dashed #dcc8a8;
  border-radius: 12px; padding: 14px 34px; margin-bottom: 24px;
}
.code-label { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.code-value {
  font-size: 25px; font-weight: 700; letter-spacing: 3px; color: var(--brand);
  font-family: "SF Mono", Menlo, Consolas, monospace; margin-top: 4px;
  word-break: break-all;
}
.done-info { list-style: none; padding: 0; margin: 0 auto 26px; max-width: 460px; text-align: left; }
.done-info li {
  font-size: 13.5px; color: var(--ink-2); padding: 9px 0;
  border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 14px;
}
.done-info li span { color: var(--muted); flex: 0 0 auto; }
.done-info li b { font-weight: 600; text-align: right; word-break: break-all; }
.done-actions { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }
.done-actions .btn { padding: 11px 24px; font-size: 14px; text-decoration: none; display: inline-block; }
.done-tip { font-size: 12.5px; color: var(--muted); margin: 20px 0 0; line-height: 1.9; }

/* ============================================================
 * 投递成功的「信投进信箱」动画
 *
 * 纯 CSS 实现：不发一个请求、不加载一张图片，对服务器零压力。
 * 全部只用 transform / opacity（GPU 合成，不触发重排重绘），动画结束即静止。
 * 时间轴约 1.9 秒：
 *   0.00s  信从天而降（旋转着飘下来）
 *   0.75s  信箱门打开
 *   0.95s  信落进信箱、信封消失
 *   1.25s  信箱门关上
 *   1.40s  小旗升起（表示信已投递）
 *   1.55s  信箱轻轻回弹一下
 * ============================================================ */
.done-scene {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 4px auto 6px;
  /* 门要做出「翻开」的立体感，必须给父级透视 */
  perspective: 420px;
  perspective-origin: 50% 42%;
}

/* ---- 信箱主体：圆筒形的邮筒 + 底座 ---- */
.done-mb {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 74px;
  height: 84px;
  margin-left: -37px;
  border-radius: 37px 37px 7px 7px;
  background:
    linear-gradient(100deg, rgba(255,255,255,.34) 0 14%, rgba(255,255,255,0) 34%),
    linear-gradient(180deg, #d9b389 0%, #c69a6b 45%, #b2834f 100%);
  box-shadow:
    inset 0 -3px 8px rgba(120, 85, 45, .22),
    inset 2px 0 5px rgba(255,255,255,.18),
    0 6px 14px rgba(126, 100, 62, .18);
  transform-origin: 50% 100%;
  animation: mbBounce 1.9s cubic-bezier(.34,1.3,.5,1) both;
}
/* 顶盖高光 */
.done-mb::before {
  content: '';
  position: absolute; left: 50%; top: 7px;
  width: 40px; height: 9px; margin-left: -20px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
}
/* ---- 投信口（深色小横缝）---- */
.done-mb-slot {
  position: absolute;
  left: 50%; top: 27px;
  width: 46px; height: 6px; margin-left: -23px;
  border-radius: 3px;
  background: rgba(66, 44, 20, .7);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.45);
  /* 盖在信的上层：信滑到口上时会被这道深色缝「吃掉」中间一段，像是插进去了 */
  z-index: 4;
}
/* ---- 信箱门：投信时向上翻开（铰链在门的上沿）---- */
.done-mb-door {
  position: absolute;
  left: 50%; top: 21px;
  width: 48px; height: 15px; margin-left: -24px;
  border-radius: 3px;
  background: linear-gradient(180deg, #e6c69f, #c69a6b);
  box-shadow: 0 2px 4px rgba(110, 78, 42, .32);
  transform-origin: 50% 0%;
  z-index: 5;
  animation: mbDoor 1.9s cubic-bezier(.4,0,.3,1.4) both;
}
/* ---- 门上的小把手 ---- */
.done-mb-door::after {
  content: '';
  position: absolute; left: 50%; bottom: 2.5px;
  width: 12px; height: 2.5px; margin-left: -6px;
  border-radius: 2px;
  background: rgba(110, 78, 42, .45);
}
/* ---- 底座 ---- */
.done-mb-post {
  position: absolute;
  left: 50%; bottom: 0;
  width: 20px; height: 18px; margin-left: -10px;
  background: linear-gradient(180deg, #a87c4c, #8d6338);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 3px 7px rgba(126, 100, 62, .22);
}
/* ---- 投递成功的信号小旗：默认垂在杆上，投递后「啪」地立起来 ---- */
.done-mb-flag {
  position: absolute;
  right: -15px; top: 12px;
  width: 16px; height: 10px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #d9603f, #b8452a);
  /* 铰链在旗杆顶端，垂下时绕这个点转 90° 就是「挂下来」 */
  transform-origin: 0 0;
  z-index: 5;
  animation: mbFlag 1.9s cubic-bezier(.3,1.5,.5,1) both;
}
/* 旗杆（固定不动，旗绕着它转） */
.done-mb-flag::before {
  content: '';
  position: absolute; left: -3px; top: -5px;
  width: 3px; height: 22px;
  background: #8d6338;
  border-radius: 2px;
  z-index: -1;
}

/* ---- 飞来的信：一张折叠的信纸（要盖在信箱上层，飞进来才看得见）---- */
.done-letter {
  position: absolute;
  left: 50%; top: 4px;
  width: 44px; height: 30px;
  margin-left: -22px;
  border-radius: 3px;
  background: linear-gradient(180deg, #fffdf7, #f3e8d4);
  box-shadow: 0 3px 9px rgba(126, 100, 62, .32);
  transform-origin: 50% 50%;
  z-index: 3;
  animation: letterDrop 1.9s cubic-bezier(.4,.1,.5,1) both;
}
/* 信封盖子的折痕线 */
.done-letter .lf-flap {
  position: absolute; left: 0; right: 0; top: 0;
  height: 15px;
  border-bottom: 1.5px solid #d9c8a6;
  background: linear-gradient(180deg, #fdf8ec, #f6ecd8);
  border-radius: 3px 3px 0 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: .85;
}

/* ---- 关键帧 ---- */
/* 信：从左上远处旋转着飘来 → 在投信口前顿一下 → 缩小没入信箱
   投信口在信箱 top:27px，信自身 top:4px、高30px，
   信箱底 bottom:16px、高84px ⇒ 场景内信箱顶在 132-16-84=32px，
   口中心 ≈ 32+27+2.5 = 61.5px，信中心要落到这里 ⇒ translateY 约 42px。 */
@keyframes letterDrop {
  0%   { opacity: 0; transform: translate(-46px, -54px) rotate(-30deg) scale(.8); }
  10%  { opacity: 1; }
  46%  { opacity: 1; transform: translate(15px, 4px) rotate(11deg) scale(1); }
  58%  { opacity: 1; transform: translate(-5px, 20px) rotate(-4deg) scale(1); }
  68%  { opacity: 1; transform: translate(0, 30px) rotate(0deg) scale(.98); }
  84%  { opacity: 1; transform: translate(0, 40px) rotate(0deg) scale(.86); }
  93%  { opacity: .85; transform: translate(0, 44px) rotate(0deg) scale(.5); }
  100% { opacity: 0; transform: translate(0, 46px) rotate(0deg) scale(.35); }
}
/* 门：信飘下来之前先打开 → 信进袋后合上 */
@keyframes mbDoor {
  0%, 22%   { transform: rotateX(0deg); }
  32%      { transform: rotateX(-112deg); }
  80%      { transform: rotateX(-112deg); }
  90%,100% { transform: rotateX(0deg); }
}
/* 小旗：先垂着（绕杆顶转 92° = 挂下来），投递后「啪」地立起来 */
@keyframes mbFlag {
  0%, 78%  { transform: rotate(92deg); }
  88%      { transform: rotate(-7deg); }
  94%      { transform: rotate(3deg); }
  100%     { transform: rotate(0deg); }
}
@keyframes mbBounce {
  0%, 76%  { transform: scale(1, 1); }
  82%      { transform: scale(1.07, .93); }
  88%      { transform: scale(.97, 1.03); }
  93%      { transform: scale(1.015, .99); }
  100%     { transform: scale(1, 1); }
}

/* ---- 系统开了「减弱动效」时不播动画，但**保留静态画面** ----
   ⚠️ 这里绝对不能 display:none —— 那会把信箱整个藏起来，
      用户看到的就是「图标没了」。降级只是"不演"，不是"不出现"。
   做法：animation:none 停掉动画，再把每个元素手动摆到动画最后一帧的样子。 */
@media (prefers-reduced-motion: reduce) {
  .done-scene *,
  .done-scene,
  .done-card,
  .done-card * {
    animation: none !important;
    transition: none !important;
  }
  /* 信已投进信箱 → 直接隐藏它 */
  .done-letter { opacity: 0; transform: scale(.35) translateY(46px); }
  /* 门是合上的 */
  .done-mb-door { transform: none; }
  /* 小旗立起 */
  .done-mb-flag { transform: rotate(0deg); }
  /* 信箱正常大小 */
  .done-mb { transform: none; }
  /* 标题与副标题照常显示 */
  .done-title .dt-main,
  .done-title .dt-sub { opacity: 1; transform: none; }
}
/* 提交成功页里的亲笔信邮寄说明：复用 .section-block 的虚线框，左对齐并限宽居中 */
.done-express { text-align: left; max-width: 480px; margin: 4px auto 26px; }

/* 底栏 */
/* 写信页素材快捷按钮：点一下 = 在慢邮形式里勾上时光照片 / 声音信 / 视频信 */
.addmedia { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; }
.am-btn {
  font-family: inherit; font-size: 13.5px; cursor: pointer;
  padding: 9px 16px; border-radius: 22px; line-height: 1.4;
  border: 1.5px dashed #d9c9ae; background: #fffdf8; color: var(--ink-2);
  transition: .18s; display: inline-flex; align-items: center; gap: 6px;
}
.am-btn:hover { border-color: var(--brand-2); color: var(--brand); background: var(--brand-soft); }
.am-btn.on {
  border-style: solid; border-color: var(--brand); background: var(--brand-soft);
  color: var(--brand); font-weight: 600;
}
.am-btn.on i { font-style: normal; font-size: 12px; opacity: .8; }

/* 联系客服弹窗 */
.modal {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(28, 22, 15, .5); z-index: 120;
  display: grid; place-items: center; padding: 24px;
}
.modal-box {
  background: #fffdf8; border-radius: 16px; padding: 26px 28px;
  max-width: 400px; width: 100%; box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}
.modal-box h3 { margin: 0 0 18px; font-size: 17px; color: var(--brand); }
.contact-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row .ct-lb { font-size: 13px; color: var(--muted); width: 66px; flex: 0 0 66px; }
.contact-row .ct-v {
  flex: 1; font-size: 15px; color: var(--ink); font-weight: 600;
  user-select: all; word-break: break-all;
}
.contact-row .copy-btn {
  font-family: inherit; font-size: 12px; padding: 5px 12px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--brand-2); background: #fff; color: var(--brand); transition: .16s;
}
.contact-row .copy-btn:hover { background: var(--brand); color: #fff; }
.ct-tip { font-size: 12.5px; color: var(--muted); line-height: 1.9; margin: 14px 0 18px; }
.modal-box .btn { width: 100%; }

.site-footer { background: #efe6d8; border-top: 1px solid var(--line); padding: 22px 0 20px; margin-top: 30px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.copyright { text-align: left; font-size: 12px; color: var(--muted); margin: 0; }
.beian { margin: 0; font-size: 11px; line-height: 1.5; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.beian a { color: var(--muted); text-decoration: none; }
.beian a:hover { color: var(--ink); text-decoration: underline; }

/* 大图预览 */
.lightbox {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(28, 22, 15, .88); z-index: 100;
  display: grid; place-items: center; padding: 30px; cursor: zoom-out;
}
.lb-inner { max-width: 92vw; max-height: 90vh; text-align: center; }
.lb-inner img { max-width: 100%; max-height: 82vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-cap { color: #f0e6d6; font-size: 14px; margin-top: 13px; }

/* 轻提示 */
.toast {
  position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%) translateY(14px);
  background: rgba(45, 36, 26, .94); color: #fff; padding: 12px 26px; border-radius: 26px;
  font-size: 13.5px; z-index: 200; opacity: 0; transition: .25s; pointer-events: none;
  max-width: 86vw; text-align: center; line-height: 1.6;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: rgba(168, 62, 42, .95); }

.honeypot { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; }

/* 移动端 */
@media (max-width: 720px) {
  .wrap { padding: 0 14px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 11px; }
  /* 导航项可能换行成两排 */
  .brand-nav { align-self: stretch; flex-wrap: wrap; row-gap: 8px; }
  .brand-nav a, .brand-nav .nav-btn { flex: 1; text-align: center; }

  /* ---- 信客中心：移动端收成右上角一个小图标 ----
     需求：不要在导航里占一整行（太显眼），改成 header 右上角一个小图标，
     图标下面加一行小字「信客中心」标明是什么（字号比导航小一点，能看清就行）。
     做法：把它从 flex 流里拿出来（position:absolute），钉到 header 右上角；
     按钮内部改成竖排（图标在上、文字在下）。点击行为不变。 */
  .site-header { position: relative; }
  .brand-nav member-entry {
    position: absolute;
    top: 10px; right: 12px;
    display: block;
    z-index: 2;
  }
  .brand-nav member-entry .me-entry {
    /* 竖排：图标一行、小字一行 */
    flex-direction: column; gap: 1px;
    width: auto; padding: 5px 6px 4px; border-radius: 11px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .26);
    line-height: 1.15;
  }
  .brand-nav member-entry .me-entry:hover { background: rgba(255, 255, 255, .28); }
  /* 小字标注：比导航（13px）小一点即可 */
  .brand-nav member-entry .me-label {
    display: block;
    font-size: 10.5px;
    letter-spacing: 0;
    color: rgba(255, 255, 255, .92);
    white-space: nowrap;
  }
  /* 图标在窄屏下略缩小 */
  .brand-nav member-entry .me-badge,
  .brand-nav member-entry .me-badge svg { width: 22px; height: 17px; }

  .steps li { font-size: 0; }
  .steps li .n { margin-right: 0; }
  .btn { padding: 11px 20px; font-size: 14px; }
  .nav-hint { display: none; }
  .done-card { padding: 30px 20px; }
  .code-value { font-size: 19px; letter-spacing: 2px; }
  .imgrid { gap: 8px; }
  .imgopt .cap { font-size: 11px; }
}

/* ============================================================
 * 极速寄信入口（写在第一步底栏左侧）
 * 只在第 1 步出现：form.js 给第一步的 .form-nav 加 nav-end 类，
 * 这里借这个类做显隐，避免改动原有步骤逻辑。
 * ============================================================ */
.form-nav .quick-entry {
  display: none;
  align-items: center;
  font-size: 13.5px;
  color: var(--brand);
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px dashed var(--brand-2);
  background: var(--brand-soft);
  white-space: nowrap;
  transition: .18s;
}
.form-nav .quick-entry:hover {
  background: #f2e5d1;
  border-style: solid;
  transform: translateY(-1px);
}
/* nav-end 只出现在「第一步且不是最后一步」时 —— 正好当作显示条件 */
.form-nav.nav-end .quick-entry { display: inline-flex; margin-right: auto; }

@media (max-width: 560px) {
  .form-nav .quick-entry { font-size: 12.5px; padding: 7px 12px; }
  .form-nav .quick-entry .qe-sub { display: none; }
}
