/* =============================================
   动效 & 美化增强
   ============================================= */

img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* --- 2. Banner 浮动图标动画 --- */
.ic-shield {
  animation: hero-float-1 6s ease-in-out infinite;
  will-change: transform;
  contain: layout style;
}
.ic-flash {
  animation: hero-float-2 7s ease-in-out infinite;
  will-change: transform;
  contain: layout style;
}
.ic-group {
  animation: hero-float-3 8s ease-in-out infinite;
  will-change: transform;
  contain: layout style;
}
.ic-lock {
  animation: hero-float-4 5.5s ease-in-out infinite;
  will-change: transform;
  contain: layout style;
}

/* Phone glow effect */
.phone-glow {
  position: absolute;
  width: 130%;
  height: 130%;
  top: -15%;
  left: -15%;
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(58, 120, 255, 0.22) 0%,
    rgba(58, 120, 255, 0.12) 30%,
    rgba(96, 165, 250, 0.06) 50%,
    transparent 70%
  );
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.06); }
}

.phone-animate {
  animation: phone-rise 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(58, 120, 255, 0.18))
          drop-shadow(0 8px 16px rgba(58, 120, 255, 0.12));
  transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

.phone-animate.float-after-entrance {
  animation: phone-rise 1s cubic-bezier(0.16, 1, 0.3, 1) both,
             phone-subtle-float 6s ease-in-out 1s infinite;
}

@keyframes phone-rise {
  from {
    opacity: 0;
    transform: translateY(80px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes phone-subtle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes hero-float-1 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(3deg);
  }
}
@keyframes hero-float-2 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(-4deg);
  }
}
@keyframes hero-float-3 {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-16px) scale(1.04);
  }
}
@keyframes hero-float-4 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(5deg);
  }
}

@keyframes hero-float-5 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* --- 3. 卡片 Hover 效果 --- */

/* Wallet 卡片 */
.home-wallet-card-border {
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.home-wallet-card-border:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

/* Payment 卡片 */
.home-payment-card {
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s ease;
  border: 1px solid transparent;
}
.home-payment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.1);
  border-color: #93c5fd;
}

/* Payment 图标微动 */
.home-payment-img {
  flex: none;
  width: 64px;
  height: 64px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.home-payment-card:hover .home-payment-img {
  transform: scale(1.1) rotate(-3deg);
}

/* Security 卡片 */
.home-security-card {
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.home-security-card:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Security 图标 */
.home-security-card-img {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.home-security-card:hover .home-security-card-img {
  transform: scale(1.15);
}

/* Guide 卡片 */
.home-guide-card {
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.home-guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(59, 130, 246, 0.12);
  border: 1px solid #409efe;
}

/* Guide 箭头图标 */

.home-guide-card-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}
.home-guide-card:hover .home-guide-card-arrow {
  color: #3b82f6;
  transform: translateX(2px);
}

.home-guide-card-content > .btn {
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}
.home-guide-card:hover .home-guide-card-content > .btn {
  transform: translateX(4px);
}
.home-guide-card:hover .home-guide-card-content > .btn path {
  stroke: #3b82f6;
}

/* --- 4. 时间线图标动效 --- */
.timeline-icon {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.timeline-item:hover .timeline-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
}

/* --- 5. CTA Banner 动效 --- */
.home-cta-card {
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.4s ease;
}
.home-cta-card:hover {
  box-shadow: 0 24px 48px rgba(58, 120, 255, 0.2);
}

.home-cta-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  animation: cta-shimmer 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cta-shimmer {
  0%,
  60% {
    left: -100%;
  }
  100% {
    left: 150%;
  }
}

/* CTA 按钮 hover */
.home-cta-actions > a > .btn-download {
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
}
.home-cta-actions > a > .btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(58, 120, 255, 0.2);
}

.home-cta-actions > a > .btn-contact {
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease;
}
.home-cta-actions > a > .btn-contact:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

/* --- 6. Section Tag 动效 --- */
.home-tag {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.home-tag::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  animation: tag-sweep 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tag-sweep {
  0%,
  65% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* --- 7. 安全区背景视差 --- */
.home-security {
  background-attachment: scroll;
  background-position: center bottom;
}

/* --- btn-gradient hover --- */
.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow:
    0px 12px 32px rgba(58, 120, 255, 0.5),
    0px 4px 10px rgba(58, 120, 255, 0.35),
    inset 0px 1px 1px rgba(255, 255, 255, 0.35),
    inset 0px -1px 2px rgba(0, 0, 0, 0.1);
}

/* =============================================
   原有样式
   ============================================= */

/* Global */
.home-tag-cover {
  display: flex;
}

.home-tag {
  background-color: #444444;
  color: #fff;
  padding: 8px 16px;
  border-radius: 100px;
}

@media screen and (max-width: 600px) {
  .home-tag {
    font-size: 12px;
  }
}

.home-section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.home-section-text {
  font-size: 32px;
  font-weight: bold;
  color: #000;
  text-align: center;
}

.home-section-text2 {
  font-size: 16px;
  font-weight: normal;
  color: #6b7280;
  text-align: center;
}

@media screen and (max-width: 600px) {
  .home-section-text {
    font-size: 24px;
  }
  .home-section-text2 {
    font-size: 14px;
  }
}

/* In Section */

/* Banner */
.home-banner-cover {
  background-image: url("/images/home/home-banner.webp");
  background-size: cover;
  background-repeat: no-repeat;
}

.home-layout {
  display: flex;
  align-items: stretch;
}

.home-content {
  flex: 1; /* 👈 allow it to stretch */
  padding: 160px 0;
  position: relative;
  z-index: 2;
}

.home-visual {
  flex: 1; /* 👈 match height with content */
  position: relative;
  display: block;
}

@media screen and (max-width: 1000px) {
  /* .home-banner-cover {
    background-image: none;
    background:
      radial-gradient(
        ellipse at 80% 10%,
        rgba(75, 150, 255, 0.25) 0%,
        rgba(148, 191, 255, 0.12) 30%,
        transparent 60%
      ),
      radial-gradient(
        ellipse at 20% 50%,
        rgba(75, 150, 255, 0.15) 0%,
        rgba(148, 191, 255, 0.08) 30%,
        transparent 55%
      ),
      linear-gradient(180deg, #eaf0fa 0%, #f0f4fb 40%, #ffffff 100%);
  } */

  .home-banner-cover {
    background-image: url("/images/home/home-banner-mbl.webp");
    background-size: cover;
    background-repeat: no-repeat;
  }

  .home-layout {
    flex-direction: column;
  }

  .home-content {
    padding: 100px 0 20px;
    z-index: auto;
  }

  .home-visual {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

.home-viual-img-cover {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 750px;
  will-change: transform;
  contain: layout style;
  perspective: 800px;
  transform-style: preserve-3d;
}

@media screen and (max-width: 1000px) {
  .home-viual-img-cover {
    position: relative;
    width: 100%;
    max-width: 500px;
    right: auto;
    bottom: auto;
    margin: 0 auto;
    transform: none;
    perspective: none;
    transform-style: flat;
  }

  .phone-glow {
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    filter: blur(25px);
  }

  .ic-shield {
    top: 10% !important;
    left: 30% !important;
    width: 60px;
  }

  .ic-flash {
    top: 30% !important;
    right: 15% !important;
    width: 35px;
  }

  .ic-group {
    top: 50% !important;
    left: 20% !important;
    width: 39px;
  }

  .ic-lock {
    top: 70% !important;
    right: 20% !important;
    width: 56px;
  }
}

.ic-shield {
  position: absolute;
  top: 100px;
  left: 200px;
  z-index: 3;
}

.ic-flash {
  position: absolute;
  top: 200px;
  right: 50px;
  z-index: 3;
}

.ic-group {
  position: absolute;
  top: 350px;
  left: 100px;
  z-index: 3;
}

.ic-lock {
  position: absolute;
  top: 450px;
  right: 120px;
  z-index: 3;
}

.skew-cover {
  position: absolute;
  width: 49%;
  height: 93%;
  bottom: 15px;
  right: 28%;
}

.skew-box {
  position: relative;
  overflow: hidden;
  transform: skewX(-24.8deg);
  border-radius: 50px;
  height: 100%;
  width: 100%;
}

.skew-box .inner {
  transform: skewX(24.8deg);
}

.shine {
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-50deg);
  animation: shine-sweep 10s ease-in-out 1;
  pointer-events: none;
  z-index: 10;
}

@keyframes shine-sweep {
  0% {
    left: -75%;
    opacity: 0;
  }
  5% {
    opacity: 0.8;
  }
  18% {
    left: 125%;
    opacity: 0.8;
  }
  22%,
  100% {
    left: 125%;
    opacity: 0;
  }
}

/* Wallet */
.home-wallet {
  padding: 100px 0px 100px 0px;
  contain: layout style;
}

.home-wallet-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.home-wallet-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media screen and (max-width: 600px) {
  .home-wallet-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.home-wallet-card-border {
  padding: 2px; /* border thickness */

  background: linear-gradient(
    149.31deg,
    rgba(115, 162, 255, 0.5) -5.06%,
    rgba(169, 193, 242, 0.5) 14.15%,
    rgba(253, 254, 255, 0.5) 102.53%
  );

  border-radius: 22px;
  height: 100%;
}

.home-wallet-card-bg {
  background-color: #fff;
  border-radius: 20px;
  height: 100%;
}

.home-wallet-card {
  display: flex;
  flex-direction: column;
  gap: 45px;
  border-radius: 20px;
  /* background: linear-gradient(to bottom, #ffffff00, #aacfff); */
  /* border: 2px solid; */

  background: linear-gradient(
    157.92deg,
    rgba(255, 255, 255, 0) 1.85%,
    #aacfff 85.57%
  );

  position: relative;
  height: 100%;
}

@media screen and (max-width: 770px) {
  .home-wallet-card {
    gap: 0px;
  }
}

.home-wallet-section {
  padding: 24px;
  position: relative;
}

@media screen and (max-width: 600px) {
  .home-wallet-section {
    padding: 16px;
  }
}

.py-icon-cover {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.py-icon {
  flex: none;
  border-radius: 20px;
  width: 150px;
  display: block;
}

.py-icon-mbl {
  flex: none;
  border-radius: 20px;
  width: 150px;
  display: none;
}

@media screen and (max-width: 770px) {
  .py-icon-cover {
    display: flex;
    height: 100%;
    width: auto;
    align-items: flex-end;
    right: 0;
  }

  .py-icon {
    width: 100px !important;
  }

  .py-icon-mbl {
    display: block;
  }
}

.home-wallet-circle {
  width: 28px;
  height: 28px;
  border-radius: 100px;
  background-color: #a9cffd;
  position: absolute;
  top: 20px;
  left: 20px;
  opacity: 0.5;
}

@media screen and (max-width: 600px) {
  .home-wallet-circle {
    top: 12px;
    left: 12px;
  }
}

.home-wallet-list-title {
  font-size: 18px;
  font-weight: bold;
}

.home-wallet-list-text {
  font-size: 14px;
  color: #6b7280;
}

@media screen and (max-width: 600px) {
  .home-wallet-list-title {
    font-size: 16px;
  }
  .home-wallet-list-text {
    font-size: 13px;
  }
}

/* py-icon styles moved to .home-wallet-card context */

/* Payment */

.home-payment {
  padding: 100px 0px 100px 0px;
  background-color: #f1f7fe;
}

.home-payment-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.home-payment-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: 100%;
}

@media screen and (max-width: 880px) {
  .home-payment-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media screen and (max-width: 480px) {
  .home-payment-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .home-payment-list .home-payment-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 6px);
    margin: 0 auto;
  }
  .home-payment-card {
    padding: 16px 12px;
    gap: 10px;
  }
  .home-payment-img {
    width: 40px;
    height: 40px;
  }

  .home-payment-img > svg {
    width: 40px;
    height: 40px;
  }

  .home-payment-content-cn {
    font-size: 15px;
    white-space: nowrap;
  }
  .home-payment-content-en {
    font-size: 12px;
    white-space: nowrap;
  }
}

.home-payment-card {
  display: flex;
  gap: 16px;
  background-color: #fff;
  padding: 24px 20px;
  border-radius: 16px;
  align-items: center;
  text-align: left;
}

@media screen and (max-width: 770px) {
  .home-payment-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px 12px;
    align-items: center;
    text-align: center;
    min-width: 160px;
  }
}

.home-payment-img {
  flex: none;
}

.home-payment-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-payment-content-cn {
  line-height: normal;
  font-weight: bold;
  font-size: 18px;
}

.home-payment-content-en {
  line-height: normal;
  font-weight: 500;
  font-size: 14px;
  color: #6b7280;
}

/* Step */
.home-step {
  padding: 100px 0;
}

.home-step-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
  width: 100%;
}

/* Step Cards — PC 版 */
.home-step-list-cover {
  width: 100%;
  overflow: hidden;
}

.home-step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

.home-step-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-step-card-img {
  flex: none;
  overflow: hidden;
  border-radius: 16px;
}

.home-step-card-img img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  display: block;
}

.home-step-card:hover .home-step-card-img img {
  transform: scale(1.04);
}

.home-step-card-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media screen and (max-width: 600px) {
  .home-step-card-content {
    gap: 8px !important;
  }

  .home-step-card-content-num {
    font-size: 32px !important;
  }

  .home-step-card-content-title {
    font-size: 16px !important;
  }

  .home-step-card-content-dsp {
    font-size: 13px !important;
  }
}

.home-step-card-content-top {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 2px;
}

.home-step-card-content-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  background-color: #6790fd;
  opacity: 0.2;
  border-radius: 100px;
}

.home-step-card-content-cover {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-step-card-content-num {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: #60a5fa;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(97.35deg, #467ffc 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-step-card-content-num-cover {
  padding: 5px 0 0 5px;
}

.home-step-card-content-title {
  font-weight: bold;
  color: #111827;
  font-size: 24px;
  line-height: normal;
}

.home-step-card-content-dsp {
  margin-right: 24px;
  font-size: 14px;
  color: #6b7280;
}

/* Timeline — 默认隐藏，仅手机端显示 */
.timeline {
  display: none;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
}

.timeline-item {
  display: flex;
  gap: 24px;
  align-items: center;
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.timeline-image {
  flex: none;
  width: 75px;
}

.timeline-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0ecff 0%, #f0f5ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3a78ff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
  flex-shrink: 0;
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, #c5d9f8, #e8f0fe);
  margin: 8px 0;
  min-height: 32px;
}

.timeline-content {
  padding-bottom: 36px;
  padding-top: 4px;
}

.timeline-item:last-child .timeline-content {
  padding-bottom: 0;
}

.timeline-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.timeline-num {
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #3a78ff 0%, #60a5fa 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.timeline-title {
  font-weight: 700;
  font-size: 20px;
  color: #111827;
  line-height: 1;
}

.timeline-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* Security */
.home-security {
  padding: 100px 0px 100px 0px;
  background-image: url("/images/home/security-bg.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
}

.home-security-main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  width: 100%;
}

@media screen and (max-width: 800px) {
  .home-security-main {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
}

.home-security-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.home-security-text {
  font-size: 32px;
  font-weight: bold;
  color: #000;
  text-align: left;
}

.home-security-text2 {
  font-size: 16px;
  font-weight: normal;
  color: #6b7280;
  text-align: left;
}

.btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(180deg, #5a9cff 0%, #3a78ff 50%, #2d62e0 100%);
  box-shadow:
    0px 8px 24px rgba(58, 120, 255, 0.4),
    0px 2px 6px rgba(58, 120, 255, 0.3),
    inset 0px 1px 1px rgba(255, 255, 255, 0.3),
    inset 0px -1px 2px rgba(0, 0, 0, 0.1);
  color: white;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.02em;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-gradient svg {
  display: block;
  transition: transform 0.2s;
}

.btn-gradient:active {
  transform: translateY(1px);
  box-shadow:
    0px 4px 12px rgba(58, 120, 255, 0.3),
    inset 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.home-security-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-security-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #fff;
  padding: 24px;
  border-radius: 12px;
}

.home-security-card-img {
  width: 44px;
  height: 44px;
  flex: none;
}

.home-security-card-content > .title {
  font-weight: bold;
  font-size: 18px;
  color: #111827;
}

.home-security-card-content > .dsp {
  font-size: 14px;
  color: #6b7280;
}

@media screen and (max-width: 600px) {
  .home-security-card {
    padding: 16px 24px !important;
  }

  .home-security-card-content > .title {
    font-size: 16px !important;
  }

  .home-security-card-content > .dsp {
    font-size: 13px !important;
  }
}

/* Guide */
.home-guide {
  padding: 100px 0px 100px 0px;
}

.home-guide-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.home-guide-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

@media screen and (max-width: 800px) {
  .home-guide-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.home-guide-card {
  background: radial-gradient(
      86.95% 90.08% at 34.15% 13.05%,
      rgba(161, 202, 245, 0.1) 0%,
      rgba(161, 202, 245, 0.1) 100%
    )
    /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;

  box-shadow: 0px 2px 4px #d1d8e459;
  border-radius: 20px;
  padding: 24px;
  position: relative;
}

.home-guide-card-img {
  width: 48px;
}

.home-guide-card-content {
  margin-top: 12px;
}

.home-guide-card-content > .title {
  font-size: 18px;
  font-weight: bold;
  color: #111827;
}

.home-guide-card-content > .dsp {
  font-size: 14px;
  color: #6b7280;
}

.home-guide-card-content > .btn {
  display: none;
}

@media screen and (max-width: 600px) {
  .home-guide-card {
    padding: 16px;
  }

  .home-guide-card-img {
    width: 40px;
  }

  .home-guide-card-content {
    margin-top: 8px;
  }

  .home-guide-card-content > .title {
    font-size: 16px;
  }

  .home-guide-card-content > .dsp {
    font-size: 13px;
  }

  .home-guide-card-arrow {
    display: none;
  }
}

/* CTA */
.home-cta {
  padding: 96px 0;
  position: relative;
}
.home-cta-card {
  background-image: url("/images/home/ctx-banner.webp");
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: var(--radius-2xl);
  padding: 64px 48px;
  text-align: left;
  position: relative;
  color: #fff;
}

@media screen and (max-width: 600px) {
  .home-cta-card {
    background-image: url("/images/home/ctx-banner-mbl.webp");
  }
}

.home-cta-card > .content > h2 {
  font-size: 32px;
  font-weight: bold;
}

.home-cta-card > p {
  font-size: 16px;
  margin-top: 11px;
}

.home-cta-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 32px;
}

@media screen and (max-width: 600px) {
  .home-cta-card > .content > h2 {
    font-size: 26px;
  }

  .home-cta-card > p {
    font-size: 14px;
  }

  .home-cta-actions {
    flex-direction: column;
    margin-top: 53px !important;
  }
}

.home-cta-actions > .cover {
  display: flex;
}

.home-cta-actions > .cover > a > .btn-download {
  background-color: #fff;
  padding: 14px 24px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3a78ff;
  font-weight: bold;
}

.home-cta-actions > .cover > a > .btn-contact {
  border: 1px solid #fff;
  padding: 14px 24px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

/* =============================================
   移动端响应式修复
   ============================================= */

@media screen and (max-width: 768px) {
  /* 所有 section padding 缩小 */
  .home-wallet,
  .home-payment,
  .home-step,
  .home-security,
  .home-guide {
    padding: 56px 0;
  }
  .home-cta {
    padding: 56px 0;
  }

  /* 标题字号缩小 */
  .home-section-text,
  .home-security-text {
    font-size: 24px;
  }
  .home-section-text2,
  .home-security-text2 {
    font-size: 14px;
  }

  /* Wallet 手机端竖向布局（匹配 Figma） */
  .home-wallet-list {
    grid-template-columns: 1fr;
  }
  .home-wallet-card {
    flex-direction: column;
    overflow: clip;
    height: 140px;
    background:
      linear-gradient(
        152deg,
        rgba(255, 255, 255, 0.3) 49%,
        rgb(170, 207, 255) 90%
      ),
      linear-gradient(90deg, #f1f8ff 0%, #f1f8ff 100%);
  }
  .home-wallet-card-border {
    border: 1.2px solid #73a2ff;
  }
  .home-wallet-section {
    flex: none;
    padding: 16px 24px;
  }
  .py-icon-cover {
    position: absolute;
    bottom: -5px;
    right: 0px;
    width: auto;
    height: auto;
    display: block;
  }
  .py-icon {
    width: 157px;
    height: 133px;
    object-fit: contain;
    border-radius: 0;
    flex-shrink: 0;
    opacity: 0.5;
    display: none;
  }

  .py-icon-mbl {
    width: 127px;
    height: 103px;
    object-fit: contain;
    border-radius: 0;
    flex-shrink: 0;
    opacity: 0.5;
  }

  /* Step: PC版隐藏时间线，手机版隐藏原始卡片 */
  .home-step-list-cover {
    display: none;
  }
  .timeline {
    display: flex;
    /* max-width: 100%; */
    max-width: 358px;
  }
  .timeline-content {
    padding-bottom: 28px;
  }

  /* 安全区标题居中 */
  .home-security-title {
    align-items: center;
    text-align: center;
  }
  .home-security-text {
    text-align: center;
  }
  .home-security-text2 {
    text-align: center;
  }

  /* CTA 卡片优化 */
  .home-cta-card {
    padding: 40px 20px;
    text-align: center;
  }
  .home-cta-card > h2 {
    font-size: 24px;
  }
  .home-cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .home-cta-actions > a {
    width: 100%;
  }
  .home-cta-actions > a > .btn-download,
  .home-cta-actions > a > .btn-contact {
    justify-content: center;
  }
}
