:root {
  --bg: #f7f4ef;
  --bg-soft: #fffdf9;
  --ink: #1c2430;
  --muted: #5b6675;
  --line: rgba(28, 36, 48, 0.1);
  --brand: #0f766e;
  --brand-dark: #0b5f59;
  --accent: #e07a3d;
  --card: #ffffff;
  --shadow: 0 12px 40px rgba(28, 36, 48, 0.08);
  --radius: 18px;
  --max: 1080px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

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

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

#about,
#products,
#careers,
#contact {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(224, 122, 61, 0.08), transparent 28%),
    linear-gradient(180deg, #fbf8f3 0%, var(--bg) 40%, #f3efe8 100%);
  line-height: 1.7;
  min-height: 100vh;
}

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

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

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(251, 248, 243, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #1aa39a 55%, var(--accent));
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.25);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  transform: rotate(18deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand-dark);
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(224, 122, 61, 0.15);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-float {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  animation: rise 0.8s ease both;
}

.hero-float strong {
  display: block;
  margin-bottom: 0.2rem;
}

.hero-float span {
  color: var(--muted);
  font-size: 0.92rem;
}

section {
  padding: 3.5rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat {
  padding: 1.4rem 1.3rem;
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--brand-dark);
  margin-bottom: 0.25rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(28, 36, 48, 0.12);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 1.2rem 1.25rem 1.4rem;
}

.tag {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.card p,
.prose p {
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-hero .lead {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: stretch;
}

.split img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prose {
  padding: 1.8rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.timeline strong {
  color: var(--brand-dark);
}

.job {
  padding: 1.4rem 1.5rem;
  margin-bottom: 1rem;
}

.job h3 {
  margin-bottom: 0.35rem;
}

.job-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.job ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.product-list {
  display: grid;
  gap: 1.5rem;
}

.product-item {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.product-item img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.contact-box {
  padding: 1.8rem;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(224, 122, 61, 0.08)),
    #fff;
}

.contact-box a {
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 1.15rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 2.4rem 0 2.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer strong {
  color: var(--ink);
  display: block;
  margin-bottom: 0.55rem;
}

.site-footer a:hover {
  color: var(--brand-dark);
}

.footer-bottom {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: rise 0.7s ease both;
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .cards,
  .stats,
  .footer-grid,
  .product-item {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    height: 280px;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-bottom: 0.6rem;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }
}
