@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/assets/fonts/noto-sans-sc-chinese-simplified-400-normal.woff2") format("woff2");
  unicode-range: U+3000-9FFF, U+F900-FAFF, U+FF00-FFEF;
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("/assets/fonts/noto-sans-sc-chinese-simplified-700-normal.woff2") format("woff2");
  unicode-range: U+3000-9FFF, U+F900-FAFF, U+FF00-FFEF;
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/assets/fonts/noto-sans-sc-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("/assets/fonts/noto-sans-sc-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}
:root {
  --app-font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
  --bg: #eaf1f6;
  --surface: #f7fafc;
  --ink: #0d3154;
  --muted: #4e6a80;
  --line: #c3d3df;
  --accent: #f2af24;
  --accent-ink: #102a46;
  --glow: rgba(98, 151, 184, .22);
  --field: #ffffff;
  --error: #ad2837;
}
* { box-sizing: border-box; }
html { min-width: 320px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--app-font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.site-header {
  width: min(calc(100% - 80px), 1360px);
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand picture { width: 37px; flex: 0 0 37px; }
.brand img { width: 100%; height: 37px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }
.brand strong { font-size: 16px; line-height: 1.2; letter-spacing: .08em; }
.brand small { font-size: 9px; font-weight: 700; letter-spacing: .27em; color: var(--muted); }
.pill-link, .outline-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.pill-link:hover, .outline-button:hover { transform: translateY(-2px); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.eyebrow { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .22em; }
.tagline { margin: 0; color: var(--muted); line-height: 1.65; }
.hero { min-height: calc(100dvh - 89px); position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; padding: 35px 24px 95px; }
.hero::before { content: ""; position: absolute; width: min(85vw, 800px); aspect-ratio: 1; top: 6%; left: 50%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 68%); z-index: -1; }
.hero::after { content: ""; position: absolute; left: 5%; right: 5%; bottom: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 25%, var(--line) 75%, transparent); }
.hero-content { position: relative; z-index: 1; text-align: center; animation: rise-from-below 2.2s cubic-bezier(.22,.61,.36,1) both; }
.hero-mark { display: block; width: clamp(180px, 23vw, 340px); margin: 0 auto 17px; }
.hero-mark img { width: 100%; height: auto; }
.hero h1 { margin: 13px 0 12px; font-size: clamp(52px, 6vw, 86px); line-height: 1.15; letter-spacing: .06em; }
.hero .tagline { font-size: clamp(18px, 2vw, 24px); letter-spacing: .16em; }
@keyframes rise-from-below {
  from { opacity: 0; transform: translateY(var(--entrance-rise, 110px)); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-stage { width: min(calc(100% - 80px), 1260px); min-height: calc(100dvh - 89px); margin: auto; padding: 50px 0 80px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.admin-identity { width: 100%; min-width: 0; text-align: center; justify-self: center; transform: translateX(calc(50% + 22px)); transition: transform .85s cubic-bezier(.2,.72,.25,1); }
.admin-identity-content { animation: rise-from-below 2.2s cubic-bezier(.22,.61,.36,1) both; }
.admin-identity picture { display: block; width: clamp(180px, 22vw, 310px); margin: 0 auto 17px; }
.admin-identity img { width: 100%; height: auto; }
.admin-identity h1 { margin: 12px 0; font-size: clamp(49px, 5.5vw, 78px); letter-spacing: .05em; line-height: 1.2; }
.admin-identity .tagline { font-size: clamp(17px, 1.8vw, 23px); letter-spacing: .12em; }
.admin-form-shell { width: min(100%, 430px); justify-self: center; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(36px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.72,.25,1), visibility 0s linear .7s; }
.admin-stage.is-ready .admin-identity { transform: translateX(0); }
.admin-stage.is-ready .admin-form-shell { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); transition-delay: .13s, .13s, 0s; }
.form-card { width: 100%; padding: clamp(26px, 3.5vw, 43px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.form-card h2, .form-card h1 { margin: 10px 0 9px; font-size: clamp(28px, 3vw, 36px); letter-spacing: -.03em; }
.form-card > p:not(.eyebrow) { margin: 0 0 24px; color: var(--muted); line-height: 1.65; }
.form-card form { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--field); color: var(--ink); outline: none; font-size: 16px; }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,175,36,.18); }
.field small { color: var(--muted); line-height: 1.5; }
.primary-button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 700; transition: transform .2s ease, filter .2s ease; }
.primary-button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.primary-button:disabled { cursor: wait; opacity: .7; transform: none; }
.form-message { min-height: 22px; margin: 0; color: var(--error); font-size: 14px; line-height: 1.5; }
.form-message.success { color: var(--ink); }
.interior { width: min(calc(100% - 48px), 760px); margin: 0 auto; min-height: calc(100dvh - 89px); display: grid; align-content: center; padding: 50px 0 85px; }
.interior .form-card { max-width: 570px; margin: auto; }
.admin-dashboard { width: min(calc(100% - 48px), 900px); margin: 0 auto; min-height: calc(100dvh - 89px); padding: clamp(60px, 10vw, 120px) 0 80px; }
.admin-dashboard h1 { margin: 13px 0; font-size: clamp(36px, 5vw, 56px); }
.admin-dashboard p { color: var(--muted); line-height: 1.65; }
.dashboard-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.dashboard-actions a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.dashboard-actions button { min-width: 110px; }
.one-time-password { padding: 16px; border: 1px solid var(--accent); border-radius: 9px; background: var(--field); overflow-wrap: anywhere; font-size: 18px; font-weight: 700; letter-spacing: .04em; }
.return-link { margin-top: 24px; }
.hidden { display: none !important; }

@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg:#070e1c; --surface:#0d1a2b; --ink:#f4f8ff; --muted:#b6c9da; --line:#213752; --glow:rgba(38,92,136,.35); --field:#12243a; --error:#ff8994; }
}
@media (max-width: 800px) {
  .admin-stage { width: min(calc(100% - 48px), 600px); grid-template-columns: 1fr; gap: 20px; align-content: start; padding: 35px 0 60px; }
  .admin-identity { transform: translateY(15vh); }
  .admin-stage.is-ready .admin-identity { transform: translateY(0); }
  .admin-identity picture { width: min(42vw, 210px); }
  .admin-identity h1 { font-size: clamp(42px, 7vw, 58px); }
  .admin-form-shell { transform: translateY(24px); }
  .admin-stage.is-ready .admin-form-shell { transform: translateY(0); }
}
@media (max-width: 640px) {
  .hero-content, .admin-identity-content { --entrance-rise: 76px; }
  .site-header { width: calc(100% - 36px); min-height: 72px; }
  .brand picture { width: 31px; flex-basis: 31px; }
  .brand img { height: 31px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 8px; }
  .pill-link { padding: 0 14px; font-size: 13px; }
  .hero { min-height: calc(100dvh - 73px); padding: 30px 20px 75px; }
  .hero-mark { width: min(58vw, 240px); margin-bottom: 12px; }
  .hero h1 { font-size: clamp(44px, 12vw, 62px); letter-spacing: .025em; }
  .hero .tagline { font-size: 16px; letter-spacing: .08em; }
  .admin-stage { width: calc(100% - 40px); min-height: calc(100dvh - 73px); padding-top: 30px; }
  .admin-identity picture { width: min(45vw, 170px); }
  .admin-identity h1 { font-size: 42px; }
  .admin-identity .tagline { font-size: 16px; }
  .form-card { padding: 26px 22px; }
  .interior, .admin-dashboard { min-height: calc(100dvh - 73px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
