:root {
  --puppy-w: 375;
  /* 背景图原始尺寸为 750 × 623；aspect-ratio 语法是 宽 / 高。 */
  --hero-ratio: 750 / 623;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

html,
body {
  padding: 0;
  margin: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: #fff;
}

body {
  background-color: #ffecbf;
}

.page {
  width: 100%;
  margin: 0 auto;
  min-height: 100dvh;
  background-color: #ffecbf;
  padding-bottom: calc(4.25rem + env(safe-area-inset-bottom));
  position: relative;
}

/* 英雄区只承载原始背景和标题，严格保持背景图比例。 */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: var(--hero-ratio);
  background-color: #ff8a6a;
  background-image: var(--bg-landing, url('../images/-s-landing_bg.png'));
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 100%;
  overflow: hidden;
}

.hero-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 7.5%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 4%;
  text-align: center;
  pointer-events: none;
}

.hero-title {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.2;
  color: #ffcc00;
  -webkit-text-stroke: 3px #6e1813;
  paint-order: stroke fill;
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.hero-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, #fcffa7 0%, #ffcc00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0;
  pointer-events: none;
}

.hero-sub {
  margin: 0.2rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  -webkit-text-stroke: 2.5px #8e311e;
  paint-order: stroke fill;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.hero-sub::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: #fff;
  -webkit-text-stroke: 0;
  pointer-events: none;
}

.hero-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 0 4%;
  margin: 1rem 0 0;
}

.install-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15rem;
  max-width: 88%;
  height: 3.75rem;
  background-image: var(--bg-btn, url('../images/-s-pub_btn_y.png'));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.install-btn-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  -webkit-text-stroke: 4px #1b4c0e;
  paint-order: stroke fill;
  position: relative;
  line-height: 1;
}

.install-btn-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: #fff;
  -webkit-text-stroke: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.install-badge {
  position: absolute;
  right: -0.55rem;
  top: -0.85rem;
  min-width: 3.4rem;
  height: 1.55rem;
  padding: 0 0.2rem;
  background-image: var(--bg-badge, url('../images/-s-landing_nav_tips_bg.png'));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.install-badge-inner {
  height: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.12rem;
}

.install-badge-inner img {
  width: 0.75rem;
  height: 0.75rem;
}

.install-badge-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  -webkit-text-stroke: 1.5px #000;
  paint-order: stroke fill;
  position: relative;
}

.install-badge-num::after {
  content: attr(data-num);
  position: absolute;
  inset: 0;
  color: #fff;
  -webkit-text-stroke: 0;
  pointer-events: none;
}

.code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  font-size: 0.875rem;
  color: #83622a;
  line-height: 1.3;
}

.code-row .code {
  font-weight: 700;
  color: #ff1446;
  font-size: 0.95rem;
}

.copy-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.15rem;
  margin: 0;
  cursor: pointer;
  line-height: 0;
}

.copy-btn img {
  width: 0.875rem;
  height: 0.875rem;
  display: block;
}

/* 提现列表 */
.list {
  margin: 0.75rem 0.85rem 0;
  background-color: #fff5e3;
  border: 1.5px solid #be9041;
  box-shadow: inset 0 3px 0 #fff, inset 0 -3px 0 #f4dfbb;
  border-radius: 1.15rem;
  color: #333;
  padding-bottom: 0.4rem;
  overflow: hidden;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #443316;
}

.list-header > .title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.list-header > .title::before,
.list-header > .title::after {
  content: '';
  width: 0.625rem;
  height: 0.5625rem;
  background-size: cover;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.list-header > .title::before {
  background-image: var(--bg-line-l, url('../images/-s-landing_icon_line_left.png'));
}

.list-header > .title::after {
  background-image: var(--bg-line-r, url('../images/-s-landing_icon_line_right.png'));
}

.list-container {
  padding: 0 0.75rem;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0;
  font-size: 0.75rem;
  font-weight: 500;
  border-bottom: 0.5px solid #f0e6d4;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item .avatar img {
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: #eee;
}

.list-item .name {
  max-width: 5.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333;
}

.list-item .text {
  flex: 1;
  display: flex;
  gap: 0.2em;
  white-space: nowrap;
  color: #333;
}

.list-item .text strong {
  color: #ff3631;
  font-weight: 700;
}

.list-item .timeago {
  color: #999;
  white-space: nowrap;
  font-size: 0.6875rem;
}

.page-footer {
  font-size: 0.6875rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4em;
  color: #bc8e40;
  padding: 0.75rem 0.75rem 1rem;
}

.page-footer a {
  color: #bc8e40;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* 底部固定下载条 */
.sticky-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 3.75rem;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding-bottom: env(safe-area-inset-bottom);
  box-sizing: content-box;
}

.sticky-inner {
  height: 3.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.85rem;
}

.sticky-inner .icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
}

.sticky-inner .meta {
  flex: 1;
  min-width: 0;
}

.sticky-inner .meta .name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.sticky-inner .meta .desc {
  margin-top: 0.15rem;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-btn {
  flex-shrink: 0;
  width: 6.2rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: var(--bg-btn2, url('../images/-s-landing_btn2.png'));
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.dl-btn-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  -webkit-text-stroke: 3px #1b4c0e;
  paint-order: stroke fill;
  position: relative;
}

.dl-btn-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: #fff;
  -webkit-text-stroke: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

@media (max-width: 374px) {
  .hero-title {
    font-size: 1.85rem;
    -webkit-text-stroke-width: 2.5px;
  }
  .hero-sub {
    font-size: 1.05rem;
  }
  .install-btn {
    height: 3.35rem;
  }
}
