:root {
  --bg: #f6f4ec;
  --panel: #fffdf7;
  --ink: #1f2933;
  --muted: #6b7280;
  --line: #e4dcc9;
  --brand: #176b5b;
  --brand-dark: #0d3f36;
  --accent: #d97706;
  --soft: #e9f3ef;
  --shadow: 0 24px 80px rgba(31, 41, 51, 0.12);
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .workspace {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 8;
    padding: 14px 12px;
    background: rgba(246, 244, 236, 0.94);
    backdrop-filter: blur(12px);
  }

  .search-box {
    width: 100%;
    max-width: none;
  }

  .search-box input {
    min-width: 0;
    height: 50px;
    padding: 0 16px 0 44px;
    font-size: 16px;
    border-radius: 999px;
  }

  .doc-panel {
    display: block;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin: 14px 12px;
    padding: 22px 18px;
    overflow: hidden;
    border-radius: 22px;
  }

  .doc-main,
  .doc-content,
  .doc-body,
  .course-directory {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .doc-main > h1 {
    margin-top: 8px;
    font-size: clamp(32px, 10vw, 46px);
    line-height: 1.22;
    letter-spacing: -0.05em;
    overflow-wrap: anywhere;
  }

  .doc-tags {
    margin: 14px 0 24px;
  }

  .course-directory {
    font-size: 16px;
    line-height: 1.62;
  }

  .social-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 30px 0 18px;
    font-size: 18px;
    line-height: 1.45;
  }

  .course-home-top-intro,
  .course-home-intro-card,
  .course-home-free-card a,
  .course-home-main-card h2,
  .course-home-main-card a,
  .course-card h2,
  .course-card a {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .course-home-top-intro {
    margin: 16px 0 24px;
    padding: 14px 16px;
    font-size: 21px;
    line-height: 1.45;
  }

  .summary-copy {
    font-size: 18px;
    line-height: 1.75;
  }

  .summary-copy p {
    margin: 14px 0;
  }

  .course-directory hr {
    margin: 28px -18px;
  }

  .course-home-grid,
  .course-grid,
  .side-stack,
  .course-home-right-stack {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    gap: 18px;
  }

  .feature-card,
  .course-card {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
  }

  .course-card {
    padding: 18px 16px;
  }

  .course-home-main-card {
    min-height: 0;
    padding: 20px 16px;
  }

  .course-home-main-card h2 {
    margin-bottom: 18px;
    font-size: 23px;
    line-height: 1.45;
  }

  .course-home-main-card mark {
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }

  .course-home-main-card a,
  .course-home-free-card a,
  .course-card a {
    margin: 16px 0;
    font-size: 21px;
    line-height: 1.42;
  }

  .course-home-intro-card {
    min-height: 0;
    padding: 15px 16px;
    font-size: 21px;
    line-height: 1.45;
  }

  .course-home-free-card {
    min-height: 0;
    padding: 18px 16px;
  }

  .course-home-free-card a:first-child {
    margin-bottom: 18px;
  }

  .course-home-free-card a:not(:first-child) {
    margin-left: 0;
  }

  .vpn-card {
    display: grid;
    gap: 10px;
  }

  .free-materials-page,
  .knowledge-star-page,
  .emotion-directory-page,
  .vip-membership-page,
  .mindmap-page,
  .female-page,
  .cola-page,
  .books-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .free-top-grid,
  .free-file-grid,
  .female-main-split,
  .female-storage-row,
  .cola-main-split,
  .books-flow-grid {
    grid-template-columns: 1fr !important;
  }

  .free-color-card,
  .free-file-card {
    max-width: 100%;
  }

  .doc-content img,
  .inline-image,
  figure img,
  .mindmap-item img {
    max-width: 100%;
    height: auto;
  }

  .mindmap-pdf-item iframe {
    min-height: 520px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(23, 107, 91, 0.18), transparent 36rem),
    linear-gradient(135deg, #faf6eb 0%, #f1efe6 48%, #e9f3ef 100%);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.sidebar {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), #28997f);
  border-radius: 14px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(23, 107, 91, 0.24);
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
}

.new-doc-button {
  width: 100%;
  padding: 12px 14px;
  color: #fff;
  background: var(--brand-dark);
  border: 0;
  border-radius: 14px;
  cursor: default;
  font-weight: 700;
  margin-bottom: 18px;
}

.tree-empty {
  padding: 18px 14px;
  color: var(--muted);
  background: rgba(255, 253, 247, 0.72);
  border: 1px dashed var(--line);
  border-radius: 16px;
  text-align: center;
}

.tree-section {
  margin-bottom: 16px;
}

.tree-section-title {
  padding: 10px 10px 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
}

.tree-item:hover,
.tree-item.active {
  background: var(--soft);
  color: var(--brand-dark);
}

.tree-item.active {
  font-weight: 800;
}

.doc-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 34px;
  background: rgba(246, 244, 236, 0.82);
  border-bottom: 1px solid rgba(228, 220, 201, 0.76);
  backdrop-filter: blur(18px);
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  box-shadow: 0 10px 30px rgba(31, 41, 51, 0.06);
}

.search-box input:focus {
  border-color: rgba(23, 107, 91, 0.48);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  color: var(--muted);
  transform: translateY(-50%);
}

.publish-link {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 800;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.editor-chip {
  min-height: 38px;
  padding: 0 14px;
  color: var(--brand-dark);
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.editor-chip.strong {
  color: #fff;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.edit-status {
  margin: 18px 54px 0;
  padding: 14px 18px;
  color: #19613f;
  background: rgba(237, 248, 241, 0.92);
  border: 1px solid rgba(25, 97, 63, 0.14);
  border-radius: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.save-indicator {
  position: fixed;
  top: 92px;
  right: 28px;
  z-index: 30;
  min-width: 92px;
  padding: 10px 14px;
  color: #19613f;
  background: rgba(237, 248, 241, 0.96);
  border: 1px solid rgba(25, 97, 63, 0.14);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(31, 41, 51, 0.08);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.save-indicator[data-state="saving"] {
  color: #8a5310;
  background: rgba(255, 247, 230, 0.96);
  border-color: rgba(217, 119, 6, 0.18);
}

.admin-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 25, 31, 0.42);
  backdrop-filter: blur(8px);
}

.version-modal {
  position: fixed;
  inset: 0;
  z-index: 62;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 25, 31, 0.44);
  backdrop-filter: blur(8px);
}

.version-dialog {
  width: min(640px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  padding: 24px;
  background: var(--panel);
  border: 1px solid rgba(228, 220, 201, 0.96);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.version-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.version-dialog h3 {
  margin: 8px 0 8px;
  font-size: 24px;
}

.version-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.version-list {
  display: grid;
  gap: 10px;
}

.version-empty {
  padding: 18px;
  color: var(--muted);
  background: rgba(246, 244, 236, 0.68);
  border: 1px dashed var(--line);
  border-radius: 16px;
  line-height: 1.7;
}

.version-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(228, 220, 201, 0.86);
  border-radius: 16px;
}

.version-item div {
  display: grid;
  gap: 4px;
}

.version-item strong {
  color: var(--brand-dark);
}

.version-item span {
  color: var(--muted);
  font-size: 13px;
}

.version-rollback-button {
  min-height: 34px;
  padding: 0 12px;
  color: #a33a32;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.admin-auth-dialog {
  width: min(460px, 100%);
  padding: 24px;
  background: var(--panel);
  border: 1px solid rgba(228, 220, 201, 0.96);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.admin-auth-eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-auth-dialog h3 {
  margin: 10px 0 10px;
  font-size: 24px;
}

.admin-auth-copy {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.admin-auth-error {
  margin-top: 10px;
  color: #a33a32;
  font-size: 13px;
  font-weight: 700;
}

.is-editing .doc-panel,
.is-editing .hero,
.is-editing .search-results {
  position: relative;
}

.is-editing .tree-item,
.is-editing .doc-content h1,
.is-editing .doc-content h2,
.is-editing .doc-content h3,
.is-editing .doc-content h4,
.is-editing .doc-content p,
.is-editing .doc-content blockquote,
.is-editing .doc-content li,
.is-editing .doc-content span.inline-text-editable,
.is-editing .doc-content strong.inline-text-editable,
.is-editing .doc-content mark.inline-text-editable,
.is-editing .doc-content figcaption.inline-text-editable,
.is-editing #docTitle {
  outline: 1px dashed transparent;
  transition: outline-color 0.15s ease, background-color 0.15s ease;
}

.is-editing .tree-item:hover,
.is-editing .doc-content h1:hover,
.is-editing .doc-content h2:hover,
.is-editing .doc-content h3:hover,
.is-editing .doc-content h4:hover,
.is-editing .doc-content p:hover,
.is-editing .doc-content blockquote:hover,
.is-editing .doc-content li:hover,
.is-editing .doc-content span.inline-text-editable:hover,
.is-editing .doc-content strong.inline-text-editable:hover,
.is-editing .doc-content mark.inline-text-editable:hover,
.is-editing .doc-content figcaption.inline-text-editable:hover,
.is-editing .doc-content a:hover,
.is-editing .doc-content img:hover,
.is-editing #docTitle:hover {
  outline-color: rgba(23, 107, 91, 0.34);
  background: rgba(233, 243, 239, 0.46);
}

.is-editing .tree-item[draggable="true"] {
  cursor: grab;
}

.is-editing .tree-item.tree-item-dragging {
  opacity: 0.48;
  cursor: grabbing;
}

.tree-node-drop-target > .tree-item-row .tree-item {
  outline: 2px dashed rgba(23, 107, 91, 0.5);
  background: rgba(233, 243, 239, 0.72);
}

.editable-active {
  outline: 2px solid rgba(23, 107, 91, 0.45) !important;
  background: rgba(233, 243, 239, 0.74) !important;
  border-radius: 10px;
}

.inline-selected {
  outline: 2px solid rgba(217, 119, 6, 0.45) !important;
  background: rgba(255, 244, 214, 0.78) !important;
  border-radius: 10px;
}

.inline-editing {
  cursor: text !important;
  box-shadow: inset 0 0 0 1px rgba(23, 107, 91, 0.16);
}

.is-editing .doc-content a,
.is-editing .doc-content img {
  cursor: pointer;
}

.doc-edit-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid rgba(228, 220, 201, 0.92);
  border-radius: 16px;
}

.doc-edit-banner-copy {
  display: grid;
  gap: 4px;
  flex: 1 1 420px;
}

.doc-edit-banner-copy strong {
  font-size: 14px;
}

.doc-edit-banner-copy span {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.6;
}

.doc-edit-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-doc-banner {
  margin-bottom: 14px;
}

.doc-edit-button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--brand-dark);
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.doc-edit-button.danger {
  color: #a33a32;
}

.inline-block-inserter {
  display: block;
  width: 32px;
  height: 32px;
  margin: 8px auto 14px;
  color: var(--brand-dark);
  background: rgba(255, 253, 247, 0.96);
  border: 1px dashed rgba(23, 107, 91, 0.26);
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.is-editing .doc-body:hover .inline-block-inserter,
.is-editing .inline-block-inserter:focus,
.is-editing .inline-block-inserter:hover {
  opacity: 1;
}

.inline-block-inserter:hover {
  background: rgba(233, 243, 239, 0.96);
  transform: scale(1.04);
}

.inline-block-menu {
  position: absolute;
  z-index: 35;
  display: grid;
  gap: 8px;
  min-width: 132px;
  padding: 10px;
  background: rgba(20, 28, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(31, 41, 51, 0.18);
}

.inline-block-menu-item {
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.inline-block-menu-item:hover {
  background: rgba(69, 170, 141, 0.22);
}

.inline-context-menu {
  position: absolute;
  z-index: 44;
  display: grid;
  gap: 6px;
  min-width: 178px;
  padding: 10px;
  background: rgba(20, 28, 34, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(31, 41, 51, 0.2);
}

.inline-context-item {
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.inline-context-item:hover {
  background: rgba(69, 170, 141, 0.22);
}

.inline-context-item.danger {
  color: #ffb8b2;
}

.is-editing .doc-content p.inline-editing:empty::before,
.is-editing .doc-content blockquote.inline-editing:empty::before {
  content: "输入 / 可插入标题、图片或附件";
  color: var(--muted);
}

.child-doc-manager {
  margin-top: 22px;
  padding: 18px;
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid rgba(228, 220, 201, 0.92);
  border-radius: 18px;
}

.child-doc-manager-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.child-doc-manager-head strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-dark);
  font-size: 14px;
}

.child-doc-manager-head span {
  color: #4b5563;
  font-size: 13px;
}

.child-doc-manager-list {
  display: grid;
  gap: 10px;
}

.child-doc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.child-doc-card-dragging {
  opacity: 0.5;
}

.child-doc-card-drop-target {
  outline: 2px dashed rgba(23, 107, 91, 0.44);
  background: rgba(233, 243, 239, 0.7);
}

.child-doc-open {
  flex: 1;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.child-doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.child-doc-action {
  min-width: 34px;
  height: 34px;
  color: var(--brand-dark);
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.child-doc-action.danger {
  color: #a33a32;
}

.child-doc-empty {
  padding: 14px 6px 4px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.summary-copy-emphasis,
.summary-copy-emphasis strong {
  color: #e53935;
}

.inline-red {
  color: #d93025;
  font-weight: 700;
}

.inline-highlight {
  color: inherit;
  background: rgba(255, 222, 89, 0.72);
  border-radius: 4px;
  padding: 0 2px;
}

.inline-node-toolbar {
  position: absolute;
  z-index: 34;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid rgba(228, 220, 201, 0.92);
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(31, 41, 51, 0.12);
}

.inline-quick-add {
  position: absolute;
  z-index: 34;
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--brand-dark);
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid rgba(228, 220, 201, 0.92);
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.1);
}

.inline-node-tool {
  min-height: 30px;
  padding: 0 10px;
  color: var(--brand-dark);
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.inline-node-tool.danger {
  color: #a33a32;
}

.inline-text-toolbar {
  position: absolute;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(20, 28, 38, 0.94);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.inline-text-tool {
  min-height: 30px;
  padding: 0 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.inline-text-tool:hover {
  background: rgba(255, 255, 255, 0.16);
}

.inline-text-tool[data-inline-text-tool="heading"],
.inline-text-tool[data-inline-text-tool="quote"],
.inline-text-tool[data-inline-text-tool="paragraph"] {
  color: #ffe9a8;
}

.inline-asset-editor {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 35;
  width: min(420px, calc(100vw - 48px));
  padding: 18px;
  background: rgba(255, 253, 247, 0.98);
  border: 1px solid rgba(228, 220, 201, 0.9);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(31, 41, 51, 0.18);
  backdrop-filter: blur(14px);
}

.inline-asset-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.inline-asset-editor-eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inline-asset-editor-head h3 {
  margin: 6px 0 0;
  color: var(--brand-dark);
  font-size: 18px;
}

.inline-asset-editor-body {
  display: grid;
  gap: 12px;
}

.inline-asset-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.tree-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.tree-item-row .tree-item {
  flex: 1;
}

.tree-item-label {
  min-width: 0;
}

.tree-sort-actions {
  display: flex;
  gap: 6px;
}

.tree-children {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px dashed rgba(23, 107, 91, 0.2);
}

.tree-item-child {
  font-size: 14px;
}

.tree-sort-button {
  width: 28px;
  height: 28px;
  color: var(--brand-dark);
  background: rgba(255, 253, 247, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.tree-sort-button.danger {
  color: #a33a32;
}

.editor-drawer {
  position: fixed;
  top: 92px;
  right: 22px;
  z-index: 20;
  width: min(420px, calc(100vw - 44px));
  max-height: calc(100vh - 114px);
  overflow: auto;
  padding: 20px;
  background: rgba(255, 253, 247, 0.98);
  border: 1px solid rgba(228, 220, 201, 0.82);
  border-radius: 26px;
  box-shadow: 0 24px 80px rgba(31, 41, 51, 0.18);
  backdrop-filter: blur(14px);
}

.editor-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.editor-drawer-eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editor-drawer-head h3 {
  margin: 6px 0 0;
  color: var(--brand-dark);
  font-size: 22px;
}

.editor-close-button {
  min-height: 36px;
  padding: 0 12px;
  color: var(--brand-dark);
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.editor-drawer-body {
  display: grid;
  gap: 14px;
}

.editor-field {
  display: grid;
  gap: 8px;
}

.editor-field span {
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.editor-field input,
.editor-field select,
.editor-field textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  font: inherit;
}

.editor-field textarea {
  resize: vertical;
  line-height: 1.7;
}

.editor-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.editor-divider {
  height: 1px;
  background: rgba(228, 220, 201, 0.92);
}

.editor-upload-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(233, 243, 239, 0.58);
  border: 1px solid rgba(23, 107, 91, 0.18);
  border-radius: 18px;
}

.editor-upload-box strong {
  color: var(--brand-dark);
}

.editor-upload-box p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.editor-upload-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.editor-upload-status[data-state="saving"] {
  color: var(--accent);
}

.editor-upload-status[data-state="saved"] {
  color: var(--brand);
  font-weight: 800;
}

.editor-upload-status[data-state="error"] {
  color: #b9463a;
  font-weight: 800;
}

.editor-panel-button {
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  background: var(--brand-dark);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
}

.editor-panel-button.secondary {
  color: var(--brand-dark);
  background: #fffaf0;
  border: 1px solid var(--line);
}

.editor-panel-button.danger {
  background: #b9463a;
}

.admin-shell {
  min-height: 100vh;
  padding: 40px 28px 60px;
  background:
    radial-gradient(circle at top left, rgba(23, 107, 91, 0.18), transparent 36rem),
    linear-gradient(135deg, #faf6eb 0%, #f1efe6 48%, #e9f3ef 100%);
}

.admin-topbar,
.admin-card {
  background: rgba(255, 253, 247, 0.84);
  border: 1px solid rgba(228, 220, 201, 0.72);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 28px;
  padding: 34px;
  max-width: 1180px;
}

.admin-topbar h1 {
  margin: 8px 0 12px;
  color: var(--brand-dark);
  font-size: clamp(30px, 4vw, 48px);
}

.admin-topbar p {
  max-width: 720px;
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.72;
}

.admin-eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.admin-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  background: var(--brand);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
}

.admin-link-button.secondary {
  color: var(--brand-dark);
  background: #fffaf0;
  border: 1px solid var(--line);
}

.admin-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.admin-card {
  padding: 28px;
}

.admin-card-wide {
  grid-column: 1 / -1;
}

.admin-card h2 {
  margin: 0 0 16px;
  color: var(--brand-dark);
  font-size: 24px;
}

.admin-list {
  margin: 0;
  padding-left: 20px;
  color: #374151;
  line-height: 1.8;
}

.admin-list.ordered {
  padding-left: 24px;
}

.admin-shell-app {
  padding-bottom: 40px;
}

.admin-shell-simple .admin-topbar {
  max-width: 1380px;
}

.admin-simple-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1380px;
  margin: 0 auto 20px;
}

.admin-simple-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  max-width: 1380px;
  margin: 0 auto;
}

.admin-simple-sidebar,
.admin-simple-editor-wrap > .admin-card {
  background: rgba(255, 253, 247, 0.84);
  border: 1px solid rgba(228, 220, 201, 0.72);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.admin-simple-sidebar {
  padding: 22px;
  align-self: start;
  position: sticky;
  top: 24px;
}

.admin-simple-editor-wrap {
  display: grid;
  gap: 20px;
}

.admin-simple-textarea {
  width: 100%;
  min-height: 520px;
  padding: 16px 18px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  resize: vertical;
  font: inherit;
  line-height: 1.8;
}

.admin-simple-textarea:focus {
  border-color: rgba(23, 107, 91, 0.48);
}

.admin-field-wide {
  grid-column: 1 / -1;
}

.admin-auth-card {
  max-width: 1320px;
  margin: 0 auto 24px;
  padding: 24px 28px;
  background: rgba(255, 253, 247, 0.84);
  border: 1px solid rgba(228, 220, 201, 0.72);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.admin-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-status-box {
  margin-top: 16px;
  padding: 14px 16px;
  color: #374151;
  background: #f5f6fa;
  border-radius: 14px;
  line-height: 1.7;
}

.admin-status-box.success {
  background: #edf8f1;
  color: #19613f;
}

.admin-status-box.error {
  background: #fff0ef;
  color: #a33a32;
}

.admin-app-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.admin-sidebar-panel,
.admin-main-panel {
  min-width: 0;
}

.admin-sidebar-panel,
.admin-main-panel > .admin-card,
.admin-main-panel > .admin-empty-state {
  background: rgba(255, 253, 247, 0.84);
  border: 1px solid rgba(228, 220, 201, 0.72);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.admin-sidebar-panel {
  padding: 22px;
  align-self: start;
  position: sticky;
  top: 24px;
}

.admin-main-panel {
  display: grid;
  gap: 20px;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-panel-head.inner {
  margin-bottom: 14px;
}

.admin-panel-head h2,
.admin-panel-head h3 {
  margin: 0;
  color: var(--brand-dark);
}

.admin-panel-head span {
  color: var(--muted);
  font-weight: 700;
}

.admin-panel-head span.success {
  color: #19613f;
}

.admin-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-field.compact {
  margin-bottom: 0;
}

.admin-field span {
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.admin-field input,
.admin-field select,
.admin-json-preview {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  font: inherit;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-json-preview:focus {
  border-color: rgba(23, 107, 91, 0.48);
}

.is-editing .doc-body {
  position: relative;
  min-height: 120px;
}

.is-editing .doc-body::after {
  content: "双击空白处可直接新增段落";
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  opacity: 0.78;
}

.admin-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-doc-list {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 260px);
  overflow: auto;
  padding-right: 4px;
}

.admin-doc-item {
  padding: 14px;
  color: var(--ink);
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
}

.admin-doc-item.active {
  border-color: rgba(23, 107, 91, 0.4);
  background: var(--soft);
}

.admin-doc-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-doc-item-head strong {
  color: var(--brand-dark);
}

.admin-doc-item-head span,
.admin-doc-item-meta {
  color: var(--muted);
  font-size: 12px;
}

.admin-doc-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.admin-doc-item-tags em {
  padding: 4px 8px;
  color: var(--brand-dark);
  background: #eef4f0;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
}

.admin-nav-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-nav-card {
  padding: 18px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.admin-nav-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.admin-nav-card-head strong {
  color: var(--brand-dark);
}

.admin-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.admin-nav-helper {
  margin-top: -4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.admin-config-preview {
  margin-top: 18px;
}

.admin-config-preview .admin-panel-head {
  margin-bottom: 12px;
}

.admin-empty-state {
  padding: 40px 28px;
  color: var(--muted);
  text-align: center;
}

.admin-editor {
  display: grid;
  gap: 20px;
}

.admin-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-action-button {
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-action-button.secondary {
  color: var(--brand-dark);
  background: #fffaf0;
  border: 1px solid var(--line);
}

.admin-hint-grid {
  display: grid;
  gap: 10px;
}

.admin-check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  line-height: 1.7;
}

.admin-check-item.ok {
  color: #19613f;
  background: #edf8f1;
}

.admin-check-item.warn {
  color: #8b5c12;
  background: #fff6e8;
}

.admin-check-item strong {
  flex: 0 0 auto;
}

.admin-history-list {
  display: grid;
  gap: 12px;
}

.admin-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.admin-history-item strong {
  color: var(--brand-dark);
}

.admin-history-item p {
  margin: 6px 0 0;
  color: #4b5563;
  line-height: 1.6;
}

.admin-compare-box {
  padding: 16px 18px;
  color: #374151;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 16px;
  line-height: 1.8;
}

.admin-compare-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-compare-head strong {
  color: var(--brand-dark);
}

.admin-compare-head span {
  color: var(--muted);
  font-size: 13px;
}

.admin-compare-list {
  margin: 0;
  padding-left: 18px;
}

.admin-hint-card {
  padding: 14px 16px;
  color: #374151;
  background: #f5f6fa;
  border-radius: 14px;
  line-height: 1.7;
}

.admin-structure-list {
  display: grid;
  gap: 12px;
}

.admin-block-editor-list {
  display: grid;
  gap: 14px;
}

.admin-block-editor-card {
  padding: 16px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.admin-block-editor-card.draggable {
  cursor: move;
}

.admin-block-editor-card.dragging {
  opacity: 0.55;
  border-color: rgba(23, 107, 91, 0.4);
  background: #eef7f3;
}

.admin-block-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-block-editor-head strong {
  color: var(--brand-dark);
}

.admin-block-editor-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-block-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-inline-select {
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.admin-mini-button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--brand-dark);
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.admin-mini-button.danger {
  color: #a33a32;
  border-color: rgba(163, 58, 50, 0.2);
  background: #fff5f3;
}

.admin-block-textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  resize: vertical;
  font: inherit;
  line-height: 1.7;
}

.admin-block-textarea.invalid {
  border-color: #d85b52;
  background: #fff1ef;
}

.admin-block-note {
  padding: 12px 14px;
  color: var(--muted);
  background: #f5f6fa;
  border-radius: 14px;
  line-height: 1.7;
}

.admin-structure-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.admin-structure-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-dark);
}

.admin-structure-item p {
  margin: 0;
  color: #4b5563;
  line-height: 1.7;
}

.admin-structure-index {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), #28997f);
  border-radius: 12px;
  font-weight: 900;
}

.admin-json-preview {
  min-height: 420px;
  resize: vertical;
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  line-height: 1.6;
}

.admin-preview-surface {
  padding: 22px;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.admin-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-preview-head strong {
  color: var(--brand-dark);
  font-size: 22px;
}

.admin-preview-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-preview-body {
  color: #2f353d;
}

.admin-preview-heading {
  margin: 18px 0 10px;
  color: var(--brand-dark);
}

.admin-preview-paragraph,
.admin-preview-quote,
.admin-preview-list,
.admin-preview-file,
.admin-preview-code,
.admin-preview-table,
.admin-preview-divider {
  margin: 0 0 16px;
}

.admin-preview-paragraph,
.admin-preview-quote,
.admin-preview-file {
  line-height: 1.8;
}

.admin-preview-quote {
  padding: 12px 16px;
  background: #f5f6fa;
  border-left: 4px solid rgba(23, 107, 91, 0.45);
  border-radius: 12px;
}

.admin-preview-list {
  padding-left: 22px;
  line-height: 1.8;
}

.admin-preview-figure {
  margin: 0 0 18px;
}

.admin-preview-figure img {
  display: block;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.admin-preview-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.admin-preview-file a {
  color: #2d62ff;
  text-decoration: none;
  font-weight: 800;
}

.admin-preview-code {
  padding: 14px 16px;
  background: #f5f6fa;
  border-radius: 14px;
  overflow: auto;
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  white-space: pre-wrap;
}

.admin-preview-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-preview-table th,
.admin-preview-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.admin-list-empty {
  padding: 18px 14px;
  color: var(--muted);
  text-align: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 52px 54px 30px;
}

.hero-copy,
.hero-card,
.doc-panel,
.search-results {
  background: rgba(255, 253, 247, 0.78);
  border: 1px solid rgba(228, 220, 201, 0.72);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 44px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 14px 0;
  color: var(--brand-dark);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 760px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.primary-action {
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
}

.secondary-action {
  color: var(--brand-dark);
  background: #fffaf0;
  border: 1px solid var(--line);
}

.hero-card {
  align-self: start;
  padding: 28px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.status-row strong {
  color: var(--brand);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.metric-grid div {
  padding: 18px 12px;
  background: #f8f3e8;
  border-radius: 18px;
  text-align: center;
}

.metric-grid strong {
  display: block;
  color: var(--brand-dark);
  font-size: 26px;
}

.metric-grid span {
  color: var(--muted);
  font-size: 12px;
}

.doc-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 28px;
  margin: 34px 54px;
  padding: 42px;
}

.doc-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.doc-main h1 {
  margin: 12px 0;
  color: var(--brand-dark);
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

[data-fit-single-line] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.doc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 28px;
}

.tag {
  padding: 6px 10px;
  color: var(--brand-dark);
  background: var(--soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.doc-content {
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.doc-content h2 {
  margin-top: 34px;
  color: var(--brand-dark);
  font-size: 25px;
}

.doc-content h3 {
  margin-top: 26px;
  color: #26443d;
}

.doc-content h4 {
  margin: 22px 0 12px;
  color: #1f3f39;
  font-size: 19px;
}

.doc-content ul,
.doc-content ol {
  padding-left: 22px;
}

.doc-content li {
  margin: 8px 0;
  position: relative;
}

.doc-content li[data-list-indent="1"],
.doc-content li[data-list-indent="2"],
.doc-content li[data-list-indent="3"],
.doc-content li[data-list-indent="4"] {
  list-style-position: outside;
}

.is-editing .doc-content li[data-list-indent]::before {
  content: attr(data-list-indent) "级";
  position: absolute;
  top: -10px;
  right: 0;
  padding: 2px 6px;
  color: var(--brand-dark);
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid rgba(23, 107, 91, 0.18);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
}

.is-editing .doc-content li[data-list-indent]:hover::before,
.is-editing .doc-content li.inline-editing[data-list-indent]::before {
  opacity: 1;
}

.doc-content table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
}

.doc-content th,
.doc-content td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.doc-content th {
  background: #f1ead9;
}

.doc-content blockquote {
  margin: 22px 0;
  padding: 16px 18px;
  background: #f3f8f5;
  border-left: 4px solid var(--brand);
  border-radius: 12px;
}

.doc-content a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 107, 91, 0.28);
}

.source-link {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  background: #f3f8f5;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.source-link a {
  border-bottom: 0;
}

.file-link {
  display: inline-flex;
  padding: 10px 14px;
  background: var(--brand-dark);
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px;
}

.doc-content figure {
  margin: 24px 0;
}

.doc-content img,
.inline-image {
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(31, 41, 51, 0.1);
}

.doc-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.intro-document {
  max-width: 920px;
  margin: 0 auto;
  color: #252b33;
  font-family: "PingFang SC", "Microsoft YaHei", "Avenir Next", sans-serif;
  font-size: 18px;
  line-height: 1.92;
}

.intro-document p {
  margin: 16px 0;
}

.intro-document h2 {
  margin-top: 38px;
  padding-top: 10px;
  color: #152f2a;
  font-size: 28px;
}

.intro-document h3,
.intro-document h4 {
  color: #153b34;
}

.intro-document h4 {
  font-size: 18px;
}

.intro-document strong {
  color: #17212b;
  font-weight: 900;
}

.intro-document a {
  color: #1764f6;
  border-bottom: 1px solid rgba(23, 100, 246, 0.28);
}

.intro-document hr,
.intro-document p:has(> strong):empty {
  border: 0;
}

.intro-document .inline-image {
  display: block;
  width: min(100%, 560px);
  margin: 36px auto 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(6, 22, 38, 0.2);
}

.knowledge-star-page {
  max-width: 860px;
  margin: 0 auto;
  color: #3a3f4a;
  font-family: "PingFang SC", "Microsoft YaHei", "Avenir Next", sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

.knowledge-star-page p {
  margin: 8px 0;
}

.knowledge-star-page hr {
  height: 1px;
  margin: 22px 0;
  background: #e7eaf0;
  border: 0;
}

.knowledge-star-page a {
  color: #5979e8;
  border-bottom: 0;
  font-weight: 700;
}

.knowledge-star-page h2 {
  margin: 0 0 14px;
  color: #4b4f5a;
  font-size: 18px;
  font-weight: 800;
}

.emotion-directory-page {
  max-width: 1158px;
  margin: 0 auto;
  padding: 10px 8px 40px;
  color: #1f2937;
}

.emotion-page-title {
  margin: 0 0 22px;
  color: #232831;
  font-size: clamp(34px, 4.9vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.emotion-social-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 14px;
  background: linear-gradient(90deg, #e8f6df 0%, #ddf1d3 100%);
  border-radius: 3px;
  font-size: 18px;
  line-height: 1.45;
}

.emotion-social-bar a,
.emotion-vip-line a,
.emotion-link-list a,
.emotion-footer-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

.emotion-social-bar strong {
  color: #ef4444;
  font-size: 1.15em;
}

.emotion-vip-line {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.45;
}

.emotion-copy,
.emotion-package-list p,
.emotion-benefit-list,
.emotion-price-line,
.emotion-benefit-box {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.72;
  font-weight: 650;
}

.emotion-copy-red,
.emotion-red {
  color: #ef4444;
}

.emotion-link-list {
  display: grid;
  gap: 22px;
  margin: 22px 0 26px;
}

.emotion-link-list a {
  font-size: 28px;
  line-height: 1.35;
}

.emotion-package-list {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.emotion-highlight-inline,
.emotion-highlight-block {
  display: inline-block;
  margin: 8px 0 18px;
  padding: 2px 5px 4px;
  color: #ef4444;
  background: #ffe246;
  box-shadow: inset 0 -3px 0 #f59e0b;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.6;
}

.emotion-highlight-block {
  display: block;
  width: fit-content;
  color: #111827;
  font-size: 24px;
  white-space: nowrap;
}

.emotion-price-line span {
  color: #ef4444;
}

.emotion-benefit-box {
  display: inline-block;
  padding: 7px 14px;
  background: #ffd2d7;
}

.emotion-benefit-list {
  margin-top: 2px;
  padding-left: 32px;
}

.vip-membership-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 8px 48px;
  color: #20242b;
  font-family: "PingFang SC", "Microsoft YaHei", "Avenir Next", sans-serif;
}

.vip-membership-page h1 {
  margin: 0 0 28px;
  color: #232831;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.16;
  font-weight: 950;
}

.vip-card {
  margin: 22px 0;
  padding: 24px 26px;
  border: 1.5px solid #ffe13b;
  border-radius: 14px;
  background: #fffdf1;
}

.vip-card h2 {
  margin: 0 0 16px;
  color: #20242b;
  font-size: 25px;
  line-height: 1.45;
  font-weight: 950;
}

.vip-card p {
  margin: 12px 0;
  font-size: 21px;
  line-height: 1.72;
  font-weight: 650;
}

.vip-card-highlight {
  background: #fff3f3;
}

.vip-red,
.vip-price span {
  color: #ef3b35;
}

.vip-benefit {
  display: inline-block;
  padding: 4px 10px;
  background: #ffd4d4;
}

.vip-highlight-line {
  display: inline;
  padding: 4px 8px;
  background: #ffe91f;
  font-size: 28px !important;
  font-style: italic;
  font-weight: 950 !important;
}

.mindmap-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 8px 50px;
  color: #20242b;
  font-family: "PingFang SC", "Microsoft YaHei", "Avenir Next", sans-serif;
}

.mindmap-page h1 {
  margin: 0 0 24px;
  color: #232831;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.14;
  font-weight: 950;
}

.mindmap-social-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 0 0 24px;
  padding: 8px 14px;
  background: linear-gradient(90deg, #e8f6df 0%, #ddf1d3 100%);
  border-radius: 3px;
  font-size: 18px;
  line-height: 1.45;
}

.mindmap-social-line a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.mindmap-social-line strong {
  color: #ef4444;
  font-size: 1.15em;
}

.mindmap-file-list {
  display: grid;
  gap: 26px;
}

.mindmap-item {
  margin: 0;
  padding: 18px;
  border: 1.5px solid #ffe13b;
  border-radius: 14px;
  background: #fffef6;
}

.mindmap-item figcaption,
.mindmap-item h2 {
  margin: 0 0 14px;
  color: #1764f6;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 950;
}

.mindmap-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #fff;
}

.mindmap-pdf-link {
  display: inline-block;
  margin: 0 0 14px;
  color: #1764f6;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.mindmap-pdf-item iframe {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.emotion-benefit-list li::marker {
  color: #2563eb;
}

.emotion-benefit-list strong {
  color: #ef4444;
}

.emotion-footer-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 32px;
  border-bottom: 3px solid currentColor;
}

.ks-page-title {
  margin: 0 0 10px;
  color: #2d3440;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.ks-meta-line {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  color: #9a9fad;
  font-size: 12px;
}

.ks-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 5px 10px;
  margin-bottom: 12px;
  background: #dff1d7;
  border-radius: 4px;
  color: #657060;
  font-size: 12px;
  line-height: 1.4;
}

.ks-topbar strong {
  color: #e0543e;
}

.ks-member-copy {
  margin-top: 18px;
  color: #e66858;
  font-weight: 800;
}

.ks-member-copy strong {
  color: #e66858;
}

.ks-section {
  margin: 18px 0;
}

.ks-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: start;
}

.ks-table-card table {
  width: 100%;
  border-collapse: collapse;
  background: #fffdfa;
  font-size: 11px;
  line-height: 1.5;
}

.ks-table-card th,
.ks-table-card td {
  padding: 4px 6px;
  border: 1px solid #3b3b3b;
  vertical-align: top;
}

.ks-table-card th {
  background: #f6edc8;
  color: #4b4f5a;
}

.ks-table-card .emphasis {
  color: #e05a50;
  font-weight: 800;
}

.ks-link-stack {
  display: grid;
  gap: 12px;
}

.ks-link-card,
.ks-banner,
.ks-panel {
  padding: 14px 16px;
  border: 1px solid #f0d1c9;
  border-radius: 8px;
}

.ks-link-card a {
  display: block;
  margin: 8px 0;
}

.ks-link-card-title {
  margin-bottom: 6px;
  color: #f08945;
  font-weight: 800;
}

.tone-pink {
  background: #fde7e4;
}

.tone-yellow {
  background: #fdf0d1;
}

.tone-blue {
  background: #dfe8ff;
}

.tone-green {
  background: #ddf4d6;
}

.tone-rose {
  background: #fce0df;
}

.tone-amber {
  background: #fbead0;
}

.tone-peach {
  background: #fde6de;
}

.ks-banner {
  margin: 18px 0;
}

.ks-banner p {
  margin: 4px 0;
}

.ks-banner strong {
  color: #e66858;
}

.knowledge-star-page .ks-section:first-of-type h2,
.knowledge-star-page .ks-section h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  color: #4b4f5a;
  font-size: 18px;
  font-weight: 800;
}

.ks-copy-block {
  margin: 14px 0;
}

.ks-inline-tag {
  display: inline-block;
  padding: 3px 8px;
  margin: 12px 0;
  color: #e57c52;
  background: #dbf0d2;
  border-radius: 4px;
  font-weight: 800;
}

.ks-panels {
  margin: 6px 0 14px;
}

.ks-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.ks-panel p {
  margin: 0;
}

.ks-icon-list,
.ks-number-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.ks-icon-list li,
.ks-number-list li {
  margin: 8px 0;
}

.ks-price-row {
  margin: 6px 0;
  color: #4b4f5a;
}

.ks-price-highlight {
  margin: 10px 0 14px;
  color: #ea6d59;
  font-weight: 800;
}

.ks-price-highlight span {
  margin-right: 6px;
}

.ks-price-highlight strong {
  margin-left: 6px;
  color: #e66858;
}

.ks-price-highlight em {
  margin-left: 6px;
  font-style: normal;
}

.closing-copy {
  margin-top: 24px;
}

.ks-poster-wrap {
  margin: 18px 0 28px;
}

.ks-poster {
  width: 132px;
  max-width: 100%;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.ks-footer-card {
  border: 1px solid #e4e8ef;
  border-radius: 6px;
  overflow: hidden;
  background: #fafbfd;
}

.ks-footer-tabs {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: #6e7684;
  font-size: 12px;
  background: #f4f6fa;
  border-bottom: 1px solid #e4e8ef;
}

.ks-footer-entry {
  padding: 12px;
  color: #4c5566;
  font-size: 12px;
}

.ks-like-wrap {
  display: flex;
  justify-content: center;
  padding: 26px 0 6px;
}

.ks-like-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #6284f5;
  background: #fff;
  border: 2px solid #8ea8ff;
  border-radius: 50%;
  font-size: 20px;
}

.cola-page {
  max-width: 860px;
  margin: 0 auto;
  color: #3a342d;
  font-family: "PingFang SC", "Microsoft YaHei", "Avenir Next", sans-serif;
  font-size: 14px;
  line-height: 1.75;
}

.cola-doc-head h1 {
  margin: 0;
  color: #202431;
  font-size: 34px;
  line-height: 1.18;
}

.cola-social-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 28px 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.cola-social-line a {
  color: #6e58f4;
  text-decoration: none;
}

.cola-social-line strong {
  color: #d75d45;
}

.cola-heading {
  margin-bottom: 20px;
}

.cola-heading p {
  margin: 6px 0;
  color: #2d313d;
  font-size: 20px;
  font-weight: 800;
}

.cola-heading strong {
  color: inherit;
}

.cola-poster-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
}

.cola-poster-left {
  display: grid;
  gap: 18px;
}

.cola-poster-banner,
.cola-poster-red,
.cola-poster-dark,
.cola-shot-card,
.cola-long-card {
  margin: 0;
}

.cola-poster-banner img,
.cola-poster-red img,
.cola-poster-dark img,
.cola-shot-card img,
.cola-long-card img {
  display: block;
  width: 100%;
}

.cola-poster-banner img,
.cola-poster-red img,
.cola-poster-dark img {
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.cola-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  gap: 24px;
  align-items: start;
  margin: 0 0 20px;
}

.cola-info-grid.lower {
  margin-top: 6px;
}

.cola-info-card,
.cola-copy-card,
.cola-footer-box {
  padding: 14px 16px;
  border-radius: 10px;
}

.cola-info-card {
  border: 1px solid #edd7c4;
}

.cola-info-card.blue {
  background: #e9eefc;
}

.cola-info-card.peach {
  background: #f9e1dc;
}

.cola-info-card.yellow {
  background: #fff7bf;
}

.cola-info-card.plain {
  padding: 0;
  border: 0;
  background: transparent;
}

.cola-info-title {
  margin: 0 0 12px;
  color: #272b39;
  font-size: 18px;
  font-weight: 800;
}

.cola-info-title.strong {
  color: #2b2d37;
}

.cola-info-body p {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.7;
}

.cola-info-body .accent {
  color: #e35d4a;
  font-weight: 800;
}

.cola-info-body .strong {
  font-weight: 900;
}

.cola-highlight-line {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.7;
}

.cola-highlight-line span {
  font-weight: 800;
}

.cola-highlight-line strong {
  display: inline-block;
  width: fit-content;
  padding: 2px 6px;
  color: #1e1e1e;
  background: #ffe75d;
  font-size: 18px;
}

.cola-highlight-paragraphs p {
  display: inline;
  margin: 0 8px 0 0;
  padding: 2px 6px;
  color: #2b2f3a;
  background: #f5d8af;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.8;
}

.cola-copy-card ol,
.cola-info-body ul {
  margin: 0;
  padding-left: 18px;
}

.cola-copy-card ol {
  margin: 6px 0;
}

.cola-directory-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cola-directory-item {
  margin: 0;
  padding: 7px 0;
  color: #493c2d;
  line-height: 1.65;
  border-bottom: 1px dashed rgba(171, 141, 107, 0.26);
  word-break: break-word;
}

.cola-directory-item:last-child {
  border-bottom: 0;
}

.cola-directory-item.numbered {
  padding-left: 2px;
}

.cola-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.cola-section-head span {
  display: inline-flex;
  padding: 4px 9px;
  color: #9a541a;
  background: #fff0cf;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.cola-section-head strong {
  color: #7b6c55;
  font-size: 13px;
}

.cola-gallery-section,
.cola-copy-section {
  margin: 20px 0 24px;
}

.cola-gallery-section-tight {
  margin-top: 10px;
}

.cola-main-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: 20px;
  align-items: start;
}

.cola-main-images {
  display: grid;
  gap: 12px;
}

.cola-main-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 108px;
  align-self: start;
  max-height: calc(100vh - 132px);
  overflow: auto;
  padding-right: 6px;
}

.cola-main-text::-webkit-scrollbar {
  width: 8px;
}

.cola-main-text::-webkit-scrollbar-thumb {
  background: rgba(154, 84, 26, 0.28);
  border-radius: 999px;
}

.cola-stream-card {
  padding: 8px;
  margin: 0;
  background: #fff;
  border: 1px solid #efe5d7;
  border-radius: 12px;
}

.cola-stream-card img {
  width: 100%;
}

.cola-stream-card.is-long {
  background: #fffdfa;
}

.cola-copy-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cola-copy-card {
  background: #fffdfa;
  padding: 16px 18px;
  border: 1px solid #efdfcf;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(79, 61, 33, 0.05);
}

.cola-copy-card h3 {
  margin: 0 0 10px;
  color: #84512f;
  font-size: 15px;
}

.cola-block-title {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 10px;
  color: #1b1b1b;
  background: #ff8c78;
  font-size: 22px;
  line-height: 1.2;
}

.cola-side-by-side {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.cola-side-by-side-main {
  margin: 0 0 18px;
}

.cola-side-image {
  margin: 0;
}

.cola-side-image img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #eadfce;
  box-shadow: 0 12px 30px rgba(79, 61, 33, 0.08);
}

.cola-side-copy {
  display: grid;
  gap: 12px;
}

.cola-side-copy .cola-copy-card {
  background: #fff;
  border-color: #f0dfcf;
  min-height: 100%;
}

.cola-side-copy .cola-copy-card h3,
.cola-side-copy .cola-copy-card h4 {
  margin: 0 0 12px;
  color: #3f372f;
  font-size: 16px;
}

.cola-side-copy .cola-copy-card ol {
  margin: 0;
  padding-left: 22px;
}

.cola-side-copy .cola-copy-card li {
  margin: 8px 0;
  line-height: 1.72;
}

.cola-footer-box {
  color: #6c5b46;
  background: #f8efd8;
}

.cola-footer-box strong {
  color: #d65b44;
}

.cola-raw-section {
  margin-top: 28px;
}

.cola-raw-content {
  padding: 18px;
  background: #fffdf8;
  border: 1px solid #efe3d2;
  border-radius: 14px;
}

.cola-raw-content h2,
.cola-raw-content h3,
.cola-raw-content h4 {
  color: #7f4c2c;
}

.cola-raw-content figure,
.cola-raw-content p {
  margin-left: 0;
  margin-right: 0;
}

.cola-raw-content img,
.cola-raw-content .inline-image {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #eadfce;
  box-shadow: 0 12px 32px rgba(79, 61, 33, 0.08);
}

.free-materials-page {
  max-width: 980px;
  margin: 0 auto;
  color: #20242c;
  background: #fff;
  font-size: 17px;
  line-height: 1.7;
  font-family: "PingFang SC", "Microsoft YaHei", "Avenir Next", sans-serif;
}

.free-materials-head h1 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 56px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.free-social-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 18px;
  font-weight: 500;
}

.free-social-line a {
  color: #6b21d8;
  border-bottom: 0;
  text-decoration: underline;
}

.free-social-line strong {
  color: #d43a35;
}

.free-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
}

.free-color-card {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 12px;
  padding: 16px 22px;
  color: #0b63ff;
  border: 1px solid #ffb56f;
  border-radius: 12px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 1px 0 rgba(255, 181, 111, 0.18);
}

.free-color-card:hover {
  transform: translateY(-1px);
}

.free-card-icon {
  flex: 0 0 auto;
  min-width: 30px;
  color: #20242c;
}

.free-doc-icon {
  flex: 0 0 auto;
  color: #0b63ff;
  font-size: 19px;
}

.free-word-badge {
  display: inline-grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #fff;
  background: #2e6dff;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 900;
}

.free-card-suffix {
  margin-left: auto;
  color: #20242c;
  white-space: nowrap;
}

.free-card-suffix strong {
  padding: 4px 6px;
  color: #d43a35;
  background: rgba(229, 229, 229, 0.72);
}

.free-materials-page hr {
  margin: 34px 0 34px;
  border: 0;
  border-top: 2px solid #dedede;
}

.free-file-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
}

.free-left-stack,
.free-right-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.free-left-stack .free-color-card {
  min-height: 70px;
}

.free-file-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 14px 20px;
  color: #20242c;
  background: #fff;
  border: 1px solid #d7dbe2;
  border-radius: 12px;
  text-decoration: none;
}

.free-file-icon {
  display: grid;
  width: 48px;
  height: 56px;
  place-items: center;
  color: #fff;
  background: #2f6cff;
  border-radius: 5px;
  font-size: 32px;
  font-weight: 800;
}

.free-file-copy strong,
.free-file-copy em {
  display: block;
}

.free-file-copy strong {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 500;
}

.free-file-copy em {
  color: #6b7280;
  font-size: 15px;
  font-style: normal;
}

.free-eye {
  color: #6b7280;
  font-size: 28px;
  font-weight: 700;
}

.free-small-links {
  display: grid;
  gap: 14px;
  padding-left: 6px;
}

.free-small-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0b63ff;
  text-decoration: none;
  font-size: 20px;
  line-height: 1.35;
}

.free-small-links span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  background: #2e6dff;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 900;
}

.free-color-card.tone-mint {
  background: #f0fff2;
}

.free-color-card.tone-lavender {
  background: #eee4ff;
}

.free-color-card.tone-cream {
  background: #fff6ed;
}

.free-color-card.tone-green {
  background: #dcfbd8;
}

.free-color-card.tone-rose {
  background: #ffe3e1;
}

.free-color-card.tone-yellow {
  background: #ffffbf;
}

.free-color-card.tone-violet {
  background: #efe2ff;
}

.free-color-card.tone-blue {
  background: #dfeaff;
}

.books-page {
  max-width: 980px;
  margin: 0 auto;
  color: #2b2f37;
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "Avenir Next", sans-serif;
}

.books-doc-head h1 {
  margin: 0 0 18px;
  color: #20242b;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.books-social-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 900;
}

.books-social-line a {
  color: #6045d9;
  border-bottom: 0;
}

.books-social-line strong {
  color: #d65a4d;
}

.books-lead {
  margin: 0 0 16px;
  color: #e05548;
  font-size: 24px;
  font-weight: 900;
}

.books-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.books-link-row a {
  color: #2d62ff;
  border-bottom: 0;
}

.books-link-row strong {
  color: #2e3138;
}

.books-intro-image,
.books-split-image {
  margin: 0;
}

.books-intro-image img,
.books-split-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ece8df;
  box-shadow: 0 14px 34px rgba(31, 41, 51, 0.08);
}

.books-intro-copy {
  padding: 14px 16px;
  background: #f5f6fa;
  border-radius: 12px;
}

.books-intro-copy p {
  margin: 0 0 14px;
  color: #343945;
  font-size: 16px;
  line-height: 1.72;
  word-break: break-word;
}

.books-intro-copy p:last-child {
  margin-bottom: 0;
}

.books-directory-section {
  margin-top: 4px;
}

.books-section-title {
  margin: 0 0 10px;
  color: #2f353d;
  font-size: 22px;
  font-weight: 900;
}

.books-directory-grid {
  display: grid;
  gap: 0;
}

.books-flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 0.98fr);
  gap: 8px;
  align-items: start;
}

.books-image-column,
.books-text-column {
  display: grid;
  align-content: start;
  gap: 0;
}

.books-image-column {
  line-height: 0;
}

.books-image-column .books-split-image + .books-split-image {
  margin-top: -1px;
}

.books-split-text {
  padding: 10px 12px;
  background: #f5f6fa;
  border-radius: 12px;
}

.books-text-column {
  gap: 8px;
}

.books-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.books-list li {
  margin: 0;
  padding: 4px 0;
  color: #343945;
  font-size: 15px;
  line-height: 1.48;
  border-bottom: 1px dashed rgba(140, 148, 162, 0.28);
  word-break: break-word;
}

.books-list li:last-child {
  border-bottom: 0;
}

.female-page {
  max-width: 860px;
  margin: 0 auto;
  color: #252932;
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "Avenir Next", sans-serif;
  font-size: 18px;
  line-height: 1.72;
}

.female-doc-head {
  margin-bottom: 28px;
}

.female-doc-head h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: #252932;
  font-size: clamp(34px, 4.8vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.female-social-line {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 900;
}

.female-social-line a {
  color: #6045d9;
  border-bottom: 0;
}

.female-social-line strong {
  color: #d65a4d;
}

.female-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.female-main-poster,
.female-wide-shot,
.female-storage-card,
.female-directory-image {
  margin: 0;
}

.female-main-poster img,
.female-wide-shot img,
.female-storage-card img,
.female-directory-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.female-hero-copy {
  display: grid;
  gap: 18px;
}

.female-note-card,
.female-update-card {
  padding: 18px 22px;
  border: 1.5px solid #f2ba73;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 900;
}

.female-note-card {
  background: #fff0d8;
}

.female-note-card p {
  margin: 0 0 18px;
}

.female-note-card p:last-child {
  margin-bottom: 0;
}

.female-update-card {
  background: #e6ebff;
}

.female-update-card p {
  margin: 10px 0;
}

.female-update-card mark {
  padding: 0 4px;
  color: #173a1b;
  background: #8fd37f;
}

.female-yellow-lines {
  display: grid;
  gap: 10px;
}

.female-yellow-lines p {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0 4px;
  color: #222a32;
  background: #ffe85b;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
}

.female-storage-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: start;
  margin: 22px 0 18px;
}

.female-storage-card {
  width: min(520px, 100%);
  margin-bottom: 22px;
}

.female-storage-row h2 {
  margin: 0 0 28px;
  color: #252932;
  font-size: 26px;
}

.female-storage-row p {
  margin: 0;
  color: #d85449;
  font-size: 24px;
  font-weight: 900;
}

.female-buy-tip {
  margin: 14px 0 30px;
  padding: 6px 10px;
  color: #30323a;
  background: #eae1ff;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 900;
}

.female-directory-section {
  margin-top: 18px;
}

.female-section-title {
  margin: 0 0 20px;
  color: #d85548;
  font-size: 26px;
  font-weight: 900;
}

.female-main-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.female-image-column,
.female-text-column {
  min-width: 0;
}

.female-image-group {
  margin: 0 0 22px;
}

.female-image-group h3 {
  margin: 0 0 12px;
  color: #d85548;
  font-size: 18px;
  font-weight: 900;
}

.female-directory-image {
  margin-bottom: 18px;
  background: #fff;
}

.female-text-column {
  display: grid;
  gap: 20px;
}

.female-copy-card h3 {
  margin: 0 0 12px;
  color: #2c3038;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.25;
}

.female-directory-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.female-directory-item {
  position: relative;
  margin: 0;
  padding: 3px 0 3px 20px;
  color: #3f4550;
  font-size: 15px;
  line-height: 1.62;
  word-break: break-word;
}

.female-directory-item::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  width: 6px;
  height: 6px;
  background: #3867e8;
  border-radius: 50%;
}

.female-directory-item.numbered::before {
  display: none;
}

.female-directory-item.numbered {
  padding-left: 0;
  color: #415066;
}

.course-directory {
  max-width: 100%;
  margin: 0 auto;
  color: #20242b;
  font-family: "PingFang SC", "Microsoft YaHei", "Avenir Next", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.course-directory a {
  color: #1764f6;
  border-bottom: 0;
  font-weight: 900;
}

.course-directory hr {
  height: 1px;
  margin: 31px 0;
  background: #e8e8e8;
  border: 0;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 41px 0 22px;
  font-size: 19px;
  font-weight: 800;
}

.social-row strong,
.course-directory .red,
.course-directory b {
  color: #e03636;
}

.feature-card,
.course-card {
  display: block;
  border: 1.5px solid #ffe13b;
  border-radius: 12px;
  text-decoration: none;
}

.feature-card {
  margin: 22px 0;
  padding: 16px 20px;
  font-size: 22px;
  font-weight: 900;
}

.feature-card-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: none;
  appearance: none;
}

.intro-card {
  background: #fff0f2;
  color: #1764f6;
}

.intro-card span {
  color: #20242b;
}

.course-home-top-intro {
  margin: 20px 0 25px;
  padding: 16px 23px;
  color: #1764f6;
  font-size: 26px;
  font-weight: 950;
  line-height: 1.35;
  white-space: nowrap;
}

.summary-copy {
  margin-top: 0;
  font-size: 18px;
  font-weight: 900;
}

.summary-copy p {
  margin: 13px 0;
}

.summary-copy strong {
  color: #e23a36;
}

.summary-copy p:first-child strong {
  color: #e23a36;
}

.course-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  gap: 22px;
}

.course-home-grid {
  align-items: stretch;
  grid-template-columns: minmax(486px, 1fr) minmax(486px, 1fr);
  gap: 25px;
}

.course-card {
  padding: 20px 22px;
}

.course-card h2 {
  margin: 0 0 22px;
  color: #111827;
  font-size: 22px;
  line-height: 1.4;
  white-space: nowrap;
}

.course-card mark {
  background: #ff6d6d;
  color: #111827;
  padding: 0 4px;
}

.course-card a {
  display: block;
  margin: 24px 0;
  font-size: 21px;
}

.course-home-main-card {
  min-height: 302px;
  padding: 22px 25px;
  box-shadow: 0 6px 0 rgba(17, 24, 39, 0.04);
}

.course-home-main-card h2 {
  margin-bottom: 22px;
  font-size: 24px;
  font-weight: 950;
  white-space: nowrap;
}

.course-home-main-card mark {
  background: #ff7777;
  color: #161a23;
  line-height: 1.12;
}

.course-home-main-card a {
  margin: 20px 0;
  color: #145cff;
  font-size: 23px;
  font-weight: 950;
  line-height: 1.3;
  white-space: nowrap;
}

.pending-link {
  display: block;
  margin: 24px 0;
  color: #8590a3;
  font-size: 29px;
  font-weight: 900;
}

.pending-link em,
.pending-card em {
  padding: 4px 9px;
  color: #8a5a00;
  background: rgba(255, 225, 59, 0.45);
  border-radius: 999px;
  font-size: 14px;
  font-style: normal;
}

.pending-card {
  color: #3f4756;
}

.purple-card {
  background: #eee4ff;
}

.peach-card {
  background: #ffe3e3;
}

.blue-card {
  background: #e2ebff;
}

.yellow-card {
  background: #fffecb;
}

.green-card {
  background: #dcf8d8;
}

.side-stack {
  display: grid;
  gap: 23px;
}

.course-home-right-stack {
  align-content: stretch;
  gap: 20px;
}

.course-home-intro-card {
  display: flex;
  align-items: center;
  min-height: 81px;
  margin: 0;
  padding: 11px 25px;
  color: #1764f6;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 6px 0 rgba(17, 24, 39, 0.04);
}

.course-home-free-card {
  min-height: 189px;
  padding: 20px 27px;
  box-shadow: 0 6px 0 rgba(17, 24, 39, 0.04);
}

.course-home-free-card a {
  color: #145cff;
  font-size: 23px;
  font-weight: 950;
  line-height: 1.35;
  white-space: nowrap;
}

.course-home-free-card a:first-child {
  margin-top: 0;
  margin-bottom: 31px;
}

.course-home-free-card a:not(:first-child) {
  margin-left: 49px;
}

.vpn-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
}

@media (min-width: 981px) {
  .doc-panel {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1480px;
  }

  .doc-panel:has(.course-directory) {
    margin: 27px auto;
    max-width: 1098px;
    background: #fff;
  }

  .doc-panel:has(.course-directory) .doc-tags {
    display: none;
  }

  .doc-panel:has(.course-directory) .outline {
    display: none;
  }

  .doc-panel:has(.knowledge-star-page) {
    margin: 30px auto;
    max-width: 980px;
    background: #fff;
  }

  .doc-panel:has(.knowledge-star-page) .doc-meta,
  .doc-panel:has(.knowledge-star-page) .doc-main > h1,
  .doc-panel:has(.knowledge-star-page) .doc-tags,
  .doc-panel:has(.knowledge-star-page) .outline {
    display: none;
  }

  .doc-panel:has(.cola-page) {
    margin: 30px auto;
    background: #fff;
  }

  .doc-panel:has(.cola-page) .doc-meta,
  .doc-panel:has(.cola-page) .doc-main > h1,
  .doc-panel:has(.cola-page) .doc-tags,
  .doc-panel:has(.cola-page) .outline {
    display: none;
  }

  .doc-panel:has(.female-page) {
    margin: 30px auto;
    max-width: 980px;
    background: #fff;
  }

  .doc-panel:has(.female-page) .doc-meta,
  .doc-panel:has(.female-page) .doc-main > h1,
  .doc-panel:has(.female-page) .doc-tags,
  .doc-panel:has(.female-page) .outline {
    display: none;
  }

  .doc-panel:has(.books-page) {
    margin: 30px auto;
    max-width: 1100px;
    background: #fff;
  }

  .doc-panel:has(.books-page) .doc-meta,
  .doc-panel:has(.books-page) .doc-main > h1,
  .doc-panel:has(.books-page) .doc-tags,
  .doc-panel:has(.books-page) .outline {
    display: none;
  }

  .doc-panel:has(.free-materials-page) {
    margin: 30px auto;
    max-width: 980px;
    background: #fff;
  }

  .doc-panel:has(.free-materials-page) .doc-meta,
  .doc-panel:has(.free-materials-page) .doc-main > h1,
  .doc-panel:has(.free-materials-page) .doc-tags,
  .doc-panel:has(.free-materials-page) .outline {
    display: none;
  }

  .doc-panel:has(.vip-membership-page) {
    margin: 30px auto;
    max-width: 1040px;
    background: #fff;
  }

  .doc-panel:has(.vip-membership-page) .doc-meta,
  .doc-panel:has(.vip-membership-page) .doc-main > h1,
  .doc-panel:has(.vip-membership-page) .doc-tags,
  .doc-panel:has(.vip-membership-page) .outline {
    display: none;
  }

  .doc-panel:has(.mindmap-page) {
    margin: 30px auto;
    max-width: 1120px;
    background: #fff;
  }

  .doc-panel:has(.mindmap-page) .doc-meta,
  .doc-panel:has(.mindmap-page) .doc-main > h1,
  .doc-panel:has(.mindmap-page) .doc-tags,
  .doc-panel:has(.mindmap-page) .outline {
    display: none;
  }
}

@media (max-width: 980px) {
  .course-directory {
    font-size: 18px;
  }

  .social-row {
    gap: 10px;
    font-size: 17px;
  }

  .feature-card {
    padding: 16px;
    font-size: 21px;
  }

  .summary-copy {
    font-size: 19px;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .course-home-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .course-card {
    padding: 18px;
  }

  .course-card h2 {
    font-size: 22px;
    white-space: normal;
  }

  .course-card a {
    font-size: 21px;
  }

  .course-home-main-card {
    min-height: 0;
    padding: 20px;
  }

  .course-home-main-card h2 {
    font-size: 23px;
  }

  .course-home-main-card a,
  .course-home-free-card a {
    font-size: 22px;
  }

  .course-home-intro-card {
    min-height: 72px;
    padding: 16px 18px;
    font-size: 23px;
  }

  .course-home-free-card {
    min-height: 0;
    padding: 20px;
  }

  .course-home-free-card a:not(:first-child) {
    margin-left: 12px;
  }

  .knowledge-star-page {
    font-size: 14px;
  }

  .ks-overview-grid,
  .ks-feature-grid {
    grid-template-columns: 1fr;
  }

  .ks-footer-tabs {
    flex-wrap: wrap;
  }

  .cola-page {
    font-size: 13px;
  }

  .cola-hero-grid,
  .cola-poster-grid,
  .cola-info-grid,
  .cola-main-split,
  .cola-copy-columns,
  .cola-side-by-side,
  .female-hero-grid,
  .female-storage-row,
  .female-main-split,
  .books-flow-grid {
    grid-template-columns: 1fr;
  }

  .free-top-grid,
  .free-file-grid {
    grid-template-columns: 1fr;
  }

  .free-materials-page {
    font-size: 16px;
  }

  .free-social-line {
    font-size: 18px;
  }

  .free-color-card {
    min-height: 76px;
    padding: 16px;
    font-size: 19px;
  }

  .free-file-card {
    grid-template-columns: 46px minmax(0, 1fr) 24px;
    gap: 14px;
    padding: 14px;
  }

  .free-file-icon {
    width: 46px;
    height: 54px;
    font-size: 30px;
  }

  .free-file-copy strong {
    font-size: 18px;
  }

  .cola-main-text {
    position: static;
  }

  .female-page {
    font-size: 15px;
  }

  .female-doc-head h1 {
    font-size: 34px;
  }

  .female-social-line,
  .female-yellow-lines p,
  .female-buy-tip {
    font-size: 18px;
  }

  .female-note-card,
  .female-update-card {
    padding: 18px;
    font-size: 22px;
  }

  .female-storage-row h2,
  .female-storage-row p,
  .female-section-title {
    font-size: 26px;
  }

  .books-social-line,
  .books-link-row {
    font-size: 18px;
  }

  .books-lead,
  .books-section-title {
    font-size: 20px;
  }

  .cola-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-links,
  .admin-topbar,
  .admin-layout {
    display: grid;
  }

  .admin-app-grid,
  .admin-simple-grid,
  .admin-auth-grid,
  .admin-nav-grid,
  .admin-meta-grid,
  .admin-filter-row {
    grid-template-columns: 1fr;
  }

  .admin-sidebar-panel {
    position: static;
  }

  .admin-simple-sidebar {
    position: static;
  }

  .admin-topbar {
    padding: 24px;
  }

  .admin-simple-toolbar {
    display: grid;
  }
}

.outline {
  position: sticky;
  top: 96px;
  align-self: start;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.outline-title {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.outline a {
  display: block;
  margin: 9px 0;
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
}

.search-results {
  margin: 34px 54px;
  padding: 24px;
}

.search-summary {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.search-result {
  display: block;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  border-radius: 18px;
}

.search-result:hover {
  background: #f3f8f5;
}

.search-result strong {
  display: block;
  color: var(--brand-dark);
  font-size: 18px;
}

.search-result span {
  color: var(--muted);
  font-size: 13px;
}

.search-result p {
  margin-bottom: 0;
  color: #4b5563;
}

.outline-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.hidden {
  display: none !important;
}

.mobile-only {
  display: none;
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

#menuButton {
  display: none !important;
}

.icon-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--brand-dark);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 10;
    width: min(86vw, 330px);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-only {
    display: block;
  }

  .topbar {
    padding: 14px;
  }

  .topbar-editor {
    width: 100%;
  }

  .publish-link {
    display: none;
  }

  .hero,
  .doc-panel {
    grid-template-columns: 1fr;
    margin: 0;
    padding: 18px;
  }

  .hero {
    display: block;
  }

  .hero-copy {
    padding: 28px;
  }

  .hero-card {
    margin-top: 18px;
  }

  .doc-panel {
    margin: 18px;
  }

  .outline {
    display: none;
  }

  .search-results {
    margin: 18px;
  }

  .edit-status {
    margin: 18px;
  }

  .editor-drawer {
    top: auto;
    right: 18px;
    bottom: 18px;
    width: calc(100vw - 36px);
    max-height: 62vh;
  }

  .editor-field-row {
    grid-template-columns: 1fr;
  }
}

/* Final mobile overrides: keep the public document pages readable on phones. */
@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background: var(--bg);
  }

  .workspace,
  .app-shell,
  .main-area,
  .doc-main,
  .doc-content,
  .doc-body,
  .course-directory {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px;
    background: rgba(246, 244, 236, 0.96);
    backdrop-filter: blur(12px);
  }

  .search-box {
    width: 100%;
    max-width: none;
  }

  .search-box input {
    min-width: 0;
    height: 48px;
    padding: 0 14px 0 42px;
    font-size: 16px;
  }

  .doc-panel {
    display: block;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin: 14px 12px;
    padding: 22px 18px;
    border-radius: 22px;
    overflow: hidden;
  }

  .doc-main > h1 {
    margin-top: 6px;
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.14;
    letter-spacing: -0.05em;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .doc-tags,
  .outline {
    display: none;
  }

  .course-directory {
    font-size: 15.5px;
    line-height: 1.62;
  }

  .course-directory img,
  .doc-content img,
  .doc-body img {
    max-width: 100%;
    height: auto;
  }

  .social-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 18px 0 14px;
    font-size: 15px;
    line-height: 1.22;
  }

  .social-row span,
  .course-home-top-intro,
  .course-home-intro-card,
  .course-home-free-card a,
  .course-home-main-card h2,
  .course-home-main-card a,
  .course-card h2,
  .course-card a,
  .legacy-directory-link,
  .mindmap-link,
  .summary-copy p {
    white-space: nowrap !important;
    overflow-wrap: normal;
    word-break: normal;
  }

  .course-home-top-intro {
    margin: 14px 0 18px;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.24;
  }

  .summary-copy {
    font-size: 14px;
    line-height: 1.28;
  }

  .summary-copy p {
    margin: 8px 0;
  }

  .course-directory hr {
    margin: 26px -18px;
  }

  .course-home-grid,
  .course-grid,
  .side-stack,
  .course-home-right-stack {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    gap: 16px;
  }

  .feature-card,
  .course-card,
  .course-home-main-card,
  .course-home-intro-card,
  .course-home-free-card,
  .course-home-mindmap-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .course-card,
  .course-home-main-card {
    padding: 18px 16px;
  }

  .course-home-main-card {
    min-height: 0;
  }

  .course-home-main-card h2 {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.2;
  }

  .course-home-main-card mark {
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }

  .course-home-main-card a,
  .course-home-free-card a,
  .course-card a {
    margin: 14px 0;
    font-size: 16px;
    line-height: 1.22;
  }

  .course-home-intro-card {
    min-height: 0;
    padding: 15px 16px;
    font-size: 16px;
    line-height: 1.22;
  }

  .course-home-free-card {
    padding: 18px 16px;
  }

  .course-home-free-card a {
    font-size: 16px;
  }

  .course-home-mindmap-card {
    padding: 18px 16px;
  }

  .mindmap-link {
    font-size: 16px;
    line-height: 1.22;
  }

  .editor-drawer {
    z-index: 40;
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-height: 66vh;
  }
}
