/* 泉愈商城 - 响应式（对齐原站：1200px 断点，PC 居中 1020px 单栏） */

/* Web Font：加载失败或未就绪时由 --font-zh 兜底（见 html.font-fallback） */
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/@fontsource/noto-sans-sc@5.2.5/files/noto-sans-sc-chinese-simplified-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/@fontsource/noto-sans-sc@5.2.5/files/noto-sans-sc-chinese-simplified-700-normal.woff2") format("woff2");
}

:root {
  --highlight: #418cff;
  --primary: #a04017;
  --title-color: #782609;
  --price-color: #d53318;
  --bg: #f9fafb;
  --white: #fff;
  --black95: rgba(0, 0, 0, 0.95);
  --black80: rgba(0, 0, 0, 0.8);
  --black60: rgba(0, 0, 0, 0.6);
  --black40: rgba(0, 0, 0, 0.4);
  --line: rgba(0, 0, 0, 0.05);
  --tab-bg: #eef0f3;
  --rules-bg: #fcfcfc;
  --font-web: "Noto Sans SC";
  --font-zh: PingFangSC, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-stack: var(--font-web), var(--font-zh);
  --pc-max: 1200px;
  --content-max: 1120px;
  --content-gutter: 10px;
}

html.font-fallback {
  --font-stack: var(--font-zh);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-stack);
  background: var(--bg);
  color: var(--black80);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--black60);
  text-decoration: none;
}

a:hover {
  color: var(--highlight);
}

.page {
  min-height: 100vh;
  padding-bottom: 72px;
}

/* ===== Header ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  position: relative;
  margin: 0 auto;
  padding: 10px var(--content-gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo {
  height: 32px;
  width: auto;
}

.recharge-badge {
  background: var(--highlight);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.4;
}

.header-divider {
  width: 1px;
  height: 28px;
  background: rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.header-mall {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
}

.game-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.mall-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--black95);
  white-space: nowrap;
}

.header-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.header-account {
  display: none;
}

.header-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 128px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 4px 0;
  z-index: 200;
}

.header-account-menu.hidden {
  display: none;
}

.header-account-item {
  display: block;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--black80);
  cursor: pointer;
  white-space: nowrap;
}

.header-account-item:hover {
  background: #f5f5f5;
  color: #e54545;
}

.header-login {
  display: block;
  border: none;
  background: none;
  color: var(--highlight);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  line-height: 1;
}

.header-login:hover {
  opacity: 0.85;
}

.header-login.logged-in {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--highlight);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  flex-shrink: 0;
}

.user-btn svg {
  width: 100%;
  height: 100%;
}

.age-icon-btn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
}

.age-icon-btn:hover {
  opacity: 0.85;
}

.age-icon {
  height: 28px;
  width: auto;
  display: block;
}

/* ===== Main ===== */
.main {
  padding: 12px var(--content-gutter) 0;
}

.banner {
  padding: 12px;
  background: #eef0f3;
  border-radius: 12px;
  margin-bottom: 12px;
  line-height: 0;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.login-bar {
  background: var(--white);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.login-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.login-coupon-btn {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--highlight);
  border: 1px solid var(--highlight);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.login-coupon-btn.visible {
  display: inline-flex;
}

.login-coupon-btn:hover {
  background: rgba(65, 140, 255, 0.08);
}

.login-tip {
  color: var(--black40);
  font-size: 14px;
  min-width: 0;
}

.login-btn {
  background: var(--highlight);
  color: var(--white);
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
}

.login-btn .arrow {
  font-size: 18px;
  line-height: 1;
}

.login-btn:hover {
  opacity: 0.9;
}

.tab-nav {
  display: flex;
  background: var(--tab-bg);
  border-radius: 10px 10px 0 0;
  margin-top: 12px;
  overflow: hidden;
}

.tab {
  flex: 1;
  position: relative;
  border: none;
  background: transparent;
  padding: 12px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--black60);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
}

.tab.active {
  background: var(--white);
  color: var(--highlight);
  border-radius: 10px 10px 0 0;
}

.tab-panel {
  display: none;
  background: var(--white);
  border-radius: 0 0 10px 10px;
  padding: 12px;
  min-height: 200px;
}

.tab-panel.active {
  display: block;
}

.product-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.product-card {
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.product-card.selected {
  border-color: var(--highlight);
  box-shadow: 0 0 0 2px rgba(65, 140, 255, 0.3);
}

.product-image {
  line-height: 0;
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-info {
  padding: 8px 10px 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--title-color);
}

.product-price {
  display: flex;
  align-items: baseline;
}

.product-price .currency {
  color: var(--price-color);
  font-size: 12px;
  font-weight: 600;
}

.product-price .amount {
  color: var(--price-color);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.product-price .decimal {
  color: var(--price-color);
  font-size: 14px;
  font-weight: 600;
}

.add-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(65, 140, 255, 0.15);
  color: var(--highlight);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  flex-shrink: 0;
}

.product-qty .qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-qty .qty-minus {
  background: #f0f0f0;
  color: var(--black60);
}

.product-qty .qty-plus {
  background: rgba(65, 140, 255, 0.15);
  color: var(--highlight);
}

.product-qty .qty-plus:hover {
  background: var(--highlight);
  color: var(--white);
}

.product-qty .qty-num {
  min-width: 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--black95);
}

.add-btn:hover {
  background: var(--highlight);
  color: var(--white);
}

.rules {
  font-family: var(--font-stack);
  background: var(--rules-bg);
  border-radius: 10px;
  padding: 16px;
  margin-top: 8px;
}

.rules-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--black95);
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 0;
  padding-bottom: 12px;
}

.rules-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 16px 0 8px;
}

.rules-list {
  padding-left: 20px;
  font-size: 14px;
  font-weight: 400;
  color: var(--black80);
  line-height: 1.8;
}

.rules-list li {
  margin-bottom: 6px;
}

.rules-list li:last-child {
  margin-bottom: 0;
}

.placeholder-panel {
  text-align: center;
  padding: 60px 20px;
  color: var(--black40);
}

.placeholder-hint {
  margin-top: 12px;
  font-size: 14px;
  color: var(--black60);
}

.orders-login-tip.hidden,
.orders-loading.hidden,
.orders-error.hidden,
.orders-empty.hidden {
  display: none;
}

.orders-panel {
  padding: 0 0 24px;
}

.orders-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.orders-refresh-btn {
  border: 1px solid var(--highlight);
  background: var(--white);
  color: var(--highlight);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 14px;
  cursor: pointer;
}

.orders-refresh-btn:hover {
  background: rgba(65, 140, 255, 0.08);
}

.orders-login-tip,
.orders-loading,
.orders-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--black40);
  font-size: 14px;
}

.orders-error {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff2f0;
  color: #cf1322;
  font-size: 14px;
}

.orders-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.orders-item {
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.orders-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--black95);
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.orders-item-no {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.orders-status--pending {
  color: #d48806;
  background: #fff7e6;
  border-color: #ffd591;
}

.orders-status--success {
  color: #389e0d;
  background: #f6ffed;
  border-color: #b7eb8f;
}

.orders-status--closed {
  color: var(--black60);
  background: #f5f5f5;
  border-color: #d9d9d9;
}

.orders-status--unknown {
  color: var(--black60);
  background: #fafafa;
  border-color: #e8e8e8;
}

.orders-item-body {
  padding: 8px 16px 12px;
}

.orders-item-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed #f0f0f0;
  font-size: 14px;
}

.orders-item-row:last-child {
  border-bottom: none;
}

.orders-item-key {
  flex-shrink: 0;
  color: var(--black60);
}

.orders-item-value {
  text-align: right;
  color: var(--black95);
  word-break: break-all;
}

.orders-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.orders-action-btn {
  border: 1px solid #d9d9d9;
  background: #fff;
  color: var(--black80);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 14px;
  cursor: pointer;
}

.orders-action-btn:hover {
  border-color: var(--highlight);
  color: var(--highlight);
}

.orders-action-btn--primary {
  border-color: var(--highlight);
  background: var(--highlight);
  color: #fff;
}

.orders-action-btn--primary:hover {
  opacity: 0.9;
  color: #fff;
}

.orders-badge {
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  text-align: center;
  box-sizing: border-box;
  flex-shrink: 0;
}

.orders-badge.hidden {
  display: none;
}

.tab .orders-badge {
  margin-left: 4px;
}

.orders-debug {
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px dashed #d9d9d9;
  border-radius: 8px;
  background: #fafafa;
  font-size: 13px;
  color: var(--black60);
}

.orders-debug summary {
  cursor: pointer;
  user-select: none;
}

.orders-raw-json {
  margin: 12px 0 0;
  padding: 12px;
  background: #fff;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.5;
  color: var(--black80);
  white-space: pre-wrap;
  word-break: break-all;
}

.footer {
  padding: 28px 16px 36px;
  font-size: 12px;
  color: #888;
  line-height: 1.8;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.footer-logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.footer-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.footer-line {
  margin: 0;
}

.footer-line + .footer-line {
  margin-top: 6px;
}

.footer-line a {
  color: #888;
}

.footer-line a:hover {
  color: var(--highlight);
}

.qr-section {
  margin-top: 20px;
}

.qr-code {
  width: 120px;
  height: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: var(--white);
}

.qr-tip {
  margin-top: 8px;
  font-size: 12px;
  color: var(--black60);
}

.checkout-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 10px var(--content-gutter);
  z-index: 90;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.checkout-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.checkout-row {
  font-size: 12px;
  color: var(--black60);
}

.checkout-row .value {
  color: var(--black80);
  font-weight: 500;
  margin-left: 4px;
}

.checkout-row.total {
  font-size: 14px;
}

.checkout-row.total .value {
  color: var(--price-color);
  font-weight: 700;
}

.checkout-row.total em {
  font-style: normal;
  font-size: 18px;
}

.pay-btn {
  background: var(--highlight);
  color: var(--white);
  border: none;
  border-radius: 22px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.pay-btn:disabled {
  background: #b8b8b8;
  cursor: not-allowed;
}

.pay-btn:not(:disabled):hover {
  opacity: 0.9;
}

.cart-float {
  position: fixed;
  right: 12px;
  bottom: 80px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.cart-float img {
  width: 24px;
  height: 24px;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--price-color);
  color: var(--white);
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-badge.hidden {
  display: none;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.cart-drawer.open {
  pointer-events: auto;
  opacity: 1;
}

.cart-drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.cart-drawer-body {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(360px, 90vw);
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open .cart-drawer-body {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-header h3 {
  font-size: 16px;
}

.cart-close {
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--black60);
  line-height: 1;
}

.cart-list {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 60px;
  height: auto;
  border-radius: 6px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 500;
}

.cart-item-price {
  color: var(--price-color);
  font-size: 14px;
  margin-top: 4px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-qty button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
}

.cart-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black40);
  font-size: 14px;
}

.cart-list:not(:empty) + .cart-empty {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-body {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  width: min(400px, 90vw);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--black60);
}

.modal-body h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.modal-tip {
  color: var(--black60);
  font-size: 14px;
  margin-bottom: 8px;
}

.modal-desc {
  color: var(--black40);
  font-size: 12px;
  margin-bottom: 20px;
}

.modal-confirm {
  background: var(--highlight);
  color: var(--white);
  border: none;
  border-radius: 20px;
  padding: 10px 40px;
  font-size: 15px;
  cursor: pointer;
}

.pay-success-modal-body {
  padding: 32px 24px 24px;
}

.pay-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e8f8ef;
  color: #22a55b;
  font-size: 28px;
  font-weight: 700;
  line-height: 56px;
}

.pay-success-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.pay-success-tip {
  color: var(--black60);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.pay-success-confirm {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 12px 40px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
}

.age-modal-body {
  width: min(640px, 92vw);
  max-height: 85vh;
  padding: 28px 32px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.age-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--black95);
  text-align: center;
  margin-bottom: 20px;
}

.age-modal-content {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 20px;
}

.age-modal-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--black95);
  margin-bottom: 12px;
}

.age-modal-list {
  padding-left: 1.4em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--black80);
}

.age-modal-list li + li {
  margin-top: 12px;
}

.age-modal-confirm {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 12px 40px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
}

.login-modal-body {
  text-align: left;
}

.login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.login-tab {
  flex: 1;
  border: 1px solid #e8e8e8;
  background: #fafafa;
  color: var(--black60);
  border-radius: 8px;
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
}

.login-tab.active {
  border-color: var(--highlight);
  background: #fff7f0;
  color: var(--highlight);
  font-weight: 600;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.login-panel.active {
  display: flex;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-label {
  font-size: 13px;
  color: var(--black60);
}

.login-field input {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.login-field input:focus {
  border-color: var(--highlight);
}

.login-code-row {
  display: flex;
  gap: 8px;
}

.login-code-row input {
  flex: 1;
  min-width: 0;
}

.sms-btn {
  flex-shrink: 0;
  border: 1px solid var(--highlight);
  background: var(--white);
  color: var(--highlight);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.sms-btn:disabled {
  border-color: #ddd;
  color: var(--black40);
  cursor: not-allowed;
}

.login-error {
  color: #e54545;
  font-size: 13px;
  margin: 0;
  text-align: center;
}

.login-error.hidden {
  display: none;
}

.login-agreement {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: var(--black60);
  line-height: 1.5;
  cursor: pointer;
  margin: 0;
}

.login-agreement input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  cursor: pointer;
}

.login-agreement a {
  color: var(--highlight);
  text-decoration: none;
}

.login-agreement a:hover {
  text-decoration: underline;
}

.login-submit {
  width: 100%;
  margin-top: 4px;
}

.login-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== 商品订单弹窗 ===== */
.order-modal-body {
  width: min(1500px, 92vw);
  max-height: 90vh;
  padding: 40px 48px 48px;
  text-align: left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.order-modal-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--black95);
  text-align: center;
  margin-bottom: 36px;
}

.order-modal-content {
  display: flex;
  gap: 48px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.order-left {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}

.order-right {
  width: 400px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  padding-left: 48px;
  min-height: 0;
  overflow-y: auto;
}

.order-section + .order-section {
  margin-top: 30px;
}

.order-section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--black95);
  margin-bottom: 16px;
}

.order-selected-count {
  font-weight: 400;
  color: var(--black60);
}

.order-role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #f0f6ff;
  border-radius: 12px;
  padding: 16px 24px;
}

.order-role-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--black95);
}

.order-tag {
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 6px;
  line-height: 1.4;
}

.order-tag-recent {
  background: #fff3e6;
  color: #e67e22;
}

.order-tag-login {
  background: #e8f2ff;
  color: var(--highlight);
}

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

.order-cart-header .order-section-title {
  margin-bottom: 0;
}

.order-clear-btn {
  border: none;
  background: none;
  color: var(--black60);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
}

.order-clear-btn:hover {
  color: var(--highlight);
}

.order-table-head,
.order-table-row {
  display: grid;
  grid-template-columns: 108px 1fr 132px 162px 132px;
  align-items: center;
  gap: 12px;
}

.order-table-head {
  font-size: 18px;
  color: var(--black60);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.order-table-body {
  list-style: none;
}

.order-table-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.order-table-row:last-child {
  border-bottom: none;
}

.order-check-col {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 18px;
  color: var(--black80);
}

.order-check-col input[type="checkbox"],
.order-item-check input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--highlight);
  cursor: pointer;
  flex-shrink: 0;
}

.order-col-product {
  text-align: left;
}

.order-col-price,
.order-col-qty,
.order-col-amount {
  text-align: center;
}

.order-col-amount {
  text-align: right;
}

.order-product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.order-product-cell img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.order-product-name {
  font-size: 20px;
  font-weight: 500;
  color: var(--black95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-price-text,
.order-amount-text {
  color: var(--price-color);
  font-size: 20px;
  font-weight: 600;
}

.order-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.order-qty-stepper button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-qty-minus {
  background: #f0f0f0;
  color: var(--black60);
}

.order-qty-plus {
  background: var(--highlight);
  color: var(--white);
}

.order-qty-stepper span {
  min-width: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--black80);
}

.order-empty-tip {
  padding: 40px 0;
  text-align: center;
  color: var(--black40);
  font-size: 14px;
}

.order-row-meta {
  display: none;
}

.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 72px;
  box-sizing: border-box;
  padding: 0 20px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.pay-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-method.active {
  border-color: var(--highlight);
}

.pay-method-logo {
  flex: 1;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.pay-method-logo--alipay {
  height: 32px;
}

.pay-method-logo--wechat {
  height: 52px;
  transform: translateX(-12px);
}

.pay-method-radio {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #d9d9d9;
  flex-shrink: 0;
  position: relative;
}

.pay-method.active .pay-method-radio {
  border-color: var(--highlight);
}

.pay-method.active .pay-method-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--highlight);
}

.order-coupon-entry {
  width: 100%;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fafafa;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}

.order-coupon-entry-label {
  font-size: 15px;
  color: var(--black80);
  flex-shrink: 0;
}

.order-coupon-entry-value {
  flex: 1;
  font-size: 14px;
  color: var(--black40);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-coupon-entry-value.has-coupon {
  color: var(--price-color);
}

.order-coupon-entry-arrow {
  color: var(--black40);
  font-size: 18px;
  line-height: 1;
}

.order-right-panel.hidden {
  display: none;
}

.order-right-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.order-coupon-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.order-coupon-back {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--black80);
  cursor: pointer;
  padding: 0;
}

.order-coupon-panel-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--black95);
}

.order-coupon-panel-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.coupon-modal-body {
  width: min(560px, 92vw);
  max-height: 85vh;
  padding: 24px 20px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.coupon-modal-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.coupon-modal-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.coupon-modal-tab {
  border: none;
  background: none;
  padding: 0 0 10px;
  font-size: 15px;
  color: var(--black60);
  cursor: pointer;
  position: relative;
}

.coupon-modal-tab.active {
  color: var(--highlight);
  font-weight: 600;
}

.coupon-modal-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--highlight);
}

.coupon-modal-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.coupon-empty-tip {
  padding: 40px 12px;
  font-size: 14px;
  color: var(--black40);
  text-align: center;
}

.coupon-card {
  border: 1px solid #ececec;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.coupon-card--selectable {
  cursor: pointer;
}

.coupon-card--selected {
  border-color: var(--highlight);
  box-shadow: 0 0 0 1px var(--highlight);
}

.coupon-card--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.coupon-card-main {
  display: flex;
  min-height: 96px;
}

.coupon-card-left {
  width: 108px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border-right: 1px dashed #f0d0d0;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.coupon-card-type {
  position: absolute;
  top: 0;
  left: 0;
  background: #ffb74d;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  padding: 4px 8px;
  border-bottom-right-radius: 8px;
}

.coupon-card-amount {
  font-size: 28px;
  font-weight: 700;
  color: #e54545;
  line-height: 1.1;
}

.coupon-card-amount--fold {
  font-size: 24px;
}

.coupon-card-threshold {
  margin-top: 6px;
  font-size: 12px;
  color: #e54545;
}

.coupon-card-right {
  flex: 1;
  padding: 16px 40px 16px 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.coupon-card--no-coupon .coupon-card-main {
  min-height: 72px;
}

.coupon-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black95);
  line-height: 1.5;
}

.coupon-card-time {
  margin-top: 8px;
  font-size: 12px;
  color: var(--black40);
}

.coupon-card-check {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d9d9d9;
}

.coupon-card-check.checked {
  border-color: var(--highlight);
  background: var(--highlight);
}

.coupon-card-check.checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.coupon-card-foot {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--black60);
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
}

.order-amount-original {
  display: block;
  font-size: 12px;
  color: var(--black40);
  text-decoration: line-through;
}

.order-summary-discount {
  color: var(--price-color);
}

.order-summary {
  margin-top: auto;
  padding-top: 16px;
}

.order-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 18px;
  color: var(--black60);
  margin-bottom: 12px;
}

.order-summary-total {
  font-size: 22px;
  color: var(--black95);
  margin-bottom: 28px;
}

.order-summary-total .order-summary-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--black95);
}

.order-summary-value {
  color: var(--black80);
}

.order-pay-btn {
  width: 100%;
  background: var(--highlight);
  color: var(--white);
  border: none;
  border-radius: 32px;
  padding: 16px 32px;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
}

.order-pay-btn:disabled {
  background: #b8b8b8;
  cursor: not-allowed;
}

.order-modal-body .modal-close {
  top: 16px;
  right: 16px;
  font-size: 32px;
}

.order-pay-btn:not(:disabled):hover {
  opacity: 0.9;
}

/* ===== H5 移动端适配（< 1200px，与 device.js sns-h5 一致） ===== */
html.sns-h5 .header-right {
  margin-left: auto;
}

html.sns-h5 .header-divider {
  display: none;
}

html.sns-h5 .tab-nav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 10px 10px 0 0;
}

html.sns-h5 .tab-nav::-webkit-scrollbar {
  display: none;
}

html.sns-h5 .tab {
  flex: 0 0 auto;
  min-width: max-content;
  padding: 12px 14px;
  font-size: 13px;
  white-space: nowrap;
}

html.sns-h5 .footer-inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

html.sns-h5 .page {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

html.sns-h5 .checkout-bar {
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

html.sns-h5 .cart-float {
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
  .order-modal-body {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    height: 100dvh;
    padding: 20px 16px 16px;
    border-radius: 0;
  }

  .order-modal-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .order-section-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .order-role-name {
    font-size: 16px;
  }

  .order-tag {
    font-size: 12px;
    padding: 3px 8px;
  }

  .order-role {
    padding: 12px 16px;
  }

  .order-clear-btn {
    font-size: 14px;
  }

  .order-product-name {
    font-size: 15px;
    white-space: normal;
  }

  .order-price-text,
  .order-amount-text {
    font-size: 15px;
  }

  .order-summary-row {
    font-size: 14px;
  }

  .order-summary-total {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .order-summary-total .order-summary-value {
    font-size: 22px;
  }

  .order-pay-btn {
    font-size: 17px;
    padding: 14px 24px;
  }

  .pay-method {
    height: 56px;
    padding: 0 14px;
  }

  .pay-method-logo--wechat {
    height: 40px;
    transform: translateX(-6px);
  }

  .order-modal-content {
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
  }

  .order-left {
    overflow: visible;
  }

  .order-right {
    width: 100%;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }

  .order-table-head {
    display: none;
  }

  .order-table-row {
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    gap: 8px 10px;
    padding: 16px 0;
  }

  .order-table-row .order-col-price,
  .order-table-row .order-col-qty,
  .order-table-row .order-col-amount {
    display: none;
  }

  .order-item-check {
    grid-row: 1 / 3;
    align-self: start;
    padding-top: 4px;
  }

  .order-product-cell {
    grid-column: 2;
  }

  .order-row-meta {
    display: flex;
    grid-column: 2;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .coupon-card-right {
    padding-right: 16px;
  }

  .coupon-card-amount {
    font-size: 22px;
  }

  .modal-body {
    width: min(400px, 94vw);
    max-height: 90dvh;
    overflow-y: auto;
  }

  .age-modal-body {
    width: 94vw;
    padding: 24px 20px 20px;
  }

  .coupon-modal-tabs {
    overflow-x: auto;
    gap: 16px;
    scrollbar-width: none;
  }

  .coupon-modal-tabs::-webkit-scrollbar {
    display: none;
  }

  .coupon-modal-tab {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .orders-item-head {
    flex-wrap: wrap;
    font-size: 14px;
    padding: 10px 12px;
  }

  .orders-item-body,
  .orders-item-actions {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ============================================================
   PC 模式（>= 1200px：4列商品、Tab 下划线、页脚左右布局）
   ============================================================ */
@media (min-width: 1200px) {
  :root {
    --content-gutter: 16px;
  }

  body {
    background: #f5f6f8;
  }

  .page {
    max-width: var(--content-max);
    margin: 0 auto;
    min-height: calc(100vh - 60px);
    background: var(--white);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  }

  .header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--white);
  }

  .header-inner {
    max-width: var(--content-max);
    padding: 14px var(--content-gutter);
  }

  .logo {
    height: 40px;
  }

  .recharge-badge {
    font-size: 14px;
    padding: 5px 18px;
  }

  .header-divider {
    height: 36px;
  }

  .game-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .mall-title {
    font-size: 20px;
  }

  .age-icon {
    height: 32px;
  }

  .header-account {
    display: block;
  }

  .header-login {
    font-size: 15px;
  }

  .user-btn {
    display: none;
  }

  .main {
    padding: 0;
    background: var(--white);
  }

  .banner {
    padding: 20px var(--content-gutter);
    background: #f5f6f8;
    border-radius: 0;
    margin-bottom: 0;
  }

  .banner img {
    border-radius: 8px;
  }

  .login-bar {
    padding: 14px var(--content-gutter);
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--line);
  }

  .login-tip {
    font-size: 15px;
  }

  .login-btn {
    font-size: 15px;
    padding: 9px 24px;
  }

  .login-coupon-btn {
    font-size: 15px;
    padding: 8px 18px;
  }

  .tab-nav {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    margin-top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 0 var(--content-gutter);
  }

  .tab {
    flex: 0 0 auto;
    padding: 18px 28px;
    font-size: 18px;
    font-weight: 600;
    color: var(--black60);
    background: transparent;
    border-radius: 0;
    position: relative;
    min-height: 54px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tab.active {
    color: var(--highlight);
    background: transparent;
  }

  .tab.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--highlight);
    border-radius: 2px;
  }

  .tab-panel {
    padding: 20px var(--content-gutter) 24px;
    border-radius: 0;
    background: var(--white);
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
  }

  .product-card {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
  }

  .product-info {
    padding: 10px 12px 12px;
  }

  .product-name {
    font-size: 15px;
  }

  .product-price .currency {
    font-size: 13px;
  }

  .product-price .amount {
    font-size: 22px;
  }

  .product-price .decimal {
    font-size: 14px;
  }

  .add-btn,
  .product-qty .qty-btn {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .rules {
    padding: 20px var(--content-gutter);
    border-radius: 8px;
    background: var(--rules-bg);
  }

  .rules-title {
    font-size: 16px;
    padding-bottom: 16px;
  }

  .rules-subtitle {
    font-size: 16px;
    margin-top: 20px;
  }

  .rules-list {
    font-size: 14px;
    line-height: 1.8;
  }

  .footer {
    padding: 32px var(--content-gutter) 40px;
    font-size: 12px;
  }

  .footer-inner {
    gap: 48px;
  }

  .footer-logo {
    height: 36px;
  }

  .footer-line + .footer-line {
    margin-top: 8px;
  }

  .qr-section {
    flex-shrink: 0;
    margin-top: 0;
    text-align: center;
  }

  .qr-code {
    width: 120px;
    height: 120px;
  }

  .checkout-bar {
    padding: 14px 0;
    background: var(--white);
  }

  .checkout-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--content-gutter);
  }

  .checkout-row {
    font-size: 14px;
  }

  .checkout-row.total em {
    font-size: 22px;
  }

  .pay-btn {
    padding: 12px 40px;
    font-size: 16px;
    border-radius: 24px;
    min-width: 140px;
  }

  .cart-float {
    display: none;
  }

  .cart-drawer-body {
    width: 400px;
  }
}

/* 手机 H5 小屏微调 */
@media (max-width: 480px) {
  .header-inner {
    padding: 8px var(--content-gutter);
    gap: 8px;
  }

  .logo {
    height: 26px;
  }

  .recharge-badge {
    font-size: 11px;
    padding: 3px 10px;
  }

  .game-icon {
    width: 30px;
    height: 30px;
  }

  .mall-title {
    font-size: 14px;
  }

  .age-icon {
    height: 24px;
  }

  .user-btn {
    width: 28px;
    height: 28px;
  }

  html.sns-h5 .tab {
    font-size: 12px;
    padding: 10px 12px;
  }

  html.sns-h5 .checkout-inner {
    gap: 8px;
  }

  html.sns-h5 .checkout-info .checkout-row:not(.total) {
    display: none;
  }

  html.sns-h5 .checkout-row.total {
    font-size: 13px;
  }

  html.sns-h5 .checkout-row.total em {
    font-size: 16px;
  }

  .pay-btn {
    padding: 10px 18px;
    font-size: 14px;
    min-width: 88px;
  }

  .product-name {
    font-size: 13px;
  }

  .product-price .amount {
    font-size: 18px;
  }

  .product-price .decimal {
    font-size: 12px;
  }

  .login-bar {
    padding: 12px 14px;
  }

  .login-tip {
    font-size: 13px;
  }

  .footer-inner {
    gap: 12px;
  }

  .footer-logo {
    height: 28px;
  }

  .footer {
    font-size: 11px;
    padding: 24px 16px 28px;
  }
}

@media (max-width: 360px) {
  html.sns-h5 .mall-title {
    display: none;
  }

  html.sns-h5 .recharge-badge {
    display: none;
  }
}
