/* ============================================================
   DanaGo iOS H5 落地页 —— 全局样式
   主题绿 #53C164 / 深绿 #3AA74F；纯静态、移动优先、零依赖。
   首屏关键样式已在 index.html 内联（保持一致），此处为完整版。
   ============================================================ */

:root {
  --c-primary: #53C164;
  --c-primary-dark: #3AA74F;
  --c-bg-top: #F0FBF2;
  --c-bg-bottom: #E3F6E8;
  --c-text: #14532D;
  --c-muted: #4B5563;
  --c-card: #FFFFFF;
  --c-gold: #F5A623;
  --c-border: #DCF3E2;
  --radius-card: 16px;
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.05);
  --grad-cta: linear-gradient(135deg, #53C164, #3AA74F);
  --grad-bg: linear-gradient(160deg, #F0FBF2, #E3F6E8);
  --maxw: 480px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--c-text);
  background: var(--grad-bg);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* 给常驻 sticky CTA 预留空间，避免遮挡内容 */
  padding-bottom: calc(96px + var(--safe-bottom));
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 顶部品牌栏 ---------- */
.site-header {
  padding: calc(16px + var(--safe-top)) 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-cta);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.brand__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ---------- ① Hero ---------- */
.hero {
  padding: 40px 0 48px;
  text-align: center;
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-primary-dark);
  margin-bottom: 12px;
}

.hero__title {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero__subtitle {
  margin-top: 14px;
  font-size: 15px;
  color: var(--c-muted);
}

/* 评分星标 + 下载量（金色，CTA 上方）*/
.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--c-muted);
}

.rating__stars {
  color: var(--c-gold);
  letter-spacing: 2px;
  font-size: 16px;
}

.rating__score {
  font-weight: 800;
  color: var(--c-text);
}

.rating__sep {
  opacity: 0.5;
}

/* ---------- CSS 手机模型 mockup ---------- */
.phone {
  width: 280px;
  height: 570px;
  margin: 28px auto 32px;
  position: relative;
  border-radius: 36px;
  background: #0B1220;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(20, 83, 45, 0.28);
}

/* 刘海 notch */
.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #0B1220;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 27px;
  overflow: hidden;
  background: linear-gradient(180deg, #53C164, #3AA74F);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.phone__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 18px 16px;
  color: #fff;
}

.phone__brand {
  font-size: 17px;
  font-weight: 800;
}

.phone__tag {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.phone__card {
  width: 82%;
  margin-top: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.phone__card-label {
  font-size: 11px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phone__card-amount {
  font-size: 26px;
  font-weight: 800;
  color: var(--c-text);
}

.phone__card-meta {
  font-size: 12px;
  color: var(--c-muted);
}

.phone__btn {
  margin-top: 12px;
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  background: var(--grad-cta);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.phone__stars {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.phone__stars span {
  color: #FFE9A8;
}

/* ---------- CTA 按钮 ---------- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-card);
  background: var(--grad-cta);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(58, 167, 79, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cta:active {
  transform: translateY(1px) scale(0.995);
  filter: brightness(0.97);
}

.cta__label {
  font-size: 17px;
  line-height: 1.2;
}

.cta__sub {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}

/* ---------- 通用 Section ---------- */
.section {
  padding: 20px 0;
}

.section__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.section__lead {
  margin-top: 6px;
  font-size: 14px;
  color: var(--c-muted);
}

/* ---------- ② 信任层 ---------- */
.trust {
  margin-top: 8px;
}

.trust__list {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--c-card);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.trust__item--warn {
  border: 1px solid #FBD38D;
  background: #FFF7E6;
}

.trust__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(83, 193, 100, 0.14);
  color: var(--c-primary-dark);
  font-size: 15px;
}

.trust__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust__body strong {
  font-size: 14px;
}

.trust__body span {
  font-size: 13px;
  color: var(--c-muted);
}

.trust__body em {
  font-style: normal;
  font-weight: 600;
  color: var(--c-text);
}

/* ---------- ③ 利益层 ---------- */
.benefit__grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.benefit__card {
  background: var(--c-card);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.benefit__label {
  font-size: 12px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.benefit__value {
  font-size: 16px;
  font-weight: 800;
}

.benefit__example {
  margin-top: 14px;
  background: #EAF7EE;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 16px;
}

.benefit__example-title {
  font-size: 14px;
  margin-bottom: 4px;
}

.benefit__example p {
  font-size: 13px;
  color: var(--c-muted);
}

.benefit__disclaimer {
  margin-top: 12px;
  font-size: 12px;
  color: var(--c-muted);
  opacity: 0.85;
}

/* ---------- ④ 步骤层 ---------- */
.steps__list {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: step;
}

.steps__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--c-card);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.steps__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-cta);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.steps__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.steps__body strong {
  font-size: 14px;
}

.steps__body span {
  font-size: 13px;
  color: var(--c-muted);
}

/* ---------- ⑤ 底部 Footer ---------- */
.footer {
  padding: 28px 0 calc(20px + var(--safe-bottom));
  color: var(--c-muted);
  font-size: 12px;
}

.footer__disclaimer p {
  line-height: 1.6;
}

.footer__links {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--c-primary-dark);
  font-weight: 600;
}

.footer__meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  font-weight: 700;
  color: var(--c-text);
}

.footer__copyright {
  margin-top: 8px;
  opacity: 0.8;
}

/* ---------- 常驻 sticky CTA ---------- */
.cta-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(240, 251, 242, 0), rgba(240, 251, 242, 0.95) 30%, #F0FBF2);
  pointer-events: none;
}

.cta-sticky__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  pointer-events: auto;
}

/* ---------- 响应式 ---------- */
/* 桌面端：居中窄列，避免内容被拉伸过宽 */
@media (min-width: 720px) {
  .hero__title {
    font-size: 40px;
  }
}

/* 小屏：压缩手机模型尺寸 */
@media (max-width: 359px) {
  .phone {
    width: 240px;
    height: 490px;
  }
  .hero__title {
    font-size: 28px;
  }
}

/* 动效：区块淡入 */
.section {
  animation: fade-up 0.5s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .section {
    animation: none;
  }
  .cta {
    transition: none;
  }
}
