:root {
  --ink: #17251d;
  --ink-2: #43554a;
  --muted: #86958c;
  --line: #e7ece8;
  --card: #ffffff;
  --bg: #f4f6f2;
  --green-950: #09251a;
  --green-900: #0d3223;
  --green-800: #124a34;
  --green-700: #176a4c;
  --green-600: #1e8460;
  --green-100: #e6f4ec;
  --green-50: #f1f9f4;
  --amber: #b87910;
  --amber-bg: #fff4de;
  --blue: #2d66c4;
  --blue-bg: #eaf2ff;
  --violet: #6750c7;
  --violet-bg: #f1edff;
  --red: #be4b40;
  --red-bg: #ffefed;
  --radius: 17px;
  --font: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --shadow: 0 8px 26px rgba(16, 47, 32, 0.06);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #edf1ed;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.sheet-open {
  overflow: hidden;
}

#app {
  position: relative;
  width: min(100%, 540px);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--bg);
  box-shadow: 0 0 48px rgba(18, 45, 31, 0.08);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

.icon {
  flex: none;
  vertical-align: middle;
}

::selection {
  background: #bfe5d1;
}

.spinner {
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(29, 118, 85, 0.16);
  border-top-color: var(--green-600);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-sm {
  width: 13px;
  height: 13px;
  border-width: 1.6px;
}

.spinner-white {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
}

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

/* ---------- common ---------- */
.page {
  min-height: 100vh;
  padding-bottom: 26px;
}

.has-tabbar .page {
  padding-bottom: 85px;
}

.mobile-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(228, 235, 230, 0.8);
  background: rgba(250, 252, 249, 0.92);
  backdrop-filter: blur(14px);
}

.mobile-head h1 {
  flex: 1;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.head-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: -6px;
  border: 0;
  border-radius: 9px;
  color: #43564a;
  background: transparent;
}

.head-back:active {
  background: #eaf0eb;
}

.head-action {
  padding: 6px 11px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  color: var(--green-700);
  background: #fff;
  font-size: 11px;
  font-weight: 600;
}

.content {
  padding: 16px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 2px 11px;
}

.section-head h2 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.section-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.section-head .count {
  color: var(--muted);
  font-size: 10px;
}

.card {
  border: 1px solid rgba(227, 234, 228, 0.9);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  transition: transform 0.1s, background 0.16s, opacity 0.16s;
}

.btn:active {
  transform: scale(0.985);
}

.btn:disabled {
  opacity: 0.55;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1d7d5a, #145d43);
  box-shadow: 0 6px 16px rgba(20, 93, 67, 0.2);
}

.btn-ghost {
  border-color: #dce7df;
  color: #42564a;
  background: #fff;
}

.btn-soft {
  color: var(--green-700);
  border-color: #d6e9de;
  background: var(--green-50);
}

.btn-danger {
  color: var(--red);
  border-color: #f0d4d1;
  background: #fff;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 11px;
}

.link {
  color: var(--green-700);
  font-weight: 600;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #45574b;
  font-size: 12px;
  font-weight: 600;
}

.field .required {
  color: #c44c40;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #dce5de;
  border-radius: 11px;
  color: var(--ink);
  background: #fbfcfa;
  outline: none;
  transition: 0.18s;
}

.textarea {
  min-height: 86px;
  resize: none;
}

.input::placeholder,
.textarea::placeholder {
  color: #a8b2ab;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: #73bb98;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 132, 96, 0.09);
}

.select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2386958c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.field-hint {
  color: #8f9c94;
  font-size: 10px;
  line-height: 1.55;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.form-stack {
  display: grid;
  gap: 15px;
}

.input-wrap {
  position: relative;
}

.input-wrap .lead-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  color: #95a29a;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-wrap .input {
  padding-left: 40px;
}

.input-wrap .trail-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  min-width: 74px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: var(--green-700);
  background: var(--green-50);
  font-size: 11px;
  font-weight: 600;
  transform: translateY(-50%);
}

.input-wrap .trail-btn:disabled {
  color: #9aa79f;
  background: #f2f5f3;
}

.input-wrap .input.has-trail {
  padding-right: 88px;
}

/* ---------- status ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.status i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.status-amber { color: var(--amber); background: var(--amber-bg); }
.status-blue { color: var(--blue); background: var(--blue-bg); }
.status-violet { color: var(--violet); background: var(--violet-bg); }
.status-green { color: #187453; background: #e7f5ed; }
.status-gray { color: #6d7a72; background: #eff3f0; }
.status-red { color: var(--red); background: var(--red-bg); }

/* ---------- login ---------- */
.login-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(400px 280px at 100% -8%, rgba(79, 167, 130, 0.2), transparent 68%),
    linear-gradient(180deg, #0c2b1f 0%, #123e2c 33%, #f1f5f0 33.1%, #f1f5f0 100%);
}

.login-hero {
  position: relative;
  z-index: 1;
  padding: max(26px, env(safe-area-inset-top)) 24px 42px;
  color: #eefaf3;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #f0fbf5;
  background: linear-gradient(145deg, #3cba88, #176a4b);
  font-size: 17px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.login-brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.login-brand span {
  display: block;
  color: rgba(205, 233, 218, 0.48);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.login-hero h1 {
  margin-top: 28px;
  max-width: 300px;
  font-size: 34px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.login-hero h1 em {
  color: #7bd1a9;
  font-style: normal;
}

.login-hero p {
  margin-top: 10px;
  color: rgba(215, 240, 227, 0.58);
  font-size: 12px;
}

.login-visual {
  position: absolute;
  right: 20px;
  bottom: 26px;
  width: 114px;
  height: 86px;
}

.login-visual span {
  position: absolute;
  border: 1px solid rgba(173, 231, 202, 0.15);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.login-visual span:nth-child(1) {
  width: 76px;
  height: 58px;
  right: 0;
  bottom: 5px;
  transform: rotate(5deg);
}

.login-visual span:nth-child(2) {
  width: 54px;
  height: 42px;
  left: 0;
  top: 4px;
  transform: rotate(-7deg);
}

.login-visual span:nth-child(3) {
  width: 44px;
  height: 33px;
  right: 23px;
  top: 0;
}

.auth-panel {
  position: relative;
  z-index: 2;
  margin: -18px 14px 0;
  padding: 20px 20px 24px;
  border: 1px solid rgba(228, 235, 229, 0.9);
  border-radius: 22px 22px 18px 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(7, 33, 21, 0.14);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: #f2f6f3;
}

.auth-tab {
  min-height: 39px;
  border: 0;
  border-radius: 8px;
  color: #7f8d85;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

.auth-tab.active {
  color: var(--green-900);
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 54, 37, 0.08);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.auth-form .btn-primary {
  min-height: 48px;
  margin-top: 4px;
}

.auth-title {
  margin: 19px 2px 0;
}

.auth-title h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.auth-title p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.captcha-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.captcha-row .input {
  flex: 1 1 auto;
  min-width: 0;
}

.captcha-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 46px;
  padding: 2px;
  flex: 0 0 112px;
  overflow: hidden;
  border: 1px solid #dce5de;
  border-radius: 11px;
  background: #f3f8f4;
}

.captcha-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 360px) {
  .captcha-image {
    width: 98px;
    height: 44px;
    flex-basis: 98px;
  }
}

.dev-code {
  display: none;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 11px;
  border: 1px dashed #dbcd9d;
  border-radius: 9px;
  color: #876614;
  background: #fff9e9;
  font-size: 10px;
  line-height: 1.6;
}

.dev-code.show {
  display: flex;
}

.dev-code strong {
  font-size: 12px;
  letter-spacing: 0.1em;
}

.auth-error {
  display: none;
  align-items: flex-start;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid #f2d2ce;
  border-radius: 9px;
  color: #a54136;
  background: #fff5f3;
  font-size: 11px;
}

.auth-error.show {
  display: flex;
}

.agreement {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #8c9991;
  font-size: 9px;
  line-height: 1.6;
}

.agreement input {
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  accent-color: var(--green-600);
}

.auth-foot {
  margin: 22px 0 0;
  color: #a3ada7;
  font-size: 9px;
  text-align: center;
}

.login-switch {
  margin-top: 16px;
  color: #8b9890;
  font-size: 11px;
  text-align: center;
}

.login-switch button {
  border: 0;
  color: var(--green-700);
  background: none;
  font-size: 11px;
  font-weight: 600;
}

/* ---------- home ---------- */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: max(17px, env(safe-area-inset-top)) 18px 42px;
  color: #effaf4;
  background:
    radial-gradient(360px 230px at 96% 0%, rgba(74, 186, 137, 0.25), transparent 65%),
    linear-gradient(140deg, #0b291d 0%, #11412d 100%);
  border-radius: 0 0 24px 24px;
}

.home-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -115px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(173, 230, 201, 0.12);
  border-radius: 50%;
}

.home-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.home-brand .brand-mark {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  font-size: 15px;
}

.home-brand strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.home-brand span {
  display: block;
  color: rgba(197, 229, 212, 0.5);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.home-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(193, 235, 214, 0.18);
  border-radius: 50%;
  color: #dff5e8;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 600;
}

.home-greeting {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

.home-greeting .kicker {
  color: #82d4aa;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.home-greeting h1 {
  margin-top: 5px;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.home-greeting h1 em {
  color: #7dd2a8;
  font-style: normal;
}

.home-stat-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.home-stat-row div {
  display: grid;
  gap: 1px;
}

.home-stat-row strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-stat-row span {
  color: rgba(199, 229, 213, 0.48);
  font-size: 9px;
}

.flow-card {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin: -26px 16px 0;
  padding: 13px 12px;
  border: 1px solid rgba(227, 235, 228, 0.9);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(12, 42, 27, 0.09);
}

.flow-step {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #5f7167;
  font-size: 9px;
  text-align: center;
}

.flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  color: var(--green-700);
  background: var(--green-50);
}

.flow-arrow {
  color: #c4d1c9;
  font-size: 10px;
}

.products {
  padding: 4px 16px 4px;
}

.product-card {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(227, 234, 228, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(16, 47, 32, 0.035);
}

.product-card + .product-card {
  margin-top: 10px;
}

.product-card .thumb {
  width: 92px;
  height: 100px;
  border-radius: 12px;
}

.product-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  padding-right: 54px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-sku {
  margin-top: 2px;
  overflow: hidden;
  color: #8c9991;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 7px;
  border-radius: 5px;
  color: #a37317;
  background: #fff8e8;
  font-size: 8px;
}

.stock-pill.sold-out {
  color: #8b9790;
  background: #f1f4f2;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 9px;
}

.product-price strong {
  color: var(--green-800);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.product-price span {
  color: #8f9b94;
  font-size: 9px;
}

.product-price del {
  color: #a3ada7;
  font-size: 9px;
}

.income-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 3px;
  color: #779083;
  font-size: 9px;
}

.income-line b {
  color: #c1811c;
  font-size: 12px;
  font-weight: 650;
}

.product-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 9px;
}

.product-action small {
  color: #98a49d;
  font-size: 8px;
}

.order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 29px;
  padding: 5px 11px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green-700);
  font-size: 10px;
  font-weight: 600;
}

.order-btn.disabled {
  color: #909d95;
  background: #eef2ef;
  pointer-events: none;
}

.notice-strip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 13px 16px 0;
  padding: 11px 12px;
  border: 1px solid #e6ece7;
  border-radius: 10px;
  color: #839087;
  background: #fafcfa;
  font-size: 9px;
  line-height: 1.65;
}

.notice-strip .icon {
  margin-top: 1px;
  color: var(--green-600);
}

.thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
  object-fit: cover;
  border-radius: 10px;
  background: #f0f5f1;
}

.thumb-fallback {
  color: #5c8a70;
  background:
    radial-gradient(60px 60px at 30% 20%, #e0f1e6, transparent 70%),
    linear-gradient(140deg, #edf7f0, #e2eee6);
  font-size: 22px;
  font-weight: 700;
}

/* ---------- orders ---------- */
.status-tabs {
  position: sticky;
  top: 0;
  z-index: 19;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(229, 235, 230, 0.7);
  background: rgba(247, 249, 246, 0.94);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.status-tabs::-webkit-scrollbar {
  display: none;
}

.status-tab {
  min-height: 31px;
  padding: 5px 12px;
  border: 1px solid #e0e8e2;
  border-radius: 999px;
  color: #77867d;
  background: #fff;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.status-tab.active {
  border-color: var(--green-700);
  color: #fff;
  background: var(--green-700);
}

.order-list {
  padding: 13px 16px 0;
}

.order-card {
  padding: 14px;
  border: 1px solid rgba(227, 234, 228, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(16, 47, 32, 0.04);
}

.order-card + .order-card {
  margin-top: 11px;
}

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f4f1;
}

.order-head .order-no {
  color: #6f7d75;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: -0.01em;
}

.order-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 10px;
}

.order-product .thumb {
  width: 51px;
  height: 51px;
  border-radius: 10px;
}

.order-product .meta {
  min-width: 0;
  flex: 1;
}

.order-product h3 {
  overflow: hidden;
  color: #2b3c32;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-product p {
  margin-top: 2px;
  color: #8e9a93;
  font-size: 9px;
}

.order-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 0;
  border-top: 1px dashed #e9eeeb;
  border-bottom: 1px dashed #e9eeeb;
}

.order-metrics div {
  display: grid;
  gap: 2px;
}

.order-metrics span {
  color: #96a19a;
  font-size: 8px;
}

.order-metrics strong {
  color: #384a40;
  font-size: 11px;
  font-weight: 600;
}

.order-metrics .income {
  color: #bd7c19;
}

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

.order-foot .hint {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #98a49d;
  font-size: 8px;
}

.order-foot .hint .icon {
  color: var(--green-600);
}

/* ---------- order create ---------- */
.create-content {
  padding: 14px 16px 110px;
}

.selected-product {
  display: flex;
  gap: 12px;
  padding: 13px;
  border-radius: 15px;
  background:
    radial-gradient(240px 150px at 100% 0%, rgba(72, 161, 123, 0.11), transparent 70%),
    #fff;
  border: 1px solid #e3ebe5;
}

.selected-product .thumb {
  width: 72px;
  height: 82px;
}

.selected-product .meta {
  min-width: 0;
  flex: 1;
}

.selected-product h3 {
  font-size: 14px;
  font-weight: 650;
}

.selected-product p {
  margin-top: 3px;
  color: #87958c;
  font-size: 10px;
}

.selected-product .price {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: 4px;
}

.selected-product .price strong {
  color: var(--green-800);
  font-size: 17px;
}

.selected-product .price span {
  color: #96a29b;
  font-size: 9px;
}

.form-card {
  padding: 15px;
  border: 1px solid #e3ebe5;
  border-radius: 15px;
  background: #fff;
  margin-top: 12px;
}

.form-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.form-card-title h3 {
  font-size: 13px;
  font-weight: 650;
}

.form-card-title span {
  color: #94a098;
  font-size: 9px;
}

.upload-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  min-height: 97px;
  border: 1.5px dashed #c9dcd0;
  border-radius: 12px;
  color: #87978d;
  background: #f8fbf9;
  font-size: 10px;
  overflow: hidden;
}

.upload-shot img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.upload-shot .icon {
  color: #77a68e;
}

.estimate-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  margin-top: 12px;
  border: 1px solid #efe1c0;
  border-radius: 11px;
  color: #886a25;
  background: #fffaf0;
  font-size: 10px;
}

.estimate-box strong {
  color: #b77a12;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.fixed-submit {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 25;
  width: min(100%, 540px);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(226, 234, 227, 0.92);
  background: rgba(252, 253, 251, 0.94);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.fixed-submit .btn {
  min-height: 47px;
}

.fixed-submit .submit-note {
  margin-top: 5px;
  color: #9aa69f;
  font-size: 8px;
  text-align: center;
}

.product-loading {
  padding: 20px;
}

/* ---------- profile ---------- */
.profile-hero {
  position: relative;
  overflow: hidden;
  padding: max(20px, env(safe-area-inset-top)) 20px 55px;
  color: #effaf4;
  background:
    radial-gradient(360px 240px at 96% 0%, rgba(72, 181, 134, 0.23), transparent 66%),
    linear-gradient(145deg, #0a281c, #12412d);
  border-radius: 0 0 26px 26px;
}

.profile-hero::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -120px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(167, 227, 198, 0.11);
  border-radius: 50%;
}

.profile-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(223, 242, 231, 0.7);
  font-size: 10px;
}

.profile-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 28px;
}

.profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 57px;
  height: 57px;
  flex: none;
  border: 2px solid rgba(198, 238, 217, 0.24);
  border-radius: 17px;
  color: #e9f9ef;
  background: linear-gradient(145deg, #36ab7d, #145a3f);
  font-size: 21px;
  font-weight: 650;
}

.profile-main h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.profile-main p {
  margin-top: 3px;
  color: rgba(204, 233, 217, 0.58);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.profile-overview {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: -35px 16px 0;
  padding: 15px 6px;
  border: 1px solid rgba(226, 234, 227, 0.9);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(12, 42, 27, 0.09);
}

.profile-overview div {
  display: grid;
  justify-items: center;
  gap: 3px;
  border-right: 1px solid #edf1ee;
}

.profile-overview div:last-child {
  border-right: 0;
}

.profile-overview strong {
  color: var(--green-800);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.profile-overview span {
  color: #93a098;
  font-size: 8px;
}

.profile-body {
  padding: 17px 16px 30px;
}

.menu-card {
  overflow: hidden;
  border: 1px solid rgba(227, 234, 228, 0.9);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(16, 47, 32, 0.03);
}

.menu-card + .menu-card {
  margin-top: 12px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #f0f4f1;
  color: #3f5246;
  background: #fff;
  font-size: 12px;
  text-align: left;
}

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

.menu-item:active {
  background: #f9fbf9;
}

.menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  flex: none;
  border-radius: 9px;
  color: var(--green-700);
  background: var(--green-50);
}

.menu-item span.menu-text {
  flex: 1;
}

.menu-item span.menu-sub {
  color: #9ca79f;
  font-size: 9px;
}

.menu-item .chevron {
  color: #c1ccc4;
}

.menu-item.danger {
  color: #b0463d;
}

.menu-item.danger .menu-icon {
  color: #b0463d;
  background: #fff2f0;
}

.profile-tip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 12px;
  border-radius: 11px;
  color: #8b9890;
  background: #f9fbf9;
  font-size: 9px;
  line-height: 1.7;
}

.profile-tip .icon {
  margin-top: 1px;
  color: var(--green-600);
}

.version {
  margin-top: 20px;
  color: #a7b1ab;
  font-size: 8px;
  text-align: center;
  letter-spacing: 0.04em;
}

.douyin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2ef;
}

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

.douyin-row .meta {
  flex: 1;
  min-width: 0;
}

.douyin-row strong {
  display: block;
  font-size: 12px;
}

.douyin-row small {
  display: block;
  margin-top: 1px;
  color: #929f97;
  font-size: 9px;
}

/* ---------- tabbar ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 540px);
  padding: 7px 14px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(226, 234, 227, 0.92);
  background: rgba(253, 254, 252, 0.96);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  color: #95a29a;
  font-size: 8px;
}

.tab-item .icon {
  color: #9da9a1;
}

.tab-item.active {
  color: var(--green-800);
  font-weight: 600;
}

.tab-item.active .icon {
  color: var(--green-700);
}

/* ---------- sheet / toast / empty ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(7, 25, 16, 0.42);
  opacity: 0;
  transition: opacity 0.2s;
}

.sheet-backdrop.show {
  opacity: 1;
}

.sheet {
  width: min(100%, 540px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 20px 20px 0 0;
  background: #fff;
  transform: translateY(14px);
  transition: transform 0.22s;
  padding-bottom: env(safe-area-inset-bottom);
}

.sheet-backdrop.show .sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 34px;
  height: 4px;
  margin: 8px auto 2px;
  border-radius: 99px;
  background: #e1e8e3;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px 12px;
  border-bottom: 1px solid #edf2ee;
}

.sheet-head h3 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.sheet-head p {
  margin-top: 2px;
  color: #96a29b;
  font-size: 9px;
}

.sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: -3px -6px 0 0;
  border: 0;
  border-radius: 8px;
  color: #86958c;
  background: #f4f7f4;
}

.sheet-body {
  overflow-y: auto;
  padding: 16px 18px;
}

.sheet-foot {
  display: flex;
  gap: 8px;
  padding: 11px 18px calc(11px + env(safe-area-inset-bottom));
  border-top: 1px solid #edf2ee;
}

.sheet-foot .btn {
  flex: 1;
  min-height: 42px;
}

.sheet-confirm-text {
  padding: 4px 0 8px;
  color: #4b5d51;
  font-size: 12px;
  line-height: 1.75;
}

.sheet-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.sheet-detail-grid div {
  padding: 9px 0;
  border-bottom: 1px solid #eff3f0;
}

.sheet-detail-grid span {
  display: block;
  color: #97a29b;
  font-size: 9px;
}

.sheet-detail-grid strong {
  display: block;
  margin-top: 2px;
  color: #3b4d42;
  font-size: 11px;
  font-weight: 500;
  word-break: break-word;
}

.h5-toast-root {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: min(calc(100% - 32px), 410px);
  transform: translateX(-50%);
  pointer-events: none;
}

.h5-toast {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #ecfaf3;
  background: rgba(13, 46, 32, 0.94);
  box-shadow: 0 10px 28px rgba(8, 29, 19, 0.22);
  font-size: 11px;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.2s;
}

.h5-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.h5-toast.error {
  background: rgba(143, 54, 44, 0.96);
}

.h5-toast .icon {
  color: #8be1b8;
}

.h5-toast.error .icon {
  color: #ffd0ca;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border-radius: 17px;
  color: #80a590;
  background: #edf5f0;
}

.empty strong {
  color: #5e7065;
  font-size: 12px;
}

.empty p {
  max-width: 240px;
  margin-top: 4px;
  color: #9aa59e;
  font-size: 9px;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 60px 20px;
  color: #8d9a92;
  font-size: 11px;
}

/* ---------- responsive ---------- */
@media (min-width: 541px) {
  body {
    padding: 20px 0;
  }

  #app {
    min-height: calc(100vh - 40px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(14, 44, 29, 0.14);
  }

  .tabbar,
  .fixed-submit {
    bottom: 20px;
  }
}

@media (max-width: 360px) {
  .login-hero h1 {
    font-size: 30px;
  }

  .content,
  .products,
  .order-list,
  .create-content,
  .profile-body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .product-card .thumb {
    width: 78px;
    height: 92px;
  }
}

/* 平台收货地址提示 */
.ship-card {
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #d8e8de;
  border-radius: 15px;
  background: linear-gradient(145deg, #f2fbf6, #ffffff);
  box-shadow: 0 4px 16px rgba(16, 47, 32, 0.04);
}

.ship-card.missing {
  border-color: #f0d6a8;
  background: #fffaf0;
}

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

.ship-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  color: #146b4b;
  background: #ddf3e6;
  font-size: 10px;
  font-weight: 600;
}

.ship-copy {
  border: 0;
  color: var(--green-700);
  background: transparent;
  font-size: 10px;
  font-weight: 600;
}

.ship-card strong {
  display: block;
  color: #2b4035;
  font-size: 13px;
}

.ship-card p {
  margin-top: 4px;
  color: #53665a;
  font-size: 11px;
  line-height: 1.65;
}

.ship-warning {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #cfe4d7;
  color: #a06a17;
  font-size: 9px;
  line-height: 1.6;
}

/* 钱包 */
.wallet-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 20px;
  border-radius: 18px;
  color: #effaf4;
  background:
    radial-gradient(280px 180px at 95% 0%, rgba(100, 211, 160, 0.26), transparent 65%),
    linear-gradient(140deg, #0b2b1e, #14543a);
  box-shadow: 0 10px 28px rgba(12, 45, 30, 0.16);
}

.wallet-hero span {
  color: rgba(214, 240, 226, 0.62);
  font-size: 10px;
}

.wallet-hero strong {
  display: block;
  margin-top: 5px;
  font-size: 33px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.wallet-hero p {
  margin-top: 4px;
  color: rgba(208, 237, 222, 0.55);
  font-size: 10px;
}

.wallet-record {
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid #e3ebe5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 47, 32, 0.035);
}

.wallet-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wallet-record-head strong {
  overflow: hidden;
  color: #3b4e43;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-amount {
  color: #c1811c;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.wallet-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
  color: #96a29b;
  font-size: 9px;
}

.wallet-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #e6ede8;
}

.wallet-split span {
  display: block;
  color: #97a39b;
  font-size: 8px;
}

.wallet-split strong {
  display: block;
  margin-top: 1px;
  color: #3f5247;
  font-size: 11px;
}

.wallet-split strong.income {
  color: #bd7c19;
}

.wallet-note {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #8b9890;
  background: #f8faf8;
  font-size: 9px;
  line-height: 1.7;
}

/* 首页待处理提醒 */
.reminder-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reminder-block {
  display: flex;
  gap: 10px;
  padding: 13px;
  border: 1px solid #e6ede8;
  border-radius: 12px;
  background: #fbfdfb;
}

.reminder-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.reminder-icon.amber {
  color: #a46b13;
  background: #fbf1dc;
}

.reminder-icon.red {
  color: #b0463d;
  background: #fbe9e6;
}

.reminder-block strong {
  display: block;
  color: #33473b;
  font-size: 12px;
  line-height: 1.5;
}

.reminder-block p {
  margin-top: 3px;
  color: #86948b;
  font-size: 10px;
  line-height: 1.65;
}

/* 钱包提现 */
.wallet-withdraw {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 16px;
  border: 1px solid rgba(216, 244, 228, 0.28);
  border-radius: 999px;
  color: #eaf9ef;
  background: rgba(255, 255, 255, 0.11);
  font-size: 11px;
}

.wallet-account-card {
  padding: 14px;
  margin-top: 12px;
  border: 1px solid #e3ebe5;
  border-radius: 14px;
  background: #fff;
}

.wallet-account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wallet-account-head strong {
  display: block;
  color: #33473b;
  font-size: 12px;
}

.wallet-account-head span {
  display: block;
  margin-top: 2px;
  color: #94a098;
  font-size: 9px;
}

.wallet-account-head .link {
  border: 0;
  color: #2f8f5b;
  background: transparent;
  font-size: 10px;
}

.wallet-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e6ede8;
}

.wallet-account-row strong {
  display: block;
  color: #3d5045;
  font-size: 11px;
}

.wallet-account-row span {
  display: block;
  margin-top: 1px;
  color: #93a097;
  font-size: 9px;
}

.wallet-default {
  padding: 3px 7px;
  border-radius: 999px;
  color: #277d4d;
  background: #ebf7ef;
  font-size: 8px;
}

.wallet-account-empty {
  margin-top: 10px;
  color: #919e96;
  font-size: 9px;
  line-height: 1.65;
}

.withdraw-status {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  white-space: nowrap;
}

.withdraw-status.amber { color: #9b6714; background: #fbf1dc; }
.withdraw-status.blue { color: #326a9a; background: #eaf2fb; }
.withdraw-status.green { color: #277d4d; background: #e9f6ee; }
.withdraw-status.red { color: #a64238; background: #fbeae7; }
.withdraw-status.gray { color: #6f7d75; background: #f0f3f1; }

.wallet-reason {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #a24a41;
  background: #fdf1ef;
  font-size: 9px;
  line-height: 1.6;
}

/* 集梦回收品牌与首页重点数据 */
.brand-logo-img {
  display: block;
  width: 132px;
  height: 38px;
  object-fit: contain;
}

.brand-logo-img.light {
  filter: none;
  opacity: 0.98;
}

.home-top .brand-logo-img {
  width: 128px;
  height: 36px;
}

.home-avatar {
  width: 40px;
  height: 40px;
  padding: 2px;
  border: 1px solid rgba(207, 242, 222, 0.32);
  background: linear-gradient(145deg, rgba(93, 190, 135, 0.34), rgba(9, 38, 25, 0.3));
  box-shadow: 0 5px 16px rgba(3, 22, 13, 0.24);
}

.home-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.home-greeting {
  margin-top: 22px;
}

.home-greeting h1 {
  margin-top: 4px;
  font-size: 21px;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.home-greeting .kicker {
  font-size: 8px;
  letter-spacing: 0.16em;
}

.home-stat-row {
  gap: 9px;
  margin-top: 18px;
}

.home-stat-row div {
  flex: 1;
  min-width: 0;
  padding: 11px 10px 10px;
  border: 1px solid rgba(206, 242, 220, 0.17);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.085);
  backdrop-filter: blur(8px);
}

.home-stat-row div:nth-child(3) {
  border-color: rgba(255, 220, 145, 0.26);
  background: linear-gradient(145deg, rgba(255, 226, 158, 0.16), rgba(255, 255, 255, 0.07));
}

.home-stat-row strong {
  display: block;
  overflow: hidden;
  color: #f4fff8;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-stat-row div:nth-child(3) strong {
  color: #ffe2a0;
  font-size: 17px;
}

.home-stat-row span {
  display: block;
  margin-top: 3px;
  color: rgba(210, 238, 221, 0.66);
  font-size: 8px;
  letter-spacing: 0.02em;
}

/* 下单页地址复制：整块可点，按钮直接复制 */
.ship-card {
  cursor: pointer;
}

.ship-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.ship-copy {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #1d7a4d;
  box-shadow: 0 4px 12px rgba(19, 92, 56, 0.22);
  font-size: 10px;
  font-weight: 600;
}

.ship-copy:active {
  transform: scale(0.97);
}

.ship-change {
  padding: 7px 10px;
  border: 1px solid #cfe3d6;
  border-radius: 999px;
  color: #45715a;
  background: #f8fdf9;
  font-size: 9px;
}

.address-option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.address-option {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  width: 100%;
  padding: 12px;
  border: 1px solid #e2ece5;
  border-radius: 12px;
  text-align: left;
  background: #fbfdfb;
}

.address-option.active {
  border-color: #78c996;
  background: #f1fbf5;
}

.address-option-check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid #c9ddcf;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
}

.address-option.active .address-option-check {
  border-color: #24834f;
  background: #24834f;
}

.address-option strong {
  display: block;
  color: #30473a;
  font-size: 11px;
}

.address-option p {
  margin-top: 3px;
  color: #7f8f85;
  font-size: 9px;
  line-height: 1.55;
}

.profile-avatar.logo-avatar {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(206, 242, 221, 0.55);
  background: #effbf3;
  box-shadow: 0 8px 22px rgba(2, 18, 10, 0.28);
}

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

/* 商品图全屏预览 */
.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 16, 10, 0.86);
  backdrop-filter: blur(6px);
}

.image-viewer img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.image-viewer-close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 24px;
  line-height: 1;
}

.product-card .thumb,
.order-card .thumb,
.selected-product .thumb {
  cursor: zoom-in;
}

/* 订单详情图片：按手机宽度等比缩放，避免只显示一部分 */
.order-detail-shot {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58vh;
  margin-top: 6px;
  border: 1px solid #e0e9e3;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

/* 商品优惠券 */
.coupon-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.coupon-chip {
  padding: 3px 7px;
  border-radius: 5px;
  color: #a14f25;
  background: #fff0e7;
  font-size: 8px;
}

.coupon-card {
  margin-top: 11px;
  padding: 13px;
  border: 1px solid #f0d9c9;
  border-radius: 14px;
  background: linear-gradient(150deg, #fffaf5, #fff4eb);
}

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

.coupon-card-head strong {
  display: block;
  color: #5c3926;
  font-size: 12px;
}

.coupon-card-head span {
  display: block;
  margin-top: 2px;
  color: #a58b7b;
  font-size: 9px;
}

.coupon-card-badge {
  padding: 3px 8px;
  border-radius: 999px;
  color: #a8572c;
  background: #ffe8d5;
  font-size: 8px;
}

.coupon-group + .coupon-group {
  margin-top: 8px;
}

.coupon-group-label {
  display: block;
  margin-bottom: 4px;
  color: #9a7560;
  font-size: 8px;
}

.coupon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  margin-top: 4px;
  border: 1px dashed #ebcbb4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.coupon-item strong {
  display: block;
  color: #6b412b;
  font-size: 10px;
}

.coupon-item span {
  display: block;
  margin-top: 1px;
  color: #a58b7b;
  font-size: 8px;
}

.coupon-item b {
  color: #b65a2b;
  font-size: 12px;
  white-space: nowrap;
}

.coupon-coin {
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  color: #896019;
  background: #fff4d8;
  font-size: 9px;
}

.order-tracking-no {
  display: inline-block;
  max-width: 120px;
  margin-left: 6px;
  overflow: hidden;
  color: #93a097;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 400;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.ocr-entry {
  padding: 6px 10px;
  border: 1px solid #bce0ca;
  border-radius: 999px;
  color: #1e7a4c;
  background: #f2fbf5;
  font-size: 9px;
  font-weight: 600;
}

/* 我的订单：订单号 / 快递单号 明确标注 */
.order-head {
  align-items: flex-start;
}

.order-ident {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.order-id-line {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 2px;
  font-family: "SFMono-Regular", Consolas, monospace;
  line-height: 1.5;
}

.order-id-line em {
  flex: 0 0 auto;
  color: #98a39b;
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
}

.order-id-line b {
  min-width: 0;
  overflow: hidden;
  color: #4c5d52;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 下单优惠券：仅显示券名称，紧凑长方形 */
.coupon-strip {
  margin-top: 11px;
  padding: 12px 13px;
  border: 1px solid #f3dfd2;
  border-radius: 13px;
  background: #fffaf6;
}

.coupon-strip-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.coupon-strip-head strong {
  color: #5b3a29;
  font-size: 11px;
}

.coupon-strip-head span {
  color: #a99182;
  font-size: 8px;
}

.coupon-ticket-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.coupon-ticket {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #efc8cc;
  border-radius: 4px;
  color: #d04b57;
  background: #fff;
  font-size: 9px;
  line-height: 1;
}

.coupon-ticket i {
  display: grid;
  place-items: center;
  padding: 7px 7px;
  border-right: 1px dashed #efc8cc;
  color: #d04b57;
  background: #fdeef0;
  font-style: normal;
  font-weight: 600;
}

.coupon-ticket b {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  font-weight: 500;
}

.coupon-coin {
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #896019;
  background: #fff3d4;
  font-size: 9px;
}

.coin-chip {
  padding: 3px 7px;
  border-radius: 5px;
  color: #8a6117;
  background: #fff2cc;
  font-size: 8px;
  font-weight: 600;
}

.coupon-chip.store {
  color: #c24752;
  background: #fdeef0;
}

.coupon-chip.platform {
  color: #a16a1c;
  background: #fff3da;
}

.coupon-ticket i.store {
  color: #c24752;
  background: #fdeef0;
}

.coupon-ticket i.platform {
  color: #a16a1c;
  background: #fff3da;
  border-right-color: #eed9b2;
}
