@font-face {
  font-family: NazliUyghur;
  src: url('/font/ALKATIPBasmaTom.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  background: #f5f5f5;
  color: #111;
}

body {
  margin: 0;
  font-family: NazliUyghur, system-ui, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: progress;
  opacity: .55;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #642d9f;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

p,
h1,
h2 {
  margin: 0;
}

/* 以 440px 原稿为基准，容器单位同时适配 360/375/390/430px 手机。 */
.container {
  position: relative;
  container-type: inline-size;
  inline-size: 100%;
  max-inline-size: 440px;
  min-block-size: 100svh;
  margin-inline: auto;
  overflow: clip;
  background: repeating-linear-gradient(115deg, #fff 0 6px, #ffe4ef 6px 7px, #fff 7px 12px);
}

.header {
  display: flex;
  align-items: center;
  gap: 2.727cqw;
  padding: 4.545cqw 4.318cqw 1.818cqw;
  min-block-size: 19.091cqw;
  border-block-end: 1px dashed #ffcadc;
  color: #fa3586;
}

.header-logo {
  flex: 0 0 12.727cqw;
  inline-size: 12.727cqw;
  block-size: 12.727cqw;
  border-radius: 2.727cqw;
  overflow: hidden;
  box-shadow: 0 2px 14px #0002;
}

.header-logo img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
}

.header p {
  flex: 1;
  text-align: center;
  font-size: 3.636cqw;
  line-height: 1.5;
  font-weight: 700;
}

.description {
  block-size: 11.136cqw;
  margin-block: 2.273cqw 0;
  margin-inline: 5.682cqw 3.409cqw;
  overflow: hidden;
  border-radius: 2.727cqw;
  background: linear-gradient(110deg, #f9e4ef, #ffeded);
  color: #ff588f;
}

.scroll-content {
  position: relative;
  block-size: 100%;
  inline-size: 100%;
}

.scroll-item {
  position: absolute;
  inline-size: 100%;
  block-size: 100%;
  padding: 1.136cqw 2.273cqw;
  display: grid;
  align-items: center;
}

.scroll-content p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 2.955cqw;
  line-height: 1.45;
  text-align: center;
}

.scroll-content img {
  inline-size: 4.545cqw;
  block-size: 4.545cqw;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-inline: 1cqw;
}

.scroll-content bdi {
  font-family: system-ui, sans-serif;
  font-size: .9em;
  font-weight: 700;
}

.phone-container {
  position: relative;
  block-size: 143.636cqw;
  margin-block-start: -.455cqw;
  isolation: isolate;
}

.phone-image {
  position: relative;
  z-index: 2;
  display: block;
  inline-size: 80.909cqw;
  block-size: auto;
  margin-inline: auto;
  transform: translateY(-2.273cqw);
  animation: phone-float 3s ease-in-out infinite;
}

/* 保留手机原始偏移，在此基础上轻浮 10px，不挤动周围布局。 */
@keyframes phone-float {

  0%,
  100% {
    transform: translateY(-2.273cqw);
  }

  50% {
    transform: translateY(calc(-2.273cqw - 10px));
  }
}

/* 两条斜向缎带均由渐变、细线和可选择文字组成。 */
.ribbon-back,
.promo-ribbon {
  position: absolute;
  inset-inline: -12%;
  inline-size: 124%;
  background: repeating-linear-gradient(0deg, transparent 0 7px, #ffffff70 7px 8px), linear-gradient(100deg, #eb2f96, #ff4d4f);
}

.ribbon-back {
  z-index: 1;
  inset-block-start: 88cqw;
  block-size: 42cqw;
  transform: rotate(14deg);
  background-color: #ff4d4f;
}

.promo-ribbon {
  z-index: 4;
  inset-block-start: 111cqw;
  block-size: 57cqw;
  padding: 1.8cqw 7cqw;
  color: white;
  transform: rotate(-13deg);
  overflow: hidden;
}

.promo-ribbon h2 {
  font-size: 7.273cqw;
  line-height: 1.6;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
}

.promo-ribbon h2 bdi {
  font-family: system-ui, sans-serif;
  font-size: 1.35em;
  font-weight: 300;
  vertical-align: middle;
}

.promo-ribbon p {
  padding: 0 20px;
  font-size: 3.436cqw;
  line-height: 1.6;
  white-space: nowrap;
  opacity: .55;
}

.download-bubble {
  position: absolute;
  z-index: 5;
  inset-inline: 5.455cqw 4.091cqw;
  inset-block-start: 86.364cqw;
  display: none;
  align-items: center;
  gap: 2.273cqw;
  min-block-size: 13.636cqw;
  padding: 1.364cqw 1.818cqw;
  border: 1px solid white;
  border-radius: 2.273cqw;
  background: #ffffffa8;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
}

.download-bubble.show {
  opacity: 1;
  transform: translateY(0);
}

.bubble-avatar {
  flex: 0 0 9.091cqw;
  inline-size: 9.091cqw;
  block-size: 9.091cqw;
  border-radius: 50%;
  object-fit: cover;
}

.bubble-text {
  flex: 1;
  min-inline-size: 0;
  text-align: start;
}

.bubble-time {
  color: #818181;
  font-size: 2.5cqw;
  line-height: 1.4;
}

.bubble-message {
  font-size: 2.955cqw;
  line-height: 1.25;
}

.footer {
  position: relative;
  z-index: 6;
  border-start-start-radius: 2.727cqw;
  border-start-end-radius: 2.727cqw;
  padding: 8.182cqw 4.545cqw 2.273cqw;
  background: white;
  text-align: center;
  padding-block-end: max(2.273cqw, env(safe-area-inset-bottom));
}

.app-logo {
  position: absolute;
  inset-block-start: -7.955cqw;
  inset-inline-start: calc(50% - 6.818cqw);
  inline-size: 13.636cqw;
  block-size: 13.636cqw;
  border-radius: 3.409cqw;
  box-shadow: 0 8px 18px #0003;
}

.footer h1 {
  font-size: 4.091cqw;
  line-height: 1.5;
}

.app-description {
  margin-block-start: 1.136cqw;
  color: #858585;
  font-size: 3.182cqw;
  line-height: 1.6;
}

.download-button {
  display: block;
  inline-size: 91.625%;
  min-block-size: 11.364cqw;
  margin: 1.818cqw auto 0;
  border: 0;
  border-radius: 2.273cqw;
  padding: 1.818cqw;
  background: linear-gradient(90deg, #eb2f96, #ff4d4f);
  color: white;
  font-size: 4.091cqw;
  line-height: 1.5;
}

.offer-note {
  margin-block-start: 1.818cqw;
  color: #ff3886;
  font-size: 2.273cqw;
  line-height: 1.3;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgb(0 0 0 / 20%);
  display: flex;
  justify-content: center;
  align-items: end;
}

.login-sheet {
  container-type: inline-size;
  inline-size: 100%;
  max-inline-size: 440px;
  max-block-size: 100dvh;
  position: relative;
  border-start-start-radius: 20px;
  border-start-end-radius: 20px;
  background: white;
  padding: 25px 25px max(20px, env(safe-area-inset-bottom));
  overflow: auto;
  text-align: center;
}

.login-sheet:focus,
.guide-panel:focus {
  outline: none;
}

.gift-image {
  display: block;
  inline-size: 60.513%;
  max-inline-size: 236px;
  block-size: auto;
  margin: 0 auto 16px;
}

.congratulations {
  color: #ff398a;
  font-size: 3.59cqw;
  line-height: 1.6;
}

.login-sheet h2 {
  margin-block-start: 6px;
  color: #ff398a;
  font-size: 5.128cqw;
  line-height: 1.5;
}

#login-description {
  margin-block-start: 10px;
  font-size: 3.59cqw;
  line-height: 1.6;
}

.sheet-actions {
  display: flex;
  gap: 12px;
  margin-block-start: 22px;
}

.sheet-button {
  border: 0;
  min-block-size: 50px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 3.59cqw;
}

.wechat-button {
  flex: 235;
  background: #52c41a;
  color: white;
}

.cancel-button {
  flex: 146;
  background: #e6e6e6;
  color: #111;
}

.binding-note {
  margin-block-start: 16px;
  color: #858585;
  font-size: 3.077cqw;
  line-height: 1.5;
}

.login-status {
  margin-block-start: 12px;
  padding: 8px;
  background: #fff2f5;
  color: #b82661;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  z-index: 40;
  inset-inline: 20px;
  inset-block-start: 22px;
  inline-size: fit-content;
  max-inline-size: 400px;
  margin: 0 auto;
  padding: 12px 18px;
  background: rgb(30 30 30 / 94%);
  color: white;
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
  overflow-wrap: anywhere;
}

.browser-guide {
  z-index: 30;
  align-items: start;
  background: rgb(0 0 0 / 72%);
  padding: 22px;
}

.guide-panel {
  inline-size: 100%;
  max-inline-size: 396px;
  color: white;
  text-align: start;
}

.guide-arrow {
  display: block;
  text-align: start;
  font-size: 68px;
  line-height: 1.2;
}

.guide-panel h2 {
  font-size: 22px;
}

.guide-panel p {
  font-size: 16px;
  line-height: 1.8;
  margin-block-start: 16px;
}

.guide-panel button {
  display: block;
  margin: 24px auto;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .download-bubble {
    transition: none;
  }

  .phone-image {
    animation: none;
  }
}