/* 惠兑生活 — 原型共享样式 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Outfit:wght@500;600;700&display=swap");

:root {
  --ink: #0f1c2e;
  --ink-2: #243447;
  --muted: #5c6b7a;
  --line: #e2e8ef;
  --bg: #eef2f6;
  --surface: #ffffff;
  --teal: #0d7377;
  --teal-d: #095456;
  --gold: #c4a035;
  --gold-l: #f3e6b8;
  --rose: #c45c4a;
  --green: #2a9d6e;
  --blue: #2b6cb0;
  --shadow: 0 10px 30px rgba(15, 28, 46, 0.08);
  --radius: 14px;
  --font: "Noto Sans SC", "PingFang SC", sans-serif;
  --display: "Outfit", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

.proto-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 9999;
  white-space: nowrap;
}
.proto-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--gold-l);
  color: #7a5f10;
}
.badge.teal { background: #d7efef; color: var(--teal-d); }
.badge.rose { background: #f8e4e0; color: var(--rose); }
.badge.green { background: #dcf0e6; color: var(--green); }
.badge.gray { background: #e8edf2; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: .15s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-d); }
.btn-gold { background: linear-gradient(135deg, #d4b24a, #b8922a); color: #1a1405; }
.btn-outline {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost { color: var(--teal); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.card + .card { margin-top: 12px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.stat {
  background: #f7fafc;
  border-radius: 12px;
  padding: 12px;
}
.stat .label { font-size: 12px; color: var(--muted); }
.stat .value {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: -0.02em;
}
.stat .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: none; }
.list-row .main { flex: 1; min-width: 0; }
.list-row .title { font-weight: 600; font-size: 14px; }
.list-row .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.list-row .right { text-align: right; white-space: nowrap; }
.list-row .amount { font-weight: 700; font-family: var(--display); }
.list-row .amount.plus { color: var(--green); }
.list-row .amount.minus { color: var(--rose); }

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
  font-size: 15px;
  font-weight: 700;
}
.section-title a, .section-title button {
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
}

.tabs {
  display: flex;
  gap: 4px;
  background: #e8edf2;
  padding: 4px;
  border-radius: 12px;
}
.tabs button {
  flex: 1;
  padding: 8px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.form-field { margin-bottom: 14px; }
.form-field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  outline: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,115,119,.12);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f7fafc;
}
table.data td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data tr:hover td { background: #fafcfd; }

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 13px;
}

/* —— Hub —— */
.hub-body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13,115,119,.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(196,160,53,.2), transparent),
    linear-gradient(180deg, #f4f7fa 0%, #e8eef4 100%);
}
.hub {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.hub-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.hub-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--teal), #14919b);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(13,115,119,.3);
}
.hub h1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 44px);
  margin: 0;
  letter-spacing: -0.03em;
}
.hub .tagline {
  color: var(--muted);
  font-size: 16px;
  margin: 8px 0 0;
  max-width: 520px;
}
.hub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 36px;
}
.hub-meta span {
  font-size: 12px;
  padding: 6px 12px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) {
  .portal-grid { grid-template-columns: 1fr; }
}
.portal-card {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,28,46,.12);
}
.portal-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.portal-card.consumer .icon { background: #d7efef; }
.portal-card.merchant .icon { background: var(--gold-l); }
.portal-card.admin .icon { background: #dde8f5; }
.portal-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.portal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  flex: 1;
}
.portal-card .features {
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--ink-2);
}
.portal-card .features li {
  padding: 4px 0 4px 14px;
  position: relative;
}
.portal-card .features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.portal-card.merchant .features li::before { background: var(--gold); }
.portal-card.admin .features li::before { background: var(--blue); }
.hub-note {
  margin-top: 40px;
  padding: 16px 20px;
  background: rgba(255,255,255,.6);
  border-radius: 12px;
  border: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}
.hub-note strong { color: var(--ink); }

/* —— Plan block —— */
.plan-block {
  margin-top: 48px;
  padding: 28px 24px 32px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.plan-head h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.plan-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 720px;
}
.plan-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 22px 0 8px;
}
@media (max-width: 800px) {
  .plan-kpis { grid-template-columns: 1fr 1fr; }
}
.plan-kpi {
  background: #f4f8fa;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
}
.plan-kpi.accent {
  background: linear-gradient(145deg, #0d7377, #14919b);
  border-color: transparent;
  color: #fff;
}
.plan-kpi.accent .pk-label,
.plan-kpi.accent .pk-sub { color: rgba(255,255,255,.8); }
.pk-label { font-size: 12px; color: var(--muted); }
.pk-value {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: -0.02em;
}
.pk-value span { font-size: 14px; font-weight: 600; margin-left: 2px; }
.pk-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.plan-h3 {
  margin: 28px 0 12px;
  font-size: 16px;
  font-weight: 700;
}
.plan-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.plan-table th {
  text-align: left;
  background: #f0f5f7;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.plan-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
}
.plan-table tr:last-child td { border-bottom: none; }
.plan-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-2);
}
.plan-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 700px) {
  .plan-cols { grid-template-columns: 1fr; }
}
.plan-card {
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.plan-card h4 { margin: 0 0 10px; font-size: 14px; }
.plan-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.75;
}
.plan-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.plan-pills span {
  font-size: 12px;
  padding: 7px 12px;
  background: #e7f3f3;
  color: var(--teal-d);
  border-radius: 8px;
  font-weight: 500;
}
.plan-tip {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.plan-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .plan-phases { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .plan-phases { grid-template-columns: 1fr; }
}
.phase {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.phase-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 6px;
}
.phase h4 { margin: 0 0 6px; font-size: 14px; }
.phase p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.plan-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 800px) {
  .plan-packages { grid-template-columns: 1fr; }
}
.pkg {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}
.pkg.featured {
  border-color: var(--teal);
  background: #f3fafa;
  box-shadow: 0 0 0 1px rgba(13,115,119,.15);
}
.pkg-name { font-weight: 700; font-size: 14px; }
.pkg-price {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  color: var(--teal-d);
  margin: 6px 0 8px;
}
.pkg p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.plan-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.9;
}
.plan-footnote {
  margin-top: 24px;
  padding: 14px 16px;
  background: #f7fafc;
  border-radius: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.plan-footnote strong { color: var(--ink); }
.hub-nav-plan {
  margin-left: auto;
}
.hub-brand .hub-nav-plan {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(13,115,119,.08);
}
.hub-brand .hub-nav-plan:hover { background: rgba(13,115,119,.14); }

/* —— Mobile shell (C端) —— */
.phone-page {
  min-height: 100vh;
  background:
    linear-gradient(160deg, #1a3344 0%, #0f1c2e 40%, #152536 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 40px;
}
.demo-bar {
  width: min(100%, 920px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(255,255,255,.85);
  font-size: 13px;
}
.demo-bar a { color: #9ed4d6; }
.phone {
  width: 390px;
  max-width: 100%;
  height: min(844px, calc(100vh - 100px));
  background: #f2f5f8;
  border-radius: 36px;
  border: 8px solid #0a121c;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.phone-notch {
  height: 28px;
  background: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}
.phone-notch span {
  width: 100px;
  height: 22px;
  background: #0a121c;
  border-radius: 0 0 14px 14px;
}
.phone-status {
  background: #fff;
  padding: 4px 18px 8px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.phone-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f2f5f8;
  position: relative;
}
.phone-tabbar {
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 6px 0 calc(8px + env(safe-area-inset-bottom));
  flex-shrink: 0;
}
.phone-tabbar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: var(--muted);
  padding: 4px;
}
.phone-tabbar button.active { color: var(--teal); font-weight: 600; }
.phone-tabbar .ico { font-size: 18px; line-height: 1; }

.screen { display: none; padding: 0 0 20px; animation: fadeIn .25s ease; }
.screen.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.nav-head {
  background: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-head h3 { margin: 0; font-size: 16px; flex: 1; }
.nav-head .back {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f0f4f8;
  font-size: 16px;
}

.home-hero {
  background: linear-gradient(145deg, #0d7377 0%, #14919b 55%, #1aa6a0 100%);
  color: #fff;
  padding: 18px 16px 28px;
  position: relative;
  overflow: hidden;
}
.home-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.home-hero .greet { font-size: 13px; opacity: .85; }
.home-hero .name { font-size: 20px; font-weight: 700; margin-top: 2px; }
.voucher-pill {
  margin-top: 14px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(4px);
}
.voucher-pill .bal {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.voucher-pill .bal small { font-size: 13px; font-weight: 500; opacity: .85; }
.carousel {
  margin: -16px 16px 0;
  position: relative;
  z-index: 2;
}
.carousel-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide {
  min-width: 86%;
  scroll-snap-align: start;
  border-radius: 14px;
  padding: 16px;
  color: #fff;
  box-shadow: var(--shadow);
}
.slide.tone-a { background: linear-gradient(120deg, #2b6cb0, #3d8fd1); }
.slide.tone-b { background: linear-gradient(120deg, #b8922a, #d4b24a); color: #1a1405; }
.slide.tone-c { background: linear-gradient(120deg, #2a9d6e, #3bb882); }
.slide h4 { margin: 0 0 4px; font-size: 16px; }
.slide p { margin: 0; font-size: 12px; opacity: .9; }

.pad { padding: 0 16px; }

.merchant-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.merchant-cover {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: linear-gradient(145deg, #d7efef, #b8dfe0);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--teal-d);
  flex-shrink: 0;
  font-size: 13px;
}
.merchant-card .info { flex: 1; min-width: 0; }
.merchant-card .name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.merchant-card .name { font-weight: 700; font-size: 14px; }
.merchant-card .city { font-size: 11px; color: var(--muted); margin-top: 2px; }
.merchant-card .stats {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-2);
}
.merchant-card .promo {
  margin-top: 6px;
  font-size: 11px;
  color: var(--rose);
  font-weight: 500;
}

.gift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gift-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.gift-img {
  height: 100px;
  background: linear-gradient(160deg, #e8f4f4, #f5f0e0);
  display: grid;
  place-items: center;
  font-size: 28px;
  position: relative;
}
.gift-img .tag {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(15,28,46,.75);
  color: #fff;
  border-radius: 4px;
}
.gift-body { padding: 10px; }
.gift-body .gname { font-size: 13px; font-weight: 600; line-height: 1.35; min-height: 36px; }
.gift-body .price {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-d);
  font-family: var(--display);
}
.gift-body .price span { font-size: 11px; color: var(--muted); font-weight: 500; font-family: var(--font); }

.profile-head {
  background: linear-gradient(145deg, #0f1c2e, #1a3344);
  color: #fff;
  padding: 20px 16px 24px;
}
.profile-head .row { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
}
.menu-list { margin: 12px 16px; background: #fff; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  text-align: left;
  font-size: 14px;
}
.menu-item:last-child { border-bottom: none; }
.menu-item .arrow { margin-left: auto; color: #b0bac4; }
.menu-item .ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #eef6f6;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.login-wrap {
  padding: 40px 24px;
  text-align: center;
}
.login-wrap .logo-lg {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--teal), #14919b);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
}
.sms-row { display: flex; gap: 8px; }
.sms-row input { flex: 1; }
.sms-row button { flex-shrink: 0; white-space: nowrap; }

.sheet {
  position: absolute;
  inset: 0;
  background: rgba(15,28,46,.45);
  z-index: 50;
  display: none;
  align-items: flex-end;
}
.sheet.open { display: flex; }
.sheet-panel {
  background: #fff;
  width: 100%;
  border-radius: 20px 20px 0 0;
  padding: 20px 16px 28px;
  max-height: 85%;
  overflow-y: auto;
  animation: slideUp .28s ease;
}
@keyframes slideUp {
  from { transform: translateY(40px); }
  to { transform: none; }
}

.logistics-timeline { padding: 8px 0; }
.logistics-timeline .step {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  position: relative;
}
.logistics-timeline .step::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.logistics-timeline .step:last-child::before { display: none; }
.logistics-timeline .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
  margin-top: 4px;
  flex-shrink: 0;
  z-index: 1;
}
.logistics-timeline .step:first-child .dot { background: var(--teal); }
.logistics-timeline .t { font-size: 11px; color: var(--muted); }
.logistics-timeline .s { font-size: 13px; font-weight: 500; }

.plan-card {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
  background: #fff;
}
.plan-card.popular { border-color: var(--teal); background: #f3fafa; }
.plan-card .price {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  color: var(--teal-d);
}
.plan-card .quota { font-size: 13px; font-weight: 600; margin-top: 2px; }

/* —— Desktop console (商家/运营) —— */
.console {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
}
.sidebar {
  background: var(--ink);
  color: rgba(255,255,255,.85);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 12px;
}
.sidebar .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--teal);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--display);
}
.sidebar .brand small {
  display: block;
  font-size: 11px;
  opacity: .55;
  font-weight: 400;
}
.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  margin-bottom: 2px;
}
.sidebar nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar nav button.active {
  background: rgba(13,115,119,.35);
  color: #fff;
  font-weight: 600;
}
.sidebar .foot {
  margin-top: auto;
  padding: 12px;
  font-size: 11px;
  opacity: .5;
}
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar h1 { margin: 0; font-size: 18px; }
.topbar .actions { display: flex; align-items: center; gap: 10px; }
.content {
  padding: 24px;
  overflow: auto;
  flex: 1;
}
.panel { display: none; animation: fadeIn .2s ease; }
.panel.active { display: block; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .console { grid-template-columns: 64px 1fr; }
  .sidebar .brand span, .sidebar nav button span:not(.ni), .sidebar .foot { display: none; }
  .sidebar nav button { justify-content: center; }
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.kpi .label { font-size: 12px; color: var(--muted); }
.kpi .value {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: -0.02em;
}
.kpi .trend { font-size: 11px; margin-top: 4px; color: var(--green); }

.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; }
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  padding-top: 10px;
}
.chart-bars .bar {
  flex: 1;
  background: linear-gradient(180deg, #14919b, #0d7377);
  border-radius: 6px 6px 2px 2px;
  position: relative;
  min-width: 0;
  opacity: .85;
}
.chart-bars .bar span {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.toolbar .spacer { flex: 1; }
.search-input {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-width: 200px;
  font-size: 13px;
}

.switch {
  width: 40px;
  height: 22px;
  background: #c5ced6;
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: .2s;
}
.switch.on { background: var(--teal); }
.switch::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: .2s;
}
.switch.on::after { left: 20px; }

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15,28,46,.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-mask.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  width: min(480px, 100%);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal h3 { margin: 0 0 16px; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.tag-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.tag-dot.green { background: var(--green); }
.tag-dot.gold { background: var(--gold); }
.tag-dot.rose { background: var(--rose); }
.tag-dot.gray { background: #9aa8b5; }

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #f0f4f8;
  border-radius: 8px;
  font-size: 12px;
}
@media (max-width: 480px) {
  .phone-page { padding: 0; }
  .demo-bar { padding: 12px 16px; width: 100%; }
  .phone {
    width: 100%;
    height: calc(100vh - 52px);
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  .phone-notch { display: none; }
}
