@charset "UTF-8";
/* ============================================================
   云数贸专项清退行动 申报系统
   设计稿：Figma 393px 移动端，所有数值 1:1 对应设计稿
   ============================================================ */

:root {
  /* 页面 */
  --page-bg: #f8fbff;
  --page-w: 393px;

  /* 头部 / 页脚 */
  --header-grad: linear-gradient(135deg, #082e75 0%, #093c88 62%, #062660 100%);
  --footer-grad: linear-gradient(112.38deg, #0a438c 0%, #062b6d 100%);
  --marquee-text: #123f7d;
  --marquee-border: #d8e1ed;
  --footer-text: #d4e2ff;
  --footer-copy: #6f9cd7;
  --header-sub: #d7e8ff;

  /* 卡片 / 描边 */
  --card-border: #d5deea;
  --card-border-soft: #f0f1f3;
  --card-border-lite: #edf1f6;
  --input-border: #e3e6ea;

  /* 文字 */
  --text-main: #17202e;
  --text-title: #17233b;
  --text-body: #4e5b70;
  --text-muted: #9aa6b8;
  --text-grey: #7c8796;
  --placeholder: #b7bbc2;
  --term: #435069;
  --detail: #667288;

  /* 主色 */
  --blue: #126bdc;
  --blue-2: #147bf0;
  --blue-solid: #0a6bea;
  --blue-text: #075fcf;
  --blue-deep: #0757b8;

  /* 强调色 */
  --red: #df3e39;
  --red-news: #b92024;
  --red-cert: #cf161d;
  --red-notice: #bc1d25;
  --green: #208866;
  --green-border: #4faf8f;
  --green-bg: #f3fbf8;

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
          -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: #e8eef7;
  font-family: var(--font);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img { display: block; border: 0; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, textarea, select { font-family: inherit; }

/* 手机框：设计稿 393px，最宽 480px，超出居中留白 */
.phone {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page-bg);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   头部
   ============================================================ */
.hd {
  position: relative;
  background:
    radial-gradient(320px 320px at 299px -19px, rgba(51, 118, 219, 0.75) 0%, rgba(51, 118, 219, 0) 45%),
    var(--header-grad);
  padding: 34px 17px 8px 21px;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 96px;
  flex: none;
}
.hd__logo {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.hd__txt { flex: 1; min-width: 0; }
.hd__title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 21.24px;
  letter-spacing: 0.5px;
  color: #fff;
}
.hd__sub {
  margin: 2px 0 0;
  font-size: 10px;
  font-weight: 400;
  color: var(--header-sub);
  line-height: normal;
}
.hd__badge {
  flex: none;
  width: 59px;
  height: 41px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.hd__badge span {
  font-size: 11px;
  font-weight: 500;
  line-height: 11.55px;
  color: #fff;
}

/* 跑马灯条 */
.marquee {
  flex: none;
  height: 28px;
  background: #fff;
  border-bottom: 1px solid var(--marquee-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
/* 盾牌+对勾两层叠加，偏移量按 Figma 的百分比 inset 换算到 17px 容器 */
.marquee__icon { position: relative; display: block; width: 17px; height: 17px; flex: none; }
.marquee__shield { position: absolute; left: 2.83px; top: 1.91px; width: 11.33px; height: 13.18px; }
.marquee__check  { position: absolute; left: 5.03px; top: 5.46px; width: 7.01px;  height: 5.38px; }
.marquee__txt {
  font-size: 11.1px;
  font-weight: 500;
  color: var(--marquee-text);
  white-space: nowrap;
}

/* ============================================================
   页脚
   ============================================================ */
.ft {
  flex: none;
  height: 102px;
  background: var(--footer-grad);
  padding: 29px 13px 0;
  text-align: center;
}
.ft p {
  margin: 0;
  font-size: 8px;
  font-weight: 500;
  line-height: 12.8px;
  color: var(--footer-text);
}
.ft p.ft__copy {
  margin-top: 6px;
  line-height: 11.2px;
  color: var(--footer-copy);
}

/* 主体区，撑开把页脚顶到底部 */
.main { flex: 1 0 auto; }

/* ============================================================
   通用卡片
   ============================================================ */
.card {
  margin: 8px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  filter: drop-shadow(0 1px 2px rgba(26, 60, 104, 0.12));
}

/* ============================================================
   首页 —— 视频区
   ============================================================ */
.video {
  position: relative;
  margin: 8px;
  height: 183px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.47);
  background:
    radial-gradient(267px 194px at 50% 75%, rgba(29, 107, 208, 0.55) 0%, rgba(29, 107, 208, 0) 42%),
    linear-gradient(180deg, #071944 0%, #03112d 82%, #010712 100%);
}
.video__el {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}
.video__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(215, 232, 255, 0.55);
  font-size: 12px;
}
/* 自绘播放条（设计稿样式，覆盖在原生 video 上） */
.video__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.93) 100%);
}
.video__play {
  color: #fff;
  font-size: 9px;
  line-height: 1;
  width: 9px;
  flex: none;
}
.video__time {
  color: #fff;
  font-size: 9px;
  line-height: 1;
  flex: none;
  font-variant-numeric: tabular-nums;
}
.video__track {
  flex: 1;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}
.video__fill {
  height: 100%;
  width: 15%;
  border-radius: 1px;
  background: #fff;
  transition: width 0.2s linear;
}
.video__full {
  color: #fff;
  font-size: 15px;
  line-height: 1;
  flex: none;
}

/* ============================================================
   首页 —— 海报轮播
   ============================================================ */
.slider { padding: 10px 9px 0; }
.slider__title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20.3px;
  letter-spacing: 0.1px;
  color: var(--red-news);
}
.slider__meta {
  margin: 3px 0 0;
  font-size: 8px;
  color: var(--text-grey);
  line-height: normal;
}
.slider__view {
  position: relative;
  margin-top: 5px;
  height: 159px;
  border: 1px solid #c8d2e0;
  border-radius: 5px;
  overflow: hidden;
  background: #0a336d;
}
.slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.slider__item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}
.slider__item img { width: 100%; height: 100%; object-fit: cover; }
.slider__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(239, 245, 255, 0.95);
  border-top: 2px solid #194f99;
  padding: 4px 5px 3px;
  font-size: 8px;
  font-weight: 500;
  color: #12315f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slider__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}
.slider__dots {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  height: 14px;
  margin: 5px 0 11px;
}
.slider__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e1e6ed;
  transition: background 0.2s;
}
.slider__dot.is-on { background: #2869c4; }

/* ============================================================
   首页 —— 清退标准 + 入口
   ============================================================ */
.entry {
  margin: 5px 8px 8px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 10px 14px;
}
.entry__hd {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 0 5px 9px;
}
.entry__hd img { width: 18px; height: 20px; flex: none; }
.entry__hd h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-title);
  line-height: normal;
}
.entry__hd p {
  margin: 4px 0 0;
  font-size: 9px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: normal;
}
.amount {
  border-radius: 9px;
  background: linear-gradient(100.28deg, #f4f7fb 0%, #f8f9ff 100%);
  padding: 14px 8px 0;
}
.amount__row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  padding-bottom: 8px;
}
.amount__label {
  font-size: 10px;
  font-weight: 500;
  color: #456083;
}
.amount__num {
  font-size: 28px;
  font-weight: 700;
  line-height: 28px;
  color: var(--red);
  font-family: Arial, "Liberation Sans", Helvetica, sans-serif;
}
.amount__unit { font-size: 11px; color: var(--red); }
.amount__tags {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e6ecf3;
  padding: 5px 14px 6px;
}
.amount__tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: #53846f;
}
.amount__tag img { width: 15px; height: 15px; border-radius: 6.25px; flex: none; }

/* 四个入口按钮 */
.btn-entry {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  margin-top: 13px;
  padding: 9.5px 10px;
  border-radius: 7px;
  text-align: left;
}
.btn-entry__icon { width: 40px; height: 27px; flex: none; object-fit: cover; }
.btn-entry__txt { flex: 1; min-width: 0; padding-left: 0; }
.btn-entry__t {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: normal;
}
.btn-entry__s {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  opacity: 0.8;
  line-height: normal;
}
.btn-entry__arrow {
  flex: none;
  width: 18px;
  font-size: 27px;
  line-height: 1;
  text-align: right;
  font-family: Arial, "Liberation Sans", sans-serif;
}

.btn-entry--self {
  background: linear-gradient(98.5deg, #126bdc 0%, #147bf0 100%);
  border: 1px solid transparent;
  color: #fff;
  filter: drop-shadow(0 5px 6px rgba(19, 107, 213, 0.24));
}
.btn-entry--agent {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
}
.btn-entry--plain {
  background: #fff;
  border: 1px solid #d8dde5;
  color: #353a43;
}
.btn-entry:active { transform: scale(0.985); }

/* ============================================================
   表单页
   ============================================================ */
.form-wrap { background: #fafbfc; padding: 0 0 14px; }

.sec {
  margin: 0 11px 11px;
  background: #fff;
  border: 1px solid var(--card-border-soft);
  border-radius: 6px;
  padding: 10px 10px 9px;
  filter: drop-shadow(0 2px 3.5px rgba(25, 41, 65, 0.08));
}
.sec:first-child { margin-top: 11px; }
.sec__hd {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 1.5px 0 3px;
  margin-bottom: 9px;
}
.sec__hd img { width: 16px; height: 16px; flex: none; }
.sec__hd h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--text-main);
  line-height: normal;
}
.req { color: #ff0400; }

.field {
  display: flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 7px;
}
.field:last-child { margin-bottom: 0; }
.field--top { align-items: flex-start; }
.field__label {
  flex: none;
  width: 91px;
  padding-right: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-main);
  line-height: normal;
}
.field__ctrl { flex: 1; min-width: 0; position: relative; }

.inp,
.sel,
.txt {
  display: block;
  width: 100%;
  height: 30px;
  padding: 0 9px;
  background: #fff;
  border: 1px solid var(--input-border);
  border-radius: 3px;
  font-size: 9.5px;
  color: var(--text-main);
  line-height: 28px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.txt {
  height: 56px;
  padding: 8px 9px;
  line-height: 1.5;
  resize: none;
}
.inp::placeholder,
.txt::placeholder { color: var(--placeholder); }
.sel { color: var(--text-main); line-height: 28px; }
.sel:invalid { color: var(--placeholder); }
.inp:focus,
.sel:focus,
.txt:focus { border-color: var(--blue); }

/* 地区下拉的小箭头 */
.field__ctrl--sel::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -1.5px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #9aa6b8;
  pointer-events: none;
}

/* 校验错误态 */
.field.is-err .inp,
.field.is-err .sel,
.field.is-err .txt { border-color: #e4393c; background: #fffafa; }
.field__err {
  display: none;
  margin: 3px 0 0;
  font-size: 8.5px;
  color: #e4393c;
  line-height: 1.3;
}
.field.is-err .field__err { display: block; }

/* 上传区 */
.upload__tip {
  margin: 0 0 7px;
  font-size: 9px;
  color: #a7abb3;
  text-align: right;
  line-height: normal;
}
.upload__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 61px;
  border: 1px dashed #d7dade;
  border-radius: 5px;
  background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%);
}
.upload__btn img { width: 23px; height: 23px; }
.upload__btn span { font-size: 9px; color: #a5a9b0; }
.upload__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.upload__item {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--input-border);
  background: #f7f8fa;
}
.upload__item img { width: 100%; height: 100%; object-fit: cover; }
.upload__item span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  font-size: 7px;
  color: #6b7280;
  text-align: center;
  word-break: break-all;
  line-height: 1.2;
}
.upload__del {
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 15px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10px;
  line-height: 15px;
  text-align: center;
  border-bottom-left-radius: 4px;
}

/* 承诺 + 提交 */
.promise {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 16px;
  padding: 9px 0 8px;
}
.promise input {
  width: 11px;
  height: 11px;
  margin: 0;
  flex: none;
  border-radius: 50%;
  border: 1px solid #d5d8dc;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
}
.promise input:checked {
  background: var(--blue);
  border-color: var(--blue);
}
.promise input:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1.5px;
  width: 3px;
  height: 5px;
  border: solid #fff;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.promise label {
  font-size: 8.5px;
  color: #848a94;
  line-height: 1.35;
}
.promise.is-err label { color: #e4393c; }

.btn-submit,
.btn-later {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 22px);
  height: 34px;
  margin: 0 11px 9px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  filter: drop-shadow(0 3px 4px rgba(14, 111, 218, 0.2));
}
.btn-submit {
  background: linear-gradient(90deg, #1079e4 0%, #0869da 100%);
  color: #fff;
}
.btn-submit[disabled] { opacity: 0.65; }
.btn-later { background: #fff; color: var(--blue-text); }
.form-note {
  margin: 8px 11px 0;
  font-size: 8.5px;
  color: #a3a8b1;
  text-align: center;
  line-height: normal;
}
.form-note a { color: #277cc8; }

/* ============================================================
   申报成功页
   ============================================================ */
.done {
  margin: 14px;
  background: #fff;
  border: 1px solid var(--card-border-lite);
  border-radius: 14px;
  padding: 18px 14px 17px;
  filter: drop-shadow(0 7px 10px rgba(33, 62, 101, 0.06));
  text-align: center;
}
.done__check { width: 58px; height: 58px; margin: 0 auto; border-radius: 50%; }
.done__h {
  margin: 10px 0 0;
  font-size: 23px;
  font-weight: 500;
  line-height: 32.2px;
  letter-spacing: 0.5px;
  color: var(--blue-deep);
}
.done__lead {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 22.36px;
  color: var(--text-body);
}
.done__box {
  margin-top: 7px;
  padding: 18.8px 12px 12px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfcff 0%, #f7f9fc 100%);
}
.done__box-h {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #182541;
  line-height: normal;
}
.done__box-s {
  margin: 11px 0 0;
  font-size: 13px;
  color: #5e6a7e;
  line-height: normal;
}
.done__amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-top: 6px;
  letter-spacing: 1px;
  color: var(--red-cert);
}
.done__amount b {
  font-size: 46px;
  line-height: 50.6px;
  font-family: Arial, "Liberation Sans", Helvetica, sans-serif;
}
.done__amount i { font-size: 20px; font-weight: 900; font-style: normal; line-height: 22px; }
.done__box-note {
  margin: 7px 0 0;
  font-size: 11px;
  color: #798498;
  line-height: normal;
}

.desc {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px 10px;
  margin-top: 14px;
  text-align: left;
}
.desc dt {
  font-size: 12px;
  font-weight: 500;
  color: var(--term);
  line-height: 16.2px;
  white-space: nowrap;
}
.desc dd {
  margin: 0;
  font-size: 12px;
  color: var(--detail);
  line-height: 16.2px;
  word-break: break-all;
}
.desc dd.is-status { font-weight: 500; color: var(--blue-text); }

.done__acts { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.btn-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 43px;
  border-radius: 8px;
  font-size: 15px;
}
.btn-big img { width: 12px; height: 18px; object-fit: contain; flex: none; }
.btn-big--fill {
  background: linear-gradient(90deg, #0865d7 0%, #126de6 100%);
  border: 1px solid var(--blue-solid);
  color: #fff;
}
.btn-big--line {
  background: #fff;
  border: 1px solid var(--blue-solid);
  color: var(--blue-text);
}
.btn-big:active { opacity: 0.88; }

/* ============================================================
   遮罩 / 弹窗通用
   ============================================================ */
.mask {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(9, 20, 38, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s;
}
.mask.is-open { opacity: 1; visibility: visible; }
.mask__inner {
  width: 100%;
  max-width: 361px;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.mask.is-open .mask__inner { transform: none; }

/* ------------------ 温馨提示（进入弹窗）1x 设计稿 ------------------ */
.welcome {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 15px;
  background: linear-gradient(147.91deg, #fff 0%, #fbfdff 72%, #edf5ff 100%);
  box-shadow: 0 18px 22.5px rgba(0, 0, 0, 0.38), inset 0 0 55px rgba(52, 131, 230, 0.06);
  /* 左右内边距设计稿是 20px，收到 18px。
     注意 .welcome 自身还有 1px 边框，所以 393px 屏下真实可用宽度是
     361 − 2（边框）− 36（内边距）= 323px，而不是 321px。
     腾出的这 4px 用来让红框标题和正文单行放下，2px 差异肉眼不可见。 */
  padding: 18px 18px 15px;
  text-align: center;
}
.welcome__emblem { width: 43px; height: 43px; margin: 0 auto; }
.welcome__h {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 0;
  padding-bottom: 10px;
}
.welcome__h span {
  font-size: 34px;
  font-weight: 500;
  line-height: 40.12px;
  letter-spacing: 2px;
  color: #0754bc;
  text-shadow: 0 1px 0 #fff;
}
.welcome__notice {
  border: 1px solid #f0a1a5;
  border-radius: 6px;
  background: linear-gradient(180deg, #fffafa 0%, #fff4f4 100%);
  box-shadow: inset 0 0 20px rgba(216, 50, 57, 0.04);
  /* 左右内边距设计稿是 8px，收到 6px 以腾出宽度装下 16px 的 19 个字 */
  padding: 10.6px 6px 10.8px;
  font-weight: 500;
  line-height: 23.2px;
  color: var(--red-notice);
  white-space: nowrap;   /* 强制单行 */

  /* 这行共 19 个汉字。393px 屏下本框内可用 309px
     （361 − 2 弹窗边框 − 36 弹窗内边距 − 12 本框内边距 − 2 本框边框），
     19×16 = 304px，留 5px 余量，所以 393px 及以上用的就是设计稿原始 16px。
     更窄的屏幕按 (屏宽 − 90) / 19 等比缩小，永远不换行、不溢出。 */
  font-size: 16px;                                   /* 不支持 min() 的旧内核回退值 */
  font-size: min(16px, calc((100vw - 88px) / 19));   /* 现代浏览器：两者取小 */
}
.welcome__body { padding: 9px 0 10px; text-align: left; }
.welcome__body p {
  margin: 0 0 7px;
  line-height: 19.78px;
  color: #2b3748;
  white-space: nowrap;   /* 强制不自动换行 */

  /* 最长一行 28 个汉字。393px 屏下可用 323px（361 − 2 弹窗边框 − 36 弹窗内边距）。
     设计稿 11.5px 时 28×11.5 = 322px，只剩 1px 余量 —— 真机字体度量稍有差异就会溢出，
     所以上限取 11.4px（28×11.4 = 319.2px，留 3.8px 余量）。0.1px 差异肉眼不可见。 */
  font-size: 11.4px;                                  /* 不支持 min() 的旧内核回退值 */
  font-size: min(11.4px, calc((100vw - 74px) / 28));  /* 现代浏览器：两者取小 */
}
.welcome__body p:last-child { margin-bottom: 0; }

/* 第 1 段要显示成两行：拆成两个块级元素，结构上就是两行，
   不依赖 <br>，即使 HTML 被改动或 nowrap 生效也绝不会并成一行 */
.welcome__body p span { display: block; }
.welcome__div { border-top: 1px dashed #c9d4e2; height: 0; }
.welcome__tips { padding: 8px 0 16px; text-align: left; }
.welcome__tips-h {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0d5abe;
}
.welcome__tips-h img { width: 14px; height: 16px; flex: none; object-fit: contain; }
.welcome__li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding-left: 14px;
  margin-bottom: 4.5px;
  line-height: 15.19px;
  white-space: nowrap;

  /* 最长一条「咨询渠道：如有疑问…赖彩云」是 29 个字宽 + 14px 缩进。
     设计稿 9.8px 在 375px 及以上屏幕都放得下，窄屏（360/320）才等比缩小。 */
  font-size: 9.8px;                                  /* 旧内核回退值 */
  font-size: min(9.8px, calc((100vw - 88px) / 29));  /* 现代浏览器 */
}
.welcome__li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5.9px;
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: #1571de;
}
.welcome__li b { font-weight: 500; color: #465367; flex: none; }
.welcome__li span { color: #526071; }
.welcome__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border-radius: 9px;
  background: linear-gradient(100deg, #0b6ce5 0%, #1868da 45%, #096fec 100%);
  box-shadow: 0 9px 10px rgba(2, 93, 207, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #fff;
}
.welcome__btn img {
  position: absolute;
  right: 25px;
  top: 50%;
  width: 22px;
  height: 29px;
  margin-top: -14.5px;
  object-fit: contain;
}
.welcome__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 20px;
  margin-top: 4px;
  font-size: 9.3px;
  color: #7d8997;
}
.welcome__foot img { width: 10px; height: 10px; flex: none; }

/* ------------------ 分享给亲友（2x 设计稿，全部数值 ÷2） ------------------ */
.share {
  position: relative;
  border-radius: 20.5px;
  background: linear-gradient(180deg, #fff 0%, #fff 70%, #fdfefe 100%);
  box-shadow: 0 14px 29px rgba(12, 25, 46, 0.32);
  padding: 36.5px 27.5px 25px;
  text-align: center;
  overflow: hidden;
}
.share__x {
  position: absolute;
  right: 19px;
  top: 18.5px;
  width: 23px;
  height: 23px;
}
.share__x::before,
.share__x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17.5px;
  height: 1.5px;
  margin: -0.75px 0 0 -8.75px;
  border-radius: 1.5px;
  background: #7d838c;
}
.share__x::before { transform: rotate(45deg); }
.share__x::after { transform: rotate(-45deg); }
.share__illus { width: 205.5px; height: 174px; margin: 0 auto; object-fit: contain; }
.share__h {
  margin: 8px 0 0;
  font-size: 27.5px;
  font-weight: 500;
  line-height: 27.5px;
  letter-spacing: 1px;
  color: #101a31;
}
.share__p {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 21.87px;
  letter-spacing: 0.2px;
  color: #3f4653;
}
.share__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 47.5px;
  margin-top: 20px;
  border-radius: 14.5px;
  background: linear-gradient(135deg, #438ef6 0%, #2674ee 55%, #2f74ef 100%);
  box-shadow: 0 6.5px 5.75px rgba(39, 116, 237, 0.27);
  font-size: 17.5px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #fff;
}
.share__btn img { width: 23px; height: 23px; flex: none; object-fit: contain; }
.share__close {
  display: block;
  width: 100%;
  height: 24.5px;
  margin-top: 11px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #2878d9;
}

/* ------------------ 通用信息弹窗（门禁提示 / 二维码 / 核验） ------------------ */
.dlg {
  position: relative;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(9, 20, 38, 0.28);
  padding: 22px 20px 18px;
  text-align: center;
}
.dlg__x {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 26px;
  height: 26px;
  font-size: 20px;
  line-height: 26px;
  color: #9aa2ae;
}
.dlg__icon { width: 46px; height: 46px; margin: 0 auto 10px; }
.dlg__h {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 500;
  color: var(--blue-deep);
  line-height: 1.4;
}
.dlg__p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-body);
  white-space: pre-line;
}
.dlg__qr {
  width: 168px;
  height: 168px;
  margin: 14px auto 6px;
  border: 1px solid #e6ecf3;
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  object-fit: contain;
}
.dlg__qr-tip { margin: 0; font-size: 10.5px; color: var(--text-muted); }
.dlg__acts { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.dlg__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}
.dlg__btn--primary {
  background: linear-gradient(90deg, #1079e4 0%, #0869da 100%);
  color: #fff;
}
.dlg__btn--outline {
  background: #fff;
  border: 1px solid var(--blue-solid);
  color: var(--blue-text);
}
.dlg__btn--ghost { color: #7d8997; font-weight: 400; min-height: 30px; }
.dlg__btn:active { opacity: 0.88; }

/* 核验弹窗里的输入框 */
.dlg__form { margin-top: 14px; text-align: left; }
.dlg__form .field { margin-bottom: 10px; }
.dlg__form .field__label { width: 68px; font-size: 12px; }
.dlg__form .inp { height: 38px; font-size: 12.5px; line-height: 36px; }

/* ============================================================
   申报成功凭证（792 × 1280 设计稿，按比例缩放展示）
   ============================================================ */
.cert-dlg { max-width: 340px; }
.cert-box {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(9, 20, 38, 0.3);
  overflow: hidden;
}
.cert-scroll {
  max-height: 62vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #eef1f6;
}
/* 缩放容器：把 792px 宽的凭证等比缩到弹窗宽度 */
.cert-fit {
  width: 100%;
  position: relative;
  /* 792 / 1280 = 0.61875 -> 高宽比 161.6% */
  padding-top: 161.616%;
}
.cert-fit__in {
  position: absolute;
  left: 0;
  top: 0;
  width: 792px;
  height: 1280px;
  transform-origin: 0 0;
}
.cert-acts { padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.cert-hint {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.6;
  color: #7d8997;
  text-align: center;
}

/* ---- 凭证本体：792×1280 绝对定位，1:1 对应 Figma ---- */
.cert {
  position: relative;
  width: 792px;
  height: 1280px;
  background: #fff;
  overflow: hidden;
  font-family: var(--font);
  color: #033080;
}
.cert__bg { position: absolute; left: 0; top: 0; width: 792px; height: 1280px; }
.cert__line-b { position: absolute; left: 0; bottom: 0; width: 792px; height: 3px; }
.cert__line-r { position: absolute; right: 0; top: 0; width: 3px; height: 1280px; }
.cert__emblem { position: absolute; left: 341px; top: 132px; width: 107px; height: 114px; }
.cert__title {
  position: absolute;
  left: 0;
  right: 0;
  top: 246px;
  text-align: center;
  font-size: 64px;
  font-weight: 500;
  line-height: 69px;
  color: #002566;
}
.cert__fl-l { position: absolute; left: 115px; top: 264px; width: 70px; height: 23px; }
.cert__fl-r { position: absolute; right: 117px; top: 264px; width: 70px; height: 23px; }
.cert__sub {
  position: absolute;
  left: 0;
  right: 0;
  top: 321px;
  text-align: center;
  font-size: 28px;
  font-weight: 500;
  line-height: 36px;
  color: #002566;
}
.cert__lead {
  position: absolute;
  left: 0;
  right: 0;
  top: 382px;
  text-align: center;
  font-size: 22px;
  font-weight: 500;
  line-height: 40px;
}
.cert__div { position: absolute; left: 94px; top: 477px; width: 601px; height: 3px; }
/* 信息行 */
.cert__rows { position: absolute; left: 122px; top: 502px; width: 560px; }
.cert__row { position: relative; height: 47px; }
.cert__row dt {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  white-space: nowrap;
}
.cert__row dd {
  position: absolute;
  left: 152px;
  top: -1px;
  margin: 0;
  font-size: 23px;
  font-weight: 500;
  line-height: 27px;
  word-break: break-all;
}
.cert__row dd.is-time { font-weight: 400; font-size: 22px; }
/* 金额框 */
.cert__amt {
  position: absolute;
  left: 105px;
  top: 785px;
  width: 581px;
  height: 183px;
  background: #fbfbfb;
  border: 1px solid #bfc3cf;
  border-radius: 7px;
  text-align: center;
}
.cert__amt-h {
  margin: 18px 0 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 36px;
}
.cert__amt-s {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
}
.cert__amt-n {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-top: 2px;
}
.cert__amt-n b {
  font-size: 88px;
  font-weight: 700;
  line-height: 77px;
  color: #bf2223;
  font-family: Arial, Helvetica, sans-serif;
}
.cert__amt-n i {
  font-size: 34px;
  font-weight: 600;
  font-style: normal;
  line-height: 38px;
  color: #be5658;
}
.cert__oath {
  position: absolute;
  left: 100px;
  top: 1008px;
  font-size: 20px;
  font-weight: 500;
  line-height: 27px;
}
.cert__org {
  position: absolute;
  right: 76px;
  top: 1043px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: rgba(3, 48, 128, 0.8);
}
.cert__date {
  position: absolute;
  right: 122px;
  top: 1082px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 21px;
  color: rgba(3, 48, 128, 0.8);
}
.cert__seal {
  position: absolute;
  left: 468px;
  top: 1023px;
  width: 131px;
  height: 131px;
  opacity: 0.93;
}
.cert__foot {
  position: absolute;
  left: 0;
  right: 0;
  top: 1149px;
  text-align: center;
  font-size: 17px;
  line-height: 24px;
}

/* 长按保存引导 */
.longpress {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}
.longpress.is-open { display: flex; }
.longpress img {
  max-width: 78%;
  max-height: 62vh;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.longpress__tip {
  margin: 18px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  line-height: 1.7;
}
.longpress__tip small { display: block; font-size: 12px; font-weight: 400; opacity: 0.75; }
.longpress__arrow {
  margin: 10px 0 0;
  font-size: 26px;
  color: #ffd76a;
  animation: bob 1.1s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.longpress__x {
  margin-top: 22px;
  padding: 9px 30px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  font-size: 13px;
  color: #fff;
}

/* ============================================================
   轻提示 Toast / 全屏 Loading
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1500;
  transform: translate(-50%, -50%);
  max-width: 78%;
  padding: 11px 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.toast.is-on { opacity: 1; }

.loading {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(255, 255, 255, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
}
.loading.is-on { display: flex; }
.loading__spin {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(18, 107, 220, 0.22);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 禁止背景滚动 */
body.is-locked { overflow: hidden; }
