/* ===========================================================
   椰王集团 · 设计系统
   椰林绿 + 椰乳白
   =========================================================== */

:root {
  --green-900: #0f2a1d;
  --green-800: #143b28;
  --green-700: #1b4d34;
  --green-600: #226540;
  --green-500: #2f7a4f;
  --green-300: #7faa90;
  --green-100: #dfeadf;
  --green-50: #eff5ee;

  --sand: #f7f3e9;
  --cream: #fdfbf5;
  --white: #ffffff;

  --gold: #b99358;
  --gold-soft: #d8c19a;

  --ink: #1a2420;
  --ink-2: #3d4a44;
  --ink-3: #6b7770;
  --line: rgba(26, 36, 32, 0.1);
  --line-soft: rgba(26, 36, 32, 0.06);

  --maxw: 1240px;
  --radius: 4px;
  --radius-lg: 10px;

  --font-cn: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-cn);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: var(--green-700); color: var(--cream); }

/* ---------- 布局 ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 108px 0; position: relative; }
.section--tight { padding: 76px 0; }
.section--sand { background: var(--sand); }
.section--green { background: var(--green-800); color: var(--cream); }
.section--green .eyebrow { color: var(--gold-soft); }
.section--green h2 { color: var(--cream); }

/* ---------- 排版 ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-500);
  margin: 0 0 18px;
  font-weight: 600;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }

h1 { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.14; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.28; }
h3 { font-size: 20px; }

.lead {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--ink-2);
  line-height: 1.9;
  max-width: 62ch;
}

.muted { color: var(--ink-3); }
.serif { font-family: var(--font-serif); }

.section-head { max-width: 780px; margin-bottom: 60px; }
.section-head h2 { margin-bottom: 20px; }
.section-head p { color: var(--ink-2); margin: 0; font-size: 17px; line-height: 1.9; }
.section--green .section-head p { color: rgba(253, 251, 245, 0.72); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  background: var(--green-700);
  color: var(--cream);
  white-space: nowrap;
}
.btn:hover { background: var(--green-800); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--green-700); border-color: rgba(27, 77, 52, 0.28); }
.btn--ghost:hover { background: var(--green-700); color: var(--cream); border-color: var(--green-700); }
.btn--light { background: var(--cream); color: var(--green-800); }
.btn--light:hover { background: #fff; }
.btn--outline-light { background: transparent; color: var(--cream); border-color: rgba(253,251,245,0.35); }
.btn--outline-light:hover { background: rgba(253,251,245,0.1); }
.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 251, 245, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 24px rgba(26,36,32,0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 46px; height: 46px; border-radius: 50%;
  background: transparent;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  /* 圆形徽标自带透明底，加一层极淡的投影让它和背景分离 */
  filter: drop-shadow(0 1px 2px rgba(15,42,29,0.10));
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-size: 19px; font-weight: 700; letter-spacing: 0.14em; color: var(--green-900); }
.logo__sub { font-size: 9.5px; letter-spacing: 0.24em; color: var(--ink-3); text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 44px; }
.nav__links a {
  font-size: 15px; color: var(--ink-2); position: relative; padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--green-700); transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--green-800); }
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--green-800); font-weight: 500; }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__user {
  display: none; align-items: center; gap: 10px;
  font-size: 14px; color: var(--green-800);
}
.nav__avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-100); color: var(--green-800);
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
}
.nav__user.is-on { display: flex; }
.nav__login.is-hidden { display: none; }

.nav__toggle {
  display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav__toggle span { width: 20px; height: 1.5px; background: var(--green-800); transition: 0.3s var(--ease); }

/* ---------- 首页：首屏 ---------- */
.hero {
  position: relative;
  min-height: 640px;
  height: calc(100vh - 76px);
  max-height: 820px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-900);
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.02);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1.1); } }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,42,29,0.86) 0%, rgba(15,42,29,0.62) 42%, rgba(15,42,29,0.18) 74%, rgba(15,42,29,0.05) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 40px 0; width: 100%; }
.hero__eyebrow {
  font-size: 12px; letter-spacing: 0.26em; color: var(--gold-soft);
  margin: 0 0 26px; font-weight: 600;
}
.hero h1 { color: var(--cream); max-width: 15ch; margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero__desc {
  color: rgba(253,251,245,0.8); font-size: 17px; line-height: 1.9;
  max-width: 46ch; margin: 0 0 42px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  color: rgba(253,251,245,0.6); font-size: 11px; letter-spacing: 0.24em;
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2;
}
.hero__scroll i {
  display: block; width: 1px; height: 34px;
  background: linear-gradient(to bottom, rgba(253,251,245,0.5), transparent);
  animation: scrollDot 2.2s infinite var(--ease);
}
@keyframes scrollDot { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- 数据条 ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 44px 8px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.4vw, 44px);
  color: var(--green-800); line-height: 1; letter-spacing: -0.02em;
}
.stat__num small { font-size: 0.44em; margin-left: 4px; letter-spacing: 0; }
.stat__label { font-size: 13px; color: var(--ink-3); margin-top: 12px; letter-spacing: 0.06em; }

/* ---------- 简介分栏 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.split--media-right .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); }
.split__media::after {
  content: ""; position: absolute; inset: 16px -16px -16px 16px;
  border: 1px solid var(--gold-soft); border-radius: var(--radius-lg); z-index: -1;
}
.split__body h2 { margin-bottom: 24px; }
.split__body p { color: var(--ink-2); margin: 0 0 18px; line-height: 1.95; }
.split__body .btn { margin-top: 16px; }

/* ---------- 品牌网格 ---------- */
.brand-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.brand-card {
  background: var(--cream); padding: 0; position: relative; overflow: hidden;
  transition: background 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.brand-card:hover { background: var(--white); }
.brand-card__img { aspect-ratio: 16/10; overflow: hidden; }
.brand-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.brand-card:hover .brand-card__img img { transform: scale(1.05); }
.brand-card__body { padding: 30px 32px 34px; flex: 1; display: flex; flex-direction: column; }
.brand-card__name { font-size: 24px; font-family: var(--font-serif); color: var(--green-900); margin-bottom: 8px; letter-spacing: 0.06em; }
.brand-card__tag {
  display: inline-block; font-size: 11.5px; color: var(--green-600);
  letter-spacing: 0.14em; margin-bottom: 16px;
}
.brand-card__desc { font-size: 14.5px; color: var(--ink-3); line-height: 1.85; margin: 0; flex: 1; }
.brand-card--wide { grid-column: span 2; flex-direction: row; }
.brand-card--wide .brand-card__img { aspect-ratio: auto; width: 46%; flex-shrink: 0; }
.brand-card--wide .brand-card__body { padding: 40px 44px; justify-content: center; }

/* ---------- 品类 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cat {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  min-height: 440px; display: flex; align-items: flex-end;
  color: var(--cream); isolation: isolate;
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.cat::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(15,42,29,0.9), rgba(15,42,29,0.35) 46%, rgba(15,42,29,0.05));
}
.cat:hover img { transform: scale(1.06); }
.cat__body { padding: 36px 32px; }
.cat__no { font-family: var(--font-serif); font-size: 13px; color: var(--gold-soft); letter-spacing: 0.2em; }
.cat__name { font-size: 26px; margin: 10px 0 12px; font-family: var(--font-serif); letter-spacing: 0.08em; }
.cat__desc { font-size: 14px; color: rgba(253,251,245,0.78); line-height: 1.8; margin: 0; }

/* ---------- 产业链 ---------- */
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: chain; }
.chain__item {
  padding: 0 34px 0 0; border-right: 1px solid rgba(253,251,245,0.14);
  counter-increment: chain; position: relative;
}
.chain__item:last-child { border-right: 0; padding-right: 0; }
.chain__item:not(:first-child) { padding-left: 34px; }
.chain__no {
  font-family: var(--font-serif); font-size: 13px; color: var(--gold-soft);
  letter-spacing: 0.2em; display: block; margin-bottom: 80px;
}
.chain__no::after { content: " / " counter(chain, decimal-leading-zero); }
.chain__title { font-size: 22px; margin-bottom: 16px; color: var(--cream); font-family: var(--font-serif); letter-spacing: 0.06em; }
.chain__desc { font-size: 14px; color: rgba(253,251,245,0.66); line-height: 1.85; margin: 0; }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--green-50); padding: 96px 0; text-align: center;
  border-top: 1px solid var(--line-soft);
}
.cta-band h2 { margin-bottom: 20px; }
.cta-band p { color: var(--ink-2); margin: 0 auto 38px; max-width: 54ch; }
.cta-band .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 页头（内页） ---------- */
.page-head {
  padding: 96px 0 76px; background: var(--green-800); color: var(--cream);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; right: -8%; top: -40%;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185,147,88,0.16), transparent 68%);
}
.page-head__crumb { font-size: 12.5px; letter-spacing: 0.16em; color: rgba(253,251,245,0.5); margin-bottom: 22px; }
.page-head__crumb a:hover { color: var(--cream); }
.page-head h1 { color: var(--cream); margin-bottom: 22px; }
.page-head p { color: rgba(253,251,245,0.72); max-width: 58ch; margin: 0; font-size: 17px; line-height: 1.9; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--green-900); color: rgba(253,251,245,0.62); padding: 72px 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid rgba(253,251,245,0.1); }
.footer__brand .logo__name { color: var(--cream); }
.footer__brand .logo__sub { color: rgba(253,251,245,0.42); }
.footer__desc { font-size: 14px; line-height: 1.9; margin: 22px 0 0; max-width: 34ch; color: rgba(253,251,245,0.5); }
.footer__col h4 { color: var(--cream); font-size: 14px; letter-spacing: 0.12em; margin-bottom: 22px; font-weight: 600; }
.footer__col a, .footer__col p { display: block; font-size: 14px; margin: 0 0 13px; color: rgba(253,251,245,0.56); transition: color 0.25s var(--ease); }
.footer__col a:hover { color: var(--cream); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 12.5px; color: rgba(253,251,245,0.36); flex-wrap: wrap; gap: 12px; }

/* ---------- 滚动入场 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: var(--ink-2); letter-spacing: 0.04em; }
.field label .req { color: #b4462f; margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line);
  background: var(--white); border-radius: 2px; font-size: 15px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  outline: none;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(47,122,79,0.1);
}
.field .hint { font-size: 12px; color: var(--ink-3); }
.form-msg { font-size: 14px; padding: 14px 16px; border-radius: 2px; display: none; margin-top: 4px; }
.form-msg.is-ok { display: block; background: var(--green-50); color: var(--green-700); border-left: 3px solid var(--green-500); }
.form-msg.is-err { display: block; background: #fdf0ec; color: #a83b23; border-left: 3px solid #c4553b; }

/* ---------- 提示条 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px);
  background: var(--green-900); color: var(--cream); padding: 14px 26px;
  border-radius: 3px; font-size: 14px; opacity: 0; pointer-events: none;
  transition: all 0.35s var(--ease); z-index: 999; box-shadow: 0 12px 40px rgba(15,42,29,0.28);
  max-width: calc(100vw - 48px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split--media-right .split__media { order: 0; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-card--wide { grid-column: span 2; }
  .chain { grid-template-columns: repeat(2, 1fr); gap: 48px 0; }
  .chain__item:nth-child(2) { border-right: 0; }
  .chain__no { margin-bottom: 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; background: var(--cream);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 32px 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform 0.4s var(--ease);
    box-shadow: 0 20px 40px rgba(26,36,32,0.08);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { width: 100%; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
  .nav__links a::after { display: none; }
  .nav__toggle { display: flex; }
  .section { padding: 72px 0; }
  .cat-grid { grid-template-columns: 1fr; gap: 20px; }
  .cat { min-height: 340px; }
  .brand-grid { grid-template-columns: 1fr; }
  .brand-card--wide { grid-column: span 1; flex-direction: column; }
  .brand-card--wide .brand-card__img { width: 100%; aspect-ratio: 16/10; }
  .brand-card--wide .brand-card__body { padding: 30px 32px 34px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .hero { height: auto; min-height: 560px; padding: 96px 0 80px; }
  .hero__scrim { background: linear-gradient(180deg, rgba(15,42,29,0.82), rgba(15,42,29,0.62) 55%, rgba(15,42,29,0.78)); }
  .page-head { padding: 64px 0 52px; }
  .form-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 22px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .hero__scroll { display: none; }
}

@media (max-width: 520px) {
  .nav__actions .btn { padding: 10px 18px; font-size: 13.5px; }
  .logo__sub { display: none; }
  .chain { grid-template-columns: 1fr; }
  .chain__item { border-right: 0; padding: 0 0 32px !important; border-bottom: 1px solid rgba(253,251,245,0.14); }
  .chain__item:last-child { border-bottom: 0; padding-bottom: 0 !important; }
  .chain__no { margin-bottom: 20px; }
  .hero__cta .btn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 页脚隐私政策链接 */
.footer__legal { margin-left: 18px; opacity: 0.85; }
.footer__legal:hover { color: var(--gold-soft); opacity: 1; }
