/* 高僧传故事类型学系统 - 样式表 */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
    background-color: #f8f9fa;
}

/* 导航栏 */
.navbar-brand {
    font-weight: bold;
}

/* 统计卡片 */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
    border-radius: 0.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* 故事列表 */
.list-group-item {
    border-left: none;
    border-right: none;
    transition: background-color 0.15s;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.list-group-item h5 {
    color: #333;
}

/* 标签 */
.badge {
    font-weight: 500;
    margin-right: 0.25rem;
}

/* 原文显示 */
.card-body[style*="pre-wrap"] {
    font-size: 1.1rem;
    color: #333;
}

/* 结构摘要 */
.alert-info {
    background-color: #e7f3ff;
    border-color: #b8daff;
}

/* 相似度标签 */
.badge.bg-success {
    font-size: 0.75rem;
}

/* 高亮 */
mark {
    background-color: rgba(72,101,129,0.13);
    border-bottom: 2px solid #627d98;
    padding: 0.1em 0.2em;
    border-radius: 0.2rem;
}

/* 分页 */
.pagination .page-link {
    color: #333;
}

.pagination .page-item.active .page-link {
    background-color: #333;
    border-color: #333;
}

/* 首页卡片悬停 */
a.card { transition: transform 0.15s, box-shadow 0.15s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.1) !important; }


/* ── 故事详情页 ── */
.detail-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.detail-person {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: 0.02em;
}

.detail-juan {
    font-size: 0.85rem;
    color: #86868b;
}

/* 原文区域 */
.detail-text-wrap {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
}

.detail-text-wrap .original-text-container {
    white-space: pre-wrap;
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    font-size: 1.05rem;
    line-height: 2;
    color: #1d1d1f;
}

/* 工具栏 */
.detail-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 0;
}

.toolbar-section {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.toolbar-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 2px;
    user-select: none;
}

.detail-tool-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    font-size: 0.78rem;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    background: #f5f5f7;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.6;
}

.detail-tool-btn:hover {
    background: #e8e8ed;
    border-color: #86868b;
    color: #1d1d1f;
}

.detail-tool-btn.active {
    background: #1d1d1f;
    color: #fff;
    border-color: #1d1d1f;
}

.btn-close-sm {
    font-size: 0.6rem;
    padding: 4px;
}

/* 响应式 */
@media (max-width: 768px) {
    .detail-text-wrap { padding: 1rem; }
    .toolbar-sep { display: none; }
}
