/* 山地养殖业全产业链指南 — 站点样式
   风格：苹果风液态玻璃 + 森林绿/青绿；纯 CSS，无外部依赖。 */

:root {
  --ink: #16241d;
  --ink-2: #3c5147;
  --muted: #6b8076;
  --dim: #8fa39a;
  --line: rgba(28, 74, 56, 0.12);
  --line-strong: rgba(28, 74, 56, 0.22);
  --bg: #f6faf7;
  --bg-soft: #eef6f0;
  --panel: rgba(255, 255, 255, 0.78);
  --glass: rgba(255, 255, 255, 0.62);
  --green: #1f6f4a;
  --green-deep: #145035;
  --teal: #0f7f74;
  --lime: #7fb069;
  --accent: #1f6f4a;
  --accent-soft: rgba(31, 111, 74, 0.1);
  --warn: #a8621b;
  --warn-bg: #fdf4e7;
  --err: #a32f2f;
  --err-bg: #fdeeee;
  --ok: #1f6f4a;
  --ok-bg: #eaf6ef;
  --dark: #0f241c;
  --dark-2: #163a2c;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --shadow-sm: 0 1px 2px rgba(15, 36, 28, 0.05);
  --shadow: 0 10px 30px -12px rgba(15, 36, 28, 0.18);
  --shadow-lg: 0 26px 60px -24px rgba(15, 36, 28, 0.28);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --wrap: 1180px;
  --gutter: clamp(18px, 4.5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 88% -10%, rgba(31, 111, 74, 0.08), transparent 62%),
    radial-gradient(700px 480px at -6% 4%, rgba(15, 127, 116, 0.07), transparent 60%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.8;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(31, 111, 74, 0.18); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 { line-height: 1.28; letter-spacing: -0.01em; }
h1 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 14px; font-weight: 600; }
h2 { font-size: clamp(22px, 3vw, 31px); margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 17px; margin: 0 0 8px; font-weight: 600; }
h4 { font-size: 15px; margin: 0 0 6px; font-weight: 600; }
p { margin: 0 0 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); width: 100%; }
.narrow { max-width: 760px; }
main { display: block; min-height: 60vh; }

.skip {
  position: fixed; top: -80px; left: 16px; z-index: 200;
  padding: 10px 16px; background: var(--green); color: #fff;
  border-radius: var(--r-sm); font-size: 13px; transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; color: #fff; }
.hp, .hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }
.meta-line { font-size: 12.5px; color: var(--dim); margin: 8px 0 0; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 250, 247, 0.76);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 32px);
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand__txt strong { font-size: 15px; letter-spacing: 0.01em; }
.brand--sm .brand__txt strong { font-size: 14px; }

.nav {
  display: flex; align-items: center; flex-wrap: nowrap;
  gap: clamp(2px, 0.5vw, 8px); margin-left: auto; min-width: 0;
}
.nav__a, .nav__more summary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px; border-radius: 999px;
  font-size: 13.5px; line-height: 1.2; color: var(--ink-2); white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav__a:hover, .nav__more summary:hover { color: var(--green); background: var(--accent-soft); }
.nav__a.is-active { color: var(--green); font-weight: 600; background: rgba(31, 111, 74, 0.09); }
.nav__more { position: relative; }
.nav__more summary { list-style: none; cursor: pointer; }
.nav__more summary::-webkit-details-marker { display: none; }
.nav__more summary::after {
  content: ""; width: 5px; height: 5px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s var(--ease);
}
.nav__more[open] summary { color: var(--green); background: var(--accent-soft); }
.nav__more[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.nav__menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 186px;
  display: flex; flex-direction: column; gap: 2px; padding: 8px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2);
}
.nav__menu a { padding: 9px 10px; border-radius: 10px; font-size: 13.5px; white-space: nowrap; }
.nav__menu a:hover, .nav__menu a:focus-visible { background: var(--accent-soft); color: var(--green); }

.topbar__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.search-mini {
  display: flex; align-items: center; gap: 0;
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 4px 3px 12px;
}
.search-mini input {
  border: 0; background: transparent; outline: none; width: 120px; font-size: 13px;
}
.search-mini button {
  border: 0; background: var(--green); color: #fff; width: 28px; height: 28px;
  border-radius: 50%; cursor: pointer; font-size: 15px; line-height: 1;
}
.nav-toggle { display: none; border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.drawer {
  border-top: 1px solid var(--line);
  background: rgba(246, 250, 247, 0.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.drawer[hidden] { display: none; }
.drawer__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 6px; padding-block: 12px 16px; }
.drawer__inner a { padding: 10px 8px; border-radius: 10px; font-size: 13.5px; }
.drawer__inner a:hover { background: var(--accent-soft); color: var(--green); }
.drawer__inner a.is-active { color: var(--green); font-weight: 600; background: var(--accent-soft); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn--primary { background: linear-gradient(135deg, var(--green), var(--teal)); color: #fff; box-shadow: 0 8px 20px -10px rgba(31, 111, 74, 0.7); }
.btn--primary:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 12px 26px -12px rgba(31, 111, 74, 0.8); }
.btn--ghost { background: rgba(255, 255, 255, 0.7); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: #fff; color: var(--green); }
.btn--glass {
  background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.42); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }
.btn--sm { padding: 7px 15px; font-size: 13px; }
.btn--lg { padding: 14px 30px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.link-btn { background: none; border: 0; color: var(--green); cursor: pointer; font-size: 13px; padding: 0; text-decoration: underline; }
.inline-form { display: inline; margin: 0; }

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  z-index: 0;
}
/* 首页主视觉：实拍图到位前用深绿渐变与大面积留白，不使用生成图 */
.hero--home {
  background:
    radial-gradient(1100px 620px at 78% -12%, rgba(127, 176, 105, 0.18), transparent 62%),
    radial-gradient(760px 520px at 4% 108%, rgba(15, 127, 116, 0.22), transparent 64%),
    linear-gradient(155deg, var(--dark) 0%, var(--dark-2) 58%, #1c4a37 100%);
}
.hero--home .hero__inner { padding-block: clamp(60px, 9.5vw, 120px); }
.hero__inner {
  position: relative; z-index: 1;
  padding-block: clamp(56px, 9vw, 108px);
  color: #fff;
}
.hero__inner--narrow { max-width: 860px; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -0.02em; }
.hero__lead { font-size: clamp(15px, 1.6vw, 18px); color: rgba(255, 255, 255, 0.86); max-width: 720px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin: 40px 0 0; padding: 0; max-width: 720px;
}
.hero__stats > div {
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--r); padding: 12px 14px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero__stats dt { font-size: 12px; color: rgba(255, 255, 255, 0.78); margin: 0; }
.hero__stats dd { margin: 2px 0 0; font-size: 24px; font-weight: 600; }
.hero__meta { font-size: 13px; color: rgba(255, 255, 255, 0.72); margin: 14px 0 0; }
.hero__search {
  display: flex; gap: 8px; margin-top: 22px; max-width: 520px;
  background: rgba(255, 255, 255, 0.92); border-radius: 999px; padding: 5px 5px 5px 16px;
}
.hero__search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 14px; }
.hero--tool, .hero--module, .hero--species, .hero--article {
  background: linear-gradient(140deg, var(--dark), var(--dark-2) 60%, #1c4a37);
  color: #fff;
}
.hero--article .hero__inner { padding-block: clamp(40px, 6vw, 72px); }
.hero--species .hero__inner, .hero--tool .hero__inner { padding-block: clamp(40px, 6vw, 66px); }

.eyebrow {
  margin: 0 0 10px; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--green); font-weight: 600;
}
.eyebrow--light { color: rgba(214, 240, 226, 0.9); }

/* ---------- 区块 ---------- */
.section { padding-block: clamp(44px, 6vw, 84px); }
.section--tint { background: linear-gradient(180deg, var(--bg-soft), rgba(246, 250, 247, 0.6)); border-block: 1px solid var(--line); }
.section--dark { background: linear-gradient(160deg, var(--dark), var(--dark-2)); color: #fff; }
.section--dark .sec-head h2, .section--dark h2 { color: #fff; }
.section--dark .sec-desc, .section--dark .muted { color: rgba(232, 244, 237, 0.72); }
.section--dark .eyebrow { color: #9ed3b6; }
.section--cta { padding-block: clamp(38px, 5vw, 64px); }
.section-inner { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.sec-head { margin-bottom: 26px; max-width: 720px; }
.sec-head h2 { margin-bottom: 8px; }
.sec-desc { color: var(--muted); font-size: 15px; margin: 0; }

.grid { display: grid; gap: clamp(14px, 1.8vw, 22px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 卡片 ---------- */
.card {
  display: block; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(18px, 2vw, 24px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.card--link:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
  border-color: var(--line-strong); color: inherit;
}
.card--tight { padding: 16px 18px; border-radius: var(--r); }
.card--glass {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff;
}
.card--glass:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }
.card--glass h3 { color: #fff; }
.card--glass .muted { color: rgba(232, 244, 237, 0.66); }
.card__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 12px;
  background: var(--accent-soft); font-size: 20px;
}
.card--glass .card__icon { background: rgba(255, 255, 255, 0.12); }
.card__go { margin-top: 10px; font-size: 13px; color: var(--green); font-weight: 500; }
.card--glass .card__go { color: #9ed3b6; }
.card--legal { border-left: 3px solid var(--lime); background: rgba(255, 255, 255, 0.6); }
.card--tool { display: flex; flex-direction: column; justify-content: space-between; }
.card h3 a:hover { color: var(--green); }
.card p:last-child { margin-bottom: 0; }

/* ---------- 徽章 / 标签 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; line-height: 1.6; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink-2); background: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}
.badge--calm { background: var(--accent-soft); border-color: transparent; color: var(--green); }
.badge--ok { background: var(--ok-bg); border-color: rgba(31, 111, 74, 0.2); color: var(--ok); }
.badge--warn { background: var(--warn-bg); border-color: rgba(168, 98, 27, 0.24); color: var(--warn); }
.badge--expired { background: var(--err-bg); border-color: rgba(163, 47, 47, 0.22); color: var(--err); }
.section--dark .badge, .card--glass .badge { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.24); color: #e8f4ed; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px; font-size: 13px;
  background: #fff; border: 1px solid var(--line-strong); color: var(--ink-2);
  transition: all 0.18s var(--ease);
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-active, .chip--ok { background: var(--green); border-color: var(--green); color: #fff; }
.chip--ok:hover { color: #fff; }
.chip__n { font-size: 11px; opacity: 0.72; }

/* ---------- 分栏 / 图文 ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.media { margin: 0; }
.media img { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; height: auto; }
.media figcaption { margin-top: 8px; }
/* 配图替换位：无图时用轻渐变面板占位，保持版式与留白 */
.media--slot .media__slot {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(520px 300px at 82% 8%, rgba(31, 111, 74, 0.1), transparent 66%),
    linear-gradient(160deg, rgba(31, 111, 74, 0.08), rgba(15, 127, 116, 0.05) 55%, rgba(255, 255, 255, 0.55));
}
.media--slot .media__slot span {
  font-size: 12.5px; letter-spacing: 0.08em; color: var(--dim);
}
.checklist { list-style: none; margin: 0 0 4px; padding: 0; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: 11px; color: var(--ink-2); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: 11px;
  border-radius: 50%; background: var(--accent-soft); color: var(--green); font-weight: 700;
}
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.linklist li a { color: var(--green); }
.list-tight { margin: 0; padding-left: 18px; }
.list-tight li { margin-bottom: 6px; font-size: 14px; color: var(--ink-2); }

.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(31, 111, 74, 0.1), rgba(15, 127, 116, 0.08));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 36px);
}
.cta h2 { margin-bottom: 6px; }
.sub-form { display: flex; flex-wrap: wrap; gap: 10px; }
.sub-form input[type="email"] {
  min-width: 240px; padding: 11px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; outline: none;
}
.sub-form input[type="email"]:focus { border-color: var(--green); }
.sub-mini { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.sub-mini input[type="email"] {
  flex: 1; min-width: 0; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; outline: none; font-size: 13px;
}

/* ---------- 页脚 ---------- */
.footer { background: var(--dark); color: rgba(232, 244, 237, 0.82); margin-top: 0; }
.footer .muted { color: rgba(232, 244, 237, 0.6); }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(22px, 3vw, 44px); padding-block: clamp(38px, 5vw, 58px);
}
.footer__brand img { width: 34px; height: 34px; border-radius: 9px; margin-bottom: 10px; }
.footer__title { font-weight: 600; color: #fff; margin: 0 0 6px; }
.footer__brand p { font-size: 13px; }
.footer__h { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #9ed3b6; margin: 0 0 12px; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 8px; font-size: 14px; }
.footer__links a:hover { color: #fff; }
.footer .sub-mini input[type="email"] { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.footer .sub-mini input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.5); }
.footer .btn--primary { background: #2c8a5f; }
.footer a { color: rgba(232, 244, 237, 0.78); }
.footer__base {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 18px; font-size: 12px; color: rgba(232, 244, 237, 0.52);
}
.footer__base a { text-decoration: underline; text-underline-offset: 2px; }
.footer__meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.footer__lang {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 10px; padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.footer__lang a { color: rgba(232, 244, 237, 0.6); text-decoration: none; }
.footer__lang a:hover { color: #fff; }
.footer__lang a.is-active { color: #9ed3b6; font-weight: 600; }
.footer__lang span { color: rgba(232, 244, 237, 0.34); }

/* ---------- 面包屑 / 分页 ---------- */
.crumbs { background: rgba(255, 255, 255, 0.7); border-bottom: 1px solid var(--line); font-size: 13px; }
.crumbs .wrap { padding-block: 10px; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--green); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.pager a, .pager span {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 13px; background: #fff;
}
.pager .is-active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- 详情页布局 ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(22px, 3vw, 44px); align-items: start; }
.detail-side, .tool-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(20px, 3vw, 38px); align-items: start; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 18px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--bg-soft); font-size: 12.5px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(31, 111, 74, 0.03); }

/* ---------- 表单 ---------- */
.form { margin: 0; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form__title { font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field__label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.field input[type="text"], .field input[type="number"], .field input[type="email"],
.field input[type="date"], .field input[type="password"], .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: #fff; outline: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  font-size: 14px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 111, 74, 0.12);
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.field__hint { font-size: 11.5px; color: var(--dim); }
.field--check { flex-direction: row; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); }
.field--check input { width: 17px; height: 17px; accent-color: var(--green); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.filter-panel { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 22px; }
.filter-panel .field { min-width: 150px; }

/* ---------- 结果 ---------- */
.result {
  margin-top: 28px; padding: clamp(20px, 2.6vw, 32px);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.result__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.result__head h3 { margin: 0; font-size: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpi {
  background: linear-gradient(160deg, rgba(31, 111, 74, 0.06), rgba(15, 127, 116, 0.04));
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px;
}
.kpi__label { margin: 0; font-size: 12px; color: var(--muted); }
.kpi__val { margin: 2px 0 0; font-size: 26px; font-weight: 600; color: var(--green); line-height: 1.3; }
.kpi__unit { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.chart { margin: 20px 0; }
.chart figcaption { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.chart__canvas { width: 100%; height: auto; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); }
.formula, .params, .conditions { margin-top: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--line); }
.formula__h { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.formula code, .code-block {
  display: block; font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
  color: var(--ink-2); white-space: pre-wrap; word-break: break-word;
}
.params ul, .conditions ul { margin: 0; padding-left: 18px; }
.params li, .conditions li { font-size: 13.5px; color: var(--ink-2); margin-bottom: 4px; }
.result__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 16px; }

/* ---------- 提醒 ---------- */
.alert { padding: 13px 16px; border-radius: var(--r); border: 1px solid var(--line); font-size: 14px; margin-bottom: 16px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert--err { background: var(--err-bg); border-color: rgba(163, 47, 47, 0.22); color: var(--err); }
.alert--warn { background: var(--warn-bg); border-color: rgba(168, 98, 27, 0.24); color: var(--warn); }
.alert--ok { background: var(--ok-bg); border-color: rgba(31, 111, 74, 0.2); color: var(--ok); }

/* ---------- 正文 ---------- */
.prose { font-size: 16px; line-height: 1.95; color: var(--ink-2); }
.prose h2 { margin: 34px 0 12px; color: var(--ink); font-size: 22px; }
.prose h3 { margin: 26px 0 10px; color: var(--ink); }
.prose p { margin: 0 0 15px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose blockquote {
  margin: 18px 0; padding: 12px 18px; border-left: 3px solid var(--lime);
  background: var(--bg-soft); border-radius: 0 var(--r) var(--r) 0; color: var(--ink-2);
}
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--bg-soft); }
.article-foot { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.src { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.src__org { font-weight: 600; color: var(--ink); }
.src a { color: var(--teal); word-break: break-all; }
.src--pending { color: var(--warn); }
.answer-sec { margin-bottom: 22px; }
.answer-sec h3 { font-size: 16px; color: var(--green); }
.answer-sec ul, .answer-sec ol { margin: 6px 0 0; padding-left: 20px; }
.answer-sec li { margin-bottom: 5px; font-size: 14.5px; }
.assistant-result { margin-top: 26px; }
.notice { font-size: 13px; color: var(--muted); background: var(--bg-soft); border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 12px 16px; }
.empty, .empty-state {
  text-align: center; padding: 48px 20px; color: var(--muted);
  background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
}
.login-card { max-width: 420px; margin: clamp(36px, 8vw, 90px) auto; }

/* ---------- 后台 ---------- */
.admin-body { background: var(--bg-soft); }
.admin-top {
  background: rgba(15, 36, 28, 0.96); color: #e8f4ed;
  position: sticky; top: 0; z-index: 100;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.admin-top__inner {
  max-width: 1320px; margin: 0 auto; padding: 0 20px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.admin-top .brand__txt strong { color: #fff; font-size: 14px; }
.admin-top__right { display: flex; align-items: center; gap: 10px; }
.admin-top .btn--ghost { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: #e8f4ed; }
.admin-top .btn--ghost:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.admin-shell { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; padding: 22px 20px 60px; }
.admin-nav {
  position: sticky; top: 82px; align-self: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px; box-shadow: var(--shadow-sm);
}
.admin-nav nav { display: flex; flex-direction: column; }
.admin-nav a { padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.admin-nav a:hover { background: var(--bg-soft); color: var(--green); }
.admin-nav a.is-active { background: var(--green); color: #fff; }
.admin-nav__note { font-size: 11.5px; color: var(--dim); margin: 12px 6px 2px; line-height: 1.6; }
.admin-main { min-width: 0; }
.admin-h1 { font-size: 22px; margin: 2px 0 18px; }

/* 横向空间不足时收起主导航，改用抽屉，避免标签换行 */
@media (max-width: 1179px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* 英文导航标签更长（Environment / Husbandry / AI assistant），在固定 1320 容器内放不下，
   统一收起为抽屉，避免与搜索框重叠；待英文标签精简后再恢复横向导航 */
html[lang="en"] .nav { display: none; }
html[lang="en"] .nav-toggle { display: inline-flex; }
html[lang="en"] .topbar__actions { margin-left: auto; }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout, .tool-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-side, .tool-side { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .search-mini { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; }
  .admin-nav nav { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .topbar__inner { height: 62px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .cta { flex-direction: column; align-items: stretch; }
  .sub-form input[type="email"] { min-width: 0; width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; }
  .table { font-size: 13px; }
  .table th, .table td { padding: 9px 10px; }
  .result { padding: 18px 16px; }
  .kpi__val { font-size: 22px; }
  .drawer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  body { font-size: 15px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 订阅页（subscribe/） ---------- */
.subscribe-layout {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.78fr);
  gap: clamp(18px, 2.4vw, 30px); align-items: start;
}
.subscribe-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: clamp(20px, 2.4vw, 28px);
  box-shadow: 0 26px 64px -36px rgba(15, 36, 28, 0.3), 0 2px 6px rgba(15, 36, 28, 0.04);
  padding: clamp(22px, 3.2vw, 40px);
  -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
}
.subscribe-kicker {
  margin: 0 0 10px; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green); font-weight: 600;
}
.subscribe-card h1 { font-size: clamp(23px, 3vw, 31px); margin: 0 0 10px; letter-spacing: -0.015em; }
.subscribe-lead { color: var(--muted); margin: 0 0 22px; max-width: 46ch; }
.subscribe-form { margin: 0; }
.subscribe-form .field { gap: 8px; }
.subscribe-form .field input[type="email"] {
  font-size: 16px; padding: 14px 16px; border-radius: 14px; background: #fff;
}
.subscribe-form .field input[type="email"]::placeholder { color: var(--dim); }
.subscribe-form .field.has-error input[type="email"] {
  border-color: var(--err); box-shadow: 0 0 0 3px rgba(163, 47, 47, 0.1);
}
.field__error { display: block; font-size: 12.5px; color: var(--err); line-height: 1.6; }
.subscribe-submit { width: 100%; margin-top: 18px; padding: 13px 22px; border-radius: 14px; font-size: 15px; }
.subscribe-submit[disabled] { opacity: 0.78; cursor: progress; transform: none; box-shadow: none; }
.subscribe-spin {
  width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  animation: subscribe-spin 0.7s linear infinite;
}
@keyframes subscribe-spin { to { transform: rotate(360deg); } }
.subscribe-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.subscribe-points li { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.65; }
.subscribe-points svg { flex: 0 0 16px; margin-top: 4px; color: var(--green); }
.subscribe-alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; border-radius: 14px; }
.subscribe-alert__ico {
  flex: 0 0 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, 0.75); margin-top: 1px;
}
.subscribe-alert strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
.subscribe-alert p { margin: 0; font-size: 13px; line-height: 1.6; }
.subscribe-alert p a { text-decoration: underline; word-break: break-all; }
.subscribe-aside { display: grid; gap: 14px; }
.subscribe-note {
  background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px 20px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.subscribe-note h2 { font-size: 14px; margin: 0 0 6px; }
.subscribe-note p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.7; }
.subscribe-note p + p { margin-top: 8px; }
.subscribe-single { max-width: 620px; margin-inline: auto; }
.subscribe-state { display: flex; flex-direction: column; align-items: flex-start; }
.subscribe-state__icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 16px;
}
.subscribe-state__icon--ok { background: var(--ok-bg); color: var(--green); box-shadow: inset 0 0 0 1px rgba(31, 111, 74, 0.14); }
.subscribe-state__icon--warn { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(168, 98, 27, 0.18); }
.subscribe-state__icon--err { background: var(--err-bg); color: var(--err); box-shadow: inset 0 0 0 1px rgba(163, 47, 47, 0.16); }
.subscribe-state__lead { color: var(--ink-2); margin: 0 0 6px; max-width: 52ch; }
.subscribe-state__lead.muted { color: var(--muted); }
.subscribe-state__mail { font-size: 13.5px; color: var(--muted); margin: 2px 0 0; }
.subscribe-state__mail strong { color: var(--ink); font-weight: 600; word-break: break-all; }
.subscribe-steps { counter-reset: sub-step; list-style: none; margin: 18px 0 4px; padding: 0; display: grid; gap: 9px; }
.subscribe-steps li { counter-increment: sub-step; display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.subscribe-steps li::before {
  content: counter(sub-step); flex: 0 0 22px; height: 22px; border-radius: 999px;
  background: var(--accent-soft); color: var(--green); font-size: 11.5px; font-weight: 600;
  display: grid; place-items: center; margin-top: 1px;
}
.subscribe-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.subscribe-foot { max-width: 52ch; margin: 14px auto 0; text-align: center; }

@media (max-width: 900px) {
  .subscribe-layout { grid-template-columns: minmax(0, 1fr); }
  .subscribe-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .subscribe-aside { grid-template-columns: minmax(0, 1fr); }
  .subscribe-card { padding: 22px 18px; border-radius: 20px; }
  .subscribe-actions .btn { flex: 1 1 auto; }
  .subscribe-state__icon { width: 48px; height: 48px; border-radius: 15px; }
  /* 窄屏让位给品牌与菜单：英文品牌名更长，「开始测算」改由抽屉内工具入口承担 */
  .topbar__actions > .btn--primary { display: none; }
  /* 语言切换在窄屏独立成行，去掉换行后悬空的分隔竖线 */
  .footer__lang { border-left: 0; padding-left: 0; margin-left: 0; }
}
