:root {
  --enamel: #1a66dc;
  --enamel-ink: #f4f7fb;
  --enamel-soft: #f4f8ff;
  --plaster: #e6edf6;
  --plate: #ffffff;
  --ink: #142033;
  --body: #243044;
  --quiet: #3a4556;
  --line: rgba(20, 32, 51, 0.16);
  --display: "ZCOOL XiaoWei", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scrollbar-color: var(--enamel) var(--plaster);
}

html, body { margin: 0; padding: 0; }

body {
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #d5e2f6;
  color: var(--enamel);
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.frame {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.entry {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--enamel);
  color: var(--enamel-ink);
  padding: 24px 5vw 36px;
}

.entry .frame {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.entry .top {
  margin-bottom: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand img {
  width: 44px;
  height: 44px;
  padding: 4px;
  background: var(--plate);
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: inherit;
  text-decoration: none;
  font-size: 15px;
}

.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.entry-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 48px;
  align-items: end;
  align-content: center;
  padding-bottom: 2vh;
}

.plaque h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(56px, 6vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}

.promise {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.lead {
  margin: 12px 0 0;
  max-width: 36em;
  color: var(--enamel-soft);
  font-size: 16px;
  line-height: 1.7;
}

.intercom {
  background: var(--plate);
  color: var(--enamel);
  padding: 20px 20px 16px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
  scroll-margin-top: 24px;
}

.intercom img {
  display: block;
  width: 100%;
  height: auto;
}

.scan {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-align: center;
}

.hint {
  margin: 4px 0 0;
  color: var(--enamel);
  font-size: 14px;
  text-align: center;
}

.directory {
  padding: 96px 5vw 8px;
  scroll-margin-top: 28px;
}

h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

dl { margin: 36px 0 0; }

.row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 32px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.row:last-child { border-bottom: 1px solid var(--line); }

dt {
  margin: 0;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

dd {
  margin: 0;
  max-width: 46em;
  color: var(--body);
}

.who { padding: 88px 5vw 16px; }

.who-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 40px;
  margin-top: 36px;
}

.who-rule { background: rgba(26, 102, 220, 0.22); }

h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.who p {
  margin: 0;
  max-width: 36em;
  color: var(--body);
}

.foot {
  padding: 28px 5vw 40px;
  margin-top: 72px;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.foot p { margin: 0; }

.foot a {
  color: var(--quiet);
  text-underline-offset: 3px;
}

.foot a:hover { color: var(--enamel); }

.import { margin-left: 12px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .intercom {
    animation: seat 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes seat {
  from { transform: translateY(12px); }
  to { transform: none; }
}

@media (max-width: 860px) {
  .entry {
    min-height: 0;
    display: block;
    padding: 22px 20px 40px;
  }

  .entry .frame { display: block; }

  .entry .top { margin-bottom: 28px; }

  .entry-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
    align-content: start;
    padding-bottom: 0;
  }

  .plaque h1 { font-size: 56px; }

  .intercom { width: min(280px, 100%); }

  .directory { padding: 64px 20px 8px; }

  .row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 18px 0;
  }

  .who { padding: 56px 20px 16px; }

  .who-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .who-rule { height: 1px; }

  .foot { margin-top: 48px; padding: 28px 20px 40px; }
}

@media (max-width: 420px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .plaque h1 { font-size: 48px; }

  .nav { gap: 18px; }
}
