/* ==========================================================================
   瓜果类水果大全 · 首页样式
   基准：1440px 设计宽；容器 max-width 1440 + 左右 48px 内边距
   视觉基线：03-ui/home-ui-desktop.png（奶油底 + 淡黄绿首屏 + 深绿文字）
   ========================================================================== */

/* 变量统一在 tokens.css（三页共用），本文件只消费 var(--…) */
/* 设计宽 1440、容器左右 48px 见 tokens.css 的 --wrap / --gutter */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-body);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--r-sm);
  z-index: 99; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------------- 页头 */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  min-height: 62px;
  padding: 9px 0;
}

.brand { display: flex; align-items: baseline; gap: 7px; flex: none; }
.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
}
.brand-sub {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--green);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  font-size: 13.5px;
  color: var(--ink);
}
.site-nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--green); border-bottom-color: var(--green); }

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 262px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 12px;
  background: rgba(255, 255, 255, .65);
}
.header-search .ico { width: 15px; height: 15px; flex: none; color: var(--green); }
.search-hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-key {
  margin-left: auto;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
  color: var(--ink-muted);
}

.menu-btn {
  display: none;
  margin-left: auto;
  width: 40px; height: 34px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }

/* ---------------------------------------------------------------- 首屏 */
.hero {
  position: relative;
  min-height: 509px;
  background: var(--hero-bg);
  overflow: hidden;
  isolation: isolate;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 600px) 1fr;
  gap: 28px;
  align-items: start;
  padding-top: 54px;
  padding-bottom: 0;
  position: relative;
  z-index: 2;
}

.hero-copy { max-width: 572px; }

.eyebrow {
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}

.hero h1 {
  margin-top: 20px;
  font-size: 52px;
  line-height: 1.41;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.h1-line { display: block; }

.hero-lead {
  margin-top: 28px;
  max-width: 432px;
  font-size: 13.5px;
  line-height: 2.1;
  color: var(--ink-body);
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid transparent;
  transition: transform .18s, background .18s, color .18s, border-color .18s;
}
.btn-primary { background: var(--green); color: #f7f9ee; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--green-deep); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .55); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: #fff; border-color: var(--green); }

.hero-stats {
  margin-top: 8px;
  display: flex;
  gap: 26px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 1px; }
.hero-stats b {
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 700;
}
.hero-stats span { font-size: 10.5px; color: var(--ink-muted); }

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 61%;
  height: 100%;
  z-index: 1;
  border-radius: var(--r-xl) 0 0 var(--r-xl);
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 46%;
  filter: saturate(1.18) contrast(1.04) brightness(0.97);
}

/* ------------------------------------------------------------ 通用分区 */
/* 分区预算（量稿：稿 1024×1536 归一 1440 后的背景带边界）
   header 61 / hero 510 / season 199 / categories 187 / atlas 190 / featured 215 /
   picking 193 / facts 235 / closing 173 / footer 187 → 合计 2160 */
.section { padding: 11px 0; }
.season     { min-height: 199px; }
.categories { min-height: 187px; }
.atlas      { min-height: 190px; }
.featured   { min-height: 215px; padding: 5px 0; }
.picking    { min-height: 193px; }
.facts      { min-height: 235px; }
.closing    { min-height: 157px; }
.section-head { max-width: 250px; }
.section-head h2 {
  margin-top: 5px;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.section-sub {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.section-note {
  margin-top: 9px;
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 900px;
}

/* 左栏标题 + 右侧内容 */
.season-grid,
.cat-grid,
.atlas-grid,
.feat-grid,
.pick-grid {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: 32px;
}
.season-grid .section-note,
.cat-grid .section-note,
.atlas-grid .section-note,
.feat-grid .section-note,
.pick-grid .section-note { grid-column: 2; }

/* --------------------------------------------------------- 时令日历 */
.season-cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}
.season-item {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.season-item h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
  line-height: 1.5;
}
.season-item p {
  margin-top: 7px;
  font-size: 10.5px;
  line-height: 1.78;
  color: var(--ink-body);
}

/* --------------------------------------------------------- 分类索引 */
.categories { background: var(--sage); }

.cat-cols {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
}
.cat-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 0 15px;
  overflow: hidden;
  background: #fdfef7;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cat-item:hover, .cat-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(66, 110, 46, .3);
}
.cat-num {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 9px;
  letter-spacing: .18em;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
  z-index: 2;
}
.cat-ico {
  width: 100%;
  height: 58px;
  object-fit: cover;
  margin: 0 0 1px;
  filter: saturate(1.15) contrast(1.03);
}
.cat-item h3 { font-size: 12px; font-weight: 700; color: var(--ink); padding: 0 11px; }
.cat-item p { font-size: 9.5px; line-height: 1.65; color: var(--ink-muted); padding: 0 11px; }

/* --------------------------------------------------------- 家族关系 */
.atlas { background: var(--sage-deep); }
.atlas-cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
}
.atlas-item { padding-top: 12px; border-top: 1px solid var(--line); }
.atlas-cols { counter-reset: atlas; }
.atlas-item { counter-increment: atlas; }
.atlas-item::before {
  content: "0" counter(atlas);
  display: block;
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--green-soft);
  font-weight: 600;
}
.atlas-item h3 {
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
.atlas-item p {
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.85;
  color: var(--ink-body);
}

/* ------------------------------------------------------- 六个常见品种 */
.featured { background: var(--mint); }
.feat-cols {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
}
.feat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fdfffa;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 7px 7px 9px;
  transition: transform .18s, box-shadow .18s;
}
.feat-card:hover, .feat-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.feat-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 11.3;
  background: var(--sage);
}
.feat-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.5) contrast(1.12) brightness(0.86); }
.feat-card h3 { font-size: 11.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.feat-card p { font-size: 9px; line-height: 1.55; color: var(--ink-muted); }

/* --------------------------------------------------------- 挑瓜四步 */
.picking { background: var(--warm); }
.pick-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.pick-step {
  background: #fdfcf5;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 10px 12px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pick-ico { color: var(--green); }
.pick-ico svg { width: 22px; height: 22px; }
.pick-step h3 {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.step-no {
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--green-soft);
  font-weight: 600;
}
.pick-step p { font-size: 9.5px; line-height: 1.72; color: var(--ink-body); }

/* ------------------------------------------------- 产区地图 + 营养 */
.facts { background: var(--origin-bg); padding: 6px 0 2px; }
.facts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  gap: 30px;
}
.facts .section-head { max-width: none; }
.facts .section-note { margin-top: 7px; }
.nutrition .section-sub { margin-top: 3px; }
.origin-cols {
  margin-top: 5px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}
.origin-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  padding: 2px 0;
  border-bottom: 1px dotted var(--line);
}
.origin-item h3 { font-size: 10px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.origin-item p { font-size: 9.5px; line-height: 1.5; color: var(--ink-body); }

.nutrition {
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 8px 12px 8px;
  align-self: start;
}
.nutrition .section-head { max-width: none; }
.nutrition .section-head h2 { font-size: 16px; }
.nutri-list { margin-top: 4px; display: flex; flex-direction: column; gap: 3px; }
.nutri-list li {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  gap: 5px;
}
.nutri-ico { color: var(--green); }
.nutri-ico svg { width: 13px; height: 13px; }
.nutri-list h3 {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink);
}
.nutri-list p { font-size: 9.5px; line-height: 1.42; color: var(--ink-body); }
.nutri-alert {
  border-top: 1px solid var(--line);
  padding-top: 4px;
}
.nutri-alert .nutri-ico { color: #a2521f; }

/* -------------------------------------------------- FAQ + 收录说明 */
.closing { background: var(--faq-bg); padding: 0 0 0; }
.closing .section-sub { display: none; }
.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: 34px;
}
.closing .section-head { max-width: none; }
.closing .section-head h2 { margin-top: 3px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 1px 0;
}
.faq { counter-reset: faq; }
.faq-item { counter-increment: faq; }
.faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  cursor: pointer;
  font-size: 10.5px;
  line-height: 1.65;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 15px;
  color: var(--green);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.faq-item summary::before {
  content: "0" counter(faq);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--green-soft);
  font-weight: 600;
}
.faq-item p {
  margin-top: 2px;
  padding-left: 22px;
  font-size: 9px;
  line-height: 1.42;
  color: var(--ink-body);
}

.notes {
  background: var(--note-bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 2px 9px;
  align-self: start;
}
.notes-list > div { margin-top: 0; }
.notes-list dt {
  font-size: 9px;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: .04em;
}
.notes-list dd {
  margin-top: 1px;
  font-size: 8.5px;
  line-height: 1.35;
  color: var(--ink-body);
}

/* --------------------------------------------------------------- 页脚 */
.site-footer {
  background: var(--green);
  color: #eef4e2;
  padding: 8px 0 0;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px 34px;
  padding-bottom: 14px;
}
.footer-top > * { flex: 1 1 180px; min-width: 160px; }
.footer-top > .footer-brand { flex: 1.2 1 220px; }
.footer-top > .footer-note { flex: 1.15 1 240px; }
.footer-brand h2 {
  font-size: 16px;
  font-weight: 700;
  color: #f6faee;
  letter-spacing: .04em;
}
.footer-sub {
  margin-top: 3px;
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #c9dbae;
}
.footer-tagline { margin-top: 4px; font-size: 9px; line-height: 1.4; color: #dbe6c8; }
.footer-col h3 {
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #c9dbae;
  font-weight: 600;
}
.footer-col ul { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.footer-col a { font-size: 10px; color: #eef4e2; }
.footer-col a:hover, .footer-col a:focus-visible { color: #fff; text-decoration: underline; }
.footer-note { font-size: 9.5px; line-height: 1.7; color: #dbe6c8; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 2px;
  padding-bottom: 2px;
}
.footer-bottom p { font-size: 9.5px; color: #c9dbae; }
.footer-bottom a { color: #eef4e2; }
.footer-bottom a:hover, .footer-bottom a:focus-visible { color: #fff; text-decoration: underline; }

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1280px) {
  :root { --rail: 220px; --gutter: 32px; }
  .hero h1 { font-size: 44px; }
  .hero-media { width: 52%; height: 448px; }
  .cat-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feat-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .atlas-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .season-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .header-search { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 26px; }
  .hero-media {
    position: relative;
    top: 0;
    width: calc(100% + var(--gutter) * 2);
    margin: 22px calc(var(--gutter) * -1) 0;
    height: 320px;
    border-radius: 0;
  }
  .hero-copy { max-width: none; }
  .hero-lead { max-width: 640px; }
  .season-grid, .cat-grid, .atlas-grid, .feat-grid, .pick-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }
  .season-grid .section-note, .cat-grid .section-note,
  .atlas-grid .section-note, .feat-grid .section-note,
  .pick-grid .section-note { grid-column: 1; }
  .section-head { max-width: none; }
  .season-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .atlas-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-grid, .closing-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .footer-top { gap: 20px 26px; }
  .footer-top > * { flex: 1 1 45%; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .menu-btn { display: block; }
  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 62px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 6px var(--gutter) 14px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
  .hero h1 { font-size: 33px; line-height: 1.34; }
  .hero-lead { font-size: 13.5px; line-height: 1.95; }
  .hero-stats { flex-wrap: wrap; gap: 16px 24px; }
  .hero-media { height: 236px; margin-top: 18px; }
  .section-head h2 { font-size: 22px; }
  .season-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick-cols { grid-template-columns: minmax(0, 1fr); }
  .origin-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-top { gap: 18px; }
  .footer-top > * { flex: 1 1 100%; min-width: 0; }
  .faq-item p { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
