/* VELLAZA mobile homepage – 首页设计01 + static slices */
:root {
  --max-w: 432px;
  --bg: #08041a;
  --bg-card: #12082a;
  --pink: #ff2d7a;
  --pink-dark: #c41d6a;
  --gold: #f5c842;
  --text: #fff;
  --text-muted: #9a8bb8;
  --hot-red: #e6003c;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: #030108;
  color: var(--text);
  line-height: 1.4;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.app {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 35% at 50% 0%, rgba(100, 40, 160, 0.28), transparent 55%),
    linear-gradient(180deg, #1a0a32 0%, #0d0520 40%, #080412 100%);
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

/* Header */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 14px 6px;
}

.header__word {
  justify-self: start;
  width: auto;
  height: 18px;
}

.header__mark {
  justify-self: center;
  width: 32px;
  height: auto;
}

.header__lang {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: 600 11px/1 var(--font);
  cursor: pointer;
}

.header__flag {
  border-radius: 2px;
}

/* Banner */
.banner {
  padding: 0 10px 10px;
}

.banner__img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

/* Quick nav */
.quick-nav {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  margin: 0 10px 14px;
  padding: 12px 6px;
  border-radius: 14px;
  border: 1px solid rgba(140, 80, 200, 0.22);
  background: linear-gradient(180deg, rgba(28, 14, 58, 0.92), rgba(14, 7, 32, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.quick-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--text-muted);
  font: 600 9px/1.15 var(--font);
  text-align: center;
}

.quick-nav__item img {
  width: 46px;
  height: 46px;
}

/* Heroes */
.heroes {
  padding: 0 10px 18px;
}

.heroes__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.heroes__title {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.heroes__star {
  width: 14px;
  height: auto;
  flex-shrink: 0;
}

.heroes__title-img {
  width: auto;
  height: 18px;
  max-width: 100%;
}

.heroes__more {
  flex-shrink: 0;
  font: 600 11px/1 var(--font);
  color: var(--text-muted);
}

.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

.podium__item {
  flex: 1;
  max-width: 33%;
}

.podium__item--gold {
  flex: 1.18;
  z-index: 2;
  margin-bottom: -6px;
}

.podium__frame {
  position: relative;
}

.podium__frame-img {
  width: 100%;
  height: auto;
}

.podium__avatar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  object-fit: cover;
  background: #111;
}

.podium__item--gold .podium__avatar {
  top: 18%;
  width: 34%;
  height: auto;
  aspect-ratio: 1;
}

.podium__item--silver .podium__avatar,
.podium__item--bronze .podium__avatar {
  top: 16%;
  width: 36%;
  height: auto;
  aspect-ratio: 1;
}

.podium__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  text-align: center;
  padding: 0 4px;
}

.podium__name {
  font: 700 10px/1.2 var(--font);
  margin-bottom: 2px;
}

.podium__prize {
  font: 800 11px/1.2 var(--font);
}

.podium__prize--gold { color: var(--gold); }
.podium__prize--blue { color: #4fc3f7; }
.podium__prize--red { color: #ff5252; }

/* Prizes */
.prizes {
  padding: 0 8px 18px;
}

.prizes__heading {
  text-align: center;
  margin-bottom: 8px;
}

.prizes__heading img {
  display: inline-block;
  width: auto;
  height: 22px;
}

.prizes__row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
}

.prize {
  flex: 1;
  text-align: center;
}

.prize--main {
  flex: 1.55;
  z-index: 2;
}

.prize__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 88px;
}

.prize--main .prize__visual {
  min-height: 120px;
}

.prize__stage {
  width: 100%;
  height: auto;
}

.prize__stage--main {
  width: 115%;
  max-width: none;
  margin: 0 -8%;
}

.prize__product {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}

.prize--side .prize__product {
  bottom: 28%;
  width: 58%;
}

.prize--main .prize__product--main {
  bottom: 34%;
  width: 42%;
}

.prize__name {
  margin-top: 4px;
  font: 700 9px/1.2 var(--font);
}

.prize__value {
  font: 600 8px/1.2 var(--font);
  color: var(--gold);
}

/* Hot items */
.hot {
  padding: 0 10px 12px;
}

.hot__bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, #e6003c, #c40030);
}

.hot__bar-main {
  flex: 1;
  min-width: 0;
}

.hot__title-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hot__title-img {
  width: auto;
  height: 22px;
}

.hot__tagline {
  display: flex;
  align-items: center;
  gap: 4px;
  font: 600 9px/1.2 var(--font);
  color: rgba(255, 255, 255, 0.95);
}

.hot__tagline img {
  width: 12px;
  height: auto;
  flex-shrink: 0;
}

.hot__bar-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
}

.hot__timer {
  display: flex;
  align-items: center;
  gap: 4px;
  font: 800 16px/1 var(--font);
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

.hot__timer img {
  width: 18px;
  height: auto;
}

.hot__more {
  font: 700 10px/1 var(--font);
  color: rgba(255, 255, 255, 0.95);
}

/* Product card */
.product {
  display: flex;
  background: #fff;
  border: 2px solid rgba(255, 45, 122, 0.35);
  border-top: none;
  color: #1a1a1a;
}

.product:first-of-type {
  border-top: 2px solid rgba(255, 45, 122, 0.35);
}

.product:last-of-type {
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.product__thumb {
  flex: 0 0 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  background: #fafafa;
  border-right: 1px solid #f0e0e8;
}

.product__thumb img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.product__thumb--crop {
  padding: 0;
  overflow: hidden;
}

.product__thumb--crop img {
  width: 220%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.product__body {
  flex: 1;
  min-width: 0;
  padding: 8px 8px 8px 6px;
}

.product__name {
  font: 700 11px/1.25 var(--font);
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product__price {
  margin-bottom: 5px;
  font-size: 11px;
}

.product__price strong {
  font: 800 16px/1 var(--font);
  color: var(--pink);
  margin-right: 6px;
}

.product__price s {
  color: #999;
  font-size: 11px;
}

.product__bonus {
  position: relative;
  background: #eceff1;
  border-radius: 8px;
  padding: 7px;
  min-height: 68px;
}

.product__bonus-tip {
  font: 700 9px/1 var(--font);
  margin-bottom: 1px;
}

.product__bonus-main {
  font: 600 10px/1.2 var(--font);
  margin-bottom: 5px;
}

.product__bonus-main em {
  font: 800 12px/1 var(--font);
  font-style: normal;
  color: var(--pink);
}

.product__progress {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 45, 122, 0.18);
  overflow: hidden;
  margin-bottom: 3px;
}

.product__progress i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pink), var(--pink-dark));
}

.product__meta {
  font: 500 8px/1.2 var(--font);
  color: #666;
  padding-right: 68px;
}

.product__meta b {
  color: var(--pink);
  font-weight: 700;
}

.product__btn {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 7px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ff4d9a, #e91e8c);
  color: #fff;
  font: 700 10px/1 var(--font);
  box-shadow: 0 3px 10px rgba(233, 30, 140, 0.35);
}

/* Tabbar */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(14, 7, 30, 0.98), rgba(8, 4, 18, 1));
  border-top: 1px solid rgba(140, 80, 200, 0.18);
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.45);
  z-index: 100;
}

.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 2px;
  color: var(--text-muted);
  font: 600 9px/1 var(--font);
}

.tabbar__item img {
  width: 22px;
  height: auto;
  opacity: 0.65;
}

.tabbar__item--active {
  color: var(--pink);
}

.tabbar__item--active img {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(255, 45, 122, 0.65));
}

.tabbar__fab {
  position: relative;
  flex: 0 0 72px;
  height: 58px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabbar__glow {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: auto;
  pointer-events: none;
}

.tabbar__fab-bg,
.tabbar__fab-btn,
.tabbar__fab-v {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.tabbar__fab-bg {
  width: 58px;
}

.tabbar__fab-btn {
  width: 50px;
}

.tabbar__fab-v {
  width: 28px;
}

@media (min-width: 433px) {
  .app {
    box-shadow: 0 0 48px rgba(80, 40, 140, 0.18);
  }
}
