:root {
  --primary: #168a5b;
  --primary-dark: #0f6f48;
  --bg: #f7f3ea;
  --surface: rgba(255, 255, 255, 0.58);
  --surface-soft: rgba(255, 255, 255, 0.42);
  --footer: rgba(255, 255, 255, 0.62);
  --text: #18221d;
  --muted: #5f6b63;
  --border: rgba(24, 34, 29, 0.14);
  --shadow: 0 24px 70px rgba(50, 58, 48, 0.14);
  --radius: 8px;
  --header-height: 88px;
  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(22, 138, 91, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 138, 91, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  background-attachment: fixed;
  color: var(--muted);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(90%, var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: box-shadow 0.2s ease, height 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 40px rgba(50, 58, 48, 0.1);
}

.nav,
.nav-menu,
.brand,
.hero-actions,
.hero-stats,
.profile-top,
.footer-grid {
  display: flex;
  align-items: center;
}

.nav {
  height: 100%;
  justify-content: space-between;
}

.brand {
  gap: 10px;
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
}

.brand-mark,
.avatar {
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: #fff;
}

.nav-menu {
  gap: 32px;
}

.nav-link {
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.section {
  padding: 86px 0;
}

.section-anchor {
  scroll-margin-top: var(--header-height);
}

.section-header {
  margin-bottom: 48px;
  text-align: center;
}

.section-header h2 {
  color: var(--text);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
}

.section-header p {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
}

.section-header p::after {
  position: absolute;
  content: "";
  left: 50%;
  bottom: -12px;
  width: 56%;
  height: 5px;
  background: var(--primary);
  transform: translateX(-50%);
}

.hero {
  min-height: min(760px, calc(100vh - var(--header-height)));
  display: grid;
  align-items: center;
  padding: 64px 0 76px;
}

.hero-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 64px;
}

.eyebrow {
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 {
  max-width: 680px;
  color: var(--text);
  font-size: clamp(40px, 7vw, 66px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero h1::after {
  content: "";
  display: block;
  width: 106px;
  height: 5px;
  margin: 28px 0 0;
  background: var(--primary);
}

.hero-text {
  max-width: 640px;
  margin-top: 28px;
  color: var(--muted);
}

.hero-actions {
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 0;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary {
  background: var(--text);
  color: #fff;
}

.hero-stats {
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-stats strong {
  display: block;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}
