:root {
  --brand-red: #fa5151;
  --text: #3d3d3d;
  --muted: #6b7280;
  --bg: #f5f5f5;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; border: none; outline: none; background: none; }
img { display: block; max-width: 100%; }

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100%;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(56px + var(--safe-bottom));
}

.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ===== 首页：对齐原站 goods-list-container ===== */
.goods-list-container {
  background: #fafafa;
  min-height: 100vh;
  padding-bottom: 8px;
}

.publicNumberPromotion {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
  margin-bottom: 10px;
  background: #fff;
}

.publicNumberPromotion1 {
  width: 100%;
  min-height: 75px;
  display: flex;
  padding: 10px;
  position: relative;
  align-items: flex-start;
}

.publicNumberIcon {
  width: 64px;
  height: 64px;
  margin-right: 10px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.publicNumberIcon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publicNumberNameAndMark {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.publicNumberName {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #111;
}

.publicNumberBut {
  position: absolute;
  top: 42px;
  right: 12px;
  font-size: 12px;
  color: #f48a20;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 999px;
  padding: 2px 8px;
}

.publicNumberTitle {
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid #e86363;
  color: #f48a20;
  margin-top: 3px;
  letter-spacing: 1px;
  font-size: 11px;
  padding: 2px 8px;
  width: fit-content;
}

.publicNumberPromotion2 {
  width: 100%;
  padding: 0 10px 10px;
  font-size: 12px;
}

.publicNumberContent {
  font-weight: 400;
  font-size: 14px;
  color: #6b7280;
  letter-spacing: 1px;
  line-height: 1.6;
}

/* ===== 开奖窗口 ===== */
.lottery-panel {
  margin: 0 10px 10px;
  background: linear-gradient(160deg, #fff 0%, #fff8f6 100%);
  border: 1px solid #ffe4e6;
  border-radius: 12px;
  padding: 12px 12px 10px;
  box-shadow: 0 4px 14px rgba(250, 81, 81, .08);
}
.lottery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.lottery-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lottery-title span {
  font-size: 12px;
  color: #fa5151;
  font-weight: 700;
}
.lottery-title b {
  font-size: 15px;
  color: #111;
  font-weight: 750;
}
.lottery-hist-btn {
  flex-shrink: 0;
  border: 0;
  background: #fff1f2;
  color: #e11d48;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lottery-balls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 6px;
  min-height: 54px;
}
.lottery-ball {
  width: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.lottery-ball .num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.lottery-ball.red .num { background: linear-gradient(145deg, #ff6b6b, #e11d48); }
.lottery-ball.blue .num { background: linear-gradient(145deg, #60a5fa, #2563eb); }
.lottery-ball.green .num { background: linear-gradient(145deg, #4ade80, #16a34a); }
.lottery-ball.special {
  margin-left: 4px;
  position: relative;
}
.lottery-ball.special::before {
  content: "+";
  position: absolute;
  left: -10px;
  top: 8px;
  color: #9ca3af;
  font-weight: 700;
  font-size: 14px;
}
.lottery-ball .zodiac {
  font-size: 11px;
  color: #6b7280;
  line-height: 1;
}
.lottery-foot {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #9ca3af;
}
.lottery-foot span { min-width: 0; }

.lottery-history {
  padding: 12px;
  background: #f5f5f5;
  min-height: 100%;
  display: grid;
  gap: 10px;
}
.lottery-hist-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.lottery-hist-card .h-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
.lottery-hist-card .h-top b { color: #111; }
.lottery-hist-card .h-top span { color: #9ca3af; font-size: 12px; }
.lottery-hist-card .lottery-balls { gap: 6px 5px; }
.lottery-hist-card .lottery-ball { width: 32px; }
.lottery-hist-card .lottery-ball .num { width: 30px; height: 30px; font-size: 12px; }
.lottery-hist-card .lottery-ball.special::before { left: -9px; top: 6px; font-size: 12px; }

.tabs {
  display: flex;
  justify-content: space-evenly;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.tabs-item {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 16px;
  color: #6b7280;
  position: relative;
  flex: 1;
  cursor: pointer;
}

.tabsItemActive {
  color: #f20000;
  font-weight: 700;
}

.tabsItemActive::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: #f20000;
}

.serach-box {
  background: #fff;
  width: 100%;
  padding: 12px 16px 8px;
  box-sizing: border-box;
}

.serach-box .left {
  width: 100%;
  height: 40px;
  background: #f3f4f6;
  border-radius: 22px;
  display: flex;
  align-items: center;
  color: #9ca3af;
  padding: 0 14px;
  font-size: 14px;
}

.serach-box .left svg {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  flex-shrink: 0;
}

.serach-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  color: #111;
}

.serach-box input::placeholder { color: #c0c4cc; }

.items {
  display: flex;
  align-items: center;
  padding: 10px 12px 0;
  background: #fafafa;
}

.items_left {
  width: 4px;
  height: 16px;
  background: #fa5151;
  border-radius: 0 8px 0 0;
}

.items_right {
  margin-left: 8px;
  font-weight: 500;
  font-size: 14px;
  color: #fa5151;
}

.goodsBox {
  display: flex;
  flex-flow: column;
  align-items: center;
  padding: 0 10px 20px;
}

.goodsBox_item {
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 3px 0 rgba(0,170,0,.1), 0 1px 2px -1px rgba(170,0,0,.1);
  border-bottom: .7mm ridge rgba(255,74,86,.6);
  border-radius: 8px;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-top: 10px;
  cursor: pointer;
}

.goodsBox_top_desc {
  display: flex;
  color: #3d3d3d;
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 6px;
  line-height: 1.45;
}

.goodsBox_top {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 28px;
}

.goodsBox_mid {
  display: flex;
  flex-flow: wrap;
  margin: 4px 0 2px;
}

.goodsBox_mid_item {
  display: flex;
  background: #dcfce7;
  border-radius: 4px;
  box-sizing: border-box;
  padding: 4px 8px;
  margin-right: 6px;
  font-size: 12px;
  margin-bottom: 4px;
  color: #166534;
}

.goodsBox_mid_item.blue { background: #dcfce7; color: #166534; }
.goodsBox_mid_item.red { background: #fab5b5; color: #f20000; }
.goodsBox_mid_item.purple { background: #f3e8ff; color: #6b21a8; }

.score-tag {
  margin-left: auto;
  font-weight: 700;
  font-size: 16px;
  min-width: 28px;
  text-align: right;
}
.score-tag.hong { color: red; }
.score-tag.hei { color: #111; }
.score-tag.ask { color: #fa5151; font-size: 20px; font-weight: 800; }

.public.price-tag {
  background: linear-gradient(135deg, #ff7a45, #fa5151);
  width: auto;
  min-width: 72px;
  padding: 0 10px;
  font-weight: 700;
}
.public.paid-tag {
  background: linear-gradient(135deg, #34d399, #059669);
  width: auto;
  min-width: 72px;
  padding: 0 10px;
  font-weight: 700;
  color: #fff;
}

.goodsBox_btm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.goodsBox_btm_time {
  font-size: 12px;
  color: #6b7280;
}

.public {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 28px;
  background: #fab5b5;
  border-radius: 4px;
  font-size: 14px;
  color: #fff;
  gap: 4px;
}

.public svg { width: 14px; height: 14px; }

.empty, .loading {
  text-align: center;
  color: #9ca3af;
  padding: 40px 12px;
  font-size: 13px;
}

/* ===== 底部 Tab：对齐原站 ===== */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(480px, 100%);
  height: calc(50px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #fff;
  border-top: 1px solid #e5e5e5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 100;
}

.tabbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #7a7e83;
  font-size: 11px;
  height: 50px;
}

.tabbar button svg { width: 24px; height: 24px; }
.tabbar button.active { color: #fa5151; }

/* ===== 其它页面（详情/登录等）保留简洁样式 ===== */
.subpage-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 20;
}
.subpage-head button {
  width: 32px; height: 32px; border-radius: 50%; background: #f3f4f6; font-size: 18px;
}
.subpage-head h2 { font-size: 16px; }

.form-box, .detail, .me-card, .menu-list, .scheme-list {
  margin: 12px;
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.form-box { display: grid; gap: 12px; }
.form-box label { font-size: 13px; color: #6b7280; display: grid; gap: 6px; }
.form-box input, .form-box textarea {
  border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; background: #fafafa;
}
.btn {
  display: inline-flex; justify-content: center; align-items: center;
  background: linear-gradient(135deg, #ff7a45, #fa5151);
  color: #fff; border-radius: 999px; padding: 12px 18px; font-weight: 700; width: 100%;
}
.btn.ghost { background: #fff; color: #fa5151; border: 1px solid #fab5b5; }
.detail h1 { font-size: 18px; margin: 10px 0; line-height: 1.45; }
.detail .content {
  margin-top: 12px; white-space: pre-wrap; line-height: 1.7;
  background: #f8fafc; border-radius: 10px; padding: 14px; min-height: 120px;
}

/* 方案详情（对齐作者 html：当前方案 + 号码 + 历史方案） */
.scheme-detail { background: #fafafa; min-height: 100%; padding-bottom: 24px; }
.scheme-detail .items_left.bgBlue { background: #3b82f6; }
.scheme-detail .items_right.blue { color: #3b82f6; }
.scheme-detail .goodsBox_top_date {
  color: #3d3d3d;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  padding-bottom: 4px;
}
.scheme-detail .goodsBox_item.current-scheme {
  cursor: default;
  border-bottom: .7mm ridge rgba(255,74,86,.6);
}
.scheme-detail .goodsBox_btm.short { margin-top: 2px; }
.scheme-detail .mg20 { margin: 0; }
.scheme-detail .titleBox {
  padding: 8px 16px 4px;
}
.scheme-detail .titleBox .title {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  padding: 18px 14px;
  text-align: center;
}
.scheme-detail .titleBox .text {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  line-height: 1.55;
  word-break: break-all;
}
.scheme-detail .hint {
  margin: 10px 14px 6px;
  padding: 10px 12px;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.55;
  background: #fff7ed;
  border-radius: 6px;
}
.scheme-detail .tip-mid { width: 100%; }
.scheme-detail .tip-text {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  line-height: 1.5;
  margin: 4px 0 6px;
}
.scheme-detail .detail-hist-item { cursor: default; }
.scheme-detail .detail-hist-item .goodsBox_top { justify-content: flex-end; }

.lock-box { text-align: center; padding: 28px 12px; color: #6b7280; }
.lock-box .price { color: #fa5151; font-size: 22px; font-weight: 700; display: block; margin: 10px 0 16px; }
.me-card {
  background: linear-gradient(135deg, #ff7a45, #e11d48); color: #fff;
}
.me-card .balance { margin-top: 14px; font-size: 13px; opacity: .92; }
.me-card .balance b { font-size: 24px; display: block; margin-top: 4px; }
.menu-list { padding: 0; overflow: hidden; }
.menu-list a, .menu-list button {
  width: 100%; text-align: left; padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; color: #111; font-size: 14px;
}
.menu-list a:last-child, .menu-list button:last-child { border-bottom: none; }
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%);
  background: rgba(17,24,39,.92); color: #fff; padding: 10px 16px;
  border-radius: 999px; font-size: 13px; z-index: 200; opacity: 0; pointer-events: none; transition: .2s;
  max-width: 80%;
}
.toast.show { opacity: 1; }

/* 快捷注册账号弹窗 */
.cred-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cred-dialog {
  width: min(360px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
  text-align: center;
}
.cred-dialog h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #111;
}
.cred-dialog .tip {
  font-size: 13px;
  color: #e60000;
  margin-bottom: 14px;
  line-height: 1.5;
}
.cred-dialog .cred-box {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 10px;
  padding: 14px;
  text-align: left;
  margin-bottom: 16px;
}
.cred-dialog .cred-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  padding: 6px 0;
  color: #333;
}
.cred-dialog .cred-row b {
  color: #111;
  word-break: break-all;
  text-align: right;
}
.cred-dialog .actions {
  display: grid;
  gap: 10px;
}
.cred-dialog .actions .btn {
  width: 100%;
  border-radius: 999px;
  padding: 12px 0;
  font-weight: 700;
  font-size: 15px;
}
.cred-dialog .actions .btn.copy { background: #e60000; color: #fff; }
.cred-dialog .actions .btn.ok { background: #3366ff; color: #fff; }

.rank-panel { display: none; padding: 0 10px 20px; background: #fafafa; }
.rank-panel.active { display: block; }

/* 推荐榜单卡片：goodsBox_item_z */
.goodsBox_item_z {
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 3px 0 rgba(0,170,0,.1), 0 1px 2px -1px rgba(170,0,0,.1);
  border-bottom: .7mm ridge rgba(255,74,86,.6);
  box-sizing: border-box;
  padding: 10px 12px;
  margin-top: 10px;
  cursor: pointer;
}
.goodsBox_item_z .goodsBox_top_desc {
  display: flex;
  color: #3d3d3d;
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 6px;
  line-height: 1.45;
}
.goodsBox_item_z .goodsBox_top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 24px;
}
.goodsBox_item_z .score-tag { margin-left: 0; }
.goodsBox_item_z .goodsBox_btm {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

/* ===== 登录页（登录.html） ===== */
.login-page {
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-bottom: 80px;
}
.login-page .nav-bar {
  width: 100%;
  padding: 16px;
  background: #ff4d00;
  text-align: center;
}
.login-page .nav-bar .title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.login-page .avatar-box { margin: 48px 0 28px; }
.login-page .avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
}
.login-page .avatar img { width: 100%; height: 100%; object-fit: cover; }
.login-page .btn-group {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.login-page .btn {
  width: 80%;
  font-size: 16px;
  border-radius: 999px;
  padding: 12px 0;
  font-weight: 700;
  border: none;
}
.login-page .btn.red { background: #e60000; color: #fff; }
.login-page .btn.blue { background: #3366ff; color: #fff; }
.login-page .agreement {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  margin-top: 28px;
  color: #333;
  gap: 4px;
  padding: 0 16px;
}
.login-page .agreement .link { color: red; }
.login-page .agreement input { width: 16px; height: 16px; accent-color: #ff0000; }
.login-page .register-link {
  position: absolute;
  bottom: 28px;
  color: red;
  font-size: 15px;
}
.login-page .pwd-form {
  width: 80%;
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.login-page .pwd-form.show { display: flex; }
.login-page .pwd-form label {
  font-size: 13px;
  color: #666;
  display: grid;
  gap: 6px;
}
.login-page .pwd-form input {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  background: #fafafa;
}

/* ===== 我的页（我的.html） ===== */
.me-page { width: 100%; background: #f5f5f5; min-height: 100vh; padding-bottom: 20px; }
.me-page .me-head-bar {
  background: #fff;
  text-align: center;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
}
.me-page .header {
  width: 100%;
  padding: 16px 18px;
  box-sizing: border-box;
  background: #fff;
}
.me-page .message {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.me-page .mes-left { display: flex; align-items: center; min-width: 0; flex: 1; }
.me-page .avatar {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 14px;
  flex-shrink: 0;
  background: #eee;
  position: relative;
}
.me-page .avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-page .avatar-edit-tip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 10px;
  text-align: center;
  padding: 2px 0;
  line-height: 1.2;
}
.me-page .user-name1 {
  font-size: 18px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 8px;
}
.me-page .user-name1-1 {
  display: inline-block;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  color: #2c2c2c;
}
.me-page .arrow { color: #f20000; font-size: 20px; font-weight: 700; }
.me-page .menu { margin-top: 12px; }
.me-page .menu-item {
  background: #fff;
  margin-bottom: 10px;
  padding: 0 16px;
}
.me-page .it {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  cursor: pointer;
}
.me-page .it .left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #666;
  font-size: 15px;
}
.me-page .it .ico {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ff7a45, #fa5151);
  flex-shrink: 0;
}
.me-page .it .right {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #999;
  font-size: 14px;
}
.me-page .it .right b { color: #333; font-weight: 600; }

/* 修改密码 */
.pwd-change-page { padding: 16px 14px 28px; background: #f5f5f5; min-height: 100%; }
.pwd-change-form {
  background: #fff;
  border-radius: 12px;
  padding: 18px 16px;
  display: grid;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.pwd-change-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}
.pwd-change-form input {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  background: #fafafa;
  font-size: 15px;
}
.pwd-change-form .btn {
  margin-top: 6px;
  border: none;
  border-radius: 999px;
}

/* 我的订单 */
.order-list { padding: 12px 12px 28px; display: grid; gap: 10px; background: #f5f5f5; min-height: 100%; }
.order-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.order-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.order-title {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  line-height: 1.45;
  flex: 1;
}
.order-status {
  flex-shrink: 0;
  font-size: 12px;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 3px 8px;
  border-radius: 999px;
}
.order-status.ok { color: #166534; background: #dcfce7; }
.order-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: #9ca3af;
}
.order-btm {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-time { font-size: 12px; color: #6b7280; }
.order-amount { font-size: 16px; font-weight: 700; color: #fa5151; }

/* 客服聊天 */
.cs-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px);
  max-width: 720px;
  margin: 0 auto;
  background: #f5f6f8;
}
.cs-head {
  flex-shrink: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid #eee;
}
.cs-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px 10px;
  -webkit-overflow-scrolling: touch;
}
.cs-welcome, .cs-msgs .empty {
  text-align: center;
  color: #999;
  padding: 40px 16px;
  font-size: 14px;
  line-height: 1.6;
}
.cs-row {
  display: flex;
  margin-bottom: 12px;
}
.cs-row.mine { justify-content: flex-end; }
.cs-row.theirs { justify-content: flex-start; }
.cs-bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  word-break: break-word;
}
.cs-row.mine .cs-bubble {
  background: #fa5151;
  color: #fff;
}
.cs-text { font-size: 15px; line-height: 1.5; }
.cs-time {
  margin-top: 6px;
  font-size: 11px;
  opacity: .65;
}
.cs-img {
  display: block;
  max-width: 200px;
  max-height: 240px;
  border-radius: 8px;
  object-fit: cover;
}
.cs-input-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #eee;
}
.cs-img-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  cursor: pointer;
  flex-shrink: 0;
}
#cs-text {
  flex: 1;
  height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  background: #f9fafb;
}
.cs-send {
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 18px;
  background: #fa5151;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.admin-wrap { max-width: 960px; margin: 0 auto; padding: 20px 12px 40px; background: #f3f4f6; min-height: 100vh; }
.admin-wrap h1 { margin-bottom: 16px; font-size: 22px; }
.admin-card { background:#fff; border-radius:14px; padding:16px; box-shadow:0 8px 24px rgba(15,23,42,.06); margin-bottom:16px; }
.admin-card h2 { font-size:16px; margin-bottom:12px; }
.admin-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:20px; }
.stat { background:#fff; border-radius:12px; padding:16px; box-shadow:0 8px 24px rgba(15,23,42,.06); }
.stat b { display:block; font-size:24px; margin-top:6px; color:#fa5151; }
.notice { background:#fff7ed; border:1px solid #fed7aa; color:#9a3412; border-radius:10px; padding:10px 12px; font-size:13px; }
.row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width:720px){
  .admin-grid { grid-template-columns:repeat(2,1fr); }
  .row { grid-template-columns:1fr; }
}

/* 支付弹层 */
.pay-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.pay-sheet {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
}
.pay-sheet.qr { text-align: center; }
.pay-sheet-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.pay-sheet-list { display: flex; flex-direction: column; gap: 10px; }
.pay-method-btn {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.pay-method-btn:active { background: #eff6ff; border-color: #93c5fd; }
.pay-amount { font-size: 28px; font-weight: 800; color: #fa5151; margin: 6px 0 12px; }
.pay-qr-img {
  width: 200px; height: 200px; object-fit: contain;
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 8px;
}
.pay-tip { margin: 12px 0; font-size: 13px; color: #6b7280; line-height: 1.5; }
.pay-cancel {
  margin-top: 10px; width: 100%; border: 0; background: transparent;
  color: #6b7280; padding: 12px; font-size: 14px; cursor: pointer;
}

