:root {
  --bg: #f5fafd;
  --surface: #ffffff;
  --surface-alt: #f5fafd;
  --text: #132034;
  --muted: #5c6b80;
  --line: #d8e1ec;
  --brand: #373739;
  --brand-2: #4e7ca1;
  --accent: #5b5b73;
  --contact-bg: #1f1f20;
  --shadow: 0 18px 42px rgba(18, 31, 48, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(216, 225, 236, 0.95);
  transition: background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.02rem;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.96rem;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--brand);
  background: rgba(91, 91, 115, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.lang-switch a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-switch a.active {
  color: #fff;
  background: var(--accent);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(31, 31, 32, 0.8), rgba(31, 31, 32, 0.48)),
    url("../images/hero-bg.jpg") center/cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -28% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
  z-index: -1;
}

.hero-inner {
  padding: 7rem 0 6rem;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(2.35rem, 4.6vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.hero-company {
  margin: 0;
  color: rgba(255, 255, 255, 0.98);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero p {
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  max-width: 66ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px) scale(1.01);
  outline: none;
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.26) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
}

.button:hover::after,
.button:focus-visible::after {
  transform: translateX(130%);
}

.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 16px 36px rgba(91, 91, 115, 0.2);
}

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

.section {
  padding: 5.5rem 0;
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading .eyebrow {
  color: var(--accent);
  background: rgba(91, 91, 115, 0.08);
  border-color: rgba(91, 91, 115, 0.12);
}

.section-heading h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.section-heading p {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.services-grid,
.advantages-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

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

.service-card,
.advantage-card,
.contact-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 225, 236, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-card:hover,
.advantage-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(18, 31, 48, 0.12);
  border-color: rgba(170, 181, 196, 0.95);
}

.service-card {
  overflow: hidden;
}

.service-image {
  aspect-ratio: 16 / 10;
  background: #dfe9f4;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.04);
}

.service-body {
  padding: 1.6rem 1.5rem 1.65rem;
}

.service-body h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
}

.service-body p {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.service-body ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--text);
}

.service-body li + li {
  margin-top: 0.35rem;
}

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

.advantage-card {
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border: 2px solid rgba(55, 55, 57, 0.9);
  border-radius: 999px;
  color: var(--brand);
  background: transparent;
}

.advantage-icon svg {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

.advantage-card h3 {
  margin: 1rem 0 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

.advantage-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 18ch;
}

.contact {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.2), transparent 18rem),
    linear-gradient(135deg, var(--contact-bg), #0f1f31);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  pointer-events: none;
}

.contact .section-heading .eyebrow {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.contact .section-heading p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-grid {
  grid-template-columns: 2fr 3fr;
  align-items: stretch;
  gap: 1.4rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(6px);
}

.contact-main {
  padding: 2.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-main p {
  margin: 1rem auto 1.8rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 28ch;
  font-size: 1.04rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  border: 1.6px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  color: #fff;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.contact-link svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-main-title {
  margin: 1rem 0 0;
  color: #fff;
  font-size: 1.95rem;
  line-height: 1.1;
}

.contact-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin-top: 0.3rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
}

.contact-hero-icon svg {
  width: 2rem;
  height: 2rem;
  fill: #fff;
}

.contact-side {
  padding: 2.4rem 2.6rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.contact-details {
  display: grid;
  gap: 1.2rem;
  align-content: center;
  min-height: 100%;
}

.contact-detail {
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: rgba(245, 250, 253, 0.95);
  border: 1px solid rgba(216, 225, 236, 0.95);
  font-size: 1.02rem;
  line-height: 1.65;
}

.contact-detail strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--brand);
}

.contact-detail a {
  color: var(--text);
  word-break: break-word;
}

.contact-detail a:hover,
.contact-detail a:focus-visible {
  color: var(--brand-2);
  outline: none;
}

.footer {
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer .container {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-reveal,
.section-heading,
.service-card,
.advantage-card,
.contact-card {
  opacity: 0;
  transform: translateY(26px);
}

body.is-ready .page-reveal,
body.is-ready .section-heading,
body.is-ready .service-card,
body.is-ready .advantage-card,
body.is-ready .contact-card {
  opacity: 1;
  transform: translateY(0);
}

body.is-ready .page-reveal {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

body.is-ready .section-heading {
  transition: opacity 0.7s ease 0.08s, transform 0.7s ease 0.08s;
}

body.is-ready .services-grid .service-card:nth-child(1),
body.is-ready .advantages-grid .advantage-card:nth-child(1) {
  transition: opacity 0.7s ease 0.14s, transform 0.7s ease 0.14s;
}

body.is-ready .services-grid .service-card:nth-child(2),
body.is-ready .advantages-grid .advantage-card:nth-child(2) {
  transition: opacity 0.7s ease 0.22s, transform 0.7s ease 0.22s;
}

body.is-ready .services-grid .service-card:nth-child(3),
body.is-ready .advantages-grid .advantage-card:nth-child(3) {
  transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

body.is-ready .advantages-grid .advantage-card:nth-child(4),
body.is-ready .contact-card:nth-child(1) {
  transition: opacity 0.7s ease 0.38s, transform 0.7s ease 0.38s;
}

body.is-ready .contact-card:nth-child(2) {
  transition: opacity 0.7s ease 0.46s, transform 0.7s ease 0.46s;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .page-reveal,
  .section-heading,
  .service-card,
  .advantage-card,
  .contact-card {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header .container {
    padding: 0.8rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    font-size: 0.98rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.6rem;
  }

  .hero-inner {
    padding: 5.5rem 0 4.5rem;
  }

  .section {
    padding: 4.25rem 0;
  }

  .services-grid,
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .service-body,
  .contact-main {
    padding: 1.3rem;
  }

  .contact-side {
    padding: 1.35rem;
  }

  .footer .container {
    flex-direction: column;
    align-items: flex-end;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .site-header {
    position: static;
  }

  .brand {
    gap: 0.7rem;
    font-size: 0.92rem;
  }

  .brand-name {
    font-size: 0.96rem;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .nav a {
    padding: 0.45rem 0.75rem;
    font-size: 0.92rem;
  }

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

  .lang-switch a {
    flex: 1 1 0;
    text-align: center;
  }

  .hero-inner {
    padding: 4.6rem 0 3.8rem;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button,
  .contact-main .button {
    width: 100%;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .service-image {
    aspect-ratio: 4 / 3;
  }

  .service-body h3,
  .advantage-card h3 {
    font-size: 1.05rem;
  }

  .contact-main p,
  .contact-detail {
    font-size: 0.96rem;
  }

  .contact-main-title {
    font-size: 1.6rem;
  }
}
