/* =========================================================
   蔡昌国 · 自然质朴·绿土 视觉系统（纯文字版）
   ========================================================= */
:root {
  /* —— 色板：原木 + 草绿 + 米白 —— */
  --cream:        #F6F1E7;
  --cream-2:      #EFE8D8;
  --paper:        #FBF8F1;
  --green-deep:   #2E4A2B;
  --green:        #4E7A43;
  --green-light:  #7FA56A;
  --wood:         #A9744F;
  --wood-light:   #C89B73;
  --earth:        #6B4F3A;
  --ink:          #2B2A24;
  --muted:        #857C6B;

  /* —— 字体 —— */
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-sans:  "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* —— 尺度 —— */
  --maxw: 980px;
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(43, 42, 36, .35);
  --shadow-soft: 0 10px 28px -18px rgba(43, 42, 36, .4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(127,165,106,.06) 0, transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(169,116,79,.05) 0, transparent 40%);
}

a { color: inherit; text-decoration: none; }

/* ===== 通用区块 ===== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 28px;
}
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .28em;
  color: var(--wood);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.35;
}
.section__lead { margin-top: 16px; color: var(--muted); font-size: 16px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-soft); }
.btn--primary:hover { transform: translateY(-2px); background: var(--green-deep); }
.btn--ghost { border-color: var(--green); color: var(--green-deep); background: transparent; }
.btn--ghost:hover { background: rgba(78,122,67,.1); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ===== 导航 ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(246,241,231,.85);
  border-bottom: 1px solid rgba(107,79,58,.12);
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled { box-shadow: 0 6px 24px -16px rgba(43,42,36,.5); }
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); }
.brand__seal {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--green-deep); color: #fff;
  font-size: 18px; font-weight: 700;
}
.brand__text { font-size: 21px; font-weight: 700; color: var(--green-deep); letter-spacing: .04em; }

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 15px; color: var(--ink); font-weight: 500; position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--green); transition: width .25s ease;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--green-deep); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--green-deep); border-radius: 2px; transition: .3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero · 个人 IP 首屏 ===== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  background: linear-gradient(180deg, #EAF0E2 0%, var(--cream) 72%);
}
.hero__inner { max-width: 760px; }
.hero__seal {
  display: grid; place-items: center;
  width: 96px; height: 96px; margin: 0 auto 26px;
  border-radius: 24px;
  background: linear-gradient(150deg, var(--green-deep), var(--green));
  color: #fff; font-family: var(--font-serif); font-size: 52px; font-weight: 700;
  box-shadow: 0 20px 44px -20px rgba(46,74,43,.6);
}
.hero__eyebrow {
  display: inline-block; letter-spacing: .35em; font-size: 13px; font-weight: 700;
  color: var(--wood); margin-bottom: 20px; padding: 7px 18px;
  border: 1px solid rgba(169,116,79,.35); border-radius: 999px; background: rgba(255,255,255,.4);
}
.hero__name {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(52px, 11vw, 96px); line-height: 1.05; color: var(--green-deep);
  letter-spacing: .04em;
}
.hero__role { margin-top: 18px; font-size: clamp(16px, 2.4vw, 20px); font-weight: 500; color: var(--earth); }
.hero__sub { margin: 24px auto 0; max-width: 580px; color: var(--earth); font-size: 17px; }
.hero__tags {
  list-style: none; margin: 30px auto 0; display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center;
}
.hero__tags li {
  font-size: 13.5px; color: var(--green-deep); font-weight: 500;
  background: rgba(78,122,67,.1); border: 1px solid rgba(78,122,67,.18);
  padding: 6px 14px; border-radius: 999px;
}
.hero__cta { margin-top: 38px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== 关于我 ===== */
.about__text { max-width: 760px; margin: 0 auto; }
.about__text p { margin-bottom: 18px; font-size: 16.5px; color: #3a3830; }
.about__text strong { color: var(--green-deep); }
.about__values { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.about__values li { display: flex; align-items: baseline; gap: 12px; font-size: 15.5px; color: var(--ink); }
.about__values .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wood); flex: none; transform: translateY(1px); }
.about__values strong { color: var(--green-deep); }

/* ===== 卡片（纯文字版） ===== */
.products__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-soft); border: 1px solid rgba(107,79,58,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__body { padding: 26px 24px 28px; }
.card__tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--green); background: rgba(78,122,67,.1); padding: 4px 12px; border-radius: 999px;
}
.card__title { font-family: var(--font-serif); font-size: 20px; margin: 12px 0 8px; color: var(--green-deep); }
.card__desc { font-size: 14.5px; color: var(--muted); }

/* ===== 技术分享 ===== */
.tech .card__desc { line-height: 1.75; }

/* —— AI 金字塔：文字层级 —— */
.tech-pyramid {
  max-width: 820px; margin: 0 auto 52px; background: #fff;
  border-radius: 20px; padding: 30px 32px; box-shadow: var(--shadow-soft);
  border: 1px solid rgba(107,79,58,.08);
}
.tech-pyramid__title { font-family: var(--font-serif); font-size: 23px; color: var(--green-deep); margin: 8px 0 18px; }
.pyramid { list-style: none; counter-reset: pyr; margin: 0 0 18px; display: grid; gap: 10px; }
.pyramid li {
  counter-increment: pyr;
  position: relative; padding: 12px 16px 12px 52px;
  background: var(--paper); border-radius: 12px; font-size: 15px; color: #3a3830;
  border: 1px solid rgba(107,79,58,.07);
}
.pyramid li::before {
  content: counter(pyr);
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: #fff; font-size: 13px; font-weight: 700;
}
.pyramid li:nth-child(1)::before { background: var(--wood); }
.pyramid li b { color: var(--green-deep); }
.tech-pyramid__note { font-size: 14.5px; line-height: 1.8; color: #4a463c; margin: 0; }
.tech-pyramid__note strong { color: var(--green-deep); }

/* ===== 农业知识 ===== */
.agri { background: linear-gradient(180deg, var(--paper) 0%, #F2EEDF 100%); border-radius: 32px; }

.agri-feature {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; align-items: start;
  max-width: 900px; margin: 0 auto 52px;
}
.agri-feature__text .card__tag { display: inline-block; margin-bottom: 10px; }
.agri-feature__title { font-family: var(--font-serif); font-size: 25px; color: var(--green-deep); margin: 0 0 18px; }
.agri-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.agri-list li { padding-left: 22px; position: relative; line-height: 1.75; color: #3a382f; font-size: 15px; }
.agri-list li::before { content: "❋"; position: absolute; left: 0; top: 0; color: var(--green); }
.agri-list li strong { color: var(--green-deep); }
.agri-feature__aside {
  background: #fff; border-radius: 16px; padding: 24px 22px;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(107,79,58,.08);
}
.agri-aside__label { font-size: 13px; font-weight: 700; color: var(--wood); letter-spacing: .06em; margin-bottom: 10px; }
.agri-feature__aside p { font-size: 14.5px; color: #4a463c; line-height: 1.8; }

/* ===== 战略方法 ===== */
.strategy { background: #2E4A2B; color: #F4F1E6; border-radius: 32px; }
.strategy .kicker { color: #C9DFA9; }
.strategy .section__title { color: #fff; }
.strategy .section__lead { color: rgba(255,255,255,.72); }
.strategy__sub {
  font-family: var(--font-serif); font-size: 21px; color: #EAF2DC; margin: 0 0 26px; text-align: center;
}

/* —— 十六字环网格 —— */
.strategy__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 920px; margin: 0 auto 12px;
}
.ring-item {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px;
}
.ring {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--green-light); color: #1f331c; font-weight: 700; font-size: 18px;
  flex: none;
}
.ring-item p { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.82); margin: 0; }
.ring-item p b { color: #C9DFA9; }

/* —— 战略屋 / 农业大战略 文字结构 —— */
.strategy__house, .strategy__agri {
  max-width: 820px; margin: 48px auto 0;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; padding: 30px 32px;
}
.house { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.house li {
  font-size: 15px; line-height: 1.75; color: rgba(255,255,255,.85);
  padding-left: 4px; border-left: 3px solid var(--green-light); padding-left: 14px;
}
.house li b { color: #C9DFA9; }
.strategy__note {
  font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.07); padding: 16px 18px; border-radius: 14px; margin: 20px 0 0;
}
.strategy__note strong { color: #C9DFA9; }
.strategy__agri-text { font-size: 15px; color: rgba(255,255,255,.82); margin: 0 0 16px; }
.strategy__flow {
  margin: 24px 0 0; text-align: center; font-size: 15px; color: rgba(255,255,255,.85);
}
.strategy__flow span {
  display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 4px 14px; margin: 0 2px; color: #fff; font-weight: 500;
}
.strategy__flow i { font-style: normal; color: #C9DFA9; margin: 0 6px; }

/* ===== 知识专栏 ===== */
.columns { background: var(--paper); border-radius: 32px; }
.columns__list { max-width: 820px; margin: 0 auto; display: grid; gap: 18px; }
.col-item {
  background: #fff; border: 1px solid #E7E1CE; border-radius: 16px; padding: 24px 28px;
  box-shadow: 0 4px 18px rgba(60,50,20,.06); transition: transform .25s ease, box-shadow .25s ease;
}
.col-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.col-item__meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.col-item__series { display: inline-block; background: var(--green); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 999px; margin-right: 8px; }
.col-item__series--green { background: var(--wood); }
.col-item__title { font-family: var(--font-serif); font-size: 19px; color: var(--ink); margin: 0 0 8px; }
.col-item__desc { margin: 0; font-size: 14.5px; line-height: 1.75; color: #5C574A; }

/* ===== 合作联系 ===== */
.contact__card {
  max-width: 920px; margin: 0 auto; background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(107,79,58,.1);
}
.contact__intro { padding: 52px 46px; background: linear-gradient(160deg, var(--green-deep), var(--green)); color: #fff; }
.contact__intro .section__title { color: #fff; }
.contact__intro .section__lead { color: rgba(255,255,255,.85); }
.contact__info { list-style: none; margin-top: 30px; display: grid; gap: 14px; }
.contact__info li { font-size: 15px; display: flex; gap: 14px; align-items: baseline; }
.contact__info span { font-size: 12px; letter-spacing: .1em; color: var(--green-light); min-width: 48px; font-weight: 700; }

.contact__form { padding: 52px 46px; display: grid; gap: 18px; align-content: center; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--earth); }
.field input, .field textarea {
  font-family: var(--font-sans); font-size: 15px; padding: 13px 15px; border-radius: 12px;
  border: 1.5px solid var(--cream-2); background: var(--paper); color: var(--ink); resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(78,122,67,.15);
}
.form__hint { font-size: 14px; color: var(--green); min-height: 20px; font-weight: 600; }

/* ===== 页脚 ===== */
.footer { background: var(--green-deep); color: rgba(255,255,255,.85); margin-top: 40px; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 54px 28px 30px;
  display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.footer__brand .brand__text { color: #fff; font-size: 22px; }
.footer__brand p { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.6); max-width: 320px; }
.footer__nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.footer__nav a { font-size: 15px; color: rgba(255,255,255,.8); }
.footer__nav a:hover { color: #fff; }
.footer__copy { text-align: center; padding: 20px; font-size: 13px; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.12); }
.footer__beian { text-align: center; padding: 0 20px 26px; font-size: 13px; color: rgba(255,255,255,.55); }
.footer__beian a { color: rgba(255,255,255,.7); border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 1px; }
.footer__beian a:hover { color: #fff; border-bottom-color: #fff; }

/* ===== 滚动揭示动画 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .agri-feature { grid-template-columns: 1fr; gap: 28px; }
  .strategy__grid { grid-template-columns: repeat(2, 1fr); }
  .about__text { text-align: left; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__card { grid-template-columns: 1fr; }

  .nav__links {
    position: fixed; top: 64px; right: 16px; left: 16px;
    flex-direction: column; gap: 4px; background: var(--paper);
    padding: 16px; border-radius: 16px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 10px 8px; }
  .nav__toggle { display: flex; }
}

@media (max-width: 560px) {
  .section { padding: 72px 20px; }
  .products__grid { grid-template-columns: 1fr; }
  .strategy__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(44px, 14vw, 64px); }
  .contact__intro, .contact__form { padding: 36px 26px; }
  .tech-pyramid, .strategy__house, .strategy__agri { padding: 24px 22px; }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== 登录 / 注册 / 个人中心（子页保留，供后续接入） ===== */
.auth__top { max-width: var(--maxw); margin: 0 auto; padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; }
.auth__back { font-size: 14px; color: var(--green-deep); font-weight: 600; }
.auth__back:hover { color: var(--green); }
.auth { max-width: 460px; margin: 96px auto 80px; padding: 0 24px; }
.auth__card { background: #fff; border-radius: 28px; box-shadow: var(--shadow); border: 1px solid rgba(107,79,58,.1); overflow: hidden; }
.auth__head { padding: 40px 40px 0; text-align: center; }
.auth__leaf { font-size: 40px; }
.auth__title { font-family: var(--font-serif); font-size: 28px; color: var(--green-deep); margin: 12px 0 6px; }
.auth__sub { color: var(--muted); font-size: 14.5px; }
.auth__form { padding: 28px 40px 40px; display: grid; gap: 16px; }
.auth__hint { font-size: 14px; min-height: 20px; font-weight: 600; }
.auth__hint.is-error { color: #c0392b; }
.auth__hint.is-ok { color: var(--green); }
.auth__alt { text-align: center; padding: 0 40px 36px; font-size: 14px; color: var(--muted); }
.auth__alt a { color: var(--green-deep); font-weight: 700; border-bottom: 1px solid transparent; }
.auth__alt a:hover { border-bottom-color: var(--green); }
.account { max-width: 880px; margin: 96px auto 80px; padding: 0 24px; }
.account__card { background: #fff; border-radius: 28px; box-shadow: var(--shadow); border: 1px solid rgba(107,79,58,.1); overflow: hidden; }
.account__hero { padding: 44px; background: linear-gradient(160deg, var(--green-deep), var(--green)); color: #fff; display: flex; align-items: center; gap: 24px; }
.account__avatar { width: 88px; height: 88px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 38px; border: 3px solid rgba(255,255,255,.4); }
.account__name { font-family: var(--font-serif); font-size: 26px; }
.account__email { color: rgba(255,255,255,.82); font-size: 15px; margin-top: 4px; }
.account__body { padding: 36px 44px; display: grid; gap: 30px; }
.account__section h3 { font-family: var(--font-serif); color: var(--green-deep); font-size: 19px; margin-bottom: 14px; }
.account__meta { display: grid; gap: 10px; }
.account__meta div { display: flex; gap: 12px; font-size: 15px; }
.account__meta span { color: var(--muted); min-width: 56px; font-weight: 600; }
.account__favs { list-style: none; display: grid; gap: 12px; }
.account__favs li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--paper); border-radius: 14px; border: 1px solid rgba(107,79,58,.08); }
.account__favs .emoji { font-size: 30px; }
.account__favs .name { font-weight: 600; color: var(--ink); }
.account__favs .meta { color: var(--muted); font-size: 13px; }
.account__empty { color: var(--muted); font-size: 14px; }
