:root {
  color-scheme: dark;
  --gold: #d7b464;
  --gold-soft: rgba(215, 180, 100, 0.34);
  --ink: #090908;
  --panel: rgba(18, 16, 13, 0.86);
  --panel-2: rgba(37, 31, 25, 0.78);
  --line: rgba(220, 188, 108, 0.34);
  --text: #f4e7c2;
  --muted: #bba982;
  --accent: #d94f35;
  --accent-2: #7c1d17;
  --mist: rgba(255, 237, 180, 0.12);
  --shadow: rgba(0, 0, 0, 0.62);
  --font: "Microsoft YaHei", "SimSun", "PingFang SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 236, 174, 0.16), transparent 34%),
    linear-gradient(135deg, #11110e, #050504 54%, #14100d);
  color: var(--text);
  font-family: var(--font);
}

button {
  font: inherit;
}

.app {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 980px;
  min-height: 620px;
  display: grid;
  grid-template-columns: 450px minmax(520px, 1fr) 750px;
  gap: 20px;
  padding: 23px;
  isolation: isolate;
  background:
    radial-gradient(circle at 58% 45%, var(--mist), transparent 32%),
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.09), transparent 17%),
    radial-gradient(circle at 78% 82%, rgba(255, 255, 255, 0.07), transparent 19%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.54));
  background-size: auto, auto, auto, auto, cover;
  background-position: center;
  transition: background 360ms ease;
}

.app::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.68;
  background:
    radial-gradient(circle at 51% 45%, transparent 0 14%, rgba(0, 0, 0, 0.22) 15% 16%, transparent 18%),
    conic-gradient(from 24deg at 50% 46%, transparent, rgba(255, 244, 190, 0.10), transparent 18%, rgba(0, 0, 0, 0.24), transparent 33%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.app::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 24%, transparent 64%, rgba(0, 0, 0, 0.66)),
    radial-gradient(circle at 50% 50%, transparent 0 58%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 237, 170, 0.09), transparent 36%),
    linear-gradient(145deg, var(--panel), rgba(8, 7, 6, 0.9));
  box-shadow: 0 18px 40px var(--shadow), inset 0 0 0 1px rgba(255, 239, 174, 0.06);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 246, 198, 0.08), transparent),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 5px);
  opacity: 0.62;
}

.left-panel {
  display: grid;
  padding: 20px;
  gap: 20px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-soft) rgba(0, 0, 0, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.brand-title {
  display: grid;
  gap: 3px;
}

.brand-title strong {
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--gold);
  text-shadow: 0 2px 0 #4e170e, 0 0 18px rgba(250, 202, 91, 0.32);
}

.brand-title span {
  color: var(--muted);
  font-size: 18px;
}

.role-head {
  display: flex;
  height: 60px;
  gap: 10px;
}

.seal {
  width: 63px;
  height: 63px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2b1209;
  box-shadow: 0 0 22px rgba(232, 171, 74, 0.34);
  font-weight: 800;
  flex-shrink: 0;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gold);
  font-size: 25px;
  letter-spacing: 0;
  width: 100%;
}

.section-label::before {
  content: "";
  height: 1px;
  flex: 1;
  margin-left: 10px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.section-label::after {
  content: "";
  height: 1px;
  flex: 1;
  margin-left: 10px;
  background: linear-gradient(90deg, var(--line), transparent);
}


.school-list {
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.school-button,
.level-button {
  border: 1px solid rgba(215, 180, 100, 0.28);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition: border 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.school-button:hover,
.level-button:hover {
  color: var(--text);
  border-color: var(--gold-soft);
  transform: translateY(-1px);
}

.school-button.active,
.level-button.active {
  color: #fff5cf;
  border-color: rgba(252, 215, 117, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 214, 119, 0.20), rgba(133, 46, 30, 0.24)),
    rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 0 18px rgba(232, 168, 74, 0.18), 0 0 20px rgba(232, 168, 74, 0.14);
}

.school-button {
  min-height: 80px;
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  padding: 12px 50px;
}

.school-mark {
  width: 60px;
  height: 60px;
}

.school-copy {
  min-width: 0;
}

.school-copy strong {
  display: block;
  font-size: 30px;
}

.school-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.main-panel {
  display: grid;
  min-width: 0;
}

.skill-stage {
  position: relative;
  min-height: 0;
  padding: 18px;
  overflow: visible;
}

.skill-stage::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 245, 190, 0.13), transparent 18%),
    radial-gradient(circle, transparent 0 38%, rgba(255, 221, 135, 0.12) 39% 40%, transparent 41% 100%),
    conic-gradient(from 180deg, transparent, rgba(255, 226, 145, 0.18), transparent 22%, rgba(0, 0, 0, 0.24), transparent 48%, rgba(255, 226, 145, 0.13), transparent);
  filter: blur(0.2px);
  opacity: 0.88;
  pointer-events: none;
}

.school-summary {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 24px;
  padding: 21px;
  border: 1px solid rgba(215, 180, 100, 0.24);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
}

.school-text {
  display: flex;
  flex-direction: column;
}

.school-text h1 {
  margin: 0;
  color: #fff4c8;
  font-size: clamp(51px, 4vw, 120px);
  letter-spacing: 0;
  text-shadow: 0 3px 0 rgba(75, 22, 11, 0.9), 0 0 30px rgba(255, 183, 69, 0.36);
}

.school-text p {
  margin: auto 0 0;
  max-width: 1125px;
  color: #e9d8aa;
  font-size: 27px;
  line-height: 1.65;
}

.chips {
  display: grid;
  align-items: start;
  justify-content: end;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid rgba(215, 180, 100, 0.28);
  background: rgba(0, 0, 0, 0.36);
  color: #ead8a8;
  white-space: nowrap;
  font-size: 25px;
}

.skill-map {
  position: relative;
  z-index: 2;
  height: min(58vh, 430px);
  min-height: 330px;
  margin-top: 200px;
  margin-bottom: 100px;
}

.map-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w);
  height: 1px;
  transform-origin: 0 0;
  transform: rotate(var(--r));
  background: linear-gradient(90deg, transparent, rgba(243, 206, 119, 0.64), transparent);
  opacity: 0.56;
}

.skill-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 162px;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.node-icon {
  position: relative;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(243, 206, 119, 0.46);
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.28), transparent 21%),
    radial-gradient(circle, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.8) 58%),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.34), 0 0 24px rgba(232, 168, 74, 0.14), inset 0 0 22px rgba(0, 0, 0, 0.68);
  transition: transform 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}

.skill-node:hover .node-icon,
.skill-node.active .node-icon {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.34), 0 0 34px rgba(246, 199, 96, 0.34), inset 0 0 22px rgba(0, 0, 0, 0.68);
}

.skill-node.active .node-icon {
  border-color: rgba(255, 228, 150, 0.88);
}

.node-name {
  max-width: 162px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(215, 180, 100, 0.32);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.64);
  color: #fff0bf;
  font-size: 25px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.tips-panel {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
}

.tips-head {
  position: relative;
  z-index: 1;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.tips-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 30px;
}

.tips-title {
  margin: 8px 0 0;
  color: #fff4c8;
  font-size: 60px;
  line-height: 1.08;
  text-shadow: 0 2px 0 rgba(75, 22, 11, 0.9);
}

.level-tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 18px 21px 0;
}

.level-button {
  min-height: 90px;
  font-size: 30px;
}

.tips-body {
  position: relative;
  z-index: 1;
  overflow: auto;
  padding: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-soft) rgba(0, 0, 0, 0.28);
}

.tip-card {
  padding: 20px;
  border: 1px solid rgba(215, 180, 100, 0.22);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
}

.tip-card + .tip-card {
  margin-top: 10px;
}

.tip-card h3 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 38px;
}

.tip-card p {
  margin: 0;
  color: #eadbb1;
  font-size: 30px;
  line-height: 1.7;
}

@media (max-width: 1180px) {
  body {
    overflow: auto;
  }

  .app {
    min-width: 0;
    height: auto;
    min-height: 100vh;
    grid-template-columns: 190px minmax(460px, 1fr);
    grid-template-areas:
      "left main"
      "tips tips";
  }

  .left-panel {
    grid-area: left;
  }

  .main-panel {
    grid-area: main;
  }

  .tips-panel {
    grid-area: tips;
    min-height: 420px;
  }
}