/* 花信通 PWA 主样式表（1.0.3）
   组织：根变量 → 基础重置 → 手机外壳与屏幕 → 到场确认浮层 → 首页 → 表单 → 订单列表/详情
        → 消息 → 个人中心 → 实名认证 → 底部导航 → 响应式 → 字号放大 → 稳定性锁 */

:root {
  --blue: #15587f;
  --blue-dark: #0e3f62;
  --gold: #a39755;
  --ink: #0f1f2a;
  --muted: #74818b;
  --line: #e7edf1;
  --page: #f5f7fa;
  --surface: #ffffff;
  --green: #22a789;
  --hero-height: 108px;
  --page-header-height: 66px;
  --tabbar-base-height: 64px;
  --tabbar-height: calc(var(--tabbar-base-height) + env(safe-area-inset-bottom, 0px));
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  overscroll-behavior: none;
  background: #dfe6eb;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
  touch-action: manipulation;
}

input,
select,
textarea {
  font-size: max(16px, 1em);
}

button {
  border: 0;
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: min(100vw, 390px);
  max-width: 100vw;
  height: min(100vh, 844px);
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  transform: none;
  background: var(--page);
  box-shadow: 0 18px 60px rgba(24, 45, 62, .22);
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  padding-bottom: 76px;
  overflow: hidden;
  max-width: 100%;
  background: var(--page);
}

.screen.active {
  display: block;
}

/* 系统级到场确认浮层 */
.system-arrival-confirm {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(238, 243, 246, .96);
}

.system-arrival-card {
  width: min(100%, 360px);
  display: grid;
  gap: 14px;
  padding: 24px 18px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(20, 54, 70, .14);
  text-align: center;
}

.system-arrival-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #176486, #b6a047);
  font-size: 26px;
  font-weight: 900;
}

.system-arrival-card h2 {
  margin: 0;
  color: #10202b;
  font-size: 24px;
  line-height: 32px;
}

.system-arrival-card p {
  margin: 0;
  color: #5d707c;
  font-size: 16px;
  line-height: 25px;
}

.system-arrival-order {
  padding: 12px;
  border-radius: 10px;
  color: #155874;
  background: #edf8fb;
  font-size: 15px;
  line-height: 22px;
  font-weight: 800;
  word-break: break-all;
}

.system-arrival-status {
  min-height: 22px;
  color: #17633b;
  font-size: 15px;
  line-height: 22px;
  font-weight: 800;
}

/* 首页头部 */
.hero {
  height: 116px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #fff;
  background:
    radial-gradient(circle at 96% 84%, rgba(255, 190, 66, .94) 0 18%, transparent 44%),
    linear-gradient(135deg, #0b5487 0%, #1a6a92 54%, #f2bc50 100%);
}

.status {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  line-height: 18px;
}

.hero h1 {
  margin: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 32px;
  line-height: 40px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-city-picker {
  position: absolute;
  left: 16px;
  bottom: 0;
  z-index: 8;
}

.content {
  padding: 12px 15px 0;
}

.notice-card {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(36, 59, 77, .07);
}

.home-launches {
  display: grid;
  margin: 10px 0 10px;
}

.home-launch-btn {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  color: #0f3347;
  background: linear-gradient(135deg, #f8fcff, #ffffff);
  box-shadow: 0 6px 18px rgba(27, 65, 85, .08);
}

.home-launch-btn:active {
  transform: translateY(1px);
}

.home-launch-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.home-launch-icon.desktop {
  color: var(--blue);
  background: #eaf4fb;
}

.home-launch-icon.android {
  color: #1b8d5f;
  background: #eaf8f0;
}

.home-launch-icon.ios {
  color: #8a6416;
  background: #fff3d8;
}

.home-launch-icon.install {
  color: #15587f;
  background: #eaf4fb;
}

.home-launch-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.95;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-launch-btn b {
  justify-self: start;
  font-size: 17px;
  line-height: 22px;
  font-weight: 900;
}

.install-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fcff, #ffffff);
  box-shadow: 0 6px 18px rgba(36, 59, 77, .07);
}

.install-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.install-panel-head strong {
  display: block;
  color: #132735;
  font-size: 14px;
  line-height: 20px;
  font-weight: 900;
}

.install-panel-head p {
  margin: 4px 0 0;
  color: #5a6872;
  font-size: 12px;
  line-height: 18px;
}

.install-pill {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #15587f;
  background: #eaf4fb;
  font-size: 11px;
  line-height: 15px;
  font-weight: 900;
}

.install-panel-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.install-panel-actions .primary-action,
.install-panel-actions .ghost-action {
  margin-top: 0;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
}

.install-action-icon {
  font-size: 15px;
  line-height: 1;
}

.install-steps {
  display: grid;
  gap: 6px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid #e2eaee;
  background: #f7fafc;
}

.install-steps p {
  margin: 0;
  color: #596a76;
  font-size: 12px;
  line-height: 18px;
}

.install-steps b {
  color: #132735;
}

.install-url {
  padding: 7px 9px;
  border-radius: 9px;
  color: #15587f;
  background: #eaf4fb;
  font-size: 11px;
  line-height: 16px;
  font-weight: 800;
  word-break: break-all;
}

/* 城市定位选择器 */
.city-picker {
  position: relative;
  flex: 0 0 auto;
}

.location-chip {
  min-width: 0;
  max-width: 132px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 0 6px 0 0;
  border-radius: 0;
  color: #ffe35f;
  background: transparent;
  box-shadow: none;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 900;
}

.location-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-chip i {
  color: #6c8390;
  font-style: normal;
  font-size: 13px;
  line-height: 1;
}

.city-menu {
  position: absolute;
  top: 40px;
  left: 0;
  z-index: 20;
  width: 116px;
  display: none;
  padding: 5px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 45, 62, .16);
}

.city-menu.open {
  display: grid;
  gap: 2px;
}

.city-menu button {
  height: 29px;
  border-radius: 8px;
  color: #1b3848;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.city-menu button:hover {
  background: #edf5f9;
}

.city-menu .locate-option {
  color: #15587f;
  font-weight: 900;
}

.location-chip svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .22));
}

.hero-city-picker .location-chip {
  min-width: 0;
  max-width: 128px;
  color: #ffe35f;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.location-chip:active {
  transform: translateY(1px);
}

.location-chip:disabled {
  cursor: default;
  opacity: 1;
}

/* 滚动公告 */
.marquee {
  position: relative;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  font-size: 13px;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  animation: taskTicker 15s linear infinite;
}

.marquee span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #efa43a;
  flex: 0 0 auto;
}

.marquee strong {
  font-weight: 700;
}

@keyframes taskTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-48%);
  }
}

/* 分类网格 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 14px;
  margin-top: 18px;
}

.category-item {
  display: grid;
  justify-items: center;
  gap: 7px;
  background: transparent;
  color: #172531;
}

.category-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #315c6c;
  background: #fff;
  box-shadow: 0 3px 11px rgba(32, 60, 78, .09);
}

.category-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-item span:last-child {
  font-size: 12px;
  line-height: 15px;
}

.divider {
  height: 6px;
  margin: 19px 0 20px;
  border-radius: 0;
  background: #e5eaee;
}

/* 快捷入口 */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 4px;
}

.quick-card {
  min-height: 84px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  border-radius: 13px;
  color: #152535;
  box-shadow: 0 10px 25px rgba(27, 65, 85, .06);
}

.quick-card.blue {
  background: linear-gradient(135deg, #f8fbff, #eef8ff);
}

.quick-card.amber {
  background: linear-gradient(135deg, #fffdf7, #fff5d9);
}

.quick-card.green {
  background: linear-gradient(135deg, #f9fffb, #effcf4);
}

.round-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  border: 2px solid currentColor;
  font-weight: 800;
  line-height: 1;
}

.quick-card.amber .round-icon {
  color: #d6a333;
}

.quick-card.green .round-icon {
  color: var(--green);
}

.quick-card b {
  font-size: 14px;
}

/* 通用页头 */
.page-header {
  height: 66px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px 13px;
  color: #fff;
  background: linear-gradient(135deg, #0b5487, #1e708f 64%, #d4a84c);
}

.page-header h2 {
  margin: 0;
  font-size: 17px;
  line-height: 22px;
  font-weight: 800;
}

.back-btn {
  position: absolute;
  left: 12px;
  top: 27px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  font-size: 31px;
  line-height: 28px;
}

/* 发布表单 */
.form-content {
  padding-top: 10px;
  height: calc(100% - 66px);
  overflow-y: auto;
  padding-bottom: 76px;
}

.form-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 23px rgba(27, 65, 85, .06);
}

.field {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.field:last-child {
  border-bottom: 0;
}

.field span {
  color: #334856;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #142635;
  font-size: 13px;
}

.field textarea {
  resize: none;
  padding: 8px 0;
  line-height: 18px;
}

.file-field {
  align-items: stretch;
  padding-top: 6px;
  padding-bottom: 6px;
}

.file-field > span {
  padding-top: 7px;
}

.media-picker {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 2px 0;
}

.media-action {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 10px;
  background: #f6fafc;
  border: 1px dashed #bad0dc;
  color: var(--blue);
}

.media-action-disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.media-action input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.media-action b {
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.media-picker small {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-preview {
  grid-column: 1 / -1;
  min-height: 0;
}

.media-preview img,
.media-preview video {
  width: 100%;
  max-height: 118px;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  background: #eef3f6;
}

.media-thumbs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.media-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef3f6;
  box-shadow: inset 0 0 0 1px #d8e4ea;
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-thumb-delete {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: #222;
  background: rgba(255,255,255,.88);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 5;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.media-thumb-delete:active {
  background: rgba(255,255,255,1);
}

.order-media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-media-grid .order-media-preview {
  width: calc(50% - 4px);
}

.media-preview-note,
.form-error {
  color: #a15b10;
  font-size: 12px;
  line-height: 18px;
}

.form-error {
  min-height: 18px;
  margin: 0 4px 7px;
}

.text-field {
  align-items: start;
}

.text-field > span {
  padding-top: 9px;
}

.agree-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 8px 4px 8px;
  color: #5a6872;
  font-size: 12px;
  line-height: 17px;
}

.agree-row input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--blue);
}

.primary-action,
.ghost-action {
  width: 100%;
  height: 43px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
}

.primary-action {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 9px 18px rgba(21, 88, 127, .22);
}

.ghost-action {
  margin-top: 12px;
  color: var(--blue);
  background: #fff;
  border: 1px solid #d9e4eb;
}

/* 发布成功页 */
.success-content {
  padding-top: 70px;
  text-align: center;
}

.success-badge {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 19px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #3fbf92, #218d75);
  font-size: 45px;
  font-weight: 800;
  box-shadow: 0 15px 30px rgba(36, 145, 115, .22);
}

.success-content h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.success-content p {
  margin: 0 auto 28px;
  width: 260px;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

/* PWA 提示与登录弹层 */
.pwa-toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 40;
  max-width: calc(100vw - 28px);
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 31, 42, .94);
  box-shadow: 0 14px 30px rgba(15, 31, 42, .18);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
}

.pwa-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 25, 36, .28);
}

.auth-box {
  width: min(316px, calc(100vw - 36px));
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d7e4ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(16, 42, 58, .18);
}

.auth-field {
  display: grid;
  gap: 8px;
  color: #071723;
  font-size: 17px;
  line-height: 22px;
  font-weight: 900;
}

.auth-field[hidden] {
  display: none;
}

.auth-field input {
  width: 100%;
  height: 49px;
  padding: 0 16px;
  border: 1px solid #d4e1ea;
  border-radius: 10px;
  color: #10202b;
  background: #f9fbfc;
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  outline: none;
}

.auth-field input:focus {
  border-color: #267fa4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(38, 127, 164, .14);
}

.auth-field input::placeholder {
  color: #9ab0bd;
}

.auth-agreement {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3px;
  color: #344955;
  font-size: 13px;
  line-height: 20px;
}

.auth-agreement[hidden] {
  display: none;
}

.auth-agreement input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 1px 3px 0 0;
  accent-color: #247b9e;
}

.auth-agreement label {
  cursor: pointer;
}

.auth-agreement button {
  padding: 0;
  color: #176f96;
  background: transparent;
  font: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-agreement button:focus-visible {
  outline: 2px solid #267fa4;
  outline-offset: 2px;
}

.masked-password-input {
  -webkit-text-security: disc;
  text-security: disc;
}

.auth-error {
  min-height: 18px;
  margin: -2px 2px 0;
  color: #c6493e;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  color: #fff;
  background: #247b9e;
  font-size: 21px;
  line-height: 26px;
  font-weight: 900;
}

.auth-submit:disabled {
  opacity: .68;
}

/* 订单列表 */
.orders-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.orders-tabs button {
  height: 35px;
  border-radius: 18px;
  color: #536470;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.orders-tabs .active {
  color: #fff;
  background: var(--blue);
}

.order-search {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 9px;
}

.cascade-filter {
  position: relative;
  min-width: 0;
}

.cascade-trigger {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  border-radius: 14px;
  color: #12384d;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px #c7dce7, 0 1px 0 rgba(255,255,255,.7);
}

.cascade-trigger::after {
  content: "⌄";
  float: right;
  color: #2d5c75;
  font-size: 16px;
}

.cascade-menu {
  position: absolute;
  top: 39px;
  left: 0;
  right: 0;
  z-index: 8;
  display: none;
  max-height: 310px;
  overflow-y: auto;
  padding: 7px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24, 45, 62, .18);
}

.cascade-menu.open {
  display: block;
}

.cascade-group {
  display: grid;
  gap: 2px;
  padding: 3px 0;
  border-top: 1px solid #edf2f5;
}

.cascade-header {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 3px 5px;
  color: #1e3544;
  border-bottom: 1px solid #edf2f5;
  margin-bottom: 4px;
}

.cascade-header button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--blue);
  background: #edf5f9;
  font-size: 20px;
  line-height: 20px;
}

.cascade-header strong {
  font-size: 13px;
}

.cascade-group:first-of-type {
  border-top: 0;
}

.cascade-option {
  width: 100%;
  min-height: 29px;
  padding: 0 8px;
  border-radius: 8px;
  color: #1e3544;
  background: transparent;
  font-size: 12px;
  line-height: 16px;
  text-align: left;
}

.cascade-option:hover {
  background: #eef6fa;
}

.cascade-option.reset {
  color: var(--blue);
  font-weight: 800;
}

.cascade-option.level-1 {
  font-weight: 800;
}

.cascade-option.level-2 {
  padding-left: 18px;
}

.cascade-option.level-3 {
  padding-left: 30px;
  color: #536470;
}

.orders-list {
  display: grid;
  gap: 0;
  height: calc(100vh - 272px);
  overflow-y: auto;
  padding-bottom: 88px;
}

.order-card {
  padding: 11px 3px 10px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid #e3eaf0;
}

.order-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 5px;
}

.order-card h3 {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  line-height: 19px;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.status-pill {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #b97a1f;
  background: #fff5df;
  font-size: 11px;
  font-weight: 800;
}

.status-服务中 {
  color: #0f6d8a;
  background: #e8f6fb;
}

.status-已接单 {
  color: #0f6d8a;
  background: #e8f6fb;
}

.status-已完成 {
  color: #25805f;
  background: #eaf8f1;
}

.order-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  color: #536470;
  font-size: 12px;
  line-height: 17px;
}

.order-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-line span:first-child {
  flex: 1 1 auto;
  max-width: none;
}

.order-line span:nth-child(2) {
  flex: 1;
  text-align: right;
}

.accept-order {
  flex: 0 0 54px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.view-order {
  flex: 0 0 66px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  color: var(--blue);
  background: #eaf3f8;
  font-size: 12px;
  font-weight: 800;
}

/* 订单详情 */
.detail-content {
  height: calc(100% - 66px);
  overflow-y: auto;
  padding-bottom: 92px;
}

.detail-panel {
  padding: 15px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(27, 65, 85, .06);
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
}

.order-media-preview,
.order-media-file {
  margin: 12px 0 2px;
  padding: 10px;
  border-radius: 14px;
  background: #f6fafc;
}

.order-media-preview img,
.order-media-preview video {
  width: 100%;
  max-height: 170px;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  background: #edf3f6;
}

.order-media-preview span,
.order-media-file {
  color: #61717c;
  font-size: 12px;
  line-height: 18px;
}

.order-media-preview span {
  display: block;
  margin-top: 7px;
}

.detail-list {
  margin: 13px 0 16px;
  display: grid;
  grid-template-columns: 76px 1fr;
  row-gap: 9px;
  color: #405463;
  font-size: 13px;
  line-height: 20px;
}

.detail-list dt {
  color: #87939d;
}

.detail-list dd {
  margin: 0;
  min-width: 0;
  word-break: break-word;
}

.confirm-accept {
  margin-top: 14px;
}

.action-agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  color: #5d707c;
  font-size: 13px;
  line-height: 19px;
  text-align: left;
}

.action-agreement input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
}

.privacy-note {
  margin: -4px 0 13px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #7a5b12;
  background: #fff7df;
  font-size: 12px;
  line-height: 18px;
}

.order-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-bottom: 10px;
}

.order-action-grid .ghost-action {
  margin-top: 0;
}

.arrival-confirm-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 12px 16px;
  border-radius: 14px;
  background: #f4f9fb;
  text-align: center;
}

.arrival-confirm-card b {
  color: #173143;
  font-size: 15px;
  line-height: 20px;
}

.arrival-confirm-card p {
  margin: 0;
  color: #5d6f7a;
  font-size: 12px;
  line-height: 18px;
}

.arrival-confirm-card img {
  width: min(240px, calc(100vw - 96px));
  height: min(240px, calc(100vw - 96px));
  display: block;
  border: 10px solid #fff;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(16, 32, 43, .08);
}

.arrival-confirm-card a {
  color: #0f6388;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.arrival-confirm-card .arrival-confirm-open {
  width: 100%;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #176486;
  font-size: 14px;
}

.empty-order p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.empty-state {
  padding-top: 90px;
  text-align: center;
  color: var(--muted);
}

/* 消息中心 */
.messages-content {
  height: calc(100% - 66px);
  overflow-y: auto;
  padding-bottom: 94px;
}

.message-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.message-overview button {
  min-height: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(27, 65, 85, .05);
}

.message-overview button.active {
  box-shadow: inset 0 0 0 2px rgba(21, 88, 127, .22), 0 6px 18px rgba(27, 65, 85, .05);
}

.message-overview b {
  color: var(--blue);
  font-size: 20px;
  line-height: 24px;
}

.message-overview span {
  color: #7a8892;
  font-size: 12px;
}

.message-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 11px 0 10px;
}

.message-tabs button {
  height: 34px;
  border-radius: 18px;
  color: #536470;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #e4ebf0;
}

.message-tabs .active {
  color: #fff;
  background: var(--blue);
  box-shadow: none;
}

.message-tools {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 9px;
}

.message-tools button {
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px #d9e4eb;
}

.message-list {
  display: grid;
  gap: 8px;
}

.message-card {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 20px rgba(27, 65, 85, .05);
  text-align: left;
}

.message-card.unread {
  border-left: 3px solid var(--blue);
}

.message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.message-head h3 {
  margin: 0;
  font-size: 14px;
  line-height: 19px;
}

.message-head span {
  color: #8a969e;
  font-size: 12px;
  white-space: nowrap;
}

.message-card p {
  margin: 0;
  color: #516270;
  font-size: 13px;
  line-height: 20px;
}

.message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.message-type {
  padding: 4px 8px;
  border-radius: 999px;
  color: #0f6d8a;
  background: #e8f6fb;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.message-type.system {
  color: #8a6416;
  background: #fff5df;
}

.message-type.service {
  color: #25805f;
  background: #eaf8f1;
}

.message-meta em {
  color: #8a969e;
  font-size: 12px;
  font-style: normal;
}

.message-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(27, 65, 85, .05);
}

.message-empty h3,
.message-empty p {
  margin: 0;
}

.message-empty h3 {
  font-size: 15px;
  line-height: 20px;
}

.message-empty p {
  color: #71808a;
  font-size: 13px;
  line-height: 20px;
}

.message-detail-content {
  height: calc(100% - 66px);
  overflow-y: auto;
  padding-bottom: 94px;
}

.message-detail-panel {
  padding: 15px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(27, 65, 85, .05);
}

.message-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.message-detail-head em {
  color: #8a969e;
  font-size: 12px;
  font-style: normal;
}

.message-detail-panel h3 {
  margin: 0 0 10px;
  color: #172734;
  font-size: 17px;
  line-height: 23px;
}

.message-detail-panel p {
  margin: 0 0 14px;
  color: #405463;
  font-size: 13px;
  line-height: 21px;
}

.message-detail-list {
  margin: 0 0 15px;
  display: grid;
  grid-template-columns: 76px 1fr;
  row-gap: 9px;
  color: #405463;
  font-size: 13px;
  line-height: 20px;
}

.message-detail-list dt {
  color: #87939d;
}

.message-detail-list dd {
  margin: 0;
  min-width: 0;
  word-break: break-word;
}

/* 个人中心 */
.profile-content {
  height: calc(100% - 66px);
  overflow-y: auto;
  padding-bottom: 94px;
}

.profile-card {
  width: 100%;
  min-height: 94px;
  display: grid;
  grid-template-columns: 76px 1fr 76px;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(27, 65, 85, .06);
}

.profile-entry-panel {
  color: var(--ink);
}

.profile-avatar-entry {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #203746;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.profile-avatar-entry:active,
.profile-service-status:active {
  transform: translateY(1px);
}

.profile-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #176486, #b6a047);
  border: 3px solid #eef5f7;
  overflow: hidden;
}

.profile-avatar-caption {
  line-height: 16px;
}

.profile-header-spacer {
  min-width: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-main {
  min-width: 0;
  flex: 1;
}

.profile-main h3,
.profile-name {
  display: block;
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 22px;
  font-weight: 800;
}

.profile-main p,
.profile-description {
  display: block;
  margin: 0;
  color: #687782;
  font-size: 12px;
  line-height: 17px;
}

.profile-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #1e7b62;
  background: #eaf8f1;
  font-size: 12px;
  font-weight: 800;
}

.profile-stats {
  margin-top: 11px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.role-switch {
  margin-top: 11px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 5px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(27, 65, 85, .05);
}

.role-switch button {
  height: 34px;
  border-radius: 12px;
  color: #536470;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.role-switch button.active {
  color: #fff;
  background: var(--blue);
}

.profile-stats button {
  min-height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(27, 65, 85, .05);
}

.profile-stats b {
  color: var(--blue);
  font-size: 20px;
  line-height: 24px;
}

.profile-stats span {
  color: #71808a;
  font-size: 12px;
}

.wallet-panel {
  min-height: 78px;
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 205, 96, .85), transparent 35%),
    linear-gradient(135deg, #115a7f, #1e7a88);
  box-shadow: 0 10px 22px rgba(18, 91, 127, .18);
}

.wallet-panel span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
}

.wallet-panel strong {
  font-size: 22px;
  line-height: 26px;
}

.wallet-panel button {
  width: 62px;
  height: 32px;
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.profile-menu {
  margin-top: 11px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(27, 65, 85, .05);
}

.profile-menu button {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.profile-menu button:last-child {
  border-bottom: 0;
}

.menu-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #eff7fb;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.profile-menu b {
  font-size: 14px;
}

.profile-menu em {
  color: #8a969e;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

/* 个人详情 */
.profile-detail-content {
  height: calc(100% - 66px);
  overflow-y: auto;
  padding-bottom: 94px;
}

.profile-detail-panel,
.profile-wallet-card,
.profile-verify-card {
  margin-bottom: 11px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(27, 65, 85, .05);
}

.profile-detail-panel h3 {
  margin: 0 0 11px;
  color: #172734;
  font-size: 15px;
  line-height: 20px;
}

.settings-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.settings-panel-title h3 {
  margin: 0;
}

.settings-refresh-btn {
  min-width: 58px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid #cfe0ea;
  border-radius: 999px;
  color: var(--blue);
  background: #f7fbfd;
  font-size: 13px;
  font-weight: 800;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.profile-summary-grid div {
  min-height: 68px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-radius: 13px;
  background: #f5f9fb;
}

.profile-summary-grid b {
  color: var(--blue);
  font-size: 20px;
  line-height: 24px;
}

.profile-summary-grid span {
  color: #71808a;
  font-size: 12px;
}

.profile-summary-grid .stat-tab {
  min-height: 68px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-radius: 13px;
  background: #f5f9fb;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.profile-summary-grid .stat-tab.active {
  border-color: var(--blue);
  background: #eaf3fb;
}
.profile-summary-grid .stat-tab:active {
  background: #e0edf6;
}

.profile-detail-list {
  margin: 0 0 13px;
  display: grid;
  grid-template-columns: 86px 1fr;
  row-gap: 9px;
  color: #405463;
  font-size: 13px;
  line-height: 20px;
}

.profile-detail-list dt {
  color: #87939d;
}

.profile-detail-list dd {
  min-width: 0;
  margin: 0;
  word-break: break-word;
}

.profile-mini-list {
  display: grid;
  gap: 0;
  margin-bottom: 11px;
}

.profile-mini-order {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  padding: 10px 0;
  color: var(--ink);
  background: transparent;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.profile-mini-order:first-child {
  padding-top: 0;
}

.profile-mini-order span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-mini-order b {
  min-width: 0;
  overflow: hidden;
  color: #172734;
  font-size: 13px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-mini-order em {
  min-width: 0;
  overflow: hidden;
  color: #71808a;
  font-size: 12px;
  font-style: normal;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-mini-order i {
  font-style: normal;
}

.profile-empty {
  min-height: 76px;
  display: grid;
  place-items: center;
  color: #87939d;
  border-radius: 13px;
  background: #f5f9fb;
  font-size: 13px;
}

.profile-empty.compact {
  min-height: 48px;
  padding: 10px;
  text-align: center;
}

.profile-review-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-review-badge.review-none {
  color: #7b5b13;
  background: #fff4d8;
}

.profile-review-badge.review-pending {
  color: #0f5f86;
  background: #e0f3ff;
}

.profile-review-badge.review-approved {
  color: #16623f;
  background: #ddf6e8;
}

.profile-review-badge.review-rejected {
  color: #b42318;
  background: #ffe4df;
}

.profile-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-tag-list span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #536470;
  background: #f3f6f8;
  font-size: 12px;
  font-weight: 800;
}

.profile-tag-list span.active {
  color: #0f6d8a;
  background: #e8f6fb;
}

.profile-wallet-card {
  color: #fff;
  background:
    radial-gradient(circle at 86% 24%, rgba(255, 205, 96, .9), transparent 36%),
    linear-gradient(135deg, #115a7f, #1e7a88);
}

.profile-wallet-card span {
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
}

.profile-wallet-card strong {
  display: block;
  margin: 7px 0 5px;
  font-size: 28px;
  line-height: 34px;
}

.profile-wallet-card p,
.profile-verify-card span {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  line-height: 18px;
}

.profile-verify-card {
  color: #fff;
  background: linear-gradient(135deg, #208d75, #1a6686);
}

.profile-verify-card b {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 24px;
}

.rating-panel {
  text-align: center;
}

.rating-panel strong {
  display: block;
  color: var(--blue);
  font-size: 42px;
  line-height: 48px;
}

.rating-panel span {
  color: #405463;
  font-size: 13px;
  font-weight: 800;
}

.rating-panel p {
  margin: 10px 0 0;
  color: #71808a;
  font-size: 13px;
  line-height: 20px;
}

.review-list {
  display: grid;
  gap: 8px;
}

.review-list p {
  margin: 0;
  padding: 11px 12px;
  border-radius: 13px;
  background: #f6fafc;
}

.review-list b,
.review-list span {
  display: block;
  font-size: 13px;
  line-height: 19px;
}

.review-list b {
  color: #172734;
  margin-bottom: 4px;
}

.review-list span {
  color: #61717c;
}

.profile-warning {
  margin: 0 0 13px;
  color: #61717c;
  font-size: 13px;
  line-height: 20px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-list button {
  width: 100%;
  padding: 11px 12px;
  border-radius: 13px;
  color: #172734;
  background: #f6fafc;
  text-align: left;
}

.faq-list b {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 18px;
}

.faq-list span {
  color: #61717c;
  font-size: 12px;
  line-height: 18px;
}

.setting-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: #405463;
  font-size: 13px;
  font-weight: 700;
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-row > span {
  flex: 0 0 auto;
  min-width: 88px;
  white-space: nowrap;
}

.setting-row .font-size-select {
  flex: 1 1 auto;
  min-width: 0;
}

.setting-row input {
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

/* 底部导航 */
.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr 82px 1fr 1fr;
  align-items: center;
  background: #fff;
  border-top: 1px solid #e3e8ec;
}

.hide-tabbar .tabbar {
  display: none;
}

.hide-tabbar .screen {
  padding-bottom: 0;
}

.tab {
  height: 60px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: #0d1720;
  background: transparent;
  font-size: 12px;
}

.tab.active {
  color: var(--blue);
}

.tab-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  line-height: 1;
}

.tab-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-fab {
  width: 72px;
  height: 72px;
  margin: -32px auto 0;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .24), transparent 32%),
    linear-gradient(135deg, #1a6272, #b9a047);
  border: 4px solid #fff;
  box-shadow: 0 4px 11px rgba(40, 64, 65, .24);
  font-size: 26px;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 420px) {
  body {
    display: block;
    background: var(--page);
  }

  .phone-shell {
    width: 100vw;
    height: 100vh;
    min-height: 0;
    box-shadow: none;
  }
}

/* 订单列表与快捷入口精修 */
.orders-tabs {
  display: none !important;
}

.order-search {
  display: grid;
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(23, 100, 134, .10), rgba(185, 160, 71, .10));
  box-shadow: inset 0 0 0 1px rgba(23, 100, 134, .10);
}

.order-search .cascade-filter {
  position: static;
}

.order-search .cascade-menu {
  top: 60px;
  left: 10px;
  right: 10px;
  width: auto;
  max-height: 360px;
}

.order-search .cascade-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 0;
}

.order-search .cascade-option {
  width: auto;
  min-width: 66px;
  max-width: 100%;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
  background: #f7fafc;
  box-shadow: inset 0 0 0 1px #e1ebf0;
}

.order-search .cascade-option.reset {
  display: inline-flex;
  margin: 0 0 6px;
  background: #eef7fb;
}

.order-search .cascade-option.level-2,
.order-search .cascade-option.level-3 {
  padding: 0 10px;
}

.order-search .cascade-option.level-1 {
  min-width: 76px;
  color: #0e4f74;
  background: #eef7fb;
}

.orders-content {
  background: #fff;
  padding: 18px 12px 0;
}

.orders-list {
  height: calc(100vh - 154px);
  padding-bottom: 88px;
}

.order-card {
  cursor: pointer;
  padding: 16px 4px 18px;
}

.compact-order h3 {
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0;
  color: #22384a;
}

.compact-order .order-line {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  color: #527089;
}

.compact-order .order-line span {
  display: block;
  max-width: 100%;
  font-weight: 400;
}

.accept-order,
.view-order {
  display: none !important;
}

.quick-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-card {
  min-width: 0;
  padding: 10px 4px;
}

.quick-card b {
  width: 100%;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
}

.date-filter {
  min-width: 0;
  justify-self: stretch;
}

.date-filter input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  border-radius: 14px;
  color: #12384d;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px #c7dce7, 0 1px 0 rgba(255,255,255,.7);
}

/* 首页快捷按钮与反馈表单精修 */
.quick-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-card {
  min-width: 0;
  padding-left: 4px;
  padding-right: 4px;
}

.quick-card b {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
}

.feedback-box {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.feedback-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.feedback-box textarea {
  width: 100%;
  resize: none;
  border: 1px solid #dce5ec;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  font: inherit;
}

/* 发布表单简化 */
.removed-field {
  display: none !important;
}

.category-combo {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.category-combo select {
  min-width: 0;
  height: 34px;
  border-radius: 8px;
  padding: 0 6px;
  background: #f7fafc;
}

.category-combo-field,
.address-combo-field {
  grid-template-columns: 82px 1fr;
}

.order-area-picker {
  position: relative;
  min-width: 0;
}

.order-area-trigger {
  width: 100%;
  height: 34px;
  background: #f7fafc;
}

.order-area-picker .order-area-menu {
  top: 42px;
  left: auto;
  right: 0;
  width: min(330px, calc(100vw - 46px));
  max-height: min(390px, 58vh);
  z-index: 40;
}

.order-area-picker .cascade-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 0;
}

.order-area-picker .cascade-option {
  width: auto;
  min-width: 66px;
  max-width: 100%;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
  background: #f7fafc;
  box-shadow: inset 0 0 0 1px #e1ebf0;
}

.order-area-picker .cascade-option.reset {
  display: inline-flex;
  margin: 0 0 6px;
  background: #eef7fb;
}

.order-area-picker .cascade-option.level-1 {
  min-width: 76px;
  color: #0e4f74;
  background: #eef7fb;
}

/* 接单状态徽章 */
.accept-status {
  min-width: 58px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #cbd9e0;
  opacity: 1;
  color: #203746;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 5px 12px rgba(27, 65, 85, .06);
}

.accept-status.accepting {
  color: #0e4f74;
  border-color: #b9d7e7;
  background: #f5fbff;
}

.accept-status.stopped {
  color: #7a4e09;
  border-color: #e7d3a0;
  background: #fffaf0;
}

.profile-service-status {
  justify-self: end;
}

/* 个人资料编辑 */
.profile-info-form {
  display: grid;
  gap: 12px;
}

.verify-sensitive-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 12px;
  border: 1px solid #d5e2e9;
  border-radius: 8px;
  color: #344955;
  background: #f8fbfc;
  font-size: 13px;
  line-height: 20px;
}

.verify-sensitive-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #247b9e;
}

.verify-sensitive-consent label {
  min-width: 0;
  cursor: pointer;
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.avatar-upload {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 6px 0 4px;
  color: #405463;
  font-size: 13px;
  font-weight: 800;
}

.profile-avatar-only {
  position: relative;
  width: 96px;
  height: 96px;
  padding-bottom: 2px;
  cursor: pointer;
}

.profile-avatar-preview {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #176486, #b6a047);
  border: 3px solid #eef5f7;
  font-size: 34px;
  font-weight: 900;
}

.profile-avatar-only input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar-upload input {
  width: 100%;
  min-height: 36px;
  padding: 6px;
  border: 1px solid #d8e3e8;
  border-radius: 10px;
  background: #f7fafc;
  color: #405463;
}

.profile-edit-field {
  display: grid;
  gap: 6px;
  color: #52636f;
  font-size: 12px;
  font-weight: 800;
}

.profile-edit-field input,
.profile-edit-field select,
.profile-edit-field textarea,
.font-size-select {
  width: 100%;
  border: 1px solid #cbd9e0;
  border-radius: 10px;
  color: #10202b;
  background: #fff;
  font: inherit;
  outline: none;
}

.profile-edit-field input,
.profile-edit-field select,
.font-size-select {
  height: 38px;
  padding: 0 10px;
}

.profile-area-picker {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.profile-area-trigger {
  height: 42px;
  font-size: inherit;
}

.profile-area-picker .profile-area-menu {
  top: 48px;
  left: 0;
  right: 0;
  max-height: min(360px, 58vh);
  z-index: 30;
}

.profile-area-picker .cascade-header {
  height: 38px;
}

.profile-area-picker .cascade-header strong {
  font-size: inherit;
  line-height: 24px;
}

.profile-area-picker .cascade-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 0;
}

.profile-area-picker .cascade-option {
  width: auto;
  min-width: 66px;
  max-width: 100%;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
  background: #f7fafc;
  box-shadow: inset 0 0 0 1px #e1ebf0;
}

.profile-area-picker .cascade-option.reset {
  display: inline-flex;
  margin: 0 0 6px;
  background: #eef7fb;
}

.profile-area-picker .cascade-option.level-1 {
  min-width: 76px;
  color: #0e4f74;
  background: #eef7fb;
}

.profile-edit-field textarea {
  min-height: 72px;
  resize: vertical;
  padding: 9px 10px;
  line-height: 20px;
}

.verify-file-field em {
  color: #71808a;
  font-size: 12px;
  font-style: normal;
  line-height: 18px;
  word-break: break-word;
}

/* 实名认证照片上传 */
.verify-photo-field {
  position: relative;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d6e3e9;
  border-radius: 12px;
  background: #f8fbfc;
}

.verify-photo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #203746;
  font-size: inherit;
}

.verify-photo-wrapper {
  position: relative;
  display: block;
}

.verify-photo-clear {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: #222;
  background: rgba(255,255,255,.88);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

.verify-photo-clear:active {
  background: rgba(255,255,255,1);
}

.verify-photo-picker {
  position: relative;
  display: block;
  cursor: pointer;
}

.verify-photo-picker input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.verify-photo-preview {
  width: 100%;
  min-height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #9fb8c7;
  border-radius: 12px;
  color: #176486;
  background: #eef7fb;
}

.verify-photo-preview.has-image {
  padding: 0;
  border-style: solid;
  background: #10202b;
  cursor: zoom-in;
}

.verify-photo-preview b {
  font-size: inherit;
  line-height: 20px;
}

.verify-photo-preview img {
  width: 100%;
  height: 112px;
  display: block;
  object-fit: cover;
}

.verify-photo-field em {
  color: #176486;
  font-size: inherit;
  font-style: normal;
  line-height: 19px;
  word-break: break-word;
}

.verify-photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 13, 20, .82);
}

.verify-photo-viewer-panel {
  position: relative;
  width: min(100%, 420px);
  max-height: 86vh;
  display: grid;
  place-items: center;
}

.verify-photo-viewer-panel img {
  max-width: 100%;
  max-height: 86vh;
  display: block;
  border-radius: 12px;
  background: #fff;
}

.verify-photo-viewer-close {
  position: absolute;
  top: -12px;
  right: -8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #d83a32;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.order-media-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 13, 20, .82);
}

.order-media-viewer-panel {
  position: relative;
  width: min(100%, 420px);
  max-height: 86vh;
  display: grid;
  place-items: center;
}

.order-media-viewer-panel img,
.order-media-viewer-panel video {
  max-width: 100%;
  max-height: 86vh;
  display: block;
  border-radius: 12px;
  background: #000;
}

.order-media-viewer-close {
  position: absolute;
  top: -12px;
  right: -8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #d83a32;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.order-media-file-btn {
  padding: 0;
  border: 0;
  background: none;
  color: #15587f;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* 字号放大（旧版） */
body[data-font-size="大"] .profile-menu b,
body[data-font-size="大"] .profile-detail-list,
body[data-font-size="大"] .review-list b,
body[data-font-size="大"] .review-list span,
body[data-font-size="大"] .faq-list b,
body[data-font-size="大"] .faq-list span,
body[data-font-size="大"] .setting-row {
  font-size: 15px;
}

body[data-font-size="特大"] .profile-menu b,
body[data-font-size="特大"] .profile-detail-list,
body[data-font-size="特大"] .review-list b,
body[data-font-size="特大"] .review-list span,
body[data-font-size="特大"] .faq-list b,
body[data-font-size="特大"] .faq-list span,
body[data-font-size="特大"] .setting-row {
  font-size: 16px;
}

.stopped-order-action:disabled {
  opacity: 1;
  color: #b42318;
  border-color: #ffd4ce;
  background: #fff1ef;
}

/* 师傅服务流程 */
.service-workbench {
  margin: 12px 0;
  display: grid;
  gap: 10px;
}

.tech-gate,
.next-step-card,
.customer-access {
  border-radius: 14px;
  border: 1px solid #dce8ee;
  background: #f8fbfc;
}

.tech-gate {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  padding: 11px;
  align-items: center;
}

.tech-gate > span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #17855f;
  font-size: 13px;
  font-weight: 900;
}

.service-workbench.stop .tech-gate > span {
  background: #c9362b;
}

.tech-gate strong,
.next-step-card h4,
.customer-access b,
.price-panel-head strong {
  display: block;
  color: #132735;
  font-size: 15px;
  line-height: 20px;
}

.tech-gate p,
.next-step-card p,
.price-panel-head span {
  margin: 3px 0 0;
  color: #62727d;
  font-size: 12px;
  line-height: 18px;
}

.next-step-card {
  padding: 13px;
  background: linear-gradient(135deg, #eef8fb, #fff);
}

.next-step-card small {
  display: block;
  margin-bottom: 4px;
  color: #176486;
  font-size: 11px;
  font-weight: 900;
}

.next-step-card h4 {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
}

.customer-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
}

.customer-access span {
  display: block;
  margin-top: 3px;
  color: #536673;
  font-size: 12px;
  line-height: 18px;
}

.customer-access a,
.customer-access em {
  flex: 0 0 auto;
  min-width: 62px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #176486;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-decoration: none;
}

.customer-access em {
  color: #7b5a18;
  background: #fff4dc;
}

.service-flow {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}

.service-flow span {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  color: #6b7983;
  background: #edf3f6;
  font-size: 11px;
  font-weight: 800;
}

.service-flow span b {
  color: inherit;
  font-size: 12px;
}

.service-flow span em {
  color: #71808a;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
}

.service-flow span.active {
  color: #fff;
  background: #176486;
}

.service-flow span.active em {
  color: rgba(255, 255, 255, .82);
}

.price-confirm-panel {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce8ee;
  border-radius: 12px;
  background: #f7fafb;
}

.price-panel-head {
  padding-bottom: 2px;
}

.price-confirm-panel label {
  display: grid;
  gap: 6px;
  color: #52636f;
  font-size: 12px;
  font-weight: 800;
}

.price-confirm-panel input,
.price-confirm-panel select,
.price-confirm-panel textarea {
  width: 100%;
  border: 1px solid #cbd9e0;
  border-radius: 10px;
  color: #10202b;
  background: #fff;
  outline: none;
  font: inherit;
}

.price-confirm-panel input,
.price-confirm-panel select {
  height: 40px;
  padding: 0 11px;
}

.price-confirm-panel textarea {
  min-height: 72px;
  padding: 10px 11px;
  resize: vertical;
}

.payment-confirm-panel {
  background: #fff9f1;
  border-color: #f0dcc1;
}

.phone-action {
  display: grid;
  place-items: center;
  text-decoration: none;
}

/* 简化版师傅流程 */
.service-workbench {
  margin: 12px 0 10px;
}

.simple-step-card {
  padding: 14px;
  border: 1px solid #dbe7ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(27, 65, 85, .05);
}

.simple-step-top {
  display: block;
  margin-bottom: 12px;
}

.simple-step-top span,
.simple-step-top em {
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.simple-step-top span {
  color: #5e6c75;
  background: #eef3f6;
}

.service-workbench.stop .simple-step-top span {
  color: #b42318;
  background: #fff1ef;
}

.simple-step-top em {
  color: #6b7480;
  background: #eef3f6;
}

.simple-step-card h4 {
  margin: 8px 0 0;
  color: #132735;
  font-size: 24px;
  line-height: 31px;
}

.simple-step-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.simple-step-main h4 {
  flex: 1 1 auto;
}

.onsite-round-button {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #176486;
  box-shadow: 0 8px 18px rgba(23, 100, 134, .26);
  font-size: 16px;
  font-weight: 900;
}

.inline-accept-button {
  display: block;
  margin: 8px 0 0 12px;
  padding: 0;
  border: 0;
  color: #132735;
  background: transparent;
  font-size: 24px;
  line-height: 31px;
  font-weight: 900;
  text-align: left;
}

.inline-start-button {
  display: block;
  margin: 8px 0 0 12px;
  padding: 0;
  border: 0;
  color: #132735;
  background: transparent;
  font-size: 24px;
  line-height: 31px;
  font-weight: 900;
  text-align: left;
}

.inline-accept-button:disabled {
  color: #9aa6ad;
}

.simple-step-card p {
  margin: 5px 0 10px;
  color: #596a76;
  font-size: 13px;
  line-height: 20px;
}

.simple-customer-line {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #edf2f5;
  color: #263744;
  font-size: 13px;
  font-weight: 800;
  line-height: 19px;
}

.simple-customer-line.hidden {
  display: none;
}

.service-flow {
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin: 10px 0 12px;
}

.service-flow span {
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  color: #71808a;
  background: #edf3f6;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.service-flow span.active {
  color: #fff;
  background: #176486;
}

.price-confirm-panel {
  padding: 12px;
  border-radius: 12px;
}

.price-panel-head strong {
  font-size: 16px;
}

.price-panel-head span {
  font-size: 12px;
}

/* 服务详情行 */
.contact-call {
  display: inline-block;
  color: #176486;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.contact-person {
  display: inline-block;
  margin-right: 16px;
  color: #10202b;
  white-space: nowrap;
}

.detail-field-input,
.detail-field-select {
  width: 100%;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #cbd9e0;
  border-radius: 8px;
  color: #10202b;
  background: #fff;
  font: inherit;
  line-height: 32px;
  outline: none;
}

.detail-field-input:focus,
.detail-field-select:focus {
  border-color: #176486;
  box-shadow: 0 0 0 2px rgba(23, 100, 134, .12);
}

.detail-action-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

/* 视口稳定性 */
html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

.phone-shell {
  height: min(100vh, 844px);
  height: min(100dvh, 844px);
  max-height: 100vh;
  max-height: 100dvh;
  min-height: 0;
}

.screen {
  padding-bottom: var(--tabbar-height);
}

.hero {
  height: var(--hero-height);
}

.home-content {
  height: calc(100% - var(--hero-height));
  overflow-y: auto;
  padding-bottom: calc(var(--tabbar-height) + 14px);
}

.form-content,
.detail-content,
.messages-content,
.message-detail-content,
.profile-content,
.profile-detail-content {
  height: calc(100% - var(--page-header-height));
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--tabbar-height) + 16px);
}

.orders-content {
  height: calc(100% - var(--page-header-height));
  overflow: hidden;
  padding-bottom: 0;
}

.orders-list {
  height: calc(100% - 62px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--tabbar-height) + 14px);
}

.tabbar {
  height: var(--tabbar-height);
  align-items: start;
  padding: 4px 0 env(safe-area-inset-bottom, 0px);
}

.tab {
  height: 56px;
  gap: 2px;
}

.tab-icon {
  width: 24px;
  height: 24px;
}

.order-fab {
  width: 64px;
  height: 64px;
  margin-top: -26px;
  font-size: 24px;
}

@media (max-width: 420px) {
  .phone-shell {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 0;
  }
}

@media (max-height: 720px) {
  :root {
    --hero-height: 94px;
    --page-header-height: 58px;
    --tabbar-base-height: 58px;
  }

  .page-header {
    height: var(--page-header-height);
    padding-bottom: 10px;
  }

  .back-btn {
    top: 20px;
  }

  .content {
    padding-top: 9px;
  }

  .notice-card {
    min-height: 46px;
    padding: 7px 10px;
  }

  .category-grid {
    row-gap: 10px;
    margin-top: 12px;
  }

  .category-icon {
    width: 34px;
    height: 34px;
  }

  .category-item {
    gap: 5px;
  }

  .divider {
    height: 5px;
    margin: 12px 0 13px;
  }

  .quick-card {
    min-height: 68px;
    gap: 6px;
  }

  .order-fab {
    width: 58px;
    height: 58px;
    margin-top: -22px;
    border-width: 3px;
    font-size: 22px;
  }

  .tab {
    height: 51px;
    font-size: 11px;
  }

  .tab-icon {
    width: 22px;
    height: 22px;
  }

  .tab-icon svg {
    width: 22px;
    height: 22px;
  }
}

/* 字号放大（标题与表单） */
body[data-font-size="大"] .hero h1 {
  font-size: 32px;
  line-height: 40px;
}

body[data-font-size="特大"] .hero h1 {
  font-size: 35px;
  line-height: 43px;
}

body[data-font-size="大"] .page-header h2 {
  font-size: 20px;
  line-height: 26px;
}

body[data-font-size="特大"] .page-header h2 {
  font-size: 23px;
  line-height: 30px;
}

body[data-font-size="大"] .field span,
body[data-font-size="大"] .field input,
body[data-font-size="大"] .field select,
body[data-font-size="大"] .field textarea,
body[data-font-size="大"] .agree-row,
body[data-font-size="大"] .order-card h3,
body[data-font-size="大"] .order-card p,
body[data-font-size="大"] .detail-list,
body[data-font-size="大"] .message-head h3,
body[data-font-size="大"] .message-card p,
body[data-font-size="大"] .profile-name,
body[data-font-size="大"] .profile-description,
body[data-font-size="大"] .profile-menu b,
body[data-font-size="大"] .profile-menu em,
body[data-font-size="大"] .profile-detail-list,
body[data-font-size="大"] .profile-detail-panel h3,
body[data-font-size="大"] .profile-edit-field,
body[data-font-size="大"] .profile-edit-field input,
body[data-font-size="大"] .profile-edit-field textarea,
body[data-font-size="大"] .font-size-select,
body[data-font-size="大"] .setting-row,
body[data-font-size="大"] .primary-action,
body[data-font-size="大"] .ghost-action {
  font-size: 16px;
  line-height: 24px;
}

body[data-font-size="特大"] .field span,
body[data-font-size="特大"] .field input,
body[data-font-size="特大"] .field select,
body[data-font-size="特大"] .field textarea,
body[data-font-size="特大"] .agree-row,
body[data-font-size="特大"] .order-card h3,
body[data-font-size="特大"] .order-card p,
body[data-font-size="特大"] .detail-list,
body[data-font-size="特大"] .message-head h3,
body[data-font-size="特大"] .message-card p,
body[data-font-size="特大"] .profile-name,
body[data-font-size="特大"] .profile-description,
body[data-font-size="特大"] .profile-menu b,
body[data-font-size="特大"] .profile-menu em,
body[data-font-size="特大"] .profile-detail-list,
body[data-font-size="特大"] .profile-detail-panel h3,
body[data-font-size="特大"] .profile-edit-field,
body[data-font-size="特大"] .profile-edit-field input,
body[data-font-size="特大"] .profile-edit-field textarea,
body[data-font-size="特大"] .font-size-select,
body[data-font-size="特大"] .setting-row,
body[data-font-size="特大"] .primary-action,
body[data-font-size="特大"] .ghost-action {
  font-size: 18px;
  line-height: 28px;
}

body[data-font-size="大"] .tab {
  font-size: 13px;
}

body[data-font-size="特大"] .tab {
  font-size: 14px;
}

/* 首页定位按钮固定左下角 */
.hero > .hero-city-picker {
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  top: auto !important;
  bottom: 0 !important;
  z-index: 30 !important;
  transform: none !important;
}

.hero > .hero-city-picker .city-menu {
  top: 40px !important;
  left: 0 !important;
}

/* 首页入口放大 */
:root {
  --tabbar-base-height: 82px;
}

.notice-card {
  min-height: 56px;
  padding: 9px 13px;
}

.marquee {
  font-size: 17px;
  line-height: 23px;
}

.marquee-track {
  gap: 13px;
}

.marquee span {
  width: 7px;
  height: 7px;
}

.marquee strong {
  font-weight: 500;
}

.home-launches {
  margin: 8px 0 8px;
}

.home-launch-btn {
  min-height: 58px;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 9px 18px;
}

.home-launch-icon {
  width: 38px;
  height: 38px;
}

.home-launch-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.15;
}

.home-launch-btn b {
  font-size: 21px;
  line-height: 27px;
  letter-spacing: .18em;
}

.category-grid {
  row-gap: 10px;
  margin-top: 12px;
}

.category-item {
  gap: 6px;
}

.category-icon {
  width: 60px;
  height: 60px;
}

.category-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.25;
}

.category-item span:last-child {
  font-size: 17px;
  line-height: 22px;
  font-weight: 500;
}

.divider {
  margin: 12px 0 12px;
}

.quick-card {
  min-height: 78px;
  gap: 8px;
}

.round-icon {
  width: 30px;
  height: 30px;
  font-size: 17px;
}

.quick-card b {
  font-size: 16px;
  line-height: 21px;
  font-weight: 500;
}

.quick-desktop-card {
  gap: 0;
}

.quick-desktop-card b {
  display: grid;
  gap: 0;
  font-size: 28px;
  line-height: 31px;
  font-weight: 900;
  letter-spacing: .08em;
}

.quick-desktop-card b span {
  display: block;
}

.tabbar {
  grid-template-columns: 1fr 1fr 92px 1fr 1fr;
  align-items: start;
  padding-top: 2.5mm;
  padding-bottom: 16px;
}

.tab {
  height: 54px;
  gap: 1px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
}

.tab-icon {
  width: 26px;
  height: 26px;
}

.tab-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.35;
}

.order-fab {
  width: 80px;
  height: 80px;
  margin-top: -30px;
  font-size: 31px;
}

@media (max-height: 720px) {
  :root {
    --tabbar-base-height: 76px;
  }

  .notice-card {
    min-height: 52px;
  }

  .marquee {
    font-size: 16px;
    line-height: 22px;
  }

  .home-launch-btn {
    min-height: 58px;
  }

  .home-launch-btn b {
    font-size: 21px;
    line-height: 27px;
  }

  .category-grid {
    row-gap: 8px;
    margin-top: 12px;
  }

  .category-icon {
    width: 56px;
    height: 56px;
  }

  .category-icon svg {
    width: 31px;
    height: 31px;
  }

  .category-item span:last-child {
    font-size: 16px;
    line-height: 21px;
  }

  .quick-card {
    min-height: 82px;
    gap: 8px;
  }

  .round-icon {
    width: 29px;
    height: 29px;
  }

  .quick-card b {
    font-size: 15px;
    line-height: 20px;
  }

  .quick-desktop-card b {
    font-size: 25px;
    line-height: 28px;
  }

  .tab {
    height: 52px;
    font-size: 15px;
    line-height: 19px;
    gap: 1px;
  }

  .tab-icon,
  .tab-icon svg {
    width: 24px;
    height: 24px;
  }

  .order-fab {
    width: 74px;
    height: 74px;
    margin-top: -28px;
    font-size: 29px;
  }
}

/* 信息页文字放大 */
#orders-screen .page-header h2,
#order-detail-screen .page-header h2 {
  font-size: 23px;
  line-height: 30px;
}

#orders-screen .orders-content {
  padding: 18px 12px 0;
}

#orders-screen .order-search {
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px;
}

#orders-screen .cascade-trigger {
  height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 17px;
  line-height: 22px;
}

#orders-screen .cascade-trigger::after {
  font-size: 17px;
}

#orders-screen .order-search .cascade-menu {
  top: 66px;
  max-height: 380px;
  padding: 8px;
}

#orders-screen .cascade-header {
  height: auto;
  min-height: 38px;
  gap: 8px;
  padding: 0 4px 7px;
}

#orders-screen .cascade-header button {
  width: 32px;
  height: 32px;
  font-size: 24px;
  line-height: 24px;
}

#orders-screen .cascade-header strong {
  font-size: 18px;
  line-height: 24px;
}

#orders-screen .order-search .cascade-group {
  gap: 8px;
  padding: 8px 0;
}

#orders-screen .order-search .cascade-option {
  min-width: 82px;
  min-height: 38px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 17px;
  line-height: 23px;
}

#orders-screen .order-search .cascade-option.reset {
  min-width: 112px;
  margin-bottom: 6px;
}

#orders-screen .order-search .cascade-option.level-1 {
  min-width: 92px;
}

#orders-screen .order-search .cascade-option.level-2,
#orders-screen .order-search .cascade-option.level-3 {
  padding: 4px 12px;
}

#orders-screen .orders-list {
  height: calc(100% - 76px);
}

#orders-screen .order-card {
  padding: 17px 4px 19px;
}

#orders-screen .compact-order h3 {
  font-size: 17px;
  line-height: 23px;
  -webkit-line-clamp: 2;
}

#orders-screen .compact-order .order-line {
  margin-top: 5px;
  font-size: 13px;
  line-height: 18px;
  color: #8a99a6;
}

#orders-screen .compact-order .order-line span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
}

#orders-screen .status-pill,
#order-detail-screen .status-pill {
  padding: 5px 9px;
  font-size: 14px;
  line-height: 18px;
}

#order-detail-screen .detail-panel {
  padding: 16px;
}

#order-detail-screen .detail-head {
  gap: 12px;
  padding-bottom: 13px;
}

#order-detail-screen .detail-head h3 {
  font-size: 20px;
  line-height: 27px;
}

#order-detail-screen .detail-list {
  grid-template-columns: 92px 1fr;
  row-gap: 11px;
  margin: 15px 0 17px;
  font-size: 17px;
  line-height: 24px;
}

#order-detail-screen .privacy-note,
#order-detail-screen .order-media-preview span,
#order-detail-screen .order-media-file,
#order-detail-screen .arrival-confirm-card p,
#order-detail-screen .arrival-confirm-open,
#order-detail-screen .service-flow span,
#order-detail-screen .detail-field-input,
#order-detail-screen .detail-field-select {
  font-size: 17px;
  line-height: 24px;
}

#order-detail-screen .arrival-confirm-card b {
  font-size: 20px;
  line-height: 27px;
}

#order-detail-screen .primary-action,
#order-detail-screen .ghost-action {
  min-height: 48px;
  height: auto;
  font-size: 17px;
  line-height: 24px;
}

@media (max-width: 380px) {
  #orders-screen .page-header h2,
  #order-detail-screen .page-header h2 {
    font-size: 22px;
    line-height: 28px;
  }

  #orders-screen .cascade-trigger {
    height: 46px;
    font-size: 16px;
    line-height: 21px;
  }

  #orders-screen .order-search .cascade-option {
    min-width: 78px;
    min-height: 36px;
    font-size: 16px;
    line-height: 22px;
  }

  #orders-screen .compact-order h3 {
    font-size: 17px;
    line-height: 23px;
  }

  #orders-screen .compact-order .order-line {
    font-size: 16px;
    line-height: 22px;
  }

  #order-detail-screen .detail-head h3 {
    font-size: 19px;
    line-height: 26px;
  }

  #order-detail-screen .detail-list {
    grid-template-columns: 86px 1fr;
    font-size: 16px;
    line-height: 23px;
  }
}

/* 消息/个人页文字放大 */
#messages-screen .page-header h2,
#message-detail-screen .page-header h2,
#profile-screen .page-header h2,
#profile-detail-screen .page-header h2 {
  font-size: 23px;
  line-height: 30px;
}

#messages-screen .message-overview b,
#profile-screen .profile-stats b,
#profile-detail-screen .profile-summary-grid b {
  font-size: 21px;
  line-height: 26px;
}

#messages-screen .message-overview span,
#profile-screen .profile-stats span,
#profile-detail-screen .profile-summary-grid span {
  font-size: 16px;
  line-height: 21px;
}

#messages-screen .message-tabs button {
  height: 38px;
  font-size: 15px;
  line-height: 20px;
}

#messages-screen .message-tools button {
  min-height: 34px;
  height: auto;
  font-size: 15px;
  line-height: 20px;
}

#messages-screen .message-card {
  padding: 14px;
}

#messages-screen .message-head h3 {
  font-size: 17px;
  line-height: 23px;
}

#messages-screen .message-head span,
#messages-screen .message-type,
#messages-screen .message-meta em,
#message-detail-screen .message-detail-head em,
#message-detail-screen .message-type {
  font-size: 14px;
  line-height: 18px;
}

#messages-screen .message-card p,
#messages-screen .message-empty p,
#message-detail-screen .message-detail-panel p,
#message-detail-screen .message-detail-list {
  font-size: 16px;
  line-height: 23px;
}

#messages-screen .message-empty h3,
#message-detail-screen .message-detail-panel h3,
#profile-detail-screen .profile-detail-panel h3 {
  font-size: 18px;
  line-height: 24px;
}

#message-detail-screen .message-detail-list {
  grid-template-columns: 92px 1fr;
  row-gap: 10px;
}

#profile-screen .profile-description {
  font-size: 16px;
  line-height: 22px;
}

#profile-screen .profile-badge,
#profile-detail-screen .profile-review-badge {
  font-size: 14px;
  line-height: 18px;
}

#profile-screen .role-switch button,
#profile-screen .profile-menu b {
  font-size: 17px;
  line-height: 23px;
}

#profile-screen .profile-menu button {
  min-height: 62px;
}

#profile-screen .profile-menu em {
  max-width: 150px;
  color: #71808a;
  font-size: 14px;
  line-height: 20px;
  text-align: right;
  white-space: normal;
}

#profile-detail-screen .profile-detail-list {
  grid-template-columns: 96px 1fr;
  row-gap: 10px;
  font-size: 16px;
  line-height: 24px;
}

#profile-detail-screen .profile-mini-order b,
#profile-detail-screen .faq-list b {
  font-size: 16px;
  line-height: 22px;
}

#profile-detail-screen .profile-mini-order em,
#profile-detail-screen .profile-empty,
#profile-detail-screen .profile-tag-list span,
#profile-detail-screen .profile-warning,
#profile-detail-screen .faq-list span,
#profile-detail-screen .setting-row,
#profile-detail-screen .profile-edit-field,
#profile-detail-screen .profile-edit-field input,
#profile-detail-screen .profile-edit-field select,
#profile-detail-screen .profile-edit-field textarea,
#profile-detail-screen .review-list b,
#profile-detail-screen .review-list span,
#profile-detail-screen .rating-panel span,
#profile-detail-screen .rating-panel p {
  font-size: 16px;
  line-height: 23px;
}

#profile-detail-screen .profile-mini-order b,
#profile-detail-screen .profile-mini-order em {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

#message-detail-screen .primary-action,
#message-detail-screen .ghost-action,
#profile-detail-screen .primary-action,
#profile-detail-screen .ghost-action {
  min-height: 48px;
  height: auto;
  font-size: 17px;
  line-height: 24px;
}

@media (max-width: 380px) {
  #messages-screen .page-header h2,
  #message-detail-screen .page-header h2,
  #profile-screen .page-header h2,
  #profile-detail-screen .page-header h2 {
    font-size: 22px;
    line-height: 28px;
  }

  #messages-screen .message-overview span,
  #profile-screen .profile-stats span,
  #messages-screen .message-card p,
  #messages-screen .message-empty p,
  #message-detail-screen .message-detail-panel p,
  #message-detail-screen .message-detail-list,
  #profile-screen .profile-description,
  #profile-detail-screen .profile-detail-list,
  #profile-detail-screen .profile-mini-order em,
  #profile-detail-screen .profile-empty,
  #profile-detail-screen .profile-tag-list span,
  #profile-detail-screen .profile-warning,
  #profile-detail-screen .faq-list span,
  #profile-detail-screen .setting-row,
  #profile-detail-screen .profile-edit-field,
  #profile-detail-screen .profile-edit-field input,
  #profile-detail-screen .profile-edit-field select,
  #profile-detail-screen .profile-edit-field textarea {
    font-size: 16px;
    line-height: 22px;
  }
}

/* 发布表单文字放大 */
#order-form-screen .page-header h2 {
  font-size: 23px;
  line-height: 30px;
}

#order-form-screen .form-content {
  padding-top: 12px;
}

#order-form-screen .form-card {
  overflow: visible;
}

#order-form-screen .field {
  grid-template-columns: 96px 1fr;
  min-height: 52px;
  padding: 0 12px;
}

#order-form-screen .category-combo-field,
#order-form-screen .address-combo-field {
  grid-template-columns: 104px 1fr;
}

#order-form-screen .field span,
#order-form-screen .field input,
#order-form-screen .field select,
#order-form-screen .field textarea {
  font-size: 16px;
  line-height: 23px;
}

#order-form-screen .field input,
#order-form-screen .field select {
  min-height: 40px;
}

#order-form-screen .category-combo {
  gap: 8px;
}

#order-form-screen .category-combo select {
  height: 40px;
  padding: 0 8px;
}

#order-form-screen .order-area-trigger {
  height: 40px;
  padding: 0 8px;
}

#order-form-screen .order-area-picker,
#profile-detail-screen .profile-area-picker {
  overflow: visible;
}

#order-form-screen .order-area-picker .cascade-option {
  min-height: 38px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 22px;
}

#order-form-screen .text-field > span,
#order-form-screen .file-field > span {
  padding-top: 12px;
}

#order-form-screen .field textarea {
  min-height: 66px;
  padding: 10px 0;
}

#order-form-screen .media-picker {
  gap: 8px;
  padding: 5px 0;
}

#order-form-screen .media-action {
  min-height: 42px;
}

#order-form-screen .media-action b {
  font-size: 16px;
  line-height: 22px;
}

#order-form-screen .media-picker small,
#order-form-screen .media-preview-note,
#order-form-screen .form-error {
  font-size: 14px;
  line-height: 20px;
}

#order-form-screen .agree-row {
  margin: 10px 4px;
  font-size: 15px;
  line-height: 22px;
}

#order-form-screen .primary-action {
  min-height: 48px;
  height: auto;
  font-size: 17px;
  line-height: 24px;
}

@media (max-width: 380px) {
  #order-form-screen .page-header h2 {
    font-size: 22px;
    line-height: 28px;
  }

  #order-form-screen .field {
    grid-template-columns: 88px 1fr;
  }

  #order-form-screen .category-combo-field,
  #order-form-screen .address-combo-field {
    grid-template-columns: 96px 1fr;
  }

  #order-form-screen .field span,
  #order-form-screen .field input,
  #order-form-screen .field select,
  #order-form-screen .field textarea,
  #order-form-screen .media-action b {
    font-size: 16px;
    line-height: 22px;
  }
}

/* 稳定性锁：防止 iPhone 输入缩放和横向漂移 */
.content,
.home-content,
.form-content,
.detail-content,
.orders-content,
.orders-list,
.messages-content,
.message-detail-content,
.profile-content,
.profile-detail-content {
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

.form-card,
.profile-detail-panel,
.profile-info-form,
.field,
.profile-edit-field,
.category-combo,
.order-area-picker,
.profile-area-picker,
.cascade-filter,
.cascade-menu,
.cascade-group {
  max-width: 100%;
  min-width: 0;
}

.category-combo,
.order-area-picker,
.profile-area-picker,
.cascade-filter {
  position: relative;
  overflow-x: hidden;
}

.order-area-picker,
.profile-area-picker {
  overflow: visible;
}

.field input,
.field select,
.field textarea,
.profile-edit-field input,
.profile-edit-field select,
.profile-edit-field textarea,
.detail-field-input,
.detail-field-select,
.font-size-select,
.cascade-trigger,
.auth-field input {
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

input[type="file"] {
  max-width: 100%;
}

.media-action input[type="file"],
.profile-avatar-only input[type="file"],
.avatar-upload input[type="file"],
.verify-photo-picker input[type="file"] {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.cascade-menu {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overscroll-behavior: contain;
  transform: none;
}

.order-search .cascade-menu,
.order-area-picker .order-area-menu,
.profile-area-picker .profile-area-menu {
  left: 0;
  right: 0;
  width: auto;
  max-width: 100%;
}

.order-search .cascade-menu,
.order-area-picker .order-area-menu,
.profile-area-picker .profile-area-menu,
#regionMenu,
#categoryMenu,
#orderAreaMenu,
#profileAreaMenu {
  inline-size: 100%;
  max-inline-size: 100%;
  overflow-inline: hidden;
}

#orders-screen .order-search {
  inline-size: 100%;
  max-inline-size: 100%;
}

#order-form-screen .form-card,
#profile-detail-screen .profile-detail-panel {
  inline-size: 100%;
  max-inline-size: 100%;
}

.order-search .cascade-group,
.order-area-picker .cascade-group,
.profile-area-picker .cascade-group {
  max-width: 100%;
  overflow-x: hidden;
}

.order-search .cascade-option,
.order-area-picker .cascade-option,
.profile-area-picker .cascade-option {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.cascade-menu.open,
.order-search .cascade-menu.open,
.order-area-picker .order-area-menu.open,
.profile-area-picker .profile-area-menu.open {
  position: fixed;
  top: auto;
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--tabbar-height) + 12px);
  z-index: 100;
  width: auto;
  max-width: none;
  max-height: min(62vh, calc(100dvh - var(--tabbar-height) - 104px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

.hide-tabbar .cascade-menu.open,
.hide-tabbar .order-search .cascade-menu.open,
.hide-tabbar .order-area-picker .order-area-menu.open,
.hide-tabbar .profile-area-picker .profile-area-menu.open {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  max-height: min(68vh, calc(100dvh - env(safe-area-inset-bottom, 0px) - 92px));
}

.order-area-picker .order-area-menu.open .cascade-group,
.profile-area-picker .profile-area-menu.open .cascade-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.order-area-picker .order-area-menu.open .cascade-option,
.profile-area-picker .profile-area-menu.open .cascade-option {
  width: 100%;
  min-height: 44px;
  justify-content: flex-start;
  padding: 8px 12px;
  text-align: left;
}


/* 服务与隐私页法律文档排版 */
.legal-doc {
  display: block;
  width: 100%;
}

.legal-doc .legal-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.legal-doc p {
  margin: 0 0 10px;
  color: #33424e;
  font-size: 13px;
  line-height: 21px;
  text-align: justify;
}

.legal-doc h4 {
  margin: 16px 0 8px;
  color: var(--blue-dark);
  font-size: 14px;
  line-height: 20px;
}

.legal-doc h5 {
  margin: 12px 0 6px;
  color: #172734;
  font-size: 13px;
  line-height: 19px;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 10px;
  padding-left: 20px;
}

.legal-doc li {
  margin: 0 0 4px;
  color: #33424e;
  font-size: 13px;
  line-height: 20px;
}
