/* ==========================================================
   益宝官网 — 自然有机 × 精致高级
   深墨绿 / 暖米白 / 细金线 | 宋体标题 + 黑体正文
   ========================================================== */

:root {
  --green-950: #07231a;
  --green-900: #0b3d2e;
  --green-800: #11543f;
  --green-600: #2d8f6f;
  --green-100: #dcebe3;
  --cream: #faf7f0;
  --cream-2: #f2ecdf;
  --ink: #22302b;
  --ink-soft: #5c6b64;
  --gold: #c9a86a;
  --gold-deep: #a8853f;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

::selection { background: var(--gold); color: var(--green-950); }

/* ---------------- 顶部导航 ---------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.45s var(--ease-out), padding 0.45s var(--ease-out), box-shadow 0.45s;
}

.site-header.scrolled {
  background: rgba(7, 35, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(201, 168, 106, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark { width: 40px; height: 40px; }
.brand-mark-bg { fill: rgba(250, 247, 240, 0.08); stroke: rgba(201, 168, 106, 0.6); stroke-width: 1; }
.brand-mark-leaf { stroke: var(--gold); stroke-width: 1.6; }
.brand-mark-stem { stroke: var(--gold); stroke-width: 1.2; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-cn {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.35em;
  color: var(--cream);
  font-weight: 700;
}
.brand-en {
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 34px; }

.site-nav a {
  font-size: 15px;
  letter-spacing: 0.12em;
  color: rgba(250, 247, 240, 0.82);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.site-nav a:hover { color: var(--cream); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  border: 1px solid rgba(201, 168, 106, 0.65);
  padding: 8px 22px !important;
  color: var(--gold) !important;
  transition: background 0.35s, color 0.35s !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold); color: var(--green-950) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------- 首屏 ---------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1100px 600px at 82% -10%, rgba(45, 143, 111, 0.35), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(17, 84, 63, 0.6), transparent 55%),
    linear-gradient(155deg, var(--green-950) 0%, var(--green-900) 55%, var(--green-800) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-deco { position: absolute; inset: 0; pointer-events: none; }

.hero-rings {
  position: absolute;
  right: -12%;
  top: 50%;
  transform: translateY(-50%);
  width: min(720px, 62vw);
  opacity: 0.5;
  animation: ringsIn 2.2s var(--ease-out) both;
}
.hero-rings circle {
  fill: none;
  stroke: rgba(201, 168, 106, 0.28);
  stroke-width: 0.6;
}
.hero-rings circle:nth-child(2) { stroke: rgba(201, 168, 106, 0.2); }
.hero-rings circle:nth-child(3) { stroke: rgba(220, 235, 227, 0.14); }
.hero-rings circle:nth-child(4) { stroke: rgba(201, 168, 106, 0.4); stroke-dasharray: 3 7; }

.hero-leaf {
  position: absolute;
  right: 14%;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  width: min(150px, 18vw);
  stroke: rgba(201, 168, 106, 0.5);
  stroke-width: 0.8;
  fill: none;
  animation: leafFloat 7s ease-in-out infinite;
}

@keyframes ringsIn {
  from { opacity: 0; transform: translateY(-50%) scale(0.92); }
  to   { opacity: 0.5; transform: translateY(-50%) scale(1); }
}
@keyframes leafFloat {
  0%, 100% { transform: translateY(-50%) rotate(-8deg); }
  50%      { transform: translateY(-54%) rotate(-4deg); }
}

.hero-content { position: relative; z-index: 2; padding: 140px 0 120px; }

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin-bottom: 30px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.28;
  color: var(--cream);
  letter-spacing: 0.06em;
  margin-bottom: 34px;
}

.hero-line { display: block; }
.hero-dot { color: var(--gold); }
.hero-em {
  position: relative;
  color: var(--gold);
}
.hero-em::after {
  content: "";
  position: absolute;
  left: 2%;
  bottom: 6px;
  width: 96%;
  height: 10px;
  background: rgba(201, 168, 106, 0.18);
  z-index: -1;
}

.hero-sub {
  font-size: 17px;
  color: rgba(250, 247, 240, 0.72);
  letter-spacing: 0.05em;
  max-width: 560px;
  margin-bottom: 48px;
}

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 0.22em;
  padding: 15px 42px;
  transition: all 0.4s var(--ease-out);
}

.btn-solid {
  background: var(--gold);
  color: var(--green-950);
  font-weight: 600;
}
.btn-solid:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.btn-ghost {
  border: 1px solid rgba(250, 247, 240, 0.4);
  color: var(--cream);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.hero-scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2.2s ease-in-out infinite;
}
.hero-scroll-text {
  font-size: 10px;
  letter-spacing: 0.4em;
  color: rgba(250, 247, 240, 0.5);
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------------- 通用区块 ---------------- */

.section { padding: 120px 0; }

.section-light { background: var(--cream); }
.section-green {
  background:
    radial-gradient(900px 500px at 110% 10%, rgba(45, 143, 111, 0.22), transparent 55%),
    linear-gradient(180deg, var(--green-950), var(--green-900));
}
.section-dark {
  background:
    radial-gradient(800px 500px at -10% 20%, rgba(17, 84, 63, 0.5), transparent 55%),
    linear-gradient(180deg, var(--green-900), var(--green-950));
}

.section-head { margin-bottom: 70px; position: relative; }

.section-no {
  font-family: var(--serif);
  font-size: clamp(64px, 9vw, 110px);
  line-height: 1;
  position: absolute;
  top: -38px;
  left: -14px;
  color: rgba(201, 168, 106, 0.12);
  font-style: italic;
  pointer-events: none;
  z-index: 0;
}
.section-green .section-no { color: rgba(220, 235, 227, 0.08); }
.section-dark .section-no { color: rgba(220, 235, 227, 0.07); }

.section-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.45em;
  color: var(--gold-deep);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.section-green .section-label,
.section-dark .section-label { color: var(--gold); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0.14em;
  color: var(--green-900);
  position: relative;
  z-index: 1;
}
.section-green .section-title,
.section-dark .section-title { color: var(--cream); }

.section-desc {
  margin-top: 18px;
  color: var(--ink-soft);
  max-width: 520px;
  position: relative;
  z-index: 1;
}
.section-green .section-desc,
.section-dark .section-desc { color: rgba(250, 247, 240, 0.66); }

/* ---------------- 关于益宝 ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}

.about-lead {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.7;
  color: var(--green-800);
  margin-bottom: 26px;
  letter-spacing: 0.04em;
}

.about-text p + p { margin-top: 18px; }
.about-text > p {
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.about-points { margin-top: 36px; display: grid; gap: 14px; }

.about-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.about-points svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.about-visual { display: flex; justify-content: center; }

.about-card {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 4 / 5;
  background: linear-gradient(165deg, var(--green-900), var(--green-800));
  border: 1px solid rgba(201, 168, 106, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 24px 24px 0 -2px var(--cream-2), 24px 24px 0 -1px rgba(201, 168, 106, 0.4);
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 168, 106, 0.22);
  pointer-events: none;
}

.about-helix {
  position: absolute;
  inset: 0;
  width: 78%;
  margin: auto;
  opacity: 0.4;
}
.hx { fill: none; stroke: var(--green-100); stroke-width: 1; }
.hx2 { stroke: var(--gold); }
.hx-rung { stroke: rgba(220, 235, 227, 0.5); stroke-width: 0.8; }

.about-card-word {
  position: relative;
  font-family: var(--serif);
  font-size: 84px;
  letter-spacing: 0.3em;
  color: var(--cream);
  z-index: 1;
  writing-mode: horizontal-tb;
}
.about-card-word span { color: var(--gold); }

/* ---------------- 业务版图 ---------------- */

.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.biz-card {
  position: relative;
  padding: 44px 30px 38px;
  background: rgba(250, 247, 240, 0.04);
  border: 1px solid rgba(220, 235, 227, 0.14);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), background 0.5s, border-color 0.5s;
}

.biz-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--gold);
  transition: width 0.55s var(--ease-out);
}

.biz-card:hover {
  transform: translateY(-8px);
  background: rgba(250, 247, 240, 0.07);
  border-color: rgba(201, 168, 106, 0.45);
}
.biz-card:hover::before { width: 100%; }

.biz-icon {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(201, 168, 106, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: background 0.5s;
}
.biz-card:hover .biz-icon { background: rgba(201, 168, 106, 0.12); }

.biz-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.biz-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.12em;
  color: var(--cream);
  margin-bottom: 14px;
}

.biz-card p {
  font-size: 14px;
  line-height: 2;
  color: rgba(250, 247, 240, 0.62);
  letter-spacing: 0.03em;
}

.biz-no {
  position: absolute;
  right: 20px;
  bottom: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  color: rgba(220, 235, 227, 0.1);
  transition: color 0.5s;
}
.biz-card:hover .biz-no { color: rgba(201, 168, 106, 0.35); }

/* ---------------- 企业理念 ---------------- */

.philosophy-list { display: grid; gap: 0; }

.philo-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 40px;
  padding: 44px 10px;
  border-bottom: 1px solid rgba(34, 48, 43, 0.12);
  position: relative;
  transition: background 0.4s;
}
.philo-item:first-child { border-top: 1px solid rgba(34, 48, 43, 0.12); }

.philo-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-out);
}

.philo-item:hover { background: rgba(201, 168, 106, 0.06); }
.philo-item:hover::before { transform: scaleY(1); }

.philo-index {
  font-family: var(--serif);
  font-size: 34px;
  color: rgba(17, 84, 63, 0.35);
  line-height: 1;
  transition: color 0.4s;
}
.philo-item:hover .philo-index { color: var(--gold-deep); }

.philo-body h3 {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: 0.1em;
  color: var(--green-900);
  margin-bottom: 10px;
}

.philo-en {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-left: 12px;
  vertical-align: 3px;
}

.philo-body p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 640px;
}

/* ---------------- 联系我们 ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.contact-card {
  padding: 46px 34px;
  border: 1px solid rgba(220, 235, 227, 0.14);
  background: rgba(250, 247, 240, 0.04);
  text-align: center;
  transition: transform 0.5s var(--ease-out), border-color 0.5s, background 0.5s;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 106, 0.5);
  background: rgba(250, 247, 240, 0.07);
}

.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border: 1px solid rgba(201, 168, 106, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.16em;
  color: var(--cream);
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 15px;
  color: rgba(250, 247, 240, 0.66);
  letter-spacing: 0.05em;
}

/* ---------------- 页脚 ---------------- */

.site-footer {
  background: var(--green-950);
  border-top: 1px solid rgba(201, 168, 106, 0.2);
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; flex-direction: column; line-height: 1.4; }
.footer-cn {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.35em;
  color: var(--cream);
  font-weight: 700;
}
.footer-en {
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--gold);
}

.footer-info { text-align: right; }
.footer-info p {
  font-size: 13px;
  color: rgba(250, 247, 240, 0.55);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.footer-info a {
  font-size: 13px;
  color: rgba(250, 247, 240, 0.55);
  letter-spacing: 0.06em;
  transition: color 0.3s;
}
.footer-info a:hover { color: var(--gold); }

/* ---------------- 入场动效 ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* hero 首屏分层延迟由 JS 按序写入 transition-delay */

/* 验收截图模式（?shot=1）：跳过动画直出最终态 */
html.shot-mode { scroll-behavior: auto; }
.shot-mode .reveal { opacity: 1; transform: none; transition: none; }
.shot-mode .hero-rings { animation: none; opacity: 0.5; }
.shot-mode .hero-leaf { animation: none; }
.shot-mode .hero-scroll-line { animation: none; transform: scaleY(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-rings, .hero-leaf, .hero-scroll-line { animation: none; }
  .hero-rings { opacity: 0.5; }
}

/* ---------------- 响应式 ---------------- */

.br-desktop { display: inline; }

@media (max-width: 960px) {
  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 78vw);
    background: rgba(7, 35, 26, 0.97);
    backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
    z-index: 90;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { font-size: 18px; }
  .nav-toggle { display: flex; position: relative; z-index: 95; }

  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-visual { order: -1; }
  .about-card { width: min(300px, 80%); }

  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }

  .section { padding: 90px 0; }
}

@media (max-width: 640px) {
  .br-desktop { display: none; }
  .hero-content { padding: 120px 0 110px; }
  .hero-rings { right: -40%; opacity: 0.35; }
  .hero-leaf { display: none; }
  .hero-sub { font-size: 15px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.32em; }
  .business-grid { grid-template-columns: 1fr; }
  .philo-item { grid-template-columns: 64px 1fr; gap: 20px; padding: 34px 6px; }
  .philo-index { font-size: 26px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-info { text-align: left; }
}
