/* Google Fonts 导入 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* CSS 变量定义 - 辅食暖系配色系统 */
:root {
  --primary: #ff8a65;         /* 暖心蜜桃桔 */
  --primary-light: #ffbdaf;   /* 柔粉桔 */
  --primary-dark: #e56d4c;    /* 深桔色 */
  --secondary: #4db6ac;       /* 舒缓薄荷绿 */
  --secondary-light: #b2dfdb; /* 淡绿色 */
  --bg-cream: #faf7f2;        /* 柔奶酪色背景 */
  --card-bg: rgba(255, 255, 255, 0.85); /* 磨砂玻璃白 */
  --text-dark: #37474f;       /* 深碳灰 */
  --text-muted: #78909c;      /* 暖灰蓝 */
  --shadow-sm: 0 4px 6px rgba(186, 172, 155, 0.1);
  --shadow-md: 0 10px 25px rgba(186, 172, 155, 0.2);
  --shadow-lg: 0 20px 40px rgba(186, 172, 155, 0.25);
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-family: 'Outfit', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 基础重置 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 189, 175, 0.22), transparent 38%),
    radial-gradient(circle at 92% 90%, rgba(77, 182, 172, 0.14), transparent 42%),
    var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 导航栏 */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.8);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(229, 222, 212, 0.5);
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(255, 138, 101, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-nav-download {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white !important;
  padding: 0.6rem 1.25rem;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(255, 138, 101, 0.25);
  font-weight: 600 !important;
}

.btn-nav-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 138, 101, 0.4);
}

.btn-nav-download::after {
  display: none !important;
}

/* 巨幕 Hero Section */
.hero {
  padding: 10rem 2rem 6rem;
  display: flex;
  align-items: center;
  position: relative;
  min-height: 90vh;
  background: radial-gradient(circle at 80% 20%, rgba(255, 189, 175, 0.15) 0%, transparent 60%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-dark) 60%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(255, 138, 101, 0.3);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 138, 101, 0.45);
}

.btn-secondary {
  border: 2px solid rgba(229, 222, 212, 0.8);
  color: var(--text-dark);
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1.1rem;
  background: white;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-secondary:hover {
  background: var(--bg-cream);
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup-container {
  position: relative;
  max-width: 100%;
}

.hero-mockup {
  max-width: 440px;
  width: 100%;
  height: auto;
  border-radius: 20px;
  animation: float 6s ease-in-out infinite;
}

.floating-badge {
  position: absolute;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 0.8rem 1.2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float-reverse 7s ease-in-out infinite;
}

.badge-1 {
  top: 15%;
  left: -10%;
}

.badge-2 {
  bottom: 20%;
  right: -5%;
}

.floating-badge i {
  color: var(--primary);
  font-size: 1.3rem;
}

.floating-badge .badge-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* 核心特性模块 Feature Section */
.features {
  padding: 8rem 2rem;
  background: white;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 5rem;
}

.section-badge {
  background: rgba(255, 138, 101, 0.1);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: var(--bg-cream);
  padding: 3rem 2rem;
  border-radius: 24px;
  transition: var(--transition);
  border: 1px solid rgba(229, 222, 212, 0.3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: white;
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  font-size: 1.6rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  transform: rotate(8deg);
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 交互演示区域 Demo Section */
.demo-section {
  padding: 8rem 2rem;
  background: var(--bg-cream);
}

.demo-container {
  max-width: 1100px;
  margin: 0 auto;
  background: white;
  border-radius: 32px;
  padding: 4rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.demo-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.demo-text p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.demo-steps {
  list-style: none;
}

.demo-step-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 138, 101, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* 交互卡片交互 */
.interactive-panel {
  background: var(--bg-cream);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(229, 222, 212, 0.5);
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(229, 222, 212, 0.8);
}

.panel-title {
  font-weight: 700;
  color: var(--text-dark);
}

.panel-badge {
  background: var(--secondary);
  color: white;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
}

.indicator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.indicator-card {
  background: white;
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.indicator-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.indicator-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.5rem 0;
}

.indicator-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-indicator-action {
  margin-top: 1rem;
  background: var(--bg-cream);
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.indicator-card:hover .btn-indicator-action {
  background: var(--primary);
  color: white;
}

/* 扫码体验 Call to Action */
.cta-section {
  padding: 8rem 2rem;
  background: linear-gradient(180deg, #fffdf9 0%, #fff6ef 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 138, 101, 0.05) 0%, transparent 60%);
  z-index: 0;
}

.cta-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-container h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.cta-container p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 3.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.qr-box-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: center;
  text-align: left;
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(229, 222, 212, 0.6);
  position: relative;
}

.qr-image-container {
  position: relative;
  background: white;
  padding: 1rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.qr-image {
  max-width: 288px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.qr-real-tag {
  position: absolute;
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--secondary), #1f9e93);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(77, 182, 172, 0.28);
}

.qr-guide {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.qr-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  animation: scan 3s linear infinite;
}

.qr-tip {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-dark);
}

.qr-subtip {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.qr-mobile-hint {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: #6d828d;
  line-height: 1.5;
}

.qr-actions {
  margin-top: 0.9rem;
}

.btn-save-code {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255, 138, 101, 0.25);
  transition: var(--transition);
}

.btn-save-code:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(255, 138, 101, 0.35);
}

.qr-feature-list {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.qr-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
}

.qr-feature-list i {
  color: var(--secondary);
}

/* 页脚 Footer */
footer {
  background: var(--text-dark);
  color: #b0bec5;
  padding: 4rem 2rem 2rem;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #455a64;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: white;
  text-decoration: none;
}

.footer-logo span {
  color: var(--primary);
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #78909c;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

/* 页脚备案号与分隔线样式 */
.footer-divider {
  color: #455a64;
}

.icp-link {
  color: #78909c;
  text-decoration: none;
  transition: var(--transition);
}

.icp-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* 动效 Keyframes */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-reverse {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(12px) rotate(-1.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes scan {
  0% { top: 5%; }
  50% { top: 90%; }
  100% { top: 5%; }
}

/* 响应式媒体查询 */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .demo-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 2rem;
  }
}

@media (max-width: 576px) {
  .nav-links {
    display: none; /* 小屏隐藏导航链接 */
  }
  
  .hero {
    padding-top: 8rem;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .floating-badge {
    display: none; /* 移动端隐藏悬浮气泡 */
  }
  
  .indicator-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-container h2 {
    font-size: 2rem;
  }
  
  .qr-box-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.4rem;
    gap: 1.25rem;
  }

  .qr-guide {
    align-items: center;
  }

  .qr-mobile-hint {
    text-align: left;
  }

  .qr-feature-list {
    text-align: left;
  }
}
