:root {
  --ink: #10131a;
  --secondary: #5d6675;
  --tertiary: #8a93a2;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --stroke: rgba(255, 255, 255, 0.78);
  --hairline: rgba(22, 28, 45, 0.1);
  --navy: #28246f;
  --green: #78c91c;
  --blue: #2774e6;
  --shadow: 0 28px 70px rgba(22, 28, 45, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(145deg, #f7f8fb 0%, #eef2f6 46%, #f8fbf2 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    url("/portal/logo-joinus.jpg") right -90px top -90px / min(800px, 74vw) no-repeat,
    url("/portal/logo-joinus.jpg") left -170px bottom -150px / min(520px, 52vw) no-repeat;
  opacity: 0.18;
  filter: blur(0.5px) saturate(1.12);
  transform: rotate(-2deg);
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0.08) 38%, rgba(255,255,255,0.44)),
    linear-gradient(rgba(21, 24, 63, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 24, 63, 0.03) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  pointer-events: none;
}

.shell {
  width: min(1120px, 100%);
  min-height: min(690px, calc(100vh - 56px));
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 36px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid rgba(255,255,255,0.64);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.48), rgba(255,255,255,0.22) 54%, rgba(255,255,255,0.36)),
    rgba(255,255,255,0.18);
  box-shadow:
    0 36px 90px rgba(22, 28, 45, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.82),
    inset 0 -1px 0 rgba(255,255,255,0.24);
  backdrop-filter: blur(26px) saturate(1.55);
  -webkit-backdrop-filter: blur(26px) saturate(1.55);
  overflow: hidden;
}

.shell::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 33px;
  border: 1px solid rgba(255,255,255,0.46);
  background:
    linear-gradient(115deg, rgba(255,255,255,0.56), transparent 32%),
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.5), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(120,201,28,0.1), transparent 28%);
  pointer-events: none;
}

.shell::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.78), transparent);
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 24px;
  background: rgba(255,255,255,0.56);
  box-shadow: 0 10px 30px rgba(22, 28, 45, 0.08), inset 0 1px 0 rgba(255,255,255,0.92);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.identity img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(22, 28, 45, 0.12);
}

.identity span {
  font-size: 18px;
  font-weight: 760;
  color: var(--navy);
  letter-spacing: 0;
}

.identity em {
  color: var(--secondary);
  font-style: normal;
  font-size: 15px;
}

.site-note {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--secondary);
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(255,255,255,0.62);
  font-size: 13px;
}

.content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  align-items: end;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(4px, 2vw, 18px);
}

.intro {
  max-width: 620px;
  padding-bottom: 8px;
}

.label {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 999px;
  background: rgba(255,255,255,0.54);
  color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 6em;
  color: var(--ink);
  font-size: clamp(46px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 820;
}

.notice {
  margin-top: 36px;
  max-width: 560px;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 20px;
  background: rgba(255,255,255,0.52);
  box-shadow: 0 12px 32px rgba(22, 28, 45, 0.07), inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.notice strong {
  color: var(--ink);
  font-weight: 760;
}

.notice span {
  color: var(--secondary);
  line-height: 1.68;
}

.access {
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 28px;
  background: rgba(255,255,255,0.58);
  box-shadow: 0 22px 48px rgba(22, 28, 45, 0.12), inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  overflow: hidden;
}

.access-head {
  padding: 22px 22px 16px;
  border-bottom: 1px solid rgba(22, 28, 45, 0.08);
}

.access-head span {
  color: var(--tertiary);
  font-size: 13px;
}

.access-head h2 {
  margin-top: 5px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 780;
  letter-spacing: 0;
}

.access-row {
  min-height: 126px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(22, 28, 45, 0.08);
  transition: background 180ms ease, transform 180ms ease;
}

.access-row:last-child {
  border-bottom: 0;
}

.access-row:hover {
  background: rgba(255,255,255,0.58);
}

.role {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(145deg, #3b3890, var(--navy));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), 0 10px 20px rgba(40, 36, 111, 0.22);
  font-weight: 760;
  font-size: 15px;
}

.teacher .role {
  color: #173000;
  background: linear-gradient(145deg, #a9ed55, var(--green));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 10px 20px rgba(120, 201, 28, 0.18);
}

.row-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.row-copy strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 780;
}

.row-copy em {
  color: var(--secondary);
  font-style: normal;
  line-height: 1.55;
}

@media (max-width: 880px) {
  .page {
    padding: 14px;
    place-items: start center;
  }

  .page::before {
    background:
      url("/portal/logo-joinus.jpg") right -120px top -70px / 420px no-repeat;
    opacity: 0.1;
  }

  .shell {
    min-height: calc(100vh - 28px);
    gap: 28px;
    padding: 14px;
    border-radius: 30px;
  }

  .topbar {
    border-radius: 22px;
  }

  .identity {
    gap: 10px;
  }

  .identity img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .identity span {
    font-size: 17px;
  }

  .identity em {
    display: none;
  }

  .site-note {
    display: none;
  }

  .content {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
    padding: 2px;
  }

  h1 {
    max-width: none;
    font-size: 42px;
  }

  .notice {
    margin-top: 22px;
  }

  .access {
    border-radius: 24px;
  }

  .access-row {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 112px;
    padding: 18px;
  }

  .role {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    font-size: 14px;
  }

  .row-copy strong {
    font-size: 20px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .shell,
  .topbar,
  .notice,
  .access {
    background: rgba(255,255,255,0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
