:root {
  --ink: #123653;
  --ink-strong: #082b48;
  --wanli-blue: #0a3287;
  --wanli-blue-bright: #1858b5;
  --teal: #087479;
  --teal-dark: #005b64;
  --aqua: #82e5df;
  --gold: #f1ca55;
  --white: #fff;
  --glass: rgba(255, 255, 255, .78);
  --shadow: 0 18px 55px rgba(8, 43, 72, .18);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  background: #dceeff;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.home-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.campus-scene {
  position: absolute;
  z-index: -3;
  inset: -3%;
  background: url("./assets/wanli-campus-desktop.webp?v=20260728a") center 58% / cover no-repeat;
  transform: scale(1.035);
  animation: ken-burns 18s ease-in-out infinite alternate;
}
.scene-light {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 50% 31%, rgba(255,255,255,.72) 0, rgba(255,255,255,.28) 28%, transparent 51%),
    linear-gradient(180deg, rgba(240,249,255,.28) 0, transparent 52%, rgba(4,31,49,.72) 100%);
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1500px, calc(100% - 80px));
  height: 112px;
  margin: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-strong);
  font-family: "STSong", "SimSun", serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: .06em;
}
.brand-orbit {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(18,54,83,.14);
  border-radius: 50%;
  box-shadow: inset 0 0 0 9px rgba(255,255,255,.17);
}
.brand img { width: 54px; height: 54px; object-fit: contain; opacity: .95; }
.desktop-nav { display: flex; align-items: center; gap: 42px; }
.desktop-nav > a,
.desktop-nav > button {
  border: 0;
  padding: 11px 2px;
  background: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .06em;
}
.desktop-nav > :not(.nav-cta):hover { color: var(--teal); }
.desktop-nav .nav-cta {
  padding: 13px 30px;
  border: 1.5px solid rgba(7,75,91,.78);
  border-radius: 15px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  transition: .22s ease;
}
.desktop-nav .nav-cta:hover { color: white; background: var(--teal-dark); transform: translateY(-2px); }
.mobile-menu { display: none; border: 0; background: transparent; cursor: pointer; }

.hero {
  position: absolute;
  z-index: 3;
  top: 20.5%;
  left: 50%;
  width: min(780px, 80vw);
  text-align: center;
  transform: translateX(-50%);
}
.hero h1 {
  position: relative;
  margin: 0;
  color: var(--ink-strong);
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: clamp(72px, 7vw, 114px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: .1em;
  text-indent: .1em;
  text-shadow: 0 4px 28px rgba(255,255,255,.78);
}
.title-star {
  position: absolute;
  top: -30px;
  right: 5%;
  color: var(--gold);
  font-family: system-ui, sans-serif;
  font-size: 44px;
  text-shadow: 0 4px 18px rgba(255,255,255,.9);
  animation: star-breathe 3.2s ease-in-out infinite;
}
.hero-subtitle {
  margin: 28px 0 20px;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 600;
  letter-spacing: .26em;
  text-shadow: 0 2px 18px rgba(255,255,255,.88);
}
.campus-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 28px;
  color: #086d76;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
}
.campus-label svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 305px;
  min-height: 68px;
  padding: 16px 34px;
  color: white;
  border-radius: 999px;
  background: linear-gradient(110deg, #086d72, #006271);
  box-shadow: 0 15px 36px rgba(0,83,95,.24), inset 0 1px rgba(255,255,255,.23);
  font-size: 25px;
  font-weight: 760;
  letter-spacing: .08em;
  transition: transform .24s ease, box-shadow .24s ease;
}
.primary-cta:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0,83,95,.3); }
.primary-cta svg, .dialog-action svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.trust-note {
  display: table;
  margin: 13px auto 0;
  padding: 5px 11px;
  color: rgba(11, 45, 67, .78);
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  text-shadow: 0 1px 8px rgba(255, 255, 255, .9);
  backdrop-filter: blur(7px);
}

.journey {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 11.2%;
  width: min(1100px, 72vw);
  height: 160px;
  transform: translateX(-50%);
}
.journey-line { position: absolute; inset: 10px 0 auto; width: 100%; height: 120px; overflow: visible; }
.journey-line path { fill: none; stroke-linecap: round; }
.line-shadow { stroke: rgba(5,77,83,.35); stroke-width: 4; }
.line-glow {
  stroke: #76e2dc;
  stroke-width: 3;
  stroke-dasharray: 7 11;
  filter: drop-shadow(0 0 6px rgba(54,230,221,.8));
  animation: path-flow 2.5s linear infinite;
}
.journey-items { position: absolute; inset: 0; }
.journey-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 80px;
  color: var(--ink-strong);
  font-size: 17px;
  font-weight: 760;
  text-shadow: 0 1px 10px white, 0 1px 4px white;
  transition: transform .22s ease;
}
.journey-node:hover { transform: translateY(-6px); }
.node-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--teal-dark);
  border: 8px solid rgba(255,255,255,.68);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 0 1px rgba(14,105,110,.24), 0 8px 25px rgba(6,52,69,.22), 0 0 22px rgba(120,231,224,.48);
  animation: node-float 3.7s ease-in-out infinite;
}
.node-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.node-1 { left: -1%; top: 25px; }
.node-2 { left: 18%; top: 62px; }
.node-3 { left: 37%; top: 76px; }
.node-4 { left: 56%; top: 73px; }
.node-5 { left: 75%; top: 52px; }
.node-6 { right: -1%; top: 18px; }
.node-2 .node-icon, .node-5 .node-icon { animation-delay: -.7s; }
.node-3 .node-icon, .node-6 .node-icon { animation-delay: -1.4s; }

.promoter-notice {
  position: absolute;
  z-index: 8;
  right: 5%;
  bottom: 13%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 9px;
  max-width: 290px;
  padding: 13px 17px;
  border: 1px solid rgba(205, 220, 242, .88);
  border-radius: 18px;
  background: rgba(250, 253, 255, .88);
  box-shadow: 0 14px 42px rgba(6, 38, 95, .16);
  backdrop-filter: blur(18px) saturate(120%);
  font-size: 12px;
}
.promoter-notice[hidden] { display: none; }
.promoter-notice strong { color: var(--wanli-blue); font-size: 15px; }
.promoter-notice small { grid-column: 2; min-width: 0; color: #5d6f88; line-height: 1.5; overflow-wrap: anywhere; }
.promoter-dot { align-self: center; grid-row: 1 / 3; width: 8px; height: 8px; border-radius: 50%; background: var(--wanli-blue-bright); box-shadow: 0 0 0 5px rgba(24, 88, 181, .12); }

.scene-footer {
  position: absolute;
  z-index: 5;
  right: 4%;
  bottom: 3.2%;
  left: 4%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  color: white;
  text-shadow: 0 1px 10px rgba(0,23,37,.7);
}
.scene-signature { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.scene-signature span {
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}
.scene-signature strong { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .12em; }
.footer-rule { height: 1px; background: rgba(255,255,255,.7); }
.footer-rule i { display: block; width: 12%; height: 2px; background: #8fc2ff; }
.scene-footer p { margin: 0; font-size: 14px; letter-spacing: .08em; }
.compliance-note {
  position: absolute;
  z-index: 6;
  right: 4%;
  bottom: .7%;
  display: flex;
  gap: 14px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 11px;
  letter-spacing: .04em;
  text-shadow: 0 1px 8px rgba(0,23,37,.72);
}
.compliance-note a { color: inherit; text-underline-offset: 3px; }
.compliance-note a:hover { color: #fff; }

dialog {
  color: var(--ink);
  border: 0;
}
dialog::backdrop { background: rgba(4,24,38,.4); backdrop-filter: blur(6px); }
.info-dialog {
  width: min(540px, calc(100% - 32px));
  padding: 38px;
  border-radius: 26px;
  background: rgba(251,254,255,.96);
  box-shadow: 0 35px 90px rgba(3,36,55,.28);
}
.info-dialog[open] { animation: dialog-in .25s ease-out; }
.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #edf5f7;
  cursor: pointer;
}
.dialog-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.dialog-icon { display: grid; width: 56px; height: 56px; place-items: center; color: var(--teal); border-radius: 18px; background: #e7f5f4; }
.dialog-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dialog-kicker { margin: 22px 0 6px; color: var(--teal); font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.info-dialog h2 { margin: 0; font-family: "STSong", serif; font-size: 31px; }
.info-dialog > p:not(.dialog-kicker) { color: #567083; line-height: 1.7; }
.dialog-content { display: grid; gap: 9px; margin: 23px 0 27px; }
.dialog-content button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 17px;
  border: 1px solid #d8e7ec;
  border-radius: 14px;
  background: white;
  cursor: pointer;
  font-weight: 700;
}
.dialog-content button:hover { border-color: #79c7c7; color: var(--teal-dark); }
.dialog-action { display: inline-flex; align-items: center; gap: 11px; color: white; padding: 13px 20px; border-radius: 13px; background: var(--teal-dark); font-weight: 700; }
.dialog-action svg { width: 21px; height: 21px; }
.menu-dialog { width: min(360px, calc(100% - 24px)); padding: 72px 22px 24px; border-radius: 24px; background: rgba(252,254,255,.98); }
.menu-dialog > a, .menu-dialog > button:not(.dialog-close) {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid #e4edf1;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
}
.menu-dialog .menu-primary { justify-content: center; margin-top: 18px; color: white; border: 0; border-radius: 14px; background: var(--teal-dark); }
.menu-brand { margin: 0 0 12px; font-family: "STSong", serif; font-size: 25px; font-weight: 800; }

/* Homepage → AI workspace transition */
.page-transition {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  visibility: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .98) 0 12%, rgba(238, 248, 255, .94) 42%, rgba(222, 240, 249, .92) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, visibility 0s linear .28s;
  backdrop-filter: blur(18px);
}
.page-transition::before,
.page-transition::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(8, 116, 121, .13);
  border-radius: 50%;
}
.page-transition::before {
  width: min(620px, 78vw);
  aspect-ratio: 1;
  animation: transition-orbit 12s linear infinite;
}
.page-transition::after {
  width: min(460px, 61vw);
  aspect-ratio: 1;
  border-style: dashed;
  animation: transition-orbit 9s linear infinite reverse;
}
.transition-panel {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(380px, calc(100% - 42px));
  flex-direction: column;
  align-items: center;
  padding: 38px 34px 34px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 28px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 28px 80px rgba(8, 43, 72, .16);
  opacity: 0;
  transform: translateY(18px) scale(.97);
  backdrop-filter: blur(22px);
}
.transition-emblem {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid rgba(10, 50, 135, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 36px rgba(10, 50, 135, .13);
}
.transition-emblem img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}
.transition-emblem i {
  position: absolute;
  right: 2px;
  bottom: 7px;
  width: 17px;
  height: 17px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 3px 9px rgba(0, 91, 100, .25);
}
.transition-panel strong {
  color: var(--ink-strong);
  font-size: 22px;
  letter-spacing: .05em;
}
.transition-panel > span:not(.transition-emblem, .transition-progress) {
  margin-top: 8px;
  color: rgba(18, 54, 83, .68);
  font-size: 14px;
}
.transition-progress {
  width: 190px;
  height: 3px;
  margin-top: 25px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(8, 116, 121, .12);
}
.transition-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #48b8b4);
  transform: scaleX(0);
  transform-origin: left;
}
body.is-entering-ai {
  overflow: hidden;
}
body.is-entering-ai .home-shell {
  opacity: .72;
  filter: blur(7px);
  transform: scale(1.018);
  transition: opacity .42s ease, filter .42s ease, transform .54s cubic-bezier(.2, .72, .2, 1);
}
body.is-entering-ai .page-transition {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}
body.is-entering-ai .transition-panel {
  animation: transition-panel-in .46s cubic-bezier(.2, .78, .2, 1) both;
}
body.is-entering-ai .transition-progress i {
  animation: transition-progress .58s cubic-bezier(.3, .7, .2, 1) both;
}

@keyframes ken-burns { to { transform: scale(1.075) translate3d(-.7%, -.5%, 0); } }
@keyframes path-flow { to { stroke-dashoffset: -36; } }
@keyframes node-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes star-breathe { 50% { transform: scale(1.12) rotate(8deg); opacity: .72; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes transition-panel-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes transition-progress {
  0% { transform: scaleX(0); }
  70% { transform: scaleX(.82); }
  100% { transform: scaleX(1); }
}
@keyframes transition-orbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 950px) {
  .site-header { width: calc(100% - 38px); height: 82px; }
  .brand { gap: 10px; font-size: 20px; }
  .brand-orbit { width: 50px; height: 50px; }
  .brand img { width: 38px; height: 38px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: grid; gap: 5px; width: 46px; height: 46px; align-content: center; justify-content: center; }
  .mobile-menu span { display: block; width: 23px; height: 2px; border-radius: 2px; background: var(--ink); }
  .hero { top: 16%; width: calc(100% - 32px); }
  .hero h1 { font-size: clamp(54px, 14vw, 78px); letter-spacing: .06em; text-indent: .06em; }
  .hero-subtitle { margin-top: 19px; font-size: clamp(18px, 5.4vw, 25px); letter-spacing: .13em; }
  .campus-label { margin-bottom: 21px; font-size: 16px; }
  .primary-cta { min-width: 240px; min-height: 58px; font-size: 21px; }
  .journey { bottom: 10%; width: calc(100% - 26px); height: 230px; }
  .journey-line { display: none; }
  .journey-items { display: grid; grid-template-columns: repeat(3, 1fr); align-content: end; gap: 20px 6px; }
  .journey-node { position: static; min-width: 0; font-size: 14px; text-shadow: 0 1px 9px white, 0 1px 3px white; }
  .journey-node:hover { transform: none; }
  .node-icon { width: 49px; height: 49px; border-width: 6px; }
  .node-icon svg { width: 23px; height: 23px; }
  .promoter-notice {
    top: 82px;
    right: 18px;
    left: 18px;
    bottom: auto;
    width: auto;
    max-width: none;
    padding: 10px 13px;
  }
  .home-shell.has-promoter .hero { top: 28%; }
  .scene-footer { display: none; }
  .compliance-note {
    right: 14px;
    bottom: 7px;
    left: 14px;
    justify-content: center;
    gap: 9px;
    font-size: 9px;
    text-align: center;
  }
  .scene-light { background: radial-gradient(circle at 50% 28%, rgba(255,255,255,.82), transparent 52%), linear-gradient(180deg, rgba(242,249,255,.18), transparent 43%, rgba(4,31,49,.62)); }
}

@media (max-width: 520px) {
  .campus-scene { background-image: url("./assets/wanli-campus-mobile.webp?v=20260728a"); background-position: 52% 55%; }
  .hero { top: 14.5%; }
  .hero h1 { font-size: 54px; }
  .title-star { top: -24px; right: 2%; font-size: 31px; }
  .hero-subtitle { font-size: 19px; }
  .journey { bottom: 5.5%; }
  .promoter-notice { max-width: none; }
}

@media (max-height: 700px) and (max-width: 950px) {
  .hero { top: 12%; }
  .hero h1 { font-size: 46px; }
  .hero-subtitle { margin: 12px 0 10px; }
  .campus-label { margin-bottom: 12px; }
  .primary-cta { min-height: 50px; }
  .journey { bottom: 1%; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  body.is-entering-ai .home-shell { filter: none; transform: none; }
}
