:root {
  color-scheme: light;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --ink: #172033;
  --muted: #5f6d82;
  --line: rgba(41, 63, 96, 0.13);
  --paper: #f6f8fc;
  --white: #ffffff;
  --blue: #2f6fd7;
  --green: #26765b;
  --shadow: 0 8px 16px rgba(33, 59, 94, 0.08);
  --radius-large: 20px;
  --radius-card: 16px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 5%, rgba(196, 222, 255, 0.46), transparent 27rem),
    radial-gradient(circle at 90% 12%, rgba(255, 231, 168, 0.36), transparent 24rem),
    linear-gradient(180deg, #fbfcff 0%, var(--paper) 100%);
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
}

.portal {
  display: grid;
  width: min(1008px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(18px, 4vh, 44px) 0;
  grid-template-rows: auto auto;
  align-content: center;
  gap: clamp(14px, 2vh, 18px);
}

.hero,
.service-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero {
  display: grid;
  height: clamp(86px, 12vh, 112px);
  min-height: 0;
  border-radius: var(--radius-large);
  align-items: center;
}

.hero__image,
.service-card > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image {
  object-position: center;
  transform: scale(1.2);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.99) 0%, rgba(255, 253, 247, 0.92) 44%, rgba(255, 253, 247, 0.18) 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.48));
}

.hero__main {
  width: min(640px, 66%);
  padding: 14px clamp(24px, 4vw, 42px);
}

.eyebrow,
.hero__lead,
.hero__meta {
  font-weight: 500;
}

.eyebrow {
  margin: 0 0 4px;
  color: #54708f;
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 3px;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero__lead {
  margin-bottom: 0;
  color: #2d405d;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero__meta {
  position: absolute;
  right: clamp(18px, 3vw, 30px);
  bottom: 14px;
  display: flex;
  max-width: 46%;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  color: #40516a;
  font-size: clamp(13px, 1.22vw, 15px);
  font-weight: 500;
}

.hero__meta a {
  text-decoration: none;
}

.hero__meta a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.service-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vh, 20px);
}

.service-card {
  min-height: 0;
  aspect-ratio: 1.74 / 1;
  border-radius: var(--radius-card);
}

a.service-card {
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

a.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 111, 215, 0.36);
  box-shadow: 0 10px 18px rgba(40, 80, 126, 0.12);
}

.service-card > img {
  object-position: 64% center;
  transform: scale(1.2);
}

.service-card__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.82) 40%, rgba(255, 255, 255, 0.08) 78%);
}

.service-card__content {
  display: flex;
  min-height: 100%;
  padding: clamp(26px, 4vh, 40px) clamp(24px, 4vw, 30px);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.service-card strong {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.service-card__status {
  display: inline-flex;
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #59657a;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
}

.service-card--live .service-card__status {
  color: #59657a;
}

.service-card__desc {
  display: block;
  max-width: 250px;
  margin-top: 8px;
  color: rgba(73, 87, 109, 0.74);
  font-size: clamp(12px, 1.16vw, 14px);
  font-weight: 400;
  line-height: 1.45;
  text-wrap: pretty;
}

.service-card--planned {
  cursor: default;
}

.service-card--planned > img {
  filter: saturate(0.9);
}

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

@media (max-width: 720px) {
  .portal {
    width: min(100% - 20px, 560px);
    min-height: 100svh;
    padding: 10px 0;
    gap: 10px;
  }

  .hero {
    height: 138px;
    border-radius: 20px;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(255, 253, 247, 0.98) 0%, rgba(255, 253, 247, 0.88) 62%, rgba(255, 253, 247, 0.36) 100%);
  }

  .hero__main {
    width: 100%;
    padding: 18px 20px 60px;
  }

  h1 {
    font-size: clamp(24px, 6.5vw, 34px);
  }

  .hero__lead {
    font-size: clamp(14px, 4vw, 18px);
  }

  .hero__meta {
    right: 18px;
    bottom: 14px;
    left: 20px;
    max-width: none;
    justify-content: flex-start;
    font-size: 12px;
  }

  .service-grid {
    gap: 10px;
  }

  .service-card {
    border-radius: 18px;
  }

  .service-card__content {
    padding: 16px;
  }

  .service-card strong {
    font-size: clamp(22px, 6vw, 30px);
  }

  .service-card__status {
    margin-top: 7px;
    font-size: 13px;
  }

  .service-card__desc {
    display: none;
  }
}

@media (max-height: 680px) and (min-width: 721px) {
  .portal {
    padding: 12px 0;
    gap: 12px;
  }

  .hero {
    min-height: 130px;
  }

  .service-card__content {
    padding-top: 22px;
    padding-bottom: 22px;
  }
}

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