:root {
  --paper: #f5f2eb;
  --surface: #fbfaf7;
  --ink: #20231f;
  --muted: #77766f;
  --faint: #a3a099;
  --line: #dfddd5;
  --red: #bf4d35;
  --red-dark: #963624;
  --blue: #526788;
  --jade: #638477;
  --gold: #b28a45;
  --shadow: 0 18px 50px rgba(52, 45, 32, 0.08);
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  min-width: 320px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  border-right: 1px solid var(--line);
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  background: rgba(247, 245, 239, 0.88);
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  padding: 2px 9px 28px;
}
.brand strong {
  display: block;
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 17px;
  letter-spacing: 0.08em;
}
.brand small {
  display: block;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.08em;
  margin-top: 3px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transform: rotate(-18deg);
}
.brand-mark i {
  height: 11px;
  width: 2px;
  background: var(--red);
  display: block;
}
.brand-mark i:nth-child(2) {
  height: 17px;
  background: var(--ink);
}
.brand-mark i:nth-child(3) {
  height: 7px;
  background: var(--gold);
}
.new-work {
  border: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 7px;
  text-align: left;
  padding: 11px 13px;
  font-size: 12px;
  margin: 0 7px 26px;
  box-shadow: 0 7px 18px rgba(32, 35, 31, 0.14);
}
.new-work span {
  font-size: 18px;
  vertical-align: -1px;
  margin-right: 7px;
  font-weight: 300;
}
.nav-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-label {
  color: #a19f97;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 9px;
  margin: 0 10px 7px;
  padding-top: 4px;
}
.nav-label:not(:first-child) {
  margin-top: 18px;
}
.nav-item {
  border: 0;
  border-radius: 7px;
  text-decoration: none;
  color: #6f6d67;
  font-size: 12px;
  text-align: left;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s;
  background: transparent;
}
.nav-item:hover {
  background: #eae7df;
  color: var(--ink);
}
.nav-item.active {
  background: #ebe8e0;
  color: var(--ink);
  font-weight: 600;
}
.nav-item > span:first-child:not(.nav-dot) {
  font-size: 15px;
  width: 15px;
  text-align: center;
  color: #8f8d85;
}
.nav-item b {
  font-size: 9px;
  color: #b5b1a9;
  font-weight: 400;
  margin-left: auto;
}
.nav-item em {
  font-style: normal;
  margin-left: auto;
  background: #e2dfd5;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 9px;
  color: #8b887f;
}
.nav-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  margin: 0 4px;
}
.vermilion {
  background: var(--red);
}
.indigo {
  background: var(--blue);
}
.gold {
  background: var(--gold);
}
.jade {
  background: var(--jade);
}
.sidebar-foot {
  margin-top: auto;
  padding: 12px 8px 0;
  border-top: 1px solid var(--line);
}
.local-status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 2px 15px;
}
.local-status strong,
.local-status small {
  display: block;
}
.local-status strong {
  font-size: 11px;
  font-weight: 500;
}
.local-status small {
  font-size: 9px;
  color: var(--faint);
  margin-top: 3px;
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72a878;
  box-shadow: 0 0 0 4px rgba(114, 168, 120, 0.14);
}
.sidebar-meta {
  font-size: 9px;
  line-height: 1.9;
  color: #aaa79f;
}
.sidebar-meta span {
  border: 1px solid #d6d2c9;
  border-radius: 3px;
  padding: 1px 4px;
  color: #8d8980;
}
.main {
  margin-left: 246px;
  width: calc(100% - 246px);
  min-height: 100vh;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5.5vw;
  border-bottom: 1px solid rgba(223, 221, 213, 0.7);
  color: var(--faint);
  font-size: 10px;
}
.crumbs {
  display: flex;
  gap: 12px;
  align-items: center;
}
.crumbs b {
  font-weight: 400;
  color: #c1beb5;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.icon-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  color: var(--muted);
  padding: 7px 9px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-button span {
  font-size: 10px;
}
.icon-button kbd {
  font-size: 8px;
  border: 1px solid #d8d4cc;
  border-radius: 3px;
  padding: 2px 4px;
  color: #a7a39b;
}
.avatar {
  height: 29px;
  width: 29px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: #f5f2eb;
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 12px;
}
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 55px 5.5vw 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 45px;
  align-items: center;
  min-height: 370px;
}
.eyebrow,
.section-kicker {
  color: var(--red);
  font-size: 9px;
  letter-spacing: 0.17em;
  font-weight: 600;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.eyebrow-line {
  display: inline-block;
  width: 25px;
  height: 1px;
  background: var(--red);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.hero-copy h1 {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 46px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 0 0 17px;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--red);
}
.hero-copy > p {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  line-height: 2;
  color: #79776f;
  font-size: 14px;
  margin: 0 0 24px;
}
.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.primary-button {
  border: 0;
  background: var(--red);
  color: #fff;
  border-radius: 5px;
  padding: 12px 15px;
  font-size: 11px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(191, 77, 53, 0.17);
  transition: 0.2s;
}
.primary-button:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
.primary-button span {
  font-size: 17px;
  margin-left: 17px;
  vertical-align: -1px;
}
.primary-button.small {
  padding: 10px 13px;
}
.text-button,
.subtle-link,
.back-link {
  border: 0;
  background: none;
  color: #858179;
  font-size: 11px;
  padding: 4px;
}
.text-button:hover,
.subtle-link:hover,
.back-link:hover {
  color: var(--red);
}
.hero-note {
  color: #aaa79f;
  font-size: 9px;
  margin-top: 26px;
}
.hero-note span {
  color: var(--gold);
  font-size: 13px;
  vertical-align: -2px;
}
.hero-art {
  height: 330px;
  position: relative;
  background: #e7e8e2;
  border-radius: 50% 45% 43% 47%;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-art:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.36), transparent 43%),
    repeating-linear-gradient(
      0deg,
      transparent 0 37px,
      rgba(56, 72, 65, 0.07) 38px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 43px,
      rgba(56, 72, 65, 0.06) 44px
    );
  mix-blend-mode: multiply;
}
.art-orbit {
  position: absolute;
  border: 1px solid rgba(68, 96, 87, 0.26);
  border-radius: 50%;
  transform: rotate(-27deg);
}
.orbit-one {
  width: 310px;
  height: 137px;
  left: 45px;
  top: 77px;
}
.orbit-two {
  width: 350px;
  height: 190px;
  left: 15px;
  top: 55px;
  transform: rotate(26deg);
}
.orbit-three {
  width: 270px;
  height: 100px;
  left: 85px;
  top: 116px;
  transform: rotate(71deg);
  border-color: rgba(191, 77, 53, 0.25);
}
.art-lines i {
  position: absolute;
  height: 1px;
  background: rgba(62, 76, 68, 0.32);
  transform-origin: left center;
}
.art-lines i:nth-child(1) {
  width: 144px;
  left: 111px;
  top: 148px;
  transform: rotate(-31deg);
}
.art-lines i:nth-child(2) {
  width: 115px;
  left: 165px;
  top: 198px;
  transform: rotate(-9deg);
}
.art-lines i:nth-child(3) {
  width: 102px;
  left: 210px;
  top: 151px;
  transform: rotate(42deg);
}
.art-lines i:nth-child(4) {
  width: 110px;
  left: 195px;
  top: 171px;
  transform: rotate(174deg);
}
.art-node {
  width: 48px;
  height: 48px;
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 18px;
  box-shadow: 0 5px 18px rgba(60, 75, 65, 0.16);
}
.node-main {
  left: 190px;
  top: 130px;
  background: var(--ink);
  color: #eff0e8;
}
.node-place {
  left: 84px;
  top: 84px;
  background: #d8e4dc;
  color: #4c7565;
}
.node-word {
  left: 285px;
  top: 74px;
  background: #ead6ca;
  color: var(--red);
}
.node-people {
  left: 285px;
  top: 215px;
  background: #e7d9af;
  color: #8e6b2c;
}
.art-caption {
  position: absolute;
  left: 32px;
  bottom: 26px;
  color: #596861;
}
.caption-kicker {
  display: block;
  font-size: 7px;
  letter-spacing: 0.16em;
  margin-bottom: 7px;
  color: #84958c;
}
.art-caption strong {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 18px 0 18px;
}
.section-head.lower {
  margin-top: 62px;
}
.section-head h2 {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 22px;
  margin: 9px 0 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.subtle-link {
  margin-bottom: 3px;
}
.subtle-link span {
  font-size: 16px;
  margin-left: 9px;
  vertical-align: -1px;
}
.task-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}
.task-card {
  border: 1px solid transparent;
  text-align: left;
  min-height: 155px;
  border-radius: 7px;
  padding: 18px 17px;
  position: relative;
  transition: 0.2s;
}
.task-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-warm {
  background: #f1e4da;
  border-color: #ead6c9;
}
.card-blue {
  background: #e0e6ec;
  border-color: #d2dbe5;
}
.card-jade {
  background: #dce8df;
  border-color: #cdded2;
}
.card-ink {
  background: #e6e5df;
  border-color: #d9d8d0;
}
.task-icon {
  display: block;
  font-size: 19px;
  margin-bottom: 31px;
}
.card-warm .task-icon {
  color: var(--red);
}
.card-blue .task-icon {
  color: var(--blue);
}
.card-jade .task-icon {
  color: var(--jade);
}
.card-ink .task-icon {
  color: #60635c;
}
.task-title {
  display: block;
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.task-desc {
  display: block;
  color: #85837c;
  font-size: 10px;
  line-height: 1.55;
  max-width: 135px;
}
.task-arrow {
  position: absolute;
  right: 15px;
  top: 16px;
  font-size: 14px;
  color: #8b8880;
}
.cabin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}
.cabin-card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: left;
  padding: 17px;
  min-height: 182px;
  position: relative;
  overflow: hidden;
  transition: 0.2s;
}
.cabin-card:hover {
  border-color: #bdb9ae;
  background: #faf8f3;
  transform: translateY(-2px);
}
.cabin-number {
  font-size: 9px;
  color: #aaa79f;
}
.cabin-orb {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  right: -6px;
  top: 20px;
  opacity: 0.8;
}
.orb-red {
  background: #e8b5a2;
}
.orb-blue {
  background: #bfcde0;
}
.orb-gold {
  background: #e5d0a2;
}
.orb-jade {
  background: #bed6c8;
}
.cabin-title {
  display: block;
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-weight: 600;
  font-size: 15px;
  margin: 45px 0 8px;
}
.cabin-copy {
  display: block;
  color: #85827a;
  font-size: 10px;
  line-height: 1.65;
  height: 34px;
}
.cabin-count {
  display: block;
  color: #9c9990;
  font-size: 9px;
  margin-top: 17px;
}
.cabin-count b {
  float: right;
  font-size: 15px;
  font-weight: 400;
  color: #b5b1a8;
}
.hidden {
  display: none !important;
}
.page-title {
  padding: 15px 0 34px;
}
.page-title h1 {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 37px;
  margin: 11px 0 10px;
}
.page-title p {
  font-size: 13px;
  color: #85827a;
}
.inline-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.tool-index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.tool-row {
  display: grid;
  grid-template-columns: 56px 1.25fr 1fr 105px;
  gap: 20px;
  padding: 17px 14px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  text-align: left;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}
.tool-row:hover {
  background: #efede7;
}
.tool-num {
  color: #aaa69d;
  font-size: 11px;
}
.tool-row strong {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 14px;
}
.tool-row p {
  font-size: 10px;
  color: #87847d;
  margin: 4px 0 0;
  line-height: 1.5;
}
.tool-cabin {
  font-size: 9px;
  color: var(--red);
  letter-spacing: 0.1em;
}
.tool-open {
  font-size: 10px;
  color: #a09c92;
  text-align: right;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}
.template-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  text-align: left;
  padding: 22px;
  min-height: 152px;
  transition: 0.2s;
}
.template-card:hover {
  box-shadow: var(--shadow);
  border-color: #c9c4b9;
}
.template-card .template-tag {
  font-size: 9px;
  color: var(--red);
  letter-spacing: 0.12em;
}
.template-card h3 {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 16px;
  margin: 13px 0 8px;
}
.template-card p {
  font-size: 11px;
  color: #85827a;
  line-height: 1.7;
  max-width: 470px;
}
.template-card button {
  border: 0;
  background: none;
  padding: 0;
  color: #9c5c4d;
  font-size: 10px;
}
.project-list,
.source-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.project-empty,
.source-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 27px;
  color: #8b887f;
  text-align: center;
  font-size: 12px;
}
.source-card {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 17px;
}
.source-icon {
  font-size: 22px;
  color: var(--red);
  width: 34px;
  text-align: center;
}
.source-card strong {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 14px;
}
.source-card small {
  display: block;
  color: #9e9b93;
  font-size: 10px;
  margin-top: 5px;
}
.source-card a {
  margin-left: auto;
  color: #9e5f50;
  text-decoration: none;
  font-size: 10px;
}
.cabin-tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cabin-tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  padding: 20px;
  min-height: 130px;
  transition: 0.2s;
}
.cabin-tool-card:hover {
  border-color: #bcaea0;
  box-shadow: var(--shadow);
}
.cabin-tool-card h3 {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 16px;
  margin: 0 0 7px;
}
.cabin-tool-card p {
  color: #85827a;
  font-size: 11px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.cabin-tool-card span {
  font-size: 9px;
  color: var(--red);
}
.workspace {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 4.5vw 30px;
  min-height: calc(100vh - 76px);
}
.workspace-head {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.back-link {
  font-size: 11px;
  white-space: nowrap;
}
.workspace-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1;
  min-width: 250px;
}
.tool-symbol {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e3e9e4;
  color: var(--jade);
  font-size: 22px;
}
.workspace-heading h1 {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 24px;
  margin: 5px 0 4px;
}
.workspace-heading p {
  font-size: 11px;
  color: #85827a;
  margin: 0;
}
.workspace-actions {
  display: flex;
  gap: 9px;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.35fr);
  gap: 16px;
  margin-top: 26px;
}
.input-panel,
.result-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  min-height: 530px;
}
.input-panel {
  padding: 19px;
}
.tool-instruction {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 14px;
  margin: 0 0 17px;
}
.field-label {
  display: flex;
  justify-content: space-between;
  color: #77746c;
  font-size: 10px;
  margin: 13px 0 7px;
}
.field-label span {
  color: #aaa69e;
}
.input-panel textarea,
.input-panel input,
.input-panel select {
  display: block;
  width: 100%;
  border: 1px solid #dad7ce;
  border-radius: 5px;
  background: #fdfcf9;
  padding: 10px 11px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
}
.input-panel textarea:focus,
.input-panel input:focus,
.input-panel select:focus {
  border-color: #bd8f7f;
  box-shadow: 0 0 0 3px rgba(191, 77, 53, 0.08);
}
.input-panel textarea {
  min-height: 150px;
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
}
.input-panel .dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #85827a;
  font-size: 10px;
  margin-top: 12px;
}
.check-line input {
  width: auto;
  display: inline-block;
}
.example-note {
  color: #aaa69e;
  font-size: 9px;
  line-height: 1.6;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #e7e4dc;
}
.result-panel {
  padding: 24px;
  overflow: auto;
  position: relative;
}
.result-empty {
  text-align: center;
  padding: 120px 30px 50px;
  color: #99958c;
}
.empty-glyph {
  height: 45px;
  width: 45px;
  border: 1px solid #d6d2c9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--red);
  font-size: 18px;
}
.result-empty h3 {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 16px;
  color: #716f68;
}
.result-empty p {
  font-size: 11px;
}
.empty-tip {
  display: inline-block;
  background: #f3f0e9;
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 9px;
  color: #aaa69f;
  margin-top: 13px;
}
.empty-tip span {
  border: 1px solid #d4d0c6;
  border-radius: 3px;
  padding: 1px 4px;
  margin-right: 5px;
  color: #85827a;
}
.result-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.result-head h3 {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 17px;
  margin: 4px 0 0;
}
.result-badge {
  font-size: 9px;
  color: #8e8a81;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 19px;
}
.stat-box {
  background: #f2f0ea;
  border-radius: 5px;
  padding: 11px 12px;
}
.stat-box small {
  display: block;
  color: #aaa69d;
  font-size: 9px;
  margin-bottom: 5px;
}
.stat-box strong {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 17px;
}
.bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 34px;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  margin: 7px 0;
}
.bar-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-track {
  height: 7px;
  background: #e9e6df;
  border-radius: 6px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--red);
  border-radius: 6px;
}
.bar-value {
  color: #9b978f;
  text-align: right;
}
.result-note {
  border-left: 2px solid #c5a77d;
  background: #faf6ec;
  padding: 11px 12px;
  color: #8e806b;
  line-height: 1.6;
  font-size: 10px;
  margin-top: 20px;
}
.context-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.context-row {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 12px;
  line-height: 1.7;
  padding: 10px;
  background: #f7f5ef;
  border-radius: 4px;
}
.context-row mark {
  background: #f1c8b6;
  color: #8e3926;
  padding: 1px 3px;
}
.diff-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 12px;
}
.diff-table th {
  text-align: left;
  color: #aaa69d;
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 9px;
  font-weight: 400;
  padding: 7px;
  border-bottom: 1px solid var(--line);
}
.diff-table td {
  padding: 10px 7px;
  border-bottom: 1px solid #eeece6;
  vertical-align: top;
  line-height: 1.6;
}
.diff-table .change-type {
  color: var(--red);
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 9px;
}
.diff-del {
  background: #f6dcd7;
  color: #9c3f2d;
  text-decoration: line-through;
}
.diff-add {
  background: #d9eadc;
  color: #3e7750;
}
.network-wrap {
  height: 360px;
  border-radius: 6px;
  background: #f3f4ef;
  position: relative;
  overflow: hidden;
}
.network-wrap svg {
  width: 100%;
  height: 100%;
}
.network-wrap .edge {
  stroke: #b1b9ae;
  stroke-width: 1;
}
.network-wrap .node {
  fill: #fff;
  stroke: var(--jade);
  stroke-width: 2;
}
.network-wrap text {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 12px;
  fill: #4d6559;
}
.place-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.place-item {
  display: flex;
  justify-content: space-between;
  background: #f3f6f1;
  padding: 10px;
  border-radius: 5px;
}
.place-item strong {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 13px;
}
.place-item small {
  color: #8a958d;
}
.workspace-foot {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 13px;
  color: #aaa69e;
  font-size: 9px;
}
.mini-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6d9a77;
  margin-right: 6px;
}
.foot-spacer {
  flex: 1;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 30, 27, 0.36);
  backdrop-filter: blur(3px);
}
.search-modal-card {
  position: relative;
  width: min(560px, calc(100% - 34px));
  margin: 13vh auto;
  background: #fbfaf7;
  border-radius: 9px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.search-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}
.search-head > span {
  font-size: 21px;
  color: var(--red);
}
.search-head input {
  border: 0;
  background: transparent;
  outline: 0;
  flex: 1;
  font-size: 13px;
}
.search-head kbd {
  font-size: 9px;
  border: 1px solid var(--line);
  padding: 3px 5px;
  border-radius: 3px;
  color: #aaa69e;
}
.search-result {
  padding: 13px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #eeece6;
  cursor: pointer;
}
.search-result:hover {
  background: #f2efe8;
}
.search-result strong {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 13px;
}
.search-result small {
  display: block;
  color: #9a968e;
  font-size: 10px;
  margin-top: 3px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #20231f;
  color: #fff;
  font-size: 11px;
  padding: 10px 15px;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 30;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 900px) {
  .sidebar {
    width: 208px;
  }
  .main {
    margin-left: 208px;
    width: calc(100% - 208px);
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    max-width: 480px;
    width: 100%;
    justify-self: center;
  }
  .task-cards,
  .cabin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .input-panel {
    min-height: 0;
  }
  .workspace {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}
@media (max-width: 620px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }
  .app-shell {
    display: block;
  }
  .main {
    margin-left: 0;
    width: 100%;
  }
  .brand {
    padding-bottom: 14px;
  }
  .new-work {
    margin-bottom: 12px;
  }
  .nav-group {
    display: none;
  }
  .sidebar-foot {
    display: none;
  }
  .topbar {
    padding: 0 18px;
    height: 58px;
  }
  .top-actions .icon-button span,
  .top-actions .icon-button kbd {
    display: none;
  }
  .page {
    padding: 38px 18px 65px;
  }
  .hero-copy h1 {
    font-size: 34px;
  }
  .hero-art {
    height: 270px;
  }
  .node-main {
    left: 42%;
    top: 38%;
  }
  .node-place {
    left: 16%;
    top: 26%;
  }
  .node-word {
    left: 68%;
    top: 22%;
  }
  .node-people {
    left: 68%;
    top: 67%;
  }
  .orbit-one {
    left: 12%;
    top: 28%;
    width: 75%;
  }
  .orbit-two {
    left: 8%;
    top: 20%;
    width: 84%;
  }
  .orbit-three {
    left: 22%;
    top: 39%;
    width: 66%;
  }
  .art-lines i:nth-child(1) {
    left: 31%;
    top: 47%;
    width: 35%;
  }
  .art-lines i:nth-child(2) {
    left: 42%;
    top: 58%;
    width: 28%;
  }
  .art-lines i:nth-child(3) {
    left: 52%;
    top: 48%;
    width: 28%;
  }
  .art-lines i:nth-child(4) {
    left: 49%;
    top: 53%;
    width: 27%;
  }
  .task-cards,
  .cabin-grid,
  .template-grid,
  .cabin-tools {
    grid-template-columns: 1fr;
  }
  .section-head.lower {
    margin-top: 42px;
  }
  .page-title h1 {
    font-size: 29px;
  }
  .tool-row {
    grid-template-columns: 35px 1fr 70px;
    gap: 10px;
  }
  .tool-row p {
    font-size: 9px;
  }
  .tool-cabin {
    display: none;
  }
  .workspace {
    padding: 23px 12px;
  }
  .workspace-head {
    gap: 12px;
  }
  .workspace-heading {
    order: 2;
    width: calc(100% - 55px);
  }
  .workspace-actions {
    order: 3;
    width: 100%;
    justify-content: flex-end;
  }
  .back-link {
    order: 1;
  }
  .workspace-heading h1 {
    font-size: 20px;
  }
  .result-panel {
    min-height: 460px;
    padding: 16px;
  }
  .workspace-foot {
    gap: 9px;
  }
  .workspace-foot .text-button {
    font-size: 10px;
  }
}
/* Workspace details */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.ghost-button {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #faf8f3;
  padding: 9px 12px;
  font-size: 11px;
  transition: 0.2s;
}
.ghost-button:hover {
  border-color: #bdaa9b;
  background: #f1ede4;
}
.file-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.file-button {
  font-size: 10px;
  color: var(--jade);
  border: 1px dashed #cbd5c9;
  border-radius: 4px;
  padding: 7px 10px;
  cursor: pointer;
}
.file-button:hover {
  background: #e9f0e7;
}
.lookup-decoration {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 120px;
  text-align: center;
  color: #ddd7c8;
  padding: 35px 0 20px;
  background: radial-gradient(circle, #efe9de 25%, transparent 70%);
  margin: 25px 0;
}
.lookup-decoration small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #a79e8e;
  margin-top: 15px;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
  max-height: 520px;
}
.diff-table td small {
  display: block;
  font-size: 9px;
  color: var(--faint);
  margin-top: 5px;
}
.output-text {
  white-space: pre-wrap;
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 15px;
  line-height: 2.1;
  background: #f5f2e9;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 14px;
  max-height: 500px;
  overflow: auto;
}
.quiet-success {
  font-size: 13px;
  color: var(--jade);
  background: #e9f0e7;
  padding: 20px;
  border-radius: 5px;
}
.word-cloud {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 7px 16px;
  padding: 18px;
  background: #f3f0e7;
  border: 1px solid #ebe6da;
  border-radius: 6px;
  margin-bottom: 23px;
}
.word-cloud button {
  border: 0;
  background: transparent;
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  transition: transform 0.15s;
}
.word-cloud button:hover {
  transform: translateY(-3px);
}
button.bar-row {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 4px;
  border-radius: 3px;
}
button.bar-row:hover {
  background: #f2eee5;
}
.chart-label {
  font-size: 11px;
  color: #746e62;
  padding: 8px 0;
  margin: 6px 0 12px;
}
.chart-label span {
  float: right;
  color: #a39c8e;
  font-size: 9px;
}
.context-row small {
  display: block;
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  color: #aaa;
  font-size: 9px;
}
.result-downloads {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.rhyme-card {
  display: flex;
  gap: 18px;
  background: #f5f1e6;
  border: 1px solid #e5dcc7;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 12px;
}
.rhyme-character {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 38px;
  min-width: 60px;
  color: #977130;
}
.rhyme-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #988c73;
}
.rhyme-meta b {
  display: inline-block;
  margin-left: 5px;
  color: #746143;
}
.rhyme-card p {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 13px;
  line-height: 1.8;
  margin: 12px 0 0;
}
.character-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 19px;
  margin-bottom: 15px;
}
.large-character {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 56px;
  text-align: center;
  color: #8b774c;
}
.large-character small {
  display: block;
  font:
    10px "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  color: var(--faint);
}
.character-card p {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #ebe7de;
  display: flex;
  gap: 15px;
  align-items: baseline;
  word-break: break-word;
}
.character-card p small {
  color: var(--faint);
  font-size: 9px;
  min-width: 95px;
}
.character-card p span {
  font-size: 12px;
}
.timeline-result {
  padding: 10px 15px;
}
.timeline-result article {
  position: relative;
  border-left: 1px solid #c8d5c9;
  padding: 0 0 28px 28px;
}
.timeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--jade);
  border: 2px solid #d3e0d3;
  position: absolute;
  left: -5px;
  top: 4px;
}
.timeline-result small {
  font-size: 9px;
  color: #969c90;
}
.timeline-result h3 {
  font-size: 23px;
  margin: 6px 0;
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
}
.timeline-result h3 em {
  font-style: normal;
  font-size: 11px;
  color: #8da28f;
  margin-left: 15px;
}
.timeline-result p {
  font-size: 13px;
  margin: 0;
  color: #716d61;
}
.map-view {
  height: 320px;
  background: #edf2e9;
  border: 1px solid #dbe3d3;
  border-radius: 6px;
  margin-bottom: 15px;
}
.map-view svg {
  height: 100%;
  width: 100%;
}
.project-row {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 20px;
}
.project-glyph {
  font-size: 27px;
  color: var(--jade);
}
.project-row > div {
  flex: 1;
}
.project-row strong {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 15px;
}
.project-row small {
  display: block;
  font-size: 10px;
  color: var(--faint);
  margin-top: 5px;
}
.source-card p {
  font-size: 11px;
  color: #928a7c;
  line-height: 1.8;
  margin: 10px 0;
}
.method-card {
  padding: 25px;
  border: 1px dashed #d5cbbb;
  border-radius: 7px;
  margin-top: 12px;
}
.method-card h3 {
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 16px;
}
.method-card p {
  font-size: 12px;
  color: #918879;
  line-height: 1.9;
}
.empty-inline {
  color: var(--muted);
  font-size: 12px;
  padding: 20px;
  line-height: 1.8;
}
.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #e2d9cc;
  border-top-color: var(--red);
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.canvas-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
}
.canvas-grid h3 {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.07em;
  padding-bottom: 8px;
}
.canvas-text {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.passage {
  display: block;
  width: 100%;
  text-align: left;
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 15px;
  line-height: 2.2;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  padding: 18px;
  margin-bottom: 12px;
}
.passage small {
  display: block;
  font:
    9px "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  letter-spacing: 0.1em;
  color: #b4a48d;
  margin-bottom: 10px;
}
.passage:hover {
  background: #f1ede3;
}
.passage.selected {
  background: #f1e4d6;
  border-color: #ddc4a7;
  color: #85603e;
}
.canvas-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 7px;
  margin-bottom: 15px;
}
.canvas-panel .network-wrap,
.canvas-panel .map-view {
  height: 220px;
}
.network-wrap svg {
  touch-action: none;
}
.app-shell .section-kicker {
  line-height: 1.5;
}
.input-panel {
  min-width: 0;
}
.result-panel {
  min-width: 0;
}
.workspace-grid {
  align-items: start;
}
.hero-art {
  min-width: 0;
}
.canvas-edit {
  margin-bottom: 22px;
}
.canvas-edit textarea {
  width: 100%;
  min-height: 200px;
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 12px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px;
}
.canvas-edit summary {
  cursor: pointer;
  color: var(--jade);
  font-size: 12px;
  padding: 12px 0;
}
.canvas-edit .ghost-button {
  margin-top: 10px;
}
.help-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.tool-row {
  width: 100%;
}
.sidebar {
  overflow-y: auto;
}
.sidebar-foot {
  padding-top: 20px;
}
.nav-label:not(:first-child) {
  margin-top: 12px;
}
.brand {
  padding-bottom: 20px;
}
.new-work {
  margin-bottom: 19px;
}
@media (min-width: 1450px) {
  .hero-art {
    max-width: 420px;
  }
  .page {
    padding-left: 65px;
    padding-right: 65px;
  }
  .hero-copy h1 {
    font-size: 50px;
  }
  .topbar {
    padding-left: 65px;
    padding-right: 65px;
  }
  .task-card {
    min-height: 170px;
  }
}
@media (max-width: 620px) {
  .canvas-grid {
    grid-template-columns: 1fr;
  }
  .project-row {
    flex-wrap: wrap;
  }
  .source-card {
    flex-wrap: wrap;
  }
  .character-card {
    grid-template-columns: 70px 1fr;
  }
  .character-card p {
    display: block;
  }
  .character-card p small {
    display: block;
    margin-bottom: 5px;
  }
  .chart-label span {
    float: none;
    display: block;
    margin-top: 6px;
  }
  .sidebar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .brand {
    padding: 0;
  }
  .new-work {
    margin: 0;
    font-size: 10px;
  }
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid {
    gap: 26px;
  }
  .hero-copy > p {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .workspace-head,
  .input-panel,
  .workspace-foot,
  .toast {
    display: none !important;
  }
  .main {
    width: 100%;
    margin: 0;
  }
  .workspace {
    padding: 0;
  }
  .workspace-grid {
    display: block;
  }
  .result-panel {
    border: 0;
    overflow: visible;
  }
  .table-scroll {
    max-height: none;
    overflow: visible;
  }
  .result-downloads {
    display: none;
  }
  .page {
    max-width: none;
  }
}
.canvas-banner {
  width: 100%;
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px 28px;
  border: 1px solid #ced5c8;
  background: #e7ece2;
  border-radius: 8px;
  text-align: left;
}
.canvas-banner:hover {
  background: #e0e7d9;
}
.banner-icon {
  font-size: 38px;
  color: #64816d;
}
.canvas-banner small {
  display: block;
  letter-spacing: 0.15em;
  font-size: 8px;
  color: #83947d;
}
.canvas-banner strong {
  display: block;
  font-family: 'Microsoft YaHei','微软雅黑',Arial,sans-serif;
  font-size: 18px;
  margin: 8px 0;
}
.canvas-banner em {
  font-style: normal;
  font-size: 11px;
  color: #8a9583;
}
.canvas-banner b {
  margin-left: auto;
  font-size: 10px;
  color: #68816b;
  font-weight: 400;
}
.canvas-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.canvas-editor-grid label {
  font-size: 11px;
  color: #898275;
}
.canvas-editor-grid > label > textarea {
  height: 350px;
}
.canvas-editor-grid > div textarea {
  min-height: 145px;
  margin-bottom: 10px;
}
.canvas-edit .primary-button {
  margin-right: 10px;
}
.canvas-edit .ghost-button {
  margin-right: 8px;
}
.workspace-foot {
  flex-wrap: wrap;
}
@media (max-width: 620px) {
  .canvas-editor-grid {
    grid-template-columns: 1fr;
  }
  .canvas-banner {
    padding: 20px;
    gap: 12px;
  }
  .canvas-banner strong {
    font-size: 15px;
  }
  .canvas-banner b {
    display: none;
  }
  .canvas-editor-grid > label > textarea {
    height: 180px;
  }
  .project-row .ghost-button {
    padding: 8px;
  }
}
.mobile-dock {
  display: none;
}
.hero-copy h1 {
  font-size: clamp(32px, 3.1vw, 46px);
}
@media (max-width: 620px) {
  .mobile-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9;
    background: rgba(248, 246, 238, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    display: flex;
    padding: 9px 10px max(9px, env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .mobile-dock button {
    border: 0;
    background: none;
    min-width: 45px;
    font-size: 21px;
    color: #777965;
  }
  .mobile-dock small {
    display: block;
    font-size: 9px;
    color: #9b9588;
    margin-top: 3px;
  }
  .main {
    padding-bottom: 66px;
  }
  .toast {
    bottom: 84px;
  }
  .hero-copy h1 {
    font-size: 34px;
  }
}
