/* ============================================================
   腰约产品官网 · 设计系统 + 板块样式
   设计 token 严格对应《腰约产品网站设计方案》第三节
   ============================================================ */

:root {
  /* 色彩 */
  --color-primary: #16A34A;
  --color-primary-strong: #15803D;
  --color-accent: #FF875C;
  --color-accent-hover: #FF9570;
  --color-bg: #FAFCFA;
  --color-ink: #1A1D2E;
  --color-ink-60: rgba(26, 29, 46, 0.6);
  --color-ink-40: rgba(26, 29, 46, 0.4);
  --color-card: #FFFFFF;

  /* 阴影 */
  --shadow-card: 0 4px 24px rgba(22, 163, 74, 0.08);
  --shadow-card-hover: 0 12px 32px rgba(22, 163, 74, 0.15);
  --shadow-btn-hover: 0 8px 32px rgba(22, 163, 74, 0.15);
  --shadow-btn-accent: 0 8px 24px rgba(255, 135, 92, 0.4);
  --shadow-phone: 0 24px 64px rgba(22, 163, 74, 0.12);

  /* 圆角 */
  --radius-btn: 12px;
  --radius-card: 16px;
  --radius-img: 14px;
  --radius-phone: 32px;
  --radius-phone-screen: 24px;

  /* 动效 */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --dur-micro: 200ms;
  --dur-mid: 500ms;
  --dur-complex: 700ms;

  /* 字体 */
  --font-zh: "Noto Sans SC", "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-en: "Inter", "Poppins", var(--font-zh);

  --container: 1200px;
  --section-gap: 120px;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-zh);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-bg);
  overflow-x: hidden;
  text-wrap: pretty;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
p { margin: 0; }

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

.section { padding: calc(var(--section-gap) / 2) 0; }

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
  margin-bottom: 56px;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-en);
  letter-spacing: 0.01em;
  transition: transform var(--dur-micro) var(--ease-standard),
              box-shadow var(--dur-micro) var(--ease-standard),
              background-color var(--dur-micro) var(--ease-standard);
  will-change: transform;
}

.btn:active { transform: scale(0.98); transition-duration: 100ms; }

.btn-dark {
  background: var(--color-ink);
  color: #fff;
}
.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 29, 46, 0.3);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--color-primary-strong);
  box-shadow: var(--shadow-btn-hover);
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 252, 250, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(22, 163, 74, 0.08);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
}

.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 22%;
  object-fit: cover;
}
.logo-img-footer { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.nav-links a {
  color: var(--color-ink-60);
  transition: color var(--dur-micro) var(--ease-standard);
}
.nav-links a:hover { color: var(--color-primary); }

.nav-cta {
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  background: var(--color-primary);
  color: #fff !important;
  font-weight: 500;
  transition: transform var(--dur-micro) var(--ease-standard),
              box-shadow var(--dur-micro) var(--ease-standard) !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

/* ============================================================
   板块1：Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(22, 163, 74, 0.14) 0%,
    rgba(250, 252, 250, 0) 45%,
    rgba(255, 135, 92, 0.10) 100%);
  background-size: 200% 200%;
  animation: heroBgIn .4s var(--ease-enter) both,
             heroBgMove 20s linear .4s infinite;
  pointer-events: none;
}

@keyframes heroBgIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes heroBgMove {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* 晨跑实景氛围图：低透明度 + 渐变遮罩，左侧文字区保持干净 */
.hero-photo {
  --hero-photo-op: 0.34;
  position: absolute;
  inset: 0;
  background: url('../assets/img/hero-bg.jpg') center right / cover no-repeat;
  opacity: var(--hero-photo-op);
  -webkit-mask-image:
    linear-gradient(105deg, transparent 28%, rgba(0, 0, 0, 0.55) 55%, #000 80%),
    linear-gradient(to bottom, #000 55%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(105deg, transparent 28%, rgba(0, 0, 0, 0.55) 55%, #000 80%),
    linear-gradient(to bottom, #000 55%, transparent 96%);
  mask-composite: intersect;
  animation: heroPhotoIn 1.2s var(--ease-enter) .3s backwards,
             heroPhotoBreathe 24s ease-in-out 1.5s infinite alternate;
  pointer-events: none;
  will-change: transform;
}

@keyframes heroPhotoIn {
  from { opacity: 0; }
  to   { opacity: var(--hero-photo-op); }
}
@keyframes heroPhotoBreathe {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

/* 几何圆点粒子 */
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-primary);
}
.particle.p1 { width: 14px; height: 14px; top: 18%; left: 8%;  animation: floatY 5s ease-in-out infinite, fadePulse 5s ease-in-out infinite; }
.particle.p2 { width: 10px; height: 10px; top: 65%; left: 5%;  background: var(--color-accent); animation: floatX 6s ease-in-out infinite, fadePulse 6s ease-in-out infinite; }
.particle.p3 { width: 18px; height: 18px; top: 12%; right: 12%; animation: floatDiag 4s ease-in-out infinite, fadePulse 4s ease-in-out infinite; }
.particle.p4 { width: 8px;  height: 8px;  top: 78%; right: 20%; background: var(--color-accent); animation: floatY 5.5s ease-in-out .8s infinite, fadePulse 5.5s ease-in-out .8s infinite; }
.particle.p5 { width: 12px; height: 12px; top: 40%; left: 46%; animation: floatDiag 6s ease-in-out .4s infinite, fadePulse 6s ease-in-out .4s infinite; }

@keyframes floatY    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatX    { 0%,100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@keyframes floatDiag { 0%,100% { transform: translate(0,0); } 50% { transform: translate(6px,-6px); } }
@keyframes fadePulse { 0%,100% { opacity: .3; } 50% { opacity: .6; } }

.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

/* 加载序列：各元素按 --d 延迟进入（基准态=最终态，动画只做增强） */
.anim-item {
  opacity: 1;
  animation: riseIn .4s var(--ease-enter) var(--d, 0s) backwards;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: clamp(40px, 5.2vw, 60px);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(45deg, #15803D, #22C55E);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  margin-top: 20px;
  font-size: clamp(17px, 1.8vw, 22px);
  color: var(--color-ink-60);
  max-width: 30em;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 28px;
  font-size: 14px;
  color: var(--color-ink-40);
}
.count-up {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

/* Hero 手机 */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.anim-phone {
  opacity: 1;
  animation: phoneIn .6s var(--ease-enter) .8s backwards;
}
@keyframes phoneIn {
  from { opacity: 0; transform: translateX(50px) rotate(-20deg); }
  to   { opacity: 1; transform: translateX(0) rotate(-15deg); }
}

/* iPhone mockup（纯 CSS） */
.phone {
  position: relative;
  border-radius: var(--radius-phone);
  will-change: transform;
}
.phone-frame {
  position: relative;
  padding: 10px;
  background: #14162A;
  border-radius: var(--radius-phone);
  box-shadow: var(--shadow-phone), inset 0 0 0 2px rgba(255,255,255,0.06);
}
.phone-screen {
  width: 100%;
  border-radius: var(--radius-phone-screen);
  aspect-ratio: 590 / 1278;
  object-fit: cover;
  background: #F2F3FA;
}
.phone-island {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 3.2%;
  min-height: 16px;
  background: #14162A;
  border-radius: 999px;
}

.phone-hero { width: min(300px, 62vw); transform: rotate(-15deg); }
.anim-phone .phone-hero { animation: phoneFloat 5s ease-in-out 1.4s infinite; }
@keyframes phoneFloat {
  0%, 100% { transform: rotate(-15deg) translateY(0); }
  50%      { transform: rotate(-15deg) translateY(-8px); }
}

.hero-illo {
  position: absolute;
  width: 150px;
  right: -6%;
  bottom: -4%;
  border-radius: var(--radius-img);
  opacity: 0.95;
  animation: riseIn .5s var(--ease-enter) 1.3s backwards, floatY 6s ease-in-out 1.8s infinite;
  pointer-events: none;
}

/* ============================================================
   板块2：核心价值
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px 28px 28px;
  transition: transform 300ms var(--ease-standard),
              box-shadow 300ms var(--ease-standard);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
/* 卡片进入后图标弹跳 */
.in-view .feature-icon { animation: iconPop .3s var(--ease-bounce) calc(var(--d, 0s) + .2s) both; }
@keyframes iconPop {
  0%   { scale: 1; }
  50%  { scale: 1.1; }
  100% { scale: 1; }
}
/* 图标持续浮动 */
.float-icon { animation: iconFloat 3s ease-in-out var(--fd, 0s) infinite; }
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.feature-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.feature-card p  { font-size: 15px; color: var(--color-ink-60); margin-bottom: 22px; }

.feature-shot {
  border-radius: var(--radius-img);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* ============================================================
   板块3：产品展示轮播
   ============================================================ */
.showcase {
  background: linear-gradient(to bottom, rgba(22, 163, 74, 0.10), rgba(22, 163, 74, 0.02));
  padding: 80px 0;
}

.carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.carousel-viewport {
  overflow: hidden;
  padding: 40px 0 8px;
  cursor: grab;
}
.carousel-viewport.dragging { cursor: grabbing; }

.carousel-track {
  position: relative;
  height: 620px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: 270px;
  margin: 0;
  text-align: center;
  transition: transform 600ms var(--ease-standard),
              opacity 600ms var(--ease-standard),
              filter 600ms var(--ease-standard);
  will-change: transform, opacity;
}

.phone-carousel { width: 100%; }

.carousel-slide figcaption {
  margin-top: 18px;
  font-size: 14px;
  color: var(--color-ink-60);
}

/* 当前手机轻微浮动 */
.carousel-slide.is-active .phone-carousel { animation: carouselFloat 4s ease-in-out infinite; }
.carousel-slide.is-side .phone-carousel   { animation: carouselFloatSide 4s ease-in-out infinite; }
@keyframes carouselFloat {
  0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); }
}
@keyframes carouselFloatSide {
  0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); }
}

/* 箭头 */
.carousel-arrow {
  position: absolute;
  top: 42%;
  z-index: 30;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-primary);
  opacity: 0.5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--dur-micro) var(--ease-standard),
              background-color var(--dur-micro) var(--ease-standard),
              transform 100ms var(--ease-standard);
}
.carousel-arrow:hover {
  opacity: 1;
  background: rgba(22, 163, 74, 0.1);
}
.carousel-arrow:active { transform: scale(0.95); }
.carousel-arrow.prev { left: 8px; }
.carousel-arrow.next { right: 8px; }

/* 指示器 */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(26, 29, 46, 0.18);
  cursor: pointer;
  transition: width 300ms var(--ease-standard),
              background-color 300ms var(--ease-standard),
              transform var(--dur-micro) var(--ease-standard);
}
.carousel-dot:hover { transform: scale(1.25); }
.carousel-dot.is-active {
  width: 12px;
  background: var(--color-primary);
}

/* ============================================================
   板块4：如何使用
   ============================================================ */
.steps { background: #fff; padding: 80px 0 100px; }

.steps-wrap { position: relative; }

.steps-line {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: 40px;
  overflow: visible;
}
.steps-path {
  stroke-dasharray: 6 8;
  transition: stroke-dashoffset .4s var(--ease-standard);
}

.steps-grid {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step { text-align: center; padding: 0 12px; }

.step-icon-wrap {
  position: relative;
  display: inline-flex;
  margin-bottom: 24px;
}

.step-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  /* 实色（≈ rgba(108,127,232,0.2) 叠白底），遮住从圆心后方穿过的虚线 */
  background: #D0EDDB;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.in-view .step-circle { animation: circlePop .5s var(--ease-bounce) var(--d, 0s) both; }
@keyframes circlePop {
  from { scale: 0; } to { scale: 1; }
}
.in-view .step-circle svg { animation: iconFadeIn .3s var(--ease-enter) calc(var(--d, 0s) + .1s) both; }
@keyframes iconFadeIn {
  from { opacity: 0; scale: 0; } to { opacity: 1; scale: 1; }
}
/* 图标持续轻微旋转 */
.step-circle svg { animation: iconSpin 4s ease-in-out infinite; }
@keyframes iconSpin {
  0%, 100% { rotate: -2deg; } 50% { rotate: 2deg; }
}

.step-num {
  position: absolute;
  top: -14px;
  right: -22px;
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.85;
}

.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step p  { font-size: 15px; color: var(--color-ink-60); max-width: 24em; margin: 0 auto; }

/* ============================================================
   板块5：用户见证
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 300ms var(--ease-standard),
              box-shadow 300ms var(--ease-standard);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.testimonial-head { display: flex; align-items: center; gap: 14px; }
.testimonial-head h3 { font-size: 17px; font-weight: 700; }
.testimonial-meta { font-size: 14px; color: var(--color-ink-40); }

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-card);
  animation: avatarBreathe 4s ease-in-out infinite;
}
/* 卡片进入后头像弹入 */
.in-view .testimonial-avatar {
  animation: avatarIn .4s var(--ease-enter) calc(var(--d, 0s) + .2s) both,
             avatarBreathe 4s ease-in-out calc(var(--d, 0s) + .6s) infinite;
}
.testimonial-card:hover .testimonial-avatar { animation-duration: .4s, 2s; }

@keyframes avatarIn {
  from { opacity: 0; scale: 0.8; } to { opacity: 1; scale: 1; }
}
@keyframes avatarBreathe {
  0%, 100% { scale: 1; } 50% { scale: 1.02; }
}

.testimonial-quote {
  font-size: 15px;
  color: var(--color-ink-60);
  flex: 1;
}

.result-tag {
  align-self: flex-start;
  background: var(--color-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
}
.in-view .result-tag {
  animation: tagSlide .3s var(--ease-bounce) var(--d, .4s) both;
}
@keyframes tagSlide {
  from { opacity: 0; transform: translateX(20px); }
  60%  { opacity: 1; transform: translateX(-3px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   板块6：下载引导
   ============================================================ */
.download {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.download-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(108,127,232,0.15), rgba(255,135,92,0.08));
  opacity: 0;
  transition: opacity 800ms var(--ease-standard);
}
.download.in-view .download-bg { opacity: 1; }

.download-inner { position: relative; text-align: center; }
.download .section-title { margin-bottom: 16px; }
.download-sub { font-size: 19px; color: var(--color-ink-60); }
.download .hero-actions { justify-content: center; }

.qr-card {
  margin: 44px auto 0;
  width: fit-content;
  background: #fff;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-card);
  padding: 20px 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: qrFloat 3s ease-in-out infinite;
}
.qr-card img { width: 160px; height: 160px; border-radius: 8px; }
.qr-card span { font-size: 14px; color: var(--color-ink-60); }
.in-view .qr-card {
  animation: qrIn .5s var(--ease-enter) .6s both, qrFloat 3s ease-in-out 1.1s infinite;
}
@keyframes qrIn {
  from { opacity: 0; transform: translateY(30px) rotate(-5deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0); }
}
@keyframes qrFloat {
  0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); }
}

/* ============================================================
   板块7：页脚
   ============================================================ */
.footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.8);
  padding: 56px 0 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { color: #fff; font-size: 18px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 2px; }

.footer-links { display: flex; gap: 28px; font-size: 14px; }
.footer-links a {
  color: rgba(255,255,255,0.8);
  transition: color var(--dur-micro) var(--ease-standard);
}
.footer-links a:hover { color: var(--color-accent); }

.footer-social { display: flex; gap: 14px; }
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  transition: transform var(--dur-micro) var(--ease-standard),
              background-color var(--dur-micro) var(--ease-standard),
              color var(--dur-micro) var(--ease-standard);
}
.in-view .social-icon { animation: socialIn .3s var(--ease-enter) calc(var(--d, 0s)) both; }
@keyframes socialIn {
  from { opacity: 0; scale: 0.8; } to { opacity: 1; scale: 1; }
}
.social-icon:hover {
  transform: scale(1.1);
  background: rgba(255, 135, 92, 0.2);
  color: var(--color-accent);
}

.footer-copy {
  margin-top: 40px;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================
   滚动触发进入动效（JS 加 .in-view）
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms var(--ease-enter) var(--d, 0s),
              transform 600ms var(--ease-enter) var(--d, 0s);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.feature-card.reveal, .testimonial-card.reveal { transform: translateY(40px) scale(0.95); }
.feature-card.reveal.in-view, .testimonial-card.reveal.in-view { transform: translateY(0) scale(1); }
.feature-card.reveal.in-view:hover, .testimonial-card.reveal.in-view:hover { transform: translateY(-4px) scale(1); }

.reveal-x {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 600ms var(--ease-enter) var(--d, 0s),
              transform 600ms var(--ease-enter) var(--d, 0s);
}
.reveal-x.in-view { opacity: 1; transform: translateX(0); }

.footer { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-enter), transform 600ms var(--ease-enter); }
.footer.in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-gap: 100px; }
  body { font-size: 16px; }
  .feature-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:last-child, .testimonial-card:last-child { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; width: 100%; }
  .hero-inner { gap: 24px; }
}

@media (max-width: 768px) {
  :root { --section-gap: 80px; }
  body { font-size: 15px; }

  .nav-links a:not(.nav-cta) { display: none; }
  .container { padding: 0 20px; }

  .hero { min-height: auto; padding: 110px 0 70px; }
  .hero-photo {
    --hero-photo-op: 0.16;
    -webkit-mask-image:
      linear-gradient(105deg, transparent 40%, rgba(0, 0, 0, 0.5) 68%, #000 88%),
      linear-gradient(to bottom, #000 50%, transparent 92%);
    mask-image:
      linear-gradient(105deg, transparent 40%, rgba(0, 0, 0, 0.5) 68%, #000 88%),
      linear-gradient(to bottom, #000 50%, transparent 92%);
  }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-visual { margin-top: 24px; }
  .anim-phone { animation-name: phoneInUp; }
  @keyframes phoneInUp {
    from { opacity: 0; transform: translateY(40px) rotate(-18deg); }
    to   { opacity: 1; transform: translateY(0) rotate(-15deg); }
  }
  .particle.p4, .particle.p5 { display: none; }
  .hero-illo { width: 100px; right: 0; }

  .feature-grid, .testimonial-grid, .steps-grid { grid-template-columns: 1fr; }
  .feature-card:last-child, .testimonial-card:last-child { max-width: none; }
  .steps-line { display: none; }
  .step p { max-width: 30em; }

  .carousel-track { height: 520px; }
  .carousel-slide { width: 210px; }
  .carousel-arrow { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; }
}

/* ============================================================
   可访问性：减少动效
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-x, .footer, .anim-item, .anim-phone { opacity: 1 !important; transform: none !important; }
}
