/* ========== 滚动容器样式 ========== */
.turbo-scroll-container {
    margin: 0.5em 0;            /* 上下默认间距，可自由调整 */
    
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    clear: both;                /* 防止浮动影响 */
}

/* 工具栏 */
.turbo-scroll-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 15px;
    background: linear-gradient(-30deg,#cdf4b9 10%,#74e0f9) no-repeat;
    border-bottom: 1px solid #f5f5f5;
    position: sticky;
    top: 0;
    z-index: 2;
}

.turbo-scroll-title {
    font-weight: 500;
    color: #333;
    font-size: 16px;
    margin-right: auto;
}

.turbo-scroll-actions {
    display: flex;
    gap: 6px;
}

.turbo-scroll-btn {
    
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s;
}
.turbo-scroll-btn:hover {
    background: #f0f0f0;
}

/* 内容区域 */
.turbo-scroll-content {
    padding: 5px 0px 10px 15px;
    background: #f5f5f5;
    word-break: break-word;
    overflow-y: auto;
    line-height: 1.7;
}

.turbo-scroll-content br { display: block; content: ""; margin-top: 0; line-height: 1.2; }
.turbo-scroll-content p { margin: 0; }

.turbo-scroll-expanded { height: auto !important; }
.turbo-scroll-expanded .turbo-scroll-content { overflow-y: visible !important; height: auto !important; flex: none; }


/* 覆盖主题的相册下边距，消除多余空白 */
.article-content .gallery {
    margin-bottom: -10px !important;
}

/* 滚动框的上边距 */
.turbo-scroll-container {
    margin-top: -5px !important;
}
/* ========== 修复相册与上方标题的间距 ========== */
/* 减小相册的上外边距，使其与标题更紧凑 */
.article-content .gallery {
    margin-top: 0.3em !important;   /* 可调节为 0.2em ~ 0.5em */
}

/* 如果标题是 h2，直接减小 h2 的下外边距（更可靠） */
.article-content h2 + .gallery {
    margin-top: 0.3em !important;
}

/* 表格基础样式 */
.turbo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}
.turbo-table td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
}

.turbo-download-btn:hover {
    opacity: 0.85;
}