/* ============================================
   破茧·归航 — Landing 页专属样式
   ----------------------------------------------
   由 views/home/landing.php 在 $extraCss 中按需加载
   依赖 andie-theme.css 的 CSS 变量
   ============================================ */

.landing-section { width: 100%; overflow: hidden; }

/* ============================================
   Hero 区
   ============================================ */
.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #faf8f5 0%, #f5efe6 50%, #ede4d8 100%);
  padding: 6rem 1rem;
}
@media (min-width: 768px) {
  .landing-hero { padding: 7rem 2rem; }
}

/* Aurora / Mesh 背景 */
.landing-hero__aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.aurora-blob--1 {
  width: 55vw; height: 55vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(135, 80, 200, 0.55) 0%, rgba(135, 80, 200, 0) 70%);
  top: -10%; right: -10%;
  animation: landingDrift 18s ease-in-out infinite alternate;
}
.aurora-blob--2 {
  width: 45vw; height: 45vw; max-width: 600px; max-height: 600px;
  background: radial-gradient(circle, rgba(224, 142, 142, 0.5) 0%, rgba(224, 142, 142, 0) 70%);
  bottom: -5%; left: -10%;
  animation: landingDrift 22s ease-in-out infinite alternate-reverse;
}
.aurora-blob--3 {
  width: 35vw; height: 35vw; max-width: 500px; max-height: 500px;
  background: radial-gradient(circle, rgba(143, 184, 212, 0.45) 0%, rgba(143, 184, 212, 0) 70%);
  top: 35%; left: 45%;
  opacity: 0.4;
  animation: landingDrift 20s ease-in-out infinite alternate;
}
.aurora-ring {
  position: absolute;
  width: 120vw; height: 120vw;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, rgba(135, 80, 200, 0.06), rgba(224, 142, 142, 0.06), rgba(143, 184, 212, 0.06), rgba(135, 80, 200, 0.06));
  border-radius: 50%;
  animation: landingRotate 60s linear infinite;
  pointer-events: none;
}

/* ============================================
   Hero 内容
   ============================================ */
.landing-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--andie-charcoal);
  opacity: 0;
  transform: translateY(30px);
  animation: landingSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.landing-title .dot {
  color: var(--andie-sage);
  display: inline-block;
  animation: landingPulseDot 2s ease-in-out infinite;
}
.landing-lead {
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  color: #555;
  max-width: 680px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(24px);
  animation: landingSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}
.landing-hero-badges {
  opacity: 0;
  transform: translateY(16px);
  animation: landingSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.landing-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(135, 80, 200, 0.12);
  color: var(--andie-sage-dark);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(135, 80, 200, 0.06);
  transition: all 0.25s ease;
  cursor: default;
}
.landing-badge-pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(135, 80, 200, 0.12);
  border-color: rgba(135, 80, 200, 0.22);
}
.landing-hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: landingSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

/* 高级按钮 */
.btn-hero-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--andie-sage), var(--andie-sage-dark));
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.95rem 2.25rem;
  border-radius: 0.875rem;
  font-size: 1.0625rem;
  box-shadow: 0 8px 24px rgba(135, 80, 200, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1;
}
.btn-hero-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(135, 80, 200, 0.42);
}
.btn-hero-primary:hover::before { opacity: 1; }
.btn-hero-primary:active { transform: translateY(0); }

.btn-hero-secondary {
  position: relative;
  background: transparent;
  border: 1.5px solid var(--andie-sage);
  color: var(--andie-sage-dark);
  font-weight: 600;
  padding: 0.95rem 2rem;
  border-radius: 0.875rem;
  font-size: 1.0625rem;
  transition: all 0.25s ease;
  overflow: hidden;
}
.btn-hero-secondary:hover {
  background: var(--andie-sage);
  color: #fff;
  border-color: var(--andie-sage);
}

/* 滚动提示 */
.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--andie-sage);
  font-size: 0.75rem;
  opacity: 0;
  animation: landingFadeIn 1s ease 1.2s forwards;
}
.hero-scroll-hint .mouse {
  width: 22px; height: 34px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}
.hero-scroll-hint .mouse::after {
  content: '';
  position: absolute;
  width: 4px; height: 4px;
  background: currentColor;
  border-radius: 50%;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: landingScrollWheel 1.6s ease-in-out infinite;
}

/* ============================================
   信任条 / 数字
   ============================================ */
.landing-trust {
  background: linear-gradient(180deg, #faf8f5, #fff);
  padding: 3rem 1rem;
  border-bottom: 1px solid rgba(135, 80, 200, 0.08);
}
.trust-stat { text-align: center; }
.trust-stat__number {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--andie-sage), var(--andie-sage-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
          background-clip: text;
  line-height: 1;
}
.trust-stat__label {
  font-size: 0.875rem;
  color: #777;
  margin-top: 0.35rem;
}

/* ============================================
   通用区块
   ============================================ */
.landing-section-title {
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--andie-charcoal);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.landing-section-sub {
  color: #666;
  max-width: 640px;
  line-height: 1.8;
  font-size: 1.0625rem;
}

/* 玻璃卡 */
.landing-glass-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(135, 80, 200, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 28px rgba(61, 61, 61, 0.06);
  backdrop-filter: blur(12px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  will-change: transform;
}
.landing-glass-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 44px rgba(61, 61, 61, 0.1);
}

/* 3D hover 卡 */
.landing-card-3d {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(135, 80, 200, 0.08);
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.landing-card-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(135, 80, 200, 0.25), rgba(224, 142, 142, 0.25), rgba(143, 184, 212, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.landing-card-3d:hover::before { opacity: 1; }
.landing-card-3d:hover { box-shadow: 0 16px 40px rgba(61, 61, 61, 0.1); }

/* 模块图标 */
.landing-icon {
  width: 60px; height: 60px;
  border-radius: 1.125rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.625rem;
  margin-bottom: 1.25rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.landing-card-3d:hover .landing-icon { transform: scale(1.08) rotate(-4deg); }
.landing-icon--sage     { background: rgba(135, 80, 200, 0.1);  box-shadow: 0 6px 18px rgba(135, 80, 200, 0.15); }
.landing-icon--rose     { background: rgba(224, 142, 142, 0.12); box-shadow: 0 6px 18px rgba(224, 142, 142, 0.15); }
.landing-icon--blue     { background: rgba(143, 184, 212, 0.12); box-shadow: 0 6px 18px rgba(143, 184, 212, 0.15); }
.landing-icon--lavender { background: rgba(184, 169, 201, 0.12); box-shadow: 0 6px 18px rgba(184, 169, 201, 0.15); }
.landing-icon--mint     { background: rgba(155, 196, 181, 0.12); box-shadow: 0 6px 18px rgba(155, 196, 181, 0.15); }
.landing-icon--sand     { background: rgba(232, 223, 211, 0.5);  box-shadow: 0 6px 18px rgba(232, 223, 211, 0.25); }
.landing-icon--avatar {
  width: 44px; height: 44px;
  font-size: 1rem;
  margin-bottom: 0;
}

/* 步骤 */
.landing-step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  color: #fff;
  background: linear-gradient(135deg, var(--andie-sage), var(--andie-sage-light));
  box-shadow: 0 6px 18px rgba(135, 80, 200, 0.3);
  transition: transform 0.3s ease;
}
.landing-step-card:hover .landing-step-number { transform: scale(1.1); }

/* 引用卡 */
.landing-quote-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1.25rem;
  padding: 1.75rem;
  height: 100%;
  border: 1px solid rgba(135, 80, 200, 0.08);
  box-shadow: 0 6px 22px rgba(61, 61, 61, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.landing-quote-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(61, 61, 61, 0.08);
}
.landing-quote-icon {
  font-size: 2rem;
  color: var(--andie-sage);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.landing-quote-text { line-height: 1.9; color: #444; }

/* 安全特性 */
.landing-safety-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1.125rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.landing-safety-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(61, 61, 61, 0.06);
}
.landing-safety-item--sage { background: rgba(135, 80, 200, 0.05); }
.landing-safety-item--rose { background: rgba(224, 142, 142, 0.07); }
.landing-safety-item--blue { background: rgba(143, 184, 212, 0.07); }
.landing-safety-item--mint { background: rgba(155, 196, 181, 0.07); }

/* FAQ */
.landing-faq-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(135, 80, 200, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.landing-faq-item:hover {
  box-shadow: 0 6px 18px rgba(135, 80, 200, 0.08);
}
.landing-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.25rem;
  background: transparent;
  border: none;
  font-weight: 600;
  color: var(--andie-charcoal);
  text-align: left;
  cursor: pointer;
}
.landing-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.25rem;
  color: #555;
  line-height: 1.7;
}
.landing-faq-item.is-open .landing-faq-answer {
  max-height: 300px;
  padding-bottom: 1.125rem;
}
.landing-faq-chevron {
  transition: transform 0.3s ease;
  font-size: 0.875rem;
  color: var(--andie-sage);
}
.landing-faq-item.is-open .landing-faq-chevron { transform: rotate(180deg); }

/* CTA */
.landing-cta {
  position: relative;
  background: linear-gradient(135deg, var(--andie-sage), var(--andie-sage-dark));
  border-radius: 1.75rem;
  color: #fff;
  padding: 3.5rem 1.5rem;
  overflow: hidden;
}
@media (min-width: 768px) { .landing-cta { padding: 4.5rem 2.5rem; } }
.landing-cta__glow {
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: landingCtaPulse 4s ease-in-out infinite;
  pointer-events: none;
}

/* Footer */
.landing-footer {
  background: linear-gradient(180deg, #f2ede6, #e8dfd3);
  padding: 3rem 1rem 2rem;
  border-top: 1px solid rgba(135, 80, 200, 0.1);
}
.landing-footer a { position: relative; text-decoration: none; }
.landing-footer a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: currentColor;
  transition: width 0.3s ease;
}
.landing-footer a:hover::after { width: 100%; }
.landing-footer-divider { border-color: rgba(135, 80, 200, 0.15) !important; }

/* 链接 */
.landing-link {
  color: var(--andie-charcoal);
  opacity: 0.8;
  font-size: 0.875rem;
}
.landing-link:hover { color: var(--andie-sage-dark); opacity: 1; }

/* 滚动触发动画 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.counter-animate { font-variant-numeric: tabular-nums; }

/* ============================================
   Keyframes
   ============================================ */
@keyframes landingDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.08); }
}
@keyframes landingRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes landingSlideUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes landingPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.7; }
}
@keyframes landingFadeIn {
  to { opacity: 1; }
}
@keyframes landingScrollWheel {
  0%   { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}
@keyframes landingCtaPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .aurora-blob,
  .aurora-ring,
  .landing-title,
  .landing-lead,
  .landing-hero-badges,
  .landing-hero-cta,
  .hero-scroll-hint,
  .landing-cta__glow,
  .landing-title .dot {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .landing-card-3d { will-change: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   品牌徽记 Hero —— 按官方首页效果图：徽记圆牌 + logo 平铺底纹
   ============================================ */
.emblem-hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.2rem; padding: 5rem 1.25rem; overflow: hidden;
  background: #f4f1e7;
}
.emblem-hero__pattern {
  position: absolute; inset: -2%; z-index: 0; pointer-events: none;
  background-image: url('../images/logo-pattern.png');
  background-size: 300px auto; background-repeat: repeat; opacity: .92;
  -webkit-mask-image: radial-gradient(125% 105% at 50% 45%, #000 58%, transparent 100%);
          mask-image: radial-gradient(125% 105% at 50% 45%, #000 58%, transparent 100%);
}
.emblem-hero__circle {
  position: relative; z-index: 1;
  width: clamp(280px, 46vw, 480px); aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .35rem; padding: 2rem; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #ffffff 62%, #fbfaf6 100%);
  box-shadow: 0 40px 90px -28px rgba(78,66,128,.40), 0 8px 28px rgba(78,66,128,.12), inset 0 0 0 1px rgba(255,255,255,.6);
}
.emblem-hero__logo { width: clamp(118px, 22vw, 196px); height: auto; margin-bottom: .35rem; }
.emblem-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 700; letter-spacing: .12em; margin: 0;
  background: linear-gradient(100deg, #4a3f86, #5e6fb2 55%, #6aa6d8);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #54508a;
}
.emblem-hero__title .dot { -webkit-text-fill-color: #8aa9d8; color: #8aa9d8; margin: 0 .1em; }
.emblem-hero__tagline {
  font-family: var(--font-display); margin: .3rem 0 0;
  font-size: clamp(.8rem, 2.2vw, 1.02rem); letter-spacing: .14em; color: #8983a8;
}
.emblem-hero__cta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
@media (max-width: 560px) {
  .emblem-hero__circle { width: min(80vw, 360px); }
  .emblem-hero__pattern { background-size: 210px auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .emblem-hero__circle { animation: emblemRise .9s cubic-bezier(.22,1,.36,1) both; }
  @keyframes emblemRise { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
}
