/* index2 - PC 端落地页样式 */
/* idx2-hero-text 居中突出在屏幕中间 */

:root {
  --mint-50: #f0fdf4;
  --mint-100: #dcfce7;
  --mint-200: #bbf7d0;
  --mint-300: #86efac;
  --mint-400: #4ade80;
  --mint-500: #22c55e;
  --mint-600: #16a34a;
  --mint-glow: rgba(136, 216, 160, 0.4);
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--mint-50);
}

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

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

/* ---------- 动画 ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(10px, -10px); }
  66% { transform: translate(-5px, 5px); }
}
@keyframes gradientShift { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .idx2-hero-bg-blob, .idx2-hero::before { animation: none !important; }
  .idx2-hero-text h1, .idx2-hero-text p, .idx2-hero-text .idx2-btn, .idx2-hero-img { animation: fadeIn 0.5s ease-out both !important; }
}

/* ---------- Header ---------- */
.idx2-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  animation: fadeIn 0.5s ease-out;
  transition: box-shadow 0.3s;
}

.idx2-header.idx2-header-scrolled { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06); }

.idx2-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.idx2-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--mint-600);
}

.idx2-logo img { width: 36px; height: 36px; }

.idx2-nav { display: flex; gap: 28px; }

.idx2-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.idx2-nav a:hover { color: var(--mint-600); }

.idx2-btn {
  display: inline-block;
  padding: clamp(10px, 1.5vw, 14px) clamp(20px, 3vw, 32px);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.idx2-btn-primary {
  background: linear-gradient(135deg, var(--mint-400), var(--mint-600));
  color: var(--white);
  box-shadow: 0 clamp(3px, 0.5vw, 6px) clamp(12px, 2vw, 24px) var(--mint-glow);
}

.idx2-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 clamp(6px, 1vw, 10px) clamp(20px, 3vw, 40px) rgba(34, 197, 94, 0.45);
}

/* ---------- Hero：文字居中突出 ---------- */
.idx2-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}

.idx2-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(134, 239, 172, 0.25) 0%, transparent 50%),
              radial-gradient(ellipse 40% 60% at 50% 50%, rgba(34, 197, 94, 0.15) 0%, transparent 50%);
  animation: gradientShift 8s ease-in-out infinite;
  pointer-events: none;
}

.idx2-hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

.idx2-hero-bg-blob._1 { width: 300px; height: 300px; background: var(--mint-300); top: 10%; right: 10%; animation: float 6s ease-in-out infinite; }
.idx2-hero-bg-blob._2 { width: 200px; height: 200px; background: var(--mint-200); bottom: 20%; left: 5%; animation: float 8s ease-in-out infinite 1s; }
.idx2-hero-bg-blob._3 { width: 150px; height: 150px; background: var(--mint-400); top: 50%; left: 50%; animation: float 7s ease-in-out infinite 2s; }

.idx2-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 文案块：横向居中、突出在屏幕中间 */
.idx2-hero-text {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.idx2-hero-text h1 {
  margin: 0 0 20px;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  animation: fadeInUp 0.8s ease-out both;
}

.idx2-hero-text h1 span { color: var(--mint-600); }

.idx2-hero-text p {
  margin: 0 0 32px;
  font-size: 20px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.idx2-hero-text .idx2-btn {
  font-size: clamp(15px, 1.4vw, 18px);
  padding: clamp(12px, 1.5vw, 16px) clamp(24px, 4vw, 40px);
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.idx2-hero-img {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(34, 197, 94, 0.15);
  animation: fadeInUp 0.9s ease-out 0.25s both;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.idx2-hero-img:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 80px rgba(34, 197, 94, 0.2);
}

.idx2-hero-img img { width: 100%; object-fit: cover; }

/* ---------- Section ---------- */
.idx2-section {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.idx2-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.idx2-animate.idx2-visible {
  opacity: 1;
  transform: translateY(0);
}

.idx2-animate-delay-1 { transition-delay: 0.1s; }
.idx2-animate-delay-2 { transition-delay: 0.2s; }
.idx2-animate-delay-3 { transition-delay: 0.3s; }

.idx2-section-title {
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 48px;
  color: var(--text-dark);
}

.idx2-section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  text-align: center;
  max-width: 560px;
  margin: -32px auto 48px;
}

.idx2-about {
  background: var(--white);
  border-radius: 24px;
  padding: 64px 48px;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.idx2-about p {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

.idx2-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.idx2-feature-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.idx2-feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(34, 197, 94, 0.18);
}

.idx2-feature-card:hover img { transform: scale(1.05); }

.idx2-feature-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.idx2-feature-card figcaption {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.idx2-cta {
  text-align: center;
  padding: 80px 32px;
  background: linear-gradient(180deg, var(--mint-100) 0%, var(--white) 100%);
  border-radius: 24px;
  margin: 48px 0;
}

.idx2-cta h2 { font-size: 32px; font-weight: 600; margin: 0 0 16px; color: var(--text-dark); }
.idx2-cta p { font-size: 17px; color: var(--text-muted); margin: 0 0 32px; }

.idx2-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.idx2-tip-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--mint-50);
  border-radius: 16px;
  border: 1px solid rgba(34, 197, 94, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.idx2-tip-card:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.12);
}

.idx2-tip-card .idx2-tip-title { font-size: 17px; font-weight: 600; margin: 0 0 8px; color: var(--text-dark); }
.idx2-tip-card p { font-size: 15px; color: var(--text-muted); margin: 0; }

.idx2-footer-wrap { margin-top: 64px; }

/* ---------- Responsive ---------- */
@media screen and (max-width: 900px) {
  .idx2-feature-grid { grid-template-columns: 1fr; }
  .idx2-tips-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 600px) {
  .idx2-header { padding: 12px 16px; }
  .idx2-nav { display: none; }
  .idx2-hero { padding: 100px 16px 60px; }
  .idx2-hero-text h1 { font-size: 36px; }
  .idx2-hero-text p { font-size: 16px; }
  .idx2-hero-text .idx2-btn { padding: 12px 24px; font-size: 15px; }
  .idx2-section { padding: 48px 16px; }
  .idx2-section-title { font-size: 28px; }
  .idx2-about { padding: 32px 24px; }
}
