:root {
  --primary: #3775f4;
  --text: #111;
  --muted: #999;
  --bg: #fafafa;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #app { height: 100%; }
body {
  font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #e8e8e8;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }
img { max-width: 100%; display: block; }

.phone-shell {
  max-width: 430px;
  min-height: 100%;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  padding-bottom: calc(60px + var(--safe-bottom));
  background: #f5f5f5;
}
.page.no-tab { padding-bottom: 16px; }

.toast {
  position: fixed;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 9999;
  max-width: 78%;
  text-align: center;
  pointer-events: none;
}

/* ===== login (closer to original red bank feel + form card) ===== */
.login-page {
  min-height: 100vh;
  background: #fff url("../img/login_bg.ee4072ec.png") no-repeat top center / 100% auto;
  padding: 120px 24px 32px;
}
.login-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}
.login-card h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 22px;
  font-weight: 700;
}
.field {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 14px 0;
}
.field .label {
  width: 72px;
  color: #666;
  font-size: 14px;
  flex-shrink: 0;
}
.field input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 15px;
  background: transparent;
}
.id-upload-block {
  margin-top: 18px;
}
.id-upload-title {
  margin: 0 0 10px;
  font-size: 14px;
  color: #666;
}
.id-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.id-upload-item {
  position: relative;
  display: block;
  height: 110px;
  border: 1px dashed #ccc;
  border-radius: 8px;
  background: #fafafa;
  overflow: hidden;
  cursor: pointer;
}
.id-upload-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.id-upload-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  color: #999;
  line-height: 1.5;
}
.btn-primary {
  width: 100%;
  height: 46px;
  border-radius: 23px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
}
.btn-primary:disabled { opacity: 0.5; }
.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 13px;
  color: #888;
}
.demo-tip {
  margin-top: 16px;
  font-size: 12px;
  color: #999;
  line-height: 1.6;
  background: #f7f8fa;
  padding: 10px 12px;
  border-radius: 8px;
}
.disclaimer {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  margin-top: 18px;
  line-height: 1.5;
  padding: 0 12px 8px;
}

/* ===== home header ===== */
.home-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.home-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.hex-logo {
  width: 30px;
  height: 30px;
  background: #db0011;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px #fff;
}
.search-box {
  flex: 1;
  height: 34px;
  border-radius: 17px;
  background: #f2f3f5;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #999;
  font-size: 13px;
  gap: 6px;
}
.msg-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2b6de5;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
}
.team-hero .team-title { padding-right: 0; }

.banner {
  margin: 0;
  background: #111;
  width: 100%;
  overflow: hidden;
}
.banner img {
  width: 100%;
  display: block;
  min-height: 140px;
  object-fit: cover;
}

/* ===== work boxes (original) ===== */
.work_box {
  background: #fff;
  padding: 18px 12px 10px;
  margin-top: 12px;
}
.work_box .block-title {
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 14px;
  padding-left: 6px;
  border-left: 4px solid #3775f4;
  line-height: 26px;
}
.sub-line {
  font-size: 12px;
  color: #888;
  margin: 2px 0 12px 10px;
}
.grid-row {
  display: flex;
  flex-wrap: wrap;
}
.grid-row .item {
  width: 25%;
  text-align: center;
  padding: 6px 4px 12px;
  cursor: pointer;
}
.icon-wrap {
  width: 46px;
  height: 46px;
  min-height: 46px;
  margin: 0 auto 8px;
  background: #f7f9fc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.icon-wrap img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.icon-wrap .emoji {
  font-size: 24px;
  line-height: 1;
  color: #e7544d;
}
.bank-text {
  font-size: 12px;
  line-height: 16px;
  color: #444;
  margin: 0;
  word-break: break-all;
  padding: 0 2px;
}

/* ===== nav bar ===== */
.nav-bar {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.nav-bar .back {
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 44px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #fff;
  line-height: 1;
}

/* ===== user page ===== */
.user_wrap {
  background: #f4f6f8;
  max-width: 100%;
  overflow: hidden;
  padding-bottom: calc(70px + var(--safe-bottom));
}
.top_header {
  position: relative;
  width: 100%;
  min-height: 268px;
  padding-bottom: 58px;
  background: linear-gradient(160deg, #4b8dff 0%, #2f6fed 45%, #2563eb 100%);
}
.top_header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: radial-gradient(120% 80% at 50% 0%, transparent 55%, #f4f6f8 56%);
}
.set_go {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 14px;
  right: 16px;
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABEUlEQVRYR+1WwQ3CMAy8W4MXe/CAbgKCPYA9QLAJ8GAPXqxhdFFSRdCWVK0UFepXldiX89lOQ2Q2Zj4fI4HhKGBmOwBzADeS+v4wM1sA2GqDZJHSX40KeMCAE8D3AK4N4Bfti0CIJ1nrX0nAzKYA7gAm/iBlExPQsss0skAsJmB+/wlgRvLxTryOwAnAMspU4CLgSuBB9B2b1pVpWQIzExmZYs8kV6kEFKigokm+lBr7MpSqjATaKpCicqqPm4zBERib0Cng51ljKQu3XBjVb2uK6zaG2QmktnmV329cRNlLkJ3Af/dAl+yj2Nb3wBrAoafDA8yG5DHpZySn+IHZA5F93cNmOM/yHlSohBgVyK7ACyVZCTB5X0CeAAAAAElFTkSuQmCC") no-repeat 50%;
  background-size: 100% 100%;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
}
.user_detail {
  width: 100%;
  padding: 48px 18px 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.user_nickname {
  line-height: 22px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
}
.user_vip {
  color: rgba(255,255,255,.92);
  font-weight: 600;
  font-size: 14px;
  margin: 8px 20px 18px;
}
.user_balance { text-align: center; }
.user_balance .label-row {
  margin: 6px 0;
  font-size: 13px;
  color: rgba(255,255,255,.78);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.eye-btn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}
.user_balance .amount {
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  margin: 6px 0 14px;
  letter-spacing: .5px;
}
.user_money {
  display: flex;
  justify-content: space-between;
  text-align: center;
  padding: 0 10px 8px;
}
.user_money > div { width: 33.33%; }
.user_money p { margin: 6px 0; }
.user_money p:first-child { font-size: 12px; color: rgba(255,255,255,.72); }
.user_money p:nth-child(2) { font-size: 14px; color: #fff; font-weight: 600; }

.user_yw {
  display: flex;
  justify-content: space-between;
  text-align: center;
  width: 92%;
  position: relative;
  top: -36px;
  background: #fff;
  left: 4%;
  border-radius: 12px;
  padding: 16px 8px 14px;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(47,111,237,.12);
}
.user_yw > div { width: 33.33%; cursor: pointer; }
.user_yw p { margin-top: 8px; font-size: 13px; color: #333; font-weight: 500; }
.yw-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.yw-icon img { width: 26px; height: 26px; object-fit: contain; }
.yw-blue { background: linear-gradient(145deg, #e8f1ff, #d7e7ff); }
.yw-red { background: linear-gradient(145deg, #ffe9e7, #ffd7d3); }
.yw-orange { background: linear-gradient(145deg, #fff1e4, #ffe2c8); }

.money-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 92%;
  background: #fff;
  border-radius: 12px;
  margin: -20px auto 0;
  padding: 16px 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.money-bar p:first-child { font-size: 13px; color: #888; }
.money-bar p:nth-child(2) { font-size: 22px; font-weight: 700; margin-top: 6px; color: #222; }
.money-bar .transfer {
  color: #2f6fed;
  font-size: 14px;
  padding: 7px 16px;
  border: 1px solid #2f6fed;
  border-radius: 18px;
  font-weight: 500;
}

.cell-list {
  width: 92%;
  margin: 12px auto 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.03);
}
.cell-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
  cursor: pointer;
}
.cell-item:last-child { border-bottom: 0; }
.cell-item .left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #222;
}
.cell-item .left img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f9fc;
  padding: 3px;
}
.cell-item .arrow { color: #c8cdd5; font-size: 18px; }

.business-block {
  width: 92%;
  margin: 12px auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 16px 12px 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.03);
}
.business-block .block-title {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 14px;
  padding-left: 8px;
  border-left: 3px solid #2f6fed;
  line-height: 1.2;
}
.business-block .grid-row {
  display: flex;
  flex-wrap: wrap;
}
.business-block .grid-item {
  width: 33.33%;
  text-align: center;
  cursor: pointer;
  padding: 4px 4px 14px;
}
.business-block .icon-box {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  background: linear-gradient(160deg, #f4f8ff, #eaf1ff);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.business-block .icon-box img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.business-block .item-text {
  font-size: 12px;
  color: #444;
  margin: 0;
  line-height: 16px;
  word-break: break-all;
  padding: 0 2px;
}

/* ===== sign page (premium) ===== */
.sign-page {
  min-height: 100vh;
  background: #f7f7f8;
  padding-bottom: 28px;
}
.sign-hero {
  position: relative;
  background: #fff url("../img/sign_bg.e3540a71.png") no-repeat top center / 100% auto;
  min-height: 220px;
  padding: 14px 20px 36px;
  color: #fff;
  text-align: center;
}
.sign-back {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.sign-hero-title {
  font-size: 18px;
  font-weight: 600;
  padding-top: 8px;
}
.sign-hero-sub {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.sign-main-btn {
  margin: 22px auto 0;
  width: 210px;
  height: 46px;
  border: 0;
  border-radius: 23px;
  background: linear-gradient(180deg, #ffe56a, #ffc107);
  color: #a35a00;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(255, 170, 0, .35);
}
.sign-main-btn.done {
  background: linear-gradient(180deg, #ffe9a0, #f0c86a);
  color: #9a6b1a;
}
.sign-panel {
  margin: 12px 12px 0;
  background: #fff;
  border-radius: 14px;
  padding: 14px 14px 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.sign-month {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}
.sign-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  color: #b0b0b0;
  font-size: 12px;
  margin-bottom: 6px;
}
.sign-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px 0;
}
.sign-day {
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #333;
  border-radius: 50%;
  width: 36px;
  margin: 2px auto;
}
.sign-day.empty { visibility: hidden; }
.sign-day.today,
.sign-day.signed {
  background: #ffd6de;
  color: #e14b6a;
  font-weight: 700;
}
.sign-sec-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}
.sign-today {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sign-coupon {
  width: 86px;
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff5b6e, #e8203a);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(232, 32, 58, .28);
  position: relative;
  overflow: hidden;
}
.sign-coupon::before,
.sign-coupon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  top: 50%;
  transform: translateY(-50%);
}
.sign-coupon::before { left: -6px; }
.sign-coupon::after { right: -6px; }
.sign-coupon-amt { font-size: 16px; font-weight: 700; }
.sign-coupon-tag { font-size: 11px; opacity: .92; margin-top: 2px; }
.sign-today-txt .t1 { font-size: 16px; font-weight: 700; color: #222; }
.sign-today-txt .t2 { font-size: 12px; color: #999; margin-top: 6px; }
.sign-reward-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
}
.sign-reward-scroll::-webkit-scrollbar { display: none; }
.sign-reward-item {
  flex: 0 0 72px;
  text-align: center;
}
.sr-day { font-size: 12px; color: #666; margin-bottom: 6px; }
.sr-hb { width: 42px; height: 42px; margin: 0 auto 4px; object-fit: contain; }
.sr-amt { font-size: 12px; color: #e8203a; font-weight: 600; margin-bottom: 6px; }
.sr-btn {
  display: inline-block;
  min-width: 54px;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid #f3a0ad;
  color: #e14b6a;
  font-size: 11px;
  background: #fff;
}
.sr-btn.ok {
  background: #ffe8ec;
  border-color: #e14b6a;
}
.sign-note {
  margin-top: 10px;
  color: #e14b6a;
  font-size: 12px;
  line-height: 1.5;
}
.sign-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.sign-modal-box {
  width: min(300px, 86vw);
  background: linear-gradient(180deg, #fff 70%, #fff4e8 100%);
  border-radius: 18px;
  padding: 22px 18px 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.sign-modal-x {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #ddd;
  color: #999;
  font-size: 20px;
  line-height: 1;
  background: #fff;
}
.sign-modal-gift img {
  width: 140px;
  margin: 8px auto 6px;
}
.sign-modal-label {
  color: #e8203a;
  font-size: 16px;
  font-weight: 600;
}
.sign-modal-amt {
  color: #e8203a;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin: 4px 0 14px;
}
.sign-modal-ok {
  width: 150px;
  height: 44px;
  border-radius: 22px;
  border: 0;
  background: linear-gradient(180deg, #ffe56a, #ffb300);
  color: #8a5200;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(255,170,0,.35);
}

/* wealth page */
.wealth-page { background: #f2f3f5; }
.wealth-header {
  height: 46px;
  line-height: 46px;
  text-align: center;
  background: #2f6fed;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 12;
}
.wealth-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  background: #fff;
  padding: 0 8px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 46px;
  z-index: 11;
  -webkit-overflow-scrolling: touch;
}
.wealth-tabs::-webkit-scrollbar { display: none; }
.wealth-tab {
  flex: 0 0 auto;
  padding: 12px 10px 10px;
  font-size: 13px;
  color: #666;
  position: relative;
  white-space: nowrap;
}
.wealth-tab.active {
  color: #2f6fed;
  font-weight: 600;
}
.wealth-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: #2f6fed;
}
.wealth-list { padding: 10px 12px 8px; }
.wealth-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.wealth-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 14px;
  line-height: 1.35;
}
.wealth-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  margin-bottom: 10px;
}
.ws-num {
  color: #e7544d;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.ws-num.dark { color: #222; font-size: 18px; }
.ws-label {
  margin-top: 4px;
  font-size: 12px;
  color: #999;
}
.wealth-scale {
  font-size: 12px;
  color: #999;
  margin: 4px 0 12px;
}
.wealth-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wealth-bar {
  flex: 1;
  height: 6px;
  background: #e8eefc;
  border-radius: 99px;
  position: relative;
}
.wealth-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #5b8cff, #2f6fed);
  border-radius: 99px;
  min-width: 2px;
}
.wealth-bar-tip {
  position: absolute;
  top: -22px;
  transform: translateX(-50%);
  background: #2f6fed;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 8px;
  white-space: nowrap;
}
.wealth-bar-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%);
  border: 3px solid transparent;
  border-top-color: #2f6fed;
}
.wealth-invest-btn {
  flex: 0 0 auto;
  min-width: 88px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #2f6fed;
  color: #2f6fed;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}
.wealth-invest-btn:active { background: #f3f7ff; }

/* activity / shared cards */
.product-card,
.act-card,
.plain-card {
  margin: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 14px;
}
.product-card h3,
.act-card h3 { font-size: 15px; margin-bottom: 8px; }
.rate { color: #e7544d; font-size: 22px; font-weight: 700; }
.rate span { font-size: 12px; font-weight: 500; color: #888; }
.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  margin-top: 10px;
}
.act-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #eee;
}
.empty {
  text-align: center;
  color: #999;
  padding: 48px 16px;
  font-size: 14px;
}
.funds-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.funds-item .tit { font-size: 14px; }
.funds-item .time { font-size: 12px; color: #999; margin-top: 4px; }
.funds-item .amt { color: #e7544d; font-weight: 600; }

/* transfer */
.transfer-page .tf-balance {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}
.transfer-page .tf-balance b {
  color: #e7544d;
  font-size: 20px;
  margin-left: 6px;
}
.tf-actions {
  display: flex;
  justify-content: space-between;
  margin: 4px 0 8px;
}
.tf-link {
  color: #2f6fed;
  font-size: 13px;
  background: none;
  border: 0;
  padding: 0;
}
.tf-link.danger { color: #e7544d; }
.tf-add {
  background: #f7f9fc;
  border-radius: 8px;
  padding: 8px 12px 12px;
  margin-bottom: 8px;
}
.tf-tip {
  margin-top: 12px;
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}
.btn-red {
  background: #c8102e !important;
}
.add-payee-page .qr-block { margin-top: 14px; }
.add-payee-page .qr-title {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}
.add-payee-page .qr-box {
  display: block;
  width: 100%;
  min-height: 160px;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 13px;
  overflow: hidden;
  cursor: pointer;
}
.add-payee-page .qr-box img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #fff;
}

/* my team (original style) */
.team-page {
  min-height: 100vh;
  background: #f5f5f5;
  padding-bottom: 24px;
}
.team-hero {
  position: relative;
  background: linear-gradient(180deg, #e11d2e 0%, #c8102e 100%);
  color: #fff;
  padding: 12px 16px 70px;
  text-align: center;
}
.team-back {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 32px;
  line-height: 1;
}
.team-qr-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  color: #fff;
  font-size: 18px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 4px;
  background: transparent;
}
.team-title {
  font-size: 17px;
  font-weight: 600;
  padding-top: 6px;
}
.team-reward-intro {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.7;
}
.tri-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
.tri-line span {
  width: 36px;
  height: 1px;
  background: rgba(255,255,255,.55);
}
.tri-line i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.8);
}
.team-card {
  margin: -48px 14px 0;
  background: #fff;
  border-radius: 12px;
  padding: 16px 14px 14px;
  box-shadow: 0 8px 20px rgba(200,16,46,.12);
  position: relative;
  z-index: 2;
}
.team-phone {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.team-comm-label {
  text-align: center;
  margin-top: 10px;
  color: #888;
  font-size: 13px;
}
.team-comm-num {
  text-align: center;
  color: #e11d2e;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  margin: 2px 0 10px;
}
.team-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #666;
  font-size: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.team-stats b { color: #222; margin: 0 2px; }
.team-stats .split {
  width: 1px;
  height: 14px;
  background: #ddd;
}
.team-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.team-link {
  flex: 1;
  font-size: 12px;
  color: #666;
  word-break: break-all;
  line-height: 1.4;
}
.team-copy {
  flex: 0 0 auto;
  background: #c8102e;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
}
.team-tabs {
  display: flex;
  gap: 10px;
  padding: 14px 14px 0;
}
.team-tabs button {
  flex: 1;
  height: 34px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #666;
  font-size: 13px;
}
.team-tabs button.active {
  background: #c8102e;
  border-color: #c8102e;
  color: #fff;
  font-weight: 600;
}
.team-list { padding: 12px 14px; min-height: 220px; }
.team-item {
  display: flex;
  justify-content: space-between;
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}
.team-item .t { color: #999; font-size: 12px; }
.team-empty {
  text-align: center;
  color: #999;
  padding: 40px 0;
}
.team-empty .empty-illust {
  width: 120px;
  height: 90px;
  margin: 0 auto 12px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ececec, #f7f7f7);
  box-shadow: inset 0 0 0 1px #e5e5e5;
  position: relative;
}
.team-empty .empty-illust::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 28px;
  bottom: 28px;
  border: 2px dashed #d2d2d2;
  border-radius: 4px;
}
.team-loading {
  text-align: center;
  color: #999;
  padding: 48px 0;
}
.team-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.team-qr-box {
  width: min(280px, 86vw);
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}
.team-qr-box img {
  width: 200px;
  height: 200px;
  margin: 0 auto 10px;
  background: #f5f5f5;
}
.team-qr-box p {
  margin-bottom: 12px;
  color: #333;
  font-weight: 600;
}

.tab-page-title {
  height: 46px;
  line-height: 46px;
  text-align: center;
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.auth-tip {
  color: #c8102e;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* footer shell positioning for phone width */
.footer {
  width: min(430px, 100%) !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  transform: none !important;
  padding-bottom: var(--safe-bottom);
  height: calc(60px + var(--safe-bottom)) !important;
  z-index: 200 !important;
}
.footer .footer_item {
  text-decoration: none !important;
  color: #999;
}
.footer .footer_item.footer_item_active,
.footer .footer_item.router-link-active {
  color: #3775f4;
}
