/* Personal center: one responsive layout, shared site header/footer. */
.user-center-page {
  width: min(964px, calc(100% - 64px));
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #f4f4f4;
}
.user-center-page a {
  color: inherit;
  text-decoration: none;
}
.user-center-page p,
.user-center-page h1,
.user-center-page h2 {
  margin: 0;
}
.user-center-head {
  display: grid;
  gap: 12px;
}
.user-center-eyebrow {
  font-size: 12px;
  color: #ff5000;
}
.user-center-head h1 {
  font-size: 24px;
  line-height: 32px;
}
.user-center-head p {
  font-size: 14px;
  line-height: 20px;
  color: #888;
}
.account-ads {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.account-ads::-webkit-scrollbar {
  display: none;
}
.account-ads a {
  flex: 0 0 80px;
  display: grid;
  gap: 4px;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
}
.account-ads img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 16px;
}
.account-ads span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-center-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #191919;
  border: 1px solid #292929;
  border-radius: 24px;
  padding: 32px 28px;
  min-height: 176px;
  box-sizing: border-box;
}
.account-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}
.user-center-avatar {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.user-center-profile-info {
  min-width: 0;
}
.user-center-profile-info h2 {
  font-size: 20px;
  line-height: 28px;
  overflow-wrap: anywhere;
}
.user-center-profile-info p {
  color: #888;
  font-size: 12px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.account-id {
  display: none;
}
.account-login {
  font-size: 12px;
  color: #ff5000 !important;
  white-space: nowrap;
}
.user-center-vip-card,
.user-center-coin-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 220px;
  min-height: 112px;
  padding: 16px 18px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.55) !important;
}
.user-center-vip-card strong {
  color: #fff;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}
.user-center-vip-card small {
  font-size: 12px;
}
.user-center-coin-card {
  flex-basis: 180px;
  gap: 4px;
}
.user-center-coin-card strong {
  font-size: 24px;
  line-height: 32px;
  color: #fff;
}
.account-action {
  color: #ff5000;
}
.user-center-vip-card--active {
  background: linear-gradient(88deg, #ffe8be, #e6b764);
  color: #694923 !important;
}
.user-center-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.user-center-features a {
  padding: 18px 22px;
  background: #191919;
  border: 1px solid #292929;
  border-radius: 20px;
  display: grid;
  gap: 6px;
  min-width: 0;
}
.user-center-features h2 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
}
.user-center-features p {
  font-size: 12px;
  line-height: 18px;
  color: #888;
}
.user-center-mobile-vip,
.user-center-mobile-menu {
  display: none;
}
.user-center-page a:focus-visible {
  outline: 2px solid #ff5000;
  outline-offset: 3px;
}
@media (min-width: 768px) and (max-width: 1000px) {
  .user-center-profile {
    flex-wrap: wrap;
  }
  .account-identity {
    flex-basis: 100%;
  }
  .user-center-vip-card,
  .user-center-coin-card {
    flex: 1;
  }
  .user-center-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .user-center-page {
    width: calc(100% - 32px);
    padding: 12px 0 24px;
    gap: 14px;
  }
  .user-center-head,
  .user-center-vip-card,
  .user-center-coin-card,
  .user-center-features {
    display: none;
  }
  .user-center-profile {
    order: 0;
    padding: 0;
    min-height: 56px;
    border: 0;
    background: none;
  }
  .account-identity {
    gap: 12px;
  }
  .user-center-avatar {
    width: 56px;
    height: 56px;
  }
  .user-center-profile-info h2 {
    font-size: 18px;
    line-height: 24px;
  }
  .account-email {
    display: none;
  }
  .account-id {
    display: block;
    margin-top: 4px !important;
  }
  .user-center-mobile-vip {
    order: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    box-sizing: border-box;
    min-height: 81px;
    border-radius: 18px;
    background: #202020 url("/static/images/account/vip-inactive.png")
      center/100% 100% no-repeat;
  }
  .user-center-mobile-vip--active {
    background-image: url("/static/images/account/vip-active.png");
    color: #ffdfab !important;
  }
  .user-center-mobile-vip strong {
    font-size: 16px;
    line-height: 22px;
  }
  .user-center-mobile-vip small {
    display: block;
    font-size: 11px;
    line-height: 18px;
    color: #aaa;
    margin-top: 4px;
  }
  .user-center-mobile-vip [data-mobile-vip-btn] {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 20px;
    color: #342a1b;
    background: linear-gradient(110deg, #f9c99e, #ffe7bf);
    font-size: 12px;
  }
  .account-ads {
    order: 2;
    gap: 8px;
  }
  .account-ads a {
    flex-basis: 56px;
  }
  .account-ads img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }
  .user-center-mobile-menu {
    order: 3;
    display: flex;
    flex-direction: column;
    background: #191919;
    border-radius: 16px;
    overflow: hidden;
  }
  .user-center-mobile-menu a {
    min-height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    font-size: 14px;
  }
  .user-center-mobile-menu span {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #888;
    font-size: 12px;
  }
  .user-center-mobile-menu b {
    font-weight: 400;
  }
  .user-center-mobile-menu i {
    font-size: 22px;
    font-style: normal;
  }
  .user-center-mobile-menu a:nth-child(3) {
    color: #ff5000;
  }
}

.user-center-vip-card--active strong {
  color: #694923;
}
.user-center-vip-card--active [data-vip-expire] {
  color: #ff4b02;
}
.account-vip-mark,
.account-vip-expire {
  display: none;
}
@media (max-width: 767px) {
  .user-center-mobile-vip > div {
    min-width: 0;
    flex: 1;
  }
  .account-vip-heading {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
  }
  .user-center-mobile-vip--active .account-vip-mark {
    display: block;
    width: 25px;
    height: 22px;
    flex-shrink: 0;
    align-self: center;
  }
  .user-center-mobile-vip--active [data-mobile-vip-title] {
    font-size: 16px;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .user-center-mobile-vip--active .account-vip-expire {
    display: inline;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
    color: #d9b789;
  }
  .user-center-mobile-vip--active [data-mobile-vip-desc] {
    color: #d9b789;
    font-size: 12px;
    line-height: 18px;
  }
  .user-center-mobile-vip [data-mobile-vip-btn] {
    box-sizing: border-box;
    width: 77px;
    text-align: center;
    padding: 6px 0;
  }
}

@media (max-width: 767px) {
  .user-center-mobile-vip [data-mobile-vip-btn] {
    position: relative;
    isolation: isolate;
    height: 30px;
    line-height: 18px;
    padding: 6px 5px 6px 0;
    color: #171717;
    background: none;
    border-radius: 0;
    font-size: 12px;
    font-weight: 400;
  }
  .user-center-mobile-vip [data-mobile-vip-btn]::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 5px 0 0;
    background: #f8d9ac;
    border-radius: 15px;
  }
  .user-center-mobile-vip [data-mobile-vip-btn]::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 23px;
    right: 0;
    bottom: -0.5px;
    background: url("/static/images/account/vip-button-mark.png") center/contain
      no-repeat;
    pointer-events: none;
  }
}
