/*! 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%}
/* 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 {
  position: relative;
  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 100px 20px;
  padding-bottom: max(100px, calc(70px + env(safe-area-inset-bottom, 0px)));
}

.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: 0.6em;
  margin: 12px 0 4px;
}

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

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

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

.outline-heading.outline-level-6 {
  font-weight: 400;
  padding-left: 3em;
  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:last-child {
  margin-bottom: 40px;
}

.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-footer {
  padding: 8px 4px 0;
  border-top: 1px solid #f0d9cf;
  margin-top: 8px;
  flex-shrink: 0;
}

.version-picker-footer a {
  font-size: 12px;
  color: #9a8a82;
  text-decoration: none;
  transition: color 0.15s;
}

.version-picker-footer a:hover {
  color: #c0573a;
}

.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 .version-picker-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.app.dark .version-picker-footer a {
  color: #8a7a6e;
}

.app.dark .version-picker-footer a:hover {
  color: #d5c5b8;
}

.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);
}

/* ─── Verse context menu ─── */

.verse-context-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 299;
  background: transparent;
}

.verse-context-menu {
  position: fixed;
  z-index: 300;
  min-width: 160px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
  padding: 6px 0;
  animation: verse-context-menu-in 0.12s ease-out;
}

@keyframes verse-context-menu-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.verse-context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  transition: background 0.12s;
  user-select: none;
  -webkit-user-select: none;
  min-height: 44px;
}

.verse-context-menu-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.verse-context-menu-item:active {
  background: rgba(0, 0, 0, 0.08);
}

.verse-context-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #8a7a6e;
}

/* Dark theme for context menu */
.app.dark .verse-context-menu {
  background: #1f1f1f;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app.dark .verse-context-menu-item {
  color: #d5c5b8;
}

.app.dark .verse-context-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.app.dark .verse-context-menu-item:active {
  background: rgba(255, 255, 255, 0.1);
}

.app.dark .verse-context-menu-icon {
  color: #8a7a6e;
}

/* ─── Verse highlighting ─── */

.verse-highlighted .verse-line {
  text-decoration-line: underline;
  text-decoration-color: #e63946;
  text-underline-offset: 4px;
}

.verse-highlighted .verse-line .footnote-num {
  text-decoration-line: none;
}

.app.dark .verse-highlighted .verse-line {
  text-decoration-color: #ff6b6b;
}

.app.classic .verse-highlighted .verse-line {
  text-decoration-color: #8b4513;
}

/*# sourceMappingURL=main.3019541b1dc8.css.map*/