/* style.css — 农产豆类蔬菜大全（首页 + 内页共用）
   版式基线：03-ui/home-ui-desktop.png（1440×2160）
   分区预算（归一 1440）：header 0–79 / hero 79–516 / season 544–880 / cats 913–1144
   / band1 1201–1490 / band2 1529–1740 / faqband 1780–1979 / footer 2021–2160
   详见 03-ui/compare-log.md */

/* ============================== tokens ============================== */
:root {
  --bg: #f1f3e4;
  --bg-soft: #f6f8ee;
  --hero-a: #f3f4ed;
  --hero-b: #dfe6cc;

  --green: #3d672e;
  --green-deep: #2b4a1e;
  --green-mid: #44682a;
  --green-bar: #446829;
  --green-soft: #cfd9b4;

  --ink: #101a06;
  --ink-soft: #2f361f;
  --muted: #5b6152;
  --muted-soft: #71766a;

  --cream: #f7f8f1;
  --line: #d8ddc2;
  --line-soft: #e3e7d2;

  --wrap: 1440px;
  --gutter: 45px;

  --font-display: 'Songti SC',SimSun,'Noto Serif SC',Georgia,serif;
  --font-body: "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 13px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; color: var(--ink); font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 3px; }

.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: 12px; top: -48px; z-index: 99;
  background: var(--green-deep); color: var(--cream);
  padding: 8px 16px; border-radius: 2px; font-size: 13px;
}
.skip-link:focus { top: 12px; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  color: var(--green); text-transform: uppercase;
}
.eyebrow__mark { font-size: 11px; letter-spacing: 0; color: var(--green-mid); }

/* ============================== header ============================== */
.site-header { height: 79px; background: var(--bg); }
.site-header__inner {
  max-width: var(--wrap); height: 79px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 6px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 17px; font-weight: 700; color: var(--green-deep);
  white-space: nowrap;
}
.brand__mark { color: var(--green-mid); font-size: 15px; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 15px; font-size: 12.5px; color: var(--ink-soft); margin-left: auto; }
.nav > a, .nav .dropdown > a { display: block; white-space: nowrap; padding: 2px 0; border-bottom: 1px solid transparent; }
.nav > a:hover, .nav .dropdown > a:hover, .nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green-mid); }

/* 主导航下拉：hover 显示，禁用 :focus-within（会导致点击后子菜单不消失） */
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 60;
  min-width: 148px; padding: 8px 0; margin-top: 6px;
  background: #fbfaf2; border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(16, 26, 6, .10);
  max-height: 360px; overflow-y: auto;
}
.dropdown-menu a {
  display: block; padding: 5px 16px; font-size: 12px; line-height: 1.6;
  color: var(--ink-soft); white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--green-soft); color: var(--green-deep); }
.dropdown:hover .dropdown-menu { display: block; }

/* ============================== hero ============================== */
.hero { height: 437px; background: var(--hero-a); overflow: hidden; }
.hero__inner {
  position: relative; display: grid;
  grid-template-columns: 585px 1fr; height: 100%;
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
}
.hero__copy { padding-top: 45px; }
.hero__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .22em; color: var(--green); margin: 0;
}
.hero h1 { margin-top: 20px; font-size: 40px; line-height: 1.22; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero__lead { margin-top: 22px; max-width: 545px; font-size: 13.5px; line-height: 30px; color: #2b3620; }
.hero__media { margin: 0; height: 437px; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.hero__band {
  position: absolute; left: var(--gutter); bottom: 40px;
  width: 672px; height: 44px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px; background: var(--green-bar);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 13px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em; border-radius: 2px;
}
.btn--solid { background: var(--green-deep); color: #f3f7e6; }
.btn--ghost { color: #eef3dd; box-shadow: inset 0 0 0 1px rgba(240, 245, 228, .55); }
.btn--solid:hover { background: #1d3514; }
.btn--ghost:hover { background: rgba(240, 245, 228, .16); }
.hero__stats { display: flex; align-items: center; gap: 18px; margin-left: auto; color: #eef3dd; }
.hero__stats li { display: flex; align-items: baseline; gap: 4px; }
.hero__stats b { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 15px; line-height: 1; }
.hero__stats span { font-size: 10.5px; letter-spacing: .04em; }

/* ============================== section base ============================== */
.section h2 { font-size: 21px; line-height: 1.4; margin-top: 6px; }

/* ============================== season ============================== */
.season { padding: 28px 0 0; }
.season__grid { min-height: 336px; }
.season__grid { display: grid; grid-template-columns: 735px 1fr; gap: 45px; align-items: start; }
.season__list { margin-top: 10px; }
.season__list li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 2px 0; }
.season__list b { font-size: 12px; font-weight: 700; color: var(--green-deep); }
.season__list span { font-size: 12px; line-height: 1.72; color: var(--muted); }
.season__note { margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--green); }
.season__media { margin: 0; padding-top: 4px; }
.season__media img { width: 100%; height: 336px; object-fit: cover; }

/* ============================== category index ============================== */
.cats { padding: 29px 0 0; }
.cats__grid { min-height: 0; }
.cats__title { margin: 5px 0 0; }
.cats__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px; margin-top: 16px; }
.cat a { display: block; }
.cat img { width: 100%; height: 108px; object-fit: cover; }
.cat__num { display: block; margin-top: 2px; font-size: 10px; letter-spacing: .1em; color: var(--green-mid); font-weight: 700; }
.cat__name { display: block; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.cat__desc {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 1px; font-size: 10.5px; line-height: 1.42; color: var(--muted-soft);
}
.cat a:hover .cat__name { color: var(--green); }
.cats__note { margin-top: 4px; font-size: 10.8px; line-height: 1.45; color: var(--muted-soft); }

/* ============================== three-column bands ============================== */
.band { padding: 0; }
.band--1 { margin-top: 38px; }
.band--2 { margin-top: 22px; }
.band__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px; align-items: start; }
.band__col h2 { font-size: 16px; line-height: 1.3; margin-top: 4px; }
.band__note { margin-top: 5px; font-size: 10.8px; line-height: 1.5; color: var(--green); }
.steps { margin-top: 8px; }
.steps li { padding: 1px 0; border-top: 1px solid var(--line-soft); }
.steps b { display: block; font-size: 11px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.steps span { display: block; font-size: 10px; line-height: 1.34; color: var(--muted-soft); }

.naming__list { margin-top: 9px; }
.naming__list li { padding: 2px 0; border-top: 1px solid var(--line-soft); }
.naming__list b { display: block; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 12px; color: var(--ink); }
.naming__list span { display: block; font-size: 10.5px; line-height: 1.45; color: var(--muted-soft); }

.featured__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 12px; margin-top: 7px; }
.featured__grid a { display: block; }
.featured__grid img { width: 100%; height: 46px; object-fit: cover; }
.featured__grid b { display: block; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 11.5px; color: var(--ink); line-height: 1.45; }
.featured__grid span { display: block; font-size: 10px; line-height: 1.34; color: var(--muted-soft); }
.featured__grid a:hover b { color: var(--green); }

/* ============================== faq band ============================== */
.faqband { margin-top: 22px; }
.faqband__grid { display: grid; grid-template-columns: 480px 1fr 250px; gap: 42px; align-items: start; }
.faqband h2 { font-size: 16px; margin-top: 4px; }
.faq-list { margin-top: 9px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 4px 0; font-size: 11.4px; font-weight: 700; color: var(--ink);
  list-style: none; display: flex; gap: 7px; align-items: baseline;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "＋"; color: var(--green-mid); font-size: 11px; }
.faq-item[open] summary::before { content: "－"; }
.faq-item p { padding: 0 0 6px 17px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.faqband__notes p { margin-top: 4px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.faqband__notes b { color: var(--ink); }
.faqband__media { margin: 0; }
.faqband__media img { width: 100%; height: 186px; object-fit: cover; }

/* ============================== footer ============================== */
.site-footer { margin-top: 38px; background: var(--green); color: #eaf0d8; padding: 44px 0 30px; }
.site-footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 20px 24px; align-items: flex-start;
}
.site-footer__col { flex: 1 1 180px; min-width: 170px; }
.site-footer__col--brand { flex: 1 1 300px; }
.site-footer__title { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #b8cba0; text-transform: uppercase; }
.site-footer__brand { display: inline-block; margin-top: 6px; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 16px; font-weight: 700; color: #f6f9ea; }
.site-footer__desc { margin-top: 3px; font-size: 11.5px; line-height: 1.65; color: #cfdcb5; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 11.5px; color: #e2ead0; }
.site-footer__nav a:hover { color: #fff; text-decoration: underline; }
.site-footer__icp { margin-top: 8px; font-size: 11px; color: #b8cba0; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px;
  margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(234, 240, 216, .22);
}
.site-footer__copy { font-size: 11px; color: #b8cba0; }

/* ============================== responsive ============================== */
@media (max-width: 1360px) {
  .hero__inner { grid-template-columns: 560px 1fr; }
  .hero__band { width: 617px; }
  .season__grid { grid-template-columns: 1fr 1fr; }
  .band__grid { gap: 32px; }
  .faqband__grid { grid-template-columns: 1fr 1fr 220px; gap: 28px; }
}

@media (max-width: 1100px) {
  :root { --gutter: 28px; }
  .site-header { height: auto; }
  .site-header__inner { height: auto; padding: 12px var(--gutter); flex-wrap: wrap; gap: 12px; }
  .nav { order: 3; width: 100%; flex-wrap: wrap; gap: 10px 14px; margin-left: 0; }
  .hero { height: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { padding-top: 28px; }
  .hero h1 { font-size: 32px; }
  .hero__lead { max-width: none; }
  .hero__media { height: 260px; margin-top: 18px; }
  .hero__band { position: static; width: auto; height: auto; margin: 16px 0 24px; padding: 10px 14px; flex-wrap: wrap; gap: 8px 10px; }
  .hero__stats { margin-left: 0; }
  .season { padding-top: 20px; }
  .season__grid { grid-template-columns: 1fr; }
  .cats__grid { grid-template-columns: repeat(4, 1fr); }
  .band__grid { grid-template-columns: repeat(2, 1fr); }
  .faqband__grid { grid-template-columns: 1fr 1fr; }
  .faqband__media { grid-column: 1 / -1; }
  .faqband__media img { height: 180px; }
  .site-footer__inner { flex-direction: column; }
}

@media (max-width: 760px) {
  .nav { display: flex; flex-wrap: wrap; gap: 6px 14px; order: 3; width: 100%; margin-left: 0; }
  .nav > a, .nav .dropdown > a { font-size: 13px; }
  .dropdown-menu {
    position: static; display: block; min-width: 0; max-height: none; margin: 4px 0 6px;
    padding: 0 0 0 10px; background: transparent; border: 0; box-shadow: none;
  }
  .dropdown-menu a { padding: 3px 0; font-size: 12px; }
  .hero h1 { font-size: 26px; }
  .hero__lead { font-size: 13px; line-height: 26px; }
  .section h2, .cats__title { font-size: 18px; }
  .band__col h2, .faqband h2 { font-size: 15px; }
  .cats__grid { grid-template-columns: repeat(2, 1fr); }
  .band--1, .band--2 { margin-top: 32px; }
  .band__grid { grid-template-columns: 1fr; gap: 24px; }
  .featured__grid { grid-template-columns: repeat(3, 1fr); }
  .faqband { margin-top: 28px; }
  .faqband__grid { grid-template-columns: 1fr; }
  .site-footer { margin-top: 30px; }
}
