:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #f2f2f2;
  color: #111;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  background: #f2f2f2;
}

button,
a,
input {
  font: inherit;
}

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

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

#app {
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

#app::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.page-shell {
  position: relative;
  width: 100%;
  max-width: 750px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #f1311b;
}

.hero-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.claim-area {
  position: relative;
  min-height: 188px;
  padding: 5px 15px 10px;
  color: #fff;
}

.claim-ticker {
  width: min(182px, 58vw);
  height: 41px;
  margin: 0 0 0 calc(30% - 6px);
  overflow: hidden;
}

.claim-track {
  transition: transform 320ms ease;
}

.claim-item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 41px;
  gap: 5px;
  white-space: nowrap;
  font-size: 11px;
}

.claim-item img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
}

.claim-item strong {
  font-weight: 500;
}

.claim-button {
  display: block;
  width: 100%;
  height: 83px;
  margin: 17px 0 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.claim-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: claim-pulse 0.9s linear alternate infinite;
}

@keyframes claim-pulse {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .claim-button img { animation: none; }
  .claim-track { transition: none; }
}

.agreement-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-top: 2px;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
}

.agreement-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checkbox-mark {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 7px;
  flex: 0 0 20px;
  place-items: center;
  border: 1px solid #ddd;
  border-radius: 2px;
  background: #fff;
  color: #fff;
}

.agreement-row input:checked + .checkbox-mark {
  border-color: #ff9900;
  background: #ff9900;
}

.agreement-row input:checked + .checkbox-mark::after {
  content: "";
  width: 9px;
  height: 5px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}

.agreement-text {
  white-space: nowrap;
}

.agreement-text a {
  display: inline-block;
  padding: 2px 3px;
  color: #ffcc00;
  text-decoration: underline;
}

.benefit-panels {
  padding-bottom: 10px;
}

.benefit-panels img {
  width: 93.59%;
  aspect-ratio: 702 / 299;
  margin: 0 0 6px 3.08%;
  object-fit: fill;
}

.rules-card {
  width: 90.51%;
  min-height: 1128px;
  margin: 0 4.36% 20px 5.13%;
  padding: 8px 5px 64px;
  border-radius: 5px;
  background: #fff;
  color: #000;
  font-family: Calibri, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.9;
}

.rules-card p {
  margin: 0 0 7px;
}

.rules-card .phone-line {
  margin-top: 10px;
  text-align: center;
  font-weight: 400;
}

.side-action {
  position: absolute;
  right: 0;
  z-index: 5;
  display: grid;
  width: 26px;
  min-height: 46px;
  padding: 6px 4px 6px 5px;
  place-items: center;
  border-radius: 10px 0 0 10px;
  background: rgba(120, 0, 0, 0.5);
  color: #fff;
  font-size: 13px;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  writing-mode: vertical-rl;
}

.side-action.rules { top: 31px; min-height: 82px; }
.side-action.service { top: 130px; }
.side-action.download { top: 197px; }

.download-page {
  display: flex;
  width: 100%;
  min-height: 100vh;
  justify-content: center;
  padding: 40px 20px;
  background: #f5f7fa;
}

.app-download-container {
  width: 100%;
  max-width: 500px;
  padding: 60px 30px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.app-download-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  border: 2px solid #f0f0f0;
  border-radius: 24px;
  background: url("assets/download-logo.png") no-repeat center;
  background-size: cover;
}

.app-download-name {
  margin: 0 0 10px;
  color: #333;
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
}

.app-download-version {
  display: block;
  margin-bottom: 40px;
  color: #999;
  font-size: 16px;
  line-height: normal;
}

.app-download-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-download-button {
  display: block;
  width: 100%;
  height: 56px;
  border-radius: 28px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 56px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
}

.app-download-button.benefit-button,
.app-download-button.web-button {
  background: #333;
}

.app-download-button.android-button {
  background: #ff9900;
}

.app-download-button.benefit-button:hover {
  background: #a10303;
  transform: translateY(-2px);
}

.app-download-button.android-button:hover {
  background: #e68a00;
  transform: translateY(-2px);
}

.app-download-button.web-button:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
}

.subpage-shell {
  width: 100%;
  max-width: 750px;
  min-height: 100vh;
  margin: 0 auto;
  background: #d93218;
}

.subpage-nav {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  height: 44px;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  background: #ff0808;
  color: #fff;
}

.back-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

.back-button::before {
  content: "";
  width: 11px;
  height: 11px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.subpage-title {
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artwork-stage {
  position: relative;
  min-height: calc(100vh - 44px);
  background-color: #d93218;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.receive-stage { background-image: url("assets/receive-help-bg.png"); }
.service-stage { background-image: url("assets/customer-service-bg.png"); }

.receive-card {
  position: absolute;
  top: 208px;
  left: 13.85%;
  width: 80%;
}

.service-card {
  position: absolute;
  top: 222px;
  left: 50%;
  width: 82%;
  transform: translateX(-50%);
}

.artwork-hotspot {
  position: absolute;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.download-hotspot {
  top: 286px;
  right: 9%;
  width: 28%;
  height: 58px;
}

.phone-hotspot {
  top: 280px;
  left: 31%;
  width: 51%;
  height: 88px;
}

.document-shell {
  width: 100%;
  max-width: 750px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
}

.document-body {
  padding: 0 7px 28px;
  overflow-wrap: anywhere;
  color: #000;
  font-family: Calibri, "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 27px;
}

.document-body p {
  margin: 0 0 8px;
  padding: 2px;
  white-space: pre-wrap;
}

.document-body.compact {
  font-size: 12px;
  line-height: 23px;
}

.document-body.compact p {
  margin-bottom: 6px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 15%;
  z-index: 99;
  max-width: min(82vw, 420px);
  padding: 10px 15px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

@media (max-width: 374px) {
  .claim-area { padding-inline: 10px; }
  .claim-ticker { margin-left: calc(30% - 4px); }
  .agreement-row { font-size: 11px; }
  .agreement-text a { padding-inline: 1px; }
}

@media (max-width: 375px) {
  .app-download-container { padding: 40px 20px; }
  .app-download-logo { width: 100px; height: 100px; }
  .app-download-name { font-size: 28px; }
  .app-download-button { height: 50px; font-size: 16px; line-height: 50px; }
}

@media (min-width: 751px) {
  body { padding-block: 24px; }
  .page-shell,
  .subpage-shell,
  .document-shell { box-shadow: 0 0 24px rgba(0, 0, 0, 0.12); }
}
