:root {
  --ink: #242e2b;
  --muted: #7c827b;
  --green: #275548;
  --paper: #f5f5ef;
  --line: #e2e5dc;
  --gold: #b4996c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px Inter,
    "Microsoft YaHei",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button {
  transition: 0.18s;
}
button:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}
a {
  color: var(--green);
}
.sidebar {
  width: 238px;
  background: #fcfcf8;
  border-right: 1px solid var(--line);
  height: 100vh;
  position: fixed;
  padding: 36px 23px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font:
    600 26px "Noto Serif SC",
    serif;
  letter-spacing: 4px;
}
.brandmark {
  border: 1px solid var(--green);
  color: var(--green);
  width: 46px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 29px;
  border-radius: 3px;
}
.brand small {
  display: block;
  font:
    9px Inter,
    sans-serif;
  letter-spacing: 2.5px;
  margin-top: 5px;
}
.school {
  font-size: 10px;
  letter-spacing: 0.7px;
  color: var(--muted);
  margin: 24px 0 50px;
}
.nav-label {
  font-size: 10px;
  color: #979c91;
  margin: 0 12px 16px;
  letter-spacing: 2px;
}
nav {
  display: grid;
  gap: 9px;
}
.nav-step {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 14px;
  padding: 15px 12px;
  border: none;
  background: none;
  color: #737b72;
  border-radius: 5px;
}
.nav-step .number {
  font-size: 12px;
  border: 1px solid #d8ded3;
  border-radius: 50%;
  height: 25px;
  width: 25px;
  display: grid;
  place-items: center;
}
.nav-step.active {
  background: #e8eee5;
  color: var(--green);
  font-weight: 600;
}
.nav-step.active .number {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.nav-step small {
  display: block;
  font:
    9px Inter,
    sans-serif;
  letter-spacing: 1px;
  margin-top: 5px;
  color: #92998d;
}
.side-bottom {
  margin-top: auto;
  font-size: 11px;
  color: #6a7769;
}
.side-bottom p {
  font-size: 10px;
  color: #959c90;
}
.online-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #6c8c63;
  border-radius: 50%;
  margin-right: 6px;
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  padding: 10px 0;
  font-size: 12px;
}
.workspace {
  margin-left: 238px;
}
header {
  height: 79px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: #fafbf7;
  font-size: 12px;
  color: #727a70;
}
header span {
  margin: 0 16px;
  color: #a4aa9e;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-actions > span {
  font-size: 10px;
}
.button {
  border: 1px solid var(--green);
  border-radius: 4px;
  background: var(--green);
  color: white;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-size: 12px;
}
.button.secondary {
  background: transparent;
  color: var(--green);
  border-color: #cfd8cb;
}
.button.light {
  background: #f7f8f1;
  border-color: #dfe5d7;
  color: #4a654c;
}
.button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: #8b9b81;
}
h1 {
  font:
    600 29px "Noto Serif SC",
    "Microsoft YaHei",
    serif;
  margin: 12px 0;
}
p {
  line-height: 1.8;
}
.page-top p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.project-tag {
  font-size: 11px;
  color: #899281;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 15px;
}
.project-tag b {
  color: var(--green);
  margin-left: 12px;
}
main {
  max-width: 1530px;
  margin: auto;
  padding: 36px 42px 26px;
}
.hero {
  height: 237px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  background: #e7ecdf;
  position: relative;
  margin-bottom: 25px;
  border: 1px solid #dde3d6;
}
.hero-copy {
  padding: 31px 34px;
  z-index: 1;
  width: 66%;
}
.hero .eyebrow {
  color: #76846e;
}
.hero h2 {
  font:
    500 29px "Noto Serif SC",
    serif;
  margin: 16px 0 12px;
  letter-spacing: 2px;
}
.hero p {
  color: #75816e;
  font-size: 12px;
  max-width: 390px;
}
.hero-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: #829074;
  margin-top: 22px;
}
.hero img {
  width: 38%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  position: absolute;
  right: 0;
  padding: 10px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 22px;
}
.panel {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 25px;
  margin-bottom: 20px;
}
.panel h2 {
  font-size: 15px;
  margin: 0 0 22px;
  font-weight: 600;
}
.panel h2 small {
  font-weight: 400;
  color: #939b8d;
  font-size: 11px;
  margin-left: 10px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #52604f;
  font-size: 12px;
}
.field.wide {
  grid-column: 1/-1;
}
input,
select,
textarea {
  border: 1px solid #dee3d7;
  background: #fafbf6;
  color: #384733;
  border-radius: 4px;
  padding: 11px 12px;
  min-width: 0;
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 76px;
  line-height: 1.7;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #7c9a7f;
  background: white;
}
.hint {
  font-size: 10px;
  color: #919a89;
  line-height: 1.7;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.metric {
  padding: 12px 0;
}
.metric strong {
  display: block;
  color: var(--green);
  font:
    500 26px Inter,
    sans-serif;
}
.metric small {
  font-size: 10px;
  color: #899480;
  display: block;
  margin-top: 8px;
}
.metric strong span {
  font-size: 11px;
  font-weight: 400;
  margin-left: 4px;
}
.rule {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.8;
  color: #71806a;
}
.rule b {
  display: block;
  font-weight: 500;
  color: #496143;
  margin-bottom: 4px;
}
.notice {
  font-size: 11px;
  line-height: 1.9;
  color: #84907b;
  padding: 15px;
  background: #edf1e6;
  border-radius: 4px;
}
.bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 8px;
}
.bottom-actions .hint {
  max-width: 60%;
}
.topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.topic {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 16px;
  text-align: left;
  background: #fafbf5;
  color: #53634c;
  font-size: 12px;
  line-height: 1.8;
}
.topic.active {
  border-color: #78906c;
  background: #eef2e8;
}
.topic small {
  display: block;
  font-size: 10px;
  color: #8d9685;
  margin-top: 7px;
}
.catalog-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.catalog-toolbar input {
  max-width: 340px;
}
.catalog-toolbar select {
  width: 145px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.artifact {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.artifact.selected {
  border-color: #567b55;
  box-shadow: 0 0 0 1px #567b55;
}
.artifact-picture {
  background: #eeeee7;
  height: 206px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.artifact-picture img {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  padding: 12px;
}
.artifact-info {
  padding: 16px;
}
.artifact h3 {
  font:
    500 16px "Noto Serif SC",
    serif;
  margin: 0 0 8px;
}
.artifact p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0;
}
.artifact-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}
.badge {
  padding: 5px 7px;
  border-radius: 3px;
  background: #edf1e6;
  color: #758467;
  font-size: 10px;
}
.artifact .select-button {
  border: 1px solid #bfcdb8;
  background: transparent;
  border-radius: 3px;
  padding: 6px 10px;
  color: var(--green);
  font-size: 11px;
}
.selected .select-button {
  background: var(--green);
  color: white;
}
.graph {
  height: 235px;
  position: relative;
  overflow: hidden;
}
.graph svg {
  width: 100%;
  height: 100%;
}
.graph text {
  font-size: 11px;
  fill: #41643c;
}
.graph line {
  stroke: #c0ceb6;
  stroke-width: 1.5;
}
.graph circle {
  fill: #eef2e8;
  stroke: #a8bc9c;
}
.selected-list {
  font-size: 12px;
  line-height: 2.3;
  color: #63765a;
}
.empty {
  padding: 40px 15px;
  text-align: center;
  color: #8a9581;
  line-height: 2;
}
.unit {
  background: #fffefa;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 6px;
  margin-bottom: 18px;
}
.unit-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.unit-top input {
  font-weight: 600;
  font-size: 15px;
  background: none;
  border-color: transparent;
}
.unit-num {
  color: #9ba58c;
  font-family: serif;
  font-size: 23px;
}
.small-button {
  border: 1px solid var(--line);
  background: #f7f9f2;
  border-radius: 3px;
  padding: 6px 10px;
  color: #59714d;
  font-size: 11px;
  white-space: nowrap;
}
.exhibit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #edf0e6;
}
.exhibit-row img {
  height: 49px;
  width: 48px;
  object-fit: contain;
  background: #f0f0e8;
}
.exhibit-row .row-copy {
  flex: 1;
}
.exhibit-row b {
  font-size: 12px;
  font-weight: 500;
}
.exhibit-row p {
  font-size: 10px;
  color: #89947e;
  margin: 5px 0;
}
.exhibit-row select {
  width: 110px;
  padding: 7px;
  font-size: 11px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.preview-tools {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: #ebefe3;
  border-radius: 5px;
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  color: #708062;
  border-radius: 3px;
}
.tabs button.active {
  background: white;
  color: var(--green);
  box-shadow: 0 2px 5px #20351c0d;
}
.hall {
  background: #edf0e7;
  position: relative;
  min-height: 430px;
  border: 1px solid #dde3d4;
  overflow: hidden;
  border-radius: 4px;
  display: grid;
  place-items: center;
  touch-action: none;
}
.floor {
  width: 86%;
  height: 340px;
  position: relative;
  background-color: #f8f6eb;
  background-image:
    linear-gradient(#b0b8a61c 1px, transparent 1px),
    linear-gradient(90deg, #b0b8a61c 1px, transparent 1px);
  background-size: 25px 25px;
  border: 9px solid #d2d8c6;
  transition: transform 0.2s;
  transform-style: preserve-3d;
  box-shadow: 0 12px 25px #32432110;
}
.floor:after {
  content: none;
}
.hall.three {
  perspective: 1000px;
}
.hall.three .floor {
  transform: rotateX(48deg) rotateZ(-28deg) scale(0.92);
}
.stand {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 56px;
  border: 1px solid #bec8b1;
  background: #fffef8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 5px 0 #d2d8c6;
  cursor: grab;
  border-radius: 2px;
  touch-action: none;
}
.stand.chosen {
  outline: 2px solid var(--green);
}
.stand img {
  width: 31px;
  height: 35px;
  object-fit: contain;
  pointer-events: none;
}
.stand span {
  font-size: 8px;
  pointer-events: none;
}
.hall.three .stand {
  transform: translate(-50%, -50%) translateZ(25px);
  box-shadow:
    0 15px 0 #c6ceba,
    0 23px 0 #bdc7af;
}
.route {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.route polyline {
  fill: none;
  stroke: #9aab81;
  stroke-width: 2;
  stroke-dasharray: 7 6;
}
.range-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-size: 11px;
}
.range-row input {
  padding: 0;
  accent-color: var(--green);
}
.score-overall {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 0 26px;
}
.score-ring {
  width: 104px;
  height: 104px;
  border: 7px solid #dce7d3;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 30px;
}
.score-overall h3 {
  font:
    500 22px "Noto Serif SC",
    serif;
  margin: 0 0 8px;
}
.score-overall p {
  font-size: 11px;
  color: #829075;
}
.score-row {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.score-heading {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.bar {
  height: 5px;
  background: #eef1e8;
  border-radius: 4px;
  margin: 12px 0;
  overflow: hidden;
}
.bar span {
  height: 100%;
  display: block;
  background: #7e9970;
}
.score-row p {
  font-size: 12px;
  color: #819173;
  margin: 0;
}
.warn {
  color: #aa7844 !important;
}
.ok {
  color: #527d4d;
}
footer {
  padding: 23px 42px;
  font-size: 10px;
  color: #9ca391;
  display: flex;
  justify-content: space-between;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #274b3f;
  color: white;
  padding: 14px 25px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 100;
}
#toast.show {
  opacity: 1;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 630px;
  padding: 30px;
  background: #fffefa;
}
dialog::backdrop {
  background: #18291a70;
}
#project-change {
  width: min(460px, calc(100% - 32px));
  padding: 0;
}
#artifact-upload {
  width: min(500px, calc(100% - 32px));
  padding: 0;
}
#artifact-upload .panel {
  margin: 0;
  border: 0;
  padding: 26px;
}
#artifact-upload .error-text {
  color: #b3402f;
  font-size: 12px;
  margin-top: 10px;
}
#artifact-upload .ai-actions {
  justify-content: flex-end;
  margin-top: 16px;
}
#project-change .panel {
  margin: 0;
  border: 0;
}
#project-change .ai-actions {
  justify-content: flex-end;
}
dialog img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #f0f1e8;
}
dialog p {
  font-size: 13px;
}
dialog h2 {
  font-family: "Noto Serif SC", serif;
}
.close-dialog {
  float: right;
  border: 0;
  background: none;
  font-size: 22px;
}
body.exporting .sidebar {
  display: none;
}
@media (min-width: 1500px) {
  .hero {
    height: 270px;
  }
  .artifact-picture {
    height: 240px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 200px;
    padding: 28px 15px;
  }
  .workspace {
    margin-left: 200px;
  }
  main {
    padding: 28px 25px;
  }
  .columns {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-copy {
    width: 72%;
  }
  .hero h2 {
    font-size: 25px;
  }
  .project-tag {
    display: none;
  }
}
@media (max-width: 850px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 16px;
  }
  .brand {
    font-size: 20px;
  }
  .brandmark {
    height: 38px;
    width: 38px;
  }
  .school,
  .nav-label,
  .side-bottom,
  nav small {
    display: none;
  }
  nav {
    display: flex;
    margin-top: 15px;
    overflow: auto;
    gap: 4px;
  }
  .nav-step {
    font-size: 11px;
    padding: 8px;
    white-space: nowrap;
    gap: 7px;
  }
  .workspace {
    margin: 0;
  }
  header {
    height: 62px;
    padding: 0 18px;
  }
  .header-actions > span {
    display: none;
  }
  main {
    padding: 25px 18px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .hero-copy {
    padding: 25px;
    width: 74%;
  }
  .hero h2 {
    font-size: 23px;
  }
  .hero img {
    opacity: 0.7;
  }
  footer {
    padding: 20px;
  }
  .topics {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .form-grid,
  .split,
  .right-column {
    grid-template-columns: 1fr;
  }
  .hero h2 {
    font-size: 21px;
  }
  .hero-copy {
    width: 90%;
    padding: 22px;
  }
  .hero img {
    opacity: 0.22;
    width: 50%;
  }
  .cards {
    gap: 10px;
  }
  .artifact-picture {
    height: 160px;
  }
  .artifact-info {
    padding: 12px;
  }
  .artifact h3 {
    font-size: 14px;
  }
  .topics {
    grid-template-columns: 1fr;
  }
  .exhibit-row {
    flex-wrap: wrap;
  }
  .exhibit-row select {
    width: 95px;
  }
  .catalog-toolbar {
    flex-wrap: wrap;
  }
  .catalog-toolbar input {
    max-width: none;
  }
  .hall {
    min-height: 360px;
  }
  .floor {
    height: 280px;
  }
  h1 {
    font-size: 25px;
  }
  footer span {
    display: none;
  }
}
.ai-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ai-panel {
  border-top: 3px solid #53784a;
}
.ai-panel textarea {
  min-height: 230px;
}
.ai-panel details {
  margin-top: 18px;
  font-size: 12px;
}
.ai-panel .topics {
  margin-top: 20px;
}
@media (max-width: 1050px) {
  .columns {
    grid-template-columns: 1fr;
  }
  .right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
