:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #222;
  --muted: #8a8f98;
  --brand: #20a759;
  --accent: #eb5757;
  --line: #eceef2;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

.app {
  max-width: 430px; /* 设备宽度近似 */
  margin: 0 auto;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* 顶部 */
.hero {
  background: url('images/bg/header.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 10px 16px 16px;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.9;
}

.status-icons .icon { margin-left: 6px; }

.shop-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  object-fit: cover;
}

.shop-meta { flex: 1; }
.shop-name {
  font-weight: 700;
  font-size: 18px;
  background: linear-gradient(90deg, #ff3b3b, #ff8a00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shop-name .badge { color: #ffffff; }
.badge {
  display: inline-block;
  font-size: 12px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 2px 6px;
}
.shop-sub {
  font-size: 12px;
  margin-top: 2px;
  background: linear-gradient(90deg, #ff3b3b, #ff8a00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.more { background: transparent; border: 0; color: #fff; font-size: 22px; }

/* 卡片主体 */
.card {
  position: relative;
  margin-top: -16px;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background: var(--card);
  padding-bottom: 16px;
}

.tabs {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}
.tab {
  background: transparent;
  border: 0;
  font-weight: 600;
  font-size: 18px;
  padding: 10px 18px;
  position: relative;
}
.tab.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -6px;
  height: 3px;
  background: #000;
  border-radius: 999px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}
.toolbar .category {
  font-weight: 600;
}
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.link {
  background: transparent;
  border: 0;
  color: #3f7fd6;
  font-weight: 600;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.search-panel { padding: 0 16px 8px; }
.search-panel input {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 12px;
}

.menu {
  display: grid;
  gap: 14px;
  padding: 6px 16px 80px;
}

.dish {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.dish:last-child { border-bottom: 0; }

.dish-cover {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

.dish-title {
  margin: 0 0 10px 0;
  font-size: 16px;
  line-height: 1.35;
}

.dish-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price { color: #e63946; }
.price strong { font-size: 18px; font-weight: 800; }
.from { color: var(--muted); margin-left: 2px; font-size: 12px; }

.spec-btn {
  background: #ff6a3d;
  color: #fff;
  border: 0;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.bottom-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--card);
  padding: 8px 12px 14px;
  border-top: 1px solid var(--line);
}
.nav-btn {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  height: 38px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cart-badge-nav {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e63946;
  color: #fff;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border: 2px solid #fff;
  padding: 0 4px;
}
.home-indicator {
  height: 5px;
  border-radius: 999px;
  background: #cfd4dc;
  margin: 0 12px;
}

@media (min-width: 768px) {
  .app { max-width: 560px; }
}

/* 我的订单页 */
.orders-header {
  display: grid;
  grid-template-columns: 48px 1fr 86px;
  align-items: center;
  padding: 12px 12px 8px;
  background: #f7f7f7;
  border-bottom: 1px solid var(--line);
}
.back-btn {
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.orders-title {
  text-align: center;
  font-weight: 800;
  font-size: 20px;
}
.orders-actions { justify-self: end; display: flex; gap: 8px; }
.orders-actions .dots, .orders-actions .camera {
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  width: 36px;
}

.orders-main { padding: 16px; }
.order-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  padding: 12px;
}
.order-card-head { display: flex; align-items: center; justify-content: space-between; }
.row-left { display: flex; align-items: center; gap: 8px; }
.badge.blue { background: #e6f0ff; color: #2d6cdf; border: 0; padding: 2px 8px; border-radius: 8px; font-weight: 600; }
.status.success { color: #5fbf59; font-weight: 700; }
.order-card-body { padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
.order-item { font-weight: 700; }
.order-card-foot { display: flex; gap: 12px; align-items: center; margin-top: 12px; color: #a0a6ad; }
.order-card-foot .amount { margin-left: auto; color: #222; }
.orders-empty-space { height: 60vh; }

/* 规格选择弹窗 */
.spec-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.spec-modal[hidden] { display: none; }
.spec-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
.spec-modal-content {
  position: relative;
  background: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  width: 100%;
  max-width: 430px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 16px;
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.spec-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  border: 0;
  font-size: 20px;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.spec-header {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 12px;
  margin-bottom: 20px;
}
.spec-image {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
}
.spec-info { flex: 1; }
.spec-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.spec-price {
  color: #e63946;
  font-size: 16px;
}
.spec-price strong {
  font-size: 20px;
  font-weight: 800;
}
.spec-share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #20a759;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 12px;
  height: fit-content;
}
.share-icon { font-size: 20px; }

.spec-body {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec-section {
  margin-bottom: 24px;
}
.spec-section:last-child { margin-bottom: 0; }
.spec-label {
  display: block;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
  color: #222;
}
.time-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: #222;
  background: #fff;
  transition: border-color 0.2s;
}
.time-input:focus {
  outline: none;
  border-color: #e63946;
}
.location-btn {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.location-btn:hover {
  border-color: #e63946;
  color: #e63946;
}
.location-btn:active {
  opacity: 0.8;
}
.location-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.location-icon {
  font-size: 18px;
}
.location-status {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
  min-height: 20px;
}
.map-selector {
  margin-top: 16px;
}
.map-buttons {
  display: flex;
  gap: 10px;
}
.map-btn {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.map-btn:hover {
  border-color: #e63946;
  color: #e63946;
  background: #fff5f5;
}
.map-btn:active {
  opacity: 0.8;
}
.map-icon {
  font-size: 24px;
}
.spec-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.spec-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.spec-option {
  padding: 10px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  flex: 1;
  min-width: 80px;
}
.spec-option.active {
  border-color: #e63946;
  color: #e63946;
  background: #fff5f5;
}
.spec-option:hover { border-color: #ccc; }

/* 翻牌动画样式 */
.flip-card-container {
  perspective: 1000px;
  flex: 1;
  min-width: 80px;
}

.flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 45px;
  padding: 10px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: transparent;
  color: #222;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  perspective: 1000px;
}

.flip-card:hover {
  border-color: #ccc;
}

.flip-card.active {
  border-color: #e63946;
}

.flip-card.flipped {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
  padding: 10px 16px;
  box-sizing: border-box;
}

.flip-card-front {
  background: #fff;
  color: #222;
  z-index: 2;
  transform: rotateY(0deg);
}

.flip-card-back {
  background: #e63946;
  color: #fff;
  transform: rotateY(180deg);
  font-size: 24px;
  font-weight: 700;
}

.flip-card.active .flip-card-front {
  background: #fff5f5;
  color: #e63946;
  border: 1px solid #e63946;
}

.flip-card.active .flip-card-back {
  background: #e63946;
  color: #fff;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quantity-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #666;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quantity-btn.plus {
  background: #e63946;
  border-color: #e63946;
  color: #fff;
}
.quantity-value {
  min-width: 40px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.spec-confirm-btn {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  background: #e63946;
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
}

/* 店铺信息弹窗样式 */
.shop-info-modal-content {
  padding-top: 40px;
  text-align: center;
}

.shop-info-content {
  padding: 20px 16px;
}

.shop-info-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: block;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.shop-name-modal {
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
}

.shop-sub-modal {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.phone-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 -16px;
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.phone-row:hover {
  background-color: #f5f5f5;
}

.phone-row:active {
  background-color: #ebebeb;
}

.phone-icon {
  font-size: 20px;
}

.phone-number {
  font-weight: 500;
}

.arrow-icon {
  font-size: 20px;
  color: var(--muted);
  margin-left: 4px;
}

/* 购物车弹窗样式 */
.cart-modal-content {
  max-height: 70vh;
  padding-bottom: 80px;
}

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

.cart-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.cart-clear-btn {
  background: transparent;
  border: 0;
  color: #3f7fd6;
  font-size: 14px;
  padding: 4px 8px;
  cursor: pointer;
}

.cart-items {
  max-height: 40vh;
  overflow-y: auto;
  margin-bottom: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  line-height: 1.3;
}

.cart-item-spec {
  font-size: 12px;
  color: var(--muted);
}

.cart-item-price {
  color: #e63946;
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

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

.cart-quantity-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  color: #666;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-quantity-btn.plus {
  background: #e63946;
  border-color: #e63946;
  color: #fff;
}

.cart-quantity-value {
  min-width: 30px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.cart-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: #fff;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1001;
}

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

.cart-icon-wrapper {
  position: relative;
}

.cart-icon {
  font-size: 24px;
  color: #e63946;
}

.cart-icon-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e63946;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border: 2px solid #fff;
}

.cart-total {
  font-size: 16px;
  color: var(--text);
}

.cart-total strong {
  color: #e63946;
  font-size: 18px;
  font-weight: 800;
}

.cart-confirm-btn {
  background: #e63946;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* 确认订单页面样式 */
.checkout {
  background: #f6f7f9;
  min-height: 100vh;
  padding-bottom: 80px;
}

.checkout-header {
  display: grid;
  grid-template-columns: 48px 1fr 86px;
  align-items: center;
  padding: 12px 12px 8px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.checkout-title {
  text-align: center;
  font-weight: 800;
  font-size: 20px;
}

.checkout-actions {
  justify-self: end;
  display: flex;
  gap: 8px;
}

.checkout-actions .dots,
.checkout-actions .target {
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  width: 36px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-main {
  padding: 16px;
}

.checkout-section {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.section-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 12px;
}

.dining-method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.dining-label {
  color: var(--text);
  font-size: 15px;
}

.dining-label-btn {
  color: var(--text);
  font-size: 15px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: opacity 0.2s;
}

.dining-label-btn:hover {
  opacity: 0.7;
}

.dining-label-btn:active {
  opacity: 0.5;
}

.dining-value {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.order-items {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-bottom: 12px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.checkout-item-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.checkout-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkout-item-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  line-height: 1.3;
}

.checkout-item-spec {
  font-size: 12px;
  color: var(--muted);
}

.checkout-item-quantity {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.checkout-item-price {
  color: #e63946;
  font-size: 15px;
  font-weight: 600;
  align-self: flex-end;
}

.order-total-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.order-total-label {
  font-size: 14px;
  color: var(--text);
}

.order-total-price {
  color: #e63946;
  font-size: 16px;
  font-weight: 700;
}

.order-total-price strong {
  font-size: 18px;
  font-weight: 800;
}

.remarks-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.remarks-label {
  color: var(--text);
  font-size: 15px;
}

.remarks-label-btn {
  color: var(--text);
  font-size: 15px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: opacity 0.2s;
}

.remarks-label-btn:hover {
  opacity: 0.7;
}

.remarks-label-btn:active {
  opacity: 0.5;
}

.remarks-value {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remarks-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: #222;
  background: #fff;
  transition: border-color 0.2s;
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.remarks-textarea:focus {
  outline: none;
  border-color: #e63946;
}

.checkout-empty-space {
  height: 40px;
}

.checkout-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: #f5f5f5;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.checkout-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.checkout-total-label {
  font-size: 14px;
  color: var(--text);
}

.checkout-total-price {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.checkout-total-price strong {
  color: #e63946;
  font-size: 20px;
  font-weight: 800;
}

.checkout-pay-btn {
  background: #e63946;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .checkout-footer {
    max-width: 560px;
  }
}

/* 微信支付弹窗样式 */
.wechat-pay-content {
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}

.wechat-pay-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.wechat-logo {
  font-size: 32px;
}

.wechat-pay-title {
  font-size: 20px;
  font-weight: 600;
  color: #222;
  margin: 0;
}

.wechat-pay-body {
  padding: 20px 0;
}

.order-summary {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.summary-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.summary-item:last-child {
  margin-bottom: 0;
}

.summary-label {
  color: #666;
  flex-shrink: 0;
  margin-right: 12px;
}

.summary-value {
  color: #222;
  font-weight: 500;
  text-align: right;
  flex: 1;
  word-break: break-all;
}

.summary-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 12px 0;
}

.summary-total {
  font-size: 18px;
  padding-top: 8px;
  border-top: 1px solid #e0e0e0;
  margin-top: 8px;
}

.total-amount {
  color: #e63946;
  font-weight: 700;
  font-size: 20px;
}

.order-items-summary {
  flex-direction: column;
  gap: 8px;
}

.pay-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 14px;
}

.pay-item-name {
  color: #222;
  flex: 1;
  margin-right: 12px;
}

.pay-item-info {
  color: #666;
  font-weight: 500;
  flex-shrink: 0;
}

.pay-qr-container {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
}

.pay-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f0f0f0;
  border-top-color: #07c160;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  font-size: 14px;
  color: #666;
}

.qr-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.qr-code-img {
  width: 200px;
  height: 200px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.qr-code-tip {
  font-size: 13px;
  color: #666;
  text-align: center;
}

.wechat-pay-btn {
  width: 100%;
  background: #07c160;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  transition: background 0.2s;
}

.wechat-pay-btn:hover {
  background: #06ad56;
}

.wechat-pay-btn:active {
  background: #05994a;
}

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

.wechat-icon {
  font-size: 18px;
}

/* 订单历史弹窗样式 */
.orders-modal-content {
  max-height: 85vh;
}

.orders-body {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.orders-list {
  max-height: 60vh;
  overflow-y: auto;
}

.order-card {
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.order-card:hover {
  background-color: #f9f9f9 !important;
}

.order-card:active {
  background-color: #f0f0f0 !important;
}

/* 订单详情弹窗样式 */
.order-detail-modal-content {
  max-height: 85vh;
}

.order-id {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.order-detail-body {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.order-detail-section {
  margin-bottom: 24px;
}

.order-detail-section:last-child {
  margin-bottom: 0;
}

.order-detail-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.order-detail-item:last-child {
  border-bottom: none;
}

.order-detail-label {
  min-width: 90px;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.order-detail-value {
  flex: 1;
  font-size: 14px;
  color: #222;
  word-break: break-word;
}

.detail-items-list {
  margin-top: 12px;
}

.order-detail-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 12px;
  margin-top: 8px;
}

.order-detail-price {
  font-size: 20px;
  font-weight: 700;
  color: #e63946;
}

