:root {
  --blue: #5b9fe3;
  --blue-dark: #2f6fae;
  --blue-deep: #173b61;
  --blue-soft: #deefff;
  --blue-pale: #f1f8ff;
  --background: #f5faff;
  --surface: #ffffff;
  --text: #20364b;
  --muted: #6f8497;
  --line: #dbe9f5;
  --danger: #b74b5e;
  --green: #1fa86b;
  --shadow: 0 18px 50px rgba(47, 111, 174, 0.13);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { background: var(--background); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, #dceeff, transparent 28rem),
    radial-gradient(circle at top right, #edf6ff, transparent 30rem),
    var(--background);
  color: var(--text);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.hidden { display: none !important; }

.app {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 16px calc(112px + var(--safe-bottom));
}

.mini-title {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.mobile-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 -16px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  border-bottom: 1px solid rgba(219, 233, 245, 0.9);
  background: rgba(245, 250, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-brand { min-width: 0; }
.mobile-header h1 { margin: 3px 0 0; font-size: 1.16rem; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.wallet-chip {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid #cfe3f5;
  border-radius: 15px;
  background: white;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(47, 111, 174, 0.08);
}
.wallet-chip > span:first-child { font-size: 1.15rem; }
.wallet-chip small, .wallet-chip strong { display: block; text-align: left; }
.wallet-chip small { color: var(--muted); font-size: 0.58rem; }
.wallet-chip strong { margin-top: 1px; color: var(--blue-dark); font-size: 0.82rem; }

.round-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--text);
  font-size: 1.35rem;
}

.welcome-card {
  position: relative;
  display: flex;
  min-height: 188px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.74), transparent 45%),
    linear-gradient(135deg, #d9edff, #a8d2f7);
  box-shadow: var(--shadow);
}
.welcome-card::after {
  position: absolute;
  right: -30px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border: 22px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  content: "";
}
.welcome-card h2 {
  max-width: 260px;
  margin: 14px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 10vw, 3rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.welcome-card p {
  max-width: 275px;
  margin: 0;
  color: rgba(32, 54, 75, 0.72);
  font-size: 0.86rem;
  line-height: 1.65;
}
.welcome-pill {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--blue-dark);
  font-size: 0.7rem;
  font-weight: 900;
}
.welcome-emoji { position: relative; z-index: 1; font-size: 3.3rem; transform: rotate(7deg); }

.balance-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 11px 28px rgba(47, 111, 174, 0.08);
}
.balance-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 17px;
  background: var(--blue-soft);
  font-size: 1.55rem;
}
.balance-copy span, .balance-copy strong, .balance-copy small { display: block; }
.balance-copy span { color: var(--muted); font-size: 0.7rem; font-weight: 800; }
.balance-copy strong { margin-top: 2px; color: var(--blue-deep); font-size: 1.18rem; }
.balance-copy small { margin-top: 3px; color: var(--muted); font-size: 0.67rem; }

.category-nav {
  position: sticky;
  z-index: 20;
  top: calc(69px + env(safe-area-inset-top, 0px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 18px 0 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(47, 111, 174, 0.08);
  backdrop-filter: blur(16px);
}
.category-button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}
.category-button.active {
  background: var(--blue-deep);
  color: white;
  box-shadow: 0 8px 18px rgba(23, 59, 97, 0.2);
}

.catalog-section { padding: 30px 0 20px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.catalog-heading h2 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.item-count { color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.product-list { display: grid; gap: 12px; }
.product-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 11px 28px rgba(47, 111, 174, 0.07);
}
.clickable-product { cursor: pointer; }
.product-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
}
.product-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, var(--blue-soft), #f4faff);
  font-size: 1.7rem;
}
.product-card:nth-child(3n + 2) .product-icon { background: linear-gradient(145deg, #e8f3ff, #ffffff); }
.product-card:nth-child(3n + 3) .product-icon { background: linear-gradient(145deg, #d8ebfb, #f7fbff); }
.product-info { min-width: 0; }
.product-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-info h3 { margin: 0; font-size: 0.98rem; }
.product-info p { margin: 5px 0 0; color: var(--muted); font-size: 0.76rem; line-height: 1.55; }
.coin-price {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--blue-pale);
  color: var(--blue-dark);
  font-size: 0.67rem;
  font-weight: 900;
}
.add-button {
  min-width: 60px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
}
.add-button.added { background: var(--blue-deep); color: white; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 13px 0 0 67px; }
.product-tag { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: #f2f8fd; color: var(--muted); font-size: 0.67rem; font-weight: 800; }
.food-choice-hint { color: var(--blue-dark); font-size: 0.7rem; font-weight: 900; }
.food-preview { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 0 67px; padding-top: 13px; border-top: 1px solid var(--line); }
.food-preview span { padding: 6px 9px; border-radius: 999px; background: var(--blue-pale); color: var(--muted); font-size: 0.68rem; font-weight: 800; }

.promise-card { margin: 18px 0; padding: 20px; border: 1px dashed #bfd9ee; border-radius: 22px; background: rgba(239, 248, 255, 0.88); text-align: center; }
.promise-card span { color: var(--blue-dark); font-size: 0.74rem; font-weight: 900; }
.promise-card p { margin: 7px 0 0; color: var(--muted); font-size: 0.82rem; }

.cart-bar {
  position: fixed;
  z-index: 40;
  right: max(14px, calc((100vw - 560px) / 2 + 14px));
  bottom: calc(12px + var(--safe-bottom));
  left: max(14px, calc((100vw - 560px) / 2 + 14px));
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  border: 0;
  border-radius: 22px;
  background: var(--blue-deep);
  color: white;
  box-shadow: 0 20px 50px rgba(23, 59, 97, 0.3);
}
.cart-bar:disabled { opacity: 0; pointer-events: none; transform: translateY(20px); }
.cart-bar-left { display: flex; min-width: 0; align-items: center; gap: 11px; text-align: left; }
.cart-bar-left small, .cart-bar-left strong { display: block; }
.cart-bar-left small { color: rgba(255, 255, 255, 0.65); font-size: 0.66rem; }
.cart-bar-left strong { margin-top: 2px; font-size: 0.87rem; }
.cart-bubble { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border-radius: 15px; background: var(--blue); font-weight: 900; }
.cart-arrow { flex: 0 0 auto; font-size: 0.75rem; font-weight: 900; }

.password-page {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
}
.password-glow { position: absolute; width: 280px; height: 280px; border-radius: 50%; filter: blur(5px); opacity: 0.7; }
.glow-one { top: -110px; left: -120px; background: #d7ebff; }
.glow-two { right: -130px; bottom: -100px; background: #eaf5ff; }
.password-card { position: relative; z-index: 1; width: min(100%, 420px); padding: 36px 24px 30px; border: 1px solid rgba(255, 255, 255, 0.92); border-radius: 30px; background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow); text-align: center; backdrop-filter: blur(18px); }
.heart-logo { display: grid; width: 68px; height: 68px; margin: 0 auto 20px; place-items: center; border-radius: 22px; background: var(--blue-soft); color: var(--blue-dark); font-size: 2.5rem; }
.password-card h1 { margin: 14px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 13vw, 4.2rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.06em; }
.password-copy { margin: 18px auto 26px; color: var(--muted); font-size: 0.85rem; line-height: 1.75; }
.field { display: grid; gap: 8px; text-align: left; }
.field span { color: var(--muted); font-size: 0.74rem; font-weight: 900; }
input, textarea { width: 100%; border: 1px solid var(--line); outline: none; border-radius: 15px; background: white; color: var(--text); }
input { min-height: 52px; padding: 0 14px; }
textarea { min-height: 110px; resize: vertical; padding: 14px; line-height: 1.6; }
input:focus, textarea:focus { border-color: #88bcea; box-shadow: 0 0 0 4px rgba(91, 159, 227, 0.12); }
.main-button { min-height: 52px; border: 0; border-radius: 16px; background: linear-gradient(135deg, var(--blue), #7bb6ed); color: white; font-weight: 900; box-shadow: 0 12px 26px rgba(47, 111, 174, 0.22); }
.main-button:disabled { cursor: not-allowed; opacity: 0.55; box-shadow: none; }
.full-button { width: 100%; margin-top: 14px; }
.error-text, .warning-text { min-height: 18px; margin: 10px 0 0; color: var(--danger); font-size: 0.74rem; line-height: 1.5; }

.sheet { position: fixed; z-index: 100; inset: 0; pointer-events: none; visibility: hidden; }
.sheet.open { pointer-events: auto; visibility: visible; }
.sheet-overlay { position: absolute; inset: 0; background: rgba(22, 49, 75, 0.42); opacity: 0; transition: opacity 180ms ease; }
.sheet.open .sheet-overlay { opacity: 1; }
.sheet-panel { position: absolute; right: 0; bottom: 0; left: 0; width: min(100%, 560px); max-height: 88svh; margin: 0 auto; overflow-y: auto; padding: 10px 18px calc(20px + var(--safe-bottom)); border-radius: 28px 28px 0 0; background: #fafdff; box-shadow: 0 -20px 70px rgba(23, 59, 97, 0.2); transform: translateY(102%); transition: transform 220ms ease; }
.sheet.open .sheet-panel { transform: translateY(0); }
.sheet-handle { width: 42px; height: 5px; margin: 0 auto 20px; border-radius: 999px; background: #c9dbe9; }
.sheet-header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.sheet-header h2, .success-panel h2 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 2.2rem; font-weight: 500; letter-spacing: -0.04em; }
.sheet-description { margin: 12px 0 20px; color: var(--muted); font-size: 0.82rem; line-height: 1.65; }
.option-price-line { display: inline-flex; margin-top: 12px; padding: 7px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: 0.72rem; }
.food-option-panel { max-height: 82svh; }
.food-option-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.food-option-button { display: flex; min-height: 78px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: white; color: var(--text); text-align: left; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.food-option-button:active { transform: scale(0.98); }
.food-option-button span { font-size: 0.9rem; font-weight: 900; }
.food-option-button small { color: var(--muted); font-size: 0.68rem; }
.food-option-button.selected { border-color: #83b9e7; background: var(--blue-soft); }
.food-option-button.selected small { color: var(--blue-dark); font-weight: 900; }

.cart-items { display: grid; gap: 10px; margin: 22px 0; }
.cart-item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.cart-item-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: var(--blue-soft); font-size: 1.4rem; }
.cart-item h3 { margin: 0; font-size: 0.9rem; }
.cart-item p { margin: 4px 0 0; color: var(--muted); font-size: 0.68rem; }
.cart-item-subtotal { display: block; margin-top: 5px; color: var(--blue-dark); font-size: 0.7rem; }
.quantity-control { display: flex; align-items: center; gap: 7px; }
.quantity-control button { display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 50%; background: #edf5fc; color: var(--text); }
.cart-total-card { display: flex; align-items: center; justify-content: space-between; padding: 15px; border-radius: 16px; background: var(--blue-pale); color: var(--muted); font-size: 0.8rem; }
.cart-total-card strong { color: var(--blue-deep); font-size: 1rem; }
.checkout-form { display: grid; gap: 14px; margin-top: 18px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-balance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.checkout-balance-grid > div { padding: 12px 8px; border: 1px solid var(--line); border-radius: 15px; background: white; text-align: center; }
.checkout-balance-grid span, .checkout-balance-grid strong { display: block; }
.checkout-balance-grid span { color: var(--muted); font-size: 0.64rem; }
.checkout-balance-grid strong { margin-top: 4px; color: var(--blue-deep); font-size: 0.82rem; }
.checkout-balance-grid .insufficient strong { color: var(--danger); }

.success-panel { text-align: center; }
.success-check { display: grid; width: 70px; height: 70px; margin: 4px auto 20px; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-size: 2rem; font-weight: 900; }
.success-panel > p:not(.mini-title) { color: var(--muted); font-size: 0.86rem; line-height: 1.75; }
.order-number { margin: 18px 0 10px; padding: 13px; border: 1px dashed #bcd6eb; border-radius: 14px; background: white; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86rem; font-weight: 900; }
.success-balance { padding: 12px; border-radius: 14px; background: var(--blue-pale); color: var(--muted); font-size: 0.78rem; }
.success-balance strong { color: var(--blue-dark); }
.empty-card { padding: 42px 20px; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); text-align: center; }
.toast { position: fixed; z-index: 200; right: 20px; bottom: calc(94px + var(--safe-bottom)); left: 20px; width: fit-content; max-width: calc(100% - 40px); margin: 0 auto; padding: 12px 16px; border-radius: 999px; background: var(--blue-deep); color: white; font-size: 0.76rem; font-weight: 800; opacity: 0; transform: translateY(10px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.show { opacity: 1; transform: translateY(0); }
body.sheet-open { overflow: hidden; }

@media (min-width: 700px) {
  .app { border-right: 1px solid rgba(219, 233, 245, 0.8); border-left: 1px solid rgba(219, 233, 245, 0.8); background: rgba(255, 255, 255, 0.28); }
}
@media (max-width: 420px) {
  .wallet-chip { padding: 6px 8px; }
  .round-button { width: 38px; height: 38px; }
  .product-title-row { align-items: flex-start; flex-direction: column; gap: 5px; }
}
@media (max-width: 370px) {
  .welcome-emoji { display: none; }
  .two-fields { grid-template-columns: 1fr; }
  .food-option-list { grid-template-columns: 1fr; }
  .product-main { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .product-icon { width: 48px; height: 48px; }
  .product-meta, .food-preview { margin-left: 61px; }
  .wallet-chip > span:first-child { display: none; }
}

/* ===== 顶部订单与签到快捷入口 ===== */
.mobile-header {
  display: block;
  padding-bottom: 10px;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-shortcuts {
  display: grid;
  grid-template-columns: 1.08fr 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.wallet-chip,
.feature-shortcut {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #cfe3f5;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(47, 111, 174, 0.08);
  text-align: left;
}

.feature-shortcut {
  border-color: var(--line);
}

.shortcut-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: var(--blue-soft);
  font-size: 1rem;
}

.wallet-chip small,
.wallet-chip strong,
.feature-shortcut small,
.feature-shortcut strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-chip small,
.feature-shortcut small {
  color: var(--muted);
  font-size: 0.56rem;
}

.wallet-chip strong,
.feature-shortcut strong {
  margin-top: 2px;
  color: var(--blue-deep);
  font-size: 0.7rem;
}

.category-nav {
  top: calc(133px + env(safe-area-inset-top, 0px));
}

/* ===== 我的订单 ===== */
.order-history-panel,
.checkin-panel {
  max-height: 92svh;
}

.sheet-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mini-round-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--blue-dark);
  font-size: 1.1rem;
  font-weight: 900;
}

.order-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 20px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--blue-pale);
}

.order-tab {
  min-height: 43px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.order-tab span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  place-items: center;
  border-radius: 999px;
  background: rgba(91, 159, 227, 0.12);
  font-size: 0.65rem;
}

.order-tab.active {
  background: white;
  color: var(--blue-deep);
  box-shadow: 0 8px 18px rgba(47, 111, 174, 0.1);
}

.order-history-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.customer-order-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 28px rgba(47, 111, 174, 0.07);
}

.customer-order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.customer-order-top h3 {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.customer-order-top small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.66rem;
}

.customer-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.66rem;
  font-weight: 900;
}

.customer-status.accepted {
  background: #e8f7ef;
  color: #267b54;
}

.customer-status.completed {
  background: var(--blue-deep);
  color: white;
}

.customer-order-items {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 12px;
  border-radius: 15px;
  background: var(--blue-pale);
}

.customer-order-items p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
}

.customer-order-meta {
  display: grid;
  gap: 8px;
}

.customer-order-meta p {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.55;
}

.customer-order-meta span {
  color: var(--muted);
}

.customer-order-meta strong {
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

/* ===== 每日签到日历 ===== */
.checkin-summary-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.checkin-summary-card > div {
  padding: 13px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  text-align: center;
}

.checkin-summary-card small,
.checkin-summary-card strong {
  display: block;
}

.checkin-summary-card small {
  color: var(--muted);
  font-size: 0.62rem;
}

.checkin-summary-card strong {
  margin-top: 5px;
  color: var(--blue-deep);
  font-size: 0.82rem;
}

.checkin-reward-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #bcdcf7;
  border-radius: 17px;
  background: linear-gradient(135deg, #eaf6ff, #d9edff);
  animation: rewardPop 320ms ease;
}

.checkin-reward-banner > span {
  font-size: 1.55rem;
}

.checkin-reward-banner small,
.checkin-reward-banner strong {
  display: block;
}

.checkin-reward-banner small {
  color: var(--muted);
  font-size: 0.63rem;
}

.checkin-reward-banner strong {
  margin-top: 2px;
  color: var(--blue-deep);
  font-size: 0.88rem;
}

@keyframes rewardPop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.calendar-weekdays,
.checkin-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-weekdays {
  margin-top: 20px;
  padding: 0 2px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  text-align: center;
}

.checkin-calendar {
  margin-top: 8px;
}

.calendar-blank {
  min-height: 54px;
}

.calendar-day {
  display: flex;
  min-width: 0;
  min-height: 54px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--text);
}

.calendar-day span {
  font-size: 0.78rem;
  font-weight: 900;
}

.calendar-day small {
  min-height: 12px;
  color: var(--muted);
  font-size: 0.53rem;
  font-weight: 800;
}

.calendar-day.today {
  border: 2px solid var(--blue);
}

.calendar-day.signed {
  border-color: #9ecbf0;
  background: linear-gradient(145deg, var(--blue-soft), #f6fbff);
  color: var(--blue-deep);
}

.calendar-day.signed small {
  color: var(--blue-dark);
}

.calendar-day.missed {
  border-style: dashed;
  border-color: #9ebfd9;
  background: #fbfdff;
  color: var(--blue-dark);
}

.calendar-day.future {
  opacity: 0.42;
}

.calendar-day:disabled {
  cursor: default;
}

.checkin-explanation {
  margin-top: 15px;
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--blue-pale);
}

.checkin-explanation p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}

.checkin-explanation p + p {
  margin-top: 4px;
}

.calendar-empty {
  grid-column: 1 / -1;
}

@media (max-width: 420px) {
  .mobile-header h1 { font-size: 1.08rem; }
  .header-shortcuts { gap: 5px; }
  .wallet-chip,
  .feature-shortcut { padding: 6px 7px; gap: 5px; }
  .shortcut-icon { width: 27px; height: 27px; font-size: 0.9rem; }
  .wallet-chip strong,
  .feature-shortcut strong { font-size: 0.63rem; }
  .category-nav { top: calc(129px + env(safe-area-inset-top, 0px)); }
}

@media (max-width: 355px) {
  .shortcut-icon { display: none; }
  .wallet-chip,
  .feature-shortcut { justify-content: center; }
  .wallet-chip small,
  .wallet-chip strong,
  .feature-shortcut small,
  .feature-shortcut strong { text-align: center; }
  .customer-order-meta p { grid-template-columns: 66px minmax(0, 1fr); }
  .calendar-day { min-height: 49px; border-radius: 11px; }
}

/* Discord 订单三阶段分页 */
.order-tabs.three-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.order-tabs.three-tabs .order-tab {
  padding-right: 5px;
  padding-left: 5px;
  font-size: 0.72rem;
}
@media (max-width: 370px) {
  .order-tabs.three-tabs .order-tab { font-size: 0.65rem; }
}
