:root {
  --ql-bg: #f7f5f1;
  --ql-paper: #fffefc;
  --ql-paper-2: #f0ece5;
  --ql-line: #e2dbd0;
  --ql-line-strong: #cfc3b3;
  --ql-text: #2c2722;
  --ql-muted: #7b7166;
  --ql-accent: #6d5b4b;
  --ql-accent-soft: #ebe4da;
  --ql-shadow: 0 12px 30px rgba(56, 43, 29, .06);
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #faf8f4 0%, #f4f0ea 100%);
  color: var(--ql-text);
  font-family: "Segoe UI", "PingFang SC", Arial, sans-serif;
}

body {
  line-height: 1.8;
}

img {
  max-width: 100%;
}

a {
  color: var(--ql-accent);
  text-decoration: none;
}

a:hover {
  color: #473a2f;
}

.ql-hidden {
  display: none;
}

.ql-app {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  width: min(1440px, calc(100% - 24px));
  margin: 18px auto;
  align-items: start;
}

.ql-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
}

.ql-stage {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.ql-panel {
  background: var(--ql-paper);
  border: 1px solid var(--ql-line);
  border-radius: 24px;
  box-shadow: var(--ql-shadow);
}

.ql-brand-panel,
.ql-search-panel,
.ql-mini-panel,
.ql-footer,
.ql-hero,
.ql-note-card,
.ql-log-stream,
.ql-list-header,
.ql-article-detail,
.ql-side-notes,
.ql-comments,
.ql-tag-index,
.ql-search-page,
.ql-diy-page,
.ql-empty-page,
.ql-tag-cloud-panel {
  padding: 24px;
}

.ql-brand a {
  font-size: 30px;
  font-weight: 800;
  color: var(--ql-text);
}

.ql-brand p,
.ql-note-meta,
.ql-article-meta,
.ql-mini-entry span,
.ql-diy-box strong,
.ql-tag-list span,
.ql-mini-list span,
.ql-breadcrumb,
.ql-breadcrumb a,
.ql-breadcrumb li {
  color: var(--ql-muted);
  font-size: 13px;
}

.ql-menu-toggle {
  display: none;
  width: 100%;
  margin-top: 16px;
  height: 42px;
  border: 1px solid var(--ql-line);
  border-radius: 14px;
  background: var(--ql-paper-2);
  color: var(--ql-text);
}

.ql-nav {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.ql-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: #faf8f4;
  border: 1px solid var(--ql-line);
  color: var(--ql-text);
}

.ql-home-link,
.ql-nav a:hover {
  background: var(--ql-accent-soft);
  border-color: var(--ql-line-strong);
}

.ql-search-panel h3,
.ql-mini-panel h3,
.ql-side-notes h3,
.ql-tag-cloud-panel h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.ql-search-form,
.ql-search-form-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.ql-search-form input,
.ql-search-form-wide input {
  height: 42px;
  border: 1px solid var(--ql-line);
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  outline: none;
  color: var(--ql-text);
}

.ql-search-form button,
.ql-search-form-wide button,
.ql-btn {
  height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  background: var(--ql-accent);
  color: #fff;
  font-weight: 700;
}

.ql-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.ql-mini-list li {
  padding: 0 0 12px;
  margin: 0 0 12px;
  border-bottom: 1px dashed var(--ql-line);
}

.ql-mini-list li:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.ql-mini-list a,
.ql-mini-entry a {
  display: block;
  color: var(--ql-text);
  font-weight: 600;
}

.ql-mini-list span {
  display: block;
  margin-top: 6px;
}

.ql-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ql-accent-soft);
  color: var(--ql-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.ql-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.ql-hero h1,
.ql-list-header h1,
.ql-article-head h1,
.ql-tag-index h1,
.ql-search-page h1,
.ql-diy-page h1,
.ql-empty-page h1 {
  margin: 14px 0 10px;
  font-size: 46px;
  line-height: 1.08;
}

.ql-hero-copy p,
.ql-hero-note p,
.ql-note-card p,
.ql-search-item p,
.ql-list-header p,
.ql-diy-page p {
  color: var(--ql-muted);
}

.ql-hero-note {
  padding: 20px;
  border-radius: 20px;
  background: #faf7f2;
  border: 1px solid var(--ql-line);
}

.ql-hero-note h2,
.ql-note-card h3,
.ql-time-body h3,
.ql-search-item h3 {
  margin: 8px 0 10px;
  font-size: 24px;
  line-height: 1.22;
}

.ql-grid-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ql-section-head {
  margin-bottom: 16px;
}

.ql-section-head h2 {
  margin: 12px 0 0;
  font-size: 32px;
}

.ql-timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.ql-timeline:before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--ql-line-strong);
}

.ql-time-entry {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 22px;
}

.ql-time-dot {
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--ql-accent);
  box-shadow: 0 0 0 4px #f3ece2;
  position: relative;
  z-index: 1;
}

.ql-time-body {
  padding: 0 0 2px;
}

.ql-time-body p {
  margin-bottom: 0;
  color: var(--ql-muted);
}

.ql-breadcrumb {
  margin-bottom: 0;
}

.ql-pagination,
.pagination {
  margin-top: 18px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin: 4px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--ql-line);
  background: #fff;
  color: var(--ql-text);
}

.ql-article-cover {
  margin: 18px 0 22px;
  overflow: hidden;
  border-radius: 18px;
}

.ql-article-content {
  font-size: 17px;
  line-height: 1.95;
}

.ql-article-content img {
  max-width: 100%;
  height: auto;
}

.ql-tags,
.ql-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ql-tags a,
.ql-tag-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #faf7f2;
  border: 1px solid var(--ql-line);
  color: var(--ql-text);
}

.ql-detail-split,
.ql-diy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ql-mini-entry,
.ql-diy-box,
.ql-search-item,
.ql-empty-note {
  padding: 14px 16px;
  border-radius: 16px;
  background: #faf7f2;
  border: 1px solid var(--ql-line);
}

.ql-mini-entry + .ql-mini-entry {
  margin-top: 12px;
}

.ql-mini-entry strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ql-muted);
  font-size: 13px;
}

.ql-search-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.ql-search-results {
  display: grid;
  gap: 14px;
}

.ql-empty-note {
  text-align: center;
  color: var(--ql-muted);
}

.ql-diy-box span {
  display: block;
  margin-top: 8px;
  color: var(--ql-text);
  word-break: break-all;
}

.ql-footer {
  text-align: center;
}

.ql-footer p {
  margin: 0;
  color: var(--ql-muted);
}

.ql-empty-page {
  text-align: center;
}

.ql-scrolltop {
  position: fixed;
  right: 20px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--ql-accent);
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .25s ease;
  box-shadow: 0 8px 24px rgba(75, 57, 41, .22);
}

.ql-scrolltop.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 1180px) {
  .ql-app {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .ql-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .ql-app,
  .ql-grid-notes,
  .ql-detail-split,
  .ql-diy-grid,
  .ql-search-top {
    grid-template-columns: 1fr;
  }

  .ql-sidebar {
    position: static;
  }

  .ql-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ql-nav {
    display: none;
  }

  .ql-nav.open {
    display: grid;
  }
}

@media (max-width: 767px) {
  .ql-app {
    width: min(100% - 16px, 1440px);
    gap: 16px;
    margin: 12px auto;
  }

  .ql-brand-panel,
  .ql-search-panel,
  .ql-mini-panel,
  .ql-footer,
  .ql-hero,
  .ql-note-card,
  .ql-log-stream,
  .ql-list-header,
  .ql-article-detail,
  .ql-side-notes,
  .ql-comments,
  .ql-tag-index,
  .ql-search-page,
  .ql-diy-page,
  .ql-empty-page,
  .ql-tag-cloud-panel {
    padding: 18px;
  }

  .ql-hero h1,
  .ql-list-header h1,
  .ql-article-head h1,
  .ql-tag-index h1,
  .ql-search-page h1,
  .ql-diy-page h1,
  .ql-empty-page h1 {
    font-size: 32px;
  }

  .ql-search-form,
  .ql-search-form-wide {
    grid-template-columns: 1fr;
  }
}
