:root {
  --page: #e8eef0;
  --surface: #ffffff;
  --surface-soft: #f4f7f7;
  --surface-muted: #edf2f2;
  --ink: #17242a;
  --ink-strong: #0c171c;
  --muted: #687780;
  --line: #dce5e7;
  --brand: #0f766e;
  --brand-strong: #0a5d57;
  --brand-soft: #dff5f1;
  --accent: #f97316;
  --accent-soft: #fff0e5;
  --success: #16803c;
  --success-soft: #e7f7ec;
  --warning: #a75d08;
  --warning-soft: #fff4dd;
  --danger: #c73e3e;
  --danger-soft: #fff0f0;
  --shadow: 0 18px 60px rgba(24, 48, 55, 0.18);
  --shell-width: 430px;
  --nav-height: 68px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
  overflow-x: hidden;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.2);
  outline-offset: 2px;
}

input {
  min-width: 0;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  width: min(100%, var(--shell-width));
  min-height: 100dvh;
  margin: 0 auto;
  background: linear-gradient(180deg, #f8fbfa 0, #f3f6f6 260px, #f5f7f7 100%);
  box-shadow: var(--shadow);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: max(12px, env(safe-area-inset-top)) 16px 8px;
  background: rgba(250, 252, 251, 0.94);
  border-bottom: 1px solid rgba(220, 229, 231, 0.75);
  backdrop-filter: blur(18px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.store-switcher {
  display: block;
  margin-top: 10px;
  padding-bottom: 2px;
}

.store-switcher:empty {
  display: none;
}

.store-chip {
  min-width: 0;
  width: 100%;
  padding: 8px 11px;
  text-align: left;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.store-chip span,
.store-chip small {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-chip span {
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 700;
}

.store-chip small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.store-chip.is-active {
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-color: rgba(15, 118, 110, 0.35);
}

.store-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 10px;
  padding: 9px 11px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 10px;
  background: var(--brand-soft);
}

.store-context span {
  grid-row: 1 / span 2;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--brand-strong);
  background: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
}

.store-context strong,
.store-context small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-context strong {
  color: var(--ink-strong);
  font-size: 12px;
}

.store-context small {
  color: var(--muted);
  font-size: 10px;
}

.store-select-wrap {
  position: relative;
  display: flex;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--ink-strong);
}

.store-select-wrap svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.store-select {
  min-width: 0;
  width: 100%;
  padding: 1px 20px 1px 0;
  color: var(--ink-strong);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  appearance: none;
  cursor: pointer;
}

.store-select-wrap svg:last-child {
  position: absolute;
  right: 0;
  pointer-events: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: var(--brand);
  border-radius: 13px 13px 13px 5px;
  box-shadow: 0 7px 18px rgba(15, 118, 110, 0.22);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  stroke-width: 2;
}

.brand-copy {
  min-width: 0;
}

.brand-kicker,
.section-eyebrow {
  display: block;
  margin: 0 0 1px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-copy h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 22px;
  line-height: 1.18;
  white-space: nowrap;
}

.icon-button {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.icon-button.small {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
}

.icon-button.small svg {
  width: 17px;
  height: 17px;
}

.search-row {
  display: flex;
  gap: 9px;
  margin-top: 11px;
}

.search-box {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(25, 50, 57, 0.04);
}

.search-box > svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.search-box input {
  flex: 1;
  height: 100%;
  padding: 0 9px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-box input::placeholder {
  color: #93a0a7;
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: var(--surface-soft);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.search-clear svg {
  width: 14px;
  height: 14px;
}

.scan-button {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: #ffffff;
  background: var(--brand);
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.scan-button svg {
  width: 20px;
  height: 20px;
}

.promise-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 8px 1px 7px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.promise-strip::-webkit-scrollbar,
.category-strip::-webkit-scrollbar {
  display: none;
}

.promise-strip span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.promise-strip svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.category-strip {
  display: flex;
  gap: 8px;
  margin: 0 -16px;
  padding: 1px 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-chip {
  flex: 0 0 auto;
  min-width: 56px;
  height: 32px;
  padding: 0 14px;
  color: #52616a;
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}

.category-chip.is-active {
  color: #ffffff;
  background: var(--ink-strong);
  border-color: var(--ink-strong);
}

.app-main {
  min-height: calc(100dvh - var(--nav-height) - 145px);
  padding: 13px 16px calc(var(--nav-height) + 28px + env(safe-area-inset-bottom));
}

.view {
  animation: view-in 180ms ease-out;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin: 2px 0 11px;
}

.section-heading h2,
.profile-head h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 20px;
  line-height: 1.2;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.text-button svg {
  width: 16px;
  height: 16px;
}

.result-count {
  color: var(--muted);
  font-size: 12px;
}

.content-slot {
  min-height: 120px;
}

.order-shortcut {
  display: grid;
  gap: 9px;
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.order-shortcut-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-shortcut-head > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.order-shortcut-head span,
.order-shortcut-head button {
  color: var(--muted);
  font-size: 10px;
}

.order-shortcut-head strong {
  color: var(--ink-strong);
  font-size: 13px;
}

.order-shortcut-head button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
  background: transparent;
  cursor: pointer;
}

.order-shortcut-head svg {
  width: 13px;
  height: 13px;
}

.order-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.order-shortcut-grid button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 50px;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 6px 3px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.order-shortcut-grid span {
  overflow: hidden;
  max-width: 100%;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-shortcut-grid strong {
  color: var(--ink-strong);
  font-size: 15px;
}

.order-shortcut-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px;
  height: 5px;
  background: #d64a2f;
  border-radius: 50%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-card {
  display: block;
  min-width: 0;
  padding: 0;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 5px 18px rgba(25, 50, 57, 0.045);
  overflow: hidden;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.product-card:active {
  transform: scale(0.985);
}

.product-card:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.product-art {
  position: relative;
  display: grid;
  height: 126px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0)),
    #e6f3f1;
}

.product-art::after {
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 84px;
  height: 84px;
  background: rgba(15, 118, 110, 0.08);
  border-radius: 50%;
  content: "";
}

.product-art[data-category="平板电脑"] {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)),
    #e8eef5;
}

.product-art[data-category="办公本"] {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0)),
    #e7f4ef;
}

.product-art[data-category="摄影器材"] {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0)),
    #f5ece5;
}

.product-art[data-category="游戏设备"] {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)),
    #e9edf8;
}

.product-art svg {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  color: var(--brand);
  stroke-width: 1.55;
}

.product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-art:has(.product-image)::after {
  display: none;
}

.stock-flag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 3px 7px;
  color: #47616a;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-body {
  min-width: 0;
  padding: 9px 10px 11px;
}

.product-title {
  display: -webkit-box;
  min-height: 38px;
  margin: 0;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.42;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.condition-tag {
  padding: 2px 6px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 5px;
}

.product-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #edf1f2;
}

.daily-price {
  min-width: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.daily-price strong {
  font-size: 19px;
  line-height: 1;
}

.daily-price small {
  font-weight: 500;
}

.deposit-price {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
  white-space: nowrap;
}

.deposit-price strong {
  display: block;
  color: #4b5960;
  font-size: 11px;
}

.category-layout {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.category-rail {
  position: sticky;
  top: 158px;
  display: grid;
  gap: 5px;
}

.category-rail .category-chip {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 6px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.category-layout .product-grid {
  grid-template-columns: minmax(0, 1fr);
}

.category-layout .product-art {
  height: 146px;
}

.category-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.category-showcase button {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.category-showcase button.is-active {
  background: var(--brand-soft);
  border-color: rgba(15, 118, 110, 0.28);
}

.category-showcase button > span {
  display: grid;
  width: 34px;
  height: 34px;
  grid-row: 1 / span 2;
  place-items: center;
  color: var(--brand-strong);
  background: #f1f7f5;
  border-radius: 8px;
}

.category-showcase button:nth-child(2n) > span {
  color: #2864d7;
  background: #eef3ff;
}

.category-showcase button:nth-child(3n) > span {
  color: #c6552b;
  background: #fff2eb;
}

.category-showcase svg {
  width: 18px;
  height: 18px;
}

.category-showcase strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-showcase small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sort-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px 2px;
  color: var(--muted);
  font-size: 10px;
}

.sort-filter-summary button {
  padding: 0;
  color: var(--brand-strong);
  background: transparent;
  border: 0;
  font-size: 10px;
  cursor: pointer;
}

.order-lookup {
  margin-bottom: 13px;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.order-lookup > label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}

.lookup-row {
  display: flex;
  gap: 7px;
}

.lookup-row input {
  flex: 1;
  height: 38px;
  padding: 0 10px;
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  outline: 0;
}

.secondary-button {
  flex: 0 0 auto;
  min-width: 64px;
  height: 38px;
  padding: 0 13px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 650;
  cursor: pointer;
}

#profileAddressList .searchbar {
  margin-bottom: 8px;
}

#profileAddressList .searchbar .secondary-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

#profileAddressList .searchbar .secondary-button svg {
  width: 16px;
  height: 16px;
}

.order-list {
  display: grid;
  gap: 10px;
}

.order-card {
  padding: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.order-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.order-card-head h3 {
  min-width: 0;
  margin: 0;
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.status-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  color: var(--warning);
  background: var(--warning-soft);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

.status-badge.is-paid {
  color: var(--success);
  background: var(--success-soft);
}

.status-badge.is-closed {
  color: var(--muted);
  background: var(--surface-muted);
}

.order-sku {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.order-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
  padding: 10px 0;
  border-top: 1px solid #edf1f2;
  border-bottom: 1px solid #edf1f2;
}

.order-fact {
  min-width: 0;
}

.order-fact span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.order-fact strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.progress-line {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.progress-node {
  position: relative;
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.progress-node::before {
  position: absolute;
  top: 5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line);
  content: "";
}

.progress-node:first-child::before {
  left: 50%;
  width: 50%;
}

.progress-node:last-child::before {
  left: 0;
  width: 50%;
}

.progress-dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.progress-node small {
  overflow: hidden;
  max-width: 100%;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-node.is-done::before {
  background: var(--brand);
}

.progress-node.is-done .progress-dot {
  border-color: var(--brand);
  background: var(--brand);
}

.progress-node.is-current .progress-dot {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.progress-node.is-current small {
  color: var(--brand-strong);
  font-weight: 700;
}

.promise-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

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

.order-number {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resume-button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 11px;
  color: #ffffff;
  background: var(--brand);
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.order-evaluation {
  margin-top: 10px;
  padding: 10px 11px;
  background: #f6f8f8;
  border-left: 3px solid #d59b2d;
  border-radius: 6px;
}

.order-evaluation > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-evaluation span {
  color: var(--muted);
  font-size: 10px;
}

.order-evaluation strong {
  color: #b27611;
  font-size: 13px;
  letter-spacing: 0;
}

.order-evaluation p {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.evaluation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.evaluation-tags span {
  padding: 3px 7px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 5px;
}

.review-heading {
  display: grid;
  gap: 4px;
  padding-right: 34px;
}

.review-heading > span {
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.review-heading h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 19px;
}

.review-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.review-form {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow-y: auto;
}

.review-form > fieldset,
.review-form > label,
.review-form > .review-error {
  margin-right: 16px;
  margin-left: 16px;
}

.review-form fieldset {
  padding: 0;
  border: 0;
}

.review-form fieldset:first-of-type {
  margin-top: 16px;
}

.review-form legend,
.review-copy > span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 700;
}

.review-stars {
  display: flex;
  gap: 6px;
}

.review-stars label {
  display: block;
  cursor: pointer;
}

.review-stars input,
.review-tags input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.review-stars label span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #b7c0c3;
  background: #f4f6f6;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.review-stars label span svg {
  width: 21px;
  height: 21px;
}

.review-stars input:checked + span {
  color: #b27611;
  background: #fff6df;
  border-color: #e9c774;
}

.review-stars input:focus-visible + span,
.review-tags input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.review-tags {
  margin-top: 18px;
}

.review-tags > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.review-tags label {
  cursor: pointer;
}

.review-tags label span {
  display: block;
  padding: 7px 10px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 11px;
}

.review-tags input:checked + span {
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-color: rgba(15, 118, 110, 0.28);
}

.review-copy {
  display: block;
  margin-top: 18px;
}

.review-copy textarea {
  width: 100%;
  min-height: 104px;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
  outline: 0;
  resize: vertical;
}

.review-copy textarea:focus {
  background: #ffffff;
  border-color: rgba(15, 118, 110, 0.38);
}

.review-error {
  min-height: 16px;
  margin-top: 8px;
  margin-bottom: 0;
  color: #b42318;
  font-size: 11px;
}

.review-form .sheet-footer {
  margin-top: 14px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 0 14px;
}

.profile-avatar {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #ffffff;
  background: var(--ink-strong);
  border-radius: 17px 17px 17px 6px;
}

.profile-avatar svg {
  width: 27px;
  height: 27px;
}

.profile-section {
  margin-bottom: 11px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.subsection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.subsection-heading h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 14px;
}

.secure-tag,
.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
}

.secure-tag svg {
  width: 11px;
  height: 11px;
}

.mode-pill.is-ready {
  color: var(--success);
  background: var(--success-soft);
}

.identity-form {
  display: grid;
  gap: 10px;
}

.identity-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.identity-form input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  outline: 0;
}

.identity-form input:focus {
  background: #ffffff;
  border-color: rgba(15, 118, 110, 0.38);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--brand);
  border: 0;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.18);
}

.primary-button.compact {
  min-height: 40px;
  font-size: 13px;
}

.primary-button:disabled,
.secondary-button:disabled,
.resume-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary-button svg {
  width: 17px;
  height: 17px;
}

.compact-steps {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.compact-steps li > span {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 750;
}

.compact-steps strong,
.compact-steps small {
  display: block;
}

.compact-steps strong {
  color: var(--ink);
  font-size: 12px;
}

.compact-steps small {
  color: var(--muted);
  font-size: 10px;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 12px 0 0;
  padding-top: 10px;
  color: var(--muted);
  border-top: 1px solid #edf1f2;
  font-size: 10px;
}

.security-note svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin-top: 1px;
  color: var(--brand);
}

.menu-section {
  padding: 0;
  overflow: hidden;
}

.menu-section button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #edf1f2;
  cursor: pointer;
}

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

.menu-section button > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}

.menu-section svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.menu-section button > span svg {
  color: var(--brand);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: grid;
  width: min(100%, var(--shell-width));
  height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.nav-item {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  padding: 8px 4px 6px;
  color: #7b8990;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-item::before {
  position: absolute;
  top: 0;
  width: 24px;
  height: 3px;
  background: transparent;
  border-radius: 0 0 4px 4px;
  content: "";
}

.nav-item svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.9;
}

.nav-item span {
  font-size: 10px;
}

.nav-item.is-active {
  color: var(--brand-strong);
}

.nav-item.is-active::before {
  background: var(--brand);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(7, 20, 25, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 60;
  display: flex;
  width: min(100%, var(--shell-width));
  max-height: 92dvh;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -16px 50px rgba(7, 20, 25, 0.22);
  transform: translate(-50%, 105%);
  transition: transform 220ms cubic-bezier(0.22, 0.8, 0.25, 1);
  overflow: hidden;
}

.sheet.is-open {
  transform: translate(-50%, 0);
}

.sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: #4d5c63;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(220, 229, 231, 0.9);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.sheet-close svg {
  width: 17px;
  height: 17px;
}

.sheet-hero {
  flex: 0 0 auto;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--line);
}

.sheet-product-summary {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-right: 30px;
}

.sheet-price-lead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.sheet-price-lead > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 4px;
}

.sheet-price-lead span,
.sheet-price-lead small {
  color: var(--muted);
  font-size: 10px;
}

.sheet-price-lead strong {
  color: #d64a2f;
  font-size: 23px;
  line-height: 1;
}

.sheet-price-lead > div:last-child strong {
  color: var(--ink-strong);
  font-size: 15px;
}

.sheet-product-art {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  overflow: hidden;
  background: var(--product-image-bg, #e7f4f1);
  border-radius: var(--product-image-radius, var(--radius-md));
}

.sheet-product-art[data-category="平板电脑"] {
  background: #e8eef5;
}

.sheet-product-art[data-category="办公本"] {
  background: #e7f4ef;
}

.sheet-product-art[data-category="摄影器材"] {
  background: #f5ece5;
}

.sheet-product-art[data-category="游戏设备"] {
  background: #e9edf8;
}

.sheet-product-art svg {
  width: 38px;
  height: 38px;
  color: var(--brand);
  stroke-width: 1.55;
}

.sheet-product-image {
  width: 100%;
  height: 100%;
  object-fit: var(--product-image-fit, cover);
  border-radius: inherit;
  background: var(--product-image-bg, #f6f8fa);
}

.sheet-product-gallery {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 10px 30px 0 0;
  padding-bottom: 2px;
}

.sheet-product-gallery.is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  overflow: visible;
}

.sheet-product-thumb {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--product-image-bg, #f6f8fa);
  cursor: pointer;
}

.sheet-product-thumb.is-active {
  border-color: var(--product-accent, var(--brand));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--product-accent, #0b6b63) 18%, transparent);
}

.sheet-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-product-copy {
  min-width: 0;
}

.sheet-product-copy h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sheet-product-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.sheet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.sheet-tags span {
  padding: 3px 7px;
  color: #58666d;
  background: var(--surface-soft);
  border-radius: 6px;
  font-size: 10px;
}

.sheet-tags span:first-child {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 16px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.merchant-trust {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius-sm);
  background: #f3faf8;
}

.merchant-trust > div:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.merchant-trust strong {
  color: var(--ink-strong);
  font-size: 12px;
}

.merchant-trust small {
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.merchant-trust-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.merchant-trust-metrics span {
  padding: 3px 7px;
  color: var(--brand-strong);
  background: #fff;
  border-radius: 5px;
  font-size: 10px;
}

.sheet-section + .sheet-section {
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid #edf1f2;
}

.sheet-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.sheet-section-title h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 14px;
}

.sheet-section-title span {
  color: var(--muted);
  font-size: 10px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.plan-summary {
  display: grid;
  gap: 2px;
  margin-top: 9px;
  padding: 9px 10px;
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  background: var(--surface-soft);
}

.plan-summary span {
  color: var(--ink-strong);
  font-size: 11px;
  font-weight: 700;
}

.plan-summary small {
  color: var(--muted);
  font-size: 10px;
}

.assurance-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.assurance-strip span {
  padding: 4px 7px;
  color: #50606a;
  background: #f4f6f7;
  border-radius: 5px;
  font-size: 10px;
}

.plan-chip {
  min-width: 0;
  min-height: 52px;
  padding: 5px 4px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.plan-chip strong,
.plan-chip small {
  display: block;
}

.plan-chip strong {
  font-size: 13px;
}

.plan-chip small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.plan-chip.is-active {
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-color: rgba(15, 118, 110, 0.35);
}

.plan-chip.is-active small {
  color: var(--brand-strong);
}

.deposit-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.deposit-mode {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  min-height: 88px;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.deposit-mode > span {
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 700;
}

.deposit-mode > strong {
  color: var(--brand-strong);
  font-size: 11px;
}

.deposit-mode > small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.deposit-mode.is-active {
  background: var(--brand-soft);
  border-color: rgba(15, 118, 110, 0.35);
}

.deposit-mode:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.deposit-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 8px;
  overflow: hidden;
  background: #e7eeee;
  border: 1px solid #e7eeee;
  border-radius: var(--radius-sm);
}

.deposit-breakdown > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  background: #ffffff;
}

.deposit-breakdown span {
  color: var(--muted);
  font-size: 9px;
}

.deposit-breakdown strong {
  color: var(--ink-strong);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.deposit-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.deposit-note svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 1px;
  color: var(--brand);
}

.cost-panel {
  padding: 11px;
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
}

.cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 25px;
  color: var(--muted);
  font-size: 12px;
}

.cost-row strong {
  color: var(--ink);
  font-size: 13px;
}

.cost-row.is-total {
  margin-top: 6px;
  padding-top: 8px;
  color: var(--ink);
  border-top: 1px dashed #cad7d9;
}

.cost-row.is-total strong {
  color: var(--accent);
  font-size: 18px;
}

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

.consent-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #506066;
  font-size: 11px;
  cursor: pointer;
}

.consent-option input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}

.consent-option strong {
  color: var(--ink);
  font-size: 12px;
}

.consent-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.identity-fields {
  display: grid;
  gap: 9px;
}

.identity-fields label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}

.identity-fields input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  outline: 0;
}

.identity-fields input:focus {
  background: #ffffff;
  border-color: rgba(15, 118, 110, 0.38);
}

.sheet-footer {
  flex: 0 0 auto;
  padding: 11px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(25, 50, 57, 0.05);
}

.footer-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.footer-total span {
  color: var(--muted);
  font-size: 11px;
}

.footer-total strong {
  color: var(--accent);
  font-size: 21px;
  line-height: 1;
}

.footer-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.payment-content {
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.payment-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-right: 30px;
}

.payment-title-row h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 19px;
}

.payment-title-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 5px 8px;
  color: var(--warning);
  background: var(--warning-soft);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 650;
}

.mode-badge.is-ready {
  color: var(--success);
  background: var(--success-soft);
}

.mode-badge svg {
  width: 12px;
  height: 12px;
}

.payment-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  background: var(--surface-soft);
  border-radius: var(--radius-md);
}

.payment-order h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.payment-order p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.payment-amount {
  text-align: right;
}

.payment-amount span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.payment-amount strong {
  display: block;
  margin-top: 3px;
  color: var(--accent);
  font-size: 20px;
}

.payment-steps {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.payment-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  min-height: 58px;
}

.payment-step:not(:last-child)::before {
  position: absolute;
  top: 27px;
  left: 13px;
  width: 2px;
  height: 31px;
  background: #e1e8ea;
  content: "";
}

.step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #8c9aa0;
  background: #f0f3f4;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 750;
}

.step-dot svg {
  width: 15px;
  height: 15px;
}

.payment-step.is-done .step-dot {
  color: #ffffff;
  background: var(--brand);
}

.payment-step.is-running .step-dot {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.payment-step.is-error .step-dot {
  color: var(--danger);
  background: var(--danger-soft);
}

.payment-step.is-running .step-dot svg {
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.step-copy {
  min-width: 0;
  padding-top: 2px;
}

.step-copy strong,
.step-copy small {
  display: block;
}

.step-copy strong {
  color: var(--ink);
  font-size: 13px;
}

.step-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.payment-notice {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  padding: 10px;
  color: #58666d;
  background: #f5f8f8;
  border-radius: var(--radius-sm);
  font-size: 10px;
}

.payment-notice svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--brand);
}

.payment-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.ghost-button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-weight: 650;
  cursor: pointer;
}

.success-panel {
  margin-top: 16px;
  padding: 15px;
  color: var(--success);
  background: var(--success-soft);
  border-radius: var(--radius-md);
  text-align: center;
}

.success-panel svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 6px;
}

.success-panel strong {
  display: block;
  color: #12642f;
  font-size: 15px;
}

.success-panel p {
  margin: 4px 0 0;
  color: #417653;
  font-size: 11px;
}

.loading-block,
.empty-state,
.error-state {
  display: grid;
  min-height: 180px;
  padding: 24px 18px;
  place-items: center;
  text-align: center;
}

.empty-state,
.error-state {
  align-content: center;
}

.state-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 18px;
}

.state-icon svg {
  width: 26px;
  height: 26px;
}

.empty-state h3,
.error-state h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 15px;
}

.empty-state p,
.error-state p {
  max-width: 260px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.state-action {
  min-height: 38px;
  margin-top: 12px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--brand);
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 650;
  cursor: pointer;
}

.error-state .state-icon {
  color: var(--danger);
  background: var(--danger-soft);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.skeleton-card {
  min-height: 244px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.skeleton-art,
.skeleton-line {
  background: linear-gradient(100deg, #edf2f2 25%, #f8faf9 42%, #edf2f2 60%);
  background-size: 220% 100%;
  animation: shimmer 1.25s infinite;
}

.skeleton-art {
  height: 126px;
}

.skeleton-line {
  height: 11px;
  margin: 12px 10px 0;
  border-radius: 6px;
}

.skeleton-line.short {
  width: 58%;
}

.skeleton-line.price {
  width: 42%;
  height: 18px;
  margin-top: 18px;
}

@keyframes shimmer {
  to {
    background-position-x: -220%;
  }
}

.sheet-loading {
  display: grid;
  min-height: 330px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.sheet-loading svg {
  width: 24px;
  height: 24px;
  margin: 0 auto 8px;
  color: var(--brand);
  animation: spin 900ms linear infinite;
}

.toast-region {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height) + 22px + env(safe-area-inset-bottom));
  z-index: 100;
  display: grid;
  width: min(calc(100% - 32px), 398px);
  gap: 7px;
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(16, 31, 37, 0.94);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(7, 20, 25, 0.22);
  font-size: 12px;
  animation: toast-in 160ms ease-out;
}

.toast.is-error {
  background: rgba(154, 38, 38, 0.96);
}

.toast.is-success {
  background: rgba(17, 111, 53, 0.96);
}

.toast svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(25, 50, 57, 0.1);
  }

  .icon-button:hover,
  .search-clear:hover,
  .secondary-button:hover {
    border-color: #c6d4d7;
  }
}

@media (min-width: 700px) {
  body {
    padding: 18px 0;
  }

  .app-shell {
    min-height: calc(100dvh - 36px);
    border-radius: 22px;
    overflow: clip;
  }

  .bottom-nav {
    bottom: 18px;
    border-radius: 0 0 22px 22px;
  }

  .app-header {
    border-radius: 22px 22px 0 0;
  }

  .sheet {
    bottom: 18px;
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 360px) {
  .app-header,
  .app-main {
    padding-right: 12px;
    padding-left: 12px;
  }

  .category-strip {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand-copy h1 {
    font-size: 20px;
  }

  .product-art {
    height: 116px;
  }

  .product-body {
    padding-right: 8px;
    padding-left: 8px;
  }

  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deposit-mode-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* 会员中心 */
.member-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.member-stats > div {
  background: #f5f8fc;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}

.member-stats strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  color: #1f4d8f;
}

.member-stats small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #6b7a90;
}

.coin-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.coin-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 13px;
  color: #45536b;
}

.coin-list li:last-child {
  border-bottom: 0;
}

.coin-list li strong {
  color: #1f4d8f;
}

.coin-list li.is-empty {
  color: #8a97a8;
}

/* 惠租式排序条 + 商品卡标签（消费者端） */
.sort-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 2px 4px;
}

.sort-chip {
  padding: 6px 12px;
  border: 1px solid rgba(20, 32, 48, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #3d4a5c;
  font-size: 13px;
  line-height: 1.2;
}

.sort-chip.is-active {
  border-color: var(--brand, #ff5a1f);
  color: var(--brand, #ff5a1f);
  font-weight: 600;
}

.sort-bar.is-secondary {
  padding-top: 0;
}

.sort-label {
  align-self: center;
  min-width: 28px;
  color: #8a97a8;
  font-size: 12px;
}

.product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 2px;
}

.product-chip {
  padding: 2px 7px;
  border: 1px solid rgba(255, 90, 31, 0.28);
  border-radius: 4px;
  background: rgba(255, 90, 31, 0.06);
  color: #e04a12;
  font-size: 11px;
  line-height: 1.6;
}

.product-fans {
  margin-top: 6px;
  color: #8a97a8;
  font-size: 12px;
}

.cost-row.is-note strong {
  font-weight: 500;
  color: #8a97a8;
  font-size: 12px;
}

.payment-cost-panel {
  margin: 12px 0;
}

.consumer-onboarding-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.consumer-onboarding-status > div {
  min-width: 0;
  padding: 10px;
  background: #f7f9fc;
  border: 1px solid #e5eaf2;
  border-radius: 6px;
}

.consumer-onboarding-status span,
.consumer-onboarding-status strong {
  display: block;
}

.consumer-onboarding-status span {
  color: #667085;
  font-size: 10px;
}

.consumer-onboarding-status strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #1d2939;
  font-size: 12px;
}

.consumer-onboarding-list {
  display: grid;
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  background: #e5eaf2;
  border: 1px solid #e5eaf2;
  border-radius: 6px;
}

.consumer-onboarding-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  background: #fff;
  font-size: 12px;
}

.consumer-onboarding-list strong.is-success {
  color: #067647;
}

.consumer-onboarding-list strong.is-danger {
  color: #b42318;
}

.consumer-onboarding-list strong.is-pending {
  color: #9a5b00;
}

.consumer-onboarding-uploads {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.consumer-onboarding-uploads label {
  display: grid;
  gap: 5px;
  padding: 10px;
  color: #344054;
  background: #f8fafc;
  border: 1px dashed #cdd5df;
  border-radius: 6px;
  font-size: 12px;
}

.consumer-onboarding-uploads input {
  min-width: 0;
  font-size: 11px;
}

.consumer-onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.consumer-onboarding-blockers {
  margin-top: 12px;
  padding: 10px 12px;
  color: #912018;
  background: #fff3f1;
  border-left: 3px solid #d92d20;
  border-radius: 4px;
}

.consumer-onboarding-blockers p {
  margin: 4px 0;
  font-size: 11px;
  line-height: 1.45;
}

.consumer-onboarding-blockers strong {
  display: block;
}

.order-onboarding-ready {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  color: #067647;
  font-size: 12px;
}

.order-onboarding-ready svg {
  width: 15px;
  height: 15px;
}

.resume-button.secondary {
  color: var(--brand-strong);
  background: #ffffff;
  border-color: rgba(15, 118, 110, 0.28);
}

.lifecycle-sheet {
  max-height: 94dvh;
}

.lifecycle-body {
  display: grid;
  align-content: start;
  gap: 12px;
}

.lifecycle-back {
  justify-self: start;
  padding: 0;
}

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

.lifecycle-action-grid > button {
  display: grid;
  min-width: 0;
  min-height: 96px;
  align-content: start;
  gap: 5px;
  padding: 13px;
  color: var(--ink);
  text-align: left;
  background: #f7f9f9;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.lifecycle-action-grid > button:hover,
.lifecycle-action-grid > button:focus-visible {
  background: var(--brand-soft);
  border-color: rgba(15, 118, 110, 0.24);
  outline: 0;
}

.lifecycle-action-grid svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
}

.lifecycle-action-grid strong {
  font-size: 13px;
}

.lifecycle-action-grid small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.lifecycle-form {
  display: grid;
  gap: 12px;
}

.lifecycle-form > label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.lifecycle-form input,
.lifecycle-form select,
.lifecycle-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: #f7f9f9;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 12px;
  outline: 0;
}

.lifecycle-form textarea {
  min-height: 90px;
  resize: vertical;
}

.lifecycle-form input:focus,
.lifecycle-form select:focus,
.lifecycle-form textarea:focus {
  background: #ffffff;
  border-color: rgba(15, 118, 110, 0.38);
}

.lifecycle-quote {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: #e4ebeb;
  border: 1px solid #e4ebeb;
  border-radius: var(--radius-sm);
}

.lifecycle-quote > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 10px;
  background: #ffffff;
}

.lifecycle-quote span {
  color: var(--muted);
  font-size: 9px;
}

.lifecycle-quote strong {
  color: var(--ink-strong);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.lifecycle-request {
  padding: 11px 12px;
  background: #f7f9f9;
  border-left: 3px solid var(--brand);
  border-radius: 5px;
}

.lifecycle-request > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lifecycle-request strong {
  color: var(--ink-strong);
  font-size: 12px;
}

.lifecycle-request p,
.lifecycle-request small {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.security-note.compact {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 360px) {
  .lifecycle-quote {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ruichuang-order-hero {
  background: #ffffff;
}

.ruichuang-order-body {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: #f3f5f7;
}

.rent-date-axis,
.order-merchant-card,
.order-money-card,
.order-detail-section,
.order-shortcuts {
  margin: 0;
  background: #ffffff;
  border: 1px solid #edf0f2;
  border-radius: 8px;
}

.rent-date-axis {
  padding: 14px 12px 12px;
}

.rent-date-head,
.order-money-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rent-date-head > div,
.order-money-head > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.rent-date-head strong,
.order-money-head span {
  color: #20252b;
  font-size: 14px;
  font-weight: 700;
}

.rent-date-head small,
.order-money-head small {
  color: #858c94;
  font-size: 10px;
}

.rent-date-head > span {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: #2676e8;
  background: #edf5ff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.rent-date-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.rent-date-rail::before {
  position: absolute;
  top: 6px;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  background: #dce2e8;
  content: "";
}

.rent-date-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  min-width: 0;
  gap: 4px;
  text-align: center;
}

.rent-date-node i {
  width: 12px;
  height: 12px;
  background: #ffffff;
  border: 2px solid #9eb5d5;
  border-radius: 50%;
}

.rent-date-node:nth-child(2) i,
.rent-date-node:nth-child(3) i {
  background: #2676e8;
  border-color: #2676e8;
}

.rent-date-node strong {
  color: #5b626a;
  font-size: 10px;
  font-weight: 650;
}

.rent-date-node small {
  color: #262c33;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.order-merchant-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.order-merchant-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: #1f6fd8;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.order-merchant-card > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.order-merchant-card strong {
  color: #20252b;
  font-size: 13px;
}

.order-merchant-card small {
  color: #858c94;
  font-size: 10px;
  line-height: 1.45;
}

.order-merchant-tag {
  padding: 4px 7px;
  color: #2676e8;
  background: #edf5ff;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
}

.order-money-card {
  padding: 13px 12px 7px;
}

.order-money-head {
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f2f4;
}

.order-money-head > strong {
  color: #1f2933;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.order-money-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  color: #5f6670;
  border-bottom: 1px solid #f4f5f6;
  font-size: 11px;
}

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

.order-money-row strong {
  color: #22282f;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.order-sku-human p {
  margin: 0;
  color: #4f5660;
  font-size: 11px;
  line-height: 1.6;
}

.order-shortcuts {
  padding: 13px 12px;
}

.order-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.order-shortcut-grid > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 10px;
  background: #f6f8fa;
  border-radius: 6px;
}

.order-shortcut-grid span {
  color: #858c94;
  font-size: 9px;
}

.order-shortcut-grid strong {
  color: #252b32;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 360px) {
  .order-shortcut-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-merchant-card {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .order-merchant-tag {
    display: none;
  }
}
