/* ===== PSD 750px layout tokens (1rem = 10px @ design-width 75) ===== */
:root {
  --design-width: 75;
  --page-max-width: 750px;
  --pad-x: 2.8rem;
  --card-gap: 1.7rem;
  --card-radius: 2rem;
  --page-bg: #000000;
  --card-bg: #181f27;
  --card-border: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.42);
  --gold-light: #fde08d;
  --gold-mid: #ffd695;
  --gold-deep: #d4af37;
  --gold-gradient: linear-gradient(90deg, #ebb05e 0%, #fff9d6 100%);
  --gold-gradient-v: linear-gradient(180deg, #fff5d7 0%, #ffd695 100%);
  --gold-icon-gradient: linear-gradient(180deg, #fde08d 0%, #d4af37 100%);
  --tab-inactive-bg: #3a3a40;
  --link-item-bg: #333333;
  --social-btn-bg: #3a3a40;
  --badge-green: #58d68d;
  --badge-green-bg: rgba(88, 214, 141, 0.18);
  --footer-text: rgba(255, 255, 255, 0.5);
  --icon-copy: url("../static/copy.png");
  --hero-bg-h: 64.9rem;
  --hero-bg-w-ratio: 154.133%;
  --hero-bg-offset-x: -28.533%;
  --hero-content-h: 51.3rem;
  --banner-top: 20.4rem;
  --banner-h: 26.3rem;
  --welcome-top: 48.6rem;
  --marquee-duration: 18s;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  font-size: min(calc(100vw / var(--design-width)), 10px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.04rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--page-bg);
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ===== Page Layout ===== */
.page-wrapper {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  background: var(--page-bg);
}

.page {
  width: 100%;
  max-width: var(--page-max-width);
  background: var(--page-bg);
  position: relative;
  overflow: hidden;
}

.page-body {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x) calc(env(safe-area-inset-bottom) + 2rem);
}

.cards {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: var(--hero-content-h);
  width: 100%;
  margin-bottom: 1.8rem;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hero-bg-h);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 78%,
    rgba(0, 0, 0, 0.55) 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 78%,
    rgba(0, 0, 0, 0.55) 90%,
    transparent 100%
  );
}

.hero__bg-img {
  position: absolute;
  top: 0;
  left: var(--hero-bg-offset-x);
  width: var(--hero-bg-w-ratio);
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.nav {
  position: absolute;
  top: 9.5rem;
  left: var(--pad-x);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2.7rem;
}

.nav__logo {
  width: 11.4rem;
  height: 7.5rem;
  object-fit: contain;
}

.nav__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12.4rem;
  height: 3.1rem;
  padding: 0 1.2rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  border: 0.08rem solid rgba(255, 255, 255, 0.12);
  border-radius: 1.6rem;
  white-space: nowrap;
}

.nav__lang b {
  margin-left: 0.5rem;
  font-weight: 600;
}

.hero__banner-wrap {
  position: absolute;
  top: var(--banner-top);
  left: var(--pad-x);
  right: var(--pad-x);
  z-index: 5;
  overflow: hidden;
  border-radius: var(--card-radius);
}

.hero__banner {
  position: relative;
  overflow: hidden;
}

.welcome-marquee {
  position: absolute;
  top: var(--welcome-top);
  left: var(--pad-x);
  right: var(--pad-x);
  z-index: 6;
  overflow: hidden;
  height: 2.7rem;
}

.welcome-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.welcome-marquee--static .welcome-marquee__track {
  animation: none !important;
}

.welcome-marquee__text {
  flex-shrink: 0;
  padding-right: 4rem;
  font-size: 2.7rem;
  line-height: 1;
  color: var(--text-primary);
  white-space: nowrap;
}

@keyframes welcome-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(var(--marquee-end, -50%), 0, 0);
  }
}

.banner-swiper .swiper-slide {
  width: 100%;
}

.banner-slide {
  position: relative;
  height: var(--banner-h);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: url("../static/banner-frame-bg.png") center/100% 100% no-repeat;
}

.banner-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: calc(var(--card-radius) - 0.2rem);
}

.banner-pagination {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 1.6rem !important;
  margin: 0 !important;
  z-index: 3;
}

.banner-pagination .swiper-pagination-bullet {
  width: 1.3rem;
  height: 1.4rem;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  margin: 0 0.35rem !important;
}

.banner-pagination .swiper-pagination-bullet-active {
  background: #f8e192;
}

/* ===== Cards ===== */
.card {
  position: relative;
  z-index: 2;
  background: var(--card-bg);
  border: 0.08rem solid var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
}

.card__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 4.6rem 3.2rem 0;
}

.card__header-icon {
  width: 3.2rem;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.card__header-icon--share {
  width: 2.7rem;
}

.card__header-icon--verify {
  width: 2.6rem;
}

.card__header-icon--link {
  width: 3rem;
  height: 3rem;
}

.card__title {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

/* Stats */
.card--stats {
  min-height: 31.7rem;
}

.stats-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 4.5rem 2rem 3.2rem;
}

.stats-grid__divider {
  width: 0.3rem;
  align-self: center;
  height: 13.2rem;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 2.4rem;
  flex-shrink: 0;
}

.stats-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stats-item__icon {
  width: 5.1rem;
  height: 4rem;
  object-fit: contain;
  margin-bottom: 1.2rem;
}

.stats-item__value {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stats-item__label {
  font-size: 2.6rem;
  line-height: 1.2;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.stats-item__stars {
  color: #f8e192;
  font-size: 1.9rem;
  letter-spacing: 0.12rem;
  line-height: 1;
}

/* Social */
.card--social {
  min-height: 22.2rem;
}

.social-row {
  display: flex;
  gap: 1.3rem;
  padding: 3.9rem 3.1rem 3.1rem;
}

.social-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 7.1rem;
  padding: 0 1rem;
  background: var(--social-btn-bg);
  border-radius: 3.55rem;
  transition: filter 0.2s;
  min-width: 0;
}

.social-link:hover {
  filter: brightness(1.08);
}

.social-link__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-link__text {
  font-size: 2.7rem;
  line-height: 1;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Verify */
.card--verify {
  min-height: 27.3rem;
}

.verify-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 3.3rem 2rem 3.2rem;
}

.verify-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.verify-item__badge {
  width: 6.2rem;
  height: 6.4rem;
  object-fit: contain;
  margin-bottom: 1.6rem;
}

.verify-item__title {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.verify-item__subtitle {
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--text-secondary);
}

/* Bio */
.card--bio {
  min-height: 17.4rem;
  padding: 2.4rem 3.2rem 2.6rem;
}

.bio__text {
  font-size: 2.6rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Links card */
.card--links {
  padding-bottom: 3.1rem;
}

.card--links .card__header {
  padding-bottom: 0;
}

.brand-tabs-viewport--scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 3.1rem;
}

.brand-tabs-viewport--scroll::-webkit-scrollbar {
  display: none;
}

.brand-tabs-viewport:not(.brand-tabs-viewport--scroll) {
  padding: 0 3.1rem;
}

.brand-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 6rem;
  margin-bottom: 2.6rem;
}

.brand-tabs--scroll {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  min-width: 100%;
}

.brand-tabs--scroll .brand-tab {
  flex: 0 0 20.2rem;
}

.brand-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 8.3rem;
  padding-bottom: 1.2rem;
  border-radius: 4.15rem;
  background: var(--tab-inactive-bg);
  transition: background 0.2s, box-shadow 0.2s;
}

.brand-tab--active {
  background: var(--gold-gradient-v);
  box-shadow: 0 0.2rem 0.8rem rgba(235, 176, 94, 0.25);
}

.brand-tab__logo {
  position: absolute;
  top: -3.8rem;
  left: 50%;
  transform: translateX(-50%);
  height: 6.7rem;
  width: auto;
  max-width: 10.5rem;
  object-fit: contain;
}

.brand-tab span {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.brand-tab--active span {
  color: #1a1200;
}

/* Link list */
.link-list {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
  padding: 2.6rem 3.1rem 0;
}

.link-list__empty,
.link-list__loading {
  text-align: center;
  font-size: 2rem;
  color: var(--text-secondary);
  padding: 3rem 1rem;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.4rem 2rem 3rem;
  background: var(--link-item-bg);
  border-radius: 1.6rem;
}

.link-item__thumb {
  width: 10.2rem;
  height: 10.3rem;
  border-radius: 1rem;
  overflow: hidden;
  flex-shrink: 0;
}

.link-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-item__thumb--placeholder {
  background: rgba(255, 255, 255, 0.06);
  border: 0.08rem dashed rgba(255, 255, 255, 0.12);
}

.link-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.6rem;
}

.link-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.link-item__name {
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text-primary);
}

.link-item__url-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.link-item__copy {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background-image: var(--icon-copy);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.55;
}

.link-item__copy:hover {
  opacity: 0.9;
}

.link-item__url {
  font-size: 2.3rem;
  line-height: 1;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.link-item__access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 15.6rem;
  height: 4.6rem;
  padding: 0 1.4rem;
  background: var(--gold-gradient);
  color: #1a1200;
  border-radius: 2.3rem;
  font-size: 1.8rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.link-item__access img {
  width: 2.1rem;
  height: 2rem;
  filter: brightness(0.15);
}

/* Footer */
.footer {
  padding: 2.4rem 0 2rem;
  text-align: center;
}

.footer p {
  font-size: 2rem;
  line-height: 1.5;
  color: var(--footer-text);
}

.footer__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.footer__hint img {
  width: 2rem;
  height: 2rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2.219rem;
  left: 50%;
  transform: translateX(-50%) translateY(5.547rem);
  padding: 0.832rem 1.664rem;
  background: rgba(20, 16, 8, 0.94);
  color: #f8e192;
  border: 0.069rem solid rgba(212, 175, 55, 0.35);
  border-radius: 1.664rem;
  font-size: 0.971rem;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 100;
  white-space: nowrap;
}

.toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 420px) {
  .verify-item__title {
    font-size: 1.8rem;
  }

  .verify-item__subtitle {
    font-size: 1.4rem;
  }

  .link-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .link-item__access {
    margin-left: auto;
  }
}

@media (min-width: 751px) {
  html {
    font-size: 10px;
  }
}
