/* App 宣传页 */
.app-page {
  background: #ffffff;
  color: #1F2937;
}

.app-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #dcebfb;
}

.app-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.app-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 0;
}

.app-hero-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  color: #1a5fd0;
  font-size: 13px;
  font-weight: 700;
}

.app-hero-title {
  max-width: 520px;
  margin-top: 16px;
  color: #03205a;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.3;
}

/* 强调词整体换行，避免最后一个字单独掉到下一行 */
.app-hero-title .home-app-banner-accent {
  display: inline-block;
  color: #1a5fd0;
}

.app-hero-subtitle {
  max-width: 480px;
  margin-top: 14px;
  color: #344054;
  font-size: 16px;
  line-height: 1.7;
}

.app-hero-download {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

/* 二维码样式与首页 App 区块一致 */
.app-hero-qr {
  position: relative;
  flex-shrink: 0;
  width: 190px;
  height: 190px;
  padding: 5px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #ffffff;
}

.app-hero-qr img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.app-hero-reticle {
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: #2C61FE;
  border-style: solid;
}

.app-hero-reticle-tl {
  top: 2px;
  left: 2px;
  border-width: 2.5px 0 0 2.5px;
  border-top-left-radius: 3px;
}

.app-hero-reticle-tr {
  top: 2px;
  right: 2px;
  border-width: 2.5px 2.5px 0 0;
  border-top-right-radius: 3px;
}

.app-hero-reticle-bl {
  bottom: 2px;
  left: 2px;
  border-width: 0 0 2.5px 2.5px;
  border-bottom-left-radius: 3px;
}

.app-hero-reticle-br {
  bottom: 2px;
  right: 2px;
  border-width: 0 2.5px 2.5px 0;
  border-bottom-right-radius: 3px;
}

.app-store-btn,
.app-store-btn:link,
.app-store-btn:visited {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  height: 54px;
  padding: 0 20px;
  border-radius: 10px;
  background: #03205a;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.app-store-btn:hover {
  background: #0a3a94;
}

.app-store-btn svg {
  width: 22px;
  height: 26px;
  flex-shrink: 0;
}

.app-store-btn-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* 英文语序为 “Download on the / App Store” */
.lang-en .app-store-btn-labels {
  flex-direction: column-reverse;
}

.app-store-btn-store {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.app-store-btn-action {
  font-size: 11px;
  line-height: 1.2;
}

.app-hero-android {
  margin-top: 10px;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}

.app-reasons {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 0 72px;
}

.app-reasons-title {
  color: #03205a;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
}

.app-reasons-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

/* 无边框的居中图文，项目之间用淡色分隔线 */
.app-reason {
  position: relative;
  padding: 32px 24px;
  text-align: center;
}

.app-reason:not(:nth-child(3n + 1))::before {
  content: "";
  position: absolute;
  top: 16%;
  bottom: 16%;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(209, 220, 238, 0) 0%, #d1dcee 50%, rgba(209, 220, 238, 0) 100%);
}

.app-reason:nth-child(-n + 3)::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: 0;
  left: 6%;
  height: 1px;
  background: linear-gradient(90deg, rgba(209, 220, 238, 0) 0%, #d1dcee 50%, rgba(209, 220, 238, 0) 100%);
}

.app-reason-icon {
  display: block;
  height: 40px;
  color: #1a5fd0;
  font-size: 34px;
  line-height: 40px;
}

.app-reason-accent .app-reason-icon {
  color: #F06703;
  transform: rotate(-20deg);
}

.app-reason h3 {
  margin-top: 16px;
  color: #03205a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.app-reason p {
  max-width: 260px;
  margin: 8px auto 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.7;
  text-wrap: balance;
}

/* 三步说明：手机内容图放进 .app-step-screen，边框图叠在上面 */
/* 日文按词组断行，避免把一个词拆到两行 */
.app-steps-title,
.app-steps-subtitle,
.app-step p,
.app-member-benefit p {
  text-wrap: balance;
  word-break: auto-phrase;
}

.app-steps {
  padding: 64px 0 72px;
  background: #f3f7fd;
}

.app-steps-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.app-steps-title {
  color: #03205a;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
}

.app-steps-subtitle {
  margin-top: 10px;
  color: #475467;
  font-size: 15px;
  text-align: center;
}

.app-steps-list {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  align-items: center;
  margin-top: 32px;
}

.app-step {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 24px 0;
  border: 1px solid #e3ebf7;
  border-radius: 16px;
  background: #ffffff;
}

.app-step-head {
  display: grid;
  margin-bottom: 20px;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
}

.app-step-number {
  padding: 4px 10px;
  border-radius: 8px;
  background: #1a5fd0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.app-step h3 {
  color: #03205a;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

.app-step p {
  grid-column: 2;
  margin-top: 6px;
  color: #475467;
  font-size: 14px;
  line-height: 1.6;
}

.app-step-phone {
  position: relative;
  width: 92%;
  margin: auto auto 0;
}

.app-step-frame {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

/* 屏幕区域按边框图实测位置定位 */
.app-step-screen {
  position: absolute;
  top: 7.6%;
  right: 5%;
  bottom: 0;
  left: 4.4%;
  overflow: hidden;
  border-radius: 11.3% 11.3% 0 0 / 20.4% 20.4% 0 0;
  background: #ffffff;
}

.app-step-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.app-step-arrow {
  color: #1a5fd0;
  font-size: 18px;
  text-align: center;
}

/* 会员区块：同时作为页面底部的下载入口 */
.app-member {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 0 72px;
}

.app-member-card {
  position: relative;
  display: grid;
  grid-template-columns: 38% 1fr;
  align-items: center;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  background: #F7F8FA;
}

.app-member-coupon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 36px 20px 36px 36px;
  background: transparent;
  border-right: none;
}

/* 礼物插图：文字按券面实测位置（中心 61% / 65%，倾斜约 7°）叠加，字号随插图宽度缩放 */
.app-member-gift {
  position: relative;
  width: 100%;
  max-width: 380px;
  container-type: inline-size;
  filter: drop-shadow(0 10px 24px rgba(3, 32, 90, 0.08));
}

.app-member-gift img {
  display: block;
  width: 100%;
  height: auto;
}

.app-member-ticket {
  position: absolute;
  top: 64.8%;
  left: 60.8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 52%;
  transform: translate(-50%, -50%) rotate(-7deg);
  text-align: center;
}

.app-member-ticket-lead {
  display: inline-block;
  padding: 1.5px 9px;
  border-radius: 999px;
  background: rgba(44, 97, 254, 0.1);
  color: #2C61FE;
  font-size: 3.9cqw;
  font-weight: 700;
  line-height: 1.35;
}

.app-member-ticket-amount {
  margin-top: 2px;
  color: #F06703;
  font-size: 10.5cqw;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.app-member-ticket-amount small {
  margin: 0 0.6cqw;
  color: #03205a;
  font-size: 4.4cqw;
  font-weight: 700;
}

.app-member-ticket-suffix {
  color: #03205a;
  font-size: 4.3cqw;
  font-weight: 700;
  line-height: 1.25;
}

.app-member-body {
  padding: 36px 40px 36px 20px;
}

.app-member-title {
  color: #03205a;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.app-member-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.app-member-benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  background: #ffffff;
}

.app-member-benefit-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #EDF3FF;
  color: #2C61FE;
  font-size: 19px;
}

.app-member-benefit-icon-points {
  background: #FFF4EC;
  color: #F06703;
}

.app-member-benefit h3 {
  color: #03205a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.app-member-benefit p {
  margin-top: 4px;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.app-member-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #EDF2F7;
}

.app-member-qr-wrap {
  position: relative;
  flex-shrink: 0;
  width: 124px;
  height: 124px;
  padding: 6px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #ffffff;
}

.app-member-qr-wrap .app-member-qr {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.app-member-actions-right {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.app-member-qr-desc {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475467;
  font-size: 13.5px;
  font-weight: 600;
}

.app-member-qr-desc i {
  color: #2C61FE;
  font-size: 14px;
}

.app-member-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.app-member-link,
.app-member-link:link,
.app-member-link:visited {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  height: 52px;
  margin-top: 0;
  padding: 0 20px;
  border: 1.5px solid #2C61FE;
  border-radius: 10px;
  background: #ffffff;
  color: #2C61FE;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.app-member-link i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.app-member-link:hover {
  background: #F4F7FC;
  text-decoration: none;
}

.app-member-link:hover i {
  transform: translateX(2px);
}

/* 常见问题：用 details 折叠，不依赖脚本 */
.app-faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 72px;
}

.app-faq-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #03205a;
  font-size: 26px;
  font-weight: 800;
}

.app-faq-title::before,
.app-faq-title::after {
  content: "";
  width: 56px;
  height: 1px;
  background: #1a5fd0;
}

.app-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.app-faq-item {
  border: 1px solid #dbe5f3;
  border-radius: 10px;
  background: #ffffff;
}

.app-faq-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: #03205a;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.app-faq-item summary::-webkit-details-marker {
  display: none;
}

.app-faq-mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #1a5fd0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.app-faq-mark-answer {
  background: #F06703;
}

.app-faq-question {
  flex: 1;
}

.app-faq-arrow {
  color: #03205a;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.app-faq-item[open] .app-faq-arrow {
  transform: rotate(180deg);
}

.app-faq-answer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 18px;
  padding: 14px 0 16px;
  border-top: 1px dashed #dbe5f3;
}

.app-faq-answer p {
  color: #475467;
  font-size: 14px;
  line-height: 1.7;
}

@media screen and (max-width: 1239px) {
  .app-hero-inner,
  .app-reasons,
  .app-steps-inner,
  .app-member {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* 文案不能压到背景图的手机上 */
  .app-hero-title {
    max-width: 460px;
    font-size: 32px;
  }

  .app-hero-subtitle {
    max-width: 440px;
  }
}

/* 窄屏：手机图放到文案下方；手机上无法扫描自身屏幕，因此隐藏二维码 */
@media screen and (max-width: 900px) {
  .app-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .app-hero-bg {
    position: static;
    order: 2;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .app-hero-inner {
    width: 100%;
    padding: 36px 20px 24px;
  }

  .app-hero-title {
    font-size: 26px;
  }

  .app-hero-subtitle {
    font-size: 15px;
  }

  .app-hero-download {
    margin-top: 24px;
  }

  .app-hero-qr {
    display: none;
  }

  .app-reasons {
    padding: 40px 20px 48px;
  }

  .app-reasons-title {
    font-size: 22px;
  }

  /* 手机端两列，不显示分隔线 */
  .app-reasons-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
  }

  .app-reason {
    padding: 18px 2px;
  }

  .app-reason::before,
  .app-reason::after {
    display: none;
  }

  .app-reason-icon {
    height: 34px;
    font-size: 28px;
    line-height: 34px;
  }

  .app-reason h3 {
    margin-top: 12px;
    font-size: 15px;
  }

  .app-reason p {
    margin-top: 6px;
    font-size: 13px;
  }

  .app-steps {
    padding: 40px 0 48px;
  }

  .app-steps-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .app-steps-title {
    font-size: 22px;
  }

  .app-steps-subtitle {
    font-size: 14px;
  }

  .app-steps-list {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 20px;
  }

  .app-step {
    padding: 20px 20px 0;
  }

  .app-step h3 {
    font-size: 17px;
  }

  .app-step-phone {
    width: 85%;
  }

  .app-step-arrow {
    transform: rotate(90deg);
  }

  .app-member {
    padding: 32px 20px 40px;
  }

  .app-member-card {
    grid-template-columns: 1fr;
  }

  .app-member-coupon {
    padding: 28px 20px 10px;
    border-right: none;
    border-bottom: none;
  }

  .app-member-gift {
    max-width: 320px;
  }

  .app-member-body {
    padding: 20px;
    border-left: 0;
  }

  .app-member-title {
    font-size: 20px;
    text-align: center;
  }

  .app-member-benefits {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .app-member-qr-wrap,
  .app-member-qr-desc {
    display: none;
  }

  .app-member-actions {
    justify-content: center;
    margin-top: 20px;
    padding-top: 18px;
    text-align: center;
  }

  .app-member-actions-right {
    width: 100%;
  }

  .app-member-actions-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 12px;
  }

  .app-member-link {
    margin-right: auto;
    margin-left: auto;
  }

  .app-faq {
    padding: 0 20px 40px;
  }

  .app-faq-title {
    gap: 14px;
    font-size: 20px;
  }

  .app-faq-title::before,
  .app-faq-title::after {
    width: 32px;
  }

  .app-faq-item summary {
    gap: 10px;
    padding: 13px 14px;
    font-size: 14px;
  }

  .app-faq-answer {
    gap: 10px;
    margin: 0 14px;
  }
}
