/* 工膳凡卡 · 官网样式 */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/manrope-latin-700.woff2") format("woff2");
}

:root {
  --forest-950: #071a14;
  --forest-900: #0d3d2e;
  --forest-800: #14523d;
  --forest-700: #1a6b52;
  --forest-600: #2d9b72;
  --forest-100: #e8f3ee;
  --forest-50: #f3f8f5;
  --ink: #14241e;
  --ink-soft: #4a6359;
  --muted: #6f857b;
  --gold: #c9a227;
  --gold-soft: rgba(201, 162, 39, 0.14);
  --line: rgba(20, 36, 30, 0.1);
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(7, 26, 20, 0.28);
  --radius: 20px;
  --header-h: 72px;
  --font-display: "Fraunces", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(45, 155, 114, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(201, 162, 39, 0.08), transparent 55%),
    linear-gradient(180deg, #f7fbf8 0%, #eef5f1 40%, #f5f8f6 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(247, 251, 248, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f0d56c, var(--gold) 45%, #8a6d12 100%);
  box-shadow: 0 0 0 4px var(--gold-soft), 0 0 18px rgba(201, 162, 39, 0.45);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--forest-900);
}

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

.nav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--forest-900);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--forest-900);
  color: var(--white) !important;
}

.nav-cta:hover {
  background: var(--forest-800);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--forest-900);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }

.nav-toggle.is-open span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 32px) 0 72px;
  overflow: hidden;
  background:
    linear-gradient(155deg, #071a14 0%, #0d3d2e 42%, #1a6b52 78%, #247a5c 100%);
  color: var(--white);
}

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

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  animation: floatOrb 12s ease-in-out infinite;
}

.hero-orb-a {
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.28), transparent 68%);
}

.hero-orb-b {
  width: min(40vw, 420px);
  height: min(40vw, 420px);
  bottom: 5%;
  left: -10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  animation-delay: -4s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-plate {
  position: absolute;
  right: -8%;
  bottom: -18%;
  width: min(58vw, 640px);
  height: min(58vw, 640px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 38%, rgba(255, 255, 255, 0.14), transparent 42%),
    radial-gradient(circle at 55% 60%, rgba(201, 162, 39, 0.2), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(45, 155, 114, 0.22), transparent 68%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: floatOrb 14s ease-in-out infinite;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.1;
  color: #f4faf7;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.brand-lockup::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(201, 162, 39, 0.85);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.96);
}

.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(232, 243, 238, 0.82);
  max-width: 34em;
  margin-bottom: 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: #2a2208;
}

.btn-primary:hover {
  background: #d4af35;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  z-index: 2;
}

.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  animation: scrollDot 1.6s var(--ease) infinite;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-700);
}

.section-head h2,
.highlight h2,
.contact-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--forest-950);
  margin-bottom: 14px;
}

.section-desc {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

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

.feature {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 36, 30, 0.06);
  box-shadow: 0 10px 30px rgba(13, 61, 46, 0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(13, 61, 46, 0.1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--forest-700);
  background: linear-gradient(145deg, #f0f7f4, #dceee6);
}

.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--forest-950);
}

.feature p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Flow */
.flow {
  background:
    linear-gradient(180deg, rgba(13, 61, 46, 0.04), transparent 30%),
    linear-gradient(90deg, transparent 0%, rgba(201, 162, 39, 0.05) 50%, transparent 100%);
}

.flow-list {
  list-style: none;
  display: grid;
  gap: 18px;
}

.flow-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  align-items: start;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(20, 36, 30, 0.06);
}

.flow-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.flow-item h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.flow-item p {
  color: var(--ink-soft);
}

/* Scenes */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.scene {
  position: relative;
  min-height: 220px;
  padding: 32px 28px;
  border-radius: 24px;
  overflow: hidden;
  color: #f5faf7;
  background:
    linear-gradient(160deg, rgba(7, 26, 20, 0.35), rgba(7, 26, 20, 0.72)),
    linear-gradient(135deg, #14523d, #2d9b72);
}

.scene:nth-child(2) {
  background:
    linear-gradient(160deg, rgba(7, 26, 20, 0.4), rgba(7, 26, 20, 0.75)),
    linear-gradient(135deg, #0d3d2e, #1a6b52 60%, #8a6d12);
}

.scene:nth-child(3) {
  background:
    linear-gradient(160deg, rgba(7, 26, 20, 0.38), rgba(7, 26, 20, 0.78)),
    linear-gradient(145deg, #124a38, #247a5c);
}

.scene::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  bottom: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
}

.scene h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.scene p {
  position: relative;
  z-index: 1;
  color: rgba(245, 250, 247, 0.86);
}

/* Highlight */
.highlight {
  padding-top: 24px;
}

.highlight-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  border-radius: 28px;
  background:
    radial-gradient(600px 240px at 0% 0%, rgba(201, 162, 39, 0.16), transparent 55%),
    linear-gradient(135deg, #0d3d2e, #1a6b52);
  color: #f5faf7;
  box-shadow: var(--shadow);
}

.highlight .eyebrow {
  color: #e4c45a;
}

.highlight h2 {
  color: #fff;
}

.highlight-inner > div > p:last-child {
  color: rgba(232, 243, 238, 0.82);
  max-width: 36em;
}

.highlight-points {
  list-style: none;
  display: grid;
  gap: 14px;
}

.highlight-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.7);
}

/* About */
.about {
  padding-top: 40px;
}

.about-inner {
  max-width: 720px;
  padding: 48px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 36, 30, 0.06);
  box-shadow: 0 18px 50px rgba(13, 61, 46, 0.06);
}

.about-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--forest-950);
  margin-bottom: 16px;
}

.about-inner > p:last-child {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 38em;
}

/* Footer */
.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest-900);
}

.footer-brand span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 14px) scale(1.05); }
}

@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(16px); }
}

@media (max-width: 960px) {
  .hero-content {
    text-align: center;
    margin-inline: auto;
  }

  .brand-lockup {
    justify-content: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero {
    padding-bottom: 88px;
  }

  .feature-grid,
  .scene-grid,
  .highlight-inner {
    grid-template-columns: 1fr;
  }

  .highlight-inner,
  .about-inner {
    padding: 32px 24px;
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(247, 251, 248, 0.96);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(7, 26, 20, 0.12);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav-cta {
    text-align: center;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-header.is-scrolled .nav,
  .hero ~ * .nav {
    background: rgba(247, 251, 248, 0.98);
  }

  .flow-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section {
    padding: 72px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .hero-orb,
  .hero-plate,
  .scroll-hint span {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
