:root {
  color-scheme: dark;
  --night: #07181b;
  --cream: #fff5df;
  --gold: #ffc46f;
  --muted: #ded6c3;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body {
  color: var(--cream);
  background: var(--night) url("/portal-hero.webp") center center / cover no-repeat;
}
.page-shell { display: flex; flex-direction: column; min-height: 100svh; }
.landing, .site-footer { width: min(1150px, calc(100% - 80px)); margin-inline: auto; }
.landing { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 600px; }
.welcome { max-width: 570px; padding: 32px 12px 72px; text-align: center; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
h1, .tagline { font-family: "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif; }
h1 { margin: 0; font-size: clamp(64px, 6.6vw, 102px); line-height: 1.14; font-weight: 700; letter-spacing: .02em; }
h1 span, h1 strong { display: block; }
h1 strong { color: var(--gold); font-weight: 700; }
.tagline { margin: 26px 0 0; color: var(--cream); font-size: clamp(22px, 2vw, 30px); line-height: 1.55; }
.intro { margin: 25px 0 33px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.entry-button {
  display: inline-flex;
  width: min(350px, 100%);
  min-height: 70px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 30px;
  border: 1px solid #ffe4ac;
  border-radius: 999px;
  color: #261807;
  background: #ffc369;
  box-shadow: 0 0 24px rgba(243, 165, 60, .25);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: none;
  transition: background-color .15s, transform .15s;
}
.entry-button:hover { background: #ffda94; }
.entry-button:active { transform: translateY(2px); }
.entry-button:focus-visible { outline: 3px solid #fff4d1; outline-offset: 5px; }
.entry-button svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.entry-address { margin: 18px 0 0; color: #ffd28b; font-size: 16px; letter-spacing: .04em; }
.categories {
  position: absolute;
  top: 16%;
  right: 0;
  display: flex;
  width: min(365px, 38%);
  flex-direction: column;
  gap: 38px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.categories li {
  align-self: flex-end;
  padding: 9px 19px;
  border: 1px solid rgba(255, 211, 132, .35);
  border-radius: 999px;
  background: rgba(13, 34, 30, .88);
  color: #ffdea0;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 4px #071310;
  white-space: nowrap;
}
.categories li:first-child { align-self: flex-start; }
.categories li:last-child { margin-right: 10px; }
.site-footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border-top: 1px solid rgba(241, 216, 168, .22);
  color: #e8d9ba;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  text-shadow: 0 1px 5px #000;
}
.site-footer p { margin: 0; }
.site-footer > span { white-space: nowrap; }
.moved h1 { font-size: clamp(45px, 4.6vw, 68px); }
.eyebrow { margin: 0 0 20px; color: #ffda99; font-size: 14px; letter-spacing: .08em; }

@media (min-width: 901px) {
  .landing:not(.moved) .welcome { transform: translate(44px, -60px); }
}

@media (max-width: 900px) {
  .landing, .site-footer { width: calc(100% - 48px); }
  .landing { min-height: 560px; }
  h1 { font-size: clamp(55px, 7vw, 76px); }
  .tagline { font-size: 21px; }
  .intro { font-size: 15px; }
  .categories { top: 15%; right: 0; gap: 32px; }
  .categories li { padding: 8px 13px; font-size: 13px; }
}

@media (max-width: 600px) {
  body { background-size: auto 430px; background-position: 69% bottom; }
  .landing, .site-footer { width: calc(100% - 40px); }
  .landing { display: flex; flex-direction: column; align-items: center; min-height: 685px; }
  .welcome { width: 100%; padding: 31px 0 0; }
  h1 { font-size: clamp(50px, 13vw, 66px); line-height: 1.12; }
  .tagline { margin-top: 17px; font-size: clamp(18px, 5vw, 22px); }
  .intro { margin: 12px 0 21px; font-size: 14px; }
  .entry-button { width: min(310px, 100%); min-height: 56px; gap: 16px; padding: 12px 22px; font-size: 18px; }
  .entry-address { margin-top: 12px; font-size: 14px; }
  .categories { position: static; width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 18px; }
  .categories li, .categories li:first-child, .categories li:last-child { align-self: auto; margin: 0; padding: 5px 10px; font-size: 11px; }
  .site-footer { min-height: 67px; flex-wrap: wrap; gap: 3px 14px; padding: 14px 0; font-size: 11px; }
  .moved h1 { font-size: clamp(41px, 10vw, 54px); }
  .moved .welcome { padding-top: 48px; }
  .moved .intro { margin-top: 24px; }
}

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