/* 从对应 Web SCSS 同步，请运行 npm run sync:styles -w web-native。 */
@charset "UTF-8";
.account-profile {
  --ap-pink: #ff4e8d;
  --ap-orange: #ff6b3d;
  --ap-purple: #fb471f;
  --ap-lavender: #fff4f4;
  --ap-peach: #fff1ea;
  --ap-text: #1a1a1a;
  --ap-muted: #8b8b9a;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  color: var(--ap-text);
}

.account-profile__hero {
  position: relative;
  min-height: 134rem;
  padding: 30rem 20rem;
  font-family: var(--font-ui);
  background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), url("/account/profile-background.png") center 70%/100% 134.66% no-repeat;
}

.account-profile__identity {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11rem;
}

.account-profile__avatar {
  width: 67rem;
  height: 67rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.account-profile__identity-content {
  min-width: 0;
}

.account-profile__name-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  min-height: 24rem;
}

.account-profile__name,
.account-profile__login {
  margin: 0;
  font-size: 22rem;
  font-weight: 600;
  line-height: 24rem;
  color: #000;
}

.account-profile__name {
  overflow-wrap: anywhere;
}

.account-profile__login {
  display: inline-flex;
  align-items: center;
  gap: 4rem;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.account-profile__vip {
  flex-shrink: 0;
}

.account-profile__expiry {
  margin: -2rem 0 0;
  color: #dd401e;
  font-size: 14rem;
  font-weight: 600;
  line-height: 24rem;
}

.account-profile .back-btn__icon.account-profile__chevron {
  display: inline-block;
  width: 12rem;
  height: 12rem;
  flex-shrink: 0;
  background: currentColor;
  transform: scaleX(1);
  mask: url("/reader/back-chevron.png") center/contain no-repeat;
  -webkit-mask: url("/reader/back-chevron.png") center/contain no-repeat;
}

.account-profile__uid {
  margin: 1rem 0 0;
  display: flex;
  align-items: center;
  gap: 5rem;
  min-height: 24rem;
  font-size: 14rem;
  line-height: 24rem;
  color: #8c807d;
  overflow-wrap: anywhere;
}

.account-profile__copy {
  display: inline-flex;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.45;
}

.account-profile__body {
  padding: 0 16rem 24rem;
  display: flex;
  flex-direction: column;
  gap: 12rem;
}

.account-profile__card {
  border-radius: 16rem;
  padding: 16rem 16rem;
}

.account-profile__card--sub {
  position: relative;
  isolation: isolate;
  min-height: 71rem;
  padding: 17rem 16rem 8rem 61rem;
  border-radius: 15rem;
  background: #d578d8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 8rem;
  row-gap: 12rem;
}

.account-profile__subscription-background {
  z-index: -1;
  border-radius: inherit;
  object-fit: cover;
  opacity: 0.9;
}

.account-profile__subscription-crown {
  position: absolute;
  top: 12rem;
  left: 11rem;
  width: 46.544rem;
  height: 46.544rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-profile__subscription-crown img {
  transform: rotate(-45deg);
}

.account-profile__subscription-copy {
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
}

.account-profile__card--sub .account-profile__card-title {
  color: #fff;
  font-family: var(--font-ui);
  font-size: 18rem;
  font-weight: 700;
  font-style: italic;
  line-height: 24rem;
}

.account-profile__card--sub .account-profile__card-desc {
  margin-top: 2rem;
  color: #fff;
  font-size: 12rem;
  line-height: 16rem;
}

.account-profile__card--wallet {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  margin-top: 16rem;
  padding: 12rem 16rem;
  border-radius: 12rem;
  background: rgba(255, 132, 135, 0.1);
  font-family: var(--font-ui);
}

.account-profile__card--wallet .account-profile__card-title {
  color: #000;
  font-size: 14rem;
  font-weight: 600;
  line-height: 20rem;
}

.account-profile__card-title {
  margin: 0;
  font-size: 16rem;
  font-weight: 700;
}

.account-profile__card-desc {
  margin: 4rem 0 0;
  font-size: 13rem;
  color: var(--ap-muted);
}

.account-profile__card-desc--active {
  color: #6b4bb8;
  font-weight: 510;
}

.account-profile__card-desc--expired {
  color: #b54769;
}

.account-profile__checkout {
  display: flex;
  align-items: center;
  gap: 12rem;
  flex-shrink: 0;
}

.account-profile__amount {
  min-width: 79rem;
  min-height: 22rem;
  border: 0;
  border-radius: 20rem;
  padding: 1rem 10rem;
  background: #fff;
  color: #d94bbe;
  font-family: var(--font-ui);
  font-size: 14rem;
  font-weight: 600;
  line-height: 20rem;
  white-space: nowrap;
  cursor: pointer;
}

.account-profile__amount:disabled {
  opacity: 0.65;
  cursor: default;
}

.account-profile__payment-buttons {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 5.6rem;
}

.account-profile__payment-button {
  min-height: 36rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4.8rem;
  border: 1px solid #e8dce0;
  border-radius: 10rem;
  padding: 5.6rem 8.8rem;
  background: #fff;
  color: var(--ap-text);
  font-size: 13rem;
  font-weight: 700;
  cursor: pointer;
}

.account-profile__payment-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.account-profile__price {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 8.8rem 16rem;
  background: #fff;
  color: #d94bbe;
  font-size: 14rem;
  font-weight: 700;
  cursor: pointer;
}

.account-profile__price:disabled {
  opacity: 0.65;
  cursor: wait;
}

.account-profile__wallet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8rem;
}

.account-profile__details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.account-profile__wallet-chevron {
  transform: scaleX(-1);
}

.account-profile__wallet-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.0625fr) 80rem;
  align-items: center;
  gap: 8rem;
}

.account-profile__asset {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.account-profile__asset-value {
  display: inline-flex;
  align-items: center;
  gap: 4rem;
  max-width: 100%;
  color: #000;
  font-size: 20rem;
  font-weight: 600;
  line-height: 26rem;
  overflow-wrap: anywhere;
}

.account-profile__asset-label {
  font-size: 12rem;
  font-weight: 500;
  line-height: 16rem;
  color: #888;
}

.account-profile__coin-icon {
  flex-shrink: 0;
  width: 23rem;
  height: 23rem;
}

.account-profile__coin-icon--bonus {
  width: 26rem;
  height: 26rem;
}

.account-profile__topup {
  border: 0;
  border-radius: 16rem;
  min-height: 32rem;
  padding: 6rem 8rem;
  background: linear-gradient(90deg, #fc7354, #fb471f);
  color: #fff;
  font-family: inherit;
  font-size: 14rem;
  font-weight: 600;
  line-height: 20rem;
  cursor: pointer;
  text-align: center;
}

.account-profile__menu {
  margin: 4rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.account-profile__menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12rem;
  border: 0;
  background: transparent;
  padding: 15.2rem 2.4rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  text-align: left;
  font-size: 15rem;
  color: var(--ap-text);
  cursor: pointer;
}

.account-profile__menu-item:last-child {
  border-bottom: 0;
}

.account-profile__menu-icon {
  width: 21.6rem;
  height: 21.6rem;
  object-fit: contain;
  flex-shrink: 0;
}

.account-profile__menu-label {
  flex: 1;
  font-weight: 510;
}

.account-profile__menu-chevron {
  color: #c0c0cc;
}

.account-profile__pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
  font-size: 15rem;
  padding: 16rem;
  text-align: center;
}

.account-profile__payment-sheet {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 500px);
  max-width: 100%;
  max-height: 80dvh;
  margin: 0 auto;
  padding: 20rem 16rem calc(24rem + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 20rem 20rem 0 0;
  background: #fff;
  color: #1a1a1a;
  font-family: var(--font-ui);
}

.account-profile__payment-sheet::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.account-profile__payment-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16rem;
}

.account-profile__payment-sheet-head h2 {
  margin: 0;
  font-size: 16rem;
  font-weight: 600;
}

.account-profile__payment-sheet-head button {
  border: 0;
  background: transparent;
  padding: 4rem 8rem;
  font-size: 24rem;
  line-height: 1;
  cursor: pointer;
}

.account-profile__payment-sheet-summary {
  margin: 8rem 0 20rem;
  font-size: 14rem;
  color: #888;
}

.account-profile__payment-sheet .account-profile__payment-button {
  flex: 1;
  min-height: 48rem;
}

/* 将价格按钮的点击区域覆盖整张卡片，不占用布局空间。 */
.account-profile__amount::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 15rem;
}

.account-profile__amount:focus-visible {
  outline: none;
}

.account-profile__amount:focus-visible::after {
  outline: 2px solid #d94bbe;
  outline-offset: 3px;
}
