:root {
  color-scheme: dark;
  --line: rgba(255, 255, 255, 0.28);
  --muted: rgba(255, 255, 255, 0.68);
  --surface: rgba(22, 25, 31, 0.62);
  --surface-hover: rgba(38, 43, 52, 0.82);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #1d2026;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: #fff;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background:
    linear-gradient(145deg, rgba(17, 20, 25, 0.35), rgba(17, 20, 25, 0.78)),
    url("../../images/bg.jpg") center / cover fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("../../images/overlay.png");
  opacity: 0.3;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 1040px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 5rem) 0 1.5rem;
  display: flex;
  flex-direction: column;
}

.portal {
  margin: auto 0;
}

.intro {
  max-width: 760px;
  margin: 0 auto clamp(1.75rem, 4vw, 3rem);
  text-align: center;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 4.75rem;
  height: 4.75rem;
  margin: 0 auto 1.65rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  font-size: 1.55rem;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 1px;
  height: 1.65rem;
  background: rgba(255, 255, 255, 0.72);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: 0.12em;
}

blockquote {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  font-style: normal;
  line-height: 1.9;
  letter-spacing: 0.12em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.service-card {
  position: relative;
  min-height: 7.25rem;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
  box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.service-card:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.service-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.service-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(75, 91, 116, 0.78), rgba(28, 33, 42, 0.72));
}

.service-icon {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
}

.service-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.service-copy strong {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.service-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  padding-top: 2rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 0.78rem;
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 1.25rem, 560px);
    padding-top: 2rem;
  }

  .intro {
    margin-bottom: 1.5rem;
  }

  .brand-mark {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.35rem;
  }

  .brand-mark::after {
    height: 1.35rem;
  }

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

  .service-card {
    min-height: 6.6rem;
    padding: 0.95rem;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 1.6rem;
  }

  blockquote {
    font-size: 0.86rem;
    letter-spacing: 0.07em;
  }

  .service-card {
    min-height: 6.35rem;
  }

  .service-copy strong {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card {
    transition: none;
  }
}

