:root {
  --bg: #f7fbf8;
  --surface: #ffffff;
  --ink: #21312d;
  --muted: #66736f;
  --line: #dbe7e1;
  --mint: #7ed7b5;
  --sky: #9cc9ec;
  --coral: #f1a48f;
  --shadow: 0 18px 48px rgba(38, 68, 59, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(140deg, rgba(126, 215, 181, 0.22), transparent 34%),
    linear-gradient(320deg, rgba(156, 201, 236, 0.2), transparent 38%),
    var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.project-meta,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(38, 68, 59, 0.08);
  object-fit: cover;
}

.nav {
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(219, 231, 225, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.nav a {
  padding: 7px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  background: #eef7f2;
  color: var(--ink);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: 42px;
  padding: 34px 0 64px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #3d8776;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(54px, 10vw, 128px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 32px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-text {
  max-width: 600px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
}

.primary-link {
  background: #223d37;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(34, 61, 55, 0.18);
}

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

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(219, 231, 225, 0.9);
  border-radius: 8px;
  background: linear-gradient(160deg, #ffffff 0%, #eef9f4 52%, #edf5fb 100%);
  box-shadow: var(--shadow);
}

.hero-visual img {
  position: absolute;
  inset: 28px 28px auto auto;
  width: min(72%, 360px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(31, 52, 48, 0.16);
}

.hero-visual div {
  position: absolute;
  left: 28px;
  bottom: 28px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(219, 231, 225, 0.84);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.hero-visual span {
  color: var(--muted);
  font-size: 12px;
}

.hero-visual strong {
  font-size: 22px;
}

.section,
.split-section {
  padding: 74px 0;
  border-top: 1px solid rgba(219, 231, 225, 0.9);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: block;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(38, 68, 59, 0.07);
}

.project-link {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  border-color: rgba(61, 135, 118, 0.42);
  box-shadow: 0 16px 38px rgba(38, 68, 59, 0.13);
  transform: translateY(-2px);
  outline: none;
}

.card-action {
  display: inline-flex;
  margin-top: 8px;
  color: #2d7566;
  font-weight: 700;
}

.project-card img,
.placeholder-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef7f2;
}

.project-body {
  padding: 18px;
}

.project-body p,
.split-section p {
  color: var(--muted);
}

.project-meta {
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.project-meta span {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fcfa;
  color: #52736b;
  font-size: 12px;
}

.placeholder-media {
  background:
    linear-gradient(135deg, rgba(126, 215, 181, 0.26), transparent 46%),
    linear-gradient(315deg, rgba(241, 164, 143, 0.24), transparent 42%),
    #fbfdfc;
}

.placeholder-media.alt {
  background:
    linear-gradient(135deg, rgba(156, 201, 236, 0.28), transparent 46%),
    linear-gradient(315deg, rgba(126, 215, 181, 0.22), transparent 42%),
    #fbfdfc;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.contact-section {
  padding-bottom: 90px;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(219, 231, 225, 0.9);
  color: var(--muted);
  font-size: 14px;
}

.project-hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 42px;
  padding: 34px 0 64px;
}

.project-figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(160deg, #ffffff 0%, #eef9f4 55%, #edf5fb 100%);
  box-shadow: var(--shadow);
}

.project-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.project-figure figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-panel,
.step-card,
.download-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(38, 68, 59, 0.07);
}

.info-panel,
.step-card {
  padding: 22px;
}

.info-panel p,
.step-card p,
.download-box p {
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #eef7f2;
  color: #2d7566;
  font-weight: 800;
}

.download-box {
  padding: 24px;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .works-grid,
  .split-section,
  .project-hero,
  .detail-grid,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: 52px;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .hero-visual img {
    inset: 18px 18px auto auto;
    width: min(76%, 300px);
  }

  .hero-visual div {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
}
