:root {
  --surface-primary: #ffffff;
  --surface-warm: #f7f6f3;
  --surface-veil: rgba(255, 255, 255, 0.84);
  --text-primary: #171716;
  --text-secondary: #5f5b55;
  --text-inverse: #ffffff;
  --border-default: #e7e2d9;
  --accent-primary: #0f4c81;
  --accent-deep: #0b2f4f;
  --accent-paper: #f1eadf;
  --focus-ring: rgba(15, 76, 129, 0.28);
  --background-glow: rgba(15, 76, 129, 0.07);
  --overlay-side: rgba(11, 47, 79, 0.12);
  --overlay-soft: rgba(11, 47, 79, 0);
  --overlay-light: rgba(255, 255, 255, 0.06);
  --overlay-bottom: rgba(11, 47, 79, 0.2);
  --caption-border: rgba(255, 255, 255, 0.48);
  --caption-surface: rgba(11, 47, 79, 0.72);
  --caption-border-solid: rgba(15, 76, 129, 0.18);
  --caption-gradient-start: rgba(15, 76, 129, 0.94);
  --caption-gradient-end: rgba(11, 47, 79, 0.9);
  --caption-shadow: rgba(15, 47, 79, 0.12);
  --tile-surface: rgba(255, 255, 255, 0.78);
  --hero-content-surface: rgba(255, 255, 255, 0.9);
  --hero-service-surface: rgba(255, 255, 255, 0.86);
  --hero-dark-veil: rgba(10, 22, 36, 0.28);
  --hero-veil-left: rgba(255, 255, 255, 0.72);
  --hero-veil-mid: rgba(255, 255, 255, 0.48);
  --hero-veil-right: rgba(255, 255, 255, 0.08);
  --hero-veil-top: rgba(255, 255, 255, 0.16);
  --hero-veil-bottom: rgba(10, 22, 36, 0.18);
  --hero-mobile-top: rgba(255, 255, 255, 0.76);
  --hero-mobile-mid: rgba(255, 255, 255, 0.5);
  --hero-mobile-bottom: rgba(10, 22, 36, 0.22);
  --shadow-hero: 0 24px 80px rgba(15, 47, 79, 0.12);
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-primary);
  background: var(--surface-primary);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.page-shell {
  width: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
}

.site-header {
  min-height: 72px;
  width: min(calc(100% - 48px), 1280px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-default);
  animation: rise-in 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border-default);
  border-radius: 50%;
  background: var(--surface-primary);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.3;
}

.brand small {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  transition: color 180ms ease-out;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.hero {
  position: relative;
  height: clamp(360px, 37.5vw, 560px);
  min-height: 0;
  overflow: hidden;
  background: var(--surface-warm);
}

.hero::before {
  display: none;
}

.hero-slider {
  position: absolute;
  inset: 0;
  background: var(--surface-warm);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: brightness(1.02) saturate(1.02);
  animation-duration: 24s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.slide-one {
  opacity: 1;
  animation-name: hero-fade-one;
}

.slide-two {
  animation-name: hero-fade-two;
}

.slide-three {
  animation-name: hero-fade-three;
}

.slide-four {
  animation-name: hero-fade-four;
}

.intro-section {
  padding: var(--space-16) max(24px, calc((100vw - 1280px) / 2 + 24px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.74fr);
  gap: var(--space-10);
  align-items: end;
  background:
    radial-gradient(circle at 14% 6%, var(--background-glow), transparent 30%),
    linear-gradient(180deg, var(--surface-primary) 0%, var(--surface-warm) 100%);
}

.hero-copy {
  position: relative;
  max-width: 760px;
  padding: 0;
  animation: rise-in 680ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}

.eyebrow {
  margin: 0 0 var(--space-5);
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  margin: var(--space-6) 0 0;
  max-width: 700px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-5);
  border-radius: 6px;
  border: 1px solid var(--border-default);
  font-size: 15px;
  font-weight: 600;
  transition: transform 140ms ease-out, background-color 180ms ease-out, color 180ms ease-out;
}

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

.button:active {
  transform: translateY(1px);
}

.button.primary {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  color: var(--text-inverse);
}

.button.primary:hover {
  background: var(--accent-deep);
}

.button.secondary {
  background: var(--surface-veil);
  color: var(--text-primary);
}

.visual-caption {
  position: relative;
  width: 100%;
  min-height: 156px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
  border: 1px solid var(--caption-border-solid);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--caption-gradient-start), var(--caption-gradient-end)),
    var(--caption-surface);
  color: var(--text-inverse);
  box-shadow: 0 18px 50px var(--caption-shadow);
  animation: rise-in 680ms cubic-bezier(0.16, 1, 0.3, 1) 140ms both;
}

.visual-caption strong {
  display: block;
  max-width: 320px;
  font-size: 24px;
  line-height: 1.45;
}

.service-band {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  animation: rise-in 680ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

.service-tile {
  min-height: 142px;
  padding: var(--space-5);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--surface-primary);
  transition: transform 180ms ease-out, background-color 180ms ease-out;
}

.service-tile:hover {
  transform: translateY(-2px);
  background: var(--surface-primary);
}

.service-tile span {
  display: block;
  margin-bottom: var(--space-4);
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.service-tile h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.service-tile p {
  margin: var(--space-3) 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.site-footer {
  padding: var(--space-6) max(24px, calc((100vw - 1280px) / 2 + 24px)) var(--space-8);
  border-top: 1px solid var(--border-default);
  background: var(--surface-warm);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--accent-primary);
  font-weight: 600;
}

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

@keyframes image-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-fade-one {
  0% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  25% {
    opacity: 0;
  }
  95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes hero-fade-two {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  45% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes hero-fade-three {
  0% {
    opacity: 0;
  }
  45% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  75% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes hero-fade-four {
  0% {
    opacity: 0;
  }
  70% {
    opacity: 0;
  }
  75% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .page-shell {
    padding: 0;
  }

  .hero {
    height: clamp(300px, 50vw, 420px);
  }

  .intro-section {
    grid-template-columns: 1fr;
    padding: var(--space-8) var(--space-5);
  }

  .hero-copy {
    max-width: 720px;
  }

  .visual-caption {
    max-width: 720px;
    min-height: auto;
  }

  h1 {
    max-width: 720px;
    font-size: 44px;
  }

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

@media (max-width: 640px) {
  .page-shell {
    gap: var(--space-4);
  }

  .site-header {
    width: calc(100% - 32px);
  }

  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: 34px;
    line-height: 1.18;
  }

  .lead {
    font-size: 16px;
    line-height: 1.7;
  }

  .button {
    width: 100%;
  }

  .hero {
    height: clamp(220px, 58vw, 320px);
  }

  .hero-copy {
    padding: var(--space-5);
  }

  .visual-caption {
    width: 100%;
    padding: var(--space-5);
  }

  .visual-caption strong {
    max-width: none;
    font-size: 19px;
  }

  .service-band {
    grid-template-columns: 1fr;
  }

  .service-tile {
    min-height: auto;
  }

  .site-footer {
    padding: var(--space-5) var(--space-5) var(--space-6);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
