/* ==========================================================================
   Mobile UI · 独立移动端界面
   仅在 ≤ 860px 生效；桌面端样式不受影响
   核心：底部导航 / 分步表单 / 卡片化列表 / 横滑内容 / 安全区适配
   ========================================================================== */

.m-progress, .m-stepbar, .m-cta { display: none; }
.m-show { display: none; }
.tab-ico { display: none; }

@media (max-width: 860px) {
  :root {
    --nav-h: 58px;
    --gut: 18px;
    --m-bar: calc(62px + env(safe-area-inset-bottom));
  }

  html { -webkit-text-size-adjust: 100%; }
  body { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  body.page-home { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .m-show { display: inline; }
  .m-hide { display: none; }

  /* ---------- 共通排版 ---------- */
  .wrap { padding-inline: var(--gut); }
  .kicker { font-size: 9.5px; letter-spacing: 0.18em; }
  .h2 { font-size: 27px; line-height: 1.34; letter-spacing: -0.01em; }
  .lead { font-size: 15px; line-height: 1.78; }
  .section { padding-block: 52px; }
  .section-head { display: block; }
  .section-head > p, .section-head .lead { margin-top: 14px; }
  .btn { min-height: 46px; justify-content: center; font-size: 14px; }
  .btn--sm { min-height: 38px; font-size: 12.5px; }
  .textlink { font-size: 13px; }
  .small { font-size: 12px; line-height: 1.7; }

  /* ---------- 公共站点头部 ---------- */
  .site-header { background: rgba(251, 251, 248, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .nav-inner { height: 58px; gap: 10px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__mark.brand__mark--img { width: 34px; height: 24px; }
  .brand__word { font-size: 16px; letter-spacing: 0.09em; }
  .brand__sub { font-size: 7px; letter-spacing: 0.18em; margin-top: 4px; }
  .nav-actions .btn { display: none; }
  .nav-toggle { width: 40px; height: 40px; }
  .mobile-menu { top: 58px; padding: 12px var(--gut) 22px; }
  .mobile-menu a { padding: 15px 0; font-size: 15px; }

  /* ---------- 首页 Hero ---------- */
  .hero { padding-top: calc(58px + 34px); padding-bottom: 34px; }
  .hero__grid { display: block; }
  .hero__title { font-size: clamp(38px, 11.4vw, 46px); line-height: 1.14; letter-spacing: -0.025em; margin-top: 14px; }
  .hero__lede { font-size: 14.5px; line-height: 1.8; margin-top: 16px; }
  .hero__cta { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .hero__cta .btn { width: 100%; }
  .hero__meta { margin-top: 26px; grid-template-columns: 1fr 1fr; gap: 12px 10px; border-top: 1px solid var(--line); padding-top: 16px; }
  .hero__meta dd { font-size: 12px; }
  .hero__cloud { opacity: 0.35; width: 130%; left: -15%; top: 40px; }

  /* 状态机：横滑卡片 */
  .state-board { margin-top: 26px; padding: 0; background: transparent; border: 0; }
  .state-board__head { padding: 0 0 10px; align-items: baseline; }
  .state-board__title { font-size: 10px; letter-spacing: 0.1em; }
  .state-board__hint { font-size: 10px; }
  .state-list {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0 calc(var(--gut) * -1);
    padding: 2px var(--gut) 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .state-list::-webkit-scrollbar { display: none; }
  .state-list li { flex: 0 0 58%; scroll-snap-align: center; margin: 0; }
  .state-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    width: 100%;
    min-height: 100px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line-2);
    text-align: left;
    border-radius: 2px;
  }
  .state-row .state-dot { order: 0; }
  .state-code { font-size: 10px; color: var(--muted-2); }
  .state-name { flex-basis: 100%; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.3; margin-top: 4px; }
  .state-perm { flex-basis: 100%; font-size: 10.5px; color: var(--muted); border: 0; padding: 0; }
  .state-row.is-active { border-color: var(--sky); background: var(--paper-blue); color: var(--ink); }
  .state-row.is-active .state-name { color: var(--ink); }
  .state-row.is-active .state-code, .state-row.is-active .state-perm { color: var(--muted); }
  .state-row.is-active .state-dot { background: var(--sky); }
  .state-detail { margin-top: 4px; padding: 14px; background: #fff; border: 1px solid var(--line); grid-template-columns: 62px 1fr; font-size: 12px; }

  /* 流程横条：移动端改为纵向步骤 */
  .flowstrip { padding: 0; background: transparent; border-block: 1px solid var(--line); }
  .flowstrip__inner { display: block; padding: 8px var(--gut); }
  .flowstep { display: grid; grid-template-columns: 58px 1fr auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
  .flowstep:last-child { border-bottom: 0; }
  .flowstep__no { grid-row: span 2; font-size: 9.5px; padding-top: 2px; }
  .flowstep__name { font-size: 14px; }
  .flowstep__desc { grid-column: 2; font-size: 11.5px; line-height: 1.6; }
  .flowstep__tag { grid-column: 3; grid-row: 1; align-self: center; }

  /* 原则 / 说明 */
  .split { display: block; }
  .note-list .note { grid-template-columns: 34px 1fr; padding: 16px 0; }
  .note__title { font-size: 15px; }
  .note__text { font-size: 13px; line-height: 1.8; }
  .principles { grid-template-columns: 1fr; margin-top: 26px; border-top: 1px solid var(--line); }
  .principle { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle__title { font-size: 15px; }
  .aside-card { padding: 18px; margin-top: 16px; }
  .stat-row { gap: 10px; }
  .stat__v { font-size: 24px; }

  /* IP 展厅：横滑大卡 */
  .section--tint { padding-block: 46px; }
  .gallery-head { display: block; }
  .filters { margin-top: 16px; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); padding-bottom: 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; min-height: 36px; padding-inline: 15px; }
  .ip-grid {
    display: flex;
    gap: 12px;
    margin: 18px calc(var(--gut) * -1) 0;
    padding: 2px var(--gut) 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ip-grid::-webkit-scrollbar { display: none; }
  .ip-card { flex: 0 0 80%; scroll-snap-align: center; border: 1px solid var(--line-2); background: #fff; }
  .ip-card__media img { aspect-ratio: 4 / 5; height: auto; }
  .ip-card__name h3 { font-size: 19px; }
  .ip-card__meta { font-size: 11px; margin-top: 6px; }
  .ip-card__price { font-size: 11px; }
  .gallery-note { margin-top: 18px; display: block !important; }
  .gallery-note .textlink { margin-top: 12px; display: inline-flex; }

  /* FAQ */
  .faq details { border-bottom: 1px solid var(--line); }
  .faq summary { padding: 17px 34px 17px 0; font-size: 14.5px; line-height: 1.6; }
  .faq__body { font-size: 13px; line-height: 1.85; padding-right: 10px; }

  /* 深色 CTA */
  .cta-band { padding-block: 52px; }
  .cta-band__grid { display: block; }
  .cta-band__actions { margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .cta-band__actions .btn { width: 100%; }

  /* 页脚 */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { max-width: none; }
  .logo-plate { width: 78px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }

  /* ---------- 首页吸底 CTA ---------- */
  .m-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 58;
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 8px;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 251, 248, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 0.35s var(--ease);
  }
  .m-cta.is-on { transform: none; }
  .m-cta .btn { width: 100%; min-height: 46px; }
  .m-cta__sub { display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; color: var(--muted); line-height: 1.5; }
  .m-cta__sub strong { font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--ink); letter-spacing: 0; }

  /* ---------- 申请页 ---------- */
  .page-hero { padding: calc(58px + 30px) 0 22px; }
  .page-hero__row { display: block; }
  .page-hero h1 { font-size: 30px; line-height: 1.3; margin-top: 12px; }
  .page-hero .lead { font-size: 14px; }
  .page-hero__side { display: none; }
  .crumbs { font-size: 11px; }
  .apply-layout { display: block; }
  .form-card { padding: 0; border: 0; background: transparent; box-shadow: none; }
  .form-section { background: #fff; border: 1px solid var(--line); padding: 18px 16px; margin-bottom: 14px; }
  .form-section__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; margin-bottom: 14px; }
  .form-section__no { font-size: 10px; }
  .form-section__title { font-size: 19px; }
  .form-section__hint { flex-basis: 100%; margin-top: 0; text-align: left; font-size: 10.5px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .field label { font-size: 12.5px; }
  .field input, .field select, .field textarea { font-size: 16px; min-height: 48px; padding: 12px 13px; border-color: var(--line-2); background: var(--paper); }
  .field textarea { min-height: 110px; }
  .choice-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .choice { min-height: 46px; display: flex; align-items: center; padding: 10px 12px; background: var(--paper); }
  .upload-zone { padding: 26px 16px; background: var(--paper); }
  .upload-zone__title { font-size: 13px; }
  .form-actions { display: block; }
  .form-error-box { font-size: 12.5px; }

  /* 分步向导 */
  .m-progress {
    position: sticky;
    top: 58px;
    z-index: 24;
    display: block;
    padding: 10px 0 12px;
    margin-bottom: 10px;
    background: var(--paper);
  }
  .m-progress__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .m-progress__step { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--sky-deep); }
  .m-progress__title { font-family: var(--serif); font-size: 17px; font-weight: 600; }
  .m-progress__draft { font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line-2); padding: 2px 0; }
  .m-progress__bar { display: flex; gap: 5px; margin-top: 10px; }
  .m-progress__bar i { flex: 1; height: 3px; background: var(--line-2); transition: background 0.3s; }
  .m-progress__bar i.is-done { background: var(--sky); }

  .m-wizard .form-section { display: none; margin-bottom: 88px; }
  .m-wizard .form-section.is-step-on { display: block; animation: mStepIn 0.32s var(--ease); }
  .m-wizard .form-actions { display: none; }
  @keyframes mStepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

  .m-stepbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 58;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 251, 248, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
  }
  .m-stepbar.is-off { display: none; }
  .m-stepbar__prev { flex: 0 0 auto; min-width: 92px; }
  .m-stepbar__prev[disabled] { opacity: 0.35; }
  .m-stepbar__count { flex: 1; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }
  .m-stepbar__next { flex: 1.3; min-height: 46px; }
  .result-card { padding: 22px 18px; }
  .result-card h3 { font-size: 21px; }
  .result-meta { grid-template-columns: 1fr; gap: 10px; }

  /* ---------- 创作者中心 ---------- */
  .app-nav__inner { height: 56px; padding-inline: 14px; gap: 10px; }
  .app-nav__ctx, .demo-chip, .app-nav__right .textlink { display: none; }
  .app-nav__right { gap: 10px; }
  .user-mini > div { display: none; }
  .icon-btn { width: 38px; height: 38px; }

  .console__grid { display: block; padding: 0 14px; }
  .console__grid > main { display: block; }
  .side-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    top: auto;
    z-index: 70;
    display: block;
    padding: 0 0 env(safe-area-inset-bottom);
    background: rgba(251, 251, 248, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    height: var(--m-bar);
  }
  .side-nav__group:first-child { display: flex; height: 62px; }
  .side-nav__group + .side-nav__group, .side-nav__label, .side-nav__foot { display: none; }
  .side-nav button, .side-nav a {
    flex: 1;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0;
    font-size: 10px;
    line-height: 1.2;
    border: 0;
    border-radius: 0;
    color: var(--muted);
    white-space: nowrap;
  }
  .side-nav button .mono, .side-nav a .mono { display: none; }
  .side-nav button.is-active, .side-nav a.is-active { color: var(--sky-deep); background: transparent; font-weight: 500; }
  .side-nav button.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    width: 22px;
    height: 2px;
    background: var(--sky);
  }
  .side-nav button { position: relative; }
  .tab-ico { display: block; width: 20px; height: 20px; flex: none; }
  .side-nav button.is-active .tab-ico { stroke-width: 1.6; }

  .console__grid { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .state-hero { margin-top: 14px; padding: 16px; }
  .state-hero__top { display: block; }
  .state-code-big { font-size: 20px; padding: 5px 10px; margin-bottom: 8px; display: inline-flex; }
  .state-hero h1 { font-size: 21px; line-height: 1.35; }
  .state-hero__sub { font-size: 12px; line-height: 1.7; margin-top: 8px; }
  .state-hero__right { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
  .state-hero__right div span { font-size: 8.5px; }
  .state-hero__right div strong { font-size: 11px; }
  .mini-timeline { display: flex; gap: 0; overflow-x: auto; margin-top: 16px; padding-bottom: 4px; scrollbar-width: none; }
  .mini-timeline::-webkit-scrollbar { display: none; }
  .mt-step { flex: 0 0 62px; }
  .mt-step__code { font-size: 8px; }
  .mt-step__name { font-size: 8px; }

  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; border: 0; background: transparent; }
  .metric { padding: 13px 14px; border: 1px solid var(--line); }
  .metric__k { font-size: 10.5px; }
  .metric__v { font-size: 21px; margin-top: 6px; }
  .metric__d { font-size: 9.5px; margin-top: 4px; }
  .two-col { display: block; }
  .panel { margin-top: 12px; border-radius: 2px; }
  .panel__head { padding: 14px 14px 12px; gap: 10px; }
  .panel__title { font-size: 15px; }
  .panel__title .mono { font-size: 8.5px; }
  .panel__body { padding: 12px 14px 16px; }
  .panel__foot { padding: 10px 14px; font-size: 10px; }
  .todo { padding: 12px 0; }
  .todo__title { font-size: 13px; }
  .chart { height: 150px; }
  .doc-row { padding: 12px 0; gap: 10px; }
  .doc-row__icon { width: 46px; font-size: 7.5px; }
  .doc-row__name { font-size: 13px; }
  .doc-row__meta { flex-wrap: wrap; gap: 4px 10px; font-size: 10px; }
  .ip-row { grid-template-columns: 1fr auto; }
  .empty-state { padding: 28px 16px; }

  /* 通用表格 → 卡片列表 */
  .table-wrap { overflow: visible; }
  table.tbl { display: block; min-width: 0; width: 100%; }
  table.tbl thead { display: none; }
  table.tbl tbody { display: block; }
  table.tbl tr { display: block; padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--line); background: #fff; }
  table.tbl tr:last-child { margin-bottom: 0; }
  table.tbl td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 5px 0;
    border: 0;
    text-align: right;
    white-space: normal;
    font-size: 12.5px;
  }
  table.tbl td::before {
    content: attr(data-label);
    flex: none;
    font-family: var(--sans);
    font-size: 10.5px;
    letter-spacing: 0;
    color: var(--muted-2);
    text-align: left;
    text-transform: none;
  }
  table.tbl td[data-label=""]::before { display: none; }
  table.tbl td.right { text-align: right; }
  table.tbl tr > td:first-child { font-size: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); margin-bottom: 4px; }
  #appsTable td:last-child { display: block; padding-top: 9px; }
  #appsTable td:last-child::before { display: none; }
  #appsTable td:last-child .btn { width: 100%; min-height: 40px; }

  /* ---------- 运营后台 ---------- */
  .admin__shell { display: block; }
  .admin-side {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    top: auto;
    z-index: 80;
    height: var(--m-bar);
    padding: 0 0 env(safe-area-inset-bottom);
    flex-direction: row;
    overflow: visible;
    background: #101820;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .admin-side .brand, .admin-side__label, .admin-side__foot,
  .admin-side nav[aria-label="辅助导航"] { display: none; }
  .admin-side nav[aria-label="运营后台导航"] { display: flex; width: 100%; height: 62px; }
  .admin-side nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0;
    font-size: 10px;
    color: rgba(251, 251, 248, 0.55);
    border: 0;
    background: transparent;
    white-space: nowrap;
  }
  .admin-side nav button .mono { display: none; }
  .admin-side nav button.is-active { color: #fff; background: transparent; }
  .admin-side nav button.is-active .tab-ico { color: var(--sky); }
  .admin-side .tab-ico { display: block; width: 20px; height: 20px; }

  .admin-main { margin-left: 0; padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .admin-top {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 56px;
    padding: 0 14px;
    gap: 8px;
    background: rgba(251, 251, 248, 0.93);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }
  .admin-top h1 { font-size: 17px; }
  .admin-top__meta { font-size: 8.5px; }
  .admin-top .search, .admin-top .demo-chip { display: none; }
  .admin-top .user-mini { margin-left: auto; }
  .admin-top .user-mini > div { display: none; }
  .admin-body { padding: 14px 14px 20px; }
  .admin-page-head { display: block; margin-bottom: 14px; }
  .admin-page-head h2 { font-size: 21px; line-height: 1.35; }
  .admin-page-head p { font-size: 11.5px; line-height: 1.7; margin-top: 6px; }
  .admin-page-head__actions { margin-top: 12px; display: flex; gap: 8px; }
  .admin-page-head__actions .btn { flex: 1; }
  .admin-stats { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
  .admin-stat { padding: 13px 14px; }
  .admin-stat__k { font-size: 10.5px; }
  .admin-stat__v { font-size: 23px; }
  .admin-stat__d { font-size: 9.5px; line-height: 1.5; }
  .admin-card { margin-top: 12px; }
  .admin-card .filterbar { overflow-x: auto; flex-wrap: nowrap; }
  .filterbar .chip { flex: none; }
  .state-rules { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .state-rules > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .pager { margin-left: auto; }

  /* 抽屉 → 底部全屏面板 */
  .overlay.is-on { display: block; }
  .drawer {
    top: auto;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 92dvh;
    max-height: 92dvh;
    border-radius: 16px 16px 0 0;
    transform: translateY(102%);
    box-shadow: 0 -30px 60px -40px rgba(0, 0, 0, 0.5);
  }
  .drawer.is-on { transform: none; }
  .drawer::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 38px;
    height: 4px;
    margin-left: -19px;
    border-radius: 2px;
    background: var(--line-2);
  }
  .drawer__head { padding: 22px 16px 14px; gap: 10px; }
  .drawer__head h2 { font-size: 18px; }
  .drawer__body { padding: 16px 16px 24px; }
  .drawer__foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); justify-content: stretch; }
  .drawer__foot .btn { flex: 1; }
  .material-grid { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 76px 1fr; font-size: 12.5px; }
  .review-form { padding: 14px; }
  .drawer__body .review-form .btn { width: 100%; }

  /* ---------- 签署工作台 ---------- */
  .sign-head__inner { height: 54px; padding-inline: 14px; gap: 10px; }
  .sign-head .brand__mark { width: 28px; height: 28px; }
  .sign-head .brand__word { font-size: 15px; }
  .sign-head__secure { margin-left: auto; }
  .sign-head__secure span { display: none; }
  .sign-head .app-nav__ctx, .sign-head .textlink { display: none; }
  .sign-steps { position: sticky; top: 54px; z-index: 26; background: rgba(251, 251, 248, 0.96); backdrop-filter: blur(16px); }
  .sign-steps__inner { padding-inline: 14px; overflow-x: auto; scrollbar-width: none; }
  .sign-steps__inner::-webkit-scrollbar { display: none; }
  .sstep { flex: none; padding: 11px 14px 11px 0; margin-right: 8px; }
  .sstep__n { width: 20px; height: 20px; font-size: 9px; }
  .sstep__label { font-size: 10.5px; white-space: nowrap; }
  .sign-layout { display: block; padding: 12px 12px 24px; }
  .sign-doc-wrap { display: block; }
  .contract-toc { display: none; }
  .contract { padding: 18px 16px; font-size: 13.5px; line-height: 1.9; border-radius: 2px; }
  .contract__title { font-size: 21px; }
  .contract__no { font-size: 9px; }
  .contract__parties { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; padding-top: 14px; }
  .contract h3 { font-size: 15px; margin-top: 22px; }
  .contract__signzone { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .sign-panel { margin-top: 14px; border-radius: 2px; border: 1px solid var(--line); }
  .sign-panel__head { padding: 16px; }
  .sign-panel__body { padding: 16px; }
  .sig-pad { padding: 0; }
  .sig-pad canvas { height: 168px; }
  .sign-panel .btn--block { min-height: 50px; }

  /* ---------- Toast 抬高，避开底部栏 ---------- */
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .m-progress__title { font-size: 16px; }
  .ip-card { flex-basis: 86%; }
  .state-list li { flex-basis: 66%; }
  .admin-side nav button, .side-nav button { font-size: 9.5px; }
}
