/* ========================================================================
   湃树科技 — 生长系统现代主义视觉系统 (v3)
   完全对齐脑暴稿 A 方向
   ======================================================================== */

@font-face {
  font-family: "Pistree Serif";
  src: url("assets/fonts/pistree-serif.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Pistree Sans";
  src: url("assets/fonts/pistree-sans.woff2") format("woff2");
  font-display: swap;
}

:root {
  --pine: #153b33;
  --ink: #163029;
  --jade: #0e8265;
  --sprout: #b9dd6b;
  --mist: #eff6f1;
  --paper: #fbfcf9;
  --body: #49665c;
  --line: #cddbd3;
  --max-width: 1120px;
  --gutter: clamp(20px, 4vw, 64px);
  --font-serif: "Pistree Serif", "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, serif;
  --font-sans: "Pistree Sans", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--body);
  background: #e8efe9;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--jade); text-decoration: none; transition: color 0.2s var(--ease-out); }
a:hover { color: var(--pine); }
a:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; border-radius: 2px; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }

/* --- Site Card --- */
.site-card {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid #dfe8e2;
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(21, 59, 51, 0.14);
  overflow: hidden;
}

/* --- Section container --- */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 42px;
}

.section {
  padding: 78px 0;
}

/* --- Section Head (kicker + title side by side) --- */
.section-head {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 42px;
}

.kicker {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade);
  font-weight: 800;
  display: block;
  margin-bottom: 0.5rem;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}

.section-head p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #5b7169;
  margin: 0;
}

/* --- Buttons (compact) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65em 1.4em;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  border: none;
  text-align: center;
  background: var(--pine);
  color: var(--paper);
  border-radius: 3px;
  letter-spacing: 0.01em;
}
.btn:hover { background: var(--jade); color: var(--paper); }

/* ========================================================================
   Header
   ======================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(251, 252, 249, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(21, 59, 51, 0.1);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pine);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-link:hover { color: var(--pine); }

.logo-header { height: 36px; width: auto; }

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pine);
}

.logo-en {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--body);
  text-transform: uppercase;
  display: none;
}

.site-nav ul { display: flex; align-items: center; gap: 1.6rem; }

.site-nav a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pine);
  padding: 0.25em 0;
  position: relative;
  letter-spacing: 0.02em;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--jade);
  transition: width 0.3s var(--ease-out);
}
.site-nav a:hover::after,
.site-nav a[aria-current="location"]::after { width: 100%; }

.nav-cta {
  background: var(--pine);
  color: var(--paper) !important;
  padding: 0.5em 1.25em !important;
  border-radius: 3px;
  transition: background 0.25s var(--ease-out);
}
.nav-cta:hover { background: var(--jade) !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--pine);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

/* ========================================================================
   Hero
   ======================================================================== */
.hero {
  padding: 86px 42px 54px;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}

.hero-layout {
  position: relative;
  max-width: var(--max-width);
}

.hero-copy {
  width: 56%;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  color: var(--ink);
  line-height: 1.09;
  letter-spacing: -0.055em;
  margin-bottom: 22px;
  font-weight: 600;
}

.hero h1 em {
  font-style: normal;
  color: var(--jade);
}

.hero-desc {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--body);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero-ghost {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pine);
  text-decoration: none;
}
.hero-ghost:hover { color: var(--jade); }

/* Hero note badges */
.hero-note {
  display: flex;
  gap: 22px;
  margin-top: 48px;
  font-size: 0.625rem;
  color: #657d74;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
}
.hero-note span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sprout);
  margin-right: 7px;
  vertical-align: middle;
}

/* Hero rings */
.hero-visual {
  position: absolute;
  right: 0;
  top: 44px;
  width: 44%;
  height: 430px;
}

.growth-rings { position: relative; width: 100%; height: 100%; }

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}

.ring-talent {
  width: 310px; height: 310px;
  top: 20px; left: 16px;
  border-color: rgba(14, 130, 101, 0.28);
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 16px, rgba(14,130,101,.14) 17px 18px);
  animation: ringPulse 4s var(--ease-out) infinite;
}

.ring-org {
  width: 245px; height: 245px;
  right: 5px; bottom: 5px; left: auto; top: auto;
  border-color: rgba(139, 184, 75, 0.62);
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 14px, rgba(139,184,75,.15) 15px 16px);
  animation: ringPulse 4s var(--ease-out) infinite;
  animation-delay: 0.5s;
}

.ring-center {
  position: absolute;
  left: 47%; top: 47%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--sprout);
  box-shadow: 0 0 0 10px rgba(185, 221, 107, 0.22);
  animation: centerPulse 3s var(--ease-out) infinite;
}

.ring-label {
  position: absolute;
  font-size: 0.625rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.ring-talent .ring-label { left: 78px; top: 132px; }
.ring-org .ring-label { right: 54px; bottom: 96px; left: auto; top: auto; }

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.03); opacity: 1; }
}
@keyframes centerPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* ========================================================================
   Manifesto
   ======================================================================== */
.manifesto {
  background: var(--pine);
  color: #f3f8f5;
  padding: 72px 42px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.manifesto-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--sprout);
  text-transform: uppercase;
  font-weight: 600;
}

.manifesto h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  line-height: 1.35;
  margin: 0;
  font-weight: 500;
  color: #f3f8f5;
}

.manifesto p {
  font-size: 0.875rem;
  line-height: 1.9;
  color: #c8d8d1;
  margin: 0;
}

.manifesto strong { color: white; }

/* ========================================================================
   Breakpoints
   ======================================================================== */
.breakpoint-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.breakpoint-item {
  padding: 25px 18px;
  border-right: 1px solid var(--line);
}
.breakpoint-item:last-child { border-right: none; }

.bp-number {
  font-family: Georgia, serif;
  font-size: 1.7rem;
  color: #7fae4f;
  font-weight: 400;
  display: block;
  margin-bottom: 18px;
}

.breakpoint-item h3 {
  font-size: 0.875rem;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 600;
}

.breakpoint-item p {
  font-size: 0.7rem;
  color: #61776f;
  line-height: 1.65;
}

/* ========================================================================
   AI 双生引擎
   ======================================================================== */
.engine-section { background: var(--mist); }

.engine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.engine-panel {
  padding: 32px;
  border: 1px solid #cbded4;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
  min-height: 280px;
}

.engine-num {
  font-family: Georgia, serif;
  font-size: 0.8125rem;
  color: var(--jade);
  display: block;
  margin-bottom: 32px;
}

.engine-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.engine-panel > p {
  font-size: 0.75rem;
  color: #577067;
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 25px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chips span {
  font-size: 0.625rem;
  padding: 7px 9px;
  border: 1px solid #aac5b7;
  background: #f7fbf8;
  color: var(--ink);
}

.panel-ring {
  position: absolute;
  width: 170px; height: 170px;
  border-radius: 50%;
  right: -55px; bottom: -55px;
  border: 30px solid rgba(14, 130, 101, 0.09);
  box-shadow: 0 0 0 20px rgba(14, 130, 101, 0.05), 0 0 0 50px rgba(14, 130, 101, 0.03);
  pointer-events: none;
}

/* ========================================================================
   Diagnosis
   ======================================================================== */
.diagnosis-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 55px;
  align-items: center;
}

.diagnosis-chart {
  aspect-ratio: 1;
  border: 1px solid #c9d9d1;
  border-radius: 50%;
  position: relative;
  background: repeating-radial-gradient(circle, transparent 0 40px, rgba(21,59,51,.08) 41px 42px);
}

.diagnosis-chart::before,
.diagnosis-chart::after {
  content: "";
  position: absolute;
  background: #b8cbc1;
}
.diagnosis-chart::before { left: 50%; top: 0; width: 1px; height: 100%; }
.diagnosis-chart::after { left: 0; top: 50%; width: 100%; height: 1px; }

.diagnosis-shape {
  position: absolute;
  inset: 74px;
  background: rgba(14, 130, 101, 0.23);
  clip-path: polygon(50% 0, 92% 35%, 77% 89%, 29% 72%, 8% 31%);
  border-radius: 30%;
}

.diagnosis-kicker {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade);
  font-weight: 800;
  display: block;
  margin-bottom: 10px;
}

.diagnosis-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 18px;
}

.diagnosis-copy > p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #5b7169;
  margin-bottom: 24px;
}

.diagnosis-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.diag-item {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  border-bottom: 1px solid #dce6e0;
  padding-bottom: 10px;
}
.diag-item:last-child { border-bottom: none; }

.diag-num { color: var(--jade); font-weight: 700; flex-shrink: 0; }
.diag-item span { color: var(--body); line-height: 1.5; }

/* ========================================================================
   Solutions
   ======================================================================== */
.solutions { background: #fff; }

.solution-list {
  border-top: 1px solid var(--line);
}

.solution-row {
  display: grid;
  grid-template-columns: 60px 0.8fr 1.2fr 24px;
  gap: 22px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease-out);
}
.solution-row:hover { background: rgba(239, 246, 241, 0.5); }

.sol-num {
  font-family: Georgia, serif;
  color: var(--jade);
  font-size: 1rem;
}

.solution-row h3 {
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 600;
}

.solution-row p {
  font-size: 0.75rem;
  color: #61776f;
  margin: 0;
}

.sol-arrow {
  font-size: 1.25rem;
  color: var(--line);
  text-align: right;
  transition: color 0.2s var(--ease-out);
}
.solution-row:hover .sol-arrow { color: var(--jade); }

/* ========================================================================
   Evolution / Loop
   ======================================================================== */
.loop { background: var(--paper); }

.evolution-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.evolution-copy .kicker {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade);
  font-weight: 800;
  display: block;
  margin-bottom: 10px;
}

.evolution-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 18px;
}

.evolution-copy p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #5b7169;
}

.evolution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #c6d6ce;
  border: 1px solid #c6d6ce;
}

.evolution-step {
  background: var(--paper);
  padding: 25px;
}

.step-num {
  display: block;
  color: var(--jade);
  font-family: Georgia, serif;
  font-size: 1rem;
  margin-bottom: 18px;
  font-weight: 400;
}

.evolution-step h3 {
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: 7px;
}

.evolution-step p {
  font-size: 0.625rem;
  color: #657a72;
  line-height: 1.6;
}

/* ========================================================================
   About
   ======================================================================== */
.about-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
}

.about-logo { width: min(200px, 30vw); height: auto; }

.about-content .kicker { margin-bottom: 8px; }

.about-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  color: var(--ink);
  margin-bottom: 17px;
  line-height: 1.3;
}

.about-content p {
  font-size: 0.875rem;
  line-height: 1.85;
  max-width: 600px;
  color: #50685f;
}

/* ========================================================================
   Closing / Final
   ======================================================================== */
.final {
  background: var(--pine);
  color: white;
  padding: 80px 42px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final::before,
.final::after {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(185, 221, 107, 0.15);
  pointer-events: none;
}
.final::before { left: -90px; top: -100px; }
.final::after { right: -80px; bottom: -130px; }

.final h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0 0 14px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
  color: white;
}

.final p {
  color: #cbd9d3;
  font-size: 0.875rem;
  margin: 0 0 25px;
  position: relative;
  z-index: 1;
}

.final .btn {
  background: var(--sprout);
  color: var(--pine);
  position: relative;
  z-index: 1;
}
.final .btn:hover { background: var(--paper); color: var(--pine); }

/* ========================================================================
   Footer
   ======================================================================== */
.site-footer {
  background: var(--pine);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 42px;
}

.footer-inner { max-width: var(--max-width); margin: 0 auto; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo { height: 32px; width: auto; opacity: 0.8; }

.footer-company { font-size: 0.85rem; color: rgba(251, 252, 249, 0.7); }

.footer-icp a {
  font-size: 0.8rem;
  color: rgba(251, 252, 249, 0.5);
}
.footer-icp a:hover { color: var(--sprout); }

/* ========================================================================
   Reveal
   ======================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 1024px) {
  .section { padding: 64px 0; }
  .section-head { gap: 40px; }
  .hero-copy { width: 60%; }
  .hero-visual { width: 38%; }
  .ring-talent { width: 240px; height: 240px; top: 40px; left: 10px; }
  .ring-org { width: 190px; height: 190px; }
  .engine-panel h3 { font-size: 1.4rem; }
  .engine-panel { padding: 24px; }
  .evolution-layout { gap: 40px; }
  .manifesto { gap: 40px; padding: 60px 42px; }
}

@media (max-width: 800px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 280px;
    background: var(--paper);
    padding: 80px 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    box-shadow: -4px 0 24px rgba(21, 59, 51, 0.1);
    border-left: 1px solid var(--line);
  }
  .site-nav[data-open="true"] { transform: translateX(0); }
  .site-nav ul { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
  .site-nav a { font-size: 1rem; }

  .site-card { border-radius: 0; }

  .hero { padding: 60px 24px 40px; }
  .hero-copy { width: 100%; }
  .hero-visual { opacity: 0.2; right: -110px; top: 20px; pointer-events: none; }
  .hero h1 { font-size: 2.2rem; }
  .hero-note { margin-top: 28px; }

  .manifesto { grid-template-columns: 1fr; gap: 25px; padding: 55px 24px; }
  .section { padding: 55px 24px; }
  .section-inner { padding: 0; }
  .section-head { grid-template-columns: 1fr; gap: 25px; }

  .breakpoint-rail { grid-template-columns: 1fr 1fr; }
  .breakpoint-item { border-right: none; }
  .breakpoint-item:nth-child(2) { border-right: 1px solid var(--line); }

  .engine-grid { grid-template-columns: 1fr; }
  .engine-panel { padding: 24px; }

  .diagnosis-layout { grid-template-columns: 1fr; gap: 25px; }

  .solution-row { grid-template-columns: 40px 1fr 20px; }
  .solution-row p { display: none; }

  .evolution-layout { grid-template-columns: 1fr; gap: 25px; }

  .about-layout { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .about-logo { margin: 0 auto; }
  .about-content p { margin: 0 auto; }

  .final { padding: 55px 24px; }
  .site-footer { padding: 30px 24px; }

  .logo-en { display: inline; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-desc { font-size: 0.875rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-note { flex-wrap: wrap; gap: 12px; }
  .breakpoint-rail { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .site-nav { transition: none; }
}
