/* ===== app.css ===== */

/* H5 基础重置（保持小程序 button/view 的默认视觉） */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { border: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[v-cloak] { display: none; }
@media (min-width: 750px) { body { max-width: 750px; margin: 0 auto; } }

body {
  background: #f4f6fb;
  color: #1f2733;
  font-size: min(3.4667vw,13px);
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", sans-serif;
}

/* 小程序 WXML 标签在 HTML 中的默认显示回归：view 块级、text 行内 */
view { display: block; }
text { display: inline; }


.wrap { padding: min(3.2vw,12px); }
.card {
  background: #fff;
  border-radius: min(2.1333vw,8px);
  padding: min(3.2vw,12px);
  margin-bottom: min(2.6667vw,10px);
  box-shadow: 0 min(0.2667vw,1px) min(1.6vw,6px) rgba(31, 39, 51, 0.06);
}
.card-title {
  font-size: min(4vw,15px);
  font-weight: 600;
  color: #1f2733;
  margin-bottom: min(2.1333vw,8px);
  display: flex;
  align-items: center;
}
.card-title::before {
  content: '';
  width: min(0.8vw,3px);
  height: min(3.7333vw,14px);
  background: #2f6bff;
  border-radius: min(0.4vw,1.5px);
  margin-right: min(1.6vw,6px);
}


.t-main { color: #1f2733; }
.t-sub { color: #6b7684; font-size: min(3.2vw,12px); }
.t-blue { color: #2f6bff; }
.t-red { color: #e5484d; }
.t-gray { color: #9aa3af; }
.t-bold { font-weight: 600; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(11.7333vw,44px);
  border-radius: min(1.6vw,6px);
  font-size: min(4vw,15px);
  border: none;
  line-height: 1.2;
}
.btn::after { border: none; }
.btn-primary { background: #2f6bff; color: #fff; }
.btn-primary.btn-hover { background: #2557d6; }
.btn-ghost { background: #fff; color: #2f6bff; border: min(0.2667vw,1px) solid #2f6bff; }
.btn-gray { background: #eef1f6; color: #6b7684; }
.btn-block { width: 100%; }
.btn-sm { height: min(8.5333vw,32px); font-size: min(3.4667vw,13px); padding: 0 min(3.2vw,12px); }


.tag {
  display: inline-block;
  padding: min(0.5333vw,2px) min(1.6vw,6px);
  border-radius: min(0.8vw,3px);
  font-size: min(2.9333vw,11px);
  background: #eef3ff;
  color: #2f6bff;
  margin-right: min(1.0667vw,4px);
}
.tag-gray { background: #f0f2f5; color: #6b7684; }
.tag-red { background: #fdecec; color: #e5484d; }
.tag-green { background: #e8f7ee; color: #1a9c53; }


.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: min(2.6667vw,10px) 0;
  border-bottom: min(0.2667vw,1px) solid #f0f2f5;
}
.row:last-child { border-bottom: none; }


.empty {
  padding: min(16vw,60px) 0;
  text-align: center;
  color: #9aa3af;
  font-size: min(3.4667vw,13px);
}
.loading {
  padding: min(10.6667vw,40px) 0;
  text-align: center;
  color: #6b7684;
}


.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: min(3.2vw,12px) 0;
  border-bottom: min(0.2667vw,1px) solid #f0f2f5;
}
.field-label { color: #6b7684; width: min(26.6667vw,100px); flex-shrink: 0; }
.field-value { flex: 1; text-align: right; color: #1f2733; }
.input {
  background: #f7f9fc;
  border-radius: min(1.3333vw,5px);
  padding: min(2.1333vw,8px) min(2.6667vw,10px);
  font-size: min(3.7333vw,14px);
  width: 100%;
  box-sizing: border-box;
}


.mask {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: min(5.3333vw,20px);
}
.modal {
  background: #fff;
  border-radius: min(2.6667vw,10px);
  width: 100%;
  max-width: min(82.6667vw,310px);
  overflow: hidden;
}
.modal-head {
  padding: min(3.7333vw,14px) min(4.2667vw,16px);
  font-size: min(4vw,15px);
  font-weight: 600;
  border-bottom: min(0.2667vw,1px) solid #f0f2f5;
  text-align: center;
  position: relative;
}
.modal-body { padding: min(4.2667vw,16px); font-size: min(3.7333vw,14px); color: #4a5566; text-align: center; }
.modal-foot { display: flex; border-top: min(0.2667vw,1px) solid #f0f2f5; }
.modal-foot > view {
  flex: 1;
  text-align: center;
  padding: min(3.7333vw,14px) 0;
  font-size: min(4vw,15px);
}
.modal-foot .ok { color: #2f6bff; font-weight: 600; }
.modal-foot .cancel { color: #6b7684; border-right: min(0.2667vw,1px) solid #f0f2f5; }


.safe-bottom { height: min(5.3333vw,20px); }


.card-tap { background: #f7f9fc !important; }
.op-tap { background: #eef2f8 !important; }
.pick-row-tap { background: #eef3ff !important; }


.bd-wrap { padding: min(4.2667vw,16px) min(3.2vw,12px); }
.bd-card {
  background: #fff;
  border-radius: min(2.6667vw,10px);
  padding: min(7.4667vw,28px) min(5.3333vw,20px) min(6.4vw,24px);
  box-shadow: 0 min(0.2667vw,1px) min(1.6vw,6px) rgba(31, 39, 51, 0.06);
  text-align: center;
}
.bd-ic {
  width: min(17.0667vw,64px); height: min(17.0667vw,64px); border-radius: min(4.2667vw,16px);
  margin: 0 auto min(3.7333vw,14px);
  display: flex; align-items: center; justify-content: center;
  font-size: min(8vw,30px);
  background: linear-gradient(135deg, #eaf1ff, #dbe6ff);
}
.bd-title { font-size: min(4.5333vw,17px); font-weight: 600; }
.bd-desc { font-size: min(3.3333vw,12.5px); color: #6b7684; line-height: 1.75; margin-top: min(2.1333vw,8px); }
.bd-note {
  margin-top: min(3.7333vw,14px); padding-top: min(3.2vw,12px);
  border-top: min(0.2667vw,1px) solid #f0f2f5;
  font-size: min(2.9333vw,11px); color: #9aa3af; line-height: 1.7;
}
.bd-btn { margin-top: min(5.3333vw,20px); }
.bd-state-t { color: #6b7684; font-size: min(3.4667vw,13px); margin-bottom: min(4.2667vw,16px); }


.net-err-card {
  margin: min(4.2667vw,16px) min(3.2vw,12px); padding: min(7.4667vw,28px) min(5.3333vw,20px) min(6.4vw,24px);
  background: #fff5f5; border: min(0.2667vw,1px) solid #f5c2c0; border-radius: min(2.6667vw,10px);
  text-align: center;
}
.net-err-ic {
  width: min(11.7333vw,44px); height: min(11.7333vw,44px); border-radius: 50%;
  margin: 0 auto min(3.7333vw,14px);
  display: flex; align-items: center; justify-content: center;
  font-size: min(6.9333vw,26px); font-weight: 700; color: #fff; background: #e0392b;
}
.net-err-t {
  font-size: min(4vw,15px); font-weight: 600; color: #e0392b; line-height: 1.6;
}
.net-err-d {
  margin-top: min(2.1333vw,8px); font-size: min(3.3333vw,12.5px); color: #9c6a68; line-height: 1.7;
}
.net-err-card .btn { margin-top: min(5.3333vw,20px); }


.plan-mask {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 1200;
  background: rgba(255, 255, 255, 0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.plan-ring {
  width: min(17.0667vw,64px); height: min(17.0667vw,64px); border-radius: 50%;
  border: min(1.3333vw,5px) solid #e8effa; border-top-color: #2674f5;
  animation: plan-spin 900ms linear infinite;
}
@keyframes plan-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.plan-title {
  margin-top: min(5.8667vw,22px); font-size: min(4.5333vw,17px); font-weight: 700; color: #1f2d3d; letter-spacing: min(0.2667vw,1px);
}
.plan-tip {
  margin-top: min(2.4vw,9px); font-size: min(3.4667vw,13px); color: #6b7a8d; min-height: min(5.3333vw,20px); text-align: center;
  padding: 0 min(8vw,30px); line-height: 1.6;
}
.plan-bar {
  margin-top: min(5.3333vw,20px); width: min(57.3333vw,215px); height: min(1.3333vw,5px); border-radius: min(1.3333vw,5px);
  background: #eef2f7; overflow: hidden;
}
.plan-bar-in {
  height: 100%; border-radius: min(1.3333vw,5px);
  background: linear-gradient(90deg, #4f8df7, #2674f5);
  transition: width 420ms ease;
}
.plan-sub { margin-top: min(4vw,15px); font-size: min(3.0667vw,11.5px); color: #9aa3af; }


.gp-anchor {
  position: relative;
  z-index: 2102;
}

/* ===== common.css ===== */
/* 公众号 H5 公共组件样式（色板/尺寸与小程序 app.wxss 一致） */
/* 标题栏必须高于页面内容与选择器弹层，但低于二维码/分享遮罩 */
.h5-nav { position: sticky; top: 0; z-index: 2500; background: #2f6bff; color: #fff; padding-top: env(safe-area-inset-top, 0); isolation: isolate; }
.h5-nav-in { height: min(11.7333vw, 44px); display: flex; align-items: center; padding: 0 min(3.2vw, 12px); }
.h5-nav-back, .h5-nav-back-placeholder, .h5-nav-right, .h5-nav-home { width: min(10.6667vw, 40px); flex: 0 0 min(10.6667vw, 40px); }
.h5-nav-back { text-align: left; font-size: min(7.4667vw, 28px); line-height: 1; color: #fff; height: 100%; }
.h5-nav-title { flex: 1; text-align: center; font-size: min(4.2667vw, 16px); font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.h5-nav-home { display: flex; align-items: center; justify-content: flex-end; height: 100%; color: #fff; opacity: .95; }
.h5-nav-home:active { opacity: .6; }

.h5-mask { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 5vw; }
.h5-qr-box { position: relative; width: min(86vw, 344px); background: #fff; border-radius: min(4.2667vw, 16px); padding: min(6.4vw, 24px) min(4.2667vw, 16px) min(5.3333vw, 20px); text-align: center; box-shadow: 0 min(2.6667vw, 10px) min(8vw, 30px) rgba(0,0,0,.18); }
.h5-close { position: absolute; right: min(3.2vw, 12px); top: min(2.1333vw, 8px); width: min(8vw, 30px); height: min(8vw, 30px); font-size: min(6.4vw, 24px); line-height: 1; color: #9aa3af; }
.h5-qr-title { font-size: min(4.8vw, 18px); font-weight: 600; color: #1f2733; margin-bottom: min(3.2vw, 12px); }
.h5-qr-img { width: min(57.3333vw, 215px); height: min(57.3333vw, 215px); margin: 0 auto min(2.6667vw, 10px); object-fit: contain; }
.h5-qr-tip { font-size: min(3.4667vw, 13px); line-height: 1.7; color: #e0392b; }
.h5-steps { text-align: left; margin-top: min(3.2vw, 12px); }
.h5-step { display: flex; align-items: flex-start; gap: min(2.1333vw, 8px); font-size: min(3.7333vw, 14px); color: #4a5566; line-height: 1.6; padding: min(1.6vw, 6px) 0; }
.h5-step b { flex: 0 0 min(6.4vw, 24px); height: min(6.4vw, 24px); border-radius: 50%; background: #2f6bff; color: #fff; text-align: center; line-height: min(6.4vw, 24px); font-size: min(3.2vw, 12px); }
.h5-toast { position: fixed; left: 50%; bottom: 18vw; transform: translateX(-50%); z-index: 4000; max-width: 80vw; background: rgba(31,39,51,.9); color: #fff; border-radius: min(2.1333vw, 8px); padding: min(2.6667vw, 10px) min(4.2667vw, 16px); font-size: min(3.4667vw, 13px); text-align: center; }
.seo-muted { margin: min(3.2vw,12px); font-size: min(2.6667vw,10px); color: #9aa3af; line-height: 1.7; text-align: center; }
.zz-limit { margin-top: min(4vw,15px); text-align: center; }
.zz-limit-t { font-size: min(4.2667vw,16px); font-weight: 600; color: #e0392b; }
.zz-limit-d { font-size: min(3.4667vw,13px); color: #6b7684; line-height: 1.8; margin-top: min(1.6vw,6px); }
.zz-limit-qr { width: min(46vw,172px); height: min(46vw,172px); margin: min(3.2vw,12px) auto 0; }
