:root {
  --bg: #fff7ee;
  --paper: #fffdfa;
  --paper-alt: #fff1dc;
  --ink: #1e2430;
  --muted: #6d7280;
  --line: #23283a;
  --primary: #ff6b4a;
  --primary-soft: #ffe0d5;
  --accent: #23395d;
  --accent-soft: #dce9ff;
  --green: #3cb179;
  --green-soft: #d8f4e7;
  --gold: #f5bf51;
  --shadow: 0 18px 36px rgba(35, 57, 93, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 212, 171, 0.7), transparent 18%),
    radial-gradient(circle at 90% 10%, rgba(172, 211, 255, 0.7), transparent 22%),
    radial-gradient(circle at 82% 88%, rgba(255, 159, 159, 0.18), transparent 18%),
    linear-gradient(180deg, #fff7ee 0%, #fffdf8 42%, #fff6ef 100%);
}

body {
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.landing-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.landing-shell {
  width: min(1120px, 100%);
}

.login-shell {
  width: min(520px, 100%);
}

.login-card {
  border-radius: 34px;
  padding: 36px;
  background: rgba(255, 253, 250, 0.96);
  border: 2px solid rgba(35, 40, 58, 0.08);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 44px;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.login-error {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffe0dc;
  color: #ba3f2c;
  font-weight: 700;
}

.landing-hero,
.landing-card,
.app-card,
.dashboard-card,
.modal-card,
.support-panel,
.admin-side,
.admin-main,
.admin-table-card,
.admin-form-card,
.user-shell {
  background: rgba(255, 253, 250, 0.92);
  border: 2px solid rgba(35, 40, 58, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.landing-hero {
  border-radius: 40px;
  padding: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.landing-hero h1 {
  margin: 0 0 10px;
  font-size: 58px;
  line-height: 1;
}

.landing-hero p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
}

.landing-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.primary-link,
.secondary-link,
.primary-btn,
.secondary-btn,
.ghost-btn,
.small-btn {
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.primary-link,
.secondary-link,
.primary-btn,
.secondary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 700;
}

.primary-link,
.primary-btn {
  background: linear-gradient(135deg, var(--primary) 0%, #ff9262 100%);
  color: #fff;
}

.secondary-link,
.secondary-btn {
  background: var(--accent);
  color: #fff;
}

.ghost-btn {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(35, 57, 93, 0.16);
}

.small-btn {
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.primary-link:hover,
.secondary-link:hover,
.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.small-btn:hover {
  transform: translateY(-1px);
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.landing-card {
  border-radius: 26px;
  padding: 24px;
}

.landing-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.landing-card p {
  margin: 0;
  color: var(--muted);
}

.user-body {
  padding: 24px 18px 32px;
  padding-bottom: 128px;
}

.user-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  border-radius: 34px;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.user-header {
  position: relative;
  overflow: hidden;
  padding: 30px 30px 24px;
  background:
    linear-gradient(135deg, rgba(35, 57, 93, 0.98) 0%, rgba(53, 86, 138, 0.96) 48%, rgba(26, 46, 73, 0.98) 100%);
  color: #fff;
}

.user-header::after {
  content: "";
  position: absolute;
  inset: auto -8% -70% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-actions a {
  text-decoration: none;
}

.header-orders-btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(16, 30, 59, 0.18);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.header-orders-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.14));
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(16, 30, 59, 0.24);
}

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

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff9860, #ffd169);
  display: grid;
  place-items: center;
  font-size: 28px;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.brand h1 {
  margin: 0;
  font-size: 28px;
  white-space: nowrap;
}

.brand p,
.user-badge p,
.announce {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.user-badge {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: auto;
  box-shadow: none;
}

.current-user-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.current-user-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.96);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.current-user-logout {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.user-menu {
  position: relative;
  min-width: 0;
}

.user-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: min(42vw, 180px);
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.96);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.user-menu__trigger:active {
  opacity: 0.82;
}

.user-menu__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu__caret {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.88;
  transition: transform 0.18s ease;
}

.user-menu__trigger[aria-expanded="true"] .user-menu__caret {
  transform: rotate(180deg);
}

.user-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(35, 40, 58, 0.08);
  box-shadow: 0 14px 36px rgba(20, 28, 48, 0.16);
  z-index: 30;
}

.user-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1a1d26;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.user-menu__item:hover,
.user-menu__item:focus-visible {
  background: rgba(35, 57, 93, 0.06);
}

.user-menu__item--danger {
  color: #e53935;
}

.user-auth-row--top {
  width: 100%;
  justify-content: flex-end;
}

.user-header .header-orders-btn:focus-visible,
.user-header .ghost-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

.user-header .ghost-btn {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  height: 40px;
  padding: 0 16px;
}

.user-header .ghost-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.storefront-header-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 300px);
}

.storefront-header-nav__item {
  height: 40px;
  padding: 0 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
}

.storefront-header-nav__item:hover {
  background: rgba(255, 255, 255, 0.14);
}

.user-header .secondary-btn:hover {
  filter: brightness(1.06);
}

.announce {
  margin-top: 18px;
  padding: 5px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.announce--marquee {
  position: relative;
  display: block;
  overflow: hidden;
  white-space: nowrap;
}

.announce--marquee::before,
.announce--marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  z-index: 1;
  pointer-events: none;
}

.announce--marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(82, 112, 157, 0.9), rgba(82, 112, 157, 0));
}

.announce--marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(82, 112, 157, 0.9), rgba(82, 112, 157, 0));
}

.announce-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  min-width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: announceMarquee 18s linear infinite;
}

.announce-marquee-item {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  padding-inline: 14px 0;
  font-size: 12px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.86);
}

@keyframes announceMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 20px));
  }
}

.search-panel {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
}

.search-panel--home {
  grid-template-columns: 1fr;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border-radius: 999px;
  padding: 0 4px 0 14px;
  overflow: hidden;
}

.search-box--compact {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 9px 6px 9px 0;
  background: transparent;
  min-height: 0;
  font-size: 14px;
}

.search-field__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 2px 0;
  border: 0;
  border-radius: 50%;
  background: rgba(35, 57, 93, 0.1);
  color: #35568a;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.search-field__btn:hover {
  background: rgba(35, 57, 93, 0.16);
  color: #23395d;
}

.search-field__btn:active {
  background: rgba(35, 57, 93, 0.22);
}

.search-field__icon {
  width: 18px;
  height: 18px;
}

.search-box,
.filter-box,
.field,
.select,
.textarea {
  border: 0;
  border-radius: 18px;
  padding: 16px 18px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.search-box::placeholder {
  color: #8e94a3;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 22px;
  padding: 24px;
}

.user-content-grid {
  align-items: start;
}

.user-catalog-single {
  grid-template-columns: 1fr;
}

.stack {
  display: grid;
  gap: 22px;
}

.app-card {
  border-radius: 28px;
  padding: 22px;
}

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

.card-head h2,
.card-head h3 {
  margin: 0;
  font-size: 24px;
}

.section-title-icon {
  display: inline-block;
  margin-right: 6px;
  font-size: 20px;
  vertical-align: -1px;
}

.hot-section-subtext {
  margin-top: 4px;
  font-size: 12px;
  color: #7f8797;
}

.muted {
  color: var(--muted);
}

.coupon-row,
.channel-row,
.metric-row,
.grid-products,
.hot-grid,
.order-list,
.admin-metric-grid {
  display: grid;
  gap: 14px;
}

.table-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.table-actions .small-btn,
.table-actions .ghost-btn {
  min-width: 64px;
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
}

.table-actions .coupon-claims-btn,
.table-actions .coupon-usage-btn {
  min-width: 84px;
}

.table-actions .refund-btn {
  min-width: 72px;
  white-space: nowrap;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1200px) {
  .kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.coupon-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coupon-center-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* —— 优惠券专区（参考票券横滑样式） —— */
.app-card--coupon-zone {
  padding-top: 16px;
}

.coupon-zone-header {
  margin-bottom: 14px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.coupon-zone-header-main {
  flex: 1;
  min-width: 200px;
}

.coupon-zone-header-actions {
  flex-shrink: 0;
  padding-top: 2px;
}

.coupon-redeem-entry-btn {
  white-space: nowrap;
}

.coupon-redeem-modal {
  place-items: center;
  padding: 20px;
}

.coupon-redeem-modal__card {
  width: min(320px, calc(100vw - 40px));
  max-width: 320px;
  padding: 18px 16px 16px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #ff9262 100%);
  box-shadow: 0 18px 40px rgba(255, 107, 74, 0.32);
  color: #fff;
}

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

.coupon-redeem-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.coupon-redeem-modal__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.coupon-redeem-modal__form {
  display: grid;
  gap: 14px;
}

.coupon-redeem-modal__input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 15px;
  color: #1f2430;
}

.coupon-redeem-modal__input::placeholder {
  color: #9aa3b2;
}

.coupon-redeem-modal__input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 1px;
}

.coupon-redeem-modal__actions {
  display: flex;
  gap: 10px;
}

.coupon-redeem-modal__cancel,
.coupon-redeem-modal__submit {
  flex: 1;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.coupon-redeem-modal__cancel {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.coupon-redeem-modal__submit {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.18);
}

.coupon-redeem-modal__submit:active,
.coupon-redeem-modal__cancel:active {
  transform: scale(0.98);
}

.coupon-zone-header--standalone {
  margin: 0 0 18px;
  padding: 0 2px;
}

.coupon-zone-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111318;
  letter-spacing: 0.02em;
}

#section-hot-games .card-head h2,
#section-hot .card-head h2,
#section-channels .card-head h2 {
  font-size: 20px;
}

.coupon-zone-header--standalone .coupon-zone-title {
  font-size: 22px;
}

.coupon-zone-desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: #7a8292;
  line-height: 1.45;
}

.coupon-zone-more {
  margin: 8px 0 0;
  font-size: 13px;
}

.coupon-zone-more a {
  color: #4b6cb7;
  text-decoration: none;
  font-weight: 600;
}

.coupon-zone-more a:hover {
  text-decoration: underline;
}

.coupon-zone-sub {
  margin: 16px 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1d24;
}

.coupon-block-hint {
  margin: 0 0 8px;
  font-size: 13px;
}

.coupon-mine-hint {
  margin: 0 0 8px;
  font-size: 13px;
}

.coupon-list-stack {
  display: grid;
  gap: 12px;
}

.coupon-list-card {
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(35, 40, 58, 0.06);
  box-shadow: 0 10px 24px rgba(35, 57, 93, 0.07);
  overflow: hidden;
}

.coupon-list-card--new-user {
  border-color: rgba(109, 87, 255, 0.18);
  box-shadow: 0 12px 24px rgba(100, 84, 232, 0.10);
}

.coupon-list-card--claimed {
  opacity: 0.86;
}

.coupon-list-card__main {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 18px 16px;
}

.coupon-list-card__value {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.coupon-list-card__amount {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  color: #ff4a3f;
  line-height: 1;
}

.coupon-list-card__amount strong {
  font-size: 28px;
  font-weight: 800;
}

.coupon-list-card__amount span {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.coupon-list-card__threshold {
  margin-top: 10px;
  font-size: 14px;
  color: #70798b;
}

.coupon-list-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.coupon-list-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.coupon-list-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: #18202f;
}

.coupon-list-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 102, 102, 0.10);
  color: #ff5b5b;
  font-size: 12px;
  font-weight: 700;
}

.coupon-list-card__meta {
  font-size: 13px;
  color: #7a8292;
  line-height: 1.45;
}

.coupon-list-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid rgba(35, 40, 58, 0.06);
  background: linear-gradient(180deg, rgba(255, 248, 244, 0.60), rgba(255, 255, 255, 0.96));
}

.coupon-list-card__detail {
  min-width: 0;
  font-size: 13px;
  color: #7f8796;
  line-height: 1.4;
}

.coupon-list-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.coupon-list-card__action,
.coupon-list-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.coupon-list-card__action {
  border: 1px solid rgba(35, 40, 58, 0.10);
  background: #fff;
  color: #2f3441;
  cursor: pointer;
}

.coupon-list-card__action--primary {
  border-color: rgba(255, 108, 114, 0.10);
  background: rgba(255, 107, 122, 0.14);
  color: #ff5162;
}

.coupon-list-card__status {
  background: rgba(35, 57, 93, 0.08);
  color: #687287;
}

.coupon-list-card__status--used {
  background: rgba(35, 57, 93, 0.10);
  color: #5f6779;
}

.coupon-list-card__status--muted {
  background: rgba(255, 184, 0, 0.12);
  color: #a77a00;
}

.coupon-zone-scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.coupon-zone-scroll::-webkit-scrollbar {
  height: 5px;
}

.coupon-zone-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
}

.coupon-zone-empty {
  flex: 1 1 auto;
  min-width: 100%;
  padding: 16px 0;
  text-align: center;
}

.coupon-face-card {
  display: flex;
  align-items: stretch;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #faf4eb 0%, #f3e8da 100%);
  border: 1px solid rgba(180, 150, 110, 0.22);
  box-shadow: 0 6px 18px rgba(120, 90, 50, 0.08);
}

.coupon-face-card__main {
  flex: 1;
  min-width: 0;
  padding: 14px 12px 12px;
}

.coupon-face-card__top {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.coupon-face-card__amount {
  font-size: 28px;
  font-weight: 800;
  color: #3f2f22;
  line-height: 1;
  letter-spacing: -0.02em;
}

.coupon-face-card__condition {
  font-size: 13px;
  font-weight: 600;
  color: #8b7355;
  line-height: 1.3;
}

.coupon-face-card__type {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 800;
  color: #4a3728;
  line-height: 1.25;
}

.coupon-face-card--new-user .coupon-face-card__type {
  color: #e04f16;
}

.coupon-face-card--store .coupon-face-card__type {
  color: #c45c00;
}

.coupon-face-card--redeem .coupon-face-card__type {
  color: #6b4eff;
}

.coupon-face-card__validity {
  margin-top: 8px;
  font-size: 11px;
  color: #a8957a;
  line-height: 1.35;
  white-space: nowrap;
}

.coupon-face-card__stub {
  width: 76px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background:
    repeating-linear-gradient(90deg, rgba(201, 154, 90, 0.1) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #f0e4d4 0%, #e8dcc8 100%);
  border-left: 1px dashed rgba(139, 115, 85, 0.32);
}

.coupon-face-card__status {
  font-size: 12px;
  font-weight: 700;
  color: #8b7355;
  text-align: center;
  line-height: 1.35;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 1px;
}

.coupon-face-card__use-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #d4a574 0%, #c08a4a 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(160, 110, 50, 0.22);
}

.coupon-face-card__use-btn--outline {
  background: transparent;
  color: #a07238;
  border: 1px solid rgba(160, 114, 56, 0.45);
  box-shadow: none;
}

.coupon-face-card__status--muted {
  color: #a77a00;
}

.coupon-face-card__status--claim {
  color: #a07238;
  font-weight: 700;
}

.coupon-face-card__status--login {
  color: #8b7355;
  font-weight: 700;
}

.coupon-face-card--clickable {
  cursor: pointer;
}

.coupon-face-card--clickable:active {
  transform: scale(0.985);
}

.coupon-face-card--claimed,
.coupon-face-card--used {
  opacity: 0.78;
  filter: saturate(0.82);
}

.coupon-face-card--compact {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 248px;
  max-width: 280px;
}

.coupon-wallet-list {
  display: grid;
  gap: 12px;
}

.coupon-ticket {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 118px;
  max-width: 148px;
  border-radius: 0 14px 14px 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #ffc49a 0%, #ff8f5c 42%, #f05a2d 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(220, 86, 36, 0.28);
  user-select: none;
  overflow: hidden;
}

.coupon-ticket__shine {
  position: absolute;
  inset: -20% auto -20% -30%;
  width: 42%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.22) 48%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg);
  pointer-events: none;
}

.coupon-ticket--redeem:not(.coupon-ticket--claimed) {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #ffd98a 0%, #ffb347 42%, #f08a1a 100%);
  box-shadow: 0 8px 20px rgba(210, 120, 20, 0.26);
}

.coupon-ticket::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 0;
  border-left: 6px dotted rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

/* 已领取：置灰弱化（首页单列与「我的优惠券」页共用） */
.coupon-ticket--claimed {
  background: linear-gradient(160deg, #b9bbc5 0%, #9ea1ad 55%, #8f929e 100%);
  box-shadow: 0 2px 10px rgba(20, 24, 40, 0.1);
  opacity: 0.9;
  filter: saturate(0.45);
}

.coupon-ticket--claimed::before {
  border-left-color: rgba(255, 255, 255, 0.55);
}

.coupon-ticket--claimed .coupon-ticket__amount,
.coupon-ticket--claimed .coupon-ticket__rule {
  color: rgba(255, 255, 255, 0.88);
}

.coupon-ticket__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 14px 14px 18px;
  min-height: 118px;
}

.coupon-ticket__amount {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.coupon-ticket__rule {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  padding: 0 2px;
}

.coupon-ticket__btn {
  margin-top: 10px;
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: #33363f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  touch-action: manipulation;
}

.coupon-ticket__btn:hover {
  filter: brightness(1.05);
}

.coupon-ticket__btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: none;
}

.coupon-ticket__badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.coupon-ticket__badge--muted {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  padding: 5px 8px;
}

.coupon-ticket--new-user:not(.coupon-ticket--claimed) {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #c8b6ff 0%, #8f74ff 42%, #6b52e8 100%);
  box-shadow: 0 8px 20px rgba(92, 68, 210, 0.28);
}

.coupon-wallet-list {
  display: grid;
  gap: 14px;
}

.coupon-wallet-card {
  position: relative;
  display: grid;
  grid-template-columns: 108px 1px minmax(0, 1fr);
  align-items: stretch;
  min-height: 118px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(135deg, #ff9f7a 0%, #ff6a45 52%, #ef4228 100%);
  box-shadow: 0 12px 28px rgba(220, 72, 36, 0.22);
}

.coupon-wallet-card--new-user {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(135deg, #b8a6ff 0%, #8368ff 52%, #6246e8 100%);
  box-shadow: 0 12px 28px rgba(88, 66, 210, 0.24);
}

.coupon-wallet-card--redeem {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(135deg, #ffd98a 0%, #ffb347 52%, #f08a1a 100%);
  box-shadow: 0 12px 28px rgba(210, 120, 20, 0.22);
}

.coupon-wallet-card__shine {
  position: absolute;
  inset: -30% auto -30% -20%;
  width: 38%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-16deg);
  pointer-events: none;
}

.coupon-wallet-card__left {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  text-align: center;
}

.coupon-wallet-card__amount {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  line-height: 1;
}

.coupon-wallet-card__currency {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.coupon-wallet-card__amount strong {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.coupon-wallet-card__rule {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.92;
}

.coupon-wallet-card__divider {
  position: relative;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.72) 0 4px,
    transparent 4px 8px
  );
}

.coupon-wallet-card__right {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px 14px 12px;
}

.coupon-wallet-card__tag {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 11px;
  font-weight: 700;
}

.coupon-wallet-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.coupon-wallet-card__scope {
  margin: 0;
  font-size: 12px;
  opacity: 0.88;
  line-height: 1.35;
}

.coupon-wallet-card__use {
  align-self: flex-start;
  margin-top: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #d94828;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.coupon-wallet-card--new-user .coupon-wallet-card__use {
  color: #5b42d8;
}

.coupon-wallet-card--redeem .coupon-wallet-card__use {
  color: #c87400;
}

.my-coupons-owned-page {
  background: #f5f6f8;
}

.my-coupons-owned-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.my-coupons-owned-back {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1a1d26;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.my-coupons-owned-back svg {
  width: 22px;
  height: 22px;
  margin-left: -2px;
}

.my-coupons-owned-title {
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
}

.my-coupons-owned-spacer {
  width: 40px;
}

.my-coupons-owned-main {
  padding-top: 16px;
}

.my-coupons-owned-hint {
  margin: 0;
  padding: 0 4px;
  font-size: 14px;
}

.my-coupons-entry-page.user-body {
  background: #f5f6f8;
}

.my-coupons-entry-main {
  padding-top: 12px;
}

.my-coupons-entry-head {
  position: relative;
  padding: 0 72px 10px 4px;
}

.my-coupons-entry-head .coupon-zone-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111318;
}

.coupon-redeem-entry-btn--corner {
  position: absolute;
  top: 2px;
  right: 4px;
  z-index: 2;
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: #23395d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(35, 57, 93, 0.16);
}

.my-coupons-entry-page .storefront-subpage-head {
  grid-template-columns: 40px 1fr auto;
}

.my-coupons-entry-page .storefront-subpage-spacer {
  width: auto;
  min-width: 0;
  justify-self: end;
}

.coupon-redeem-entry-btn--header {
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: #23395d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(35, 57, 93, 0.16);
}

.coupon-home-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.coupon-home-grid::-webkit-scrollbar {
  height: 4px;
}

.coupon-home-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
}

.coupon-home-grid .coupon-face-card--tile {
  flex: 0 0 calc((100% - 16px) / 3);
  min-width: calc((100% - 16px) / 3);
  scroll-snap-align: start;
}

.coupon-home-grid .coupon-zone-empty {
  flex: 1 0 100%;
  min-width: 100%;
}

.coupon-entry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coupon-entry-list .coupon-face-card {
  width: 100%;
}

.coupon-home-grid .coupon-zone-empty,
.coupon-entry-list .coupon-zone-empty {
  width: 100%;
}

.coupon-face-card--tile {
  position: relative;
  flex-direction: column;
  min-width: 0;
}

.coupon-face-card--tile .coupon-face-card__main {
  width: 100%;
  padding: 12px 8px 8px;
}

.coupon-face-card--tile .coupon-face-card__top {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.coupon-face-card--tile .coupon-face-card__amount {
  font-size: 17px;
}

.coupon-face-card--tile .coupon-face-card__condition {
  font-size: 9px;
  line-height: 1.25;
}

.coupon-face-card--tile .coupon-face-card__type {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
}

.coupon-face-card--tile .coupon-face-card__validity {
  margin-top: 2px;
  font-size: 7.5px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.coupon-face-card__corner-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 0 11px 0 8px;
}

.coupon-face-card__corner-badge--claimed {
  color: #8a8a8a;
  background: #e8e8e8;
}

.coupon-face-card__corner-badge--available {
  color: #fff;
  background: linear-gradient(135deg, #e8874a 0%, #d45c28 100%);
  box-shadow: 0 2px 6px rgba(212, 92, 40, 0.28);
}

.coupon-face-card__corner-badge--used {
  color: #777;
  background: rgba(0, 0, 0, 0.08);
}

.coupon-face-card__foot {
  margin-top: 6px;
  text-align: center;
}

.coupon-face-card__foot-text {
  font-size: 10px;
  font-weight: 700;
  color: #8b7355;
}

.coupon-face-card__foot-text--claim {
  color: #a07238;
}

.coupon-face-card__foot-text--muted {
  color: #a77a00;
}

.coupon-face-card--tile.coupon-face-card--claimed,
.coupon-face-card--tile.coupon-face-card--used {
  opacity: 0.82;
}

.coupon-zone-header--home {
  position: relative;
  margin-bottom: 8px;
  padding-right: 72px;
  min-height: 24px;
}

.coupon-zone-header--home .coupon-zone-title {
  margin: 0;
}

.coupon-zone-header--home .coupon-redeem-entry-btn--corner {
  top: 0;
  right: 0;
}

.coupon-ticket__kindtag {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

/* 首页优惠券专区 */
.user-main-catalog.stack {
  gap: 14px;
}

.user-main-catalog .card-head {
  margin-bottom: 10px;
}

.user-main-catalog .games-channels-bundle {
  gap: 14px;
}

.app-card--coupon-zone--home {
  padding-top: 10px;
  padding-bottom: 14px;
}

.app-card--coupon-zone--home .coupon-home-grid {
  padding: 0 0 4px;
}

.user-main-catalog .card-head .coupon-zone-title,
.app-card--coupon-zone--home .coupon-zone-title {
  font-size: 17px;
  font-weight: 800;
  color: #111318;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.coupon-zone-title .section-title-icon {
  display: inline-block;
  margin-right: 4px;
  font-size: 16px;
  vertical-align: -1px;
}

.app-card--coupon-zone--home .coupon-zone-empty {
  padding: 10px 0;
  font-size: 13px;
}

/* 旧版券卡片（若其它页引用可保留） */
.coupon-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(135deg, #fff1e5 0%, #ffdfcf 100%);
}

.coupon-price {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
}

.coupon-scope {
  font-size: 14px;
  color: var(--muted);
}

.channel-row {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.channel-chip {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--paper-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.channel-chip.active {
  background: var(--accent);
  color: #fff;
}

.metric-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  border-radius: 22px;
  background: var(--paper-alt);
  padding: 18px;
}

.metric-card strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

.grid-products,
.hot-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hot-products-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(96px, 96px);
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.hot-products-strip::-webkit-scrollbar {
  height: 4px;
}

.hot-products-strip::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
}

.hot-products-strip .product-card {
  min-width: 0;
  scroll-snap-align: start;
}

.hot-products-item {
  min-width: 0;
  scroll-snap-align: start;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(24, 36, 59, 0.06);
  position: relative;
}

.hot-products-item__main {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  font: inherit;
  color: inherit;
}

.hot-products-item__visual {
  position: relative;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  display: block;
}

.hot-products-item__visual .visual-img {
  width: 100%;
  min-height: 92px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.hot-products-item__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  background: #ff4d4f;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.hot-products-item__body {
  padding: 8px 6px 10px;
}

.hot-products-item__title {
  min-height: 2.6em;
  font-size: 12px;
  line-height: 1.3;
  color: #273247;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hot-products-item__tag {
  margin-top: 6px;
  color: #d84545;
  font-size: 11px;
  font-weight: 700;
}

.hot-products-item__footer {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.hot-products-item__price {
  color: #ff5b3d;
  font-size: 15px;
  line-height: 1;
}

.hot-products-strip .product-card > .muted,
.hot-products-strip .tag-row,
.hot-products-strip .product-actions {
  display: none;
}

.hot-products-strip .product-title {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

.hot-products-strip .product-visual {
  min-height: 74px;
  border-radius: 14px;
  margin-bottom: 8px;
}

.hot-products-strip .product-visual .visual-img {
  min-height: 74px;
}

.hot-products-strip .price-line {
  margin: 6px 0 0;
  justify-content: center;
}

.hot-products-strip .price-line strong {
  font-size: 15px;
}

.hot-products-strip .price-line span {
  font-size: 10px;
}

.hot-products-more-card {
  min-width: 0;
  scroll-snap-align: start;
  border-radius: 18px;
  border: 1px dashed rgba(35, 57, 93, 0.18);
  background: linear-gradient(180deg, #f7f9ff 0%, #fff8f1 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #30415f;
  text-decoration: none;
}

.hot-products-more-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(35, 57, 93, 0.08);
  font-size: 24px;
  line-height: 1;
}

.hot-products-more-card__label {
  font-size: 12px;
  font-weight: 700;
}

/* 用户端：热门 / 各游戏分类，每行 5 个商品 */
.catalog-rows-2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

@media (max-width: 1180px) {
  .catalog-rows-2 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .catalog-rows-2 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .catalog-rows-2 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.catalog-rows-2.is-strip-empty {
  display: flex;
  grid-template-columns: none;
}

.catalog-rows-2 .product-card {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.catalog-rows-2 .product-visual {
  min-height: 92px;
}

.catalog-rows-2 .product-visual .visual-img {
  min-height: 92px;
}

.catalog-rows-2 .product-title {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.catalog-rows-2 .product-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.catalog-rows-2 .product-actions .ghost-btn,
.catalog-rows-2 .product-actions .primary-btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  padding: 8px 6px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.catalog-rows-2 .product-card > .muted,
.catalog-rows-2 .tag-row,
.catalog-rows-2 .product-actions {
  display: none;
}

.catalog-rows-2 .price-line {
  justify-content: center;
  margin: 6px 0 0;
}

.catalog-strip-placeholder {
  width: 100%;
}

.games-channels-bundle {
  display: grid;
  gap: 22px;
}

.games-catalog-stack {
  display: grid;
  gap: 22px;
}

.catalog-game-card .card-head h3 {
  margin: 0;
  font-size: 20px;
}

.game-quick-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}

@media (max-width: 1180px) {
  .game-quick-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .game-quick-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .game-quick-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.game-quick-nav.is-strip-empty {
  display: flex;
  grid-template-columns: none;
}

.game-entry-card {
  border-radius: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.game-entry-card:hover {
  filter: brightness(1.02);
}

.game-entry-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: linear-gradient(135deg, #dce9ff 0%, #fff0e3 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.game-entry-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-entry-emoji {
  font-size: 34px;
}

.game-entry-name {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #273247;
  text-align: center;
}

.quick-nav-chip,
a.quick-nav-chip {
  box-sizing: border-box;
}

.quick-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(35, 40, 58, 0.1);
  background: var(--paper-alt);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  color: inherit;
}

a.quick-nav-chip {
  text-decoration: none;
}

.quick-nav-chip:hover,
a.quick-nav-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.catalog-game-title-link {
  color: inherit;
  text-decoration: none;
}

.catalog-game-title-link:hover {
  color: var(--accent);
}

.brand-link {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
}

.brand-link:hover {
  filter: brightness(1.06);
}

.game-shop-intro {
  margin-top: 18px;
}

.game-shop-page.user-shell {
  background: #f5f5f5;
  border-color: rgba(35, 40, 58, 0.06);
}

.game-shop-topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: max(8px, env(safe-area-inset-top)) 12px 10px;
  padding-left: max(6px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
}

.game-shop-banner .game-shop-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.game-shop-banner .game-shop-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.game-shop-topbar--plain {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  justify-content: center;
}

.game-shop-page-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  color: #1a1d26;
}

.game-shop-category-bar {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 0;
  z-index: 30;
}

.game-shop-back {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(6px);
}

.game-shop-back:active {
  transform: scale(0.96);
}

.game-shop-back__icon {
  width: 22px;
  height: 22px;
  display: block;
  margin-left: -2px;
}

.game-shop-topbar--plain .game-shop-back {
  background: transparent;
  color: #1a1d26;
  backdrop-filter: none;
}

.game-shop-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.game-shop-brand__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.game-shop-brand__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-shop-topbar--plain .game-shop-brand {
  color: #1a1d26;
}

.game-shop-topbar--plain .game-shop-brand__name {
  text-shadow: none;
}

.game-shop-topbar--plain .game-shop-brand__logo {
  box-shadow: none;
}

.game-shop-banner {
  position: relative;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 8;
  max-height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #253248;
}

.game-shop-banner--emoji {
  background: linear-gradient(135deg, #2f4568 0%, #1a2838 100%);
}

.game-shop-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.38) 100%);
  pointer-events: none;
}

.game-shop-banner__emoji {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 64px;
  opacity: 0.32;
  pointer-events: none;
}

.game-shop-banner__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 14px 16px;
  text-align: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}


.game-shop-category-bar::-webkit-scrollbar {
  display: none;
}

.game-shop-category-bar .game-shop-category-tab {
  flex: 1 0 auto;
  min-width: max(22%, 88px);
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #666;
  padding: 13px 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

.game-shop-category-bar .game-shop-category-tab.is-active {
  background: #e53935;
  color: #fff;
}

.game-shop-page .game-shop-catalog-wrap {
  padding: 12px 12px 28px;
  background: #f5f5f5;
}

.game-shop-toolbar {
  margin-top: 18px;
  grid-template-columns: minmax(0, 2fr) minmax(160px, 200px) auto;
}

@media (max-width: 720px) {
  .game-shop-toolbar {
    grid-template-columns: 1fr;
  }
}

.game-shop-hero {
  display: flex;
  gap: 16px;
  align-items: center;
}

.game-shop-hero-visual {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 32px;
  flex-shrink: 0;
  overflow: hidden;
}

.game-shop-icon-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.game-shop-meta {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  max-height: 3.6em;
  overflow: hidden;
}

.game-shop-error-slot {
  padding: 22px;
}

.game-shop-catalog-wrap {
  padding: 8px 24px 36px;
  display: grid;
  gap: 16px;
}

.game-shop-products {
  margin: 0;
  padding: 0;
}

.game-shop-desc {
  margin: 0;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid rgba(35, 40, 58, 0.08);
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
}

.game-shop-desc-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #2a3142;
}

.game-shop-desc-body {
  margin: 0;
}

.game-shop-product-grid.is-strip-empty {
  display: block;
}

.all-products-grid .all-products-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.all-products-grid .all-products-item__main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.all-products-grid .all-products-item__body {
  flex: 1;
}

.all-products-page {
  background: #f5f5f5;
}

.all-products-page .user-shell {
  background: #f5f5f5;
  border: 0;
  box-shadow: none;
}

.all-products-page .storefront-subpage-head {
  background: #f5f5f5;
  border-bottom: 0;
}

.all-products-header {
  background: #f5f5f5;
  color: #20252f;
  padding: 0 20px 12px;
}

.all-products-header-top {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}

.all-products-back,
.all-products-menu-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #1f2430;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  padding: 0;
}

.all-products-title-wrap {
  text-align: center;
}

.all-products-title-wrap h1 {
  margin: 0;
  font-size: 22px;
}

.all-products-title-wrap p {
  margin: 6px 0 0;
  color: #8a90a0;
  font-size: 12px;
}

.all-products-brand-row {
  margin-top: 8px;
  padding: 10px 2px 0;
}

.all-products-brand-row .brand {
  align-items: center;
}

.all-products-brand-row .brand h2 {
  margin: 0;
  font-size: 18px;
}

.all-products-brand-row .brand p {
  margin: 4px 0 0;
  color: #8a90a0;
}

.all-products-search-panel {
  margin-top: 16px;
}

.all-products-filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.all-products-filter-chip {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #525a69;
  font-weight: 700;
}

.all-products-filter-chip.is-active {
  color: #1f2430;
}

.all-products-content {
  padding-top: 0;
}

.all-products-card {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

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

.all-products-item {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(24, 36, 59, 0.06);
  position: relative;
}

.all-products-item__main {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.open-product-detail:focus-visible {
  outline: none;
}

/* 购物车：红色图标、无红圈，打开下单弹窗 */
.store-cart-btn {
  position: absolute;
  z-index: 3;
  width: auto;
  height: auto;
  min-width: 28px;
  min-height: 28px;
  border-radius: 0;
  border: 0 !important;
  background: transparent !important;
  color: #e53935 !important;
  font-size: 20px !important;
  line-height: 1 !important;
  padding: 4px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  cursor: pointer;
}

.store-cart-btn:active {
  opacity: 0.75;
  transform: none;
}

.hot-products-item .store-cart-btn {
  right: 4px;
  bottom: 4px;
  font-size: 19px !important;
}

.all-products-item .store-cart-btn {
  right: 8px;
  bottom: 8px;
  font-size: 22px !important;
}

article.product-card.open-product-detail {
  cursor: pointer;
}

.all-products-item__visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  margin: 0;
  background: linear-gradient(135deg, #f3f5f8 0%, #e8ebf0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}

.all-products-item__visual .visual-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.all-products-item__body {
  padding: 12px 12px 16px;
  position: relative;
}

.all-products-item__title {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #1f2430;
}

.all-products-item__tag {
  margin-top: 10px;
  color: #d84545;
  font-size: 12px;
  font-weight: 700;
}

.all-products-item__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
}

.all-products-item__price-row strong {
  font-size: 16px;
  color: #20252f;
}

.all-products-item__price-row span {
  color: #b1b6c2;
  text-decoration: line-through;
  font-size: 12px;
}

.points-mall-page .storefront-subpage-head {
  margin-bottom: 0;
}

.points-mall-page.user-shell {
  min-height: 100dvh;
  background: #f5f5f5;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.points-mall-empty {
  padding: 10px 12px;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  color: #9aa0ab;
}

.points-mall-toolbar {
  padding: 0 16px 12px;
}

.points-mall-balance {
  font-size: 13px;
  font-weight: 600;
  color: #23395d;
  white-space: nowrap;
}

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

.points-mall-item {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 14px rgba(24, 36, 59, 0.06);
}

.points-mall-item__visual .visual-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.points-mall-item__body {
  padding: 8px 8px 10px;
}

.points-mall-item__title {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #1f2430;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.points-mall-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.points-mall-item__tag {
  color: #d84545;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.points-mall-item__coupon {
  color: #16a34a;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.points-mall-item__points {
  color: #e85d04;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.points-mall-item__redeem {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: linear-gradient(135deg, #ff8a3d, #ff6b1a);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.points-mall-item__redeem:active {
  opacity: 0.88;
}

.points-mall-confirm-card {
  max-width: 320px;
  padding: 22px 18px 18px;
  text-align: center;
}

.points-mall-confirm-card__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: #1a2744;
}

.points-mall-confirm-card__text {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #1a2744;
  line-height: 1.5;
}

.points-mall-confirm-card__hint {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.45;
}

.points-mall-confirm-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.points-mall-confirm-card__actions .ghost-btn,
.points-mall-confirm-card__actions .primary-btn {
  width: 100%;
  justify-content: center;
}

.points-mall-confirm-card__actions--single {
  grid-template-columns: 1fr;
}

.storefront-dialog {
  z-index: 70;
}

.storefront-dialog-card {
  width: min(320px, calc(100vw - 32px));
}

.user-header .game-shop-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.35;
}

.user-header .game-shop-meta {
  color: rgba(255, 255, 255, 0.78);
}

.user-header .game-shop-toolbar .small-btn {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: 16px;
}

.quick-nav-chip .quick-nav-thumb {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.product-card {
  border-radius: 16px;
  padding: 0;
  background: transparent;
  border: 0;
}

.product-visual {
  min-height: 112px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dce9ff 0%, #fff0e3 100%);
  display: grid;
  place-items: center;
  font-size: 52px;
  margin-bottom: 10px;
  overflow: hidden;
}

.product-visual .visual-img {
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
}

.detail-visual {
  min-height: 160px;
  border-radius: 18px;
  background: linear-gradient(135deg, #dce9ff 0%, #fff0e3 100%);
  display: grid;
  place-items: center;
  font-size: 52px;
  margin-bottom: 14px;
  overflow: hidden;
}

.detail-visual .visual-img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}

.channel-thumb {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 8px;
  vertical-align: middle;
  margin-right: 4px;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-tab {
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(35, 57, 93, 0.16);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  color: var(--accent);
}

.auth-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

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

/* 用户端登录弹窗：带图标输入行 + 全宽登录按钮 + 微信入口占位 */
.auth-input-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 18px;
  border: 1px solid rgba(35, 40, 58, 0.12);
  background: #fff;
  overflow: hidden;
  min-height: 52px;
}

.auth-input-row:focus-within {
  border-color: rgba(255, 122, 69, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.12);
}

.auth-input-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  color: #8b93a5;
  background: rgba(35, 57, 93, 0.04);
}

.auth-input-icon svg {
  display: block;
}

.auth-input-row .field.auth-field {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 14px 16px 14px 4px;
  min-height: 52px;
  box-shadow: none;
}

.modal-footer--auth-full {
  display: block;
  margin-top: 14px;
}

.modal-footer--auth-full .primary-btn,
.primary-btn--block {
  width: 100%;
  justify-content: center;
  min-height: 50px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 16px;
}

.auth-wechat-row {
  margin-top: 12px;
  text-align: center;
}

.auth-wechat-link {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 700;
  color: #07c160;
  cursor: pointer;
  text-decoration: none;
}

.auth-wechat-link:hover {
  text-decoration: underline;
}

.wechat-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.wechat-auth-card {
  width: min(420px, 100%);
  padding: 24px 20px;
}

.wechat-auth-card__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.wechat-auth-card__hint {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
}

.wechat-auth-card__msg {
  margin: 16px 0 0;
  text-align: center;
}

.wechat-auth-card__error {
  margin: 12px 0 0;
  color: #ef4444;
  font-size: 14px;
  line-height: 1.5;
}

.wechat-auth-card__btn {
  margin-top: 16px;
  width: 100%;
}

.wechat-bind-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(35, 40, 58, 0.04);
}

.wechat-bind-profile__avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.wechat-bind-profile__name {
  font-weight: 600;
  font-size: 15px;
}

.auth-switch-row {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.auth-switch-link {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.auth-switch-link:hover {
  text-decoration: underline;
}

.user-auth-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.product-title {
  margin: 0 0 6px;
  font-size: 22px;
}

.product-card > .muted {
  font-size: 14px;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 14px;
}

.price-line strong {
  font-size: 20px;
  color: var(--primary);
}

.price-line span {
  color: var(--muted);
  text-decoration: line-through;
}

/* 商品详情弹层：描述自动换行（含无空格长串） */
.product-detail-description {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.55;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  color: #2a3142;
}

.product-detail-description img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 8px 0;
  display: block;
}

/* 管理端商品描述 Quill */
.admin-quill-wrap {
  border: 1px solid rgba(35, 40, 58, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.admin-quill-wrap .ql-toolbar {
  border: 0;
  border-bottom: 1px solid rgba(35, 40, 58, 0.1);
  border-radius: 14px 14px 0 0;
}

.admin-quill-wrap .ql-container {
  border: 0;
  font-size: 15px;
  min-height: 200px;
}

.admin-quill-wrap .ql-editor {
  min-height: 200px;
}

#create-modal .ql-tooltip {
  z-index: 60;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.order-list {
  grid-template-columns: 1fr;
}

/* 用户端 · 我的订单（移动端卡片列表） */
body.orders-page {
  background: #f2f3f5;
}

.orders-page-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px 8px;
  /* 覆盖 .user-content-grid 的 align-items:start，否则纵向 flex 下子项按内容宽度收缩，右侧会空一大条 */
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.orders-mobile-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.orders-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(35, 40, 58, 0.08);
  box-shadow: 0 2px 8px rgba(35, 40, 58, 0.04);
}

.orders-search-icon {
  font-size: 16px;
  opacity: 0.55;
  flex-shrink: 0;
}

.orders-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  outline: none;
}

.orders-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(35, 40, 58, 0.08);
}

.orders-tabs--equal {
  overflow-x: visible;
}

.orders-tabs--equal .orders-tab {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
}

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

.orders-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 10px 14px 12px;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: #5c6370;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.orders-tab.is-active {
  color: var(--ink);
  font-weight: 800;
}

.orders-tab.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--primary);
}

.orders-order-list {
  padding-bottom: 8px;
}

.user-order-card-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-order-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px 16px;
  box-shadow: 0 2px 12px rgba(35, 40, 58, 0.06);
  border: 1px solid rgba(35, 40, 58, 0.06);
}

.user-order-card--clickable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.user-order-card--clickable:active {
  background: #f8fafc;
}

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

.user-order-card__store {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.user-order-card__chevron {
  font-size: 18px;
  line-height: 1;
  color: #9aa0ab;
  font-weight: 400;
  transform: translateY(-1px);
}

.user-order-card__status {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}

.user-order-card__status--unpaid {
  font-weight: 400;
  color: #e53935;
}

.user-order-card__meta {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
}

.user-order-card__body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
}

.user-order-card__thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(35, 40, 58, 0.08);
  background: #f7f9fc;
}

.user-order-card__thumb--fb {
  display: grid;
  place-items: center;
  font-size: 28px;
}

.user-order-card__info {
  flex: 1;
  min-width: 0;
}

.user-order-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.user-order-card__sub {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
}

.user-order-card__price-block {
  flex-shrink: 0;
  text-align: right;
}

.user-order-card__unit {
  font-size: 15px;
  font-weight: 700;
}

.user-order-card__qty {
  margin-top: 4px;
  font-size: 12px;
}

.orders-unpaid-timeout-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(227, 116, 0, 0.1);
  color: #c56a00;
  font-size: 13px;
  line-height: 1.5;
}

.user-order-card__timeout-hint {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(227, 116, 0, 0.08);
  color: #c56a00;
  font-size: 12px;
  line-height: 1.45;
}

.user-order-card__foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(35, 40, 58, 0.06);
}

.user-order-card__urgency {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f6f7f9;
  font-size: 13px;
  line-height: 1.4;
  color: #e53935;
}

.user-order-card__urgency-main {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.user-order-card__urgency .user-order-card__pay-sum {
  margin: 0;
  flex-shrink: 0;
  text-align: right;
  font-size: 14px;
  color: var(--muted);
}

.user-order-card__urgency .user-order-card__pay-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.user-order-card__urgency-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #e53935;
}

.user-order-card__pay-sum {
  text-align: right;
  font-size: 14px;
  color: var(--muted);
}

.user-order-card__pay-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.user-order-card__actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.user-order-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(35, 40, 58, 0.22);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.user-order-pill--muted {
  border-color: rgba(35, 40, 58, 0.22);
  color: var(--ink);
  background: #fff;
}

.user-order-pill--primary-hollow {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}

.user-order-pill--primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

@media (min-width: 769px) {
  .orders-page-main {
    padding: 18px 20px 12px;
  }

  .user-order-card {
    border-radius: 18px;
  }
}

body.order-detail-page {
  background: #f3f5f8;
}

.order-detail-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px 24px;
}

.order-detail-head {
  margin-bottom: 0;
}

.order-detail-refresh-btn {
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 4px 0;
}

.order-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
}

.order-detail-action-btn {
  min-width: 96px;
  text-align: center;
  text-decoration: none;
}

.order-detail-page .admin-mobile-detail-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.order-detail-page .admin-mobile-detail-line {
  font-size: 14px;
  line-height: 1.6;
}

@media (min-width: 769px) {
  .order-detail-main {
    padding: 18px 20px 24px;
    max-width: 720px;
    margin: 0 auto;
  }
}

.user-orders-table-wrap {
  overflow-x: auto;
}

.user-orders-table {
  width: 100%;
  min-width: 880px;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.user-orders-table thead th {
  font-size: 15px;
  color: #586076;
  font-weight: 700;
  border-bottom: 0;
  padding: 8px 12px 10px;
}

.user-orders-table tbody tr {
  background: #fff;
  box-shadow: 0 2px 10px rgba(35, 40, 58, 0.06);
}

.user-orders-table tbody td {
  padding: 16px 12px;
  border-bottom: 0;
  vertical-align: top;
}

.user-orders-table tbody td:first-child {
  border-radius: 16px 0 0 16px;
}

.user-orders-table tbody td:last-child {
  border-radius: 0 16px 16px 0;
}

.user-order-product {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.user-order-thumb {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(35, 40, 58, 0.08);
  background: #f7f9fc;
}

.user-order-thumb-fallback {
  display: grid;
  place-items: center;
  font-size: 30px;
}

.user-order-product-main {
  min-width: 0;
}

.user-order-product-title {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 6px;
  color: #2559aa;
}

.user-order-remark {
  white-space: pre-wrap;
}

.user-order-price-cell {
  white-space: nowrap;
  font-size: 22px;
  font-weight: 700;
  color: #2e3442;
}

.user-order-subtotal-cell {
  white-space: nowrap;
  font-size: 24px;
  font-weight: 800;
  color: #2e3442;
}

@media (max-width: 900px) {
  .user-order-product-title {
    font-size: 16px;
  }

  .user-order-price-cell,
  .user-order-subtotal-cell {
    font-size: 18px;
  }
}

.order-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--paper-alt);
}

.order-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.status {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status.pending {
  background: #ffe7e7;
  color: #d93025;
}

.status.shipped {
  background: #e7f8ef;
  color: #1f8f4f;
}

.status.processing {
  background: #dce9ff;
  color: #305ea8;
}

.status.done {
  background: var(--green-soft);
  color: var(--green);
}

.order-status-text.pending {
  color: #d93025;
  font-weight: 700;
}

.order-status-text.unpaid {
  color: #e37400;
  font-weight: 700;
}

.order-status-text.cancelled {
  color: #9ca3af;
  font-weight: 700;
}

.order-status-text.shipped {
  color: #1f8f4f;
  font-weight: 700;
}

.support-trigger {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  flex: 0 0 56px;
  border-radius: 18px;
  border: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #ffa764 100%);
  color: #fff;
  font-size: 28px;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
}

a.support-trigger,
.support-trigger--link {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
}

.support-trigger.hidden {
  display: none;
}

.support-trigger button {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #ffa764 100%);
  color: #fff;
  font-size: 28px;
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
}

.support-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.support-trigger-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.24);
  animation: supportUnreadPulse 1.8s ease-in-out infinite;
}

.support-trigger-badge.hidden {
  display: none;
}

.support-panel {
  position: fixed;
  right: 24px;
  bottom: 104px;
  width: 420px;
  min-height: 620px;
  border-radius: 28px;
  padding: 22px;
  z-index: 25;
}

.bottom-entry-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(1280px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  background: rgba(255, 253, 250, 0.94);
  border-top: 1px solid rgba(35, 40, 58, 0.10);
  box-shadow: 0 -10px 28px rgba(28, 39, 63, 0.10);
  backdrop-filter: blur(16px);
  z-index: 18;
}

.bottom-entry-nav__item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 10px calc(18px + env(safe-area-inset-bottom));
  color: #6a7182;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.bottom-entry-nav__item.is-active {
  color: var(--accent);
  background: linear-gradient(180deg, rgba(35, 57, 93, 0.08), rgba(35, 57, 93, 0.02));
}

.bottom-entry-nav__label {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  white-space: nowrap;
}

.support-panel.hidden,
.modal.hidden,
.view-panel.hidden,
.login-error.hidden {
  display: none;
}

.support-chat-status {
  margin-top: 12px;
  font-size: 12px;
}

.support-chat-stream {
  margin-top: 10px;
  max-height: min(68vh, 620px);
  min-height: 360px;
  overflow-y: auto;
  padding: 10px 4px;
  border-radius: 16px;
  background: rgba(35, 40, 58, 0.04);
}

.support-chat-empty {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.support-chat-empty-bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(35, 40, 58, 0.08);
  color: var(--muted, #6b7280);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.support-chat-session-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: #6b7280;
  font-size: 12px;
  user-select: none;
}

.support-chat-session-divider::before,
.support-chat-session-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(35, 57, 93, 0.12);
}

.support-chat-session-divider span {
  padding: 0 4px;
  white-space: nowrap;
}

.support-chat-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.support-chat-row--agent {
  align-items: flex-start;
}

.support-chat-row--user {
  align-items: flex-end;
}

.support-chat-meta {
  font-size: 11px;
  color: var(--muted, #6b7280);
  margin-bottom: 4px;
  padding: 0 4px;
}

.support-chat-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  line-height: 1.45;
  font-size: 14px;
  word-break: break-word;
}

.support-chat-row--agent .support-chat-bubble {
  background: #fff;
  border: 1px solid rgba(35, 40, 58, 0.1);
  border-bottom-left-radius: 4px;
}

.support-chat-row--user .support-chat-bubble {
  background: var(--accent, #2563eb);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.support-chat-bubble--system {
  background: rgba(91, 108, 255, 0.1);
  border: 1px dashed rgba(91, 108, 255, 0.35);
  color: var(--ink, #1f2937);
}

.support-chat-footer {
  margin-top: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(35, 40, 58, 0.08);
  box-shadow: 0 10px 28px rgba(35, 40, 58, 0.06);
}

.support-chat-footer .textarea {
  min-height: 48px;
  height: 48px;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  box-shadow: none;
  resize: none;
  overflow-y: auto;
}

.support-chat-footer .primary-btn {
  height: 48px;
  min-height: 48px;
  padding: 0 22px;
  align-self: stretch;
  border-radius: 16px;
}

.support-upload-btn {
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(35, 40, 58, 0.08);
  background: rgba(35, 40, 58, 0.04);
  color: var(--ink, #1f2937);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.support-upload-btn:hover {
  background: rgba(35, 40, 58, 0.08);
}

.support-chat-image {
  display: block;
  max-width: min(220px, 100%);
  max-height: 280px;
  border-radius: 14px;
  object-fit: cover;
}

.admin-main--support-auto-reply {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.admin-main--support-auto-reply .admin-content {
  flex: 1;
  min-height: 0;
}

.admin-table-card--support-auto-reply {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(35, 57, 93, 0.08);
}

.admin-table-card--support-auto-reply .table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0;
}

.admin-table-card--support-quick-reply {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(35, 57, 93, 0.08);
}

.admin-table-card--support-quick-reply .table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0;
}

.admin-main--support-quick-reply {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 14px 14px 12px;
}

.admin-main--support-quick-reply .admin-header__intro {
  display: none !important;
}

.admin-main--support-quick-reply .admin-header {
  margin-bottom: 12px;
}

.admin-main--support-quick-reply .admin-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.admin-main--support-quick-reply .admin-table-card {
  flex: 1;
  width: 100%;
  max-width: none;
  border-radius: 16px;
}

.support-quick-reply {
  padding: 16px 18px;
  flex: 1;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.support-qr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.support-qr-new-btn {
  min-width: 140px;
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 700;
}

.support-qr-search {
  position: relative;
  flex: 1;
  max-width: 320px;
  min-width: 200px;
}

.support-qr-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
}

.support-qr-search__input {
  width: 100%;
  padding-left: 36px;
  height: 40px;
  border-radius: 8px;
}

.support-qr-body {
  display: flex;
  gap: 0;
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 1px solid rgba(35, 57, 93, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.support-qr-sidebar {
  width: 168px;
  flex-shrink: 0;
  border-right: 1px solid rgba(35, 57, 93, 0.1);
  padding: 12px 0;
  background: #fafbfc;
}

.support-qr-sidebar-add {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  padding: 8px 16px;
  cursor: pointer;
}

.support-qr-sidebar-add:hover {
  background: rgba(37, 99, 235, 0.06);
}

.support-qr-groups {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.support-qr-groups__row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding-right: 8px;
}

.support-qr-groups__row:hover,
.support-qr-groups__row--active {
  background: #eef2f7;
}

.support-qr-groups__row--editing {
  display: block;
  padding: 0;
  background: transparent;
}

.support-qr-groups__item {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  padding: 10px 8px 10px 16px;
  color: var(--ink);
  cursor: pointer;
}

.support-qr-groups__row--active .support-qr-groups__item {
  font-weight: 800;
}

.support-qr-groups__ops {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.support-qr-groups__row:hover .support-qr-groups__ops,
.support-qr-groups__row--active .support-qr-groups__ops {
  opacity: 1;
}

.support-qr-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.support-qr-icon-btn:hover {
  background: rgba(35, 57, 93, 0.08);
  color: #374151;
}

.support-qr-icon-btn--danger:hover {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

.support-qr-group-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 12px;
}

.support-qr-group-form .primary-btn,
.support-qr-group-form .ghost-btn {
  height: 34px;
}

.support-qr-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.support-qr-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.support-qr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.support-qr-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f8fb;
  text-align: left;
  font-weight: 800;
  color: var(--ink);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(35, 57, 93, 0.1);
  white-space: nowrap;
}

.support-qr-table thead th:nth-child(1) {
  width: 18%;
}

.support-qr-table thead th:nth-child(3) {
  width: 12%;
}

.support-qr-table thead th:nth-child(4) {
  width: 120px;
}

.support-qr-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(35, 57, 93, 0.08);
  vertical-align: top;
}

.support-qr-row:hover {
  background: rgba(37, 99, 235, 0.02);
}

.support-qr-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.support-qr-check input {
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.support-qr-keyword {
  font-weight: 700;
  color: var(--ink);
}

.support-qr-content {
  display: block;
  color: #4b5563;
  line-height: 1.55;
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-qr-td--ops {
  white-space: nowrap;
}

.support-qr-link {
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.support-qr-link:hover {
  text-decoration: underline;
}

.support-qr-link--danger {
  color: #dc2626;
}

.support-qr-sep {
  margin: 0 6px;
  color: rgba(35, 57, 93, 0.25);
}

.support-qr-empty {
  text-align: center;
  padding: 40px 16px !important;
}

.support-qr-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid rgba(35, 57, 93, 0.1);
  background: #fafbfc;
}

.support-qr-foot__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.support-qr-foot__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.support-qr-batch-group {
  width: 120px;
  height: 36px;
  font-size: 13px;
}

.support-qr-batch-del {
  height: 36px;
}

.support-qr-pager {
  display: flex;
  align-items: center;
  gap: 4px;
}

.support-qr-pager__btn,
.support-qr-page__num {
  min-width: 32px;
  height: 32px;
  border: 1px solid rgba(35, 57, 93, 0.12);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.support-qr-page__num--active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.support-qr-pager__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.support-qr-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.support-qr-jump__input {
  width: 48px;
  height: 32px;
  padding: 0 6px;
  text-align: center;
}

.support-qr-form {
  margin-bottom: 4px;
  padding: 16px;
  border: 1px solid rgba(35, 57, 93, 0.12);
  border-radius: 10px;
  background: #fafbfc;
}

.support-qr-form__grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 12px;
}

.support-qr-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.support-qr-form__field--full {
  margin-top: 12px;
}

.support-qr-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 960px) {
  .support-qr-body {
    flex-direction: column;
  }

  .support-qr-sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(35, 57, 93, 0.1);
  }

  .support-qr-form__grid {
    grid-template-columns: 1fr;
  }
}

.site-notice-admin {
  max-width: 720px;
  padding: 4px 4px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-notice-admin__intro {
  margin: 0;
  line-height: 1.6;
}

.site-notice-admin__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-notice-admin__label {
  font-size: 14px;
  font-weight: 600;
}

.site-notice-admin__textarea {
  min-height: 120px;
  resize: vertical;
}

.site-notice-admin__counter {
  font-size: 12px;
}

.site-notice-admin__check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.site-notice-admin__preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-notice-admin__preview {
  border-radius: 12px;
  overflow: hidden;
}

.site-notice-admin__meta {
  margin: 0;
  font-size: 12px;
}

.site-notice-admin__error {
  margin: 0;
  color: #dc2626;
  font-size: 13px;
}

.site-notice-admin__footer {
  display: flex;
  justify-content: flex-start;
  padding-top: 4px;
}

.site-logo-admin {
  max-width: 560px;
  padding: 4px 4px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-logo-admin__intro {
  margin: 0;
  line-height: 1.6;
}

.site-logo-admin__intro code {
  font-size: 12px;
}

.site-logo-admin__preview-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-logo-admin__preview-frame {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(35, 40, 58, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.site-logo-admin__preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-logo-admin__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-logo-admin__label {
  font-size: 14px;
  font-weight: 600;
}

.site-logo-admin__hint {
  font-size: 12px;
}

.site-logo-admin__meta {
  margin: 0;
  font-size: 12px;
}

.site-logo-admin__error {
  margin: 0;
  color: #dc2626;
  font-size: 13px;
}

.site-logo-admin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consumption-tip-admin {
  max-width: 640px;
  padding: 4px 4px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.consumption-tip-admin__intro {
  margin: 0;
  line-height: 1.6;
}

.consumption-tip-admin__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.consumption-tip-admin__preview-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consumption-tip-admin__preview-frame {
  width: min(100%, 420px);
  height: 112px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(35, 40, 58, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.consumption-tip-admin__preview-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.consumption-tip-admin__preview-empty {
  padding: 24px 16px;
  font-size: 13px;
}

.consumption-tip-admin__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consumption-tip-admin__label {
  font-size: 14px;
  font-weight: 600;
}

.consumption-tip-admin__hint {
  font-size: 12px;
}

.consumption-tip-admin__meta {
  margin: 0;
  font-size: 12px;
}

.consumption-tip-admin__error {
  margin: 0;
  color: #dc2626;
  font-size: 13px;
}

.consumption-tip-admin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.identity-verification-admin {
  max-width: 720px;
  padding: 8px 4px 24px;
}

.identity-verification-admin__intro {
  margin: 0 0 16px;
  line-height: 1.6;
}

.identity-verification-admin__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 600;
}

.identity-verification-admin__notes {
  margin: 0 0 16px;
  padding-left: 18px;
  line-height: 1.7;
}

.identity-verification-admin__ok {
  margin: 0 0 12px;
  color: #059669;
  font-size: 13px;
}

.identity-verification-admin__warn {
  margin: 0 0 12px;
  color: #b45309;
  font-size: 13px;
  line-height: 1.6;
}

.identity-verification-admin__meta {
  margin: 0 0 8px;
}

.identity-verification-admin__error {
  margin: 0 0 12px;
  color: #dc2626;
  font-size: 13px;
}

.identity-verification-admin__actions {
  display: flex;
  gap: 10px;
}

.support-auto-reply {
  padding: 0 4px 16px;
  min-height: 100%;
}

.support-ar-panel--session {
  max-width: 720px;
}

.support-ar-session-form {
  margin-top: 8px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(35, 40, 58, 0.08);
}

.support-ar-session-form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink, #1f2937);
}

.support-ar-session-form__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.support-ar-session-form__input {
  width: 120px;
  height: 42px;
  font-size: 16px;
  font-weight: 600;
}

.support-ar-session-form__unit {
  font-size: 13px;
}

.support-ar-session-form__tip {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.support-ar-session-form__actions {
  margin-top: 18px;
}

.support-ar-session-form__view {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.support-ar-session-form__value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink, #1f2937);
  min-width: 2ch;
}

.support-ar-session-form__error {
  margin: 12px 0 0;
  font-size: 13px;
  color: #c2410c;
}

.support-ar-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid rgba(35, 57, 93, 0.1);
  padding: 0 8px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.support-ar-tabs__item {
  border: 0;
  background: transparent;
  padding: 14px 18px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #5c6478;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.support-ar-tabs__item:hover {
  color: var(--accent);
}

.support-ar-tabs__item--active {
  color: var(--accent);
  font-weight: 800;
}

.support-ar-tabs__item--active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}

.support-ar-panel {
  padding: 20px 20px 12px;
}

.support-ar-panel__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.support-ar-panel__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.support-ar-panel__hint {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.55;
  max-width: 920px;
}

.support-ar-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.support-ar-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.support-ar-switch__track {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #c9d2e0;
  transition: background 0.2s ease;
  position: relative;
}

.support-ar-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(20, 28, 46, 0.18);
  transition: transform 0.2s ease;
}

.support-ar-switch input:checked + .support-ar-switch__track {
  background: #3b82f6;
}

.support-ar-switch input:checked + .support-ar-switch__track::after {
  transform: translateX(20px);
}

.support-ar-content {
  margin-top: 22px;
}

.support-ar-content__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}

.support-ar-content__bar {
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: var(--accent);
}

.support-ar-content__body {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.support-ar-phone {
  display: flex;
  justify-content: center;
}

.support-ar-phone__shell {
  width: 260px;
  border-radius: 28px;
  border: 8px solid #1e2430;
  background: #f4f6fa;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(35, 57, 93, 0.14);
}

.support-ar-phone__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 12px;
  background: #ededed;
  font-size: 12px;
  font-weight: 700;
}

.support-ar-phone__time {
  position: absolute;
  left: 14px;
  opacity: 0.55;
}

.support-ar-phone__title {
  font-size: 13px;
}

.support-ar-phone__chat {
  min-height: 360px;
  padding: 14px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ebebeb;
}

.support-ar-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}

.support-ar-bubble--user {
  align-self: flex-end;
  background: #95ec69;
  color: #1a1a1a;
  border-top-right-radius: 4px;
}

.support-ar-bubble--bot {
  align-self: flex-start;
  background: #fff;
  color: #1e2430;
  border-top-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.support-ar-bubble--muted {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

.support-ar-preview-faqs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: flex-start;
  max-width: 92%;
}

.support-ar-copyable {
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}

.support-ar-preview-faq {
  display: block;
  background: #fff;
  color: #2563eb;
  font: inherit;
  font-size: 12px;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  line-height: 1.45;
}

.support-ar-editor {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.support-ar-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.support-ar-check {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.support-ar-content__sub {
  font-size: 13px;
  font-weight: 500;
}

.support-ar-text-card {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(35, 57, 93, 0.12);
  background: #fafbfc;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.support-ar-text-card--dim {
  opacity: 0.45;
}

.support-ar-text-preview {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #1e2430;
  white-space: pre-wrap;
  word-break: break-word;
}

.support-ar-text-editor {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid rgba(35, 57, 93, 0.12);
  background: #fff;
  overflow: hidden;
}

.support-ar-text-editor--dim {
  opacity: 0.45;
  pointer-events: none;
}

.support-ar-textarea {
  display: block;
  width: 100%;
  min-height: 200px;
  max-height: 320px;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: #1e2430;
  resize: vertical;
  box-shadow: none;
}

.support-ar-textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.support-ar-text-editor__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(35, 57, 93, 0.08);
  background: #fafbfc;
}

.support-ar-text-counter {
  font-size: 13px;
}

.support-ar-text-editor__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.support-ar-text-save {
  min-width: 88px;
  height: 36px;
  padding: 0 20px;
  border-radius: 8px;
}

.support-ar-text-cancel {
  min-width: 88px;
  height: 36px;
  padding: 0 20px;
  border-radius: 8px;
}

.support-ar-link-btn {
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.support-ar-link-btn:hover:not(:disabled) {
  text-decoration: underline;
}

.support-ar-link-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.support-ar-link-btn--block {
  margin-top: 4px;
  text-align: left;
}

.support-ar-faq-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.support-ar-faq-list--dim {
  opacity: 0.45;
}

.support-ar-faq-item {
  display: block;
  width: 100%;
  border-bottom: 1px solid rgba(35, 57, 93, 0.08);
  text-align: left;
  padding: 12px 4px;
  font: inherit;
  font-size: 14px;
  color: #2563eb;
  line-height: 1.5;
}

.support-faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 8px;
}

.support-faq-panel .support-ar-panel__head {
  margin-bottom: 4px;
}

.support-faq-manager {
  min-width: 0;
}

.support-faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-faq-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(35, 57, 93, 0.1);
}

.support-faq-item--editing {
  padding: 12px 0 20px;
}

.support-faq-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.support-faq-item__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--ink);
}

.support-faq-item__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 10px;
  flex-shrink: 0;
}

.support-faq-action {
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.support-faq-action:hover {
  text-decoration: underline;
}

.support-faq-action--danger {
  color: #dc2626;
}

.support-faq-item__answer {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: #4b5563;
}

.support-faq-item__answer-label {
  color: #6b7280;
  margin-right: 4px;
}

.support-faq-item__answer-text {
  margin: 0;
  display: inline;
}

.support-faq-item__answer-text--clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.support-faq-action--toggle {
  margin-left: 8px;
}

.support-faq-add {
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.support-faq-add:hover {
  text-decoration: underline;
}

.support-faq-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(35, 57, 93, 0.12);
  background: #fafbfc;
}

.support-faq-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.support-faq-form__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.support-faq-form__answer {
  min-height: 120px;
}

.support-faq-form__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.support-ar-phone__shell--faq {
  width: 268px;
}

.support-ar-phone__shell--faq .support-ar-phone__bar {
  justify-content: space-between;
  padding-left: 36px;
  padding-right: 36px;
}

.support-ar-phone__shell--faq .support-ar-phone__back,
.support-ar-phone__shell--faq .support-ar-phone__actions {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
  opacity: 0.45;
}

.support-ar-phone__shell--faq .support-ar-phone__back {
  left: 12px;
}

.support-ar-phone__shell--faq .support-ar-phone__actions {
  right: 12px;
}

.support-ar-phone__store {
  padding: 6px 12px 0;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
}

.support-ar-faq-intro {
  margin: 0;
}

.support-ar-phone__input {
  padding: 10px 12px 14px;
  background: #f7f7f7;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.support-ar-phone__input-fake {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  color: #9ca3af;
}

@media (max-width: 960px) {
  .support-faq-layout {
    grid-template-columns: 1fr;
  }
}

.support-ar-demo-note {
  margin: 18px 0 0;
  font-size: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(35, 57, 93, 0.12);
}

@media (max-width: 960px) {
  .support-ar-content__body {
    grid-template-columns: 1fr;
  }

  .support-ar-phone {
    order: -1;
  }
}

.admin-nav-expandable__trigger .admin-tab__leading {
  flex: 1;
  min-width: 0;
}

.admin-nav-expandable__trigger .admin-nav-expandable__label {
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
}

.support-hub-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 40px 24px;
  text-align: center;
}

.support-hub-placeholder__icon {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 12px;
}

.support-hub-placeholder__title {
  margin: 0 0 8px;
  font-size: 20px;
}

.support-hub-placeholder__desc {
  margin: 0;
  max-width: 420px;
}

.admin-support-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) 1fr;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(35, 40, 58, 0.1);
  background: #fff;
  box-shadow: 0 12px 36px rgba(35, 40, 58, 0.08);
}

.admin-support-layout--live {
  grid-template-columns: minmax(250px, 290px) minmax(0, 1.25fr) minmax(300px, 360px);
  height: 100%;
  min-height: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.admin-support-orders {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid rgba(35, 40, 58, 0.08);
  background: #fbfbfc;
}

.admin-support-orders__tabs {
  display: flex;
  flex-shrink: 0;
  gap: 0;
  padding: 0 8px;
  border-bottom: 1px solid rgba(35, 40, 58, 0.08);
  background: #fff;
}

.admin-support-orders__tab {
  flex: 1;
  min-width: 0;
  padding: 12px 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted, #6b7280);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.admin-support-orders__tab--active {
  color: #3d4ae0;
  border-bottom-color: #3d4ae0;
}

.admin-support-orders__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-support-orders__list {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-support-orders__empty {
  padding: 32px 12px;
  text-align: center;
  color: var(--muted, #6b7280);
  font-size: 13px;
}

.admin-support-orders__foot {
  flex-shrink: 0;
  padding: 0;
  margin-top: 2px;
}

.admin-support-orders__all-btn {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(35, 40, 58, 0.12);
  background: #fff;
  color: var(--ink, #1f2937);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.admin-support-orders__all-btn:hover:not(:disabled) {
  border-color: rgba(61, 74, 224, 0.35);
  color: #3d4ae0;
}

.admin-support-orders__all-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-support-order-card {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(35, 40, 58, 0.1);
  background: #fff;
}

.admin-support-order-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-support-order-card__meta {
  min-width: 0;
  flex: 1;
}

.admin-support-order-card__no,
.admin-support-order-card__time {
  font-size: 11px;
  color: var(--muted, #6b7280);
  line-height: 1.45;
  word-break: break-all;
}

.admin-support-order-card__status {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}

.admin-support-order-card__status--pending {
  color: #d97706;
}

.admin-support-order-card__status--unpaid {
  color: #e37400;
}

.admin-support-order-card__status--done {
  color: #ea580c;
}

.admin-support-order-card__status--closed {
  color: #9ca3af;
}

.admin-support-order-card__product {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.admin-support-order-card__product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1f2937);
  line-height: 1.4;
}

.admin-support-order-card__sum {
  font-size: 12px;
  color: var(--muted, #6b7280);
  margin-bottom: 8px;
}

.admin-support-order-card__sum strong {
  color: var(--ink, #1f2937);
}

.admin-support-order-card__remark {
  font-size: 12px;
  color: var(--muted, #6b7280);
  line-height: 1.5;
  margin-bottom: 8px;
}

.admin-support-order-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-support-order-card__link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #3d4ae0;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}

.admin-support-order-card__link:hover {
  text-decoration: underline;
}

.admin-support-sessions {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid rgba(35, 40, 58, 0.08);
  background: #f5f6f8;
}

.admin-support-presence-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: calc(100% - 24px);
  margin: 12px 12px 0;
  padding: 10px 12px;
  border: 1px solid rgba(35, 40, 58, 0.1);
  border-radius: 10px;
  background: #fff;
}

.admin-support-presence-bar__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #23283a;
}

.admin-support-presence-toggle {
  border: 1px solid rgba(61, 74, 224, 0.28);
  border-radius: 999px;
  background: #fff;
  color: #3d4ae0;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
}

.admin-support-presence-toggle:hover {
  background: rgba(61, 74, 224, 0.06);
}

.admin-presence-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.admin-presence-dot--online {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
}

.admin-presence-dot--offline {
  background: #94a3b8;
}

.admin-support-queue-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 24px);
  margin: 12px 12px 0;
  padding: 10px 12px;
  border: 1px solid rgba(61, 74, 224, 0.22);
  border-radius: 10px;
  background: #fff;
  color: #3d4ae0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.admin-support-queue-bar:hover {
  background: rgba(61, 74, 224, 0.06);
}

.admin-support-queue-bar__chev {
  font-size: 16px;
  line-height: 1;
}

.admin-support-sessions__tabs {
  display: flex;
  gap: 0;
  margin: 10px 12px 0;
  border-bottom: 1px solid rgba(35, 40, 58, 0.1);
}

.admin-support-sessions__tab {
  flex: 1;
  padding: 10px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted, #6b7280);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.admin-support-sessions__tab--active {
  color: #3d4ae0;
  border-bottom-color: #3d4ae0;
}

.admin-support-closed-hint {
  flex-shrink: 0;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted, #6b7280);
  background: #f9fafb;
  border-top: 1px solid rgba(35, 40, 58, 0.08);
}

.admin-support-closed-hint--compact {
  padding: 10px 14px;
  font-size: 12px;
  text-align: left;
  background: #fffbeb;
  color: #92400e;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
}

.admin-mobile-chat-readonly--hint {
  background: #fffbeb;
  color: #92400e;
}

#support-queue-modal {
  z-index: 55;
  place-items: center;
  padding: 24px;
}

#support-queue-modal .support-queue-modal-card {
  width: min(1280px, calc(100vw - 48px));
  max-width: none;
  max-height: min(85vh, 760px);
  padding: 0;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#support-queue-modal .modal-head {
  padding: 22px 24px 12px;
  margin-bottom: 0;
}

#support-queue-modal .support-queue-modal-body {
  padding: 0 24px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 200px;
}

.admin-support-queue__state {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted, #6b7280);
  font-size: 14px;
}

.admin-support-queue-table-wrap {
  overflow: hidden;
}

.admin-support-queue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

.admin-support-queue-table th,
.admin-support-queue-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(35, 40, 58, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-support-queue-table th {
  color: var(--muted, #6b7280);
  font-weight: 600;
  background: #fafafa;
  white-space: nowrap;
  line-height: 1.3;
}

.admin-support-queue-table .col-check {
  width: 48px;
}

.admin-support-queue-table .col-customer {
  width: 152px;
}

.admin-support-queue-table .col-msgs {
  width: auto;
}

.admin-support-queue-table .col-queued-at {
  width: 172px;
}

.admin-support-queue-table .col-wait {
  width: 100px;
}

.admin-support-queue-table .col-action {
  width: 88px;
}

.admin-support-queue-msgs {
  overflow: hidden;
  min-width: 0;
}

.admin-support-queue-table td.col-queued-at,
.admin-support-queue-table td.col-wait {
  white-space: nowrap;
  font-size: 12px;
}

.admin-support-queue-customer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-support-queue-customer__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8eaf6;
  color: #3d4ae0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.admin-support-queue-customer__name {
  font-weight: 600;
  color: var(--ink, #1f2937);
}

.admin-support-queue-customer__sub {
  font-size: 12px;
  color: var(--muted, #6b7280);
  margin-top: 2px;
}

.admin-support-queue-msg {
  font-size: 12px;
  color: var(--ink, #374151);
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.admin-support-queue-msg + .admin-support-queue-msg {
  margin-top: 4px;
}

.admin-support-queue-actions,
.admin-support-queue-table .col-action {
  text-align: center;
}

.admin-support-queue-accept {
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #3d4ae0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-support-queue-accept:hover {
  color: #2f3ab8;
  text-decoration: underline;
}

.admin-support-queue-foot {
  padding: 0;
  font-size: 12px;
}

.admin-support-queue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px 0;
  border-top: 1px solid rgba(35, 40, 58, 0.08);
  margin-top: 8px;
}

.admin-support-queue-batch-del {
  flex-shrink: 0;
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
}

.admin-support-queue-batch-del:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

.admin-support-queue-batch-del:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-support-sessions__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  flex-shrink: 0;
}

.admin-support-sessions__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #1f2937);
}

.admin-support-sessions__count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(35, 40, 58, 0.08);
  color: var(--muted, #6b7280);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-support-sessions__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-support-session-item {
  position: relative;
  border-bottom: 1px solid rgba(35, 40, 58, 0.06);
}

.admin-support-session-item .admin-support-session {
  border-bottom: 0;
  padding-right: 34px;
}

.admin-support-session-item.admin-support-session--active .admin-support-session,
.admin-support-session-item .admin-support-session.admin-support-session--active {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--accent, #2563eb);
}

.admin-support-session__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-support-session__close:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.admin-dialog-card {
  width: min(420px, calc(100vw - 32px));
}

.admin-dialog-message {
  margin: 0 0 20px;
  padding: 0 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink, #1f2937);
  white-space: pre-wrap;
}

.primary-btn.primary-btn--danger {
  background: #ef4444;
  border-color: #ef4444;
}

.primary-btn.primary-btn--danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.admin-support-sessions__empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted, #6b7280);
  font-size: 13px;
}

.admin-support-session {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 12px 14px;
  margin: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(35, 40, 58, 0.06);
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.admin-support-session:hover {
  background: rgba(255, 255, 255, 0.72);
}

.admin-support-session--unread {
  background: rgba(255, 118, 82, 0.08);
}

.admin-support-session--unread:hover {
  background: rgba(255, 118, 82, 0.12);
}

.admin-support-session--active {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--accent, #2563eb);
}

.admin-user-avatar {
  display: inline-flex;
  overflow: hidden;
  flex-shrink: 0;
}

.admin-user-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-user-avatar--fallback {
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #5b6cff, #3d4ae0);
  color: #fff;
  font-weight: 700;
}

.admin-user-avatar--table {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 15px;
}

.admin-user-avatar--support-session {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 17px;
}

.admin-user-avatar--support-head {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 16px;
}

.admin-user-avatar--support-queue {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
}

.admin-user-avatar--support-queue.admin-user-avatar--fallback {
  background: #e8eaf6;
  color: #3d4ae0;
}

.admin-user-avatar--admin-super {
  background: linear-gradient(145deg, #ffd56a 0%, #ffb347 100%);
  color: #6b4a00;
}

.admin-user-avatar--admin-support {
  background: linear-gradient(145deg, #5b6cff 0%, #3d4ae0 100%);
  color: #fff;
}

.admin-support-session__avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, #5b6cff, #3d4ae0);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-support-session__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-support-session__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.admin-support-session__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink, #1f2937);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-support-session__time {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted, #6b7280);
}

.admin-support-session__preview {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--muted, #6b7280);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-support-session--unread .admin-support-session__preview {
  color: var(--ink, #1f2937);
  font-weight: 600;
}

.admin-support-session__sub {
  font-size: 11px;
  color: var(--muted, #6b7280);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-support-session-badge {
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.admin-support-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: rgba(35, 40, 58, 0.03);
}

.admin-support-chat-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(35, 40, 58, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.admin-support-chat-head--empty {
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.admin-support-chat-head__avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, #5b6cff, #3d4ae0);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-support-chat-head__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-support-chat-head__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #1f2937);
}

.admin-support-chat-head__meta {
  font-size: 12px;
  color: var(--muted, #6b7280);
}

.admin-support-chat-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 管理端即时会话：勿沿用弹窗里 support-chat-stream 的 min-height，否则会挤掉底部输入框 */
.admin-support-chat-panel .support-chat-stream,
.admin-support-stream.support-chat-stream {
  margin-top: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: 1 1 0;
  overflow-y: auto;
}

.admin-support-stream {
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  margin: 0;
  border-radius: 0;
  overflow-y: auto;
  padding: 12px 12px 16px;
  background: #ededed;
}

.admin-support-stream.wx-chat-stream {
  background: #ededed;
}

.admin-support-stream .support-chat-empty {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-support-stream .support-chat-empty-bubble {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  color: #666;
  font-size: 13px;
}

.admin-support-reply.support-chat-footer {
  flex: 0 0 auto;
  margin-top: 0 !important;
  min-height: 72px;
}

.admin-support-reply {
  flex: 0 0 auto;
  margin: 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(35, 40, 58, 0.08);
  box-shadow: 0 -6px 20px rgba(35, 40, 58, 0.06);
  background: rgba(255, 255, 255, 0.98);
  position: relative;
  z-index: 2;
}

.admin-support-reply--disabled {
  opacity: 0.72;
  pointer-events: none;
}

.admin-support-reply--disabled .support-upload-btn {
  opacity: 0.5;
}

.admin-support-reply .textarea {
  min-height: 56px;
  height: 56px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
  resize: none;
  overflow-y: auto;
}

.admin-support-reply .primary-btn {
  height: 56px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 18px;
}

.admin-support-reply-field {
  position: relative;
  min-width: 0;
}

.admin-support-compose {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.admin-support-attach-panel {
  flex: 0 0 auto;
  padding: 16px 20px 10px;
  background: #f7f7f7;
  border-top: 1px solid rgba(35, 40, 58, 0.08);
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 88px));
  gap: 8px 12px;
}

.admin-support-attach-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: var(--ink, #1f2937);
}

.admin-support-attach-item:hover .admin-support-attach-item__icon {
  background: #fff;
  box-shadow: 0 4px 14px rgba(35, 40, 58, 0.08);
}

.admin-support-attach-item__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  border: 1px solid rgba(35, 40, 58, 0.06);
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.admin-support-attach-item__label {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.2;
}

.support-upload-btn--active {
  background: rgba(35, 40, 58, 0.12);
}

button.support-upload-btn {
  font: inherit;
}

#support-transfer-modal {
  z-index: 56;
  place-items: center;
  padding: 24px;
}

#support-transfer-modal .support-transfer-modal-card {
  width: min(420px, calc(100vw - 48px));
  max-height: min(70vh, 560px);
  padding: 0;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#support-transfer-modal .modal-head {
  padding: 20px 20px 12px;
  margin-bottom: 0;
}

.support-transfer-modal__hint {
  margin: 4px 0 0;
  font-size: 13px;
}

.support-transfer-modal-body {
  padding: 0 12px 16px;
  overflow-y: auto;
  min-height: 120px;
}

.support-transfer__state {
  padding: 40px 16px;
  text-align: center;
  color: var(--muted, #6b7280);
  font-size: 14px;
}

.support-transfer-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.support-transfer-agent {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border: none;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.support-transfer-agent:hover {
  background: rgba(35, 40, 58, 0.05);
}

.support-transfer-agent__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.support-transfer-agent__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #1f2937);
}

.support-transfer-agent__meta {
  font-size: 12px;
  color: var(--muted, #6b7280);
}

.support-transfer-agent__chev {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  color: #9ca3af;
}

.support-transfer-confirm {
  padding: 4px 8px 8px;
}

.support-transfer-confirm__agent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(35, 40, 58, 0.04);
  margin-bottom: 16px;
}

.support-transfer-confirm__agent-body {
  min-width: 0;
}

.support-transfer-confirm__agent-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink, #1f2937);
}

.support-transfer-confirm__agent-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted, #6b7280);
}

.support-transfer-confirm__text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

.support-transfer-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.support-transfer-confirm__actions .ghost-btn,
.support-transfer-confirm__actions .primary-btn {
  min-width: 96px;
  height: 40px;
}

#admin-confirm-modal,
#admin-alert-modal {
  z-index: 80;
}

.admin-support-qr-picker-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 20;
}

.admin-support-qr-picker {
  max-height: 220px;
  overflow-y: auto;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(35, 40, 58, 0.12);
  box-shadow: 0 12px 32px rgba(35, 40, 58, 0.12);
}

.admin-support-qr-picker__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.admin-support-qr-picker__item:hover {
  background: rgba(91, 108, 255, 0.08);
}

.admin-support-qr-picker__kw {
  font-size: 13px;
  font-weight: 600;
  color: #3d4ae0;
}

.admin-support-qr-picker__preview {
  font-size: 12px;
  color: rgba(35, 40, 58, 0.65);
  line-height: 1.4;
}

.support-chat-bubble--system {
  background: rgba(91, 108, 255, 0.1);
  border: 1px dashed rgba(91, 108, 255, 0.35);
}

@media (max-width: 1200px) {
  .admin-support-layout--live {
    grid-template-columns: minmax(230px, 270px) minmax(0, 1.15fr) minmax(280px, 320px);
  }
}

@media (max-width: 900px) {
  .admin-support-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 34vh) 1fr;
  }

  .admin-support-layout--live {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(160px, 28vh) minmax(0, 1fr) minmax(200px, 32vh);
  }

  .admin-support-sessions {
    border-right: 0;
    border-bottom: 1px solid rgba(35, 40, 58, 0.08);
    max-height: 34vh;
  }

  .admin-support-orders {
    border-left: 0;
    border-top: 1px solid rgba(35, 40, 58, 0.08);
    max-height: 32vh;
  }
}

.support-bubbles {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.bubble {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--paper-alt);
}

.modal,
.view-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(20, 28, 46, 0.38);
  display: grid;
  place-items: center;
  padding: 20px;
}

/* 优惠券领取结果（居中弹层，替代浏览器 alert） */
.coupon-result-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 28, 46, 0.45);
  pointer-events: none;
  animation: coupon-result-fade-in 0.15s ease-out;
}

.coupon-result-overlay.hidden {
  display: none;
}

.coupon-result-dialog {
  width: min(320px, 100%);
  padding: 24px 22px 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(35, 57, 93, 0.18);
  text-align: center;
  animation: coupon-result-pop-in 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.coupon-result-dialog__icon {
  display: flex;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--green);
}

.coupon-result-overlay--error .coupon-result-dialog__icon {
  color: #e85d4a;
}

.coupon-result-dialog__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.coupon-result-dialog__message {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.coupon-result-dialog__message.hidden {
  display: none;
}

@keyframes coupon-result-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes coupon-result-pop-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 商品详情侧栏：不要半透明暗色遮罩 */
.view-panel.view-panel--no-scrim {
  background: transparent;
}

/* 商品详情：卡片限高，中间区域独立滚动，底部按钮始终可点 */
#detail-panel {
  align-items: flex-start;
  justify-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: max(20px, 4vh);
  padding-bottom: max(20px, 4vh);
}

#detail-panel .modal-card {
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#detail-panel .modal-head {
  flex-shrink: 0;
}

#detail-panel #detail-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

#detail-panel .modal-footer {
  flex-shrink: 0;
  margin-top: 16px;
}

/* 管理端游戏编辑：单列紧凑 form-grid */
#create-modal.create-modal--game {
  align-items: flex-start;
  padding: max(12px, 2vh) 16px max(20px, 3vh);
}

#create-modal.create-modal--game .modal-card {
  width: min(960px, calc(100vw - 32px));
  max-width: 100%;
  max-height: none;
  padding: 14px 16px 12px;
  overflow: visible;
}

#create-modal.create-modal--game .modal-head {
  margin-bottom: 8px;
}

#create-modal.create-modal--game .modal-footer {
  margin-top: 8px;
}

.form-grid.admin-game-form {
  gap: 6px;
}

.admin-game-form .field,
.admin-game-form .select {
  padding: 8px 10px;
  border-radius: 10px;
}

.admin-game-form__section-label {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.admin-game-form__hot {
  margin: 0;
  white-space: nowrap;
  padding: 8px 10px;
}

.admin-game-form__hint {
  margin: -2px 0 0;
  font-size: 12px;
  line-height: 1.35;
}

.admin-game-form__order-block {
  gap: 6px;
  padding: 6px 8px;
}

.admin-game-form__order-block .order-form-field-table thead th,
.admin-game-form__order-block .order-form-field-table tbody td {
  padding: 4px 6px;
}

.admin-game-form__order-block .order-form-field-row__label.field {
  padding: 6px 8px;
  font-size: 13px;
}

.admin-game-form__order-block .order-form-field-builder__presets {
  padding: 0;
  border: 0;
  background: transparent;
  gap: 6px;
}

.admin-game-form__order-block .order-form-field-builder__presets .select {
  min-width: 0;
  flex: 1 1 180px;
  max-width: 280px;
  padding: 6px 8px;
}

#create-modal.create-modal--game .admin-quill-wrap .ql-container,
#create-modal.create-modal--game .admin-quill-wrap .ql-editor {
  min-height: 120px;
}

/* Quill 会把 .ql-toolbar 插在 .admin-quill-wrap 前面（兄弟节点），需单独拉满整行 */
#create-modal.create-modal--game .admin-game-form .ql-toolbar.ql-snow {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: 4px 6px;
  overflow-x: auto;
  border: 1px solid rgba(35, 40, 58, 0.12);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #fff;
}

#create-modal.create-modal--game .admin-game-form .ql-toolbar.ql-snow + .admin-quill-wrap {
  grid-column: 1 / -1;
  width: 100%;
  border-radius: 0 0 10px 10px;
}

#create-modal.create-modal--game .admin-game-form .ql-toolbar.ql-snow .ql-formats {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 6px;
  margin-bottom: 0;
  float: none;
}

#create-modal.create-modal--game .admin-game-form .ql-toolbar.ql-snow .ql-formats:after {
  display: none;
  content: none;
}

#create-modal.create-modal--game .admin-game-form .ql-toolbar.ql-snow:after {
  display: none;
  content: none;
}

#create-modal.create-modal--game .admin-game-form .ql-toolbar.ql-snow button,
#create-modal.create-modal--game .admin-game-form .ql-toolbar.ql-snow .ql-picker {
  float: none;
}

#create-modal.create-modal--game .admin-game-form .ql-toolbar.ql-snow .ql-picker-label {
  padding: 2px 4px;
}

.admin-game-form__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  grid-column: 1 / -1;
}

.admin-game-form__split-col {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}

.admin-game-form__category-block {
  gap: 6px;
  padding: 6px 8px;
}

.product-category-builder__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(35, 40, 58, 0.82);
}

.product-category-builder__body {
  display: grid;
  gap: 6px;
}

.product-category-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(35, 40, 58, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.product-category-table thead th {
  padding: 5px 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(35, 40, 58, 0.62);
  text-align: left;
  background: rgba(35, 57, 93, 0.04);
  border-bottom: 1px solid rgba(35, 40, 58, 0.08);
}

.product-category-table thead th:last-child {
  width: 52px;
  text-align: center;
}

.product-category-table tbody td {
  padding: 4px 6px;
  border-bottom: 1px solid rgba(35, 40, 58, 0.06);
  vertical-align: middle;
}

.product-category-table tbody tr:last-child td {
  border-bottom: 0;
}

.product-category-row__label {
  width: 100%;
  padding: 6px 8px;
  font-size: 13px;
}

.product-category-row__action {
  text-align: center;
}

.product-category-builder__add {
  align-self: flex-start;
  padding: 5px 10px;
  font-size: 12px;
}

@media (max-width: 860px) {
  #create-modal.create-modal--game .modal-card {
    width: min(720px, calc(100vw - 20px));
  }

  .admin-game-form__split {
    grid-template-columns: 1fr;
  }
}

.order-form-field-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid rgba(35, 40, 58, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.order-form-field-table thead th {
  padding: 5px 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(35, 40, 58, 0.62);
  text-align: left;
  background: rgba(35, 57, 93, 0.04);
  border-bottom: 1px solid rgba(35, 40, 58, 0.08);
}

.order-form-field-table thead th:nth-child(1) {
  width: 44px;
  text-align: center;
}

.order-form-field-table thead th:nth-child(2) {
  width: 88px;
}

.order-form-field-table thead th:nth-child(4) {
  width: 44px;
  text-align: center;
}

.order-form-field-table thead th:nth-child(5) {
  width: 52px;
  text-align: center;
}

.order-form-field-table tbody td {
  padding: 4px 6px;
  border-bottom: 1px solid rgba(35, 40, 58, 0.06);
  vertical-align: middle;
}

.order-form-field-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 表格行：覆盖下方 div 版 .order-form-field-row 的 grid 样式 */
.order-form-field-table tr.order-form-field-row {
  display: table-row;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 0;
}

.order-form-field-table .order-form-field-row.is-disabled {
  opacity: 0.55;
}

.order-form-field-table .order-form-field-row__check,
.order-form-field-table .order-form-field-row__required,
.order-form-field-table .order-form-field-row__action {
  text-align: center;
}

.order-form-field-table .order-form-field-row__name {
  font-size: 12px;
  color: rgba(35, 40, 58, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-form-field-table .order-form-field-row__label {
  width: 100%;
  min-width: 0;
}

.order-form-field-builder__add {
  align-self: flex-start;
  padding: 5px 10px;
  font-size: 12px;
}

.order-form-field-builder__presets-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(35, 40, 58, 0.72);
  white-space: nowrap;
}

.ghost-btn--compact {
  padding: 4px 8px;
  font-size: 12px;
}

.admin-quill-wrap--compact .ql-container,
.admin-quill-wrap--compact .ql-editor {
  min-height: 88px;
}

#create-modal {
  align-items: flex-start;
  justify-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(20px, 3vh) 20px max(28px, 5vh);
}

#create-modal .modal-card {
  width: min(720px, 100%);
  max-width: 100%;
  overflow: visible;
}

#create-modal #create-form {
  overflow: visible;
}

#create-modal .ql-editor img {
  max-width: 100%;
  max-height: min(48vh, 420px);
  width: auto;
  height: auto;
  object-fit: contain;
}

#order-remark-modal {
  z-index: 55;
  place-items: center;
  padding: 24px;
}

#order-remark-modal .order-remark-modal-card {
  width: min(520px, 100%);
  max-width: 100%;
  padding: 28px 28px 24px;
  border-radius: 24px;
}

#order-remark-modal .modal-head {
  margin-bottom: 16px;
}

#order-remark-modal .modal-head h3 {
  font-size: 22px;
}

.order-remark-modal__label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #1f2937);
}

.order-remark-modal__input {
  width: 100%;
  min-height: 140px;
  box-sizing: border-box;
  resize: vertical;
}

#order-remark-modal .modal-footer {
  margin-top: 22px;
}

#order-remark-modal .modal-footer .primary-btn,
#order-remark-modal .modal-footer .ghost-btn {
  min-width: 96px;
  height: 42px;
  border-radius: 14px;
}

.modal-card {
  width: min(720px, 100%);
  border-radius: 30px;
  padding: 26px;
}

.orders-modal-card {
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.orders-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 18px;
}

.modal-head h3 {
  margin: 0;
  font-size: 28px;
}

.close-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 0;
  background: rgba(35, 57, 93, 0.08);
  cursor: pointer;
}

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

.field,
.select,
.textarea {
  width: 100%;
  border: 1px solid rgba(35, 40, 58, 0.1);
}

.textarea {
  min-height: 94px;
  resize: vertical;
}

.full-span {
  grid-column: 1 / -1;
}

.points-product-image-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(35, 57, 93, 0.04);
  border: 1px solid rgba(35, 40, 58, 0.08);
}

.points-product-image-preview img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.points-product-form {
  gap: 16px;
}

.points-product-form .points-product-field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.points-product-field__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #23395d;
  line-height: 1.4;
}

.points-product-field__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.order-form-field-builder {
  display: grid;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(35, 40, 58, 0.1);
  border-radius: 10px;
  background: rgba(35, 57, 93, 0.03);
}

.order-form-field-builder__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.order-form-field-builder__fields {
  display: grid;
  gap: 6px;
}

.order-form-field-builder__fields > .order-form-field-row {
  display: grid;
  grid-template-columns: auto 96px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(35, 40, 58, 0.08);
  background: #fff;
}

.order-form-field-builder__fields > .order-form-field-row .order-form-field-row__name {
  font-size: 13px;
  color: rgba(35, 40, 58, 0.72);
}

.order-form-field-builder__fields > .order-form-field-row .order-form-field-row__required {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 13px;
}

.redemption-tier-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.redemption-tier-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.redemption-tier-list__head,
.redemption-tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.redemption-tier-list__head {
  font-size: 12px;
  color: rgba(35, 40, 58, 0.55);
  font-weight: 600;
}

.redemption-tier-add {
  justify-self: start;
}

.redemption-tier-remove {
  white-space: nowrap;
  padding-inline: 12px;
}

.modal-footer {
  display: flex;
  justify-content: end;
  gap: 12px;
  margin-top: 20px;
}

body.admin-body {
  background: #eef1f6;
}

.admin-body {
  padding: 0;
}

.admin-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  gap: 0;
}

.admin-side {
  width: 168px;
  flex-shrink: 0;
  box-sizing: border-box;
  border-radius: 0;
  padding: 12px 8px 14px 10px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: flex-start;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #2a4470 0%, #23395d 52%, #1e314f 100%);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.12);
}

.admin-brand {
  margin-bottom: 14px;
  padding: 6px 4px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.admin-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(35, 57, 93, 0.12);
}

.admin-brand h1 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  white-space: nowrap;
  color: #f4f7fb;
  letter-spacing: 0.01em;
}

.admin-side-footer {
  margin-top: auto;
  padding-top: 12px;
}

.admin-side-footer .ghost-btn {
  width: 100%;
  justify-content: center;
  padding: 8px 6px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav .admin-tab[hidden],
.admin-nav-expandable[hidden] {
  display: none !important;
}

.admin-tab__leading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.admin-nav-label {
  line-height: 1.3;
  font-size: 15px;
  font-weight: 800;
}

.admin-nav-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.72;
}

.admin-nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.admin-tab.active .admin-nav-icon,
.admin-nav-expandable.is-section-active > .admin-nav-expandable__trigger .admin-nav-icon {
  opacity: 1;
}

.admin-tab--sub .admin-nav-icon {
  width: 16px;
  height: 16px;
  opacity: 0.62;
}

.admin-tab--sub .admin-nav-label {
  font-size: 14px;
  font-weight: 700;
}

.admin-tab--sub.active .admin-nav-icon {
  opacity: 1;
}

.admin-nav-expandable__trail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.admin-logout-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.admin-logout-btn .admin-nav-icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.admin-nav-expandable {
  display: grid;
  gap: 0;
}

.admin-nav-expandable__trigger {
  width: 100%;
  padding: 8px 8px;
  border-radius: 9px;
  border: 0;
  text-align: left;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav-expandable__trigger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-nav-expandable.is-section-active > .admin-nav-expandable__trigger {
  background: rgba(255, 255, 255, 0.12);
  color: #f4f7fb;
}

.admin-nav-expandable__chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.28s ease;
  opacity: 0.65;
}

.admin-nav-expandable.is-open .admin-nav-expandable__chevron {
  transform: rotate(225deg) translateY(-2px);
}

.admin-nav-expandable__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-nav-expandable.is-open .admin-nav-expandable__panel {
  grid-template-rows: 1fr;
}

.admin-nav-expandable__panel-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0 2px;
}

.admin-tab--sub {
  padding: 7px 8px 7px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  justify-content: flex-start;
}

.admin-nav .admin-tab {
  font-weight: 800;
}

.admin-tab {
  padding: 9px 8px;
  border-radius: 9px;
  border: 0;
  text-align: left;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  width: 100%;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
}

.admin-tab.active {
  background: linear-gradient(180deg, #f9fafc 0%, #f2f5fa 100%);
  color: #1a2744;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.admin-tab-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.24);
  animation: supportUnreadPulse 1.8s ease-in-out infinite;
}

.admin-tab-badge.hidden {
  display: none;
}

.admin-tab.active .admin-tab-badge {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

@keyframes supportUnreadPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.20);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(239, 68, 68, 0.34);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.20);
  }
}

.admin-main {
  flex: 1;
  min-width: 0;
  border-radius: 0;
  padding: 18px 20px 24px 18px;
  border: none;
  box-shadow: none;
  background: #f7f8fb;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-header__intro {
  min-width: 0;
  flex: 1;
}

.admin-header:has(.admin-header__intro[hidden]) {
  justify-content: flex-end;
}

.admin-user-menu {
  position: relative;
  flex-shrink: 0;
}

.admin-user-menu__bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}

.admin-user-menu__name-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: #1a2744;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
}

.admin-user-menu__presence-dot {
  flex-shrink: 0;
}

.admin-user-menu__presence-dot.admin-presence-dot--offline {
  background: #f87171;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.18);
}

.admin-user-menu__name-btn:hover,
.admin-user-menu__name-btn[aria-expanded="true"] {
  color: #0f4fd8;
}

.admin-user-menu__name {
  font-size: 16px;
  font-weight: 700;
  color: inherit;
}

.admin-user-menu__role {
  font-size: 13px;
  font-weight: 400;
  color: rgba(26, 39, 68, 0.55);
  white-space: nowrap;
}

.admin-user-menu__chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.15s ease;
  opacity: 0.65;
}

.admin-user-menu__name-btn[aria-expanded="true"] .admin-user-menu__chevron {
  transform: rotate(225deg) translateY(1px);
}

.admin-user-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  padding: 6px;
  border: 1px solid rgba(35, 57, 93, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(26, 39, 68, 0.12);
  z-index: 30;
}

.admin-user-menu__panel.hidden {
  display: none;
}

.admin-user-menu__logout {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #c0392b;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.admin-user-menu__logout:hover {
  background: rgba(192, 57, 43, 0.08);
}

.admin-user-menu__presence-label {
  padding: 8px 12px 4px;
  font-size: 12px;
  color: #6b7280;
}

.admin-user-menu__presence-option {
  padding: 8px 12px;
  font-size: 14px;
  color: #1f2430;
  cursor: pointer;
  border-radius: 8px;
}

.admin-user-menu__presence-option:hover {
  background: #f5f6f8;
}

.admin-user-menu__presence-option.is-active {
  color: #3d4ae0;
  font-weight: 600;
}

.admin-header h2 {
  margin: 0;
  font-size: 20px;
}

.admin-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.dashboard-card {
  border-radius: 24px;
  padding: 18px;
}

.dashboard-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.admin-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.admin-table-card,
.admin-form-card {
  border-radius: 26px;
  padding: 20px;
}

/* 即时会话等全屏子页：必须在通用 .admin-content / .admin-table-card 之后，避免被 20px 内边距和 gap 挤小 */
.admin-layout--support-live {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.admin-layout--support-live .admin-side {
  min-height: 0;
  height: 100%;
}

body.admin-body.admin-layout--support-live,
body.admin-body:has(.admin-layout--support-live) {
  overflow: hidden;
  background: #fff;
}

.admin-main.admin-main--support-live {
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
  padding: 0;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

.admin-main--support-live .admin-header {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 50;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.admin-main--support-live .admin-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 0;
  overflow: hidden;
  height: 100%;
}

.admin-main--support-live .admin-table-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  overflow: hidden;
}

.admin-main--support-live .admin-table-card .table-wrap {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-support-layout--live {
  flex: 1;
  min-height: 0;
  height: 100%;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(35, 40, 58, 0.08);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

/* 管理端列表表头：与数据行区分（数据列表、订单列表等） */
.admin-table-card .table-wrap table thead th {
  background: linear-gradient(180deg, rgba(35, 57, 93, 0.1) 0%, rgba(35, 57, 93, 0.055) 100%);
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(35, 40, 58, 0.16);
  letter-spacing: 0.02em;
}

/* 管理端列表：文字垂直居中（原全局为 top） */
.admin-table-card .table-wrap table th,
.admin-table-card .table-wrap table td {
  vertical-align: middle;
}

.orders-table th {
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.orders-table {
  border-collapse: separate;
  border-spacing: 0 10px;
}

.orders-table tbody tr {
  background: #fff;
  box-shadow: 0 1px 0 rgba(35, 40, 58, 0.06), 0 4px 12px rgba(35, 40, 58, 0.04);
}

.orders-table td {
  border-bottom: 0;
  background: transparent;
  padding-top: 8px;
  padding-bottom: 8px;
}

.orders-table td:first-child {
  border-radius: 12px 0 0 12px;
}

.orders-table td:last-child {
  border-radius: 0 12px 12px 0;
}

.orders-table .order-cell {
  min-width: 120px;
}

.orders-table .order-cell-meta {
  min-width: 210px;
}

.orders-table .order-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  color: #30415f;
  margin-bottom: 2px;
}

.orders-table .order-product-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.orders-table .order-product-main img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.orders-table .order-product-name {
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.3;
}

.orders-table .order-cell-meta .muted {
  font-size: 12px;
  line-height: 1.25;
}

.orders-table .order-cell-money {
  min-width: 150px;
  line-height: 1.35;
}

.orders-table .order-cell-actual-pay {
  min-width: 96px;
  white-space: nowrap;
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}

.orders-table .table-actions {
  align-items: flex-start;
}

/* 订单列表：操作列四个按钮两行两列 */
.orders-table .table-actions.table-actions--grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  min-width: 148px;
  max-width: 200px;
}

.orders-table .table-actions.table-actions--grid-2 .small-btn,
.orders-table .table-actions.table-actions--grid-2 .ghost-btn {
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.orders-table .order-cell-remark {
  min-width: 180px;
  max-width: 280px;
  white-space: pre-wrap;
}

.orders-table .order-status-text {
  display: inline-block;
  white-space: nowrap;
}

.admin-order-detail-layout {
  display: grid;
  gap: 16px;
}

.admin-order-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.admin-order-detail-head__text {
  min-width: 0;
}

.admin-order-detail-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border: 1px solid rgba(35, 57, 93, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #1a2744;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.admin-order-detail-back-btn:hover {
  background: #f4f6fa;
  border-color: rgba(35, 57, 93, 0.22);
  text-decoration: none;
}

.admin-order-detail-note {
  padding: 12px 14px;
  border-top: 1px solid rgba(35, 40, 58, 0.08);
  border-bottom: 1px solid rgba(35, 40, 58, 0.08);
  color: #444d62;
  background: #fff;
}

.admin-order-detail-note span {
  color: #f08a36;
  font-weight: 700;
}

.admin-order-detail-section {
  border: 1px solid rgba(35, 40, 58, 0.08);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.admin-order-detail-section h4 {
  margin: 0 0 12px;
  font-size: 16px;
}

.admin-order-detail-hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-order-detail-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-order-detail-brief-card {
  border-radius: 12px;
  background: var(--paper-alt);
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.admin-order-detail-brief-title {
  font-size: 16px;
  font-weight: 700;
  color: #2e3442;
  margin-bottom: 2px;
}

.admin-order-detail-thumb {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(35, 40, 58, 0.08);
  background: #f4f7fc;
}

.admin-order-detail-thumb-fallback {
  display: grid;
  place-items: center;
  font-size: 40px;
}

.admin-order-detail-hero-main {
  display: grid;
  gap: 8px;
  min-width: 280px;
}

.admin-order-detail-hero-main h3 {
  margin: 0;
  font-size: 24px;
}

.admin-order-detail-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-order-detail-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-order-detail-info-grid,
.admin-order-detail-remark-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-order-detail-info-item {
  border-radius: 14px;
  background: var(--paper-alt);
  padding: 12px 14px;
}

.admin-order-detail-table-wrap {
  overflow-x: auto;
}

.admin-order-detail-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.admin-order-detail-table th,
.admin-order-detail-table td {
  border-bottom: 1px solid rgba(35, 40, 58, 0.08);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.admin-order-detail-table thead th {
  background: linear-gradient(180deg, rgba(35, 57, 93, 0.1) 0%, rgba(35, 57, 93, 0.055) 100%);
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(35, 40, 58, 0.16);
  letter-spacing: 0.02em;
}

.admin-order-detail-product-cell {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.admin-order-detail-product-cell .admin-order-detail-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
}

.admin-order-detail-product-cell .admin-order-detail-thumb-fallback {
  font-size: 26px;
}

.admin-order-detail-product-title {
  margin-bottom: 4px;
  color: #2f61ad;
  font-weight: 700;
}

.admin-order-detail-total-box {
  margin-top: 14px;
  margin-left: auto;
  width: min(320px, 100%);
  display: grid;
  gap: 6px;
}

.admin-order-detail-total-box > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-order-detail-total-final {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(35, 40, 58, 0.12);
}

.admin-order-detail-total-final strong {
  color: #d40000;
  font-size: 28px;
}

.admin-order-detail-order-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.admin-order-detail-remark {
  white-space: pre-wrap;
  word-break: break-word;
}

.status-dot {
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar .field,
.toolbar .select {
  padding: 12px 14px;
}

.split-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.orders-pagination {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.orders-pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.orders-pagination .orders-page-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
}

.empty-state {
  padding: 22px;
  border-radius: 20px;
  background: var(--paper-alt);
  color: var(--muted);
  text-align: center;
}

.payment-page .user-shell {
  border-radius: 28px;
}

.payment-page .payment-announce {
  margin: 0;
  border-radius: 0;
  background: rgba(255, 122, 24, 0.08);
  color: #8a4b12;
  padding: 10px 16px;
  font-size: 13px;
}

.payment-page .payment-card {
  padding: 24px;
}

.payment-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 14px;
  margin-top: 6px;
}

.payment-order-panel,
.payment-side-panel {
  border-radius: 18px;
  border: 1px solid rgba(35, 40, 58, 0.08);
  background: #fff;
  padding: 16px;
}

.payment-order-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #243863;
}

.payment-order-meta {
  margin-top: 6px;
  color: #4d5466;
}

.payment-side-panel {
  background: linear-gradient(160deg, #fff6ea 0%, #fffdf8 100%);
}

.payment-amount-label {
  color: #7b8091;
  font-size: 14px;
}

.payment-amount-value {
  color: #d93025;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 900;
  margin: 6px 0 14px;
}

.payment-method-label {
  display: block;
  margin-bottom: 6px;
  color: #4d5466;
  font-weight: 700;
}

.payment-method-select {
  width: 100%;
  padding: 12px;
}

.payment-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-tip {
  margin-top: 12px;
  border-radius: 14px;
  background: #eef5ff;
  color: #36588a;
  padding: 10px 12px;
  font-size: 13px;
}

.payment-tip--warn {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* 用户端 · 确认订单（全屏页，支付方式固定底部可见） */
.checkout-order-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #f3f5f9;
  display: flex;
  flex-direction: column;
}

.checkout-order-screen.hidden {
  display: none;
}

.checkout-order-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  background: #f3f5f9;
}

.checkout-order-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.checkout-order-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text, #1a1d26);
}

.checkout-order-close.close-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
}

.checkout-order-page .storefront-subpage-head {
  flex-shrink: 0;
  position: relative;
}

.checkout-order-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.checkout-order-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 16px max(120px, calc(12px + env(safe-area-inset-bottom)));
  -webkit-overflow-scrolling: touch;
}

.checkout-order-bottom {
  flex-shrink: 0;
  padding: 8px 16px max(12px, env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -4px 16px rgba(24, 36, 59, 0.04);
}

.checkout-pay-block--in-scroll {
  margin-top: 8px;
  margin-bottom: 4px;
}

.checkout-order-modal {
  width: min(440px, 100%);
  max-height: min(88dvh, calc(100dvh - 24px));
  padding: 14px 14px 12px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.checkout-order-product {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #f6f7f9;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.checkout-order-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-order-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-order-thumb-emoji {
  font-size: 26px;
  line-height: 1;
}

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

.checkout-order-product-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #1a1d26;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.checkout-order-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.checkout-order-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.checkout-order-price {
  font-size: 18px;
  font-weight: 800;
  color: #e53935;
}

.checkout-order-price-old {
  font-size: 12px;
  color: #9aa0ae;
  text-decoration: line-through;
}

.checkout-order-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.checkout-order-qty-btn {
  width: 30px;
  height: 30px;
  border: 0;
  background: #f0f1f4;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  color: #333;
}

.checkout-order-qty-btn:active {
  background: #e2e4e8;
}

.checkout-order-qty-input {
  width: 36px;
  height: 30px;
  border: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  -moz-appearance: textfield;
}

.checkout-order-qty-input::-webkit-outer-spin-button,
.checkout-order-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.checkout-order-hint {
  font-size: 11px;
  line-height: 1.45;
  margin: 0 0 8px;
}

.checkout-order-fields {
  border-radius: 12px;
  overflow: visible;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  margin-bottom: 8px;
}

.checkout-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin: 0;
}

.checkout-field-row:has(.checkout-account-combo) {
  align-items: stretch;
  padding-top: 7px;
  padding-bottom: 7px;
}

.checkout-field-row:last-of-type {
  border-bottom: 0;
}

.checkout-field-label {
  flex: 0 0 4.8em;
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  align-self: center;
}

.checkout-field-req {
  color: #e53935;
  margin-right: 2px;
}

.checkout-field-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  text-align: right;
  padding: 8px 0;
  outline: none;
}

.checkout-account-combo {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 38px;
  padding: 0 4px 0 12px;
  border-radius: 10px;
  background: #f6f7f9;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.checkout-account-combo:focus-within {
  border-color: rgba(255, 107, 74, 0.35);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.08);
}

.checkout-account-combo__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  padding: 8px 4px 8px 0;
  outline: none;
  color: #1f2937;
}

.checkout-account-combo__input::placeholder {
  color: #9aa3b2;
  font-size: 13px;
}

.checkout-account-combo__trigger {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.checkout-account-combo__trigger:active,
.checkout-account-combo__trigger[aria-expanded="true"] {
  background: rgba(35, 57, 93, 0.08);
  color: #334155;
}

.checkout-account-combo__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 20;
  max-height: 240px;
  overflow-y: auto;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.checkout-account-combo__menu-title {
  padding: 10px 14px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

.checkout-account-combo__option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  padding: 11px 14px;
  text-align: left;
  cursor: pointer;
}

.checkout-account-combo__option:first-of-type {
  border-top: 0;
}

.checkout-account-combo__option-main {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.35;
}

.checkout-account-combo__option-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
  word-break: break-all;
}

.checkout-account-combo__option:active {
  background: #f8fafc;
}

.checkout-field-stack {
  display: block;
  margin-bottom: 8px;
}

.checkout-field-stack-label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.checkout-field-textarea {
  width: 100%;
  min-height: 56px;
  resize: vertical;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  box-sizing: border-box;
}

.checkout-order-preview {
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 4px;
}

.checkout-pay-block {
  margin-top: 0;
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.checkout-pay-block-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1d26;
  margin: 0 0 8px;
}

.checkout-pay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin: 0;
  padding: 4px 0;
  cursor: pointer;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.checkout-pay-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.checkout-pay-radio {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #ff7043;
  margin: 0;
}

.checkout-pay-name {
  font-size: 14px;
  color: #333;
}

.checkout-order-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding-top: 12px;
  margin-top: 0;
  border-top: 0;
}

.checkout-order-submit.primary-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.checkout-order-cancel {
  border: 0;
  background: none;
  color: #6b7280;
  font-size: 13px;
  padding: 6px;
  cursor: pointer;
  align-self: center;
}

@media (max-width: 1100px) {
  .content-grid,
  .admin-content,
  .landing-grid,
  .coupon-row {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    flex-direction: column;
  }

  .admin-side {
    width: 100%;
    min-height: 0;
    position: static;
    border-right: none;
    border-bottom: 1px solid rgba(35, 40, 58, 0.1);
  }

  .admin-main {
    padding: 16px 14px 20px;
  }

  .search-panel,
  .form-grid,
  .metric-row,
  .admin-metric-grid,
  .admin-order-detail-brief-grid,
  .admin-order-detail-price-grid,
  .admin-order-detail-info-grid,
  .admin-order-detail-remark-grid {
    grid-template-columns: 1fr;
  }

  .payment-layout {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 900px) {
  .admin-side {
    position: static;
    min-height: auto;
  }
}

/* =============================================================================
   用户端响应式布局：一处 HTML/CSS，浏览器按「视口宽度」自动切换。
   宽屏（默认）：适合电脑浏览器；≤768px：适合手机与小屏平板（触控、安全区等）。
   ============================================================================= */
@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  .user-body {
    padding: 0;
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    padding-bottom: max(100px, calc(86px + env(safe-area-inset-bottom)));
  }

  .profile-info-page.user-body {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .profile-saved-accounts-page.user-body {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .user-shell {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-left-width: 0;
    border-right-width: 0;
    box-shadow: none;
  }

  .user-header {
    padding: 14px 14px 16px;
    border-radius: 0;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand h1 {
    font-size: clamp(1.125rem, 4.2vw, 1.5rem);
  }

  .brand p {
    font-size: 13px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .brand-logo-img {
    border-radius: 16px;
  }

  .user-topbar,
  #game-shop-topbar,
  #orders-topbar,
  #coupons-topbar {
    position: relative;
  }

  .topbar > .brand,
  .topbar > .brand-link {
    max-width: calc(100% - 132px);
  }

  .topbar-actions {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    overflow: visible;
    gap: 0;
    padding-bottom: 0;
  }

  .user-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    max-width: 132px;
    min-width: 0;
    align-self: flex-start;
  }

  .current-user-name {
    font-size: 13px;
    line-height: 1.2;
  }

  .current-user-logout,
  .user-auth-row--top .secondary-btn {
    min-width: 0;
    height: 32px !important;
    padding: 0 10px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  .user-header .ghost-btn,
  .user-header .secondary-btn {
    height: 42px;
    flex-shrink: 0;
    font-size: 14px;
  }

  .storefront-header-nav {
    width: min(100%, 260px);
    gap: 6px;
  }

  .storefront-header-nav__item {
    height: 38px;
    padding: 0 4px;
    font-size: 12px;
    border-radius: 12px;
  }

  .header-orders-btn {
    height: 42px;
    padding: 0 14px;
    flex-shrink: 0;
    font-size: 13px;
  }

  .announce {
    display: block;
    margin-top: 14px;
    padding-block: 4px;
    border-radius: 10px;
  }

  .announce--marquee {
    padding-inline: 0;
  }

  .announce-marquee-track {
    gap: 28px;
    animation-duration: 15s;
  }

  .announce-marquee-item {
    padding-left: 10px;
    font-size: 11px;
  }

  .search-panel {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .search-box--compact {
    padding: 8px 4px 8px 0;
    font-size: 13px;
  }

  .search-field {
    padding-left: 12px;
  }

  .search-field__btn {
    width: 32px;
    height: 32px;
  }

  .search-box:not(.search-box--compact),
  .filter-box {
    min-height: 48px;
    padding: 12px 14px;
  }

  .content-grid {
    padding: 10px 8px 20px;
    gap: 12px;
  }

  .stack {
    gap: 12px;
  }

  .user-main-catalog.stack {
    gap: 8px;
  }

  .user-main-catalog .card-head {
    margin-bottom: 8px;
  }

  .user-main-catalog .app-card {
    padding: 12px 10px 12px;
  }

  .app-card--coupon-zone--home {
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .app-card {
    padding: 14px 10px 16px;
    border-radius: 18px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .coupon-zone-header-main {
    min-width: 0;
  }

  .coupon-zone-header-actions {
    width: 100%;
    padding-top: 4px;
  }

  .coupon-redeem-entry-btn:not(.coupon-redeem-entry-btn--corner) {
    width: 100%;
    justify-content: center;
  }

  .coupon-redeem-entry-btn--corner {
    width: auto;
  }

  /* 首页优惠券：口令按钮保持右上、不占满宽；票券已用首页紧凑样式 */
  .app-card--coupon-zone--home .coupon-zone-header-actions {
    width: auto;
    padding-top: 0;
  }

  .app-card--coupon-zone--home .coupon-redeem-entry-btn,
  .app-card--coupon-zone--home .coupon-redeem-entry-btn--compact {
    width: auto;
    justify-content: center;
  }

  .coupon-list-card__main {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 14px 14px;
  }

  .coupon-list-card__amount strong {
    font-size: 24px;
  }

  .coupon-list-card__amount span {
    font-size: 13px;
  }

  .coupon-list-card__threshold,
  .coupon-list-card__meta,
  .coupon-list-card__detail {
    font-size: 12px;
  }

  .coupon-list-card__title {
    font-size: 16px;
  }

  .coupon-list-card__footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 14px 12px;
  }

  .coupon-list-card__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .coupon-list-card__action,
  .coupon-list-card__status {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  .game-shop-catalog-wrap {
    padding: 6px 12px 28px;
  }

  .catalog-rows-2 .product-actions .ghost-btn,
  .catalog-rows-2 .product-actions .primary-btn {
    padding: 10px 4px;
    min-height: 40px;
  }

  .game-quick-nav,
  .catalog-rows-2 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .game-entry-card,
  .catalog-rows-2 .product-card {
    width: 100%;
    min-width: 0;
  }

  .game-entry-name,
  .catalog-rows-2 .product-title {
    font-size: 11px;
    line-height: 1.25;
  }

  .game-entry-visual {
    border-radius: 10px;
    aspect-ratio: 1 / 1;
  }

  #section-hot-games .game-entry-card,
  #section-channels .game-entry-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
  }

  #section-hot-games .game-entry-visual,
  #section-channels .game-entry-visual {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #section-hot-games .game-entry-name,
  #section-channels .game-entry-name {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.2;
    word-break: break-word;
  }

  .catalog-rows-2 .product-visual,
  .catalog-rows-2 .product-visual .visual-img {
    min-height: 64px;
    width: 100%;
  }

  .catalog-rows-2 .price-line strong {
    font-size: 15px;
  }

  #section-hot .catalog-rows-2,
  #section-channels .game-quick-nav,
  #section-hot-games .game-quick-nav {
    grid-template-columns: repeat(4, calc((100% - 24px) / 4)) !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    justify-content: space-between;
  }

  #section-hot,
  #section-hot-games,
  #section-channels,
  #section-hot .card-head,
  #section-hot-games .card-head,
  #section-channels .card-head {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #section-hot-games .game-entry-visual .game-entry-img,
  #section-channels .game-entry-visual .game-entry-img {
    width: 100%;
    max-width: 100%;
    display: block;
  }

  .hot-products-strip {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .catalog-rows-2 .price-line span {
    font-size: 10px;
  }

  .hot-products-strip {
    grid-auto-columns: minmax(88px, 88px);
    gap: 8px;
  }

  .hot-products-item__visual .visual-img {
    min-height: 88px;
  }

  .all-products-header {
    padding: 14px 12px 10px;
  }

  .all-products-title-wrap h1 {
    font-size: 18px;
  }

  .all-products-grid {
    gap: 10px;
  }

  .all-products-item {
    border-radius: 14px;
  }

  .all-products-item__body {
    padding: 10px 10px 12px;
  }

  .all-products-item__title {
    font-size: 13px;
  }

  /* iOS：聚焦输入框时避免整页缩放 */
  .user-body input:not([type="checkbox"]):not([type="radio"]),
  .user-body select,
  .user-body textarea {
    font-size: 16px;
  }

  .user-body button,
  .user-body .primary-btn,
  .user-body .ghost-btn,
  .user-body .secondary-btn {
    touch-action: manipulation;
  }

  .user-body .modal:not(.coupon-redeem-modal) {
    align-items: start;
    justify-items: stretch;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .user-body .coupon-redeem-modal {
    align-items: center;
    justify-items: center;
    padding: 20px;
    overflow-y: auto;
  }

  .user-body .modal:not(.coupon-redeem-modal) .modal-card {
    width: 100%;
    max-width: none;
    border-radius: 22px;
    padding: 18px;
  }

  .user-body .coupon-redeem-modal .coupon-redeem-modal__card {
    width: min(320px, calc(100vw - 40px));
    max-width: 320px;
    border-radius: 20px;
    padding: 18px 16px 16px;
    border: 0;
  }

  .user-body .modal:not(.coupon-redeem-modal) .modal-head h3 {
    font-size: 20px;
  }

  #detail-panel {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  #detail-panel .modal-card {
    width: 100%;
    max-height: min(88vh, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 28px));
  }

  .support-trigger,
  a.support-trigger {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(96px, calc(env(safe-area-inset-bottom) + 84px));
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    flex-basis: 50px;
    border-radius: 16px;
  }

  .support-trigger button {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .bottom-entry-nav {
    width: 100%;
    left: 0;
    transform: none;
    border-top-color: rgba(35, 40, 58, 0.08);
  }

  .bottom-entry-nav__item {
    padding-top: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .bottom-entry-nav__label {
    font-size: 13px;
  }

  /* 底部 Tab 页主区域至少占满视口，避免内容较少时中间露出 body 渐变底 */
  .user-shell.user-body:has(+ .bottom-entry-nav) {
    min-height: 100dvh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  .user-shell.user-body:has(+ .bottom-entry-nav) > .content-grid,
  .user-shell.user-body:has(+ .bottom-entry-nav) > .profile-body {
    flex: 1 1 auto;
  }

  .support-panel {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(104px, calc(env(safe-area-inset-bottom) + 92px));
    width: auto;
    min-height: min(480px, 65vh);
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 108px);
    padding: 16px;
    border-radius: 22px;
  }

  .support-chat-stream {
    max-height: min(48vh, 400px);
    min-height: 200px;
  }

  .user-orders-table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .payment-page.user-body {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .payment-page .user-header .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }

  .payment-page .user-header .ghost-btn,
  .payment-page .user-header .header-orders-btn {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 999px;
  }

  .payment-page .brand-mark {
    width: 40px;
    height: 40px;
  }

  .payment-page .brand h1 {
    font-size: 1.1rem;
  }

  .payment-page .payment-card {
    padding: 12px;
  }

  .payment-page .payment-card .card-head {
    margin-bottom: 8px;
  }

  .payment-page .payment-card .card-head h2 {
    font-size: 1.15rem;
    margin: 0 0 4px;
  }

  .payment-page .payment-card .muted {
    font-size: 12px;
  }

  .payment-layout {
    gap: 10px;
  }

  .payment-page .payment-order-panel,
  .payment-page .payment-side-panel {
    padding: 12px;
    border-radius: 14px;
  }

  .payment-page .payment-order-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
  }

  .payment-page .payment-order-meta {
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.45;
  }

  .payment-page .payment-amount-value {
    font-size: 26px;
    margin: 4px 0 10px;
  }

  .payment-page .payment-amount-label {
    font-size: 12px;
  }

  .payment-page .payment-method-label {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .payment-page .payment-method-select {
    padding: 10px 12px;
  }

  .payment-page .payment-actions {
    margin-top: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .payment-page .payment-go-pay-btn {
    width: 100%;
    order: -1;
    min-height: 46px;
    border-radius: 999px;
    font-size: 15px;
  }

  .payment-page .payment-actions .ghost-btn {
    justify-content: center;
    height: 36px;
    font-size: 13px;
  }

  .payment-page .payment-tip {
    font-size: 11px;
    padding: 8px 10px;
    margin-top: 10px;
  }

  .payment-page .announce {
    font-size: 12px;
    padding: 8px 10px;
  }

  .checkout-order-head {
    min-height: 48px;
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .checkout-order-scroll {
    padding: 10px 12px 8px;
  }

  .checkout-order-bottom {
    padding-left: 12px;
    padding-right: 12px;
  }

  .checkout-order-thumb {
    width: 48px;
    height: 48px;
  }

  .checkout-order-price {
    font-size: 16px;
  }

  .landing-body {
    padding: 28px 16px 36px;
    align-items: flex-start;
  }

  .landing-hero {
    padding: 28px 22px;
    border-radius: 28px;
  }

  .landing-hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
}

/* 管理端 — 优惠券领取统计柱状图 */
.coupon-stats-page {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.coupon-stats-block-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.coupon-stats-block-desc {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
}

.coupon-stats-facet {
  margin-bottom: 22px;
}

.coupon-stats-facet-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--muted);
}

.coupon-stats-bar-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-height: 188px;
  padding: 10px 4px 8px;
  border-bottom: 1px solid rgba(35, 40, 58, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.coupon-stats-bar-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
}

.coupon-stats-bar-pillar {
  width: 42px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #6b90f0 0%, #3d6bd8 100%);
  min-height: 4px;
  box-shadow: 0 2px 8px rgba(61, 107, 216, 0.25);
}

.coupon-stats-bar-item--usage .coupon-stats-bar-pillar {
  background: linear-gradient(180deg, #4ecf9a 0%, #2a9d73 100%);
  box-shadow: 0 2px 8px rgba(42, 157, 115, 0.28);
}

.coupon-stats-bar-count {
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
  color: var(--text, #23395d);
}

.coupon-stats-bar-label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  max-width: 76px;
  word-break: break-word;
  line-height: 1.3;
  margin-top: 4px;
}

/* 管理端 — 用户列表启用/禁用开关（正常 ⇄ 冻结） */
.admin-user-enable-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  vertical-align: middle;
}

.admin-user-enable-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-user-enable-toggle__track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #cbd5e1;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.admin-user-enable-toggle--on .admin-user-enable-toggle__track {
  background: #3d6bd8;
}

.admin-user-enable-toggle__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease;
}

.admin-user-enable-toggle--on .admin-user-enable-toggle__track::after {
  transform: translateX(18px);
}

.admin-user-enable-toggle__label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  min-width: 2em;
  text-align: left;
}

.admin-user-enable-toggle--on .admin-user-enable-toggle__label {
  color: #1e40af;
}

/* 管理端 — 用户列表启用/禁用开关（正常 ⇄ 冻结） */
.admin-user-enable-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  vertical-align: middle;
}

.admin-user-enable-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-user-enable-toggle__track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #cbd5e1;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.admin-user-enable-toggle--on .admin-user-enable-toggle__track {
  background: #3d6bd8;
}

.admin-user-enable-toggle__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease;
}

.admin-user-enable-toggle--on .admin-user-enable-toggle__track::after {
  transform: translateX(18px);
}

.admin-user-enable-toggle__label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  min-width: 2em;
  text-align: left;
}

.admin-user-enable-toggle--on .admin-user-enable-toggle__label {
  color: #1e40af;
}

/* 管理端 — 口令券领取统计（表格 + 明细） */
button.admin-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #3d6bd8;
  cursor: pointer;
  text-decoration: underline;
  text-align: left;
}

a.admin-link {
  color: #3d6bd8;
  text-decoration: underline;
}

.redemption-stats-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: stretch;
}

.redemption-stats-toolbar .field {
  height: 36px;
  padding: 0 10px;
  border-radius: 12px;
}

.redemption-stats-toolbar-label {
  white-space: nowrap;
  font-size: 13px;
}

.redemption-stats-toolbar--filter-only {
  width: 100%;
}

.redemption-stats-toolbar--drill {
  width: 100%;
  align-items: stretch;
  flex-direction: column;
}

.redemption-stats-toolbar--drill .redemption-stats-filter-strip {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.table-drill-nav-slot {
  margin: 0 0 8px;
}

.table-drill-nav-slot[hidden] {
  display: none !important;
}

.redemption-stats-drill-back-btn {
  height: 26px;
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 600;
  border-radius: 8px;
}

.redemption-stats-filter-strip--drill {
  overflow-x: auto;
}

.redemption-stats-filter-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  width: 100%;
  padding: 12px 16px 12px 18px;
  background: linear-gradient(165deg, #ffffff 0%, #f5f7fb 100%);
  border: 1px solid #e1e6ef;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(35, 57, 93, 0.05);
}

.redemption-stats-filter-strip__dates {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 12px;
  flex: 1 1 auto;
  min-width: min-content;
}

.redemption-stats-filter-strip__date-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.redemption-stats-filter-strip__range-label {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
}

.redemption-stats-filter-strip__date-wrap .redemption-stats-filter-strip__date {
  position: relative;
  z-index: 2;
  width: 176px;
  max-width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 36px 0 12px;
  border-radius: 8px;
  border: 1px solid #d0d7e2;
  background: #fff;
  font-size: 14px;
  color: #1a2744;
  box-sizing: border-box;
}

.admin-date-field-wrap .admin-date-field,
#table-toolbar .admin-date-field-wrap .admin-date-field,
.admin-analytics-toolbar .admin-date-field-wrap .admin-date-field {
  width: 100%;
  border-radius: 12px;
}

/* 铺满当前日期框区域，供原生日期面板锚定（勿用 fixed 贴视口角） */
.redemption-stats-date-picker-proxy {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  z-index: 1;
  box-sizing: border-box;
}

.redemption-stats-filter-strip__date::placeholder {
  color: #a0aec0;
  font-size: 14px;
}

.redemption-stats-filter-strip__between {
  color: #718096;
  font-size: 14px;
  font-weight: 500;
  padding: 0 4px;
  user-select: none;
}

.redemption-date-widget-btn {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #718096;
  cursor: pointer;
}

.redemption-date-widget-btn:hover {
  background: rgba(35, 57, 93, 0.06);
  color: #4a5568;
}

.redemption-date-widget-svg {
  display: block;
  flex-shrink: 0;
}

.redemption-stats-filter-strip__presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  margin-left: 4px;
  border-left: 1px solid #dce3ed;
}

.redemption-stats-filter-strip__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.redemption-stats-filter-strip__submit,
.redemption-stats-filter-strip__reset {
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
}

.redemption-stats-preset-btn {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 999px;
  border-color: #cfd8e6;
  background: #fff;
  color: #3d4f6f;
}

.redemption-stats-preset-btn:hover {
  border-color: #b8c5d9;
  background: #f8fafc;
}

.redemption-drill-customer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.redemption-drill-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #dfe6f5, #c5d2ec);
  color: #23395d;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.redemption-drill-code {
  font-size: 13px;
  background: rgba(35, 57, 93, 0.06);
  padding: 2px 8px;
  border-radius: 8px;
}

table.redemption-stats-table th,
table.redemption-drill-table th {
  white-space: nowrap;
}

table.redemption-stats-table button.admin-link {
  text-decoration: none;
}

table.redemption-stats-table button.admin-link:hover {
  text-decoration: none;
  color: #2d5bb8;
}

/* 管理端 · 数据分析柱状图 */
.admin-analytics-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  width: 100%;
}

.admin-analytics-filter {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.admin-analytics-filter-label {
  flex: 0 0 auto;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  color: var(--muted);
  font-size: 14px;
}

.admin-analytics-toolbar .admin-analytics-game-select,
.admin-analytics-game-select,
#table-toolbar .admin-analytics-game-select {
  min-width: 200px;
  max-width: 320px;
  width: auto;
  height: 38px;
  padding: 0 36px 0 12px;
  line-height: 1.3;
  font-size: 14px;
  box-sizing: border-box;
  flex-shrink: 0;
  appearance: auto;
  -webkit-appearance: menulist;
}

.admin-analytics-toolbar .admin-analytics-date-input,
.admin-analytics-date-input,
#table-toolbar .admin-analytics-date-input {
  width: 160px;
  height: 36px;
  padding: 0 10px;
  line-height: 1.2;
  font-size: 14px;
  border-radius: 12px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.admin-analytics-clear-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  flex-shrink: 0;
}

.split-head:has(.orders-toolbar) {
  align-items: flex-start;
  gap: 20px;
}

.split-head:has(.orders-toolbar) h3 {
  margin: 0;
  padding-top: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1.3;
}

.split-head:has(.orders-toolbar) #table-toolbar {
  flex: 1;
  min-width: 0;
  width: auto;
  display: flex;
  justify-content: flex-end;
}

.orders-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: auto;
  max-width: 100%;
  align-items: flex-end;
}

.orders-toolbar__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.orders-toolbar .order-filter-chip,
.orders-toolbar .ghost-btn,
.orders-toolbar .secondary-btn,
.orders-toolbar .primary-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.2;
}

.orders-toolbar .admin-date-field-wrap {
  width: 160px;
}

.orders-toolbar .admin-date-field-wrap .admin-date-field {
  height: 36px;
  padding: 0 36px 0 12px;
  border-radius: 12px;
  font-size: 14px;
}

.orders-toolbar .redemption-date-widget-btn {
  width: 32px;
  height: 32px;
}

.orders-toolbar .redemption-date-widget-btn svg {
  width: 18px;
  height: 18px;
}

.orders-toolbar__coupon-row {
  padding-top: 0;
}

.orders-toolbar__coupon-label {
  color: #4a5568;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.orders-toolbar__select {
  height: 36px;
  min-width: 160px;
  max-width: 280px;
  padding: 0 36px 0 12px;
  border-radius: 12px;
  border: 1px solid #d0d7e2;
  background: #fff;
  font-size: 14px;
  color: #1a2744;
  box-sizing: border-box;
  flex-shrink: 0;
}

.orders-toolbar__select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f7fafc;
}

.split-head:has(.catalog-list-toolbar) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.split-head:has(.catalog-list-toolbar) h3 {
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.split-head:has(.catalog-list-toolbar) #table-toolbar {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.catalog-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.catalog-list-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.catalog-list-filter-bar__field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}

.catalog-list-filter-bar__label {
  color: #4a5568;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.catalog-list-filter-bar__input,
.catalog-list-filter-bar__select {
  width: auto;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid rgba(35, 40, 58, 0.12);
  box-sizing: border-box;
  background: #fff;
}

.toolbar .catalog-list-filter-bar__input,
.toolbar .catalog-list-filter-bar__select {
  height: 36px;
  padding: 0 12px;
  line-height: 1.4;
}

.catalog-list-filter-bar__input {
  width: 180px;
  flex: 0 0 180px;
}

.catalog-list-filter-bar__select {
  width: 120px;
  flex: 0 0 120px;
  padding-right: 32px;
}

.catalog-list-filter-bar__select--game {
  width: 160px;
  flex: 0 0 160px;
}

.toolbar .catalog-list-filter-bar__select {
  padding-right: 32px;
}

.toolbar .catalog-list-filter-bar__select--game {
  padding-right: 32px;
}

.catalog-list-filter-bar__reset,
.catalog-list-toolbar__action {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .split-head:has(.catalog-list-toolbar) {
    flex-direction: column;
    align-items: stretch;
  }

  .split-head:has(.catalog-list-toolbar) #table-toolbar {
    justify-content: stretch;
  }

  .catalog-list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-list-filter-bar {
    justify-content: flex-start;
  }

  .catalog-list-filter-bar__field {
    width: 100%;
  }

  .catalog-list-filter-bar__input,
  .catalog-list-filter-bar__select {
    flex: 1 1 auto;
    width: auto;
  }

  .catalog-list-toolbar__action {
    width: 100%;
  }
}

.admin-analytics-chart-wrap {
  overflow-x: auto;
  padding: 4px 0 8px;
}

.admin-analytics-chart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 260px;
  width: 100%;
}

.admin-analytics-plot-head {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  min-height: 0;
}

.admin-analytics-y-axis {
  flex-shrink: 0;
  width: 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 8px 10px 0;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  border-right: 1px solid rgba(35, 40, 58, 0.12);
}

.admin-analytics-bars-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 8px 4px 0 12px;
}

.admin-analytics-bar-plot-grid {
  display: grid;
  grid-template-columns: repeat(var(--analytics-cols), minmax(44px, 64px));
  grid-template-rows: calc(var(--analytics-chart-h) + var(--analytics-bar-label-h, 36px));
  column-gap: 10px;
  align-items: end;
  justify-content: start;
  padding: 8px 4px 4px;
  box-sizing: border-box;
}

.admin-analytics-x-axis-full {
  width: 100%;
  height: 2px;
  margin: 10px 0 12px;
  flex-shrink: 0;
  background: rgba(35, 40, 58, 0.22);
  border-radius: 1px;
}

.admin-analytics-label-strip {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  padding-bottom: 4px;
}

.admin-analytics-label-strip__pad {
  width: 52px;
  flex-shrink: 0;
}

.admin-analytics-label-strip__grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(var(--analytics-cols), minmax(44px, 64px));
  column-gap: 10px;
  /* 与 .admin-analytics-bars-scroll + .admin-analytics-bar-plot-grid 左右留白一致，保证标签列与柱列对齐 */
  padding: 0 8px 0 16px;
  box-sizing: border-box;
}

.admin-analytics-bar-cell {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  min-width: 0;
}

.admin-analytics-bar-cell .admin-analytics-bar-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  gap: 4px;
}

.admin-analytics-bar-amount {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #4b5568;
  text-align: center;
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-analytics-bar {
  width: 20px;
  max-width: 100%;
  min-height: 4px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #6366f1, #4f46e5);
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.22);
}

.admin-analytics-bar-label-cell {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: #3a4154;
  text-align: center;
  word-break: break-word;
  min-width: 0;
  padding-top: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-analytics-chart--skewed .admin-analytics-y-axis {
  font-size: 12px;
  font-weight: 700;
  color: #4b5568;
}

.admin-analytics-caption {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.admin-dashboard-chart-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eef1f6;
}

.admin-dashboard-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.admin-dashboard-chart-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #1a2744;
}

.admin-dashboard-chart-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(35, 57, 93, 0.06);
  border: 1px solid rgba(35, 57, 93, 0.08);
}

.admin-dashboard-chart-tabs .admin-dashboard-chart-tab {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: 0;
  border-radius: 999px;
  padding: 7px 16px;
  min-width: 56px;
  background: transparent;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.admin-dashboard-chart-tabs .admin-dashboard-chart-tab:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.72);
  color: #23395d;
}

.admin-dashboard-chart-tabs .admin-dashboard-chart-tab.is-active {
  background: linear-gradient(135deg, var(--primary) 0%, #ff9262 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 74, 0.28);
}

.admin-dashboard-chart-tabs .admin-dashboard-chart-tab:focus-visible {
  outline: 2px solid rgba(255, 107, 74, 0.45);
  outline-offset: 2px;
}

.admin-dashboard-chart-wrap {
  margin-top: 4px;
}

.admin-dashboard-chart-caption {
  margin-top: 8px;
}

.admin-analytics-bar--dashboard {
  background: linear-gradient(180deg, #ffb347 0%, #ff8c42 100%);
}

.admin-analytics-page {
  display: flex;
  flex-direction: column;
}

.admin-analytics-line-section {
  padding-bottom: 20px;
}

.admin-analytics-line-section:not(:first-child) {
  padding-bottom: 0;
  padding-top: 20px;
  border-top: 1px solid #eef1f6;
}

.admin-analytics-bar-section {
  padding-top: 20px;
  border-top: 1px solid #eef1f6;
}

.admin-analytics-bar-section:first-child {
  padding-top: 0;
  border-top: none;
  padding-bottom: 20px;
}

.admin-analytics-bar-section .admin-dashboard-chart-title {
  margin: 0 0 12px;
}

.admin-analytics-line-chart-wrap {
  overflow-x: auto;
  padding: 4px 0 8px;
}

.admin-analytics-line-chart {
  display: block;
  min-width: 100%;
}

.admin-analytics-line-grid {
  stroke: rgba(35, 57, 93, 0.08);
  stroke-width: 1;
}

.admin-analytics-line-y-label,
.admin-analytics-line-x-label {
  fill: #667085;
  font-size: 11px;
  font-weight: 600;
}

.admin-analytics-line-path {
  fill: none;
  stroke: #ff6b4a;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-analytics-line-area {
  fill: url(#admin-analytics-line-fill);
}

.admin-analytics-line-dot {
  fill: #fff;
  stroke: #ff6b4a;
  stroke-width: 2;
}

.admin-analytics-line-dot:hover {
  stroke-width: 2.5;
}

.admin-analytics-line-path--visitor {
  stroke: #4a7cff;
}

.admin-analytics-line-area--visitor {
  fill: url(#admin-analytics-visitor-fill);
}

.admin-analytics-line-dot--visitor {
  stroke: #4a7cff;
}

.admin-leaderboard-table th:first-child,
.admin-leaderboard-table td:first-child {
  text-align: center;
}

.admin-leaderboard-table th:nth-child(2),
.admin-leaderboard-table td:nth-child(2) {
  text-align: center;
}

.admin-leaderboard-medal {
  display: block;
  margin: 0 auto;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 4px 10px rgba(35, 57, 93, 0.16));
}

.admin-user-avatar--leaderboard {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(35, 57, 93, 0.12);
}

.admin-leaderboard-rank--plain {
  min-width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef1f6 100%);
  color: #667085;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(35, 57, 93, 0.08);
}

.admin-table-card--leaderboard {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

.admin-leaderboard-panel {
  border-radius: 24px;
  padding: 22px 20px 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 146, 98, 0.18) 0%, transparent 42%),
    linear-gradient(145deg, #fff8f1 0%, #fff1dc 45%, #ffe7cc 100%);
  border: 1px solid rgba(255, 107, 74, 0.14);
  box-shadow: 0 16px 36px rgba(255, 107, 74, 0.1);
}

.admin-leaderboard-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.admin-leaderboard-table th,
.admin-leaderboard-table td {
  width: calc(100% / 6);
}

.admin-leaderboard-table thead th {
  padding: 12px 16px;
  border: none;
  background: rgba(255, 235, 210, 0.55);
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.admin-leaderboard-table thead th:first-child {
  border-radius: 12px 0 0 12px;
}

.admin-leaderboard-table thead th:last-child {
  border-radius: 0 12px 12px 0;
}

.admin-leaderboard-table tbody td {
  padding: 14px 16px;
  border: none;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.admin-leaderboard-table tbody tr.admin-leaderboard-row td:first-child {
  border-radius: 14px 0 0 14px;
}

.admin-leaderboard-table tbody tr.admin-leaderboard-row td:last-child {
  border-radius: 0 14px 14px 0;
}

.admin-leaderboard-row {
  box-shadow: 0 6px 18px rgba(35, 57, 93, 0.06);
}

.admin-leaderboard-row--gold td {
  background: linear-gradient(90deg, rgba(255, 213, 106, 0.42) 0%, rgba(255, 255, 255, 0.94) 72%);
}

.admin-leaderboard-row--silver td {
  background: linear-gradient(90deg, rgba(197, 206, 217, 0.38) 0%, rgba(255, 255, 255, 0.94) 72%);
}

.admin-leaderboard-row--bronze td {
  background: linear-gradient(90deg, rgba(217, 149, 106, 0.32) 0%, rgba(255, 255, 255, 0.94) 72%);
}

.admin-leaderboard-nickname {
  font-weight: 800;
  color: #1a2744;
}

.admin-leaderboard-orders {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(35, 57, 93, 0.08);
  color: #3d4f6f;
  font-size: 13px;
  font-weight: 700;
}

.admin-leaderboard-caption {
  margin-top: 12px;
  color: #8a6a55;
}

.admin-leaderboard-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef1f6;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.admin-leaderboard-rank--gold,
.admin-leaderboard-rank--silver,
.admin-leaderboard-rank--bronze {
  display: none;
}

.admin-leaderboard-amount {
  color: #ff6b4a;
  font-size: 16px;
}

/* —— 商品详情独立页 product-detail（直角白模块 + 底栏贴屏固定） —— */
.product-detail-page.user-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  overflow: visible;
  border: none;
  box-shadow: none;
  background: #ededed;
  backdrop-filter: none;
}

.product-detail-page.user-body {
  padding: 0 0 calc(72px + env(safe-area-inset-bottom, 0px));
}

.product-detail-page {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  max-width: none;
  margin: 0;
}

.product-detail-page .app-card {
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.product-detail-back {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text, #1a1d26);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: none;
}

.product-detail-header-title {
  flex: 1;
  text-align: center;
}

.product-detail-header-title h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.product-detail-header-spacer {
  width: 40px;
  flex-shrink: 0;
}

.product-detail-state {
  margin: 24px 16px;
}

.product-detail-home-link {
  display: inline-flex;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 0;
  font-weight: 700;
}

.product-detail-hero {
  padding: 0 0 8px;
}

.product-detail-hero-inner {
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
  background: #f8fafc;
}

.product-detail-hero-emoji {
  font-size: 72px;
  padding: 48px 0;
}

.product-detail-card {
  margin: 0 0 8px;
  padding: 14px 12px 12px;
}

.product-detail-name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.product-detail-sub {
  margin: 0 0 10px;
  font-size: 13px;
}

.product-detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.product-detail-price {
  font-size: 22px;
  color: #e11d48;
  font-weight: 800;
}

.product-detail-price-old {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
}

/* 图一：好评率标签（直角） */
.product-detail-rate-tag {
  display: inline-block;
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.3;
  color: #6b7280;
  border: 1px solid #9ca3af;
  background: #fff;
  border-radius: 0;
}

.product-detail-shop {
  margin: 0 0 8px;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-detail-shop-logo-wrap {
  flex-shrink: 0;
}

.product-detail-shop-logo {
  width: 56px;
  height: 56px;
  border-radius: 0;
  object-fit: contain;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.product-detail-shop-text {
  flex: 1;
  min-width: 0;
}

.product-detail-shop-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

/* 图二：企业认证（直角） */
.product-detail-shop-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border-radius: 0;
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.product-detail-hot {
  margin: 0 0 8px;
  padding: 12px 12px 14px;
}

.product-detail-section-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}

/* 热门商品：两列网格 */
.product-detail-hot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-detail-hot-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.15s ease;
}

.product-detail-hot-card:active {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.product-detail-hot-visual {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
}

.product-detail-hot-visual .visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-hot-emoji {
  font-size: 36px;
}

.product-detail-hot-body {
  padding: 8px 10px 10px;
}

.product-detail-hot-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.product-detail-hot-price {
  font-size: 14px;
  font-weight: 800;
  color: #e11d48;
}

.product-detail-desc {
  margin: 0 0 8px;
  padding: 12px 12px 16px;
}

.product-detail-desc .product-detail-description {
  font-size: 14px;
  line-height: 1.65;
  color: #374151;
}

.product-detail-desc .product-detail-description img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

.product-detail-bottom-spacer {
  height: 12px;
}

/* 贴屏幕底边，滚动时始终留在视口底部（viewport fixed） */
.product-detail-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  z-index: 300;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: stretch;
  align-items: center;
  box-sizing: border-box;
}

.product-detail-buy-btn {
  width: 100%;
  max-width: none;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 0;
}

/* =============================================================================
   手机管理端
   ============================================================================= */
.admin-mobile-body {
  margin: 0;
  background: #f5f6f8;
  color: #1f2430;
}

.admin-mobile-shell {
  min-height: 100vh;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.admin-mobile-shell--detail {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.admin-mobile-shell--detail .admin-mobile-detail-head,
.admin-mobile-shell--detail .admin-mobile-detail-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.admin-mobile-shell--detail .admin-mobile-detail-head,
.admin-mobile-shell--detail .admin-mobile-detail-card,
.admin-mobile-shell--detail .admin-mobile-detail-row {
  margin-left: 14px;
  margin-right: 14px;
}

.admin-mobile-shell--detail .admin-mobile-detail-head {
  margin-top: 14px;
}

.admin-mobile-shell--detail .admin-mobile-detail-row {
  margin-top: 16px;
}

.admin-mobile-shell--detail .admin-mobile-detail-card:not(.admin-mobile-detail-card--half) {
  margin-top: 18px;
}

.admin-mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-mobile-topbar__title {
  flex: 1;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.admin-mobile-topbar__actions {
  display: flex;
  gap: 8px;
  min-width: 32px;
  justify-content: flex-end;
}

.admin-mobile-topbar__side-spacer {
  flex-shrink: 0;
  width: 32px;
}

.admin-mobile-stats-card {
  margin: 12px 14px 0;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #23395d 0%, #35568a 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(35, 57, 93, 0.18);
}

.admin-mobile-stats-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-mobile-stats-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.admin-mobile-stats-card__date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.admin-mobile-stats-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-mobile-stats-card--page {
  margin-top: 14px;
}

.admin-mobile-stats-card__grid--quad {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-mobile-stats-card__grid--five {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-mobile-stats-card__grid--five .admin-mobile-stat:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.admin-mobile-stat__trend {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 10px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.62);
}

.admin-mobile-performance-note {
  margin: 14px 14px 0;
  font-size: 12px;
  line-height: 1.6;
}

.admin-mobile-leaderboard {
  margin: 16px 0 0;
  padding: 0 14px;
  background: transparent;
}

.admin-mobile-leaderboard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-mobile-leaderboard__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #1a2744;
}

.admin-mobile-leaderboard__tabs {
  display: inline-flex;
  gap: 4px;
  padding: 0;
  background: transparent;
}

.admin-mobile-leaderboard__tab {
  min-width: 40px;
  padding: 6px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8a919f;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.admin-mobile-leaderboard__tab.is-active {
  background: transparent;
  color: #ff6b4a;
}

.admin-mobile-leaderboard__empty {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: #8a919f;
}

.admin-mobile-leaderboard__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-mobile-leaderboard__item {
  display: grid;
  grid-template-columns: 36px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(35, 57, 93, 0.08);
}

.admin-mobile-leaderboard__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-mobile-leaderboard__rank {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.admin-mobile-leaderboard-medal {
  display: block;
  filter: drop-shadow(0 2px 6px rgba(35, 57, 93, 0.12));
}

.admin-mobile-leaderboard__rank .admin-leaderboard-rank--plain {
  min-width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 8px;
  background: #eef1f6;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-mobile-leaderboard__avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #667085;
  font-size: 15px;
  font-weight: 800;
}

.admin-mobile-leaderboard__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-mobile-leaderboard__main {
  min-width: 0;
}

.admin-mobile-leaderboard__name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #1a2744;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-mobile-leaderboard__sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #8a919f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-mobile-leaderboard__amount {
  font-size: 14px;
  font-weight: 800;
  color: #ff6b4a;
  white-space: nowrap;
}

.admin-mobile-shell--performance {
  background: #f5f5f5;
}

.admin-mobile-shell--profile {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: #f5f5f5;
}

.admin-mobile-profile-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
}

.admin-mobile-profile-hero {
  margin: 16px 14px 0;
  padding: 32px 20px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #23395d 0%, #35568a 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 28px rgba(35, 57, 93, 0.2);
}

.admin-mobile-profile-hero__avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.admin-mobile-profile-hero__name {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.admin-mobile-profile-presence-hit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.admin-mobile-profile-hero .admin-presence-dot {
  width: 10px;
  height: 10px;
}

.admin-mobile-profile-hero .admin-presence-dot--online {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.admin-mobile-profile-hero .admin-presence-dot--offline {
  background: #f87171;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.28);
}

.admin-mobile-profile-hero__status {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  user-select: none;
}

.admin-mobile-profile-status-menu {
  margin-top: 14px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.admin-mobile-profile-status-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.admin-mobile-profile-status-option.is-active {
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.admin-mobile-profile-hero__role {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.admin-mobile-profile-spacer {
  flex: 1;
  min-height: 24px;
}

.admin-mobile-profile-logout {
  display: block;
  width: auto;
  margin: 0 14px;
  padding: 14px 16px;
  border: none;
  border-radius: 14px;
  background: #fff;
  color: #ef4444;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(24, 36, 59, 0.06);
}

.admin-mobile-profile-logout:active {
  background: #fef2f2;
}

.admin-mobile-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
}

.admin-mobile-stat strong {
  font-size: 18px;
  line-height: 1.2;
}

.admin-mobile-stat span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
}

.admin-mobile-support-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 14px 0;
}

.admin-mobile-support-tabs__item {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: #eef2f7;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.admin-mobile-support-tabs__item.is-active {
  background: #23395d;
  color: #fff;
}

.admin-mobile-chat-readonly {
  padding: 8px 14px;
  background: #fff7e6;
  color: #ad6800;
  font-size: 12px;
  text-align: center;
  border-bottom: 1px solid #ffe7ba;
}

.admin-mobile-qr-suggest {
  max-height: min(40vh, 280px);
  overflow-y: auto;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  -webkit-overflow-scrolling: touch;
}

.admin-mobile-qr-suggest__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
  text-align: left;
}

.admin-mobile-qr-suggest__item:active {
  background: #f9fafb;
}

.admin-mobile-qr-suggest__keyword {
  flex-shrink: 0;
  color: #ea580c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.admin-mobile-qr-suggest__preview {
  flex: 1;
  min-width: 0;
  color: #374151;
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-mobile-chat-tool-btn {
  flex-shrink: 0;
  width: 42px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #23395d;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.admin-mobile-back-btn,
.admin-mobile-link-btn {
  border: none;
  background: transparent;
  color: #23395d;
  font-size: 15px;
  font-weight: 700;
  padding: 4px 6px;
}

.admin-mobile-back-btn {
  font-size: 28px;
  line-height: 1;
  padding: 0 4px 0 0;
}

.admin-mobile-link-btn--pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2f7;
  font-size: 13px;
}

.admin-mobile-toolbar {
  padding: 6px 14px 0;
}

.admin-mobile-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 0 8px;
  min-height: 36px;
}

.admin-mobile-search__select {
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: #23395d;
  padding: 0;
  height: 34px;
}

.admin-mobile-search__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  min-width: 0;
  height: 34px;
  padding: 0;
}

.admin-mobile-toolbar__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.admin-mobile-select {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  min-height: 36px;
  font-size: 13px;
}

.admin-mobile-select--block {
  width: 100%;
  margin-bottom: 10px;
}

.admin-mobile-filter-btn {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  border-radius: 8px;
  padding: 0 12px;
  min-height: 36px;
  font-size: 13px;
  white-space: nowrap;
}

.admin-mobile-tabs {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 14px 14px 0;
  scrollbar-width: none;
}

.admin-mobile-tabs--compact {
  gap: 14px;
  padding: 8px 14px 0;
}

.admin-mobile-tabs--compact .admin-mobile-tab {
  padding: 0 0 6px;
  font-size: 14px;
}

.admin-mobile-tabs::-webkit-scrollbar {
  display: none;
}

.admin-mobile-tab {
  border: none;
  background: transparent;
  padding: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #7a8190;
  white-space: nowrap;
  position: relative;
}

.admin-mobile-tab.is-active {
  color: #111;
}

.admin-mobile-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #111;
  border-radius: 999px;
}

.admin-mobile-list {
  padding: 12px 14px 0;
  display: grid;
  gap: 12px;
}

.admin-mobile-empty {
  padding: 48px 16px;
  text-align: center;
  color: #8a909c;
}

.admin-mobile-order-card,
.admin-mobile-detail-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.admin-mobile-order-card--clickable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.admin-mobile-order-card--clickable:active {
  background: #f8fafc;
}

.admin-mobile-order-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.admin-mobile-order-card__time {
  font-size: 13px;
  color: #666;
}

.admin-mobile-order-card__id-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.admin-mobile-order-card__id {
  font-size: 13px;
  word-break: break-all;
}

.admin-mobile-copy-btn {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}

.admin-mobile-status-tag {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-mobile-status-tag.is-pending {
  color: #d97706;
}

.admin-mobile-status-tag.is-unpaid {
  color: #e37400;
}

.admin-mobile-status-tag.is-cancelled {
  color: #9ca3af;
}

.admin-mobile-status-tag.is-shipped {
  color: #059669;
}

.admin-mobile-status-tag.is-refund {
  color: #dc2626;
}

.admin-mobile-buyer-row,
.admin-mobile-support-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 0 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: transparent;
  text-align: left;
}

.admin-mobile-buyer-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef2f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #23395d;
  flex-shrink: 0;
}

.admin-mobile-buyer-phone {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
}

.admin-mobile-buyer-chevron {
  color: #b0b5bf;
  font-size: 20px;
}

.admin-mobile-order-card__product {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  align-items: flex-start;
}

.admin-mobile-order-card__thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.admin-mobile-order-card__thumb--fb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  font-size: 28px;
}

.admin-mobile-order-card__product-main {
  flex: 1;
  min-width: 0;
}

.admin-mobile-order-card__product-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.admin-mobile-order-card__product-sub {
  margin-top: 4px;
  font-size: 13px;
}

.admin-mobile-order-card__price {
  text-align: right;
  font-size: 14px;
  font-weight: 700;
}

.admin-mobile-remark-tag {
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff7f7;
  font-size: 13px;
}

.admin-mobile-remark-tag__label {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 12px;
}

.admin-mobile-order-card__sum {
  margin-top: 12px;
  font-size: 13px;
}

.admin-mobile-order-card__actions,
.admin-mobile-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.admin-mobile-action-btn {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
}

.admin-mobile-action-btn--primary {
  background: #23395d;
  border-color: #23395d;
  color: #fff;
}

.admin-mobile-action-btn--danger {
  color: #dc2626;
  border-color: #fecaca;
}

.admin-mobile-action-btn:disabled {
  opacity: 0.45;
}

.admin-mobile-list--orders {
  gap: 8px;
  padding-top: 8px;
}

.admin-mobile-list--orders .admin-mobile-order-card {
  padding: 10px 12px;
  border-radius: 12px;
}

.admin-mobile-list--orders .admin-mobile-order-card__head {
  gap: 8px;
}

.admin-mobile-list--orders .admin-mobile-order-card__time,
.admin-mobile-list--orders .admin-mobile-order-card__id {
  font-size: 12px;
}

.admin-mobile-list--orders .admin-mobile-order-card__id-row {
  margin-top: 2px;
  gap: 6px;
}

.admin-mobile-list--orders .admin-mobile-copy-btn {
  padding: 1px 6px;
  font-size: 11px;
}

.admin-mobile-list--orders .admin-mobile-status-tag {
  font-size: 12px;
}

.admin-mobile-list--orders .admin-mobile-buyer-row {
  margin-top: 8px;
  padding-top: 6px;
  gap: 8px;
}

.admin-mobile-list--orders .admin-mobile-buyer-avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.admin-mobile-list--orders .admin-mobile-buyer-phone {
  font-size: 13px;
}

.admin-mobile-list--orders .admin-mobile-buyer-chevron {
  font-size: 16px;
}

.admin-mobile-list--orders .admin-mobile-order-card__product {
  margin-top: 8px;
  gap: 8px;
}

.admin-mobile-list--orders .admin-mobile-order-card__thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.admin-mobile-list--orders .admin-mobile-order-card__thumb--fb {
  font-size: 22px;
}

.admin-mobile-list--orders .admin-mobile-order-card__product-name {
  font-size: 13px;
  line-height: 1.3;
}

.admin-mobile-list--orders .admin-mobile-order-card__product-sub {
  margin-top: 2px;
  font-size: 12px;
}

.admin-mobile-list--orders .admin-mobile-order-card__price {
  font-size: 13px;
}

.admin-mobile-list--orders .admin-mobile-remark-tag {
  margin-top: 8px;
  padding: 5px 8px;
  font-size: 12px;
}

.admin-mobile-list--orders .admin-mobile-remark-tag__label {
  font-size: 11px;
  padding: 0 4px;
}

.admin-mobile-list--orders .admin-mobile-order-card__sum {
  margin-top: 6px;
  font-size: 12px;
}

.admin-mobile-list--orders .admin-mobile-order-card__actions {
  margin-top: 8px;
  gap: 6px;
}

.admin-mobile-list--orders .admin-mobile-action-btn {
  padding: 5px 10px;
  font-size: 12px;
}

.admin-mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}

.admin-mobile-bottom-nav__item {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 4px;
  font-size: 13px;
  font-weight: 700;
  color: #7a8190;
  position: relative;
}

.admin-mobile-bottom-nav__item.is-active {
  color: #23395d;
}

.admin-mobile-bottom-nav__badge {
  position: absolute;
  top: 6px;
  margin-left: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
}

.admin-mobile-user-banner {
  margin: 12px 14px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(24, 36, 59, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-mobile-user-banner__profile {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-mobile-user-banner__avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #5b6cff, #3d4ae0);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.admin-mobile-user-banner__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-mobile-user-banner__main {
  flex: 1;
  min-width: 0;
}

.admin-mobile-user-banner__name {
  font-size: 16px;
  font-weight: 700;
  color: #1f2430;
  line-height: 1.3;
}

.admin-mobile-user-banner__spent {
  flex-shrink: 0;
  text-align: right;
}

.admin-mobile-user-banner__spent-label {
  display: block;
  font-size: 11px;
  line-height: 1.3;
}

.admin-mobile-user-banner__spent-value {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 800;
  color: #23395d;
  line-height: 1.2;
}

.admin-mobile-support-list {
  padding: 12px 14px 0;
}

.admin-mobile-pull-refresh {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  transition: height 0.15s ease;
}

.storefront-pull-refresh {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
}

.admin-mobile-queue-block {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

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

.admin-mobile-queue-count {
  font-size: 13px;
  flex-shrink: 0;
}

.admin-mobile-queue-more {
  display: block;
  width: 100%;
  margin-top: 0;
  padding: 8px 0 2px;
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  text-align: center;
}

.admin-mobile-queue-more--expanded {
  margin-top: 2px;
  border-top: 1px dashed rgba(0, 0, 0, 0.06);
}

.admin-mobile-queue-list {
  display: flex;
  flex-direction: column;
}

.admin-mobile-queue-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-mobile-queue-card__main {
  flex: 1;
  min-width: 0;
}

.admin-mobile-queue-card__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.admin-mobile-queue-time {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
  line-height: 1.2;
}

.admin-mobile-queue-preview {
  margin-top: 4px;
  font-size: 13px;
  color: #8a909c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-mobile-queue-accept {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-mobile-queue-accept:active {
  background: #dbeafe;
}

.admin-mobile-queue-accept:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-mobile-queue-name,
.admin-mobile-support-item__name {
  font-size: 15px;
  font-weight: 700;
}

.admin-mobile-support-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-mobile-support-section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #666;
}

.admin-mobile-support-item__main {
  flex: 1;
  min-width: 0;
}

.admin-mobile-support-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-mobile-support-item__time {
  flex-shrink: 0;
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
}

.admin-mobile-support-item__sub {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.admin-mobile-support-item__preview {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #8a909c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-mobile-chat-panel {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px - 52px - env(safe-area-inset-bottom));
}

.admin-mobile-chat-stream {
  flex: 1;
  overflow: auto;
  padding: 12px 14px 8px;
  background: #ededed;
}

.admin-mobile-chat-empty {
  text-align: center;
  color: #8a909c;
  padding: 40px 16px;
}

.admin-mobile-chat-row {
  margin-bottom: 12px;
  max-width: 86%;
}

.admin-mobile-chat-row--user {
  margin-right: auto;
}

.admin-mobile-chat-row--agent {
  margin-left: auto;
}

.admin-mobile-chat-meta {
  font-size: 12px;
  color: #8a909c;
  margin-bottom: 4px;
}

.admin-mobile-chat-bubble {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.admin-mobile-chat-row--agent .admin-mobile-chat-bubble {
  background: #95ec69;
  color: #1a1a1a;
}

.admin-mobile-chat-image {
  max-width: 180px;
  border-radius: 8px;
  display: block;
}

.admin-mobile-chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 10px;
  background: #f7f7f7;
  border-top: 1px solid #dcdcdc;
}

.admin-mobile-chat-input {
  flex: 1;
  min-height: 36px;
  max-height: 96px;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  resize: none;
  font-size: 16px;
  line-height: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.admin-mobile-chat-send {
  flex-shrink: 0;
  height: 36px;
  min-width: 56px;
  border: none;
  background: #23395d;
  color: #fff;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
}

.admin-mobile-chat-send:disabled {
  background: #c8cdd6;
  color: #fff;
}

.admin-mobile-detail-head,
.admin-mobile-detail-card {
  margin: 12px 14px 0;
}

.admin-mobile-detail-row {
  display: flex;
  gap: 10px;
  margin: 12px 14px 0;
  align-items: stretch;
}

.admin-mobile-detail-row .admin-mobile-detail-card {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.admin-mobile-detail-card--remark {
  display: flex;
  flex-direction: column;
}

.admin-mobile-detail-card--remark .admin-mobile-detail-line {
  flex: 1;
  word-break: break-word;
}

.admin-mobile-detail-card--remark .admin-mobile-action-btn {
  margin-top: 10px;
  align-self: flex-start;
  padding: 6px 12px;
  font-size: 13px;
}

.admin-mobile-detail-head {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
}

.admin-mobile-detail-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-mobile-detail-head__row + .admin-mobile-order-card__id-row {
  margin-top: 8px;
}

.admin-mobile-detail-head .admin-mobile-order-card__id-row {
  margin-top: 8px;
}

.admin-mobile-detail-head__remark {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #666;
  word-break: break-word;
}

.admin-mobile-detail-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.admin-mobile-detail-line {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.admin-mobile-detail-line--strong {
  font-weight: 800;
  font-size: 16px;
}

.admin-mobile-detail-actions {
  padding: 0 14px 20px;
}

.admin-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.45);
}

.admin-mobile-modal {
  width: min(100%, 340px);
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px 16px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22);
}

.admin-mobile-modal__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  color: #111827;
}

.admin-mobile-modal__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
  min-height: 88px;
  outline: none;
}

.admin-mobile-modal__input:focus {
  border-color: #23395d;
}

.admin-mobile-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.admin-mobile-modal__btn {
  min-width: 72px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #374151;
}

.admin-mobile-modal__btn--primary {
  background: #23395d;
  border-color: #23395d;
  color: #fff;
}

/* 用户端 · 我的（游戏平台风格个人中心） */
.profile-page {
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
  background: #f3f5f9;
}

.profile-hero {
  position: relative;
  padding: 20px 16px 0;
  background:
    linear-gradient(135deg, rgba(35, 57, 93, 0.98) 0%, rgba(53, 86, 138, 0.96) 48%, rgba(26, 46, 73, 0.98) 100%);
  color: #fff;
}

.profile-checkin-btn {
  position: absolute;
  top: 16px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px 7px 10px;
  border: 1px solid rgba(255, 214, 140, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 196, 120, 0.22) 0%, rgba(255, 145, 60, 0.18) 100%);
  color: #ffe8b8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

.profile-checkin-btn__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.profile-checkin-btn__icon svg {
  width: 100%;
  height: 100%;
}

.profile-checkin-btn--done {
  border-color: rgba(167, 243, 208, 0.45);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.22) 0%, rgba(16, 185, 129, 0.16) 100%);
  color: #d1fae5;
}

.checkin-modal-wrap {
  align-items: flex-end;
  padding: 0;
}

.checkin-modal {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
}

.checkin-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.checkin-modal__hero {
  position: relative;
  padding: 24px 20px 18px;
  background: linear-gradient(135deg, #2f4770 0%, #4a74b8 52%, #243b63 100%);
  color: #fff;
  overflow: hidden;
}

.checkin-modal__hero-glow {
  position: absolute;
  top: -40px;
  right: -20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 120, 0.35) 0%, rgba(255, 196, 120, 0) 70%);
  pointer-events: none;
}

.checkin-modal__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.checkin-modal__subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.checkin-modal__month {
  display: inline-flex;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 700;
}

.checkin-modal__loading {
  padding: 36px 20px 48px;
  text-align: center;
  color: #64748b;
}

.checkin-modal__body {
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
}

.checkin-calendar__weekdays,
.checkin-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.checkin-calendar__weekdays {
  margin-bottom: 8px;
}

.checkin-calendar__weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.checkin-calendar__cell {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f8fafc;
}

.checkin-calendar__cell.is-empty {
  background: transparent;
}

.checkin-calendar__day {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.checkin-calendar__cell.is-today {
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.16) 0%, rgba(255, 107, 26, 0.12) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 138, 61, 0.55);
}

.checkin-calendar__cell.is-today .checkin-calendar__day {
  color: #ea580c;
}

.checkin-calendar__cell.is-checked {
  background: linear-gradient(135deg, #ff8a3d 0%, #ff6b1a 100%);
  box-shadow: 0 6px 14px rgba(255, 107, 26, 0.28);
}

.checkin-calendar__cell.is-checked .checkin-calendar__day {
  color: #fff;
}

.checkin-calendar__mark {
  position: absolute;
  right: 4px;
  bottom: 3px;
  font-size: 9px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.checkin-modal__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  font-size: 13px;
  color: #475569;
}

.checkin-modal__stats strong {
  color: #ea580c;
  font-size: 16px;
}

.checkin-modal__reward {
  color: #64748b;
  font-size: 12px;
}

.checkin-modal__submit {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  background: linear-gradient(135deg, #ff8a3d 0%, #ff6b1a 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 107, 26, 0.28);
}

.checkin-modal__submit:disabled,
.checkin-modal__submit.is-done {
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  box-shadow: none;
  cursor: default;
}

.checkin-toast {
  position: absolute;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 5;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
}

.checkin-toast-enter-active,
.checkin-toast-leave-active {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.checkin-toast-enter-from,
.checkin-toast-leave-to {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

.points-mall-settings-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.08) 0%, rgba(255, 107, 26, 0.05) 100%);
  border: 1px solid rgba(255, 138, 61, 0.16);
}

.points-mall-settings-bar__copy {
  min-width: 0;
}

.points-mall-settings-bar__title {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.points-mall-settings-bar__copy p {
  margin: 0;
  font-size: 12px;
}

.points-mall-settings-bar__meta {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
}

.points-mall-settings-bar__error {
  margin: 6px 0 0;
  color: #dc2626;
  font-size: 12px;
}

.profile-hero__guest,
.profile-hero__user {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-hero__guest {
  flex-wrap: wrap;
}

.profile-hero__guest-login {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.profile-hero__avatar-btn {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
}

.profile-hero__avatar,
.profile-hero__avatar-fallback,
.profile-hero__avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.profile-hero__avatar--guest {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 92, 255, 0.18);
  border: 1px solid rgba(185, 164, 255, 0.35);
}

.profile-hero__avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  font-size: 28px;
  font-weight: 800;
}

.profile-hero__vip-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 196, 120, 0.85);
  box-shadow: 0 0 18px rgba(255, 183, 77, 0.35);
  pointer-events: none;
}

.profile-hero__meta {
  min-width: 0;
  flex: 1;
}

.profile-hero__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.profile-hero__subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.profile-hero__level-badge {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 6px;
  padding: 2px 7px 2px 9px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  user-select: none;
  pointer-events: none;
  overflow: hidden;
  transform: skewX(-8deg);
}

.profile-hero__level-badge__prefix,
.profile-hero__level-badge__value {
  transform: skewX(8deg);
}

.profile-hero__level-badge__prefix {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.88;
}

.profile-hero__level-badge__value {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.profile-hero__level-badge--gold {
  color: #ffe08a;
  background:
    linear-gradient(180deg, rgba(255, 220, 120, 0.14) 0%, transparent 42%),
    linear-gradient(180deg, #2a1c08 0%, #120a02 100%);
  border: 1px solid #e8a820;
  box-shadow:
    0 0 10px rgba(255, 184, 40, 0.38),
    0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 220, 130, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55);
  text-shadow: 0 0 8px rgba(255, 196, 60, 0.55), 0 1px 0 rgba(0, 0, 0, 0.65);
}

.profile-hero__level-badge--gold::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #fff2b0 0%, #f0b429 55%, #b8740a 100%);
  box-shadow: 0 0 6px rgba(255, 196, 60, 0.65);
  pointer-events: none;
}

.profile-hero__level-badge--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 24%,
    rgba(255, 236, 160, 0.22) 44%,
    transparent 58%
  );
  transform: translateX(-130%);
  animation: profile-level-shine 5s ease-in-out infinite;
  pointer-events: none;
}

.profile-hero__level-badge--gold .profile-hero__level-badge__prefix {
  color: #f5c842;
}

.profile-hero__level-badge--gold .profile-hero__level-badge__value {
  color: #fff3c4;
  text-shadow: 0 0 10px rgba(255, 210, 80, 0.75);
}

.profile-hero__level-badge--platinum {
  color: #e8edf5;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
    linear-gradient(180deg, #2a3340 0%, #141820 100%);
  border: 1px solid #9aa8ba;
  box-shadow:
    0 0 8px rgba(154, 168, 186, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-shadow: 0 0 6px rgba(200, 210, 225, 0.4);
}

.profile-hero__level-badge--platinum::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #eef2f8 0%, #9aa8ba 100%);
  pointer-events: none;
}

.profile-hero__level-badge--diamond {
  color: #d8f0ff;
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.16) 0%, transparent 40%),
    linear-gradient(180deg, #12304f 0%, #081525 100%);
  border: 1px solid #5eb8f0;
  box-shadow:
    0 0 10px rgba(59, 130, 196, 0.42),
    inset 0 1px 0 rgba(186, 230, 255, 0.2);
  text-shadow: 0 0 8px rgba(125, 211, 252, 0.55);
}

.profile-hero__level-badge--diamond::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #bae6fd 0%, #3b82c4 100%);
  pointer-events: none;
}

@keyframes profile-level-shine {
  0%,
  70%,
  100% {
    transform: translateX(-130%);
  }
  86% {
    transform: translateX(130%);
  }
}

.profile-member-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 16px 0 0;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  color: #f5d89a;
  background: transparent;
  cursor: pointer;
}

.profile-member-bar__gem {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  color: #f5d89a;
}

.profile-member-bar__brand,
.profile-member-bar__tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-member-bar__tier {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.profile-wallet-card {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.profile-wallet-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-wallet-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 12px 10px;
  border: 0;
  background: #fff;
  text-align: center;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.profile-wallet-stat:active {
  background: #f8f9fc;
}

.profile-wallet-stat--points::after {
  content: "";
  position: absolute;
  right: 0;
  top: 24%;
  bottom: 24%;
  width: 1px;
  background: #eef1f6;
}

.profile-wallet-stat__label {
  font-size: 12px;
  font-weight: 600;
  color: #7a8496;
  line-height: 1.2;
}

.profile-wallet-stat__value {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: #1a2744;
}

.profile-assets {
  padding: 0 14px;
  background: #fff;
}

.profile-assets__card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #eef1f6;
}

.profile-stat {
  position: relative;
  padding: 16px 10px 18px;
  text-align: center;
  background: transparent;
  border: 0;
  color: inherit;
  text-decoration: none;
}

.profile-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: #e8ecf2;
}

.profile-stat--action {
  cursor: pointer;
}

.profile-stat--link {
  display: block;
}

.profile-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #1a2744;
  line-height: 1.2;
}

.profile-stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #7a8496;
}

.profile-assets-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.profile-asset-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 14px 12px;
  border: 0;
  border-radius: 18px;
  text-align: left;
  color: inherit;
  box-shadow: 0 8px 24px rgba(24, 36, 59, 0.06);
  cursor: pointer;
}

.profile-asset-card--points {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.profile-asset-card--coupons {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
}

.profile-asset-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.profile-asset-card--points .profile-asset-card__icon {
  background: rgba(234, 88, 12, 0.14);
  color: #ea580c;
}

.profile-asset-card--coupons .profile-asset-card__icon {
  background: rgba(225, 29, 72, 0.12);
  color: #e11d48;
  font-size: 16px;
}

.profile-asset-card__main {
  flex: 1;
  min-width: 0;
}

.profile-asset-card__main strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: #1a2744;
}

.profile-asset-card__main span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #7a8496;
}

.profile-asset-card__arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: #b6bcc8;
  line-height: 1;
}

.profile-body {
  padding: 0 0 16px;
  background: #f3f5f9;
}

.profile-body > .profile-panel,
.profile-body > .profile-menu,
.profile-body > .profile-consumption-tip {
  margin-left: 12px;
  margin-right: 12px;
}

.profile-consumption-tip {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: auto;
  height: 112px;
  margin-bottom: 10px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 36, 59, 0.05);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}

.profile-consumption-tip__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  border-radius: inherit;
}

.profile-consumption-tip-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.88);
}

.profile-consumption-tip-modal.hidden {
  display: none;
}

.profile-consumption-tip-modal__close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.profile-consumption-tip-modal__img {
  display: block;
  max-width: min(100%, 520px);
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.profile-panel {
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 36, 59, 0.05);
}

.profile-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.profile-panel__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1a2744;
}

.profile-panel__link {
  font-size: 13px;
  font-weight: 700;
  color: #8e94a3;
  text-decoration: none;
}

.profile-panel__link-btn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.profile-promo-banner {
  display: block;
  margin-bottom: 12px;
  padding: 14px 16px 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 36, 59, 0.05);
  text-decoration: none;
  color: inherit;
}

.profile-promo-banner__label {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #1a2744;
}

.profile-orders-panel {
  margin-top: 0;
  margin-bottom: 10px;
}

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

.profile-order-grid__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 4px 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.profile-order-grid__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  line-height: 0;
}

.profile-order-grid__icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

.profile-order-grid__badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 24px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background: #ff6b35;
}

.profile-order-grid__label {
  font-size: 11px;
  font-weight: 600;
  color: #4a5568;
  line-height: 1.2;
  text-align: center;
}

.profile-panel__empty {
  margin: 0;
  font-size: 13px;
  color: #8e94a3;
}

.profile-coupon-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.profile-coupon-mini {
  flex: 0 0 132px;
  min-width: 132px;
  padding: 12px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #faf4eb 0%, #f3e8da 100%);
  border: 1px solid rgba(180, 150, 110, 0.22);
}

.profile-coupon-mini__amount {
  font-size: 20px;
  font-weight: 800;
  color: #3f2f22;
}

.profile-coupon-mini__meta {
  margin-top: 4px;
  font-size: 11px;
  color: #8b7355;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #f7f9fc;
  text-decoration: none;
  color: inherit;
}

.profile-order-item__main {
  min-width: 0;
  flex: 1;
}

.profile-order-item__name {
  font-size: 14px;
  font-weight: 700;
  color: #1a2744;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-order-item__meta {
  margin-top: 4px;
  font-size: 12px;
  color: #8e94a3;
}

.profile-order-item__price {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 800;
  color: #d45c28;
}

.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 36, 59, 0.05);
}

.profile-menu__item {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid rgba(35, 40, 58, 0.06);
  background: #fff;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.profile-menu__item--link {
  display: grid;
}

.profile-menu__item:last-child {
  border-bottom: 0;
}

.profile-menu__item--danger .profile-menu__label {
  color: #d14343;
}

.profile-menu__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 0;
}

.profile-menu__icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.profile-menu__label {
  font-size: 14px;
  font-weight: 700;
  color: #1a2744;
}

.profile-menu__hint {
  font-size: 12px;
  color: #ffb74a;
  font-weight: 700;
}

.profile-menu__arrow {
  font-size: 18px;
  color: #b8bfcc;
  line-height: 1;
}

.profile-menu__badge {
  margin-left: auto;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 138, 61, 0.12);
  color: #ea580c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.profile-menu__badge--done {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.profile-menu__badge--muted {
  background: rgba(107, 114, 128, 0.12);
  color: #6b7280;
}

.profile-identity-disabled-tip {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
}

.profile-identity-disabled-sub {
  margin: 0 0 20px;
  line-height: 1.6;
  max-width: 280px;
  text-align: center;
}

.profile-identity-body {
  padding: 16px;
}

.profile-identity-tip {
  margin: 0 0 16px;
  line-height: 1.6;
}

.profile-identity-card {
  padding: 20px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 40, 58, 0.06);
}

.profile-identity-card--success {
  border: 1px solid rgba(16, 185, 129, 0.18);
}

.profile-identity-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.profile-identity-card__title {
  margin: 0 0 16px;
  font-size: 18px;
}

.profile-identity-summary {
  margin: 0;
}

.profile-identity-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(35, 40, 58, 0.08);
}

.profile-identity-summary__row:first-child {
  border-top: 0;
  padding-top: 0;
}

.profile-identity-summary__row dt {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.profile-identity-summary__row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.profile-identity-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-identity-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-identity-field__label {
  font-size: 14px;
  font-weight: 600;
}

.profile-identity-field__input {
  width: 100%;
}

.profile-identity-error {
  margin: 0;
  color: #dc2626;
  font-size: 13px;
  line-height: 1.5;
}

.profile-identity-submit {
  margin-top: 4px;
}

.profile-modal-card {
  max-width: 420px;
}

.profile-form .field,
.profile-form .select {
  width: 100%;
}

.profile-field-label {
  font-size: 12px;
}

.profile-avatar-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.profile-avatar-upload__preview {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  font-size: 30px;
  font-weight: 800;
  color: #35568a;
}

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

.profile-avatar-upload__text {
  font-size: 13px;
  color: #35568a;
  font-weight: 700;
}

.profile-security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 4px;
}

.profile-points-placeholder {
  padding: 24px 12px 30px;
  text-align: center;
}

.profile-points-placeholder__icon {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 10px;
}

.profile-points-placeholder p {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #1a2744;
}

@media (max-width: 900px) {
  .profile-hero {
    padding-top: 22px;
  }

  .profile-hero__title {
    font-size: 20px;
  }
}

/* 用户端 · 子页面顶栏（返回 + 标题） */
.storefront-subpage-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.storefront-subpage-back {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1a1d26;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.storefront-subpage-back svg {
  width: 22px;
  height: 22px;
  margin-left: -2px;
}

.storefront-subpage-title {
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
}

.storefront-subpage-spacer {
  width: 40px;
}

/* 用户端 · 个人信息 */
.profile-info-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  background: #f3f5f9;
  border: 0;
  box-shadow: none;
}

.profile-info-page.user-shell {
  background: #f3f5f9;
}

.profile-info-empty {
  padding: 48px 20px;
  text-align: center;
}

.profile-info-empty__btn {
  display: inline-flex;
  margin-top: 16px;
  min-width: 140px;
  justify-content: center;
}

.profile-info-section-label {
  padding: 14px 16px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #8e94a3;
}

.profile-info-list {
  background: #fff;
  border-top: 1px solid #eef1f6;
  border-bottom: 1px solid #eef1f6;
}

.profile-info-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #eef1f6;
  background: #fff;
  text-align: left;
  color: inherit;
  text-decoration: none;
  cursor: default;
}

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

.profile-info-row--action {
  cursor: pointer;
}

.profile-info-row--link {
  display: grid;
}

.profile-info-row--static {
  cursor: default;
}

.profile-info-row__label {
  font-size: 15px;
  font-weight: 600;
  color: #1a2744;
}

.profile-info-row__value {
  font-size: 15px;
  color: #4a5568;
  text-align: right;
}

.profile-info-row__value.is-placeholder {
  color: #b0b7c3;
}

.profile-info-row__value--ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-info-row__value--avatar {
  display: flex;
  justify-content: flex-end;
}

.profile-info-row__chevron {
  font-size: 18px;
  color: #c5cad3;
  line-height: 1;
}

.profile-info-row__date {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.profile-info-row--action:has(.profile-info-row__date:not(:disabled)) {
  position: relative;
}

.profile-info-row--action:has(.profile-info-row__date:not(:disabled)) .profile-info-row__date {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  cursor: pointer;
}

.profile-info-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f8;
  font-size: 18px;
  font-weight: 800;
  color: #35568a;
}

.profile-info-row--gender {
  grid-template-columns: 72px 1fr;
}

.profile-info-gender {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.profile-info-gender__btn {
  min-width: 52px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid #e2e6ee;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
}

.profile-info-gender__btn.is-active {
  color: #1a2744;
  background: #f3f5f9;
  border-color: #c5cad3;
}

.profile-info-edit-block {
  padding: 12px 16px;
  border-bottom: 1px solid #eef1f6;
  background: #fafbfd;
}

.profile-info-edit-block__input {
  width: 100%;
}

.profile-info-edit-block__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.profile-info-phone-hint {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
}

.profile-info-row--phone-bound {
  align-items: flex-start;
}

.profile-info-row__value--phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.profile-info-phone-lock-hint {
  font-size: 12px;
  color: var(--muted, #888);
  line-height: 1.4;
  max-width: 220px;
}

.profile-address-form {
  padding: 16px;
}

.profile-address-field {
  display: block;
  margin-bottom: 14px;
}

.profile-address-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1a2744;
}

.profile-address-field__textarea {
  min-height: 96px;
  resize: vertical;
}

.profile-address-form__footer {
  margin-top: 24px;
}

.profile-address-field--picker {
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(24, 36, 59, 0.04);
}

.profile-address-field--picker .profile-address-field__label {
  margin: 0;
  grid-column: 1 / -1;
}

.profile-address-field__value {
  font-size: 15px;
  color: #1a2744;
}

.profile-address-field__value.is-placeholder {
  color: #9aa3b2;
}

.profile-address-field__chevron {
  color: #b8bfcc;
  font-size: 18px;
  line-height: 1;
}

.profile-saved-accounts-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  background: #fff;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.profile-saved-accounts-page.user-shell {
  background: #fff;
}

.profile-saved-accounts-add-btn {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 15px;
  font-weight: 600;
  padding: 4px 0;
}

.profile-saved-accounts-body {
  padding: 12px 16px 24px;
  flex: 1;
}

.profile-saved-accounts-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
  min-height: 40vh;
}

.profile-saved-accounts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #eef1f6;
}

.profile-saved-accounts-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid #eef1f6;
}

.profile-saved-accounts-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.profile-saved-accounts-card__head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-saved-accounts-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.profile-saved-accounts-card__meta {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
}

.profile-saved-accounts-card__line {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
}

.profile-saved-accounts-card__main {
  flex: 1;
  min-width: 0;
}

.profile-saved-accounts-card__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.profile-saved-accounts-card__action {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: #2563eb;
  cursor: pointer;
}

.profile-saved-accounts-card__action--danger {
  color: #dc2626;
}

.profile-saved-accounts-modal {
  width: min(100%, 420px);
  overflow: visible;
}

.profile-saved-accounts-modal__head {
  margin-bottom: 10px;
}

.profile-saved-accounts-modal__head h3 {
  font-size: 18px;
  line-height: 1.25;
}

.profile-saved-accounts-modal__close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.profile-saved-accounts-form-wrap {
  display: block;
}

.profile-saved-accounts-sheet {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.profile-saved-accounts-item {
  display: block;
  padding: 8px 12px 9px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin: 0;
}

.profile-saved-accounts-item:last-child {
  border-bottom: 0;
}

.profile-saved-accounts-item__label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  color: #333;
  line-height: 1.3;
}

.profile-saved-accounts-item__select,
.profile-saved-accounts-item__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 36px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.35;
  color: #1f2937;
  border: 1px solid rgba(35, 40, 58, 0.12);
  border-radius: 8px;
  background: #f8fafc;
  outline: none;
}

.profile-saved-accounts-item__select {
  cursor: pointer;
}

.profile-saved-accounts-item__select:invalid,
.profile-saved-accounts-item__select:required:invalid {
  color: #9aa3b2;
}

.profile-saved-accounts-item__input::placeholder {
  color: #9aa3b2;
  font-size: 13px;
}

.profile-saved-accounts-item__select:focus,
.profile-saved-accounts-item__input:focus {
  border-color: rgba(255, 107, 74, 0.45);
  background: #fff;
}

.profile-saved-accounts-form__hint-compact {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.profile-saved-accounts-form__footer {
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}

.profile-saved-accounts-form__submit {
  min-height: 44px;
  border-radius: 12px;
}

.profile-saved-accounts-editor.modal {
  align-items: center;
  justify-items: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}

.profile-saved-accounts-editor .profile-saved-accounts-modal {
  width: min(100%, 420px);
  max-width: 420px;
  min-height: 0;
  max-height: none;
  overflow: visible;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  border: 0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  backdrop-filter: none;
}

.profile-saved-accounts-tip {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
}

@media (min-width: 721px) {
  .profile-saved-accounts-editor.modal {
    padding: 20px;
    background: rgba(20, 28, 46, 0.38);
  }

  .profile-saved-accounts-editor .profile-saved-accounts-modal {
    border: 2px solid rgba(35, 40, 58, 0.08);
    box-shadow: var(--shadow);
  }
}

.region-picker {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}

.region-picker--open {
  pointer-events: auto;
}

.region-picker__mask {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.region-picker--open .region-picker__mask {
  opacity: 1;
}

.region-picker__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(72vh, 560px);
  background: #fff;
  border-radius: 18px 18px 0 0;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  transform: translateY(100%);
  transition: transform 0.28s ease;
  box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.12);
}

.region-picker--open .region-picker__panel {
  transform: translateY(0);
}

.region-picker__header {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(35, 40, 58, 0.08);
}

.region-picker__title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #1a2744;
}

.region-picker__action {
  border: 0;
  background: transparent;
  font-size: 15px;
  color: #667085;
  cursor: pointer;
  padding: 6px 0;
}

.region-picker__action--primary {
  color: #ff6b1a;
  font-weight: 700;
  justify-self: end;
}

.region-picker__tabs {
  display: flex;
  gap: 18px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(35, 40, 58, 0.08);
  overflow-x: auto;
}

.region-picker__tab {
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
  color: #667085;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.region-picker__tab.is-active {
  color: #ff6b1a;
  font-weight: 700;
  border-bottom-color: #ff6b1a;
}

.region-picker__hint {
  padding: 8px 16px 0;
  font-size: 12px;
  color: #d84545;
}

.region-picker__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.region-picker__option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 14px 16px;
  font-size: 15px;
  color: #1a2744;
  cursor: pointer;
}

.region-picker__option.is-selected {
  color: #ff6b1a;
  font-weight: 700;
}

.region-picker__option:active {
  background: rgba(35, 57, 93, 0.04);
}

.region-picker__empty {
  padding: 24px 16px;
  text-align: center;
  color: #9aa3b2;
  font-size: 14px;
}

.orders-page-main {
  padding-top: 0;
}

.orders-page .storefront-subpage-head + .orders-page-main {
  padding-top: 0;
}

/* 用户端 · 客服聊天页（微信风格） */
.support-chat-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 0;
  background: #ededed;
}

.support-chat-page .storefront-subpage-head {
  flex-shrink: 0;
}

.support-chat-guest {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}

.support-chat-page__stream {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 10px 16px;
  background: #ededed;
}

.support-chat-page__footer {
  flex-shrink: 0;
}

.wx-chat-stream {
  background: #ededed;
}

.wx-chat-history-toggle {
  display: block;
  width: auto;
  margin: 8px auto 14px;
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: #576b95;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.wx-chat-history-toggle:active {
  background: rgba(0, 0, 0, 0.1);
}

.wx-chat-history-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 12px;
  padding: 0 16px;
}

.wx-chat-history-divider span {
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
  color: #888;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.wx-chat-empty {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wx-chat-empty__card {
  max-width: 280px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.wx-chat-time {
  display: flex;
  justify-content: center;
  margin: 14px 0 10px;
}

.wx-chat-time span {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.08);
  color: #888;
  font-size: 12px;
  line-height: 1.3;
}

.wx-chat-system {
  display: flex;
  justify-content: center;
  margin: 10px 0;
  padding: 0 24px;
}

.wx-chat-system span {
  max-width: 88%;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
  color: #777;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  word-break: break-word;
}

.wx-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.wx-chat-row--mine {
  justify-content: flex-end;
}

.wx-chat-row--other {
  justify-content: flex-start;
}

.wx-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.wx-chat-avatar--fallback,
.wx-chat-avatar--agent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c8c8c8;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.wx-chat-avatar--agent {
  background: #5b8def;
}

.wx-chat-bubble {
  max-width: calc(100% - 96px);
  padding: 10px 12px;
  border-radius: 6px;
  line-height: 1.45;
  font-size: 15px;
  word-break: break-word;
  position: relative;
}

.wx-chat-row--other .wx-chat-bubble {
  background: #fff;
  color: #111;
}

.wx-chat-row--other .wx-chat-bubble::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 12px;
  border: 6px solid transparent;
  border-right-color: #fff;
}

.wx-chat-row--mine .wx-chat-bubble {
  background: #95ec69;
  color: #111;
}

.wx-chat-row--mine .wx-chat-bubble::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 12px;
  border: 6px solid transparent;
  border-left-color: #95ec69;
}

.wx-chat-text {
  white-space: pre-wrap;
}

.wx-chat-image {
  display: block;
  max-width: min(220px, 56vw);
  max-height: 280px;
  border-radius: 6px;
  object-fit: cover;
}

.wx-chat-footer {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: #f7f7f7;
  border-top: 1px solid #dcdcdc;
}

.wx-chat-tool-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wx-chat-tool-btn.is-active {
  background: rgba(0, 0, 0, 0.06);
}

.wx-chat-input {
  min-height: 36px;
  max-height: 96px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
  line-height: 1.4;
  resize: none;
  outline: none;
  font-family: inherit;
}

.wx-chat-send {
  min-width: 56px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: #07c160;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.wx-chat-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.support-chat-emoji-panel {
  flex-shrink: 0;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px 10px 4px;
  background: #f7f7f7;
  border-top: 1px solid #e5e5e5;
}

.support-chat-emoji-group {
  margin-bottom: 8px;
}

.support-chat-emoji-group__label {
  margin-bottom: 6px;
  font-size: 12px;
  color: #888;
}

.support-chat-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
}

.support-chat-emoji-btn {
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.support-chat-emoji-btn:active {
  background: rgba(0, 0, 0, 0.06);
}

.support-trigger--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.admin-user-actions {
  position: relative;
  white-space: nowrap;
  overflow: visible;
  text-align: center;
}

.admin-user-action-menu {
  position: relative;
  display: inline-block;
}

.admin-user-action-menu__trigger {
  background: none;
  border: none;
  padding: 0;
  color: #2563eb;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}

.admin-user-action-menu__trigger:hover,
.admin-user-action-menu__trigger:focus-visible {
  text-decoration: underline;
}

.admin-user-action-menu__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  min-width: 128px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid rgba(35, 40, 58, 0.12);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  z-index: 30;
  display: none;
}

.admin-user-action-menu.is-open .admin-user-action-menu__panel {
  display: block;
}

.admin-user-action-menu__item {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 14px;
  color: #1a2744;
  cursor: pointer;
  white-space: nowrap;
}

.admin-user-action-menu__item:hover,
.admin-user-action-menu__item:focus-visible {
  background: #f7f9fc;
}

.admin-user-grant-btn {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.16), rgba(255, 152, 0, 0.12));
  border-color: rgba(255, 152, 0, 0.35);
  color: #b45309;
}

.admin-user-grant-btn--coupon {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.1));
  border-color: rgba(99, 102, 241, 0.35);
  color: #4338ca;
}

.admin-user-points {
  font-weight: 600;
  color: #d97706;
}

.user-grant-modal-card {
  max-width: 420px;
}

.user-grant-modal__subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted, #64748b);
}

.user-grant-modal__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.user-grant-modal__input {
  width: 100%;
}

.admin-visitor-list {
  padding: 4px 0 8px;
}

.admin-visitor-list--loading,
.admin-visitor-list--error,
.admin-visitor-list--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 240px;
  padding: 32px 16px;
  text-align: center;
}

.admin-visitor-empty__title {
  font-size: 16px;
  font-weight: 600;
}

table.admin-visitor-table {
  width: 100%;
  table-layout: fixed;
}

table.admin-visitor-table th,
table.admin-visitor-table td {
  vertical-align: middle;
}

table.admin-visitor-table th:nth-child(1),
table.admin-visitor-table td:nth-child(1) {
  width: 56px;
}

table.admin-visitor-table th:nth-child(2),
table.admin-visitor-table td:nth-child(2) {
  width: 120px;
}

table.admin-visitor-table th:nth-child(3),
table.admin-visitor-table td:nth-child(3) {
  width: 72px;
}

table.admin-visitor-table th:nth-child(4),
table.admin-visitor-table td:nth-child(4) {
  width: 108px;
}

table.admin-visitor-table th:nth-child(5),
table.admin-visitor-table td:nth-child(5) {
  width: 120px;
}

table.admin-visitor-table th:nth-child(6),
table.admin-visitor-table td:nth-child(6) {
  width: 148px;
  white-space: nowrap;
}

table.admin-visitor-table th:nth-child(8),
table.admin-visitor-table td:nth-child(8) {
  width: 108px;
}

.admin-visitor-table__time {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
}

.admin-visitor-table__name {
  font-weight: 600;
  color: #0f172a;
  word-break: break-all;
}

.admin-visitor-table__uid,
.admin-visitor-table__ip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #475569;
  word-break: break-all;
}

.admin-visitor-table__referer,
.admin-visitor-table__device {
  font-size: 13px;
  color: #334155;
  word-break: break-all;
}

.admin-visitor-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.admin-visitor-badge--guest {
  background: rgba(148, 163, 184, 0.18);
  color: #475569;
}

.admin-visitor-badge--member {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.admin-visitor-list__footer {
  margin-top: 16px;
}

@media (max-width: 1100px) {
  .table-wrap:has(.admin-visitor-table) {
    overflow-x: auto;
  }

  table.admin-visitor-table {
    min-width: 880px;
    table-layout: auto;
  }
}

