:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --bg-alt: #ece7dd;
  --surface: #fbfaf7;
  --ink: #101820;
  --muted: #5b6772;
  --line: rgba(16, 24, 32, 0.12);
  --accent: #c88b1f;
  --accent-2: #0e766f;
  --shadow: 0 18px 40px rgba(16, 24, 32, 0.08);
  --radius: 8px;
  --radius-lg: 8px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(244, 241, 234, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.brand-logo {
  width: clamp(220px, 24vw, 280px);
  height: auto;
  display: block;
}

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

.site-nav a {
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.hero {
  position: relative;
  min-height: calc(88vh - 76px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background: linear-gradient(110deg, rgba(8, 12, 18, 0.88) 0%, rgba(8, 12, 18, 0.7) 45%, rgba(8, 12, 18, 0.38) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 0 72px;
  max-width: 940px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #f4c66c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-copy h2,
.section-header h2 {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 920px;
  font-size: clamp(38px, 5vw, 64px);
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 62ch;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  overflow-wrap: anywhere;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: #f1b54b;
  color: #111;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
}

.stat {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.stat dt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.stat dd {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.section {
  padding: 92px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.section-grid--about,
.section-grid--plan {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.section-grid--team {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
}

.section-copy h2,
.section-header h2 {
  font-size: clamp(28px, 3vw, 44px);
}

.section-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
}

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

.section-header .section-note {
  max-width: 36ch;
  margin: 0;
  color: var(--muted);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111;
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--tall {
  aspect-ratio: 4 / 5;
}

.info-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.info-list div,
.contact-card div {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.info-list span,
.contact-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.info-list strong,
.contact-card strong {
  display: block;
  margin-top: 4px;
  font-weight: 600;
}

.card-grid,
.case-grid,
.gallery-grid,
.timeline,
.stack-grid {
  display: grid;
  gap: 16px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.team-card,
.case-card,
.gallery-card,
.timeline-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-card h3,
.team-card h3,
.case-card h3,
.gallery-card h3,
.timeline-card h3 {
  margin: 0;
  font-size: 18px;
}

.service-card p,
.team-card p,
.case-card p,
.gallery-card p,
.timeline-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.service-meta,
.case-meta,
.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(14, 118, 111, 0.1);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 600;
}

.team-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.team-number,
.timeline-step {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #101820;
  color: #fff;
  font-weight: 700;
}

.team-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.case-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-card {
  overflow: hidden;
}

.case-card figure,
.gallery-card figure {
  margin: 0;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #111;
}

.case-card img,
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card .case-body,
.gallery-card .gallery-body {
  padding-top: 16px;
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card figure {
  aspect-ratio: 1 / 1.15;
}

.timeline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.timeline-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-card h3 {
  font-size: 17px;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 14px;
}

.site-footer {
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  background: #f0ebdf;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-stats,
  .card-grid,
  .case-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-grid--about,
  .section-grid--team,
  .section-grid--plan,
  .contact-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(244, 241, 234, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand-logo {
    width: 200px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 72px 0 64px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.14;
    word-break: break-all;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-stats,
  .card-grid,
  .case-grid,
  .gallery-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .section-header,
  .footer-inner {
    display: grid;
  }
}
