/* ==========================================================================
   智领农业 · 现代农事服务中心
   设计系统 — 基础层：变量、重置、排版、布局、组件
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 品牌主色：农业绿 */
  --brand-900: #0d3b2e;
  --brand-800: #114c3b;
  --brand-700: #16624a;
  --brand-600: #1c7a5b;
  --brand-500: #24936e;
  --brand-400: #4aad8a;
  --brand-100: #e4f1ec;
  --brand-50:  #f1f8f5;

  /* 辅助色：沃土金（收获、荣誉、数据高亮） */
  --gold-700: #8a6412;
  --gold-600: #a87d18;
  --gold-500: #c99a2e;
  --gold-400: #ddb45c;
  --gold-100: #fbf1dc;
  --gold-50:  #fdf8ee;

  /* 中性色 */
  --ink-900: #14181a;
  --ink-800: #222a2d;
  --ink-700: #3a4549;
  --ink-600: #55625f;
  --ink-500: #6f7c78;
  --ink-400: #93a09b;
  --ink-300: #bcc5c1;
  --ink-200: #dde3e0;
  --ink-100: #eef1ef;
  --ink-50:  #f6f8f7;
  --white:    #ffffff;

  /* 语义色 */
  --red-600: #b3382c;
  --red-100: #fbeceb;
  --blue-600: #1f5f8b;
  --blue-100: #e8f1f7;

  /* 表面 */
  --bg-body: #ffffff;
  --bg-soft: var(--ink-50);
  --bg-muted: var(--ink-100);

  /* 排版 */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC",
               "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC",
                "SimSun", Georgia, serif;
  --font-num: "DIN Alternate", "Bebas Neue", "Helvetica Neue", Arial, sans-serif;

  /* 尺度 */
  --maxw: 1240px;
  --maxw-wide: 1440px;
  --gut: 40px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  /* 阴影 */
  --sh-xs: 0 1px 2px rgba(13, 59, 46, .06);
  --sh-sm: 0 2px 10px rgba(13, 59, 46, .07);
  --sh-md: 0 8px 30px rgba(13, 59, 46, .09);
  --sh-lg: 0 20px 60px rgba(13, 59, 46, .13);
  --sh-inset: inset 0 1px 0 rgba(255,255,255,.6);

  /* 动效 */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .55s;
}

/* ---------- 2. 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-700);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; color: var(--ink-900); line-height: 1.35; }
p { margin: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--brand-600); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-100); }
::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 5px; border: 2px solid var(--ink-100); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-400); }

/* ---------- 3. 排版 ---------- */
.t-display {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  line-height: 1.18;
  letter-spacing: .02em;
  font-weight: 700;
}
.t-h1 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); line-height: 1.25; letter-spacing: .01em; }
.t-h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.32; }
.t-h3 { font-size: clamp(1.16rem, 1.7vw, 1.42rem); line-height: 1.45; }
.t-h4 { font-size: 1.05rem; line-height: 1.5; }
.t-body { font-size: 1rem; line-height: 1.85; }
.t-sm { font-size: .9rem; line-height: 1.75; }
.t-xs { font-size: .8rem; line-height: 1.6; }
.t-num { font-family: var(--font-num); font-weight: 700; letter-spacing: .01em; }

.t-brand { color: var(--brand-600); }
.t-gold  { color: var(--gold-600); }
.t-muted { color: var(--ink-500); }
.t-lead  { font-size: 1.08rem; line-height: 1.95; color: var(--ink-600); }
.t-serif { font-family: var(--font-serif); }

/* 章节眉标 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .76rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--brand-600);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--gold-500); flex: none;
}
.eyebrow--light { color: rgba(255,255,255,.82); }
.eyebrow--light::before { background: var(--gold-400); }

.section-head { margin-bottom: 46px; }
.section-head__title { margin-top: 14px; }
.section-head__desc { margin-top: 16px; max-width: 760px; }
.section-head--center { text-align: center; }
.section-head--center .section-head__desc { margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow { justify-content: center; }

/* 装饰分隔 */
.rule { height: 1px; background: var(--ink-200); border: 0; margin: 0; }
.rule--gold { background: linear-gradient(90deg, var(--gold-500), transparent); }

/* ---------- 4. 布局 ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.wrap--wide { max-width: var(--maxw-wide); }
.wrap--narrow { max-width: 900px; }

section { position: relative; }
.sec { padding: 104px 0; }
.sec--tight { padding: 72px 0; }
.sec--loose { padding: 132px 0; }
.sec--soft  { background: var(--bg-soft); }
.sec--brand { background: var(--brand-900); color: rgba(255,255,255,.86); }
.sec--brand h2, .sec--brand h3, .sec--brand h4 { color: #fff; }
.sec--deep {
  background: linear-gradient(160deg, var(--brand-900) 0%, #0a2e23 55%, #08241b 100%);
  color: rgba(255,255,255,.84);
}
.sec--deep h2, .sec--deep h3, .sec--deep h4 { color: #fff; }

.grid { display: grid; gap: 28px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g-sidebar { grid-template-columns: minmax(0,1fr) 340px; }
.g-sidebar-l { grid-template-columns: 300px minmax(0,1fr); }

@media (max-width: 1080px) {
  .g-4, .g-5, .g-6 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .g-sidebar, .g-sidebar-l { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 860px) {
  .g-3, .g-4, .g-5, .g-6 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sec { padding: 76px 0; }
}
@media (max-width: 560px) {
  :root { --gut: 20px; }
  .g-2, .g-3, .g-4, .g-5, .g-6 { grid-template-columns: minmax(0,1fr); }
  .sec { padding: 60px 0; }
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 30px; border-radius: var(--r-sm);
  font-size: .95rem; font-weight: 700; letter-spacing: .04em;
  transition: all .28s var(--ease); white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--brand-600); color: #fff; box-shadow: var(--sh-sm); }
.btn--primary:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn--gold { background: var(--gold-500); color: var(--brand-900); box-shadow: var(--sh-sm); }
.btn--gold:hover { background: var(--gold-400); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn--ghost { border: 1px solid rgba(255,255,255,.42); color: #fff; backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.75); }
.btn--outline { border: 1px solid var(--brand-600); color: var(--brand-700); }
.btn--outline:hover { background: var(--brand-600); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 20px; font-size: .86rem; }

.link-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .9rem; font-weight: 700; color: var(--brand-600);
  transition: gap .28s var(--ease);
}
.link-more::after {
  content: "→"; font-size: 1.05em; line-height: 1;
}
.link-more:hover { gap: 13px; }

/* ---------- 6. 卡片 ---------- */
.card {
  background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-md);
  padding: 32px 28px; transition: all .38s var(--ease);
  position: relative; overflow: hidden; height: 100%;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand-500), var(--gold-500));
  transition: width .5s var(--ease);
}
.card:hover { border-color: var(--brand-400); transform: translateY(-5px); box-shadow: var(--sh-md); }
.card:hover::before { width: 100%; }
.card__icon {
  width: 54px; height: 54px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--brand-50); color: var(--brand-600);
  border: 1px solid var(--brand-100);
  transition: all .38s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.card__title { font-size: 1.1rem; margin-bottom: 10px; }
.card__text { font-size: .92rem; color: var(--ink-500); line-height: 1.8; }
.card__no {
  position: absolute; right: 18px; top: 12px;
  font-family: var(--font-num); font-size: 2.6rem; font-weight: 700;
  color: var(--ink-100); line-height: 1; z-index: 0;
}
.card > * { position: relative; z-index: 1; }

/* 深色卡 */
.card--dark {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.13);
  color: rgba(255,255,255,.76); backdrop-filter: blur(8px);
}
.card--dark:hover { border-color: rgba(201,154,46,.6); background: rgba(255,255,255,.08); }
.card--dark .card__title { color: #fff; }
.card--dark .card__text { color: rgba(255,255,255,.66); }
.card--dark .card__icon { background: rgba(201,154,46,.16); color: var(--gold-400); border-color: rgba(201,154,46,.3); }
.card--dark:hover .card__icon { background: var(--gold-500); color: var(--brand-900); border-color: var(--gold-500); }
.card--dark .card__no { color: rgba(255,255,255,.06); }

/* ---------- 7. 数据卡 ---------- */
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-num); font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 700; color: var(--brand-600); line-height: 1.05;
}
.stat__num sup { font-size: .5em; font-weight: 700; margin-left: 2px; }
.stat__label { margin-top: 8px; font-size: .9rem; color: var(--ink-500); font-weight: 500; }
.stat--gold .stat__num { color: var(--gold-600); }
.sec--brand .stat__num, .sec--deep .stat__num { color: var(--gold-400); }
.sec--brand .stat__label, .sec--deep .stat__label { color: rgba(255,255,255,.6); }
.stat-line { margin: 0 auto; width: 40px; height: 2px; background: var(--gold-500); }

/* ---------- 8. 标签 ---------- */
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: .78rem; font-weight: 600; line-height: 1.7;
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100);
}
.tag--gold { background: var(--gold-50); color: var(--gold-700); border-color: var(--gold-100); }
.tag--outline { background: transparent; color: var(--ink-600); border-color: var(--ink-200); }
.sec--brand .tag, .sec--deep .tag {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.2);
}

/* ---------- 9. 表格 ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--ink-200); border-radius: var(--r-md); }
.tbl { min-width: 640px; font-size: .89rem; }
.tbl thead th {
  background: var(--brand-800); color: #fff; font-weight: 600;
  padding: 14px 18px; text-align: left; white-space: nowrap;
  font-size: .86rem; letter-spacing: .04em;
}
.tbl tbody td { padding: 13px 18px; border-bottom: 1px solid var(--ink-100); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: var(--brand-50); }
.tbl .col-idx { width: 52px; color: var(--ink-400); font-family: var(--font-num); }
.tbl .col-num { font-family: var(--font-num); font-weight: 700; color: var(--brand-700); white-space: nowrap; }
.tbl--compact tbody td { padding: 10px 16px; }

/* ---------- 10. 时间线 ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--brand-500), var(--gold-500), transparent);
}
.tl-item { position: relative; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand-600);
  box-shadow: 0 0 0 3px #fff;
}
.tl-year {
  font-family: var(--font-num); font-size: 1.5rem; font-weight: 700;
  color: var(--brand-700); line-height: 1.2;
}
.tl-title { font-size: 1.02rem; margin: 4px 0 8px; }
.tl-text { font-size: .91rem; color: var(--ink-500); line-height: 1.8; }

/* ---------- 11. 引用/要点块 ---------- */
.quote {
  position: relative; padding: 30px 34px; background: var(--brand-50);
  border-left: 3px solid var(--brand-600); border-radius: 0 var(--r-md) var(--r-md) 0;
}
.quote__text { font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.95; color: var(--ink-800); }
.quote__src { margin-top: 14px; font-size: .82rem; color: var(--ink-500); }
.quote__src::before { content: "—— "; }

.notice {
  display: flex; gap: 14px; padding: 20px 24px; border-radius: var(--r-md);
  background: var(--gold-50); border: 1px solid var(--gold-100);
  font-size: .88rem; line-height: 1.8; color: var(--ink-600);
}
.notice svg { width: 19px; height: 19px; flex: none; color: var(--gold-600); margin-top: 3px; }
.notice--blue { background: var(--blue-100); border-color: #d3e3ee; }
.notice--blue svg { color: var(--blue-600); }

/* ---------- 12. 面包屑 ---------- */
.crumb { display: flex; align-items: center; gap: 9px; font-size: .82rem; color: rgba(255,255,255,.62); }
.crumb a:hover { color: #fff; }
.crumb span { opacity: .45; }
.crumb--dark { color: var(--ink-500); }
.crumb--dark a:hover { color: var(--brand-600); }

/* ---------- 13. 图片框 ---------- */
.imgbox { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--ink-100); }
.imgbox img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.imgbox:hover img { transform: scale(1.055); }
.imgbox--r4 { border-radius: var(--r-lg); }
.imgbox--r0 { border-radius: 0; }
.imgbox figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 22px 16px;
  background: linear-gradient(transparent, rgba(9,32,25,.86));
  color: #fff; font-size: .88rem; font-weight: 600;
}

/* ---------- 14. 工具类 ---------- */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}
.mt-4{margin-top:32px}.mt-5{margin-top:40px}.mt-6{margin-top:56px}.mt-7{margin-top:72px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.mb-4{margin-bottom:32px}.mb-5{margin-bottom:40px}.mb-6{margin-bottom:56px}
.tc { text-align: center; }
.tr { text-align: right; }
.flex { display: flex; }
.fw { flex-wrap: wrap; }
.fcc { display: flex; align-items: center; justify-content: center; }
.fac { display: flex; align-items: center; }
.fsb { display: flex; align-items: center; justify-content: space-between; }
.fcol { display: flex; flex-direction: column; }
.gap-1{gap:8px}.gap-2{gap:16px}.gap-3{gap:24px}.gap-4{gap:32px}.gap-5{gap:40px}
.rel { position: relative; }
.full { width: 100%; }
.hr-gold { height: 2px; width: 52px; background: var(--gold-500); border: 0; margin: 18px 0; }
.hide { display: none !important; }

@media (max-width: 860px) {
  .sm-hide { display: none !important; }
  .sm-full { width: 100% !important; }
}
