/* ============================================================
   智农种联官网 site.css v3 — 国际科技极简风
   白底 · 大留白 · 超大标题 · 细线分隔 · 品牌绿仅作点缀
   装饰做减法：无纹理 / 无插画 / 无浮动标签
   ============================================================ */

/* ------------------------------------------------------------
   1. tokens
   ------------------------------------------------------------ */
:root {
  /* 品牌绿：链接/按钮/小面积点缀专用 */
  --green: #44622C;
  --green-dark: #38511F;
  --green-soft: #EEF2E3;
  /* 麦黄：仅徽章/极小面积 */
  --wheat: #C99228;
  --wheat-deep: #8A6116;
  --wheat-bg: #F9F3E2;
  /* 深绿墨：CTA/页脚收束 */
  --ink-green: #212A15;
  --ink-green-2: #2A351B;
  /* 中性面 */
  --scaffold: #FFFFFF;
  --alt: #F7F8F3;
  --border: #E8EAE0;
  --border-strong: #D9DDCB;
  /* 墨色 */
  --ink: #1B1710;
  --ink-secondary: #575142;
  --ink-tertiary: #857B66;
  /* 深底浅字 */
  --parchment: #F1E9DC;
  --parchment-dim: rgba(241, 233, 220, .72);
  --parchment-faint: rgba(241, 233, 220, .52);
  /* 投影：极轻 */
  --shadow-xs: 0 1px 2px rgba(27, 23, 16, .05);
  --shadow-card: 0 1px 3px rgba(27, 23, 16, .06), 0 16px 40px -12px rgba(27, 23, 16, .12);
  /* 圆角 */
  --radius-card: 16px;
  --radius-sheet: 24px;
  --radius-btn: 10px;
  /* 布局 */
  --header-h: 72px;
  --container-w: 1360px;
}

/* ------------------------------------------------------------
   2. reset + 基础排版
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
    "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  line-height: 1.75;
  color: var(--ink);
  background: var(--scaffold);
  line-break: loose;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.3; color: var(--ink); }
h1 { font-size: 2rem; margin: 0 0 .6em; }
h2 { font-size: 1.4rem; margin: 2.2em 0 .7em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
p { margin: 0 0 1em; }

ul, ol { padding-left: 1.5em; margin: 0 0 1em; }
li { margin-bottom: .4em; }

mark { background: var(--wheat-bg); color: inherit; padding: 0 2px; }
::selection { background: var(--green-soft); }

/* 键盘导航焦点（无障碍） */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   3. 布局 / 页头 / 页脚 / 版块
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-inline: clamp(20px, 3vw, 40px);
}
main:has(.doc-body) .container { max-width: 72em; }

/* 品牌绿玻璃页头：与 Hero 渐变同色相融 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand small {
  display: block;
  font-size: .68rem;
  font-weight: 400;
  color: var(--ink-tertiary);
  line-height: 1.3;
}

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.main-nav a {
  color: var(--ink-secondary);
  padding: 8px 15px;
  font-size: .95rem;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--ink); background: var(--alt); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--green); font-weight: 700; background: var(--green-soft); }
.lang-switch {
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 5px 13px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--scaffold);
  transition: border-color .15s, background .15s;
}
.lang-switch:hover { border-color: var(--green); color: var(--green); text-decoration: none; }

/* 章节引题：极简小字 */
.kicker {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 10px;
}

/* 版块：紧凑节奏 */
.section { padding: clamp(28px, 4vw, 44px) 0; }
.section-alt {
  background: linear-gradient(90deg, #EDF3DF 0%, #F7F3E0 100%);
  border-radius: 28px;
  margin-inline: clamp(12px, 2.5vw, 32px);
}
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 700;
  letter-spacing: .01em;
  margin: 0 0 .45em;
}
.section-sub {
  color: var(--ink-secondary);
  margin: 0 0 1.5em;
  max-width: 40em;
  font-size: 1.06rem;
}

/* ------------------------------------------------------------
   4. Hero：左文案 + 右 logo 白卡（App 图标式）
   ------------------------------------------------------------ */
/* 品牌绿渐变 Hero：麦黄光斑 + 圆角收边 */
.hero {
  margin: clamp(16px, 2.5vw, 32px) clamp(12px, 2.5vw, 32px) 0;
  padding: clamp(24px, 3.5vw, 44px) 0 clamp(32px, 4.5vw, 56px);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 700px 420px at 86% -12%, rgba(217, 169, 74, .35) 0%, transparent 55%),
    radial-gradient(ellipse 620px 500px at -4% 112%, rgba(255, 255, 255, .1) 0%, transparent 55%),
    linear-gradient(140deg, #5C8A3C 0%, #44622C 45%, #2F4A1E 100%);
  color: #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.6rem, 8vw, 3.3rem);    /* 8vw 随屏宽吃满；下限保 360px 不折行 */
  line-height: 1.2;
  letter-spacing: .01em;
  margin: 0 0 .4em;
}
/* 引题：玻璃胶囊 */
.hero .kicker {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 6px 16px;
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero h1 { color: #fff; }
/* 第二行麦金强调 */
.hero h1 em {
  font-style: normal;
  color: #F2D98D;
}
.hero .lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .85);
  max-width: 33em;
  margin: 0 0 1.4em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }


/* logo 玻璃卡：绿渐变上的磨砂面板 */
.hero-logo-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-sheet);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  place-items: center;
  gap: 10px;
}
.hero-logo-card img {
  width: min(70%, 210px);
  border-radius: 22px;
}
.hero-logo-card figcaption {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-indent: .3em;
  color: rgba(255, 255, 255, .75);
}

/* ------------------------------------------------------------
   5. 按钮
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  border-radius: var(--radius-btn);
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--green); color: #FFFDF9; }
.btn-primary:hover { background: var(--green-dark); text-decoration: none; }
.btn-outline {
  border: 1.5px solid var(--border-strong);
  color: var(--ink);
  background: var(--scaffold);
}
.btn-outline:hover { border-color: var(--ink); text-decoration: none; }
/* 深底 CTA 带上的按钮 */
.btn-wheat { background: var(--wheat-bg); color: var(--ink); }
.btn-w { background: #fff; color: var(--green-dark); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }
.btn-w:hover { background: #F4F7EA; text-decoration: none; }
.btn-d { background: #2F4A1E; color: #fff; }
.btn-d:hover { background: #243A16; text-decoration: none; }
.btn-wheat:hover { background: #FDF8EA; text-decoration: none; }
.btn-ghost-light {
  border: 1.5px solid rgba(241, 233, 220, .38);
  color: var(--parchment);
}
.btn-ghost-light:hover { border-color: var(--parchment); text-decoration: none; }

/* 即将上线徽章 */
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wheat-bg);
  border: 1px solid rgba(201, 146, 40, .4);
  color: var(--wheat-deep);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: .9rem;
  font-weight: 700;
}
.soon-badge svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------
   6. 产品能力：Bento 网格（大小不一圆角卡）
   ------------------------------------------------------------ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bcard {
  background: var(--scaffold);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px 26px;
  box-shadow: var(--shadow-xs);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.bcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: #CBD8B2;
}
.bcard .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(140deg, #6FA047, #4F7A32);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.bcard .icon svg { width: 24px; height: 24px; }
.bcard h3 { margin: 0 0 .35em; font-size: 1.1rem; }
.bcard p { margin: 0; color: var(--ink-secondary); font-size: .94rem; }
/* 大卡：AI 助手 2x2，品牌绿渐变底 */
.bcard-xl {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(150deg, #4F7A32 0%, #33501E 100%);
  border: none;
  color: #fff;
  padding: 32px 34px;
}
.bcard-xl .icon { width: 56px; height: 56px; background: rgba(255, 255, 255, .18); }
.bcard-xl .icon svg { width: 30px; height: 30px; }
.bcard-xl h3 { font-size: 1.45rem; color: #fff; }
.bcard-xl p { font-size: 1rem; max-width: 26em; color: rgba(255, 255, 255, .85); }
/* 宽卡：电商 2x1 */
.bcard-wide { grid-column: span 2; }

/* 图标章三系轮换：绿（默认）/ 麦黄 / 陶土 */
.bcard:nth-child(2) .icon, .bcard:nth-child(5) .icon, .bcard:nth-child(8) .icon { background: linear-gradient(140deg, #D9A94A, #B8892F); }
.bcard:nth-child(3) .icon, .bcard:nth-child(6) .icon { background: linear-gradient(140deg, #D98955, #B85C28); }

/* 服务对象条带：编辑式顶线小格 */
.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.role { border-top: 2px solid var(--green); padding-top: 12px; }
.role svg { width: 20px; height: 20px; color: var(--green-dark); margin-bottom: 8px; }
.role h3 { margin: 0 0 4px; font-size: 1.05rem; }
.role p { margin: 0; color: var(--ink-secondary); font-size: .92rem; }

/* ------------------------------------------------------------
   7. 关于我们
   ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about-grid .company-name {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 12px;
  color: var(--ink);
}
.about-grid .about-desc { color: var(--ink-secondary); margin: 0; }
.fact-rows { border-top: 1px solid var(--border); }
.fact {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--border);
}
.fact .k { color: var(--ink-tertiary); font-size: .9rem; margin: 0; }
.fact .v { font-weight: 700; margin: 0; text-align: right; word-break: keep-all; }

/* ------------------------------------------------------------
   8. CTA 带（内嵌深色卡）
   ------------------------------------------------------------ */
.cta-section {
  padding: 0 clamp(12px, 2.5vw, 32px) clamp(48px, 6vw, 72px);
}
.cta-band {
  background: linear-gradient(140deg, #E8C878 0%, #D9A94A 100%);
  border-radius: 32px;
  padding: clamp(40px, 5vw, 56px) 32px;
  color: #3D2C0E;
  text-align: center;
}
.cta-band h2 {
  color: #3D2C0E;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 .55em;
}
.cta-band p {
  color: rgba(61, 44, 14, .75);
  max-width: 34em;
  margin: 0 auto 2.2em;
}
/* 麦黄底上的按钮：深绿实心 + 深描边 */
.cta-band .btn-outline {
  background: transparent;
  border-color: rgba(61, 44, 14, .4);
  color: #3D2C0E;
}
.cta-band .btn-outline:hover { border-color: #3D2C0E; }
.cta-band .hero-actions { justify-content: center; }

/* ------------------------------------------------------------
   9. 页脚
   ------------------------------------------------------------ */
.site-footer {
  background: #EDF1DF;
  border-top: 1px solid var(--border-strong);
  padding: 36px 0 22px;
  font-size: .92rem;
  color: var(--ink-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.footer-grid h4 {
  margin: 0 0 14px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}
.footer-brand-name {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}
.footer-grid a { color: var(--ink-secondary); }
.footer-grid a:hover { color: var(--green); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid var(--border-strong);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 8px 24px;
  color: var(--ink-tertiary);
  font-size: .82rem;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--green); }

/* ------------------------------------------------------------
   10. 法律文档页
   ------------------------------------------------------------ */
.doc-header { padding: clamp(26px, 4vw, 40px) 0 6px; }
.doc-header h1 { font-size: clamp(1.8rem, 3.2vw, 2.3rem); margin: 0 0 .3em; }
.doc-header .meta { color: var(--ink-tertiary); font-size: .9rem; margin: 0 0 8px; }
.doc-note {
  background: var(--wheat-bg);
  border-left: 3px solid var(--wheat);
  border-radius: 8px;
  padding: 14px 20px;
  font-size: .92rem;
  margin: 16px 0 24px;
}
.doc-toc {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 28px;
  margin-bottom: 32px;
}
.doc-toc h2 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--ink-tertiary);
}
.doc-toc ol { margin: 0; columns: 2; column-gap: 36px; }
.doc-toc li { break-inside: avoid; margin-bottom: .3em; }
.doc-body { max-width: 48em; padding-bottom: 24px; }
.doc-body h2 {
  font-size: 1.28rem;
  margin-top: 2em;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body ol { padding-left: 1.6em; }
.doc-body ol ol { list-style-type: none; padding-left: 1.2em; margin-top: .5em; }
.doc-contact {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 26px;
  margin-top: 44px;
}

/* FAQ */
.faq details { border-top: 1px solid var(--border); padding: 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style-position: outside;
}
.faq summary:hover { color: var(--green); }
.faq details p { padding: 0 0 16px; color: var(--ink-secondary); }

/* 支持页联系卡 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  transition: border-color .15s;
}
.contact-card:hover { border-color: var(--border-strong); }
.contact-card .label {
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--ink-tertiary);
  margin: 0 0 6px;
}
.contact-card .value {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--green);
  word-break: break-all;
  margin: 0;
}

/* ------------------------------------------------------------
   11. 双语差异
   ------------------------------------------------------------ */
html[lang="en"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: calc(1rem - 1px);
  line-height: 1.65;
}
html[lang="en"] .hero h1 { letter-spacing: 0; }
html[lang="en"] .doc-body { hyphens: auto; }
html[lang="en"] .brand small { max-width: 22em; }

.nowrap-zh { word-break: keep-all; }

/* ------------------------------------------------------------
   12. 响应式
   ------------------------------------------------------------ */
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bcard-xl, .bcard-wide { grid-column: span 2; grid-row: auto; }
  .hero-logo-card { max-width: 420px; margin: 0 auto; width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (min-width: 960px) {
  .doc-toc ol { columns: 3; }
}

@media (max-width: 719px) {
  .main-nav { display: none; }
  .site-header .container { min-height: 60px; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bcard-xl, .bcard-wide { grid-column: span 2; grid-row: auto; }
  .role-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* 超小屏（≤380px，如 iPhone SE/入门安卓）：标题再缩，防右缘溢出 */
@media (max-width: 380px) {
  .hero h1 { font-size: 7.3vw; }
}

/* 极小屏：按钮全宽，拇指友好 */
@media (max-width: 479px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .hero-actions .soon-badge { width: 100%; text-align: center; justify-content: center; }
}

@media (max-width: 639px) {
  .hero { margin-inline: 8px; }   /* 小屏卡片边距收窄，给标题让位 */
  body { font-size: 16.5px; }
  html[lang="en"] body { font-size: 16px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bcard-xl, .bcard-wide { grid-column: span 1; }
  .bcard p { font-size: .95rem; }
}

/* 滚动渐现：纯 CSS（Chrome/Edge 115+），不支持时静态呈现；零 JS */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .bcard, .role, .fact, .cta-band, .doc-toc, .contact-card {
      animation: rise-in .55s cubic-bezier(.2, .6, .2, 1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    @keyframes rise-in {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: none; }
    }
  }
}

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