/* ============================================================
 * 极速寄信页（/quick）
 * 只服务这一页，全部类名以 q- 开头，不影响完整版写信页。
 * 颜色沿用 style.css 里的牛皮纸主题变量。
 * ============================================================ */

.q-body { padding-bottom: 30px; }

.q-main { padding-top: 22px; padding-bottom: 10px; }

.q-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 26px 24px 24px;
  margin-bottom: 22px;
}

/* ------------------------------------------------ 头部 */
.q-head h2 {
  margin: 0 0 8px; font-size: 22px; letter-spacing: 1px; color: var(--ink);
}
.q-head p { margin: 0 0 22px; font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.q-head p a { color: var(--brand); text-decoration: none; border-bottom: 1px dashed var(--brand-2); }

/* ------------------------------------------------ 分块 */
.q-block { padding: 18px 0; border-top: 1px dashed var(--line); }
.q-block:first-of-type { border-top: 0; padding-top: 4px; }
.q-block h3 {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap; row-gap: 6px;
  margin: 0 0 14px; font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: .5px;
}
.q-no {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
}
.q-optional { font-size: 12px; font-weight: 400; color: var(--muted); }

/* 「先不填写，寄出前联系确认」：小勾选项，挂在收信人信息标题右侧 */
/* 「先不填写，寄出前联系确认」：紧跟在「收信人信息」标题右侧（原来靠最右，太远不显眼），
   做成淡淡的小胶囊，一眼能看见、也像可点的开关 */
.q-later {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: #8a5a12; letter-spacing: 0;
  background: #fdf2dc; border: 1px solid #f0d9a8;
  cursor: pointer; white-space: nowrap;
  padding: 4px 12px 4px 10px; border-radius: 16px; transition: .18s;
}
.q-later:hover { border-color: var(--brand); color: var(--brand); background: #fbeacd; }
.q-later input { width: 15px; height: 15px; margin: 0; accent-color: var(--brand); cursor: pointer; }
/* 勾上后整组收信人信息收起，这里给个「已改为寄出前确认」的视觉提示 */
.q-later.on {
  background: var(--brand-soft); border-color: var(--brand-2);
  color: var(--brand); font-weight: 600;
}
.q-later-tip {
  margin: 0 0 4px; font-size: 12.5px; line-height: 1.8; color: #8a6f43;
  background: #fdf5e8; border: 1px dashed var(--brand-2); border-radius: 9px; padding: 9px 12px;
}
@media (max-width: 560px) {
  .q-later { font-size: 12px; padding: 3px 10px 3px 8px; }
}

/* ------------------------------------------------ 字段 */
.q-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.q-field { display: block; margin-bottom: 14px; }
.q-field:last-child { margin-bottom: 0; }
.q-label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 7px; }
.q-label i { color: var(--danger); font-style: normal; }

/* 日期标题行：标题 + 「隐藏此日期」紧挨在一起（和「先不填写」同一个视觉语言） */
.q-label-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; row-gap: 5px; margin-bottom: 7px; }
.q-label-row .q-label { margin-bottom: 0; }
.q-hide {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: #8a5a12; letter-spacing: 0;
  background: #fdf2dc; border: 1px solid #f0d9a8; border-radius: 14px;
  padding: 2px 9px 2px 8px; cursor: pointer; white-space: nowrap; transition: .18s;
}
.q-hide:hover { border-color: var(--brand); color: var(--brand); background: #fbeacd; }
.q-hide input { width: 14px; height: 14px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.q-hide:has(input:checked) { background: var(--brand-soft); border-color: var(--brand-2); color: var(--brand); font-weight: 600; }

.q-field input[type="text"],
.q-field input[type="tel"],
.q-field input[type="email"],
.q-field input[type="date"],
.q-field textarea,
.q-region select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
  appearance: none;
}
.q-field textarea { line-height: 1.9; resize: vertical; min-height: 90px; }
.q-field input:focus,
.q-field textarea:focus,
.q-region select:focus {
  outline: none; border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(200, 160, 106, .16);
}
.q-field input::placeholder,
.q-field textarea::placeholder { color: #bfb2a0; }
/* 日期框在 iOS 上默认高度偏矮，补一下 */
.q-field input[type="date"] { min-height: 46px; line-height: 1.4; }

/* 手机端日期换成滚轮按钮（datebox），尺寸跟本页输入框对齐 */
.q-field .datebox {
  padding: 12px 14px; border-radius: 11px; font-size: 15px; min-height: 46px;
  background: #fff; border: 1.5px solid var(--line);
}
.q-field .datebox .dp-val { color: var(--ink); }

.q-tip { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

/* 省市区三级 */
.q-region { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px; }
.q-region select { padding: 11px 10px; font-size: 14px; }

/* ------------------------------------------------ 慢邮形式卡片 */
.q-types { display: grid; gap: 10px; }
.q-type { display: block; cursor: pointer; }
.q-type input { position: absolute; opacity: 0; pointer-events: none; }
.q-type-body {
  display: block; border: 1.5px solid var(--line); border-radius: 13px;
  background: #fff; padding: 13px 15px; transition: .18s;
}
.q-type-body b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.q-type-body em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.q-type input:checked + .q-type-body {
  border-color: var(--brand-2); background: var(--brand-soft);
  box-shadow: 0 3px 14px rgba(166, 124, 70, .13);
}
.q-type input:focus-visible + .q-type-body { box-shadow: 0 0 0 3px rgba(200, 160, 106, .25); }

.q-note {
  margin: 12px 0 0; font-size: 12.5px; color: #8a6f43;
  background: #fdf5e8; border: 1px dashed var(--brand-2); border-radius: 9px; padding: 9px 12px;
}

/* ------------------------------------------------ 附件 */
.q-media-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.q-media-btn {
  font-family: inherit; font-size: 13px; color: var(--ink-2);
  background: #fff; border: 1.5px dashed var(--line); border-radius: 20px;
  padding: 7px 14px; cursor: pointer; transition: .18s;
}
.q-media-btn:hover { border-color: var(--brand-2); color: var(--brand); }
.q-media-btn:disabled { opacity: .55; cursor: not-allowed; }
.q-media-hint { font-size: 12px; color: var(--muted); }

.q-media-lists { margin-top: 4px; }
.q-flist { display: grid; gap: 8px; }
.q-flist:empty { display: none; }
.q-flist { margin-top: 8px; }

.q-file {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 8px 10px; font-size: 13px;
}
.q-file .q-thumb {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 7px; object-fit: cover; background: #f3ede4;
}
.q-file .q-fic { width: 42px; flex: 0 0 42px; text-align: center; font-size: 20px; }
.q-file .q-fname {
  flex: 1 1 auto; min-width: 0; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.q-file .q-fdel {
  flex: 0 0 auto; border: 0; background: transparent; color: var(--muted);
  font-size: 16px; cursor: pointer; padding: 2px 6px; border-radius: 6px;
}
.q-file .q-fdel:hover { color: var(--danger); background: #fdeeea; }
.q-file.is-uploading { opacity: .7; }
.q-file .q-fbar { height: 3px; background: var(--brand-2); border-radius: 2px; width: 0; transition: width .2s; }

/* ------------------------------------------------ 提交 */
.q-submit-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 8px; padding-top: 18px; border-top: 1px dashed var(--line);
}
.q-agree { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; flex: 1 1 200px; }
.q-submit { min-width: 190px; }
.q-submit[disabled] { opacity: .6; cursor: not-allowed; }

/* ------------------------------------------------ 成功页 */
.q-done { text-align: center; }
.q-done-ic { font-size: 46px; line-height: 1; margin: 6px 0 12px; }
.q-done h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: 1px; }
.q-done-sub { margin: 0 0 20px; font-size: 13.5px; color: var(--muted); }
.q-code {
  display: inline-flex; flex-direction: column; gap: 4px;
  background: var(--brand-soft); border: 1px dashed var(--brand-2);
  border-radius: 13px; padding: 14px 30px; margin-bottom: 18px;
}
.q-code span { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.q-code b { font-size: 26px; letter-spacing: 4px; color: var(--brand); font-weight: 700; }
.q-done-info { list-style: none; margin: 0 0 20px; padding: 0; font-size: 13.5px; color: var(--ink-2); line-height: 2; }
.q-done-info li span { color: var(--muted); }
.q-done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.q-done-actions .btn { font-size: 14px; padding: 11px 22px; }

/* 亲笔信：成功后要告诉客户把信寄到哪 */
.q-done-express {
  text-align: left; background: #fdf7ec; border: 1px dashed var(--brand-2);
  border-radius: 13px; padding: 16px 18px; margin: 0 0 20px;
}
.q-done-express h3 { margin: 0 0 10px; font-size: 14.5px; color: var(--ink); }
.q-express-addr {
  margin: 0 0 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; line-height: 1.85; color: var(--ink);
  word-break: break-all; white-space: pre-wrap;
}
.q-done-express .btn { font-size: 13px; padding: 8px 16px; }
.q-express-tip {
  list-style: none; margin: 14px 0 0; padding: 0;
  font-size: 12.5px; color: var(--muted); line-height: 1.9;
}
.q-express-tip li::before { content: '· '; }

/* 蜜罐 */
.q-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ------------------------------------------------ 移动端 */
@media (max-width: 620px) {
  .q-card { padding: 20px 15px 18px; border-radius: 15px; }
  .q-row2 { grid-template-columns: 1fr; gap: 0; }
  .q-head h2 { font-size: 19px; }
  .q-block h3 { font-size: 14.5px; }
  .q-region { grid-template-columns: 1fr 1fr; }
  .q-region select:first-child { grid-column: 1 / -1; }
  .q-submit-row { flex-direction: column; align-items: stretch; gap: 12px; }
  /* 竖排后 flex-basis 从「宽度基准」变成「高度基准」，不重置的话这行小字会撑出
     将近 200px 的空白（手机上那一大块air就是这么来的） */
  .q-agree { flex: 0 0 auto; }
  .q-submit { width: 100%; }
  .q-done-actions .btn { flex: 1 1 auto; }
  .q-code { padding: 12px 22px; }
  .q-code b { font-size: 22px; letter-spacing: 3px; }
}

/* 页脚 */
.site-footer { text-align: center; font-size: 12.5px; color: var(--muted); padding: 10px 0 26px; line-height: 1.9; }
.site-footer p { margin: 2px 0; }
