
:root {
  --ink: #061b46;
  --blue: #075bea;
  --cyan: #16cdf3;
}

* { box-sizing: border-box; }
.is-hidden { display: none !important; }

html, body { margin: 0; min-height: 100%; }

body {
  color: white;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  background: #075bea;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.welcome-shell {
  position: relative;
  display: flex;
  min-height: 100svh;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  flex-direction: column;
  padding: max(24px, env(safe-area-inset-top)) 22px max(20px, env(safe-area-inset-bottom));
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 16%, rgb(82 232 255 / 58%) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 21%, rgb(255 255 255 / 52%) 0 1px, transparent 2px),
    linear-gradient(148deg, #1cd1ed 0%, #079af0 34%, #075be9 72%, #0638bc 100%);
}

.welcome-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .12;
  background-image:
    linear-gradient(rgb(255 255 255 / 55%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 55%) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 65%);
}

.ambient { position: absolute; z-index: -1; border-radius: 999px; filter: blur(10px); }
.ambient-one { width: 340px; height: 340px; right: -190px; top: 12%; background: rgb(83 241 255 / 35%); }
.ambient-two { width: 300px; height: 300px; left: -210px; bottom: 12%; background: rgb(3 26 147 / 35%); }

.site-header { display: flex; align-items: center; gap: 11px; }
.school-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 14px;
  color: var(--blue);
  font-family: STKaiti, KaiTi, serif;
  font-size: 23px;
  font-weight: 800;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 9px 28px rgb(0 44 140 / 18%);
}
.school-name { margin: 0 0 3px; font-size: clamp(17px, 4.5vw, 20px); font-weight: 750; letter-spacing: .07em; }
.college-name { margin: 0; color: rgb(255 255 255 / 78%); font-size: clamp(12px, 3.1vw, 14px); font-weight: 600; letter-spacing: .1em; }
.back-button {
  display: grid;
  width: 42px;
  height: 42px;
  margin-left: auto;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 14px;
  color: white;
  font-size: 21px;
  background: rgb(255 255 255 / 12%);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero { display: flex; flex: 1; flex-direction: column; justify-content: center; padding: 36px 0 26px; }
.year-line { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.year-line span { font: 800 12px/1 ui-monospace, SFMono-Regular, monospace; letter-spacing: .18em; }
.year-line i { display: block; width: 50px; height: 1px; background: rgb(255 255 255 / 50%); }
.eyebrow { margin: 0 0 10px; font: 700 11px/1.2 ui-monospace, SFMono-Regular, monospace; letter-spacing: .22em; color: #bdedff; }
.hero h1 { margin: 0; font-size: clamp(54px, 16vw, 92px); font-weight: 300; line-height: .98; letter-spacing: -.08em; }
.hero h1 strong { display: block; margin-top: 12px; font-weight: 900; letter-spacing: -.09em; text-shadow: 0 12px 38px rgb(0 38 150 / 22%); }
.slogan { margin: 28px 0 0; font-size: 19px; font-weight: 750; letter-spacing: .12em; }
.intro { margin: 8px 0 30px; color: rgb(255 255 255 / 72%); font-size: 13px; }

.query-entry {
  display: grid;
  width: 100%;
  min-height: 86px;
  grid-template-columns: 48px 1fr 38px;
  gap: 14px;
  align-items: center;
  padding: 15px 14px 15px 16px;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 24px;
  color: var(--ink);
  text-align: left;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 22px 65px rgb(1 31 123 / 26%);
  cursor: pointer;
}
.entry-icon { display: flex; height: 48px; align-items: flex-end; justify-content: center; gap: 3px; border-radius: 15px; background: #e9f8ff; }
.entry-icon i { width: 5px; border-radius: 6px; background: var(--blue); }
.entry-icon i:nth-child(1) { height: 15px; opacity: .45; }
.entry-icon i:nth-child(2) { height: 25px; }
.entry-icon i:nth-child(3) { height: 19px; opacity: .7; }
.entry-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.entry-copy b { font-size: 18px; }
.entry-copy small { overflow: hidden; color: #74809b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.entry-arrow { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: white; font-size: 20px; background: var(--blue); }
.query-entry:active { transform: scale(.985); }
.query-entry:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.query-view,
.result-view {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 36px 0 24px;
  animation: panel-in .45s both cubic-bezier(.2,.8,.2,1);
}
.query-heading { margin: auto 2px 28px; }
.query-heading h1 {
  margin: 0;
  font-size: clamp(43px, 13vw, 68px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.07em;
}
.query-heading h1 strong { font-weight: 900; }
.query-heading > p:last-child { margin: 13px 0 0; color: rgb(255 255 255 / 68%); font-size: 13px; }

.query-card {
  padding: 23px 20px 18px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 28px;
  color: var(--ink);
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 24px 65px rgb(0 31 125 / 25%);
}
.query-card label { display: block; margin-bottom: 18px; }
.query-card label > span { display: block; margin: 0 3px 8px; color: #41506d; font-size: 12px; font-weight: 700; }
.query-card input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  outline: none;
  color: var(--ink);
  font-size: 16px;
  background: #f6f9fd;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.query-card input::placeholder { color: #a8b2c3; }
.query-card input:focus { border-color: #4aa4ff; background: white; box-shadow: 0 0 0 4px rgb(7 91 234 / 10%); }
.form-error { margin: -5px 3px 14px; color: #d2384d; font-size: 12px; line-height: 1.5; }
.submit-button {
  display: flex;
  width: 100%;
  height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 17px;
  color: white;
  font-weight: 750;
  background: linear-gradient(105deg, #0765ec, #0750d9);
  box-shadow: 0 13px 25px rgb(7 91 234 / 25%);
  cursor: pointer;
}
.submit-button > span:last-child { font-size: 19px; }
.submit-button:disabled { cursor: wait; opacity: .72; }
.spinner { width: 16px; height: 16px; border: 2px solid rgb(255 255 255 / 40%); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.privacy-note { display: flex; margin: 15px 0 0; align-items: center; justify-content: center; gap: 7px; color: #8590a4; font-size: 10px; }
.privacy-note span { color: #2585ed; font-size: 14px; }

.result-view { overflow-y: auto; padding-top: 26px; scrollbar-width: none; }
.result-view::-webkit-scrollbar { display: none; }
.result-kicker { display: flex; align-items: center; gap: 8px; color: #caf6ff; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.result-kicker span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: #0566d8; font-size: 11px; background: white; }
.room-hero { margin: 22px 0 25px; }
.room-hero p { margin: 0 0 2px; color: rgb(255 255 255 / 72%); font-size: 12px; letter-spacing: .08em; }
.room-hero h1 { margin: 0; font: 900 clamp(48px, 16vw, 76px)/1.06 ui-monospace, SFMono-Regular, monospace; letter-spacing: -.07em; }
.room-hero > span { display: inline-block; margin-top: 9px; padding: 5px 10px; border: 1px solid rgb(255 255 255 / 34%); border-radius: 999px; color: rgb(255 255 255 / 78%); font-size: 10px; background: rgb(255 255 255 / 10%); }
.member-list { display: flex; flex-direction: column; gap: 10px; }
.list-title { display: flex; margin: 0 2px 2px; align-items: flex-end; justify-content: space-between; }
.list-title b { font-size: 14px; }
.list-title span { color: rgb(255 255 255 / 50%); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .18em; }
.member-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 20px;
  color: var(--ink);
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 12px 30px rgb(0 36 130 / 13%);
}
.member-card.is-self { background: #dff7ff; border-color: #a8ebff; }
.member-avatar { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 15px; color: #0561d9; font-size: 17px; font-weight: 800; background: linear-gradient(145deg, #e5faff, #c8eaff); }
.member-main { min-width: 0; }
.member-main h2 { display: flex; margin: 0; align-items: center; gap: 6px; font-size: 15px; }
.member-main h2 em { padding: 2px 5px; border-radius: 5px; color: white; font-size: 8px; font-style: normal; background: #0b70e9; }
.member-main p { overflow: hidden; margin: 4px 0 0; color: #7b879c; font: 500 10px/1.2 ui-monospace, SFMono-Regular, monospace; text-overflow: ellipsis; white-space: nowrap; }
.phone-button { display: flex; align-items: flex-end; flex-direction: column; color: #0a63d9; font: 650 11px/1.25 ui-monospace, SFMono-Regular, monospace; text-decoration: none; }
.phone-button span { margin-bottom: 3px; color: #9ba5b5; font: 500 8px/1 sans-serif; }
.again-button { height: 48px; margin-top: 16px; border: 1px solid rgb(255 255 255 / 55%); border-radius: 16px; color: white; font-weight: 700; background: rgb(255 255 255 / 12%); cursor: pointer; }
.result-tip { margin: 11px 0 0; color: rgb(255 255 255 / 58%); font-size: 10px; text-align: center; }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 16px; color: rgb(255 255 255 / 68%); font: 650 9px/1.3 ui-monospace, SFMono-Regular, monospace; letter-spacing: .1em; }
.footer-brand, .icp-record { display: flex; align-items: center; gap: 9px; }
.footer-dot { width: 3px; height: 3px; border-radius: 50%; background: #9fefff; }
.icp-record { letter-spacing: .04em; }
.icp-record a { color: inherit; text-decoration: none; }
.icp-record a:hover { color: white; text-decoration: underline; text-underline-offset: 3px; }
.icp-record a:focus-visible { outline: 2px solid white; outline-offset: 3px; border-radius: 2px; }

@media (min-width: 640px) {
  body { background: #042fa7; }
  .welcome-shell { min-height: calc(100svh - 40px); margin-top: 20px; border-radius: 30px; box-shadow: 0 30px 90px rgb(0 18 90 / 35%); }
  .hero { padding-inline: 8%; }
  .query-view, .result-view { padding-inline: 8%; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .65s both cubic-bezier(.2,.8,.2,1); }
  .hero > *:nth-child(2) { animation-delay: .05s; }
  .hero > *:nth-child(3) { animation-delay: .1s; }
  .hero > *:nth-child(4) { animation-delay: .15s; }
  .hero > *:nth-child(5) { animation-delay: .2s; }
  .hero > *:nth-child(6) { animation-delay: .25s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

@keyframes panel-in { from { opacity: 0; transform: translateX(18px); } }
@keyframes spin { to { transform: rotate(360deg); } }
