/* ==========================================================================
   MEGAVITA 慢速榨汁机 · 官网样式
   主题：健康绿 + 鲜橙，现代简约，响应式
   ========================================================================== */

:root {
  --green: #4caf50;
  --green-dark: #2e7d32;
  --green-deep: #1b5e20;
  --green-soft: #e8f5e9;
  --orange: #ff8f00;
  --orange-dark: #ef6c00;
  --cream: #fdfbf5;
  --ink: #1f2d24;
  --ink-soft: #55655b;
  --line: #e6e9e2;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -22px rgba(27, 94, 32, 0.35);
  --shadow-sm: 0 10px 28px -18px rgba(31, 45, 36, 0.4);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

.container { width: min(1160px, 92%); margin-inline: auto; }

/* ===================== 顶部工具栏 ===================== */
.topbar {
  background: var(--green-deep);
  color: #dff0e0;
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 16px;
}
.topbar-links { display: flex; gap: 18px; }
.topbar-links a { color: #dff0e0; transition: color 0.2s; }
.topbar-links a:hover { color: #fff; }

/* ===================== 导航 ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 6px 16px -6px rgba(46, 125, 50, 0.6);
}
.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--green-dark);
}

.nav { display: flex; gap: 6px; }
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--green-dark); background: var(--green-soft); }
.nav-link.active { color: var(--green-dark); background: var(--green-soft); }

.header-right { display: flex; align-items: center; gap: 14px; }
.hotline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-radius: 999px;
  box-shadow: 0 8px 18px -8px rgba(239, 108, 0, 0.7);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hotline:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -8px rgba(239, 108, 0, 0.75); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  background: var(--green-soft);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green-dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== 首屏 ===================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 110px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 143, 0, 0.14), transparent 60%),
    radial-gradient(800px 520px at 8% 110%, rgba(76, 175, 80, 0.16), transparent 55%),
    linear-gradient(180deg, #fbfff8 0%, var(--cream) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(76, 175, 80, 0.08) 0 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero-eyebrow {
  display: inline-block;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--ink);
}
.hero-title-accent {
  background: linear-gradient(100deg, var(--green) 0%, var(--green-dark) 55%, var(--orange) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 22px;
  max-width: 520px;
  font-size: 17px;
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 14px 28px -12px rgba(46, 125, 50, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(46, 125, 50, 0.8); }
.btn-ghost { color: var(--green-dark); background: transparent; border-color: rgba(46, 125, 50, 0.35); }
.btn-ghost:hover { background: var(--green-soft); }
.btn-outline { color: var(--orange-dark); background: #fff; border-color: rgba(239, 108, 0, 0.4); }
.btn-outline:hover { background: #fff4e6; }

.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-soft); font-weight: 600; }
.hero-points .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.hero-media { position: relative; display: grid; place-items: center; }
.hero-media-ring {
  position: absolute;
  width: min(82%, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 120deg, rgba(76, 175, 80, 0.18), rgba(255, 143, 0, 0.16), rgba(76, 175, 80, 0.18));
  filter: blur(6px);
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-img {
  position: relative;
  width: min(86%, 460px);
  filter: drop-shadow(0 30px 40px rgba(27, 94, 32, 0.28));
  animation: float 5.5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  color: var(--green-dark);
  opacity: 0.7;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ===================== 通用区块 ===================== */
.section { padding: 92px 0; }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--ink);
  margin-bottom: 14px;
}
.section-lead { font-size: 16.5px; color: var(--ink-soft); }

/* ===================== 品牌故事 ===================== */
.brand { background: #fff; }
.timeline { position: relative; display: grid; gap: 22px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 56px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(var(--green), var(--orange));
  opacity: 0.3;
}
.timeline-item { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: start; }
.year {
  text-align: right;
  font-size: 26px;
  font-weight: 900;
  color: var(--green-dark);
  letter-spacing: 1px;
  padding-top: 4px;
}
.timeline-item::after {
  content: "";
  position: absolute;
  left: 104px;
  top: 12px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 143, 0, 0.18);
}
.timeline-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.timeline-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(76, 175, 80, 0.4); }
.timeline-card h3 { font-size: 18px; font-weight: 800; color: var(--green-dark); margin-bottom: 6px; }
.timeline-card p { font-size: 15px; color: var(--ink-soft); }

/* ===================== 产品亮点 ===================== */
.features { background: linear-gradient(180deg, var(--cream), #f2f8ef); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(76, 175, 80, 0.35); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 10px 20px -10px rgba(46, 125, 50, 0.6);
  margin-bottom: 18px;
}
.feature-card:nth-child(2n) .feature-icon { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); box-shadow: 0 10px 20px -10px rgba(239, 108, 0, 0.6); }
.feature-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: var(--ink-soft); }

/* ===================== 产品展示 ===================== */
.product { background: #fff; }
.product-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.product-media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px;
  background: linear-gradient(160deg, #f2f8ef, #fff7ec);
  border-radius: 26px;
  border: 1px solid var(--line);
}
.product-media img {
  width: min(100%, 460px);
  filter: drop-shadow(0 24px 34px rgba(27, 94, 32, 0.22));
}
.product-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-radius: 999px;
  margin-bottom: 16px;
}
.product-name { font-size: clamp(24px, 3vw, 34px); font-weight: 900; color: var(--ink); margin-bottom: 12px; }
.product-desc { font-size: 16px; color: var(--ink-soft); margin-bottom: 22px; }
.product-specs { border-top: 1px dashed var(--line); }
.product-specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.product-specs li span { color: var(--ink-soft); }
.product-specs li strong { font-weight: 700; color: var(--ink); text-align: right; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ===================== 食谱 ===================== */
.recipe { background: linear-gradient(180deg, #fff, var(--green-soft)); }
.recipe-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.food-chart {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.food-chart img { border-radius: 12px; width: 100%; }
.food-chart figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  padding-top: 14px;
}
.recipe-cards { display: grid; gap: 16px; }
.recipe-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.recipe-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.recipe-emoji { grid-row: 1 / span 2; font-size: 34px; align-self: center; }
.recipe-card h3 { font-size: 17px; font-weight: 800; }
.recipe-card p { font-size: 14.5px; color: var(--ink-soft); margin-top: 3px; }
.recipe-tip { grid-column: 2; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--orange-dark); }

/* ===================== 联系我们 ===================== */
.contact { background: #fff; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  display: block;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 24px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
a.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(76, 175, 80, 0.4); }
.contact-icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}
.contact-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.contact-card p { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.contact-card span { font-size: 13px; color: var(--ink-soft); }

/* ===================== 页脚 ===================== */
.footer { background: #16251c; color: #c8d8cc; padding: 60px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.logo-footer .logo-text { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.8; color: #a9bda9; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: #a9bda9; transition: color 0.2s, transform 0.2s; }
.footer-col a:hover { color: var(--orange); transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #8fa694;
}

/* ===================== 入场动画 ===================== */
.js .timeline-item, .js .feature-card, .js .product-media, .js .product-info,
.js .recipe-card, .js .food-chart, .js .contact-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .timeline-item.is-visible, .js .feature-card.is-visible, .js .product-media.is-visible,
.js .product-info.is-visible, .js .recipe-card.is-visible, .js .food-chart.is-visible,
.js .contact-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js .timeline-item, .js .feature-card, .js .product-media, .js .product-info,
  .js .recipe-card, .js .food-chart, .js .contact-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ===================== 响应式 ===================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .hero-media { order: 2; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .product-wrap, .recipe-wrap { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline-item { grid-template-columns: 90px 1fr; }
  .timeline::before { left: 46px; }
  .timeline-item::after { left: 84px; }
}

@media (max-width: 720px) {
  .topbar-company { display: none; }
  .topbar-inner { justify-content: center; }
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transform: translateY(-130%);
    transition: transform 0.3s;
  }
  .nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .hotline { padding: 9px 12px; font-size: 14px; }
  .hero { padding-top: 56px; }
  .features-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .timeline::before { display: none; }
  .timeline-item::after { display: none; }
  .year { text-align: left; font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
