:root {
  --white: #f5fbff;
  --muted: rgba(236, 250, 255, 0.78);
  --deep: #062b39;
  --cyan: #75eaff;
  --blue: #155bc7;
  --teal: #0aa985;
  --line: rgba(185, 242, 255, 0.42);
  --panel: rgba(5, 91, 116, 0.46);
  --panel-strong: rgba(4, 101, 123, 0.62);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background: #042033;
  overflow-x: hidden;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  padding: 26px clamp(28px, 4.2vw, 86px) 30px;
  isolation: isolate;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(3, 36, 65, 0.08), rgba(1, 29, 33, 0.44)),
    url("./背景图.png") center / cover no-repeat;
}

.screen-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(231, 255, 255, 0.45), transparent 25%),
    radial-gradient(circle at 50% 48%, rgba(239, 255, 255, 0.42), transparent 18%),
    linear-gradient(90deg, rgba(0, 30, 57, 0.7), transparent 23%, transparent 75%, rgba(0, 43, 42, 0.62));
}

.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.school-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  text-decoration: none;
  text-shadow: 0 3px 18px rgba(0, 18, 35, 0.45);
}

.school-seal-img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  filter: drop-shadow(0 8px 18px rgba(2, 42, 72, 0.38));
}

.school-name strong,
.school-name small {
  display: block;
  white-space: nowrap;
}

.school-name strong {
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
}

.school-name small {
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 4px;
}

.nav-tab,
.login-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  color: rgba(248, 253, 255, 0.95);
  background: transparent;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-tab {
  position: relative;
  padding: 8px 7px 12px;
}

.nav-tab::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.nav-tab.active::after,
.nav-tab:hover::after {
  background: rgba(255, 255, 255, 0.9);
}

.nav-tab svg,
.login-button svg {
  font-size: 21px;
}

.login-button {
  padding: 8px 18px;
  border: 1px solid rgba(228, 250, 255, 0.42);
  border-radius: 999px;
  background: rgba(4, 62, 94, 0.28);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.06);
}

.hero {
  display: grid;
  grid-template-columns: 220px minmax(620px, 1fr) 220px;
  align-items: center;
  gap: clamp(26px, 4vw, 64px);
  min-height: calc(100vh - 345px);
  padding-top: 10px;
}

.center-stage {
  align-self: center;
  min-width: 0;
  max-width: 100%;
  text-align: center;
}

h1 {
  margin: 0;
  color: transparent;
  background: linear-gradient(90deg, #1345a8 0%, #103a99 38%, #057e70 70%, #0c8d76 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(62px, 6vw, 92px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9);
  text-shadow: 0 8px 16px rgba(0, 42, 75, 0.22);
  overflow-wrap: anywhere;
}

.english-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 18px 0 10px;
  color: #0b579e;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 7px;
}

.english-title::before,
.english-title::after {
  width: 82px;
  height: 1px;
  background: #0b579e;
  content: "";
}

.slogan {
  margin: 0 0 34px;
  color: #0b579e;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 8px;
}

.ask-panel {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 26px;
  background: rgba(214, 246, 255, 0.46);
  box-shadow:
    inset 0 0 32px rgba(255, 255, 255, 0.28),
    0 22px 52px rgba(1, 61, 85, 0.28);
  backdrop-filter: blur(18px);
}

.robot {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 116px;
  margin: 0 auto;
}

.robot::before {
  position: absolute;
  bottom: 8px;
  width: 76px;
  height: 78px;
  border-radius: 28px 28px 24px 24px;
  background: linear-gradient(180deg, #f4fbff, #b9e8ff);
  box-shadow: inset 0 -6px 14px rgba(20, 82, 155, 0.18), 0 12px 28px rgba(14, 93, 147, 0.28);
  content: "";
}

.robot::after {
  position: absolute;
  bottom: 2px;
  width: 86px;
  height: 20px;
  border-radius: 50%;
  background: rgba(12, 65, 103, 0.18);
  filter: blur(2px);
  content: "";
}

.sprout {
  position: absolute;
  top: 4px;
  width: 42px;
  height: 32px;
  z-index: 2;
}

.sprout::before,
.sprout::after {
  position: absolute;
  top: 8px;
  width: 22px;
  height: 14px;
  border-radius: 20px 20px 3px 20px;
  background: linear-gradient(135deg, #6bdc5e, #1a9b5f);
  content: "";
}

.sprout::before {
  left: 2px;
  transform: rotate(24deg);
}

.sprout::after {
  right: 2px;
  transform: rotate(-24deg) scaleX(-1);
}

.robot-face {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 72px;
  height: 44px;
  border: 5px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  background: #053160;
  box-shadow: 0 4px 16px rgba(20, 89, 162, 0.32);
}

.robot-face span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52efff;
  box-shadow: 0 0 9px rgba(82, 239, 255, 0.9);
}

.robot small {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 18px;
  border-radius: 9px;
  color: #fff;
  background: #1258c9;
  font-size: 10px;
  font-weight: 800;
}

.ask-box {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 152px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

textarea {
  width: 100%;
  min-height: 82px;
  resize: none;
  border: 0;
  outline: 0;
  padding: 28px 30px 12px;
  color: #1b4660;
  background: transparent;
  font-size: 18px;
  line-height: 1.6;
}

textarea::placeholder {
  color: rgba(28, 59, 72, 0.56);
}

.ask-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px 18px;
}

.tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-pills button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  color: #1b5c9e;
  background: #eef5fa;
  font-size: 13px;
  font-weight: 700;
}

.tool-pills button.active {
  color: #fff;
  background: linear-gradient(135deg, #2b79df, #0b8c76);
}

.send-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 72px;
  height: 54px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #2b79df, #0649ad);
  box-shadow: 0 12px 24px rgba(13, 78, 166, 0.35);
}

.send-button svg {
  width: 29px;
  height: 29px;
  stroke-width: 1.8;
}

.send-button:disabled {
  cursor: wait;
  opacity: 0.74;
}

.send-button.loading svg {
  animation: pulseSend 0.9s ease-in-out infinite alternate;
}

.answer-panel {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 16px;
  border: 1px solid rgba(230, 254, 255, 0.58);
  border-radius: 16px;
  padding: 16px 18px;
  color: #16445c;
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
  box-shadow: 0 16px 34px rgba(0, 62, 88, 0.18);
}

.answer-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  color: #064b91;
  font-weight: 800;
}

.answer-copy {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  background: #0e67bd;
  font-size: 12px;
}

.answer-content {
  color: #173f50;
  font-size: 15px;
  line-height: 1.75;
}

.answer-content p {
  margin: 0 0 10px;
}

.answer-content p:last-child {
  margin-bottom: 0;
}

.prompt-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 18px auto 0;
  width: min(1120px, 100%);
}

.prompt-row button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(232, 255, 255, 0.68);
  border-radius: 999px;
  color: rgba(247, 253, 255, 0.94);
  background: rgba(27, 117, 145, 0.42);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.prompt-row svg {
  flex: 0 0 auto;
  font-size: 16px;
}

.side-menu {
  display: grid;
  align-content: center;
  border: 1px solid rgba(204, 248, 255, 0.42);
  border-radius: 18px;
  background: rgba(24, 104, 127, 0.42);
  box-shadow:
    inset 0 0 26px rgba(255, 255, 255, 0.08),
    0 18px 46px rgba(0, 42, 60, 0.25);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.side-action {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  border: 0;
  border-bottom: 1px solid rgba(217, 251, 255, 0.2);
  padding: 0 22px;
  color: rgba(248, 253, 255, 0.96);
  background: transparent;
  text-align: left;
  font-size: 18px;
  font-weight: 800;
}

.side-action:last-child {
  border-bottom: 0;
}

.side-action:hover {
  background: rgba(255, 255, 255, 0.11);
}

.side-action.active {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 4px 0 0 rgba(117, 234, 255, 0.8);
}

.side-action svg {
  width: 32px;
  height: 32px;
  color: #d7f8ff;
  stroke-width: 2.2;
}

.feature-dock {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 14px auto 0;
  width: min(1510px, 100%);
}

.feature-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  grid-template-rows: 1fr auto;
  column-gap: 16px;
  min-height: 138px;
  border: 1px solid rgba(117, 234, 255, 0.58);
  border-radius: 10px;
  padding: 22px 20px 14px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(13, 113, 139, 0.62), rgba(4, 78, 92, 0.64));
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.07), 0 18px 44px rgba(0, 45, 57, 0.22);
  backdrop-filter: blur(12px);
}

.feature-card:hover,
.feature-card.active {
  border-color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(180deg, rgba(22, 125, 153, 0.72), rgba(6, 87, 106, 0.72));
}

.feature-card > svg {
  grid-row: 1 / 3;
  width: 56px;
  height: 56px;
  color: #caefff;
  stroke-width: 1.7;
}

.feature-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.15;
}

.feature-card p {
  margin: 0;
  color: rgba(232, 248, 252, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.feature-card button {
  grid-column: 2;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 42px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 24px;
  line-height: 1;
}

@keyframes pulseSend {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-1px) scale(1.08);
  }
}

@media (max-width: 1280px) {
  .app-shell {
    padding-inline: 24px;
  }

  .hero {
    grid-template-columns: 190px minmax(520px, 1fr) 190px;
    gap: 24px;
  }

  .side-action {
    padding-inline: 16px;
    font-size: 16px;
  }

  .feature-dock {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .topbar {
    align-items: center;
  }

  .school-seal-img {
    width: 52px;
    height: 52px;
  }

  .school-name strong {
    font-size: 25px;
  }

  .school-name small {
    font-size: 15px;
  }

  .main-nav {
    max-width: 58vw;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    width: 100%;
  }

  .left-menu,
  .right-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 2;
  }

  .center-stage {
    order: 1;
  }

  .ask-panel {
    grid-template-columns: 1fr;
  }

  .robot {
    display: none;
  }

  .prompt-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 18px 14px 24px;
    overflow: hidden;
  }

  .topbar {
    display: grid;
    gap: 14px;
  }

  .main-nav {
    max-width: 100%;
    width: 100%;
  }

  .nav-tab,
  .login-button {
    font-size: 14px;
  }

  h1 {
    max-width: 100%;
    font-size: 32px;
    word-break: break-all;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
  }

  .center-stage {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    overflow: hidden;
  }

  .english-title {
    gap: 10px;
    flex-wrap: wrap;
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 2px;
  }

  .english-title::before,
  .english-title::after {
    display: none;
  }

  .slogan {
    width: 100%;
    max-width: 100%;
    margin-bottom: 22px;
    font-size: 12px;
    letter-spacing: 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .ask-panel {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    padding: 14px;
    border-radius: 18px;
  }

  .ask-box {
    min-height: 168px;
    border-radius: 16px;
  }

  .answer-panel {
    padding: 14px;
  }

  textarea {
    padding: 18px 18px 8px;
    font-size: 15px;
  }

  .ask-footer {
    display: grid;
    padding: 0 14px 14px;
  }

  .tool-pills {
    gap: 8px;
  }

  .tool-pills button {
    padding: 8px 10px;
    font-size: 12px;
  }

  .send-button {
    justify-self: end;
    width: 56px;
    height: 44px;
  }

  .left-menu,
  .right-menu,
  .prompt-row,
  .feature-dock {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .side-action {
    min-height: 58px;
    font-size: 15px;
  }

  .feature-card {
    min-height: 116px;
  }
}
