:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.12);
  --blue: #0052d9;
  --blue-dark: #003f9f;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::selection {
  background: rgba(0, 82, 217, 0.18);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 5vw, 72px);
  color: rgba(29, 29, 31, 0.84);
  background: rgba(245, 245, 247, 0.78);
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  backdrop-filter: saturate(180%) blur(18px);
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-text strong {
  color: var(--blue);
  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.site-nav a:hover {
  background: rgba(29, 29, 31, 0.06);
  color: var(--ink);
}

.nav-cta {
  justify-self: end;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0, 82, 217, 0.22);
}

.company-title {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.12;
}

.company-title span {
  display: block;
  white-space: nowrap;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
  min-height: calc(100vh - 68px);
  padding: clamp(64px, 10vw, 128px) clamp(20px, 6vw, 92px) 42px;
}

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  max-width: 780px;
  font-size: clamp(46px, 5.2vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 21px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 15px 32px rgba(0, 82, 217, 0.24);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #e5e5ea;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.18)),
    linear-gradient(120deg, rgba(0, 82, 217, 0.18), transparent 44%);
  pointer-events: none;
}

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

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(20px, 6vw, 92px) clamp(78px, 10vw, 120px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--line);
}

.metric-strip div {
  min-height: 150px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.76);
}

.metric-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.metric-strip span {
  color: var(--muted);
  font-size: 15px;
}

.section {
  padding: clamp(80px, 12vw, 150px) clamp(20px, 6vw, 92px);
}

.section-heading {
  max-width: 830px;
  margin-bottom: 40px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section h2,
.feature-copy h2,
.contact-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  align-items: start;
  gap: clamp(32px, 7vw, 96px);
  background: var(--surface);
}

.intro p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.8;
}

.services {
  background: var(--bg);
}

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

.service-card {
  min-height: 310px;
  padding: 30px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.service-card.wide {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(0, 1.06fr) minmax(260px, 0.94fr);
  gap: 26px;
  padding: 18px;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  border-radius: 14px;
  object-fit: cover;
}

.service-card.wide div {
  align-self: end;
  padding: 12px 12px 16px 0;
}

.service-card span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.service-card h3,
.case-card h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.15;
}

.service-card p,
.case-card p,
.certificate-card p,
.feature-copy p,
.contact-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
  padding: clamp(80px, 12vw, 150px) clamp(20px, 6vw, 92px);
  background: #111113;
  color: #fff;
}

.feature-copy {
  max-width: 650px;
}

.feature-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.feature-gallery {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  grid-template-rows: repeat(2, minmax(190px, 1fr));
  gap: 16px;
}

.feature-gallery img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  border-radius: 18px;
  object-fit: cover;
}

.feature-gallery img:first-child {
  grid-row: 1 / span 2;
}

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

.certificates {
  background: var(--surface);
}

.section-heading p:not(.eyebrow) {
  max-width: 780px;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

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

.certificate-card {
  display: grid;
  align-content: start;
  min-height: 100%;
  padding: 14px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.certificate-image {
  display: block;
  margin-bottom: 22px;
}

.certificate-card img {
  width: 100%;
  height: 250px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
}

.certificate-card h3 {
  margin: 0 14px 8px;
  font-size: 22px;
  line-height: 1.25;
}

.certificate-card p {
  margin: 0 14px 12px;
}

.case-card {
  overflow: hidden;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.04);
}

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

.case-card div {
  padding: 28px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
  gap: 36px;
  align-items: end;
  margin: 0 clamp(20px, 6vw, 92px) clamp(72px, 8vw, 110px);
  padding: clamp(36px, 7vw, 76px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  max-width: 760px;
}

.contact-actions {
  justify-content: flex-end;
}

address {
  flex-basis: 100%;
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 92px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-soft);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  color: var(--blue);
  font-weight: 700;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .intro,
  .feature-band,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
  }

  .hero-media {
    min-height: 420px;
  }

  .service-grid,
  .case-grid,
  .certificate-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card.wide {
    grid-column: 1 / -1;
  }

  .contact-actions,
  address {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 62px;
    padding: 10px 16px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    max-width: 236px;
    font-size: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-cta {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    white-space: nowrap;
  }

  .nav-cta::before {
    content: "修";
    color: #fff;
    font-weight: 700;
  }

  .hero {
    padding: 56px 16px 30px;
  }

  .company-title {
    font-size: clamp(23px, 6.4vw, 28px);
  }

  h1 {
    font-size: clamp(36px, 10.2vw, 40px);
    line-height: 1.08;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
    max-width: calc(100vw - 32px);
  }

  .hero-media {
    min-height: 310px;
    border-radius: 22px;
  }

  .metric-strip {
    grid-template-columns: 1fr 1fr;
    margin: 0 16px 56px;
    border-radius: 22px;
  }

  .metric-strip div {
    min-height: 122px;
    padding: 22px;
  }

  .metric-strip strong {
    font-size: 31px;
  }

  .metric-strip span {
    font-size: 14px;
  }

  .section,
  .feature-band {
    padding: 70px 16px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section h2,
  .feature-copy h2,
  .contact-panel h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .intro {
    gap: 10px;
  }

  .service-grid,
  .case-grid,
  .certificate-grid,
  .service-card.wide {
    grid-template-columns: 1fr;
  }

  .certificate-card img {
    height: 260px;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .service-card.wide {
    padding: 12px;
  }

  .service-card.wide div {
    padding: 12px;
  }

  .service-card span {
    margin-bottom: 26px;
  }

  .feature-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .feature-gallery img:first-child {
    grid-row: auto;
  }

  .case-card img {
    height: 260px;
  }

  .contact-panel {
    margin: 0 16px 56px;
    padding: 30px 20px;
    border-radius: 22px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
