/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

*{box-sizing:border-box}html,body{font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",Arial,sans-serif;font-size:14px;line-height:1.25;color:#5a636a}html{background-color:#000}@media(prefers-color-scheme: light){html{background-color:#fff}}html.theme-light{background-color:#fff}html.theme-dark{background-color:#000}a{color:#3498db;cursor:pointer;text-decoration:none}a:hover{text-decoration:underline}h1{font-size:4em;margin-bottom:0}h2{font-size:2em}h3{font-size:1.5em}h4{font-size:1.25em}h5{font-size:1em;margin:0}i{font-family:Arial,sans-serif;line-height:1;vertical-align:middle}i svg{height:1em;width:auto;overflow:visible !important}.text--grey{color:#bdc3c7}.fullscreen{position:absolute;top:0;left:0;width:100%;height:100%}
.Image{background-position:50% 50%;background-size:cover}.Image.default{background-color:#212121}
.ImageSettings .grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:.5em}.ImageSettings .grid .preview{background-color:#bdc3c7;border-radius:.25em;position:relative;overflow:hidden}.ImageSettings .grid .preview img{display:block;max-width:100%;height:auto}.ImageSettings .grid .preview button{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);opacity:0;transition:opacity .15s ease-out}.ImageSettings .grid .preview:hover button{opacity:1}
.Unsplash .credit{display:grid;grid-template-columns:1fr auto 1fr;position:absolute;bottom:1rem;left:1rem;right:1rem}.Unsplash .credit .location{text-align:right}.Unsplash .credit .hidden{visibility:hidden}.Unsplash .image{background-position:50% 50%;background-size:cover}
.Time{font-variant-numeric:tabular-nums;overflow-wrap:break-word;box-sizing:border-box}.Time hr{border:0;border-top:2px solid #ecf0f1;margin:1rem 0}
.Slot{width:100vw;height:100vh;display:grid;grid-template-columns:repeat(auto-fit, minmax(min-content, auto));gap:20px;align-items:start;padding:20px;box-sizing:border-box}.Slot.topLeft{top:2rem;left:0;text-align:left}.Slot.topCentre{top:0;left:50%;transform:translateX(-50%);text-align:center}.Slot.topRight{top:0;right:0;text-align:right}.Slot.middleLeft{top:50%;left:0;transform:translateY(-50%);text-align:left}.Slot.middleCentre{top:50%;left:50%;transform:translate(-50%, -50%);text-align:center}.Slot.middleRight{top:50%;right:0;transform:translateY(-50%);text-align:right}.Slot.bottomLeft{bottom:.2rem;left:0;text-align:left}.Slot.bottomCentre{bottom:.2rem;left:50%;transform:translateX(-50%);text-align:center}.Slot.bottomRight{bottom:.2rem;right:0;text-align:right}.widget-draggable{cursor:grab;user-select:none}.widget-draggable:active{cursor:grabbing}
.Widgets{padding:0;text-align:center;pointer-events:none}.Widgets .container{position:relative;width:100%;height:100%}.Widgets .container .Slot>*{margin:1rem;pointer-events:all}.Widgets h1,.Widgets h2,.Widgets h3,.Widgets h4{line-height:1;margin:0}.Widgets .weight-override h1,.Widgets .weight-override h2,.Widgets .weight-override h3,.Widgets .weight-override h4{font-weight:inherit}.Widgets .Message{bottom:10%;left:50%;text-align:center;font-family:"Times New Roman",Times,serif;font-weight:400;line-height:1.4;color:hsla(0,0%,100%,.95);text-shadow:1px 1px 2px hsla(0,0%,100%,.5),-1px -1px 2px rgba(0,0,0,.2);background-color:rgba(0,0,0,.1);padding:.3em .3em;border-radius:2px}
/* stylelint-disable */
html,
body {
  width: 100%;
  height: 100%;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
@-ms-viewport {
  width: device-width;
}
body {
  margin: 0;
}
[tabindex='-1']:focus {
  outline: none;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
}
p {
  margin-top: 0;
  margin-bottom: 1em;
}
abbr[title],
abbr[data-original-title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}
address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}
input[type='text'],
input[type='password'],
input[type='number'],
textarea {
  -webkit-appearance: none;
}
ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1em;
}
ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
dt {
  font-weight: 500;
}
dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1em;
}
dfn {
  font-style: italic;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
pre,
code,
kbd,
samp {
  font-size: 1em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}
figure {
  margin: 0 0 1em;
}
img {
  vertical-align: middle;
  border-style: none;
}
a,
area,
button,
[role='button'],
input:not([type='range']),
label,
select,
summary,
textarea {
  touch-action: manipulation;
}
table {
  border-collapse: collapse;
}
caption {
  padding-top: 0.75em;
  padding-bottom: 0.3em;
  text-align: left;
  caption-side: bottom;
}
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html [type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
input[type='radio'],
input[type='checkbox'] {
  box-sizing: border-box;
  padding: 0;
}
input[type='date'],
input[type='time'],
input[type='datetime-local'],
input[type='month'] {
  -webkit-appearance: listbox;
}
textarea {
  overflow: auto;
  resize: vertical;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}
[type='search'] {
  outline-offset: -2px;
  -webkit-appearance: none;
}
[type='search']::-webkit-search-cancel-button,
[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}
output {
  display: inline-block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none !important;
}
mark {
  padding: 0.2em;
  background-color: #feffe6;
}

.Dashboard{overflow:hidden}.Dashboard svg{filter:drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.25))}.Dashboard a{color:inherit}.Dashboard input{color:inherit}.Dashboard input::placeholder{color:inherit;opacity:.5}.Dashboard.light{background-color:#fff;color:#111}.Dashboard.light .theme-fill{fill:#111}.Dashboard.light .theme-stroke{stroke:#111}.Dashboard.light input{border-color:#111}.Dashboard.dark{background-color:#000;color:#fff}.Dashboard.dark .theme-fill{fill:#fff}.Dashboard.dark .theme-stroke{stroke:#fff}.Dashboard.dark input{border-color:#fff}.DashboardSetting{position:absolute;margin:.5rem;padding:.5rem;cursor:pointer}.ant-drawer-body{padding:0 !important}
.Settings h1{margin:2rem 0}.Settings h1 svg{fill:#3498db;width:100%}.Settings h2,.Settings h3,.Settings h4{color:#212121}.Settings h2,.Settings h3{margin-bottom:0}.Settings .plane{border-radius:0 1rem 1rem 0;box-shadow:0 .5rem 1rem rgba(0,0,0,.25);background-color:#fff;max-width:100%;height:100%;overflow-y:auto;padding:0 1rem;position:absolute;width:330px;transition:transform .15s ease-out}.Settings label{display:block;margin:1rem 0}.Settings label:last-child{margin-bottom:0}.Settings label+.info{font-size:.9em;margin-top:-0.75rem}.Settings input[type=email],.Settings input[type=file],.Settings input[type=number],.Settings input[type=text],.Settings input[type=time],.Settings input[type=url],.Settings textarea,.Settings select{border:1px solid #bdc3c7;border-radius:.2em;color:inherit;display:block;margin:.5em 0;padding:.5em;width:100%;overflow:hidden}.Settings input[type=email].primary,.Settings input[type=file].primary,.Settings input[type=number].primary,.Settings input[type=text].primary,.Settings input[type=time].primary,.Settings input[type=url].primary,.Settings textarea.primary,.Settings select.primary{background-color:#ecf0f1;border:.25em solid #ecf0f1}.Settings input[type=email]+.input--error,.Settings input[type=file]+.input--error,.Settings input[type=number]+.input--error,.Settings input[type=text]+.input--error,.Settings input[type=time]+.input--error,.Settings input[type=url]+.input--error,.Settings textarea+.input--error,.Settings select+.input--error{display:none}.Settings input[type=email]:invalid+.input--error,.Settings input[type=file]:invalid+.input--error,.Settings input[type=number]:invalid+.input--error,.Settings input[type=text]:invalid+.input--error,.Settings input[type=time]:invalid+.input--error,.Settings input[type=url]:invalid+.input--error,.Settings textarea:invalid+.input--error,.Settings select:invalid+.input--error{display:block}.Settings input[type=radio],.Settings input[type=checkbox]{margin-right:.5rem}.Settings input[type=color]{display:block}.Settings .button{border:0;border-radius:2em;color:#fff;cursor:pointer;display:inline-block;padding:.5em 1em;text-decoration:none;transition:background .25s ease-out;text-align:center;font-weight:500}.Settings .button:disabled{background-color:#bdc3c7;cursor:default}.Settings .button--primary{background-color:#3498db}.Settings .button--primary:hover{background:rgb(33.1380753138,125.1882845188,186.8619246862)}.Settings .button--primary:active{background:rgb(25.4560669456,96.1673640167,143.5439330544)}.Settings .button--secondary{background:hsl(204,8.1967213115%,56.0784313725%)}.Settings .button--secondary:hover{background:hsl(204,8.1967213115%,46.0784313725%)}.Settings .button--secondary:active{background:hsl(204,8.1967213115%,36.0784313725%)}.Settings hr{border:1px solid #ecf0f1;margin:1rem 0}.button--icon{background-color:#ecf0f1;border:none;border-radius:1em;display:inline-block;padding:.5em;line-height:1;height:2em;width:2em;color:#000;cursor:pointer;transition:background-color .25s ease-out}.button--icon:hover{background-color:#bdc3c7 !important}.button--icon.button--primary{background-color:#3498db !important;color:#fff;padding:.5em}.button--icon.button--primary:hover{background-color:rgb(25.4560669456,96.1673640167,143.5439330544) !important}
.Settings .Widget{border:none;border-radius:.5rem;background:#ecf0f1;margin:1em 0;padding:1em}.Settings .Widget h4{margin:0}.Settings .Widget .title--buttons button{float:right;margin:-0.25em 0 0 .5em}.Settings .Widget .title--buttons h4{cursor:pointer}.Settings .Widget .settings{margin:1.5rem 0}.Settings .Widget p:last-child{margin-bottom:0}.Settings .Widget .button--icon{background-color:#fff}
.WidgetDisplay {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

/* src/App.css */

html, body, #root {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.app {
  font-family: 'Microsoft YaHei', sans-serif;
  height: 100vh;
  display: flex;
  overflow: hidden;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.sidebar-toggle {
  display: none;
}

.header {
  display: none;
}

.sidebar-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 98;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 86vw);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #fdf7f2;
  color: #4a3b35;
  box-shadow: 12px 0 34px rgba(73, 53, 43, 0.18);
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
  z-index: 99;
}

.sidebar-header {
  padding: 12px 16px 8px;
  flex: 0 0 auto;
}

.sidebar-header .ant-input-affix-wrapper {
  background: #fff;
  border-radius: 999px;
  border: 1px solid #f0d9cf;
  padding: 6px 14px;
}

.sidebar-tabs {
  display: flex;
  gap: 24px;
  padding: 0 22px;
  border-bottom: 1px solid #f2ddd2;
  flex: 0 0 auto;
}

.sidebar-tab {
  padding: 10px 2px 12px;
  font-size: 15px;
  font-weight: 500;
  color: #a0938a;
  cursor: pointer;
  position: relative;
}

.sidebar-tab.active {
  color: #453732;
  font-weight: 700;
}

.sidebar-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: #e98e6d;
  border-radius: 999px;
}

.sidebar-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.sidebar .book-list {
  flex: 0 0 44%;
  overflow-y: auto;
  padding: 8px 0;
  border-right: 1px solid #f0d9cf;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar .book-list::-webkit-scrollbar {
  display: none;
}

.sidebar .book-list .book-item {
  padding: 10px 18px;
  cursor: pointer;
  border-bottom: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #4a3b35;
  font-size: 15px;
}

.sidebar .book-list .book-item:hover {
  background: rgba(232, 135, 102, 0.08);
}

.sidebar .book-list .book-item.selected {
  background: rgba(232, 135, 102, 0.18);
  color: #c0573a;
  font-weight: 600;
}

.chapter-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chapter-list::-webkit-scrollbar {
  display: none;
}

.chapter-item {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #fdf7f2;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #4a3b35;
  line-height: 1.2;
  transition: all 0.15s;
}

.chapter-item:hover {
  border-color: #e88766;
  color: #c0573a;
}

.chapter-item.selected {
  background: #e88766;
  border-color: #e88766;
  color: #fff;
  font-weight: 600;
}

.chapter-empty {
  color: #b09a90;
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
}

.sidebar-footer {
  padding: 12px 14px 16px;
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
  border-top: 1px solid #f2ddd2;
  background: #fdf7f2;
}

.testament-btn {
  flex: 1;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #e88766;
  background: #fff;
  color: #c0573a;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.testament-btn:hover {
  background: rgba(232, 135, 102, 0.08);
}

.testament-btn.active {
  background: #e88766;
  color: #fff;
}

@media (max-width: 480px) {
  .sidebar {
    width: 86vw;
    border-top-right-radius: 22px;
    border-bottom-right-radius: 22px;
  }
}

.section-title {
  margin: 15px 0 8px;
  font-size: 14px;
  color: #777;
}

.navigation-buttons {
  padding: 15px;
  display: flex;
  gap: 10px;
}

.main-content {
  flex: 1;
  position: relative;
  overflow: auto;
  padding: 56px 20px 64px 20px;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
  color: var(--text-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 50;
}

.top-bar h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.bottom-toolbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  background-color: var(--bg-color);
  color: var(--text-color);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
  z-index: 60;
}

.toolbar-btn {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

.toolbar-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.toolbar-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.toolbar-btn:disabled:hover {
  background-color: transparent;
}

.app.dark .toolbar-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.content {
  line-height: 1.8;
}

.book-intro-card {
  background: linear-gradient(135deg, #fef8f3 0%, #fdf3eb 100%);
  border: 1px solid #f0d9cf;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(232, 135, 102, 0.08);
}

.book-intro-title {
  font-size: 18px;
  font-weight: 600;
  color: #c0573a;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0d9cf;
}

.book-intro-item {
  display: flex;
  margin: 10px 0;
  line-height: 1.6;
}

.book-intro-label {
  flex: 0 0 auto;
  font-weight: 600;
  color: #8a6f5e;
  min-width: 90px;
}

.book-intro-content {
  flex: 1;
  color: #4a3b35;
}


.book-topic {
  padding: 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
  margin-bottom: 20px;
}

.outline {
  margin-bottom: 20px;
}

.outline-item {
  margin: 6px 0;
  padding-left: 20px;
  position: relative;
}

.outline-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.outline-heading {
  font-size: 1em;
  font-weight: 500;
  color: #6b3a2a;
  line-height: 1.6;
  margin: 12px 0 4px;
  padding-left: 0;
}

.outline-heading.outline-level-1 {
  font-weight: 600;
  padding-left: 0;
  margin: 18px 0 6px;
}

.outline-heading.outline-level-2 {
  font-weight: 500;
  padding-left: 1.5em;
  margin: 12px 0 4px;
}

.outline-heading.outline-level-3 {
  font-weight: 500;
  padding-left: 3em;
  margin: 10px 0 4px;
}

.outline-heading.outline-level-4 {
  font-weight: 400;
  padding-left: 4.5em;
  margin: 8px 0 2px;
}

.outline-heading.outline-level-5 {
  font-weight: 400;
  padding-left: 6em;
  margin: 6px 0 2px;
}

.outline-heading.outline-level-6 {
  font-weight: 400;
  padding-left: 7.5em;
  margin: 6px 0 2px;
}

.verse-container {
  margin: 12px 0;
  padding: 10px 0;
  border-bottom: 1px dashed #ddd;
  transition: background-color 0.2s, box-shadow 0.2s;
  scroll-margin-top: 80px;
}

.verse-container.verse-speaking {
  background: linear-gradient(90deg, rgba(30, 144, 255, 0.12) 0%, rgba(30, 144, 255, 0.04) 100%);
  box-shadow: inset 4px 0 0 #1e90ff;
  border-radius: 4px;
  padding-left: 12px;
}

.verse-container.verse-prologue {
  text-align: left;
  font-weight: 500;
  color: #6b5a52;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ead7cc;
  border-radius: 0;
  padding: 6px 0 14px;
  margin: 0 0 16px;
}

.verse-container.verse-merged {
  border-bottom: none;
  padding: 4px 0;
  margin: 4px 0;
}

.verse-merge-note {
  color: #999;
  font-size: 0.9em;
}

.verse-number {
  font-weight: bold;
  color: var(--accent-color);
  opacity: 0.55;
  margin-right: 8px;
}

.verse-half {
  font-size: 0.65em;
  font-weight: normal;
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
  color: var(--accent-color);
  opacity: 0.55;
}

.footnote-indicators {
  margin-right: 6px;
  vertical-align: super;
  line-height: 0;
}

.footnote-num {
  color: #8b4513;
  cursor: pointer;
  font-size: 0.7em;
  font-weight: 600;
  margin: 0 1px;
  padding: 0 1px;
}

.footnote-num:hover {
  color: #c0573a;
}

.footnote-indicators {
  margin-right: 6px;
  vertical-align: super;
  line-height: 0;
}

.footnote-num {
  color: #8b4513;
  cursor: pointer;
  font-size: 0.7em;
  font-weight: 600;
  margin: 0 1px;
  padding: 0 1px;
}

.footnote-num:hover {
  color: #c0573a;
}

.footnote-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f0d9cf;
  line-height: 1.7;
  align-items: flex-start;
}

.footnote-item:last-child {
  border-bottom: none;
}

.footnote-item-seq {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e88766;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.footnote-item-note {
  color: #4a3b35;
  flex: 1;
}

.ref-link {
  color: #c0573a;
  cursor: pointer;
  font-weight: 500;
  border-bottom: 1px dashed #e88766;
  transition: color 0.15s;
}

.ref-link:hover {
  color: #8b2e1a;
  border-bottom-color: #c0573a;
}

/* 侧栏搜索 */
.sidebar-search-row {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  border: 1px solid #efd4c8;
  padding: 5px 12px;
  min-height: 38px;
  box-shadow: 0 3px 10px rgba(98, 75, 63, 0.03);
}

.sidebar-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  line-height: 1.3;
  color: #4a3b35;
  outline: none;
  font-family: inherit;
}

.sidebar-search-input::placeholder {
  color: #b8a49a;
}

.search-clear {
  cursor: pointer;
  color: #b7a195;
  font-size: 16px;
  padding: 0 2px;
  line-height: 1;
}

.sidebar-search-cancel {
  margin-left: 8px;
  border: none;
  background: transparent;
  color: #8e7a6f;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
}

.sidebar-search-cancel:hover {
  color: #c0573a;
}

.search-body {
  display: block;
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 8px 0 22px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.search-body::-webkit-scrollbar {
  display: none;
}

.search-empty {
  color: #b09a90;
  text-align: center;
  padding: 48px 24px;
  font-size: 14px;
}

/* 书卷下拉筛选 */
.search-book-filter-bar {
  padding: 8px 16px 10px;
  border-bottom: 1px solid #f2ddd2;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.search-book-dropdown {
  position: relative;
  width: 100%;
}

.search-book-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
  border: 1px solid rgba(240, 224, 216, 0.8);
  border-radius: 14px;
  color: #6b594f;
  font-size: 14px;
  line-height: 1.2;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(102, 76, 62, 0.06);
}

.search-book-dropdown-trigger.open {
  box-shadow: 0 10px 24px rgba(102, 76, 62, 0.1);
}

.search-book-dropdown-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-book-dropdown-arrow {
  flex-shrink: 0;
  color: #9e8e84;
  font-size: 13px;
  transition: transform 0.18s ease;
}

.search-book-dropdown-trigger.open .search-book-dropdown-arrow {
  transform: rotate(180deg);
}

.search-book-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(72vw, 248px);
  max-height: 56vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(88, 64, 52, 0.14);
  padding: 6px 0;
}

.search-book-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border: none;
  background: transparent;
  color: #4a3b35;
  font-size: 15px;
  line-height: 1.2;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.search-book-dropdown-item:hover {
  background: rgba(232, 135, 102, 0.07);
}

.search-book-dropdown-item.active {
  background: rgba(232, 135, 102, 0.09);
}

.search-book-dropdown-item .count {
  flex-shrink: 0;
  color: #df7d64;
  font-weight: 700;
}

.search-result-item {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 20px;
  cursor: pointer;
  border-bottom: 1px solid #f3e1d7;
  transition: background 0.15s;
}

.search-result-item:hover {
  background: rgba(232, 135, 102, 0.04);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-text {
  font-size: 16px;
  color: #4f413b;
  line-height: 1.78;
  letter-spacing: 0.01em;
  white-space: normal;
  word-break: break-word;
}

.search-result-ref {
  font-size: 12px;
  line-height: 1.45;
  color: #a09187;
  font-weight: 400;
}

.search-highlight {
  background: rgba(234, 141, 109, 0.22);
  color: #cd6b4d;
  font-weight: 700;
  border-radius: 6px;
  padding: 0 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* 主题变量 */
.app.light {
  --bg-color: #fff;
  --text-color: #333;
  --accent-color: #e63946;
}

.app.dark {
  --bg-color: #121212;
  --text-color: #eee;
  --accent-color: #ff6b6b;
}

.app.classic {
  --bg-color: #f8f1e8;
  --text-color: #333;
  --accent-color: #8b4513;
}

/* 纲目 Modal */
.outline-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
}

.outline-modal {
  background: #fdf8f3;
  border-radius: 12px;
  width: min(92vw, 480px);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.outline-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0d9cf;
  flex-shrink: 0;
}

.outline-modal-header h3 {
  margin: 0;
  font-size: 17px;
  color: #4a3b35;
}

.outline-modal-close {
  cursor: pointer;
  font-size: 18px;
  color: #9a8a82;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s;
}

.outline-modal-close:hover {
  color: #c0573a;
}

.outline-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.outline-modal-body::-webkit-scrollbar {
  display: none;
}

.outline-chapter-group {
  margin-bottom: 20px;
}

.outline-chapter-title {
  font-size: 15px;
  font-weight: 600;
  color: #c0573a;
  padding: 8px 0;
  border-bottom: 1px solid #f0d9cf;
  margin-bottom: 12px;
  cursor: pointer;
  transition: color 0.15s;
}

.outline-chapter-title:hover {
  color: #8b2e1a;
}

.outline-heading.outline-clickable {
  cursor: pointer;
  transition: color 0.15s;
}

.outline-heading.outline-clickable:hover {
  color: #c0573a;
}

.outline-modal-empty {
  color: #9a8a82;
  text-align: center;
  padding: 40px 0;
  font-size: 14px;
}

/* 版本选择器 */
.version-picker-popover {
  width: 260px;
  max-height: 420px;
  display: flex;
  flex-direction: column;
}

.version-picker-header {
  font-size: 13px;
  color: #9a8a82;
  padding: 0 0 10px;
  border-bottom: 1px solid #f0d9cf;
  margin-bottom: 8px;
  font-weight: 500;
  flex-shrink: 0;
}

.version-picker-list {
  overflow-y: auto;
  flex: 1;
  max-height: 360px;
  scrollbar-width: thin;
  -ms-overflow-style: none;
}

.version-picker-list::-webkit-scrollbar {
  width: 4px;
}

.version-picker-list::-webkit-scrollbar-thumb {
  background: #d9c5b8;
  border-radius: 999px;
}

.version-group {
  margin-bottom: 4px;
}

.version-group-title {
  font-size: 11px;
  font-weight: 600;
  color: #b09a90;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 4px 4px;
}

.version-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s;
  font-size: 13px;
}

.version-item:hover {
  background: rgba(232, 135, 102, 0.06);
}

.version-item.checked {
  background: rgba(232, 135, 102, 0.1);
}

.version-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.version-item input[type="checkbox"] {
  flex-shrink: 0;
  accent-color: #e88766;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.version-item.disabled input[type="checkbox"] {
  cursor: not-allowed;
}

.version-item-name {
  flex: 1;
  color: #4a3b35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.version-item-id {
  font-size: 10px;
  color: #b09a90;
  flex-shrink: 0;
}

/* 版本按钮激活态 */
.toolbar-btn-active {
  color: #e88766;
}

.version-count {
  font-size: 10px;
  font-weight: 600;
  margin-left: 2px;
}

/* 多版本经文显示 */
.multi-version-block {
  border-bottom-style: solid;
  border-bottom-color: #d9c5b8;
}

.verse-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.verse-line {
  display: flex;
  align-items: baseline;
  line-height: 1.7;
  padding: 2px 0;
}

.verse-line.verse-merge-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-left: 0;
}

.verse-line.verse-merge-line .verse-merge-note {
  color: #a08f84;
  font-size: 0.82em;
  white-space: nowrap;
}

.verse-line.verse-merge-line .verse-number {
  min-width: 1.8em;
  margin-right: 2px;
}

.verse-line.verse-merge-line .verse-number-hidden {
  display: none;
}

.verse-line.verse-merge-text {
  margin-top: 0;
}

.verse-line.verse-merge-text .verse-merge-note {
  color: #b4a79d;
  font-size: 0.76em;
  font-style: italic;
  white-space: normal;
  line-height: 1.3;
  margin-left: 0.25em;
}

.verse-line.verse-merge-text .verse-number-hidden {
  visibility: hidden;
}


.verse-number-hidden {
  visibility: hidden;
}

.version-tag {
  flex-shrink: 0;
  min-width: 0;
}

.app.dark .verse-line + .verse-line {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.app.dark .version-item {
  color: #d5c5b8;
}

.app.dark .version-item-name {
  color: #d5c5b8;
}

.app.dark .version-group-title {
  color: #8a7a6e;
}

.app.dark .version-picker-header {
  color: #8a7a6e;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.app.dark .multi-version-block {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.app.dark .version-item.checked {
  background: rgba(232, 135, 102, 0.18);
}

/*# sourceMappingURL=main.97a35782e597.css.map*/