/* ========================================
   飞书文档风格 - 学习文档栏目
   ======================================== */

/* ===== 全局重置 ===== */
.feishu-page {
    background: #f5f6f7;
    min-height: 100vh;
}

/* ===== 封面页：科技感浅色渐变背景 ===== */
.feishu-cover-page {
    background-color: #f0f5ff;
    background-image:
        /* 顶部左侧淡蓝光晕 */
        radial-gradient(ellipse 600px 400px at 15% 0%, rgba(51, 112, 255, 0.12), transparent 70%),
        /* 顶部右侧淡青光晕 */
        radial-gradient(ellipse 500px 380px at 85% 5%, rgba(0, 180, 216, 0.10), transparent 70%),
        /* 中间偏下淡紫光晕 */
        radial-gradient(ellipse 700px 500px at 50% 60%, rgba(139, 92, 246, 0.06), transparent 70%),
        /* 细网格线（科技感） */
        linear-gradient(rgba(51, 112, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51, 112, 255, 0.04) 1px, transparent 1px),
        /* 整体底色渐变 */
        linear-gradient(180deg, #eaf2ff 0%, #f5f8ff 30%, #fafbff 60%, #ffffff 100%);
    background-size: auto, auto, auto, 40px 40px, 40px 40px, auto;
    background-attachment: fixed;
}

/* ===== 顶部浮动条 ===== */
.feishu-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.feishu-topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.feishu-topbar-back {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #646a73;
    flex-shrink: 0;
    transition: background 0.15s;
}
.feishu-topbar-back:hover { background: #f0f1f2; }

.feishu-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #646a73;
    overflow: hidden;
    white-space: nowrap;
}
.feishu-breadcrumb a { color: #646a73; text-decoration: none; }
.feishu-breadcrumb a:hover { color: #3370ff; }
.feishu-breadcrumb-sep { color: #c9cdd4; font-size: 12px; }
.feishu-breadcrumb-current { color: #1f2329; font-weight: 500; }

.feishu-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.feishu-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 13px;
    color: #1f2329;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.feishu-topbar-btn:hover { background: #f5f6f7; border-color: #d0d0d0; }
.feishu-topbar-btn.primary {
    background: #3370ff;
    color: #fff;
    border-color: #3370ff;
}
.feishu-topbar-btn.primary:hover { background: #2860e1; }

/* ============ 顶部会员信息区 ============ */
.feishu-user-area {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.feishu-user-guest {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.feishu-user-split {
    width: 1px;
    height: 14px;
    background: #e0e0e0;
    margin: 0 2px;
}
.feishu-user-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    font-size: 13px;
    color: #646a73;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
    cursor: pointer;
    white-space: nowrap;
}
.feishu-user-link:hover {
    background: #f5f6f7;
    color: #3370ff;
}
.feishu-user-logged {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    background: #f5f6f7;
    border-radius: 20px;
    transition: background 0.15s;
}
.feishu-user-logged:hover {
    background: #eef0f3;
}
.feishu-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.feishu-user-name {
    font-size: 13px;
    color: #1f2329;
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.feishu-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 6px;
    font-size: 11px;
    color: #fff;
    background: linear-gradient(135deg, #f5a623, #f7b951);
    border-radius: 10px;
    font-weight: 600;
    flex-shrink: 0;
}
.feishu-user-link.feishu-user-logout:hover {
    color: #e5484d;
}

.feishu-topbar-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #646a73;
    transition: background 0.15s;
}
.feishu-topbar-icon-btn:hover { background: #f0f1f2; }

/* ===== 主体三栏布局 ===== */
.feishu-body {
    display: flex;
    padding-top: 48px;
    min-height: 100vh;
}

/* ===== 左侧树形目录 ===== */
.feishu-sidebar {
    width: 380px;
    max-width: 380px;
    flex-shrink: 0;
    background: #f7f8fa;
    border-right: 1px solid #e8e8e8;
    overflow-y: auto;
    position: sticky;
    top: 48px;
    height: calc(100vh - 48px);
    transition: width 0.2s ease;
}
.feishu-sidebar.collapsed { width: 0; overflow: hidden; }

.feishu-sidebar-header {
    padding: 16px 12px 12px;
    border-bottom: 1px solid #ebedf0;
    position: sticky;
    top: 0;
    background: #f7f8fa;
    z-index: 10;
}
.feishu-sidebar-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2329;
    margin-bottom: 4px;
}
.feishu-sidebar-title img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}
.feishu-sidebar-subtitle {
    font-size: 12px;
    color: #8f959e;
    padding-left: 26px;
}

.feishu-tree {
    padding: 8px 0;
}

/* 树节点 */
.feishu-tree-node {
    user-select: none;
}
.feishu-tree-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    margin: 0 6px;
    transition: background 0.12s;
    position: relative;
}
.feishu-tree-item:hover { background: #ebedf0; }
.feishu-tree-item.active { background: #e8f0ff; }
.feishu-tree-item.active .feishu-tree-label { color: #3370ff; }
/* 一级栏目选中时保持加粗 */
.feishu-tree-node[data-level="1"] > .feishu-tree-item.active .feishu-tree-label { font-weight: 600; }
/* 文章选中时不加粗 */
.feishu-tree-node[data-level="3"] > .feishu-tree-item.active .feishu-tree-label { font-weight: 400; }

.feishu-tree-toggle {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #8f959e;
    transition: transform 0.15s;
    margin-right: 2px;
}
.feishu-tree-toggle.expanded { transform: rotate(90deg); }
.feishu-tree-toggle.leaf { visibility: hidden; }

.feishu-tree-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    margin-right: 8px;
    flex-shrink: 0;
    object-fit: cover;
}

.feishu-tree-label {
    font-size: 13px;
    color: #1f2329;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
/* 一级栏目名称：加粗 14px */
.feishu-tree-node[data-level="1"] > .feishu-tree-item .feishu-tree-label {
    font-size: 14px;
    font-weight: 600;
}
/* 文章标题：不加粗 */
.feishu-tree-node[data-level="3"] > .feishu-tree-item .feishu-tree-label {
    font-weight: 400;
}

.feishu-tree-num {
    font-size: 12px;
    color: #3370ff;
    font-weight: 600;
    margin-right: 4px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* 子节点缩进 */
.feishu-tree-children {
    overflow: hidden;
    transition: max-height 0.2s ease;
}
.feishu-tree-children.collapsed { max-height: 0 !important; }

/* ===== 中间内容区 ===== */
.feishu-content {
    flex: 1;
    min-width: 0;
    padding: 32px 48px 80px;
    background: #fff;
    overflow-y: auto;
}

.feishu-doc-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f1f2;
}
.feishu-doc-title {
    font-size: 30px;
    font-weight: 700;
    color: #1f2329;
    line-height: 1.4;
    margin-bottom: 12px;
}
.feishu-doc-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.feishu-doc-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #646a73;
}
.feishu-doc-author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.feishu-doc-date {
    font-size: 13px;
    color: #8f959e;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.feishu-doc-views {
    font-size: 13px;
    color: #8f959e;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.feishu-doc-action {
    font-size: 13px;
    color: #8f959e;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.15s;
    user-select: none;
}
.feishu-doc-action:hover {
    background: #f0f2f5;
    color: #3370ff;
}
.feishu-doc-fav.faved {
    color: #f5a623;
}
.feishu-doc-fav.faved svg {
    fill: #f5a623;
    stroke: #f5a623;
}
.feishu-doc-original {
    background: #e8f0ff;
    color: #3370ff;
}
.feishu-doc-original:hover {
    background: #d6e4ff;
    color: #1d5fe6;
}

/* 文章标签 */
.feishu-doc-tags {
    margin: 16px 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.feishu-doc-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    color: #3370ff;
    background: #eaf2ff;
    border-radius: 12px;
    line-height: 1.6;
}

/* 文章摘要描述框（圆角气泡风格） */
.feishu-doc-desc {
    margin: 20px 0;
    padding: 12px 16px;
	border: 1px #D5D5D5 solid;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    line-height: 2;
    color: #2d3035;
    position: relative;
}
/* 向上的气泡尖角（带边框） */
.feishu-doc-desc::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #D5D5D5;
}
.feishu-doc-desc::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 21px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

.feishu-doc-body {
    font-size: 15px;
    line-height: 2;
    color: #2d3035;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}
/* 标题 */
.feishu-doc-body h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 32px 0 16px;
    line-height: 1.4;
}
.feishu-doc-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 28px 0 14px;
    padding-left: 10px;
    border-left: 4px solid #3370ff;
    line-height: 1.4;
}
.feishu-doc-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 22px 0 12px;
    line-height: 1.4;
}
.feishu-doc-body h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 18px 0 10px;
    line-height: 1.4;
}
/* 段落 */
.feishu-doc-body p {
    margin: 10px 0;
    word-wrap: break-word;
    word-break: break-word;
}
/* 链接：蓝色下划线 */
.feishu-doc-body a {
    color: #3370ff;
    text-decoration: underline;
    word-break: break-all;
}
.feishu-doc-body a:hover {
    color: #1d5fe6;
}
/* 强调 em：圆角灰底蓝色 */
.feishu-doc-body em {
    font-style: normal;
    background: #eef1f5;
    color: #3370ff;
    padding: 2px 6px;
	margin: 0 2px;
    border-radius: 4px;
    font-size: 0.92em;
}
/* 加粗 */
.feishu-doc-body strong {
    font-weight: 600;
    color: #1f2329;
}
/* 图片：圆角、最大宽度100%、左对齐 */
.feishu-doc-body img {
    max-width: 100%;
    min-width: 0;
    border-radius: 8px;
    margin: 12px 0;
    display: block;
    float: none;
}
/* 分割线 */
.feishu-doc-body hr {
    border: none;
    border-top: 1px solid #e5e6eb;
    margin: 20px 0;
}
/* 行内代码 */
.feishu-doc-body code {
    background: #f0f1f2;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #d63384;
    word-break: break-all;
}
/* 代码块 */
.feishu-doc-body pre {
    background: #fff5eb;
    border: 1px solid #fed4a4;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 14px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 14px;
    line-height: 1.8;
}
.feishu-doc-body pre code {
    background: none;
    padding: 0;
    color: #2d3035;
    font-size: 13px;
}
/* 引用块 */
.feishu-doc-body blockquote {
    background: #f7f8fa;
    border-left: 3px solid #3370ff;
    padding: 12px 16px;
    margin: 14px 0;
    border-radius: 0 6px 6px 0;
    color: #646a73;
}
.feishu-doc-body blockquote p {
    margin: 6px 0;
}
/* 无序列表 */
.feishu-doc-body ul {
    margin: 10px 0;
    padding-left: 24px;
}
.feishu-doc-body ul li {
    margin: 6px 0;
    line-height: 1.8;
    list-style: disc;
}
/* 有序列表 */
.feishu-doc-body ol {
    margin: 10px 0;
    padding-left: 24px;
}
.feishu-doc-body ol li {
    margin: 6px 0;
    line-height: 1.8;
    list-style: decimal;
}
/* 嵌套列表 */
.feishu-doc-body ul ul,
.feishu-doc-body ol ol,
.feishu-doc-body ul ol,
.feishu-doc-body ol ul {
    margin: 4px 0;
}
/* 表格 */
.feishu-doc-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 14px;
}
.feishu-doc-body table th,
.feishu-doc-body table td {
    border: 1px solid #e5e6eb;
    padding: 8px 12px;
    text-align: left;
}
.feishu-doc-body table th {
    background: #f7f8fa;
    font-weight: 600;
}
/* 空段落间距收紧 */
.feishu-doc-body p:empty {
    margin: 4px 0;
}

/* 私密内容提示 */
.feishu-private-block {
    text-align: center;
    padding: 60px 20px;
    color: #8f959e;
}
.feishu-private-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #f0f1f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9cdd4;
}
.feishu-private-text { font-size: 15px; margin-bottom: 8px; }
.feishu-private-sub { font-size: 13px; }

/* ===== 右侧评论区 ===== */
.feishu-comments {
    width: 320px;
    flex-shrink: 0;
    background: #fff;
    border-left: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 48px;
    height: calc(100vh - 48px);
    transition: width 0.2s ease;
}
.feishu-comments.collapsed { width: 0; overflow: hidden; border-left: none; }

.feishu-comments-header {
    padding: 16px;
    border-bottom: 1px solid #ebedf0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.feishu-comments-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2329;
    display: flex;
    align-items: center;
    gap: 6px;
}
.feishu-comments-count {
    font-size: 12px;
    color: #8f959e;
    background: #f0f1f2;
    padding: 1px 8px;
    border-radius: 10px;
}

.feishu-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}
.feishu-comment-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f6f7;
}
.feishu-comment-item:last-child { border-bottom: none; }
.feishu-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid #f0f1f2;
}
.feishu-comment-body { min-width: 0; flex: 1; }
.feishu-comment-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.feishu-comment-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2329;
}
.feishu-comment-time {
    font-size: 11px;
    color: #8f959e;
}
.feishu-comment-text {
    font-size: 13px;
    color: #1f2329;
    line-height: 1.6;
    word-break: break-word;
    margin-bottom: 6px;
    position: relative;
}
/* 原评论内容 */
.feishu-comment-text .original_comment {
    display: block;
    color: #1f2329;
    line-height: 1.6;
}
.feishu-comment-text .original_comment .user_name {
    color: #3370ff;
    font-weight: 600;
    text-decoration: none;
    margin-right: 2px;
}
/* 回复气泡：灰底圆角，与原文区分 */
.feishu-comment-text .feishu-reply-bubble {
    position: relative;
    display: block;
    margin-top: 10px;
    padding: 10px 14px;
    background: #f5f6f7;
    border-radius: 0 10px 10px 10px;
    color: #374151;
    line-height: 1.6;
    font-size: 13px;
}
/* 气泡左上角尖角 */
.feishu-comment-text .feishu-reply-bubble::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 6px 8px;
    border-color: transparent transparent #f5f6f7 transparent;
}
.feishu-comment-text .feishu-reply-bubble .user_name {
    color: #3370ff;
    font-weight: 600;
    text-decoration: none;
    margin-right: 2px;
}
/* 隐藏 nl2br 产生的多余换行 */
.feishu-comment-text br {
    display: none;
}
.feishu-comment-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.feishu-comment-like,
.feishu-comment-reply {
    font-size: 12px;
    color: #8f959e;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color 0.15s;
}
.feishu-comment-like:hover,
.feishu-comment-reply:hover {
    color: #3370ff;
}
.feishu-comment-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8f959e;
    font-size: 13px;
}

/* 回复表单 */
.feishu-reply-form {
    margin-top: 8px;
    padding: 10px;
    background: #f7f8fa;
    border-radius: 8px;
}
.feishu-reply-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    resize: none;
    outline: none;
    font-family: inherit;
    line-height: 1.5;
}
.feishu-reply-input:focus { border-color: #3370ff; }
.feishu-reply-btn {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: #3370ff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}
.feishu-reply-btn:hover { background: #2860e1; }

/* 验证码 + 按钮 同一排 */
.feishu-comment-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}
.feishu-code-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.feishu-code-wrap img {
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
}
.feishu-code-wrap input {
    width: 80px;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    outline: none;
}
.feishu-code-wrap input:focus { border-color: #3370ff; }

.feishu-comments-form {
    padding: 12px;
    border-top: 1px solid #ebedf0;
    flex-shrink: 0;
}
.feishu-comment-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    resize: none;
    outline: none;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color 0.15s;
}
.feishu-comment-input:focus { border-color: #3370ff; }
.feishu-comment-submit {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: #3370ff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}
.feishu-comment-submit:hover { background: #2860e1; }
.feishu-comment-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== 底部悬浮搜索 ===== */
.feishu-floating-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feishu-floating-search {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    padding: 4px 4px 4px 16px;
    width: 420px;
    max-width: 70vw;
}
.feishu-fs-icon {
    color: #8f959e;
    display: flex;
    margin-right: 8px;
}
.feishu-fs-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px 0;
    background: transparent;
}
.feishu-fs-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.15s;
}
.feishu-fs-btn:hover { transform: scale(1.05); }

.feishu-floating-comment-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #3370ff, #5b8cff);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(51,112,255,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}
.feishu-floating-comment-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(51,112,255,0.4);
}

/* 搜索建议 */
.feishu-fs-suggestions {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 8px 0;
    display: none;
    max-height: 280px;
    overflow-y: auto;
}
.feishu-fs-suggestions.show { display: block; }
.feishu-fs-suggestion-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #1f2329;
    cursor: pointer;
    transition: background 0.12s;
}
.feishu-fs-suggestion-item:hover { background: #f5f6f7; }

/* ===== 折叠按钮 ===== */
.feishu-collapse-btn {
    position: fixed;
    top: calc(50% + 24px);
    transform: translateY(-50%);
    width: 18px;
    height: 48px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #8f959e;
    z-index: 100;
    box-shadow: 2px 0 6px rgba(0,0,0,0.04);
    transition: background 0.15s;
}
.feishu-collapse-btn:hover { background: #f5f6f7; }
.feishu-collapse-btn.left { left: 380px; }
.feishu-collapse-btn.right { right: 320px; border-radius: 6px 0 0 6px; box-shadow: -2px 0 6px rgba(0,0,0,0.04); }

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .feishu-comments { width: 280px; }
    .feishu-collapse-btn.right { right: 280px; }
}
@media (max-width: 900px) {
    .feishu-sidebar { width: 0; overflow: hidden; }
    .feishu-collapse-btn.left { left: 0; }
    .feishu-content { padding: 24px 20px 80px; }
    .feishu-comments { width: 0; overflow: hidden; border-left: none; }
    .feishu-collapse-btn.right { right: 0; }
    .feishu-floating-search { width: 300px; }
}

/* Loading 旋转动画 */
@keyframes feishu-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== 跳转链接：树形目录外链图标 ===== */
.feishu-tree-link-icon {
    display: inline-flex;
    color: #3370ff;
    margin-right: 2px;
    vertical-align: middle;
}

/* ===== 跳转链接：iframe 容器 ===== */
.feishu-content-iframe {
    padding: 0 !important;
    overflow: hidden !important;
}
.feishu-iframe-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
}
.feishu-iframe-bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #f7f8fa;
    border-bottom: 1px solid #e5e6eb;
}
.feishu-iframe-url {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: #8f959e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.feishu-iframe-open {
    flex-shrink: 0;
    font-size: 12px;
    color: #3370ff;
    text-decoration: none;
    white-space: nowrap;
}
.feishu-iframe-open:hover { text-decoration: underline; }
.feishu-iframe {
    flex: 1;
    width: 100%;
    border: none;
    background: #fff;
    min-height: 0;
}
.feishu-iframe-fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}
.feishu-iframe-fallback.show { display: flex; }
.feishu-iframe-fallback-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.feishu-iframe-fallback-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2329;
    margin-bottom: 8px;
}
.feishu-iframe-fallback-desc {
    font-size: 13px;
    color: #8f959e;
    line-height: 1.6;
    max-width: 360px;
    margin-bottom: 20px;
}
.feishu-iframe-open-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: #3370ff;
    color: #fff;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
}
.feishu-iframe-open-btn:hover { background: #2860e0; }
