:root {
  --black: #101010;
  --page: #f5f5f5;
  --surface: #ffffff;
  --text: #2f3034;
  --muted: #8f8f95;
  --gold-1: #d7c07c;
  --gold-2: #c9ab49;
  --red: #ef4440;
  --pay: #ff5b4b;
  --shadow: 0 8px 18px rgba(0, 0, 0, 0.07);
  --radius: 9px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

button {
  border: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  background: transparent;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.55;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
}

#app {
  min-height: 100vh;
}

.phone-shell {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--page);
}

.phone-shell.has-bottom-bar {
  padding-bottom: 84px;
}

.wechat-chrome {
  position: relative;
  z-index: 5;
  height: 106px;
  background: var(--black);
  color: #eeeeee;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 45px;
  padding: 16px 39px 0;
}

.status-left,
.status-right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-time {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.status-muted,
.status-right span:not(.battery) {
  width: 20px;
  height: 20px;
  color: #f3f3f3;
}

.battery {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 29px;
  height: 19px;
  border-radius: 6px;
  background: #35c85a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.battery::after {
  position: absolute;
  right: -5px;
  width: 4px;
  height: 10px;
  border-radius: 0 3px 3px 0;
  background: rgba(255, 255, 255, 0.45);
  content: "";
}

.bolt {
  margin-left: 1px;
  transform: rotate(90deg);
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
}

.nav-row {
  display: grid;
  grid-template-columns: 76px 1fr 106px;
  align-items: center;
  height: 61px;
}

.chrome-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #d6d6d6;
}

.chrome-icon svg {
  width: 29px;
  height: 29px;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
}

.close-btn {
  margin-left: 13px;
}

.title-block {
  min-width: 0;
  text-align: center;
}

.title-block h1 {
  margin: 0;
  color: #dedee2;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.06;
}

.title-block p {
  margin: 2px 0 0;
  color: #8d8d92;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.chrome-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-right: 11px;
}

.center-page {
  min-height: 100vh;
  background: #f6f6f6;
}

.profile-band {
  height: 206px;
  padding: 24px 17px 0;
  background: linear-gradient(105deg, var(--gold-1), var(--gold-2));
  color: #ffffff;
}

.profile-row {
  display: flex;
  align-items: flex-start;
  gap: 17px;
}

.avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e5e5;
}

.profile-copy {
  padding-top: 1px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.48;
}

.profile-copy p {
  margin: 0 0 7px;
}

.profile-copy p:first-child {
  display: flex;
  align-items: center;
  gap: 13px;
}

.profile-copy strong {
  font-size: 16px;
  font-weight: 500;
}

.card {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 88px;
  margin: -55px 11px 10px;
  overflow: hidden;
}

.summary-cell {
  display: grid;
  place-content: center;
  justify-items: center;
  min-width: 0;
}

.summary-cell strong {
  margin-bottom: 8px;
  color: #25262a;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.summary-cell span {
  font-size: 17px;
  line-height: 1.15;
}

.credit-entry {
  gap: 5px;
}

.diamond-icon {
  width: 35px;
  height: 35px;
  color: var(--red);
}

.menu-card,
.tool-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  margin: 0 11px 13px;
}

.menu-card {
  height: 91px;
}

.tool-card {
  height: 112px;
}

.menu-item,
.tool-item {
  display: grid;
  justify-items: center;
  min-width: 0;
  color: #37383d;
  font-size: 14px;
  line-height: 1.15;
}

.line-icon {
  width: 33px;
  height: 33px;
  margin-bottom: 15px;
  color: var(--red);
}

.tool-item span:last-child,
.menu-item span:last-child {
  max-width: 86px;
  white-space: nowrap;
}

.round-icon {
  display: grid;
  width: 49px;
  height: 49px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
}

.round-icon svg {
  width: 31px;
  height: 31px;
}

.round-icon.orange {
  background: #ff6a3b;
}

.round-icon.green {
  background: #45ad48;
}

.round-icon.red {
  background: #f3423b;
}

.round-icon.blue {
  background: #1f99e9;
}

.credit-page,
.recharge-page {
  min-height: 100vh;
  padding: 17px 13px 0;
  background: #f5f5f5;
}

.amount-card,
.info-card {
  margin-bottom: 15px;
}

.amount-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 87px;
  padding: 25px 22px 0;
  color: #ee5047;
  line-height: 1;
}

.recharge-amount {
  align-items: center;
  justify-content: flex-start;
  padding: 0 22px;
}

.amount-value {
  font-size: 30px;
  font-weight: 800;
}

.amount-level {
  margin-top: 6px;
  color: #45464c;
  font-size: 17px;
  font-weight: 600;
}

.tier-card {
  margin-bottom: 15px;
  padding: 18px 16px 16px;
}

.tier-card h2 {
  margin: 0 0 13px;
  color: #292a2e;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
}

.tier-list {
  display: grid;
  gap: 10px;
}

.tier-option {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 58px;
  padding: 10px 13px;
  overflow: hidden;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  background: #ffffff;
  text-align: left;
}

.tier-option.selected {
  border-color: #ff5b4b;
  background: #fff6f4;
  box-shadow: inset 0 0 0 1px rgba(255, 91, 75, 0.18);
}

.tier-main {
  display: grid;
  gap: 5px;
}

.tier-main strong {
  color: #2b2c31;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
}

.tier-main em {
  color: #85868c;
  font-size: 12px;
  font-style: normal;
  line-height: 1.1;
}

.tier-price {
  color: #ee5047;
  font-size: 22px;
  font-weight: 800;
}

.tier-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 42px;
  padding: 2px 7px;
  border-radius: 0 9px 0 9px;
  background: #ff5b4b;
  color: #ffffff;
  text-align: center;
  font-size: 11px;
  line-height: 1.45;
  opacity: 0.9;
}

.info-card {
  padding: 23px 22px;
}

.info-card:not(.notice-card) {
  min-height: 136px;
}

.info-card h2 {
  margin: 0 0 18px;
  color: #292a2e;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
}

.info-card p {
  margin: 0;
  color: #36373c;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.58;
}

.notice-card {
  min-height: 110px;
}

.notice-card p {
  color: #77787f;
  font-size: 15px;
}

.pay-button {
  width: 100%;
  height: 56px;
  margin-top: 6px;
  border-radius: 30px;
  background: var(--pay);
  color: #ffffff;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 4px 8px rgba(255, 91, 75, 0.16);
}

.recharge-confirm {
  margin-top: 24px;
}

.agreement {
  margin: 24px 0 0;
  color: #999aa0;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
}

.browser-bottom {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 67px;
  width: min(100vw, 430px);
  height: 84px;
  transform: translateX(-50%);
  background: #1b1b1b;
  color: #d0d0d0;
}

.browser-bottom button {
  width: 43px;
  height: 43px;
}

.browser-bottom button:disabled {
  color: #555555;
  opacity: 1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.48);
}

.modal-card {
  width: min(340px, 100%);
  border-radius: 12px;
  background: #ffffff;
  padding: 24px 22px 18px;
  text-align: center;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.modal-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.modal-card p {
  margin: 0 0 20px;
  color: #55575e;
  font-size: 15px;
  line-height: 1.55;
}

.modal-card button {
  width: 100%;
  height: 44px;
  border-radius: 22px;
  background: var(--pay);
  color: #ffffff;
  font-size: 16px;
}

@media (max-width: 360px) {
  .profile-copy {
    font-size: 14px;
  }

  .profile-copy strong {
    font-size: 15px;
  }

  .menu-item,
  .tool-item {
    font-size: 13px;
  }

  .info-card p {
    font-size: 14px;
  }

  .tier-price {
    font-size: 19px;
  }
}
