/* 现代农业种植 · /agriculture/ 主题样式
   自然绿 #2f7a5b + 科技蓝 #1f6fb2；浅色纸面，与 ag.css 的平台导航条共用。 */
.agr {
  --agr-green: #2f7a5b;
  --agr-green-deep: #1f5a43;
  --agr-blue: #1f6fb2;
  --agr-ink: #10241b;
  --agr-soft: #f6f8f6;
  --agr-line: rgba(16, 36, 27, 0.12);
  margin: 0;
  background: var(--agr-soft);
  color: var(--agr-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.agr a { color: var(--agr-green-deep); }
.agr a:hover { color: var(--agr-blue); }
.agr img { max-width: 100%; height: auto; }
/* 与 /herbal/ 保持一致：border-box，避免 .agr-shell 的左右内边距把页面撑出水平滚动条 */
.agr,
.agr *,
.agr *::before,
.agr *::after { box-sizing: border-box; }

.agr-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 8px 14px;
  z-index: 200;
}
.agr-skip:focus { left: 12px; top: 12px; }

.agr-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 头部 ---------- */
.agr-header {
  background: #ffffff;
  border-bottom: 1px solid var(--agr-line);
}
.agr-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 12px;
}
.agr-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--agr-ink);
  white-space: nowrap;
}
.agr-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--agr-green), var(--agr-blue));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.agr-brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.agr-brand__text strong { font-size: 15.5px; letter-spacing: 0.02em; }
.agr-brand__text em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0.55;
}
.agr-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.agr-nav::-webkit-scrollbar { display: none; }
.agr-nav a {
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  text-decoration: none;
  color: #33463c;
  white-space: nowrap;
}
.agr-nav a:hover { background: rgba(47, 122, 91, 0.09); }
.agr-nav a[aria-current="page"] { background: var(--agr-green); color: #fff; }

.agr-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--agr-line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.agr-search input {
  border: 0;
  padding: 7px 13px;
  font-size: 13px;
  width: 170px;
  outline: none;
  background: transparent;
  color: inherit;
}
.agr-search button,
.agr-filters button,
.agr-hero__search button {
  border: 0;
  background: var(--agr-green);
  color: #fff;
  font-size: 13px;
  padding: 8px 16px;
  cursor: pointer;
}
.agr-search button:hover,
.agr-filters button:hover,
.agr-hero__search button:hover { background: var(--agr-green-deep); }

/* ---------- 面包屑 ---------- */
.agr-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  opacity: 0.78;
  padding-top: 16px;
  padding-bottom: 2px;
}
.agr-crumb a { text-decoration: none; }
.agr-crumb span[aria-hidden="true"] { opacity: 0.45; }

/* ---------- 首页 Hero ---------- */
.agr-hero {
  background:
    radial-gradient(1100px 320px at 12% -10%, rgba(47, 122, 91, 0.14), transparent 62%),
    radial-gradient(900px 300px at 92% 0%, rgba(31, 111, 178, 0.11), transparent 60%),
    #ffffff;
  border-bottom: 1px solid var(--agr-line);
  padding: 52px 0 40px;
}
.agr-kicker {
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--agr-green);
  font-weight: 600;
}
.agr-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.agr-lede {
  margin: 0 0 22px;
  font-size: 16.5px;
  max-width: 760px;
  color: #33463c;
}
.agr-lede--sm { font-size: 14.5px; margin-bottom: 18px; }

.agr-hero__search {
  display: flex;
  max-width: 560px;
  border: 1px solid var(--agr-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 36, 27, 0.06);
}
.agr-hero__search input {
  flex: 1;
  border: 0;
  padding: 12px 15px;
  font-size: 15px;
  outline: none;
  background: transparent;
  color: inherit;
}
.agr-hero__search--flat { box-shadow: none; margin-bottom: 18px; }

.agr-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  margin: 26px 0 0;
}
.agr-stats div { display: flex; flex-direction: column-reverse; }
.agr-stats dt {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--agr-green-deep);
}
.agr-stats dd {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.62;
}

/* ---------- 提示条 ---------- */
.agr-banner {
  margin: 24px 0 6px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(31, 111, 178, 0.24);
  background: rgba(31, 111, 178, 0.06);
}
.agr-banner strong { display: block; margin-bottom: 6px; font-size: 14.5px; }
.agr-banner p { margin: 0; font-size: 13.5px; color: #33463c; }

/* ---------- 区块 ---------- */
.agr-section { padding-top: 44px; padding-bottom: 12px; }
.agr-section__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.agr-section__head h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.005em;
}
.agr-muted { font-size: 12.5px; opacity: 0.62; }
.agr-h1 {
  margin: 6px 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
}

/* ---------- 18 产业分类 ---------- */
.agr-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.agr-cat {
  display: block;
  padding: 16px 16px 14px;
  border: 1px solid var(--agr-line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.agr-cat:hover {
  border-color: rgba(47, 122, 91, 0.5);
  box-shadow: 0 10px 24px rgba(16, 36, 27, 0.08);
  transform: translateY(-1px);
}
.agr-cat__name { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.agr-cat__en {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 8px;
}
.agr-cat__sum { display: block; font-size: 12.5px; line-height: 1.6; opacity: 0.72; }

/* ---------- 通用网格 / 条目 ---------- */
.agr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.agr-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.agr-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.agr-entry {
  display: block;
  padding: 15px 16px;
  border: 1px solid var(--agr-line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}
.agr-entry:hover { border-color: rgba(47, 122, 91, 0.5); }
.agr-entry strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.agr-entry span { font-size: 12.5px; opacity: 0.68; line-height: 1.55; }

.agr-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--agr-line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}
.agr-card:hover { border-color: rgba(47, 122, 91, 0.5); }
.agr-card__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--agr-green);
}
.agr-card h3 { margin: 0 0 4px; font-size: 16px; }
.agr-card__latin { margin: 0 0 8px; font-size: 12.5px; font-style: italic; opacity: 0.6; }
.agr-card__foot { margin: 8px 0 0; }

/* ---------- 筛选 ---------- */
.agr-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.agr-filters input,
.agr-filters select {
  border: 1px solid var(--agr-line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13.5px;
  background: #fff;
  color: inherit;
  outline: none;
}
.agr-filters input { min-width: 240px; }
.agr-filters button { border-radius: 8px; }

/* ---------- 表格 ---------- */
.agr-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--agr-line);
  border-radius: 12px;
  background: #fff;
}
.agr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 560px;
}
.agr-table th,
.agr-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--agr-line);
  vertical-align: top;
}
.agr-table th {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a5d53;
  background: rgba(47, 122, 91, 0.05);
}
.agr-table tr:last-child td { border-bottom: 0; }

/* ---------- 详情页 ---------- */
.agr-detail { padding-top: 30px; padding-bottom: 8px; max-width: 900px; }
.agr-detail h1 { margin: 0 0 6px; font-size: clamp(24px, 3.2vw, 34px); }
.agr-detail__latin { margin: 0 0 10px; font-style: italic; opacity: 0.66; font-size: 14px; }
.agr-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.agr-chips span {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--agr-line);
  background: #fff;
  font-size: 12px;
}
.agr-figs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.agr-figs figure { margin: 0; border: 1px solid var(--agr-line); border-radius: 10px; overflow: hidden; background: #fff; }
.agr-figs img { display: block; width: 100%; }
.agr-figs figcaption { padding: 8px 10px; font-size: 12px; opacity: 0.7; }

.agr-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.agr-field {
  border: 1px solid var(--agr-line);
  border-radius: 10px;
  background: #fff;
  padding: 13px 15px;
}
.agr-field dt {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a5d53;
  margin-bottom: 5px;
}
.agr-field dd { margin: 0; font-size: 14px; line-height: 1.65; }
.agr-field__src { margin-top: 6px; }

.agr-sub { margin: 26px 0; }
.agr-sub h2 { font-size: 18px; margin: 0 0 10px; }
.agr-list { margin: 0; padding-left: 18px; font-size: 14px; }
.agr-list li { margin-bottom: 7px; }
.agr-list--articles { list-style: none; padding-left: 0; }
.agr-list--articles li {
  padding: 14px 16px;
  border: 1px solid var(--agr-line);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 10px;
}
.agr-list--articles a { font-weight: 600; text-decoration: none; }
.agr-list--articles p { margin: 4px 0 0; }

.agr-prose { font-size: 15.5px; line-height: 1.85; margin: 18px 0 30px; }
.agr-prose h2, .agr-prose h3 { margin: 26px 0 10px; line-height: 1.4; }
.agr-prose p { margin: 0 0 14px; }
.agr-prose ul, .agr-prose ol { padding-left: 22px; margin: 0 0 14px; }
.agr-prose blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--agr-green);
  background: rgba(47, 122, 91, 0.06);
}
.agr-prose code {
  background: rgba(16, 36, 27, 0.07);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.92em;
}

/* ---------- 页脚 ---------- */
.agr-footer {
  margin-top: 48px;
  background: #0d1512;
  color: #d7e2da;
  padding: 10px 0 26px;
  font-size: 13px;
}
.agr-footer a { color: #d7e2da; }
.agr-footer__bottom {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
  font-size: 12px;
  opacity: 0.72;
}
.agr-footer__bottom p { margin: 0; }
.agr-footer__note {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.75;
  opacity: 0.55;
  max-width: 900px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .agr-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agr-grid, .agr-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agr-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .agr-header__inner { padding-top: 12px; }
  .agr-nav { order: 3; width: 100%; margin-left: 0; }
  .agr-search { margin-left: auto; }
  .agr-search input { width: 120px; }
  .agr-hero { padding: 36px 0 30px; }
  .agr-fields { grid-template-columns: 1fr; }
  .agr-stats { gap: 22px; }
  .agr-stats dt { font-size: 20px; }
}
@media (max-width: 560px) {
  .agr { font-size: 15.5px; }
  .agr-shell { padding: 0 15px; }
  .agr-cats, .agr-grid, .agr-grid--3, .agr-grid--4 { grid-template-columns: 1fr; }
  .agr-search { width: 100%; }
  .agr-search input { flex: 1; width: auto; }
  .agr-filters input { min-width: 0; width: 100%; }
  .agr-filters select { flex: 1; }
  .agr-footer__bottom { flex-direction: column; gap: 6px; }
}
