/*
 * 提交页样式
 * ------------------------------------------------------------------
 * 结构分三段：白底导航 / 白底 Hero / 浅灰底表单区。
 * 靠「白—灰—白」的色块切分层次，卡片本身几乎不用边框，只在需要时压一层极淡阴影。
 * 强调色只有一个（--c-accent），其余都是中性灰阶。
 */

body {
  margin: 0;
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.5;
}

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--c-line-soft);
}

.nav-in {
  max-width: 980px;
  margin: 0 auto;
  height: 52px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  /* 新字标四边不留白（字母笔画直接顶到画布边缘），10px 会显得贴着站名，补到 12px */
  gap: 12px;
  min-width: 0;
}

/*
 * 2026-10 换用新版企业字标：单行英文「YANGTZE」，源图 3103×474，宽高比 6.52:1。
 * 旧的「YANGTZE + 扬子江药业」双行字标是 3.13:1，同高度下宽度只有它的一半；
 * 反过来，如果仍按 32px 高显示，新 logo 会到 209px 宽、把右侧语言切换挤掉，
 * 所以高度收一档到 26px（宽约 170px），视觉重量与原来的双行标接近。
 * 源文件 logo-yzj-dark.png 已按 3x 重出为 600×92，2x/3x 屏都够清晰。
 * 该文件仍是深色图形（#073190），只用在浅底导航上。
 */
.brand-logo {
  height: 26px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.brand-fallback {
  display: inline-flex;
  color: var(--c-accent);
}

.brand-fallback svg {
  width: 21px;
  height: 21px;
}

.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 语言切换：无边框，只有文字变色，贴近官网右上角那种轻量做法 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--c-text-3);
  padding: 6px 9px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang-switch button:hover {
  color: var(--c-text);
}

.lang-switch button.is-active {
  color: var(--c-text);
  font-weight: 600;
  background: var(--c-fill);
}

/* ---------------- Hero ---------------- */
.main {
  display: block;
}

/*
 * Hero 刻意做矮：这块只承担「说明这是什么地方」，用户是来填表的，
 * 不是来读落地页的。整块高度控制在 145px 上下（原设计 297px 的一半），
 * 一屏内尽量让表单本身露出来。
 */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 22px;
  text-align: center;
}

.hero-title {
  margin: 0 0 7px;
  font-size: clamp(23px, 3.1vw, 32px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--c-text);
}

.hero-lead {
  margin: 0 auto 12px;
  max-width: 560px;
  font-size: clamp(13.5px, 1.35vw, 15.5px);
  line-height: 1.5;
  color: var(--c-text-2);
  letter-spacing: -0.005em;
}

.hero-facts {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--c-text-3);
}

.hero-facts i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

/* 配置了自定义标语时，标语本身就是副标题，比默认那句略大一点，但同样受压缩后的尺度约束 */
.hero-lead.is-custom {
  max-width: 620px;
  font-size: clamp(14px, 1.55vw, 16.5px);
  line-height: 1.4;
  color: var(--c-text-2);
}

/* ---------------- 表单区 ---------------- */
/*
 * 灰底表单区。顶部留白只给 12/18px：Hero 刚压完，这里再留 56px 会显得
 * 「空了一大片」，而分段控件本身就够醒目，不需要靠留白去托。
 */
.stage {
  background: var(--c-bg-alt);
  padding: 12px 20px 88px;
}

/* 分段控件：iOS 那种灰底药丸 + 白色滑块 */
.segmented {
  display: flex;
  gap: 2px;
  max-width: 560px;
  margin: 0 auto 22px;
  padding: 3px;
  background: #e6e6ea;
  border-radius: var(--r-pill);
}

.tab {
  flex: 1;
  appearance: none;
  border: 0;
  background: none;
  min-height: 36px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-2);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.tab:hover {
  color: var(--c-text);
}

.tab.is-active {
  background: #fff;
  color: var(--c-text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.09);
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

.card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--c-bg);
  border-radius: var(--r-xl);
  padding: 30px 28px;
  box-shadow: var(--shadow-1);
}

.card + .card {
  margin-top: 16px;
}

/* ---------------- 字段 ---------------- */
.field {
  margin-bottom: 22px;
}

.field:last-of-type {
  margin-bottom: 24px;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--c-text);
}

/* label 里的补充说明换行成小字，不跟主标签挤在一行 */
.label .hint {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 400;
  color: var(--c-text-2);
  letter-spacing: 0;
}

.req {
  margin-left: 3px;
  color: var(--c-danger);
  font-weight: 500;
}

.control {
  position: relative;
}

/* 输入控件：浅灰填充、无边框；聚焦时变白 + 蓝色描边环 */
select,
textarea,
input[type="text"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  /* 16px：iOS 上小于 16px 会在聚焦时自动放大页面 */
  font-size: 16px;
  color: var(--c-text);
  background: var(--c-fill);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 13px 15px;
  outline: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

select {
  min-height: 50px;
  padding-right: 44px;
  cursor: pointer;
  text-overflow: ellipsis;
}

textarea {
  /* inline-block 会在容器底部留出基线间隙，导致绝对定位的字数标签算不准底边 */
  display: block;
  min-height: 148px;
  resize: vertical;
  line-height: 1.65;
  padding-top: 14px;
  /* 底部留出字数标签的高度，滚到底时正文不会钻到标签下面 */
  padding-bottom: 32px;
}

select:focus,
textarea:focus,
input[type="text"]:focus {
  background: #fff;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

select:invalid,
select option[value=""] {
  color: var(--c-text-3);
}

textarea::placeholder,
input::placeholder {
  color: var(--c-text-3);
}

.chevron {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--c-text-3);
  pointer-events: none;
}

/*
 * 字数标签浮在文本框右下角内部，不再单独占一行。
 * 带同色背景是为了滚动时盖住底下经过的正文（textarea 滚动内容会走过 padding 区）；
 * 聚焦后输入框变白，标签背景要跟着变，否则会留下一个灰块。
 */
.counter {
  position: absolute;
  /* 右边留 21px 让开 textarea 右下角的缩放拖拽手柄，否则数字和斜线会叠在一起 */
  right: 21px;
  bottom: 9px;
  margin: 0;
  padding: 1px 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-text-3);
  font-variant-numeric: tabular-nums;
  background: var(--c-fill);
  border-radius: 6px;
  pointer-events: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

textarea:focus ~ .counter {
  background: #fff;
}

.counter.is-max {
  color: var(--c-danger);
}

.field-error {
  margin: 7px 2px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-danger);
}

.field-error:empty {
  margin: 0;
}

.field-hint {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-text-2);
}

.field.has-error select,
.field.has-error textarea,
.field.has-error input[type="text"],
.field.has-error .dropzone {
  border-color: var(--c-danger);
  background: #fff;
}

/* ---------------- 口令挑选 ---------------- */
/*
 * 口令由服务端随机生成，但把「换一个」交给用户 —— 有人喜欢念得顺的，
 * 有人喜欢带自己名字里某个字的，刷两下挑一个比硬塞一个好记十倍。
 *
 * 候选只能由服务端出，用户不能输入。这不是为了省事：一旦允许输入，
 * 就必须回答「这个口令能不能用」，那就是一条存在性探测通道。
 */
.pick-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.pick-value {
  /* min-width:0 与 flex:1 搭配，长口令才不会把按钮挤出去 */
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 14px;
  border-radius: var(--r-md);
  background: var(--c-fill);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  text-align: center;
  /* 数值行高不随字体变化：中英口令切换时高度不会跳 */
  line-height: 26px;
  transition: color 0.18s var(--ease);
}

/* 汉字本身是满宽方块，再叠字距会被拉散，切回正文观感 */
.pick-value.is-cjk {
  font-family: var(--font);
  letter-spacing: 0.04em;
}

/* 还没取到口令（首屏、或接口失败）时的占位态 */
.pick-value.is-empty {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--c-text-3);
}

.btn-inline {
  flex: 0 0 auto;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--c-fill);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-accent);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.btn-inline:hover:not(:disabled) {
  background: var(--c-accent-soft);
}

.btn-inline:active:not(:disabled) {
  transform: scale(0.985);
}

.btn-inline:disabled {
  opacity: 0.5;
  cursor: default;
}

/*
 * 查询框用等宽字体 + 宽字距，方便逐位核对。
 * 但这套只适合纯字母数字口令——汉字本身就是一个满宽方块，
 * 再叠 0.14em 字距会被拉得七零八落，所以含中文时由 JS 挂 .is-cjk 切回正文观感。
 * 提交端已无口令输入框（系统生成），这里只服务查询框与回执页。
 */
#q-token {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* 数值行高不随字体变化：否则中英切换时输入框高度会差 2px，打字时整行在抖 */
  line-height: 19px;
}

#q-token.is-cjk {
  font-family: var(--font);
  letter-spacing: 0;
}

/*
 * 占位文字要单独重置：上面那套是给「用户输入的口令」准备的，
 * 但 ::placeholder 会继承字体、字距、大小写，导致提示语变成等宽字体、
 * 中文字符被 0.14em 的字距拉散，和上面几个字段的提示语看起来完全不是一个东西。
 * （审批端登录框也踩过同样的坑，那边是 0.32em。）
 */
#q-token::placeholder {
  font-family: var(--font);
  letter-spacing: 0;
  text-transform: none;
}

/* ---------------- 附件 ---------------- */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 104px;
  border-radius: var(--r-md);
  background: var(--c-fill);
  border: 1px solid transparent;
  color: var(--c-text-2);
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.dropzone:hover {
  background: var(--c-fill-2);
}

.dropzone:focus-visible {
  outline: none;
  border-color: var(--c-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.dropzone.is-drag {
  background: var(--c-accent-soft);
  border-color: var(--c-accent);
}

.dropzone svg {
  width: 22px;
  height: 22px;
  color: var(--c-text-3);
}

.dropzone-text {
  font-size: 13px;
}

.filelist {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 13px;
  color: var(--c-text-2);
}

.filelist li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--c-line-soft);
}

.filelist li:last-child {
  border-bottom: 0;
}

.filelist .fname {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--c-text);
}

.filelist .fsize {
  color: var(--c-text-3);
  font-variant-numeric: tabular-nums;
}

.filelist .fdel {
  appearance: none;
  border: 0;
  background: none;
  padding: 2px 4px;
  font-size: 15px;
  line-height: 1;
  color: var(--c-text-3);
  cursor: pointer;
}

.filelist .fdel:hover {
  color: var(--c-danger);
}

/* ---------------- 按钮 ---------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease),
    transform 0.1s var(--ease);
}

.btn-primary:hover:not(:disabled) {
  background: var(--c-accent-hover);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.988);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn-ghost {
  flex: 1;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-fill);
  color: var(--c-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s var(--ease);
}

.btn-ghost:hover {
  background: var(--c-fill-2);
}

.spinner {
  width: 15px;
  height: 15px;
  border: 1.8px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}

.is-loading .spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.notice {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-text-2);
  text-align: center;
}

.notice:empty {
  margin: 0;
}

.notice.is-error {
  color: var(--c-danger);
}

/* ---------------- 回执 ---------------- */
.receipt {
  text-align: center;
}

.receipt-icon {
  width: 46px;
  height: 46px;
  margin: 2px auto 16px;
  color: var(--c-ok);
}

.receipt-icon svg {
  width: 100%;
  height: 100%;
}

.receipt h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.receipt-lead {
  max-width: 360px;
  margin: 0 auto 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-2);
}

.credential {
  margin: 0 0 18px;
  padding: 4px 16px;
  background: var(--c-fill);
  border-radius: var(--r-md);
  text-align: left;
}

.credential-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line-soft);
}

.credential-row:last-child {
  border-bottom: 0;
}

.credential .k {
  font-size: 13px;
  color: var(--c-text-2);
}

.credential .v {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.credential .v.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
}

/*
 * 中文口令（4 个汉字）不能用等宽 + 0.12em 字距：汉字会被拉开成一串孤字。
 * 必须写在 .mono 之后——同优先级，靠顺序覆盖字体与字距。
 */
.credential .v.is-cjk {
  font-family: var(--font);
  letter-spacing: 0.06em;
}

.credential-row.is-primary .v {
  font-size: 20px;
  color: var(--c-accent);
}

/*
 * 主操作（保存图片）独占一行，复制 / 再提交并排垫在下面：
 * 用户真正要做的是「把口令带走」，另外两个都是次要动作。
 */
.receipt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receipt-actions-row {
  display: flex;
  gap: 10px;
}

/* ---------------- 凭证图预览 ---------------- */
.img-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* hidden 自带 display:none，会被上面的 display:flex 覆盖，必须显式写回 */
.img-sheet[hidden] {
  display: none;
}

.img-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
}

.img-sheet-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(330px, 100%);
  max-height: 100%;
}

.img-sheet-hint {
  /* 容器是 align-items:center，不写 width 时这行按内容撑开、不会折行，
     桌面那句「点击下载，或右键另存为」会直接横着溢出弹层边界 */
  width: 100%;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
  opacity: 0.9;
  text-align: center;
}

.img-sheet-img {
  display: block;
  width: 100%;
  border-radius: 16px;
  background: #fff;
}

/*
 * 用 grid 而不是 flex 均分。
 * flex 下两个按钮的 padding 不同（主按钮 24px、次按钮 18px），
 * 内容加内边距会被带进主轴分配，结果一边 166px、一边 154px，
 * 并排摆着能看出左宽右窄；试过 flex:1 1 0 + width:0 + min-width:0 都没压住。
 * grid 的 1fr 是按轨道切的，跟内容宽度彻底无关，一行解决。
 */
.img-sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.img-sheet-actions .btn-primary,
.img-sheet-actions .btn-ghost {
  text-decoration: none;
}

.img-sheet-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.img-sheet-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.26);
}

/*
 * 触屏设备上没有下载按钮（长按就够了），只剩一个「关闭」。
 * 让它撑满整行会像另一张卡片，所以收成常规按钮宽、居中摆。
 */
.img-sheet-actions.is-single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.img-sheet-actions.is-single .btn-ghost {
  width: 132px;
}

/* 遮罩打开时锁住背景滚动，否则手指会把下面的页面带着跑 */
body.is-sheet-open {
  overflow: hidden;
}

/* ---------------- 查询结果 ---------------- */
.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-line-soft);
}

.result-head-main {
  min-width: 0;
}

.result-code {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--c-text);
}

.result-sub {
  margin: 0;
  font-size: 13px;
  color: var(--c-text-2);
}

.chip {
  flex: 0 0 auto;
  display: inline-block;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--c-plain-soft);
  color: var(--c-text-2);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.chip.is-done {
  background: var(--c-ok-soft);
  color: var(--c-ok);
}

.chip.is-processing {
  background: var(--c-warn-soft);
  color: var(--c-warn);
}

.chip.is-pending {
  background: var(--c-plain-soft);
  color: var(--c-text-2);
}

.result-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line-soft);
}

/* 紧跟在 result-head 后面的块：head 自带下边框，这里不再重复画线 */
.result-block.is-flush {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}

.result-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-3);
}

.result-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--c-text);
  word-break: break-word;
}

.result-meta {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--c-text-3);
  word-break: break-word;
}

.result-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text);
  white-space: pre-wrap;
  word-break: break-word;
}

/* 时间线：细线 + 小圆点，不用阴影 */
.timeline {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.timeline li {
  position: relative;
  margin-left: 3px;
  padding: 0 0 18px 20px;
  border-left: 1px solid var(--c-line);
}

.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--c-line);
}

.timeline li.is-done::before {
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.timeline li.is-current::before {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.13);
}

.tl-title {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}

.tl-time {
  margin: 0;
  font-size: 12.5px;
  color: var(--c-text-3);
  font-variant-numeric: tabular-nums;
}

.tl-time.is-empty {
  color: #b8b8bd;
}

/* ---------------- 页脚 ---------------- */
.foot {
  border-top: 1px solid var(--c-line-soft);
  padding: 34px 20px 48px;
  background: var(--c-bg);
}

.foot-in {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.foot-brand {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2);
}

.foot p {
  margin: 0 0 6px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--c-text-3);
}

.foot p:last-child {
  margin-bottom: 0;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 520px) {
  .nav-in {
    height: 48px;
    padding: 0 16px;
  }

  /*
   * 小屏导航只有 48px 高，logo 在 22px 高时宽约 143px（单行英文 6.52:1）。
   * 375px 以上放得下站名 + 语言切换，360px（常见安卓）就放不下了 ——
   * 站名会被截成省略号，所以用 clamp 跟着视口线性收：320→18px、360→20.5px、375 以上→22px。
   */
  .brand-logo {
    height: clamp(18px, 5.7vw, 22px);
    max-width: 160px;
  }

  .hero {
    padding: 22px 18px 20px;
  }

  .hero-title {
    font-size: 23px;
  }

  .hero-lead {
    font-size: 14px;
    margin-bottom: 10px;
  }

  /* 手机浏览器不显示缩放手柄，字数标签可以更贴角 */
  .counter {
    right: 14px;
    bottom: 8px;
  }

  .stage {
    padding: 8px 14px 64px;
  }

  .card {
    padding: 22px 18px;
    border-radius: var(--r-lg);
  }

  .segmented {
    margin-bottom: 18px;
  }

  .receipt-actions {
    flex-direction: column;
  }

  .credential .v.mono {
    font-size: 17px;
  }

  .result-body {
    font-size: 14.5px;
  }
}

/* ------------------------------------------------------------------ */
/* 工单内沟通（查询页）                                                */
/* ------------------------------------------------------------------ */

/*
 * 放在 result 卡片内部，所以只做一条分隔线，不再套一层卡片边框 ——
 * 嵌套卡片在移动端会显得层层叠叠，和现有「一条线分隔」的克制风格也不一致。
 */
.thread {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line-soft);
}

.thread-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.thread-quota {
  font-size: 12px;
  color: var(--c-text-3);
  white-space: nowrap;
}

.thread-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.thread-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

/* 自己发的靠右：单看气泡位置就能分清谁说的，不必读署名 */
.thread-item.is-me {
  align-items: flex-end;
}

.thread-bubble {
  /* 不铺满：留出对侧空白，一眼能看出谁说的，比读署名快 */
  max-width: 78%;
  padding: 11px 15px;
  border-radius: 16px;
  background: var(--c-fill);
  color: var(--c-text);
  font-size: 14.5px;
  line-height: 1.65;
  /* 用户会换行写清单，必须保留；长串英文/链接也得强制断行 */
  white-space: pre-wrap;
  word-break: break-word;
}

.thread-item.is-me .thread-bubble {
  background: var(--c-accent-soft);
}

.thread-meta {
  font-size: 12px;
  color: var(--c-text-3);
}

.thread-empty {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--c-text-3);
}

.thread-form {
  margin-top: 16px;
}

/* 全局 textarea 是给「反馈内容」用的：148px 高、底部留字数条。
   这里要短一些，否则手机上输入框独占半屏 */
.thread-form textarea {
  min-height: 96px;
  padding-bottom: 14px;
  resize: none;
}

.thread-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

.thread-tip {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--c-text-3);
}

.thread-send {
  /* btn-primary 默认 width:100%，在这里会把提示语挤掉 */
  width: auto;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
}

.thread-closed {
  margin: 13px 0 0;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: var(--c-fill);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--c-text-2);
}

@media (max-width: 520px) {
  .thread-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .thread-send {
    width: 100%;
  }

  .thread-bubble {
    max-width: 84%;
  }
}

@media (min-width: 900px) {
  .hero {
    padding-top: 36px;
    padding-bottom: 24px;
  }

  .stage {
    padding-top: 18px;
  }

  .card {
    padding: 34px 32px;
  }
}
