:root {
  --zq-bg: #16112b;
  --zq-bg-deep: #100d20;
  --zq-panel: rgba(38, 24, 67, 0.93);
  --zq-panel-strong: rgba(60, 38, 96, 0.96);
  --zq-panel-soft: rgba(45, 34, 43, 0.92);
  --zq-border: #a87e6b;
  --zq-gold: #ffdf9c;
  --zq-gold-strong: #f8cb5c;
  --zq-gold-dark: #673700;
  --zq-muted: rgba(255, 223, 156, 0.72);
  --zq-text: #fff;
  --zq-danger: #ef5350;
  --zq-radius: 8px;
}

html.zq-page,
html.zq-page body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--zq-bg);
}

.zq-page #wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  overflow-x: clip;
}

.zq-page #ai-navigation-container {
  height: 0;
}

.zq-page #body {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(22, 17, 43, 0.9) 0%, rgba(62, 44, 87, 0.82) 100%),
    url("/usr/themes/Mirages/images/zhongqiu/web/page-background.png") center bottom / 1920px auto no-repeat,
    var(--zq-bg);
}

@supports (background-image: image-set(url("image.webp") type("image/webp"))) {
  .zq-page #body {
    background:
      linear-gradient(180deg, rgba(22, 17, 43, 0.9) 0%, rgba(62, 44, 87, 0.82) 100%),
      image-set(
          url("/usr/themes/Mirages/images/zhongqiu/web/page-background.webp") type("image/webp"),
          url("/usr/themes/Mirages/images/zhongqiu/web/page-background.png") type("image/png")
        )
        center bottom / 1920px auto no-repeat,
      var(--zq-bg);
  }
}

.zq-page #body-bottom {
  display: none;
}

@media (min-width: 768px) {
  .zq-page #body {
    padding-top: 7.75rem;
  }
}

@media (min-width: 1700px) {
  .zq-page #body {
    padding-top: 5rem;
  }
}

.zq-hero {
  width: 100%;
  background: #071d3a;
  overflow: hidden;
  line-height: 0;
}

.zq-hero-link,
.zq-hero picture,
.zq-hero img {
  display: block;
  width: 100%;
}

.zq-hero img {
  height: auto;
}

.zq-container {
  width: min(1072px, calc(100% - 32px)) !important;
  max-width: 1072px !important;
  padding: 42px 0 100px !important;
}

.zq-top-area {
  position: relative;
  min-height: 244px;
  margin-top: 62px;
  margin-bottom: 20px;
  overflow: visible;
  /* border: 2px solid var(--zq-border); */
  border-radius: var(--zq-radius);
  background: url("/usr/themes/Mirages/images/zhongqiu/web/countdown-panel.png") center / cover no-repeat;
}

.zq-top-area .zq-countdown {
  margin: 0;
  padding: 28px 32px 18px;
  border: 0;
  border-radius: 0;
  text-align: center;
  background: transparent;
}

.zq-countdown .zq-section-title {
  margin-bottom: 28px;
  font-size: 22px;
  text-align: center;
}

.zq-countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.zq-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 104px;
  height: auto;
  padding: 0;
  background: url("/usr/themes/Mirages/images/zhongqiu/h5/countdown.png") center top / 104px 104px no-repeat;
  color: var(--zq-gold);
}

.zq-countdown-num {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: #f9ce7b;
  background: linear-gradient(0deg, #f9ce7b -15.91%, #ffffff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(249, 206, 123, 0.45);
}

.zq-countdown-unit small {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  color: #f9ce7b;
  background: linear-gradient(0deg, #f9ce7b -15.91%, #ffffff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.zq-countdown-sep {
  align-self: flex-start;
  margin-top: 35px;
  font-size: 32px;
  color: var(--zq-gold);
}

.zq-win-ticker {
  position: absolute;
  right: 0;
  bottom: calc(100% + 20px);
  left: 0;
  height: 42px;
  border: 2px solid var(--zq-border);
  border-radius: 6px;
  background: rgba(13, 10, 25, 0.74);
}

.zq-win-ticker-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.zq-win-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  animation: zq-ticker 32s linear infinite;
}

.zq-win-ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 310px;
  padding: 0 18px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.78);
}

.zq-win-ticker-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.zq-win-ticker-text .highlight {
  color: var(--zq-gold-strong);
}

@keyframes zq-ticker {
  to {
    transform: translateX(-50%);
  }
}

.zq-app-only {
  position: relative;
  min-height: 244px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 2px solid var(--zq-border);
  border-radius: var(--zq-radius);
}

.zq-app-only__background {
  position: absolute;
  inset: 0;
}

.zq-app-only__background,
.zq-app-only__background img {
  display: block;
  width: 100%;
  height: 100%;
}

.zq-app-only__background img {
  object-fit: cover;
  object-position: center;
}

.zq-app-only__content {
  position: absolute;
  top: 30px;
  left: 30px;
  width: min(704px, calc(100% - 60px));
}

.zq-app-only__title {
  margin: 0;
  color: var(--zq-gold);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.zq-app-only__desc {
  max-width: 704px;
  margin: 24px 0 0;
  color: var(--zq-muted);
  font-size: 20px;
  line-height: 1.45;
}

.zq-app-only__link {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(400px, calc(100% - 164px));
  height: 52px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff4af 0%, #f5b923 100%);
  box-shadow: inset 0 0 0 2px #fff7c6;
  color: var(--zq-gold-dark) !important;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none !important;
}

.zq-section {
  position: relative;
  margin-bottom: 20px;
  padding: 30px 34px;
  overflow: hidden;
  border: 2px solid var(--zq-border);
  border-radius: var(--zq-radius);
  /* background: linear-gradient(180deg, var(--zq-panel) 0%, var(--zq-panel-strong) 100%); */
  color: var(--zq-text);
}

.zq-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.zq-section-title,
.zq-sub-title,
.zq-lottery-block-title {
  margin: 0;
  color: var(--zq-gold);
  font-weight: 800;
  letter-spacing: 0;
}

.zq-section-title {
  font-size: 30px;
  line-height: 1.35;
}

.zq-section-title span {
  color: var(--zq-gold-strong);
}

.zq-section-sub {
  margin: 12px 0 0;
  color: var(--zq-muted);
  font-size: 18px;
  line-height: 1.55;
}

.zq-date-tag {
  flex: none;
  padding-top: 7px;
  color: #ef5350;
  font-size: 15px;
}

.zq-sub-title {
  margin: 22px 0 16px;
  font-size: 24px;
}

.zq-coin-grid,
.zq-vip-grid,
.zq-pay-methods {
  display: flex;
  gap: 16px;
  width: 100%;
}

.zq-coin-grid {
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--zq-gold-strong) transparent;
}

.zq-coin-card {
  position: relative;
  flex: 0 0 150px;
  height: 140px;
  padding: 25px 10px 8px;
  cursor: pointer;
  text-align: center;
  background: url("/usr/themes/Mirages/images/zhongqiu/web/coin-card.png") center / 100% 100% no-repeat;
}

.zq-coin-card.active {
  background-image: url("/usr/themes/Mirages/images/zhongqiu/web/coin-card-active.png");
}

.zq-coin-card .price {
  color: #522b14;
  font-size: 34px;
  font-weight: 800;
}

.zq-coin-card.active .price {
  color: #fdff9c;
}

.zq-coin-card .coins {
  margin-top: 2px;
  color: #9d552c;
  font-size: 20px;
}

.zq-coin-card.active .coins {
  color: var(--zq-gold);
}

.zq-coin-card .bonus {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  color: rgba(219, 21, 21, 0.72);
  font-size: 16px;
}

.zq-coin-card.active .bonus {
  color: rgba(255, 255, 255, 0.74);
}

.zq-vip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.zq-vip-card {
  position: relative;
  box-sizing: border-box;
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 100%;
  min-height: 142px;
  padding: 24px 18px 18px 135px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(101.63deg, #4c2f2b 4.12%, #332424 52.06%, #281e22 100%);
}

.zq-vip-card::before {
  position: absolute;
  top: 10px;
  left: 8px;
  width: 120px;
  height: 120px;
  background: url("/usr/themes/Mirages/images/zhongqiu/web/vip-month.png") center / contain no-repeat;
  content: "";
}

.zq-vip-card--quarter {
  background: linear-gradient(101.63deg, #352b4c 4.12%, #2a2433 52.06%, #211e28 100%);
}

.zq-vip-card--quarter::before {
  background-image: url("/usr/themes/Mirages/images/zhongqiu/web/vip-quarter.png");
}

.zq-vip-card--lifetime {
  background: linear-gradient(101.63deg, #551209 4.12%, #440707 52.06%, #320303 100%);
}

.zq-vip-card--lifetime::before {
  background-image: url("/usr/themes/Mirages/images/zhongqiu/web/vip-lifetime.png");
}

.zq-vip-card.active {
  border-color: #f6a244;
}

.zq-vip-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.zq-vip-card.is-disabled::after {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  background: rgba(0, 0, 0, 0.42);
  content: "暂不可用";
}

.zq-vip-card .name {
  color: var(--zq-gold);
  font-size: 25px;
  font-weight: 700;
  white-space: nowrap;
}

.zq-vip-card .price {
  margin-top: 5px;
  color: #FFDF9C;
  font-size: 19px;
}

.zq-vip-card .bonus {
  margin-top: 8px;
  color: #f49a34;
  font-size: 16px;
}

.zq-pay-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zq-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 936 / 429;
  min-height: 0;
  padding: 16px;
  border: 0;
  border-radius: 8px;
  color: var(--zq-gold-dark);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  background: url("/usr/themes/Mirages/images/zhongqiu/web/payment-active.png") center / 100% 100% no-repeat;
}

.zq-pay-btn.active {
  color: #fff;
  background-image: url("/usr/themes/Mirages/images/zhongqiu/web/payment.png");
}

.zq-pay-icon {
  width: 48px;
  height: 48px;
  margin-right: 12px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(22%) sepia(81%) saturate(1353%) hue-rotate(7deg) brightness(83%) contrast(105%);
}

.zq-pay-btn.active .zq-pay-icon {
  filter: brightness(0) invert(1);
}

.zq-pay-icon--agent {
  filter: none;
}

.zq-pay-icon--agent-active {
  display: none;
}

.zq-pay-btn.active .zq-pay-icon--agent-default {
  display: none;
}

.zq-pay-btn.active .zq-pay-icon--agent-active {
  display: block;
  filter: none;
}

.zq-btn-primary,
.zq-pay-modal__btn,
.zq-share-modal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(600px, 100%);
  min-height: 52px;
  margin: 28px auto 0;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  color: var(--zq-gold-dark) !important;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  background: linear-gradient(180deg, #fff4af 0%, #f5b923 100%);
  box-shadow: inset 0 0 0 2px #fff7c6;
}

.zq-btn-primary:disabled,
.zq-pay-modal__btn:disabled,
.zq-share-modal__btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.zq-btn-secondary,
.zq-tab {
  min-width: 150px;
  min-height: 48px;
  padding: 8px 24px;
  border: 1px solid var(--zq-gold-strong);
  border-radius: 8px;
  color: var(--zq-gold);
  font-size: 18px;
  cursor: pointer;
  background: #2c2a2a;
}

.zq-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.zq-tab.active {
  color: var(--zq-gold-dark);
  background: linear-gradient(180deg, #fff4af, #f5b923);
}

.zq-tab-panel {
  display: none;
}

.zq-tab-panel.active {
  display: block;
}

.zq-share-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.zq-share-card {
  position: relative;
  min-height: 316px;
  padding: 180px 24px 24px;
  overflow: hidden;
  border: 2px solid var(--zq-border);
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(180deg, #2d222b, #261f2b);
}

.zq-share-card-img {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 160px;
  height: 160px;
  transform: translateX(-50%);
  object-fit: contain;
}

.zq-share-card-title {
  margin: 0 0 10px;
  color: var(--zq-gold);
  font-size: 28px;
}

.zq-share-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 17px;
  line-height: 1.65;
}

.zq-share-tip {
  margin: 20px auto 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

.zq-comment-rules {
  color: var(--zq-muted);
  font-size: 18px;
  line-height: 1.8;
}

.zq-comment-rules ol {
  counter-reset: zq-comment-rule;
  margin: 0;
  padding-left: 0;
}

.zq-comment-rules li {
  counter-increment: zq-comment-rule;
  list-style: none;
}

.zq-comment-rules li::before {
  content: counter(zq-comment-rule) "、";
}

.zq-comment-decoration {
  position: absolute;
  right: 4px;
  bottom: 8px;
  width: 180px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.zq-section--comment .zq-btn-primary {
  position: relative;
  z-index: 1;
}

.zq-share-records {
  padding-top: 32px;
  overflow: hidden;
  border: 2px solid var(--zq-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(45, 34, 43, 0.96), rgba(30, 24, 36, 0.96));
}

.zq-share-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 48px 32px;
}

.zq-share-stat-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 624 / 132;
  min-height: 0;
  padding: 10px 8px;
  border: 0;
  border-radius: 8px;
  color: var(--zq-gold);
  font-size: 16px;
  text-align: center;
  background: url("/usr/themes/Mirages/images/zhongqiu/web/button-small.png") center / 100% 100% no-repeat;
}

.zq-share-stat-card span {
  color: var(--zq-gold-strong);
  font-weight: 700;
}

.zq-share-records-table-wrap {
  overflow-x: auto;
  background: rgba(13, 10, 22, 0.28);
}

.zq-share-records-table {
  min-width: 900px;
}

.zq-share-records-head,
.zq-share-records-row {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr 1.15fr 1.2fr;
  align-items: center;
  min-height: 68px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(168, 126, 107, 0.35);
}

.zq-share-records-head {
  min-height: 64px;
  color: var(--zq-gold);
  font-weight: 700;
  background: rgba(10, 8, 21, 0.48);
}

.zq-share-records-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zq-share-records-user img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.zq-share-records-reward {
  color: #8ddc9f;
}

.zq-share-records-reward.is-pending,
.zq-share-records-status.is-inactive {
  color: #ff4d4f;
}

.zq-share-records-status.is-active {
  color: #fff;
}

@media (min-width: 768px) {
  .zq-share-records-head,
  .zq-share-records-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .zq-share-records-head {
    font-size: 20px;
    text-align: center;
  }

  .zq-share-records-head > [role="columnheader"],
  .zq-share-records-row > [role="cell"] {
    width: 100%;
    justify-self: center;
    text-align: center;
  }

  .zq-share-records-user {
    justify-content: center;
  }
}

.zq-lottery-section {
  min-height: 826px;
}

.zq-lottery {
  display: grid;
  grid-template-columns: 416px 1fr;
  gap: 42px;
}

.zq-lucky-bag {
  text-align: center;
}

.zq-lucky-bag-img {
  display: block;
  width: 416px;
  max-width: 100%;
  height: 284px;
  margin: 0 auto;
  object-fit: contain;
}

.zq-lucky-bag-remain {
  margin: 12px 0 0;
  color: var(--zq-gold);
  font-size: 26px;
  font-weight: 700;
}

.zq-prize-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.zq-prize-item:nth-child(-n + 2) {
  grid-column: span 3;
}

.zq-prize-item:nth-child(n + 3) {
  grid-column: span 2;
  flex-direction: column;
  justify-content: center;
}

.zq-prize-item {
  display: flex;
  align-items: center;
  min-height: 136px;
  padding: 12px;
  border: 2px solid var(--zq-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #2d222b, #261f2b);
}

.zq-prize-item-img {
  flex: none;
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.zq-prize-item-label {
  flex: 1;
  color: #fff;
  font-size: 18px;
  line-height: 1.45;
  text-align: center;
}

.zq-lottery-block-title {
  margin: 0 0 18px;
  font-size: 26px;
  text-align: center;
}

.zq-lottery-block--rules {
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 24px 28px;
  border: 2px solid var(--zq-border);
  border-radius: 16px;
  background: linear-gradient(180deg, #2d222b, #261f2b);
}

.zq-lottery-block--rules .zq-lottery-block-title {
  text-align: left;
}

.zq-lottery-rules {
  margin: 0;
  padding-left: 24px;
  list-style: decimal;
  color: var(--zq-muted);
  font-size: 17px;
  line-height: 1.8;
}

.zq-tip {
  margin: 24px 0 0;
  color: var(--zq-gold);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

.zq-tip-line {
  display: inline;
}

.zq-empty-tip {
  width: 100%;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.zq-pay-modal,
.zq-share-modal,
.zq-draw-result-modal,
.zq-logs-modal {
  position: fixed;
  inset: 0;
  z-index: 10010;
}

.zq-pay-modal[hidden],
.zq-share-modal[hidden],
.zq-draw-result-modal[hidden],
.zq-logs-modal[hidden] {
  display: none;
}

.zq-pay-modal__overlay,
.zq-share-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.zq-pay-modal__wrap,
.zq-share-modal__wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 28px;
}

.zq-pay-modal__close,
.zq-share-modal__close {
  position: absolute;
  top: max(24px, env(safe-area-inset-top));
  left: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  cursor: pointer;
  transform: translateX(-50%);
  background: transparent;
}

.zq-pay-modal__close img,
.zq-share-modal__close img {
  display: block;
  width: 100%;
  height: 100%;
}

.zq-pay-modal__panel,
.zq-share-modal__panel {
  position: relative;
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);
  padding: 70px 54px 48px;
  overflow: hidden;
  border: 2px solid var(--zq-border);
  border-radius: 12px;
  text-align: center;
  background: linear-gradient(180deg, #241643, #3c2660);
  color: #fff;
}

.zq-pay-modal__icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.zq-pay-modal__title,
.zq-share-modal__title {
  margin: 18px 0 14px;
  color: var(--zq-gold);
  font-size: 30px;
}

.zq-pay-modal__desc,
.zq-share-modal__desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.7;
}

.zq-share-modal__qr-wrap {
  width: 190px;
  height: 190px;
  margin: 20px auto;
  padding: 10px;
  border-radius: 6px;
  background: #fff;
}

.zq-share-modal__qr {
  width: 170px;
  height: 170px;
}

.zq-share-modal__qr canvas,
.zq-share-modal__qr img,
.zq-share-modal__qr table {
  display: block;
  width: 170px;
  height: 170px;
}

.zq-share-modal__link {
  padding: 12px;
  overflow-wrap: anywhere;
  border-radius: 6px;
  color: var(--zq-gold);
  background: rgba(0, 0, 0, 0.24);
}

.zq-share-modal__actions {
  display: flex;
  gap: 12px;
}

.zq-share-modal__btn {
  margin-top: 18px;
  font-size: 18px;
}

.zq-logs-list {
  display: grid;
  gap: 12px;
  text-align: left;
}

.zq-logs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.zq-logs-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.zq-logs-name,
.zq-logs-time {
  margin: 0;
}

.zq-logs-time {
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 1100px) {
  .zq-container {
    width: min(920px, calc(100% - 28px)) !important;
  }

  .zq-vip-card {
    padding-left: 110px;
  }

  .zq-vip-card::before {
    width: 96px;
    height: 96px;
  }

  .zq-comment-decoration {
    width: 150px;
  }
}

@media (max-width: 767px) {
  .zq-page #body {
    padding-top: 5.5rem;
    background:
      linear-gradient(180deg, rgba(22, 17, 43, 0.86), rgba(62, 44, 87, 0.82)),
      url("/usr/themes/Mirages/images/zhongqiu/h5/page-background.png") center bottom / 100% auto no-repeat,
      var(--zq-bg);
  }

  @supports (background-image: image-set(url("image.webp") type("image/webp"))) {
    .zq-page #body {
      background:
        linear-gradient(180deg, rgba(22, 17, 43, 0.86), rgba(62, 44, 87, 0.82)),
        image-set(
            url("/usr/themes/Mirages/images/zhongqiu/h5/page-background.webp") type("image/webp"),
            url("/usr/themes/Mirages/images/zhongqiu/h5/page-background.png") type("image/png")
          )
          center bottom / 100% auto no-repeat,
        var(--zq-bg);
    }
  }

  .zq-hero img {
    width: 100%;
  }

  .zq-container {
    width: 100% !important;
    padding: 14px 16px 66px !important;
  }

  .zq-top-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    margin-top: 0;
    margin-bottom: 12px;
    overflow: visible;
    background: none;
  }

  .zq-top-area .zq-countdown {
    order: 2;
    min-height: 176px;
    padding: 18px 8px 8px;
    overflow: hidden;
    border: 2px solid var(--zq-border);
    border-radius: var(--zq-radius);
    box-sizing: border-box;
    background: url("/usr/themes/Mirages/images/zhongqiu/h5/countdown-panel.png") center / cover no-repeat;
  }

  .zq-countdown .zq-section-title {
    margin-bottom: 12px;
    font-size: 17px;
  }

  .zq-countdown-timer {
    gap: 2px;
  }

  .zq-countdown-unit {
    width: 72px;
    height: auto;
    padding: 0;
    background-size: 72px 72px;
  }

  .zq-countdown-num {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }

  .zq-countdown-unit small {
    margin-top: 5px;
    font-size: 20px;
  }

  .zq-countdown-sep {
    margin-top: 25px;
    font-size: 22px;
  }

  .zq-win-ticker {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    order: 1;
    width: 100%;
    height: 32px;
    border: 2px solid var(--zq-border);
  }

  .zq-win-ticker-item {
    min-width: 250px;
    padding: 0 10px;
    font-size: 12px;
  }

  .zq-win-ticker-avatar {
    width: 22px;
    height: 22px;
  }

  .zq-app-only {
    min-height: 147px;
    margin-bottom: 12px;
  }

  .zq-app-only__content {
    top: 15px;
    left: 16px;
    width: calc(100% - 32px);
  }

  .zq-app-only__title {
    font-size: 18px;
  }

  .zq-app-only__desc {
    max-width: 250px;
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.45;
  }

  .zq-app-only__link {
    bottom: 10px;
    width: min(360px, calc(100% - 32px));
    height: 28px;
    font-size: 14px;
  }

  .zq-section {
    margin-bottom: 12px;
    padding: 20px 16px;
  }

  .zq-section-head {
    display: block;
    margin-bottom: 18px;
  }

  .zq-section-title {
    font-size: 21px;
  }

  .zq-section-sub {
    margin-top: 8px;
    font-size: 14px;
  }

  .zq-date-tag {
    display: block;
    margin-top: 8px;
    font-size: 12px;
  }

  .zq-sub-title {
    margin: 18px 0 12px;
    font-size: 18px;
  }

  .zq-coin-grid,
  .zq-vip-grid,
  .zq-pay-methods {
    gap: 10px;
  }

  .zq-coin-card {
    flex-basis: 126px;
    height: 118px;
    padding-top: 26px;
    background-image: url("/usr/themes/Mirages/images/zhongqiu/h5/coin-card-active.png");
  }

  .zq-coin-card.active {
    background-image: url("/usr/themes/Mirages/images/zhongqiu/h5/coin-card.png");
  }

  .zq-coin-card .price {
    font-size: 23px;
  }

  .zq-coin-card .coins {
    margin-top: 6px;
    font-size: 14px;
  }

  .zq-coin-card .bonus {
    bottom: 8px;
    font-size: 13px;
  }

  .zq-vip-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .zq-vip-card {
    flex: 0 0 140px;
    min-width: 140px;
    min-height: 140px;
    padding: 84px 8px 10px;
    text-align: center;
  }

  .zq-vip-card::before {
    top: 4px;
    left: 50%;
    width: 82px;
    height: 82px;
    transform: translateX(-50%);
  }

  .zq-vip-card .name {
    font-size: 18px;
  }

  .zq-vip-card .price,
  .zq-vip-card .bonus {
    font-size: 13px;
  }

  .zq-pay-methods {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    overflow-x: auto;
  }

  .zq-pay-btn {
    aspect-ratio: 606 / 276;
    min-height: 0;
    padding: 4px;
    font-size: 14px;
    background-image: url("/usr/themes/Mirages/images/zhongqiu/h5/payment-active.png");
  }

  .zq-pay-btn.active {
    background-image: url("/usr/themes/Mirages/images/zhongqiu/h5/payment.png");
  }

  .zq-pay-icon {
    width: 26px;
    height: 26px;
    margin-right: 4px;
  }

  .zq-btn-primary {
    min-height: 44px;
    margin-top: 20px;
    font-size: 17px;
  }

  .zq-tabs {
    gap: 10px;
  }

  .zq-tab,
  .zq-btn-secondary {
    min-width: 0;
    min-height: 42px;
    padding: 6px 18px;
    font-size: 15px;
  }

  .zq-tab.active {
    background: linear-gradient(180deg, #fff4af, #f5b923);
  }

  .zq-share-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .zq-share-card {
    min-height: 186px;
    padding: 72px 8px 10px;
    border-width: 1px;
    border-radius: 8px;
  }

  .zq-share-card-img {
    top: 4px;
    width: 72px;
    height: 72px;
  }

  .zq-share-card-title {
    margin-bottom: 4px;
    font-size: 16px;
    white-space: nowrap;
  }

  .zq-share-card p {
    font-size: 11px;
    line-height: 1.45;
  }

  .zq-comment-rules {
    font-size: 14px;
  }

  .zq-comment-rules {
    position: relative;
  }

  .zq-comment-decoration {
    top: -14px;
    right: 0;
    bottom: auto;
    width: min(112px, 25vw);
  }

  .zq-share-tip {
    margin-top: 14px;
    font-size: 14px;
  }

  .zq-share-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0 10px 14px;
  }

  .zq-share-stat-card {
    aspect-ratio: auto;
    min-height: 24px;
    padding: 6px 3px;
    border-radius: 4px;
    font-size: 9px;
    line-height: 1.25;
    word-break: keep-all;
    background-image: url("/usr/themes/Mirages/images/zhongqiu/h5/button-small.png");
  }

  .zq-share-records {
    padding-top: 14px;
    border-radius: 8px;
  }

  .zq-share-records-table-wrap {
    overflow-x: hidden;
  }

  .zq-share-records-table {
    width: 100%;
    min-width: 0;
  }

  .zq-share-records-head,
  .zq-share-records-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 56px;
    padding: 6px 4px;
    font-size: 10px;
    text-align: center;
  }

  .zq-share-records-head {
    min-height: 44px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 11px;
  }

  .zq-share-records-head > [role="columnheader"],
  .zq-share-records-row > [role="cell"] {
    min-width: 0;
    width: 100%;
    justify-self: stretch;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .zq-share-records-user {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }

  .zq-share-records-user img {
    width: 20px;
    height: 20px;
  }

  .zq-lottery-section {
    min-height: 0;
  }

  .zq-lottery {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .zq-lucky-bag-img {
    width: 100%;
    height: auto;
  }

  .zq-lucky-bag-remain {
    margin-top: 6px;
    font-size: 18px;
    line-height: 1.4;
  }

  .zq-prize-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

  .zq-prize-item:nth-child(-n + 2) {
    grid-column: span 3;
  }

  .zq-prize-item:nth-child(n + 3) {
    grid-column: span 2;
    flex-direction: column;
    min-height: 84px;
    padding: 4px;
  }

  .zq-prize-item {
    min-height: 90px;
    padding: 6px;
    border-width: 1px;
    border-radius: 8px;
  }

  .zq-prize-item-img {
    width: 60px;
    height: 60px;
  }

  .zq-prize-item-label {
    font-size: 12px;
  }

  .zq-prize-item:nth-child(n + 3) .zq-prize-item-img {
    width: 48px;
    height: 48px;
  }

  .zq-prize-item:nth-child(n + 3) .zq-prize-item-label {
    font-size: 10px;
    white-space: nowrap;
  }

  .zq-lottery-block-title {
    font-size: 20px;
  }

  .zq-lottery-block--rules {
    margin-top: 0;
    padding: 18px;
  }

  .zq-lottery-rules {
    font-size: 13px;
  }

  .zq-tip {
    font-size: 12px;
  }

  .zq-tip-line {
    display: block;
  }

  .zq-pay-modal__wrap,
  .zq-share-modal__wrap {
    padding: 68px 16px 20px;
  }

  .zq-pay-modal__close,
  .zq-share-modal__close {
    width: 36px;
    height: 36px;
  }

  .zq-pay-modal__panel,
  .zq-share-modal__panel {
    max-height: calc(100vh - 92px);
    padding: 46px 22px 28px;
  }

  .zq-pay-modal__title,
  .zq-share-modal__title {
    font-size: 24px;
  }

  .zq-share-modal__actions {
    flex-direction: column;
    gap: 0;
  }
}

/* These asset-backed dialogs are separate from the shared lottery dialogs. */
.zq-payment-success,
.zq-share-modal {
  overflow: hidden;
  overscroll-behavior: contain;
}

.zq-payment-success .zq-pay-modal__overlay,
.zq-share-modal__overlay {
  position: fixed;
}

.zq-payment-success .zq-pay-modal__wrap,
.zq-share-modal__wrap {
  flex-direction: column;
  gap: 26px;
  height: auto;
  min-height: 100%;
  padding: 24px 16px;
  pointer-events: none;
}

.zq-payment-success .zq-pay-modal__close,
.zq-share-modal__close {
  position: static;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  transform: none;
  pointer-events: auto;
}

.zq-payment-success .zq-pay-modal__panel,
.zq-share-modal__panel {
  flex: 0 0 auto;
  width: min(660px, 100%);
  max-height: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: #703900;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  pointer-events: auto;
}

.zq-payment-success .zq-pay-modal__panel {
  width: min(660px, calc(100vw - 32px), calc((100vh - 132px) * 1800 / 1922));
  aspect-ratio: 1800 / 1922;
  background: url("/usr/themes/Mirages/images/zhongqiu/web/share-modal.png") center / 100% 100% no-repeat;
}

.zq-payment-success .zq-pay-modal__title {
  position: absolute;
  top: 43%;
  left: 8%;
  width: 84%;
  margin: 0;
  color: #703900;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.4;
}

.zq-payment-success .zq-pay-modal__desc {
  position: absolute;
  top: 54%;
  left: 8%;
  width: 84%;
  margin: 0;
  color: #876036;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
}

.zq-payment-success .zq-pay-modal__btn {
  position: absolute;
  top: 76.8%;
  left: 23%;
  width: 55%;
  height: 12%;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #fff !important;
  font-size: 42px;
  background: url("/usr/themes/Mirages/images/zhongqiu/web/button-large.png") center / 100% 100% no-repeat;
  box-shadow: none;
}

.zq-share-modal__panel {
  width: min(660px, calc(100vw - 32px), calc((100vh - 132px) * 3 / 4));
  aspect-ratio: 3 / 4;
  background: url("/usr/themes/Mirages/images/zhongqiu/web/share-poster.png") center / 100% 100% no-repeat;
}

.zq-share-modal__title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.zq-share-modal__qr-wrap {
  position: absolute;
  top: 14.8%;
  left: 24.7%;
  width: 48%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  padding: 4px;
  border-radius: 0;
}

.zq-share-modal__qr,
.zq-share-modal__qr canvas,
.zq-share-modal__qr img,
.zq-share-modal__qr table {
  width: 100%;
  height: 100%;
}

.zq-share-modal__desc {
  position: absolute;
  top: 56.5%;
  left: 3.5%;
  width: 93%;
  height: 12.5%;
  margin: 0;
  overflow-y: auto;
  overflow-wrap: anywhere;
  color: #703900;
  font-size: 22px;
  line-height: 1.4;
}

.zq-share-modal__link {
  position: absolute;
  top: 69.4%;
  left: 16%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 77%;
  height: 8.5%;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  color: #703900;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  background: transparent;
}

.zq-share-modal__actions {
  position: absolute;
  top: 80%;
  left: 4.5%;
  display: flex;
  flex-direction: row;
  gap: 14px;
  width: 91%;
  height: 9%;
}

.zq-share-modal__btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0 8px;
  border-radius: 0;
  color: #fff !important;
  font-size: 26px;
  background: url("/usr/themes/Mirages/images/zhongqiu/web/button-medium.png") center / 100% 100% no-repeat;
  box-shadow: none;
}

@media (min-width: 768px) and (max-height: 800px) {
  .zq-payment-success .zq-pay-modal__title {
    font-size: 32px;
  }

  .zq-payment-success .zq-pay-modal__desc {
    font-size: 21px;
  }

  .zq-payment-success .zq-pay-modal__btn {
    font-size: 34px;
  }

  .zq-share-modal__desc {
    top: 55.2%;
    height: 13%;
    font-size: 14px;
    line-height: 1.25;
  }

  .zq-share-modal__link {
    font-size: 14px;
    line-height: 1.2;
  }

  .zq-share-modal__btn {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .zq-payment-success .zq-pay-modal__wrap,
  .zq-share-modal__wrap {
    gap: 20px;
  }

  .zq-payment-success .zq-pay-modal__close,
  .zq-share-modal__close {
    width: 36px;
    height: 36px;
  }

  .zq-payment-success .zq-pay-modal__panel,
  .zq-share-modal__panel {
    width: min(360px, calc(100vw - 32px));
  }

  .zq-payment-success .zq-pay-modal__panel {
    width: min(360px, calc(100vw - 32px), calc((100vh - 104px) * 1932 / 2061));
    aspect-ratio: 1932 / 2061;
    background-image: url("/usr/themes/Mirages/images/zhongqiu/h5/payment-modal.png");
  }

  .zq-payment-success .zq-pay-modal__title {
    font-size: 22px;
  }

  .zq-payment-success .zq-pay-modal__desc {
    font-size: 14px;
  }

  .zq-payment-success .zq-pay-modal__btn {
    font-size: 24px;
  }

  .zq-share-modal__panel {
    width: min(360px, calc(100vw - 32px), calc((100vh - 104px) * 1932 / 2574));
    aspect-ratio: 1932 / 2574;
    background-image: url("/usr/themes/Mirages/images/zhongqiu/h5/share-modal.png");
  }

  .zq-share-modal__qr-wrap {
    top: 12.6%;
    left: 26.5%;
    width: 47%;
  }

  .zq-share-modal__desc {
    top: 52.5%;
    left: 7%;
    width: 86%;
    height: 20.5%;
    font-size: 12px;
    line-height: 1.4;
  }

  .zq-share-modal__link {
    top: 73.5%;
    left: 18%;
    width: 74%;
    height: 7.7%;
    font-size: 11px;
  }

  .zq-share-modal__actions {
    top: 84%;
    gap: 8px;
  }

  .zq-share-modal__btn {
    font-size: 14px;
  }
}

@media (max-width: 359px) {
  .zq-countdown-timer {
    gap: 1px;
  }

  .zq-countdown-unit {
    width: 60px;
    background-size: 60px 60px;
  }

  .zq-countdown-num {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .zq-countdown-unit small {
    margin-top: 4px;
    font-size: 24px;
  }

  .zq-countdown-sep {
    margin-top: 20px;
    font-size: 16px;
  }

  .zq-share-modal__desc {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zq-win-ticker-track {
    animation: none;
  }
}
