:root {
  color-scheme: dark;
  --color-bg: #0f1115;
  --color-surface: #15181e;
  --color-surface-hover: #191d24;
  --color-border: #282d36;
  --color-border-hover: #3b4350;
  --color-text: #f1f3f5;
  --color-muted: #8f98a6;
  --color-subtle: #697281;
  --color-focus: #8ab4f8;
  --color-icon-bg: #1d232c;
  --color-icon: #b9c7db;
  --shadow-card: 0 16px 36px rgb(0 0 0 / 18%);
  --radius-card: 18px;
  --page-gutter: clamp(1rem, 4vw, 3.5rem);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--color-bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3b4350 50%, transparent);
  content: "";
  opacity: 0.7;
  pointer-events: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page-shell {
  width: min(100%, 1320px);
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(3.25rem, 9vh, 7rem) var(--page-gutter) 3rem;
}

.page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.75rem);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--color-subtle);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.subtitle {
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.service-count {
  margin: 0 0 0.2rem;
  color: var(--color-subtle);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.15rem);
}

.service-card {
  position: relative;
  display: flex;
  min-height: 205px;
  flex-direction: column;
  padding: clamp(1.25rem, 2vw, 1.5rem);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.service-card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%);
  content: "";
  pointer-events: none;
}

.service-card:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.service-card:active {
  box-shadow: none;
  transform: translateY(-1px) scale(0.985);
}

.service-card:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

.service-icon-wrap {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid #2c3440;
  border-radius: 13px;
  background: var(--color-icon-bg);
  color: var(--color-icon);
}

.service-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.service-copy {
  margin-top: auto;
  padding-top: 2rem;
}

.service-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.service-name {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.075rem;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.service-arrow {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--color-subtle);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.service-card:hover .service-arrow {
  color: var(--color-text);
  stroke: currentColor;
  transform: translate(2px, -2px);
}

.service-description {
  margin: 0.35rem 0 0;
  overflow-wrap: anywhere;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.noscript-message {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .page-shell {
    padding-top: 2.75rem;
  }

  .page-header {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
  }

  .service-count {
    margin: 0;
  }
}

@media (min-width: 390px) and (max-width: 560px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 180px;
  }

  .service-copy {
    padding-top: 1.25rem;
  }
}

@media (max-width: 389px) {
  .service-card {
    min-height: 172px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
