/* ============================================================
   圣经解读 · 统一站点样式
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --paper: #f6f1e7;
    --paper-2: #efe7d8;
    --card: #fffdf8;
    --card-soft: #fbf6ec;
    --ink: #3c3a34;
    --ink-soft: #6f675b;
    --line: #e7ddca;
    --line-strong: #d9cbb0;
    --sage: #5f846d;
    --sage-deep: #4e7059;
    --gold: #a67c45;
    --gold-soft: #d9b877;
    --blue: #5a8ca8;
    --purple: #8a7ca8;
    --green: #5a9c76;
    --orange: #c99c5a;
    --brown: #a78c7c;
    --red: #c95a5a;
    --pink: #c98ca8;
    --shadow: 0 6px 18px rgba(120, 100, 70, 0.10);
    --shadow-soft: 0 2px 8px rgba(120, 100, 70, 0.07);
    --radius: 18px;
    --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --font-sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    --header-h: 0px;
}

html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.65;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

/* ============ 顶部导航 ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 241, 231, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0.55rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.brand {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 3px;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--sage-deep), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header-tagline {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: rgba(255, 252, 244, 0.8);
    padding: 0.18rem 0.75rem;
    border-radius: 40px;
    border: 1px solid var(--line);
}

.reader-title {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 1px 3px rgba(120, 100, 70, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}

.icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(120, 100, 70, 0.14);
    background: #fff;
}

.icon-btn:disabled {
    opacity: 0.32;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.icon-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 3px 8px rgba(166, 124, 69, 0.28);
}

.icon-btn.paused {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    box-shadow: 0 3px 8px rgba(90, 156, 118, 0.28);
}

.icon-btn.speaking {
    background: var(--sage-deep);
    border-color: var(--sage-deep);
    color: #fff;
    box-shadow: 0 3px 8px rgba(78, 112, 89, 0.28);
}

.text-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--sage-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.text-btn:hover {
    background: #fff;
}

/* ============ 底部信息栏 ============ */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(239, 231, 216, 0.94);
    border-top: 1px solid var(--line);
    text-align: center;
    padding: 0.48rem 0.8rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
    backdrop-filter: blur(8px);
}

main {
    flex: 1;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 1.1rem 0.9rem 4.3rem;
}

/* ============ 主页 ============ */
.hero {
    text-align: center;
    padding: 1.5rem 0.3rem 0.7rem;
}

.hero-badge {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    background: rgba(255, 252, 244, 0.9);
    border: 1px solid var(--line);
    border-radius: 40px;
    padding: 0.28rem 1rem;
    margin-bottom: 0.9rem;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 8vw, 3.4rem);
    font-weight: 900;
    letter-spacing: 0.16em;
    line-height: 1.25;
    background: linear-gradient(135deg, var(--sage-deep) 20%, var(--gold) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    max-width: 560px;
    margin: 0.8rem auto 0;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.8;
}

.cta-row {
    margin-top: 1.2rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 2rem;
    border-radius: 60px;
    font-size: 1.12rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #7fa08a, var(--sage-deep));
    box-shadow: 0 6px 16px rgba(94, 132, 109, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(94, 132, 109, 0.36);
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin: 1.4rem 0 1.5rem;
    flex-wrap: wrap;
}

.stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 0.55rem 1.1rem;
    text-align: center;
    min-width: 88px;
}

.stat strong {
    font-family: var(--font-serif);
    display: block;
    font-size: 1.45rem;
    color: var(--sage-deep);
}

.stat span {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sage-deep);
    margin: 1.4rem 0 0.8rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--line);
}

.feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.feature-chip {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 40px;
    padding: 0.35rem 0.9rem;
}

.verse-grid {
    display: grid;
    gap: 0.8rem;
}

.verse-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.05rem 0.9rem;
}

.verse-card.meaning { border-top: 4px solid var(--orange); }
.verse-card.attitude { border-top: 4px solid var(--sage); }
.verse-card.effect { border-top: 4px solid var(--purple); }

.vc-head {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.45rem;
}

.vc-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.vc-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.vc-tag {
    margin-left: auto;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.vc-text {
    font-size: 1.03rem;
    line-height: 1.75;
}

.vc-ref {
    display: block;
    text-align: right;
    margin-top: 0.55rem;
    font-weight: 700;
    color: var(--gold);
}

@media (min-width: 760px) {
    .verse-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============ 通用面板 ============ */
.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    background: rgba(239, 231, 216, 0.7);
    border-bottom: 1px solid var(--line);
}

.panel-title {
    font-family: var(--font-serif);
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--sage-deep);
    flex: 1;
}

/* ============ 目录页 ============ */
.directory-tabs {
    display: flex;
}

.directory-tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink-soft);
    background: #f7f0e3;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: background 0.15s ease;
}

.directory-tab.active {
    background: var(--card);
    color: var(--sage-deep);
    border-bottom-color: var(--gold);
}

.search-row {
    padding: 0.75rem 0.9rem 0.55rem;
}

.search-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: #fff;
    font-size: 1rem;
    color: var(--ink);
    outline: none;
}

.search-input:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(95, 132, 109, 0.14);
}

.search-hint {
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin: 0.3rem 0.2rem 0;
}

.book-list {
    padding: 0.8rem;
    max-height: calc(100vh - 300px);
    overflow: auto;
    overscroll-behavior: contain;
}

.book-item {
    margin-bottom: 0.55rem;
}

.book-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.62rem 0.75rem;
    background: var(--card-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink);
    transition: background 0.15s ease;
}

.book-header:hover {
    background: #f6eddc;
}

.book-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border-radius: 20px;
    background: var(--sage);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.book-name {
    flex: 1;
    min-width: 0;
}

.book-count {
    font-size: 0.85rem;
    color: var(--ink-soft);
    white-space: nowrap;
}

.book-chevron {
    color: var(--gold);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.book-item.open .book-chevron {
    transform: rotate(180deg);
}

.chapters-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 0.4rem;
    padding: 0.6rem 0.25rem 0.25rem;
}

.chapters-grid.active {
    display: grid;
}

.chapter-btn {
    padding: 0.42rem 0.1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.chapter-btn:hover {
    background: #f6eddc;
}

.chapter-btn.active {
    background: var(--sage);
    border-color: var(--sage);
    color: #fff;
}

.directory-quote {
    margin-top: 1rem;
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.9;
}

/* ============ 阅读页 ============ */
.tab-bar {
    position: sticky;
    top: var(--header-h);
    z-index: 95;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.1rem 0.65rem;
    margin: -0.25rem -0.1rem 0.35rem;
    background: linear-gradient(180deg, rgba(246, 241, 231, 0.98) 0%, rgba(246, 241, 231, 0.94) 100%);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.tab-btn {
    flex: 0 0 auto;
    min-width: 58px;
    padding: 0.42rem 0.72rem 0.38rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    transition: all 0.15s ease;
}

.tab-btn .tb-icon {
    font-size: 1.08rem;
    line-height: 1;
}

.tab-btn:hover {
    background: #fff;
    transform: translateY(-1px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #7fa08a, var(--sage-deep));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(94, 132, 109, 0.25);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fade-in 0.25s ease;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

.reader-loading,
.reader-error {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ink-soft);
    line-height: 2;
    font-size: 1.02rem;
}

.reader-loading .pulse {
    animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

.empty-note {
    text-align: center;
    color: var(--ink-soft);
    padding: 2.2rem 1rem;
    font-size: 0.98rem;
    background: rgba(255, 253, 248, 0.6);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}

/* ============ 内容卡片 ============ */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 0.9rem 1rem;
    margin-bottom: 0.7rem;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.12rem;
    color: var(--sage-deep);
    padding-bottom: 0.45rem;
    margin-bottom: 0.55rem;
    border-bottom: 2px solid var(--line);
}

.card-content {
    line-height: 1.75;
    color: var(--ink);
}

.sentence-item {
    padding: 0.28rem 0;
    border-bottom: 1px dashed var(--line);
    line-height: 1.75;
}

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

.story-paragraph {
    padding: 0.32rem 0;
    line-height: 1.75;
}

.overview-card { border-left: 4px solid var(--purple); }
.overview-card .card-title { color: var(--purple); border-bottom-color: #e2d8e8; }
.theme-card { border-left: 4px solid var(--green); }
.theme-card .card-title { color: var(--green); border-bottom-color: #d3e2d6; }
.application-card { border-left: 4px solid var(--orange); }
.application-card .card-title { color: var(--orange); border-bottom-color: #ecdcc4; }
.child-story-card { border-left: 4px solid var(--pink); }
.child-story-card .card-title { color: var(--pink); border-bottom-color: #eedce6; }
.sermon-card { border-left: 4px solid var(--purple); }
.sermon-card .card-title { color: var(--purple); border-bottom-color: #e2d8e8; }
.prayer-card { border-left: 4px solid var(--green); }
.prayer-card .card-title { color: var(--green); border-bottom-color: #d3e2d6; }

/* ============ 经文 ============ */
.verse-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    background: var(--card);
    border-left: 4px solid var(--blue);
    border-radius: 0 12px 12px 0;
    margin-bottom: 0.42rem;
    box-shadow: 0 1px 4px rgba(120, 100, 70, 0.07);
    line-height: 1.7;
}

.verse-num {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 0.16rem;
}

.verse-text {
    flex: 1;
    min-width: 0;
}

/* ============ 问答 ============ */
.question-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 0.85rem 1rem;
    margin-bottom: 0.7rem;
}

.question-text {
    font-weight: 700;
    color: var(--sage-deep);
    padding-left: 0.75rem;
    border-left: 3px solid var(--brown);
    margin-bottom: 0.55rem;
    line-height: 1.7;
}

.answer-text {
    background: #f9f7f5;
    border-left: 3px solid #c9b7a7;
    border-radius: 0 10px 10px 0;
    padding: 0.7rem 0.85rem;
    line-height: 1.7;
}

/* ============ 测验 ============ */
.quiz-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 0.75rem 1rem;
    margin-bottom: 0.7rem;
    font-weight: 700;
}

.quiz-stats .progress {
    color: var(--sage-deep);
}

.quiz-stats .score {
    color: var(--green);
}

.quiz-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.5rem;
    margin-bottom: 0.7rem;
}

.quiz-item-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 0.9rem 1rem;
}

.quiz-question {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    line-height: 1.6;
    transition: all 0.12s ease;
}

.quiz-option:hover:not(.disabled) {
    border-color: var(--sage);
    background: #f5faf7;
}

.quiz-option.correct {
    border-color: var(--green);
    background: #f0f8f3;
}

.quiz-option.wrong {
    border-color: var(--red);
    background: #fdf3f3;
}

.quiz-option.disabled {
    cursor: default;
    opacity: 0.85;
}

.opt-letter {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f0ebe0;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    margin-top: 0.1rem;
}

.quiz-option.correct .opt-letter {
    background: var(--green);
    color: #fff;
}

.quiz-option.wrong .opt-letter {
    background: var(--red);
    color: #fff;
}

.quiz-feedback {
    margin-top: 0.8rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    line-height: 1.7;
    font-weight: 600;
    display: none;
}

.quiz-feedback.correct {
    display: block;
    background: #f0f8f3;
    color: var(--green);
    border: 1px solid #d3e2d6;
}

.quiz-feedback.wrong {
    display: block;
    background: #fdf3f3;
    color: var(--red);
    border: 1px solid #f0d8d8;
}

/* ============ 关联经文 ============ */
.related-book-item {
    margin-bottom: 0.6rem;
}

.related-book-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    background: #f8f9fa;
    border-left: 4px solid var(--blue);
    border-radius: 6px;
    margin-bottom: 0.55rem;
}

.related-book-num {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.related-book-name {
    font-weight: 700;
    color: var(--sage-deep);
}

.related-verses {
    padding-left: 0.7rem;
}

.related-verse-item {
    background: #f8f9fa;
    border-left: 3px solid var(--green);
    border-radius: 6px;
    padding: 0.6rem 0.7rem;
    margin-bottom: 0.5rem;
}

.related-verse-ref {
    font-weight: 700;
    color: var(--green);
    margin-bottom: 2px;
}

.related-verse-text {
    line-height: 1.7;
    margin-bottom: 4px;
}

.related-verse-explanation {
    padding: 0.4rem 0.55rem;
    background: #f0f7ff;
    border-left: 3px solid var(--blue);
    border-radius: 6px;
    font-style: italic;
    color: #4a5a6a;
}

/* ============ 讲章 ============ */
.sermon-main-title,
.prayer-main-title {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 800;
    text-align: center;
    color: var(--purple);
    border-bottom: 3px solid #d8cfe8;
    padding-bottom: 0.5rem;
    margin-bottom: 0.8rem;
}

.sermon-section {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--purple);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 0.85rem 1rem;
    margin-bottom: 0.7rem;
}

.sermon-section-header {
    border-bottom: 2px solid #e2d8e8;
    padding-bottom: 0.35rem;
    margin-bottom: 0.55rem;
}

.sermon-section-title {
    font-weight: 800;
    color: var(--purple);
    font-size: 1.12rem;
}

.sermon-section-content {
    line-height: 1.8;
}

.sermon-section-content p {
    margin-bottom: 0.55rem;
}

.sermon-application {
    margin-top: 0.6rem;
    padding: 0.7rem 0.85rem;
    background: #f0f8f3;
    border-left: 4px solid var(--green);
    border-radius: 10px;
    line-height: 1.7;
}

.gospel-section {
    border-left-color: var(--purple);
    background: #f7f5f9;
}

.conclusion-section {
    border-left-color: var(--green);
}

.sermon-point {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

.point-number,
.sermon-list-number {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--purple);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 0.15rem;
}

.point-content {
    flex: 1;
}

.gospel-connection-info {
    position: relative;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    margin-left: 0.4rem;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gospel-connection-info::before {
    content: "i";
    font-style: normal;
    font-family: var(--font-serif);
}

.gospel-connection-info i {
    display: none;
}

.sermon-list-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    line-height: 1.7;
}

/* ============ 祷告 ============ */
.prayer-main-title {
    color: var(--green);
    border-bottom-color: #d3e2d6;
}

.prayer-section {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 0.85rem 1rem;
    margin-bottom: 0.7rem;
}

.prayer-opening-section {
    border-left-color: var(--blue);
    background: #eef7ff;
}

.prayer-ending-section {
    border-left-color: var(--orange);
    background: #fff8e6;
}

.prayer-title {
    font-weight: 800;
    font-size: 1.12rem;
    color: var(--sage-deep);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.prayer-content {
    line-height: 1.75;
    padding: 0.35rem 0.1rem;
}

.lords-prayer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    background: rgba(201, 156, 90, 0.07);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.lords-prayer-btn:hover {
    background: var(--gold);
    color: #fff;
}

/* ============ 朗读高亮 ============ */
.speech-sentence.reading-highlight,
.verse-text.reading-highlight,
.verse-item.reading-highlight,
.card.reading-highlight,
.question-item.reading-highlight,
.quiz-item-card.reading-highlight,
.sentence-item.reading-highlight,
.story-paragraph.reading-highlight,
.empty-note.reading-highlight {
    background: rgba(201, 156, 90, 0.20) !important;
    border-radius: 8px;
    box-shadow: 0 0 0 2px rgba(201, 156, 90, 0.45);
}

/* ============ 弹窗 ============ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 25, 18, 0.55);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 560px;
    max-height: 82vh;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(40, 30, 15, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--sage), var(--sage-deep));
    color: #fff;
}

.modal-title {
    flex: 1;
    font-weight: 800;
    font-size: 1.05rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 1rem;
    overflow-y: auto;
    line-height: 1.85;
}

.modal-body ul {
    margin: 0.4rem 0 0.4rem 1.2rem;
}

/* ============ 响应式 ============ */
@media (max-width: 560px) {
    html {
        font-size: 16px;
    }

    .header-inner {
        gap: 0.4rem;
        padding: 0.45rem 0.6rem;
    }

    .brand {
        font-size: 1.08rem;
        letter-spacing: 2px;
    }

    .header-tagline {
        display: none;
    }

    .reader-title {
        order: 3;
        flex-basis: 100%;
        text-align: left;
        font-size: 0.98rem;
    }

    .icon-btn,
    .text-btn {
        width: 36px;
        height: 36px;
    }

    main {
        padding: 0.8rem 0.55rem 4.1rem;
    }

    .book-list {
        max-height: calc(100vh - 250px);
    }

    .tab-btn {
        min-width: 0;
        width: 100%;
        padding: 0.4rem 0.2rem 0.36rem;
        font-size: 0.88rem;
    }

    .tab-bar {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.32rem;
    }

    .card {
        padding: 0.75rem 0.85rem;
    }

    .verse-item {
        padding: 0.5rem 0.65rem;
    }

    .hero {
        padding-top: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
