/* ============================================================
   沐丰农家果园 - 全站样式 v2.0
   品牌色：果园绿 #2d5a27 / 苹果红 #d63031 / 自然米 #faf8f3
   ============================================================ */
:root {
  --green: #2d5a27;
  --green-dark: #1e3d1a;
  --green-light: #eef5ec;
  --green-mid: #4a7c42;
  --red: #d63031;
  --red-dark: #b71c1c;
  --cream: #faf8f3;
  --sand: #f2ede2;
  --ink: #26332a;
  --gray: #6b7a6e;
  --line: #e3e8e0;
  --white: #ffffff;
  --gold: #e8a33d;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(38, 51, 42, .08);
  --shadow-lg: 0 12px 32px rgba(38, 51, 42, .14);
  --maxw: 1120px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  font-size: 16px;
}

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

/* ---------- 跳转主内容（无障碍） ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: #fff; padding: 10px 18px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 顶部导航 ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 248, 243, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.navbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 16px rgba(38,51,42,.07); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--green); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--green);
  display: grid; place-items: center; font-size: 20px; color: #fff;
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--gray); letter-spacing: 2px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--ink);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--green-light); color: var(--green); }
.nav-cta {
  margin-left: 8px; background: var(--red); color: #fff !important;
  padding: 9px 18px !important; border-radius: 999px !important; font-weight: 700;
  box-shadow: 0 4px 12px rgba(214, 48, 49, .3);
}
.nav-cta:hover { background: var(--red-dark); }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--green); cursor: pointer; padding: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(30,61,26,.55), rgba(30,61,26,.72)),
    url("../images/apple_product_01.jpg") center / cover no-repeat;
  color: #fff; text-align: center; padding: 120px 20px 90px;
}
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; padding: 7px 18px; font-size: 14px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 900; line-height: 1.25; letter-spacing: 2px; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero h1 .hl { color: #ffd98e; }
.hero-sub { margin: 20px auto 0; font-size: clamp(15px, 2vw, 19px); opacity: .95; max-width: 640px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  padding: 14px 32px; font-size: 16px; font-weight: 700; cursor: pointer; border: 0;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(214,48,49,.4); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(45,90,39,.3); }
.btn-green:hover { background: var(--green-dark); }
.hero-tags { margin-top: 40px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-tags span {
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: 6px 16px; font-size: 13.5px;
}

/* ---------- 数据条 ---------- */
.stats { background: var(--green); color: #fff; padding: 34px 20px; }
.stats-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; text-align: center; }
.stat-num { font-size: clamp(26px, 4vw, 38px); font-weight: 900; }
.stat-num i { font-style: normal; font-size: .55em; margin-left: 2px; color: #ffd98e; }
.stat-label { font-size: 13.5px; opacity: .85; margin-top: 2px; }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 20px; }
.section.alt { background: var(--white); }
.container { max-width: var(--maxw); margin: 0 auto; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.sec-kicker {
  display: inline-block; color: var(--green); background: var(--green-light);
  font-size: 13.5px; font-weight: 700; letter-spacing: 3px;
  border-radius: 999px; padding: 5px 18px; margin-bottom: 14px;
}
.sec-head h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 900; letter-spacing: 1px; }
.sec-head p { color: var(--gray); margin-top: 12px; font-size: 15.5px; }

/* ---------- 优势卡片 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .25s, box-shadow .25s;
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.adv-icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--green-light);
  display: grid; place-items: center; font-size: 26px; margin-bottom: 16px;
}
.adv-card:nth-child(odd) .adv-icon { background: #fdeeee; }
.adv-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.adv-card p { font-size: 14.5px; color: var(--gray); }

/* ---------- 产品区 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prod-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prod-card:hover .prod-media img { transform: scale(1.06); }
.prod-flag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.prod-flag.blue { background: #2980b9; }
.prod-flag.gold { background: var(--gold); }
.prod-flag.green { background: var(--green); }
.prod-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 19px; }
.prod-body .desc { font-size: 14px; color: var(--gray); margin: 8px 0 14px; flex: 1; }
.prod-meta { display: flex; align-items: center; justify-content: space-between; }
.prod-price { color: var(--red); font-weight: 900; font-size: 17px; }
.prod-price small { font-size: 12px; color: var(--gray); font-weight: 500; margin-left: 4px; }
.prod-link { color: var(--green); font-weight: 700; font-size: 14px; }
.prod-link:hover { text-decoration: underline; }

/* ---------- 故事区 ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.story-media { position: relative; }
.story-media img { border-radius: 18px; box-shadow: var(--shadow-lg); }
.story-media .stamp {
  position: absolute; right: -16px; bottom: -16px; background: var(--red); color: #fff;
  border-radius: 16px; padding: 14px 20px; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(214,48,49,.35); line-height: 1.5; text-align: center;
}
.story-copy .sec-kicker { margin-bottom: 12px; }
.story-copy h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 900; margin-bottom: 16px; }
.story-copy p { color: #4a574e; font-size: 15.5px; margin-bottom: 14px; }
.story-copy strong { color: var(--green); }
.story-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.story-points li {
  background: var(--green-light); border-radius: 10px; padding: 10px 14px;
  font-size: 14px; color: var(--green-dark); font-weight: 600;
}

/* ---------- 资讯 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%); display: grid; place-items: center; font-size: 44px; }
.news-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.news-meta { font-size: 12.5px; color: var(--gray); display: flex; gap: 12px; margin-bottom: 8px; }
.news-meta .cat { color: var(--green); font-weight: 700; }
.news-body h3 { font-size: 17px; line-height: 1.5; flex: 1; }
.news-more { margin-top: 14px; color: var(--green); font-size: 13.5px; font-weight: 700; }
.news-cta { text-align: center; margin-top: 40px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--green); transition: transform .25s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--gray); font-size: 14.5px; }

/* ---------- 联系区 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start;
}
.contact-card .c-icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
  background: var(--green-light); display: grid; place-items: center; font-size: 22px;
}
.contact-card h4 { font-size: 15px; color: var(--gray); font-weight: 600; }
.contact-card p { font-size: 16.5px; font-weight: 700; margin-top: 2px; }
.contact-card a:hover { color: var(--green); }
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.form-card h3 { font-size: 20px; margin-bottom: 4px; }
.form-card .form-tip { font-size: 13.5px; color: var(--gray); margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group label .req { color: var(--red); }
.form-group input, .form-group textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: 15px; font-family: inherit; background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,90,39,.12);
}
.form-note { font-size: 12.5px; color: var(--gray); margin-top: 12px; text-align: center; }

/* ---------- 页脚 ---------- */
.footer { background: var(--green-dark); color: rgba(255,255,255,.82); padding: 60px 20px 30px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer p, .footer li { font-size: 14px; line-height: 2; }
.footer a:hover { color: #ffd98e; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.footer-bottom {
  max-width: var(--maxw); margin: 40px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14); text-align: center; font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,.82); }
.footer-bottom a:hover { color: #ffd98e; }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green); color: #fff; font-size: 20px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); }

/* ---------- 浮动电话（移动端） ---------- */
.float-call {
  position: fixed; left: 16px; bottom: 18px; z-index: 90;
  display: none; align-items: center; gap: 8px;
  background: var(--red); color: #fff; border-radius: 999px;
  padding: 12px 20px; font-weight: 700; font-size: 14.5px;
  box-shadow: 0 8px 24px rgba(214,48,49,.45);
}

/* ---------- 滚动渐入动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .adv-grid, .prod-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 12px 18px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; }
  .nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; }
  .nav-toggle { display: block; }
  .adv-grid, .prod-grid, .news-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-inner > .stat:last-child { grid-column: 1 / -1; }
  .story-points { grid-template-columns: 1fr; }
  .hero { min-height: 86vh; }
  .section { padding: 60px 18px; }
  .float-call { display: inline-flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== 产品详情页（由 gen_products.py 生成，勿手改） ===== */
.prod-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prod-buy {
  background: var(--green); color: #fff; font-size: 13px; font-weight: 700;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}
.prod-buy:hover { background: var(--green-dark); text-decoration: none; }
.prod-buy.ghost { background: transparent; border: 1.5px solid var(--green); color: var(--green); }
.prod-buy.ghost:hover { background: var(--green-light); color: var(--green); }
.prod-meta { flex-wrap: wrap; gap: 10px; }
/* 文章页「相关在售产品」内链块 */
.related-products {
  margin-top: 36px; background: var(--green-light); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px;
}
.related-products h2 { font-size: 1.02rem; color: var(--green-dark); margin-bottom: 10px; }
.related-products ul { list-style: none; margin: 0; padding: 0; }
.related-products li { font-size: .92rem; color: var(--gray); margin-bottom: 8px; line-height: 1.7; }
.related-products a { color: var(--green); font-weight: 700; }
.related-products .rp-more { font-size: .86rem; color: var(--gray); margin: 8px 0 0; }
/* 果园实拍图集 */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; height: 190px; object-fit: cover; border-radius: 10px; }
.gallery-grid figcaption { font-size: 12.5px; opacity: .72; margin-top: 6px; text-align: center; }
