:root {
  --bg: #f5f6f8;
  --surface: #fff;
  --ink: #182026;
  --muted: #7d858d;
  --line: #e7e9ec;
  --nav: #16201e;
  --navmuted: #86978f;
  --green: #237b59;
  --green2: #eaf4ee;
  --gold: #cda45e;
  --danger: #bd534a;
  --radius: 8px;
  --shadow: 0 12px 40px rgba(25, 35, 30, 0.08);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  letter-spacing: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
button {
  border: 0;
}
input,
textarea,
select {
  outline: 0;
}
textarea {
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(35, 123, 89, 0.08);
}
.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--nav);
  color: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  display: flex;
  flex-direction: column;
  padding: 28px 16px;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 13px 31px;
  font-size: 20px;
  font-weight: 700;
}
.brand-mark {
  width: 33px;
  height: 33px;
  border: 1px solid #97b8a5;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #b9d4c3;
  font-size: 21px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  color: #97aa9e;
  margin-top: 3px;
  font-weight: 400;
}
.nav-label {
  color: #61756b;
  font-size: 11px;
  padding: 20px 16px 10px;
}
.nav-item {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  color: #a8b4ad;
  background: transparent;
  border-radius: 6px;
  margin-bottom: 4px;
  text-align: left;
  transition: 0.15s;
}
.nav-item:hover {
  background: #24322b;
  color: white;
}
.nav-item.active {
  background: #2d4437;
  color: #dbeade;
}
.nav-item .count {
  margin-left: auto;
  color: #a0bbae;
  font-size: 11px;
}
.nav-icon {
  width: 18px;
  font-size: 17px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.quota-box {
  background: #213329;
  padding: 17px 16px;
  border-radius: 7px;
  color: #b8c7bb;
  margin-bottom: 19px;
}
.quota-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.quota-number {
  font-size: 20px;
  color: #e3eee5;
  font-weight: 600;
}
.quota-number small {
  font-size: 11px;
  color: #91a597;
  font-weight: 400;
}
.quota-track {
  height: 3px;
  background: #3b4b40;
  margin: 13px 0 10px;
}
.quota-track span {
  display: block;
  height: 100%;
  background: #aac8a9;
}
.quota-box p {
  font-size: 10px;
  color: #8b9c8e;
}
.user-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  text-align: left;
  color: #dce6df;
  padding: 6px 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  background: #dbe8de;
  color: #3e6850;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  flex-shrink: 0;
}
.user-nav span {
  font-size: 12px;
}
.user-nav small {
  display: block;
  font-size: 10px;
  color: #81968a;
  margin-top: 4px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #999fa6;
  font-size: 12px;
}
.breadcrumb strong {
  font-weight: 500;
  color: #37433d;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 23px;
  color: #929b95;
  font-size: 12px;
}
.top-actions .date {
  font-size: 11px;
}
.notification {
  position: relative;
  background: transparent;
  color: #66736b;
  font-size: 18px;
}
.notification:after {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
  top: 1px;
  right: 2px;
}
.page {
  padding: 38px 42px 48px;
  max-width: 1650px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}
.page-head h1 {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.6;
}
.page-head p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 0 18px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid #dfe4e0;
  color: #4a5750;
  font-size: 12px;
  white-space: nowrap;
  transition: 0.15s;
}
.btn:hover {
  border-color: #9aac9f;
  background: #f9fbf9;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn.primary:hover {
  background: #1d694c;
}
.btn.dark {
  background: #213b2b;
  border-color: #213b2b;
  color: #fff;
}
.btn.ghost {
  border: 0;
  background: transparent;
}
.btn.small {
  min-height: 31px;
  padding: 0 12px;
  font-size: 11px;
}
.btn.danger {
  color: var(--danger);
}
.btn.icon {
  width: 34px;
  min-height: 34px;
  padding: 0;
  font-size: 17px;
}
.btn.full {
  width: 100%;
}
.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.tag {
  font-size: 10px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border-radius: 3px;
  padding: 4px 7px;
  background: #f2f4f3;
  color: #7c8a80;
}
.tag.green {
  color: #397457;
  background: #eaf4ed;
}
.tag.gold {
  color: #977749;
  background: #faf3e5;
}
.tag.red {
  color: #b65e56;
  background: #faefed;
}
.tag.blue {
  color: #647b9a;
  background: #edf2f8;
}
.tag:empty {
  display: none;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 29px 0 17px;
}
.section-head h2 {
  font-size: 16px;
  font-weight: 600;
}
.section-head small {
  color: var(--muted);
  font-size: 11px;
}
.text-link {
  background: transparent;
  color: #718176;
  font-size: 11px;
}
.empty {
  text-align: center;
  padding: 70px 25px;
  color: #929c94;
}
.empty .empty-icon {
  font-size: 38px;
  color: #b5c6b8;
  margin-bottom: 16px;
}
.empty h3 {
  font-size: 15px;
  color: #5b6a61;
  margin-bottom: 9px;
}
.empty p {
  font-size: 12px;
  margin-bottom: 22px;
}
.dashboard-welcome {
  padding: 30px 32px;
  background: #e9efea;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  border-radius: 8px;
  min-height: 174px;
  position: relative;
  overflow: hidden;
}
.welcome-copy {
  z-index: 1;
}
.welcome-copy h2 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
}
.welcome-copy p {
  font-size: 12px;
  color: #839085;
  margin: 9px 0 21px;
}
.welcome-art {
  width: 195px;
  height: 120px;
  position: relative;
  flex-shrink: 0;
  margin-right: 32px;
}
.book-art {
  width: 73px;
  height: 104px;
  background: #567761;
  border-radius: 2px 7px 7px 2px;
  position: absolute;
  right: 22px;
  top: 5px;
  transform: rotate(12deg);
  border-left: 7px solid #42664e;
  box-shadow:
    6px 6px 0 #d3ded0,
    9px 8px 12px #bcccb966;
}
.book-art:before {
  content: "STORIES";
  position: absolute;
  font-family: Georgia, serif;
  font-size: 11px;
  color: #dce7d6;
  top: 35px;
  left: 8px;
  transform: rotate(0deg);
}
.book-art:after {
  content: "";
  position: absolute;
  border: 1px solid #9eb097;
  inset: 12px 7px 12px 5px;
}
.book-art.second {
  transform: rotate(-14deg);
  background: #c6b58e;
  right: 85px;
  top: 17px;
  border-left-color: #b7a57f;
  box-shadow: 4px 4px 0 #e5dfcf;
}
.book-art.second:before {
  content: "想 象";
  color: #665e45;
  font-family: serif;
}
.book-art.second:after {
  border-color: #dcd1b7;
}
.summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.summary-item {
  padding: 0 29px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 15px;
}
.summary-item:first-child {
  padding-left: 0;
}
.summary-item:last-child {
  border: 0;
}
.summary-icon {
  width: 39px;
  height: 39px;
  border-radius: 8px;
  background: #edf1ed;
  color: #658371;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.summary-item strong {
  font-family: Arial, sans-serif;
  font-size: 24px;
  display: block;
  color: #2c4134;
  font-weight: 500;
}
.summary-item small {
  font-size: 11px;
  color: #8b938d;
  display: block;
  margin-top: 5px;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.work-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 22px 23px;
  cursor: pointer;
  transition: 0.2s;
  min-width: 0;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px #2638290a;
  border-color: #bfd0c4;
}
.work-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 21px;
}
.work-symbol {
  width: 42px;
  height: 49px;
  background: #e9eee8;
  color: #708873;
  border-left: 3px solid #9cb69e;
  border-radius: 2px 4px 4px 2px;
  display: grid;
  place-items: center;
  font-size: 23px;
}
.work-symbol.script {
  background: #eeeae2;
  border-left-color: #c4b08e;
  color: #a18d6a;
}
.work-card h3 {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 11px;
}
.work-card p {
  font-size: 11px;
  line-height: 1.9;
  color: #929a94;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.work-meta {
  display: flex;
  gap: 7px;
  margin-top: 18px;
}
.work-bottom {
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid #f0f2f0;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #9ba29c;
}
.work-bottom strong {
  font-weight: 400;
  color: #698370;
}
.new-work-card {
  border: 1px dashed #cfd8d1;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 246px;
  border-radius: 7px;
  gap: 13px;
  color: #89988d;
  cursor: pointer;
}
.new-work-card:hover {
  background: #f0f4f0;
}
.new-work-card span {
  font-size: 26px;
  font-weight: 300;
}
.new-work-card strong {
  font-size: 12px;
  font-weight: 400;
}
.filter-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 23px;
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}
.tab {
  border: 0;
  background: transparent;
  color: #8e9790;
  font-size: 12px;
  padding: 0 0 12px;
  position: relative;
}
.tab.active {
  color: var(--green);
  font-weight: 500;
}
.tab.active:after {
  content: "";
  height: 2px;
  background: var(--green);
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 13px;
  border-radius: 5px;
  width: 225px;
  color: #9aa49c;
}
.search input {
  width: 100%;
  border: 0;
  font-size: 11px;
  background: transparent;
  box-shadow: none;
}
.table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.table th {
  font-size: 10px;
  color: #9aa19c;
  background: #fafbf9;
  font-weight: 400;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 19px 20px;
  border-bottom: 1px solid #f0f2ee;
  font-size: 12px;
  color: #68736b;
}
.table tr:last-child td {
  border: 0;
}
.table .task-title {
  font-size: 12px;
  color: #37493c;
  display: block;
  margin-bottom: 5px;
}
.table .task-sub {
  font-size: 10px;
  color: #a4aaa5;
}
.progress-line {
  width: 130px;
  height: 4px;
  background: #edf1ec;
  border-radius: 2px;
  margin-top: 9px;
  overflow: hidden;
}
.progress-line span {
  height: 100%;
  display: block;
  background: #74a17c;
  transition: width 0.6s;
}
.progress-line.gold span {
  background: #c7ad79;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: start;
  max-width: 1150px;
}
.form-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
}
.form-side {
  padding: 12px 0;
}
.form-side h3 {
  font-size: 13px;
  margin-bottom: 17px;
  font-weight: 500;
}
.form-side p {
  font-size: 11px;
  line-height: 2;
  color: #8b948d;
  margin-bottom: 16px;
}
.side-rule {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 23px;
}
.type-picker {
  display: flex;
  gap: 14px;
  margin-bottom: 29px;
}
.type-option {
  flex: 1;
  border: 1px solid #e1e6e1;
  background: white;
  border-radius: 6px;
  padding: 18px;
  display: flex;
  gap: 13px;
  align-items: center;
  text-align: left;
  color: #9aa49b;
}
.type-option.active {
  background: #f1f7f2;
  border-color: #649475;
  color: #477453;
}
.type-option strong {
  font-size: 13px;
  display: block;
  font-weight: 500;
}
.type-option small {
  font-size: 10px;
  color: #a0aaa2;
  display: block;
  margin-top: 5px;
}
.type-option .type-icon {
  font-size: 27px;
}
.form-field {
  margin-bottom: 24px;
}
.form-field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #45574a;
  margin-bottom: 10px;
}
.form-field label small {
  font-size: 10px;
  color: #a3aaa4;
  font-weight: 400;
}
.required {
  color: #af8374;
  margin-left: 3px;
}
.input {
  border: 1px solid #dfe5df;
  border-radius: 5px;
  padding: 12px 13px;
  background: #fff;
  color: #3b4c41;
  width: 100%;
  font-size: 12px;
  min-height: 43px;
}
.input::placeholder {
  color: #b0b7b1;
}
.input.large {
  min-height: 152px;
  line-height: 1.9;
}
.input.error {
  border-color: #c56a60;
}
.field-error {
  color: var(--danger);
  font-size: 10px;
  margin-top: 7px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
.segmented {
  display: flex;
  border: 1px solid #dfe5df;
  border-radius: 5px;
  padding: 3px;
  background: #f9fbf9;
  gap: 4px;
}
.segment {
  flex: 1;
  padding: 9px 8px;
  background: transparent;
  color: #8a978d;
  border-radius: 3px;
  font-size: 12px;
}
.segment.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 1px 5px #23412513;
}
.style-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.style-chip {
  padding: 8px 14px;
  background: #f7f9f6;
  border: 1px solid #e8ece6;
  border-radius: 4px;
  color: #8e9a91;
  font-size: 11px;
}
.style-chip.active {
  background: #eef6ef;
  border-color: #99b79e;
  color: #4e7d57;
}
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ecf0e9;
  padding-top: 23px;
  margin-top: 8px;
  font-size: 10px;
  color: #9ea79e;
}
.generation-preview {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
}
.generation-preview div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 11px;
  color: #919b93;
}
.generation-preview div:last-child {
  margin: 0;
}
.generation-preview strong {
  font-weight: 500;
  color: #546b5a;
}
.task-detail {
  max-width: 1050px;
  margin: auto;
}
.task-hero {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px 39px;
  margin-bottom: 22px;
}
.task-hero-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.task-hero h2 {
  font-size: 21px;
  font-weight: 500;
  margin: 13px 0 9px;
}
.task-hero p {
  font-size: 12px;
  color: #99a099;
  line-height: 1.8;
}
.task-progress-value {
  font-family: Arial, sans-serif;
  font-size: 38px;
  font-weight: 300;
  color: #52775a;
}
.task-progress-value small {
  font-size: 16px;
  margin-left: 3px;
}
.big-progress {
  height: 5px;
  background: #edf1ec;
  border-radius: 4px;
  margin: 27px 0 34px;
  overflow: hidden;
}
.big-progress span {
  height: 100%;
  background: var(--green);
  display: block;
  transition: width 0.7s;
}
.steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}
.step {
  text-align: center;
  font-size: 11px;
  color: #aeb5ae;
  min-width: 68px;
  position: relative;
  z-index: 1;
}
.step-num {
  border: 1px solid #dce3dc;
  background: #fff;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin: 0 auto 12px;
  font-size: 12px;
}
.step.done {
  color: #65866b;
}
.step.done .step-num {
  background: #eaf3ea;
  border-color: #d8e8d9;
  color: #62906d;
}
.step.active {
  color: #3c6f49;
}
.step.active .step-num {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 5px #f0f5ef;
}
.task-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.info-panel {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.info-panel h3 {
  font-size: 13px;
  margin-bottom: 21px;
  font-weight: 500;
}
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: #9aa39a;
  margin-bottom: 16px;
}
.info-row strong {
  font-weight: 400;
  color: #687f6c;
}
.info-panel p {
  font-size: 12px;
  color: #859388;
  line-height: 2;
}
.task-logs {
  margin-top: 25px;
}
.log-row {
  display: flex;
  gap: 20px;
  font-size: 11px;
  color: #8a978c;
  padding: 11px 0;
  border-bottom: 1px solid #edf0eb;
}
.log-row time {
  color: #b1b8ae;
  flex-shrink: 0;
}
.editor-layout {
  height: calc(100vh - 77px);
  display: grid;
  grid-template-columns: 243px minmax(0, 1fr);
  background: #fff;
}
.editor-directory {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: auto;
  background: #fafbf9;
}
.directory-top {
  padding: 24px 22px 19px;
  border-bottom: 1px solid var(--line);
}
.directory-top h2 {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.directory-top .meta {
  font-size: 10px;
  color: #99a296;
  margin-top: 12px;
}
.directory-tabs {
  display: flex;
  padding: 17px 20px 12px;
  gap: 23px;
  border-bottom: 1px solid #f0f3ed;
}
.directory-tab {
  font-size: 11px;
  background: transparent;
  color: #a1aaa0;
  padding: 0 0 8px;
}
.directory-tab.active {
  color: #51775a;
  border-bottom: 2px solid #7e9e7d;
}
.chapter-list {
  padding: 12px 10px;
  flex: 1;
}
.chapter-item {
  display: flex;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 12px 11px;
  border-radius: 4px;
  background: transparent;
  text-align: left;
  color: #879584;
  font-size: 11px;
  margin-bottom: 3px;
  min-height: 40px;
}
.chapter-item.active {
  background: #eaf1e7;
  color: #4c704f;
}
.chapter-item.pending {
  color: #b7beb2;
}
.chapter-item .chapter-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.chapter-item .chapter-status {
  font-size: 9px;
  flex-shrink: 0;
}
.directory-bottom {
  padding: 17px 16px;
  border-top: 1px solid var(--line);
}
.editor-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 25px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
  min-height: 66px;
}
.editor-toolbar .left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.editor-toolbar .save-status {
  font-size: 10px;
  color: #a0ac9b;
  margin-left: 8px;
}
.editor-toolbar .divider {
  width: 1px;
  height: 18px;
  background: #e8ece4;
  margin: 0 5px;
}
.format-btn {
  background: transparent;
  color: #788872;
  width: 28px;
  height: 30px;
  font-family: Georgia, serif;
  font-size: 15px;
}
.format-btn:hover {
  background: #f0f4eb;
}
.editor-scroll {
  flex: 1;
  overflow: auto;
  background: #fff;
}
.document {
  max-width: 1000px;
  padding: 44px 65px 65px;
  margin: 0 auto;
  min-height: 100%;
}
.document-label {
  font-size: 10px;
  color: #a3af9d;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.document-title {
  font-family: "Noto Sans SC", serif;
  font-size: 27px;
  font-weight: 500;
  border: 0;
  width: 100%;
  color: #3a4935;
  line-height: 1.6;
  margin-bottom: 23px;
  padding: 0;
  background: transparent;
  box-shadow: none !important;
}
.document-body {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 2.2;
  color: #606c5a;
  outline: 0;
  min-height: 500px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.document-body:empty:before {
  content: attr(data-placeholder);
  color: #b6c0ae;
}
.editor-footer {
  display: flex;
  justify-content: space-between;
  padding: 11px 27px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #9caa94;
  background: #fdfefb;
}
.outline-block {
  padding: 0 0 24px;
  margin-bottom: 25px;
  border-bottom: 1px solid #eef1e9;
}
.outline-block h3 {
  font-size: 14px;
  margin-bottom: 11px;
  color: #506349;
}
.outline-block p {
  font-size: 13px;
  color: #8a9681;
  line-height: 2;
}
.outline-chapter {
  padding: 16px 0;
  border-bottom: 1px solid #eef1e9;
}
.outline-chapter h4 {
  font-size: 12px;
  color: #5e7554;
  margin-bottom: 7px;
  font-weight: 500;
}
.outline-chapter p {
  font-size: 12px;
  color: #9aa58f;
  line-height: 1.9;
}
.editor-empty {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}
.editor-empty .empty {
  max-width: 440px;
}
.focus-mode .sidebar,
.focus-mode .topbar,
.focus-mode .editor-directory {
  display: none;
}
.focus-mode .app-shell {
  display: block;
}
.focus-mode .main {
  width: 100%;
}
.focus-mode .editor-layout {
  height: 100vh;
  grid-template-columns: 1fr;
}
.focus-mode .document {
  max-width: 1120px;
}
.version-layout {
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  gap: 25px;
}
.version-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  align-self: start;
}
.version-item {
  width: 100%;
  padding: 20px 22px;
  text-align: left;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.version-item:last-child {
  border: 0;
}
.version-item.active {
  background: #eef4ed;
  border-left: 3px solid #6f966b;
  padding-left: 19px;
}
.version-item h3 {
  font-size: 12px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}
.version-item p {
  font-size: 10px;
  color: #9fa999;
  margin-top: 9px;
  line-height: 1.8;
}
.version-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 32px;
  min-height: 530px;
}
.version-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 25px;
  gap: 16px;
}
.version-preview h2 {
  font-size: 17px;
  font-weight: 500;
}
.version-preview .preview-text {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 2;
  color: #778770;
  max-height: 580px;
  overflow: auto;
}
.settings {
  max-width: 850px;
}
.settings-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 23px;
}
.settings-section h2 {
  font-size: 14px;
  font-weight: 500;
  padding: 23px 28px;
  border-bottom: 1px solid var(--line);
}
.setting-row {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid #eef1e9;
}
.setting-row:last-child {
  border: 0;
}
.setting-row h3 {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
}
.setting-row p {
  font-size: 11px;
  color: #9ca793;
}
.profile-head {
  display: flex;
  gap: 17px;
  align-items: center;
}
.profile-head .avatar {
  width: 49px;
  height: 49px;
  font-size: 20px;
}
.profile-head h3 {
  font-size: 15px;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 46%) 1fr;
  background: #fff;
}
.login-brand-panel {
  background: #edf2ec;
  padding: 54px 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.login-brand-panel .brand {
  color: #3c5740;
  padding: 0;
}
.login-brand-panel .brand small {
  color: #91a28c;
}
.login-quote {
  margin: auto 0;
  position: relative;
  z-index: 1;
  max-width: 430px;
}
.login-quote h1 {
  font-size: 37px;
  font-weight: 400;
  line-height: 1.7;
  color: #3e583d;
  margin-bottom: 25px;
}
.login-quote p {
  font-size: 13px;
  color: #899e81;
  line-height: 2;
}
.login-brand-panel .login-art {
  width: 280px;
  height: 200px;
  margin: 45px 0 0 10px;
}
.login-art .book-art {
  width: 120px;
  height: 170px;
  right: 45px;
  top: 10px;
}
.login-art .book-art.second {
  right: 145px;
  top: 28px;
}
.login-art .book-art:before {
  font-size: 16px;
  top: 67px;
  left: 16px;
}
.login-art .book-art:after {
  inset: 19px 12px 19px 8px;
}
.login-copyright {
  font-size: 10px;
  color: #a1ae9a;
}
.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}
.login-form {
  width: 360px;
}
.login-form h2 {
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 11px;
}
.login-form > p {
  font-size: 12px;
  color: #9ca596;
  margin-bottom: 34px;
}
.login-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.login-tabs .tab {
  font-size: 13px;
}
.phone-code {
  display: flex;
  gap: 10px;
}
.phone-code .input {
  min-width: 0;
}
.code-button {
  white-space: nowrap;
  min-width: 112px;
  background: #f0f5ed;
  border: 1px solid #dae4d5;
  color: #7b9471;
  border-radius: 5px;
  font-size: 11px;
}
.agreement {
  font-size: 10px;
  color: #a5afa0;
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 22px 0;
  line-height: 1.8;
}
.agreement input {
  accent-color: var(--green);
}
.agreement a {
  color: #739069;
}
.login-separator {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
  color: #bdc5b8;
  font-size: 10px;
}
.login-separator:before,
.login-separator:after {
  content: "";
  height: 1px;
  background: #ecf0e8;
  flex: 1;
}
.qr-area {
  text-align: center;
  padding: 8px 0 15px;
}
.qr-code {
  width: 176px;
  height: 176px;
  background: #fff;
  padding: 10px;
  border: 1px solid #e8ede3;
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  grid-template-rows: repeat(21, 1fr);
}
.qr-code span.black {
  background: #283f27;
}
.qr-area p {
  font-size: 11px;
  color: #91a087;
  margin-top: 10px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 30, 17, 0.32);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  backdrop-filter: blur(3px);
}
.modal {
  background: white;
  width: 510px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  border-radius: 9px;
  box-shadow: 0 25px 100px #0d23182b;
  animation: modalIn 0.18s ease;
}
.modal.wide {
  width: 660px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 27px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 16px;
  font-weight: 500;
}
.modal-body {
  padding: 25px 27px;
}
.modal-body > p {
  font-size: 12px;
  line-height: 1.9;
  color: #92a088;
  margin-bottom: 22px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 27px;
  border-top: 1px solid var(--line);
}
.notice {
  padding: 13px 16px;
  background: #f5f8f1;
  color: #8b9d7b;
  font-size: 11px;
  line-height: 1.9;
  border-radius: 5px;
  margin-bottom: 20px;
}
.notice.warning {
  background: #faf6eb;
  color: #a79b77;
}
.choice-list {
  display: flex;
  gap: 14px;
}
.choice-card {
  flex: 1;
  padding: 23px 20px;
  border: 1px solid #dfe7d7;
  background: #fff;
  border-radius: 6px;
  text-align: left;
  color: #869978;
}
.choice-card.active {
  border-color: #91af7e;
  background: #f2f7ec;
}
.choice-card strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin: 12px 0 7px;
}
.choice-card small {
  font-size: 10px;
  color: #a2b095;
}
.choice-card .file-icon {
  font-size: 26px;
}
.export-meta {
  padding-top: 22px;
}
.export-meta .info-row {
  margin-bottom: 12px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #294128;
  color: #edf3e8;
  padding: 13px 22px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  z-index: 200;
  font-size: 12px;
  animation: toastIn 0.2s ease;
  max-width: 90%;
  text-align: center;
}
.toast.error {
  background: #a86051;
}
.loading-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8bab74;
  animation: pulse 1s infinite;
  margin-right: 5px;
}
.help-list {
  font-size: 12px;
  color: #8f9f81;
  line-height: 2.1;
}
.help-list strong {
  color: #587248;
  font-weight: 500;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #8b9e7b;
  margin: 15px 0;
}
.check-row input {
  accent-color: var(--green);
}
.stat-callout {
  font-size: 31px;
  color: #638051;
  font-family: Arial, sans-serif;
  margin: 15px 0;
}
.stat-callout small {
  font-size: 13px;
  color: #a4b594;
  margin-left: 8px;
}
.mobile-menu {
  display: none;
}
.save-indicator {
  color: #72995c;
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #cee0c1;
  border-top-color: #5d8944;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}
.work-list-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.muted {
  color: var(--muted);
}
.danger-text {
  color: var(--danger);
}
.mt20 {
  margin-top: 20px;
}
.mb0 {
  margin-bottom: 0 !important;
}
.hidden {
  display: none !important;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes toastIn {
  from {
    opacity: 0;
    bottom: 18px;
  }
  to {
    opacity: 1;
    bottom: 28px;
  }
}
@media (min-width: 1600px) {
  .page {
    padding: 42px 58px;
  }
  .document {
    max-width: 1160px;
    padding: 48px 78px;
  }
  .document-body {
    font-size: 17px;
  }
  .work-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 190px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .app-shell {
    grid-template-columns: 190px 1fr;
  }
  .page {
    padding: 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 25px;
  }
  .document {
    padding: 34px 36px;
  }
  .editor-directory {
    width: 210px;
  }
  .editor-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .editor-toolbar {
    padding: 13px 16px;
  }
  .editor-toolbar .save-status {
    display: none;
  }
  .welcome-art {
    margin-right: 0;
  }
  .login-brand-panel {
    padding: 40px;
  }
  .login-quote h1 {
    font-size: 31px;
  }
}
@media (max-width: 960px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
  .form-side {
    display: none;
  }
  .editor-directory {
    width: 185px;
  }
  .editor-layout {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .editor-toolbar .format-tools {
    display: none;
  }
  .document {
    padding: 30px;
  }
  .top-actions .date {
    display: none;
  }
  .version-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .task-info {
    grid-template-columns: 1fr;
  }
  .login-page {
    grid-template-columns: 38% 1fr;
  }
  .login-brand-panel {
    padding: 28px;
  }
  .login-quote h1 {
    font-size: 25px;
  }
  .login-art {
    transform: scale(0.8);
    transform-origin: left center;
  }
  .login-quote p {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: 0.2s;
    width: 220px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    width: 100%;
  }
  .topbar {
    height: 62px;
    padding: 0 20px;
  }
  .mobile-menu {
    display: block;
    background: transparent;
    color: #6f865f;
    font-size: 20px;
    margin-right: 10px;
  }
  .breadcrumb {
    gap: 7px;
    font-size: 11px;
  }
  .top-actions {
    gap: 12px;
  }
  .page {
    padding: 25px 20px;
  }
  .page-head {
    margin-bottom: 24px;
  }
  .page-head h1 {
    font-size: 21px;
  }
  .page-head p {
    font-size: 10px;
  }
  .btn {
    padding: 0 13px;
    font-size: 11px;
  }
  .dashboard-welcome {
    padding: 25px;
    min-height: 150px;
  }
  .welcome-copy h2 {
    font-size: 18px;
  }
  .welcome-copy p {
    font-size: 10px;
  }
  .welcome-art {
    display: none;
  }
  .summary-item {
    padding: 0 15px;
    gap: 10px;
  }
  .summary-icon {
    display: none;
  }
  .summary-item strong {
    font-size: 21px;
  }
  .summary-item small {
    font-size: 10px;
  }
  .work-grid {
    gap: 13px;
  }
  .work-card {
    padding: 18px;
  }
  .work-card h3 {
    font-size: 13px;
  }
  .work-card p {
    font-size: 10px;
  }
  .filter-bar {
    gap: 14px;
    flex-wrap: wrap;
  }
  .search {
    width: 100%;
  }
  .table-wrap {
    overflow: auto;
  }
  .table {
    min-width: 650px;
  }
  .form-main {
    padding: 23px;
  }
  .form-row {
    gap: 15px;
  }
  .type-option {
    padding: 13px;
  }
  .type-option .type-icon {
    font-size: 22px;
  }
  .type-option small {
    font-size: 9px;
  }
  .form-footer {
    gap: 15px;
  }
  .form-footer > span {
    display: none;
  }
  .form-footer .button-row {
    width: 100%;
    justify-content: flex-end;
  }
  .task-hero {
    padding: 25px;
  }
  .task-hero h2 {
    font-size: 18px;
  }
  .task-progress-value {
    font-size: 30px;
  }
  .step {
    font-size: 9px;
    min-width: 40px;
  }
  .step-num {
    width: 25px;
    height: 25px;
    font-size: 10px;
  }
  .info-panel {
    padding: 23px;
  }
  .editor-layout {
    height: calc(100vh - 62px);
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .editor-directory {
    width: 150px;
  }
  .directory-top {
    padding: 17px 13px;
  }
  .directory-top h2 {
    font-size: 12px;
  }
  .directory-tabs {
    gap: 15px;
    padding: 14px 13px 8px;
  }
  .chapter-list {
    padding: 8px 5px;
  }
  .chapter-item {
    font-size: 10px;
    padding: 10px 7px;
    gap: 5px;
  }
  .chapter-status {
    display: none;
  }
  .directory-bottom {
    padding: 12px 8px;
  }
  .editor-toolbar {
    padding: 10px;
    min-height: 58px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .editor-toolbar .button-row {
    gap: 4px;
  }
  .editor-toolbar .btn {
    min-height: 30px;
    padding: 0 8px;
    font-size: 10px;
  }
  .editor-toolbar .left .btn {
    width: 25px;
    padding: 0;
  }
  .editor-toolbar .divider {
    display: none;
  }
  .document {
    padding: 25px 20px;
  }
  .document-title {
    font-size: 21px;
    margin-bottom: 17px;
  }
  .document-body {
    font-size: 14px;
    line-height: 2.1;
  }
  .editor-footer {
    padding: 9px 12px;
    font-size: 9px;
  }
  .editor-footer span:last-child {
    display: none;
  }
  .version-layout {
    grid-template-columns: 1fr;
  }
  .version-list {
    display: flex;
    overflow: auto;
  }
  .version-item {
    min-width: 190px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .version-item.active {
    border-left: 0;
    border-bottom: 3px solid #6f966b;
    padding-left: 22px;
  }
  .version-preview {
    padding: 23px;
  }
  .setting-row {
    padding: 21px;
  }
  .login-page {
    display: block;
  }
  .login-brand-panel {
    display: none;
  }
  .login-form-panel {
    min-height: 100vh;
    padding: 30px;
  }
  .modal-body {
    padding: 23px;
  }
  .modal-head {
    padding: 21px 23px;
  }
  .modal-footer {
    padding: 17px 23px;
  }
  .modal-backdrop {
    padding: 16px;
  }
  .style-chip {
    padding: 7px 10px;
  }
  .settings-section h2 {
    padding: 21px;
  }
  .task-hero-head {
    gap: 10px;
  }
  .top-actions .text-link {
    display: none;
  }
}
@media (max-width: 460px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-card {
    min-height: 220px;
  }
  .new-work-card {
    min-height: 135px;
  }
  .summary-item {
    padding: 0 14px;
  }
  .summary-item strong {
    font-size: 19px;
  }
  .page-head .button-row {
    flex-direction: column;
    align-items: flex-end;
  }
  .type-option {
    gap: 8px;
  }
  .type-option small {
    display: none;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-directory {
    display: none;
  }
  .document {
    padding: 27px 23px;
  }
  .editor-toolbar .format-tools {
    display: flex;
  }
  .document-body {
    font-size: 15px;
  }
  .editor-toolbar .save-status {
    display: none;
  }
  .login-form-panel {
    padding: 26px;
  }
  .version-preview-head {
    align-items: flex-start;
  }
  .settings .setting-row {
    gap: 12px;
  }
  .setting-row p {
    font-size: 10px;
  }
  .notification {
    font-size: 15px;
  }
  .top-actions {
    gap: 7px;
  }
  .task-progress-value {
    font-size: 27px;
  }
  .task-hero h2 {
    font-size: 16px;
  }
  .task-hero p {
    font-size: 10px;
  }
}
