/* 学习室静态演示 — 样式（对齐 React 版布局与动效） */

:root {
    --header-h: 76px;
    --catalogue-w: 380px;
    --course-expand-w: 480px;
    --course-collapse-w: 80px;
    --ai-w: 480px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.page-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    overflow: auto;
    background: #fff;
}

    .page-container::-webkit-scrollbar,
    .chapter-list::-webkit-scrollbar,
    .transcript-area::-webkit-scrollbar,
    .ai-dialog-box::-webkit-scrollbar,
    .play-ai-inner::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    .page-container::-webkit-scrollbar-thumb,
    .chapter-list::-webkit-scrollbar-thumb,
    .transcript-area::-webkit-scrollbar-thumb,
    .ai-dialog-box::-webkit-scrollbar-thumb,
    .play-ai-inner::-webkit-scrollbar-thumb {
        border-radius: 3px;
        background: rgba(35, 111, 255, 0.35);
    }

/* 顶部 */
.header {
    display: flex;
    z-index: 100;
    flex: 0 0 var(--header-h);
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: linear-gradient(90deg, #f0f6ff 0%, #fff 35%, #fff 65%, #f5f8ff 100%);
    box-shadow: 0 2px 8px rgba(141, 153, 199, 0.16);
}

.header-left {
    display: flex;
    align-items: center;
    color: #000;
    font-size: 20px;
}

.header-left-icon {
    margin-right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-video-progress-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.video-progress-label {
    color: #5b6f96;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.header-video-only {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.header-video-only-input {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #236fff;
}

.header-video-only-text {
    color: #5b6f96;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 116px;
    height: 36px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    gap: 8px;
    user-select: none;
}

.header-btn-left {
    background: linear-gradient(270deg, #4b81ff 0%, #b46aff 100%);
    color: #fff;
}

.header-btn-right {
    border: 1px solid #236fff;
    background: transparent;
    color: #236fff;
}

.header-btn-chevron {
    display: inline-block;
    width: 0;
    height: 0;
    transition: transform 0.3s;
    border-top: 6px solid currentColor;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
}

    .header-btn-chevron.is-active {
        transform: rotate(180deg);
    }

/* 主内容区 */
.content-wrapper {
    display: flex;
    flex: 1;
    min-height: 0;
    min-height: 600px;
    overflow: auto;
}

.catalogue-left {
    display: flex;
    flex: none;
    flex-direction: column;
    width: var(--catalogue-w);
    min-width: var(--catalogue-w);
    overflow: hidden;
    transition: width 0.25s ease, min-width 0.25s ease;
}

    .catalogue-left.is-collapsed {
        width: 0;
        min-width: 0;
    }

/* 课程目录 */
.catalogue {
    display: flex;
    flex-direction: column;
    width: var(--catalogue-w);
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    background: #35363d;
}

    .catalogue .cat-header {
        display: flex;
        flex: 0 0 52px;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 16px;
        font-weight: 500;
    }

    .catalogue .cat-header-right {
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .catalogue .cat-header-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        color: rgba(255, 255, 255, 0.6);
        font-size: 14px;
        cursor: pointer;
    }

        .catalogue .cat-header-icon:hover {
            color: rgba(255, 255, 255, 0.9);
        }

.header-video-only-in-cat .header-video-only-input {
    width: 14px;
    height: 14px;
    accent-color: #4dd4ac;
}

.header-video-only-in-cat .header-video-only-text {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 500;
}

.chapter-list {
    flex: 1;
    padding: 0 12px 16px;
    overflow-y: auto;
}

.chapter-item {
    margin-bottom: 4px;
    border-radius: 6px;
}

.chapter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 12px 14px;
    border-radius: 12px;
    background: #22232b;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.chapter-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-head .chevron {
    flex-shrink: 0;
    margin-left: 8px;
    transition: transform 0.2s;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

    .chapter-head .chevron.is-expanded {
        transform: rotate(180deg);
    }

.section-list {
    /* padding: 6px; */
    border-radius: 6px;
}

.section-item {
    display: flex;
    align-items: center;
    padding: 8px 6px 8px 3px;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    cursor: pointer;
    gap: 2px;
    text-decoration: none;
}

    .section-item:hover {
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.9);
    }

/* 与文档行共用：首列固定宽度，状态点/播放图标与第二列「类型」图标（视频/文档）纵向对齐 */
.section-item-lead {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    height: 20px;
}

.section-item-lead--empty {
    visibility: hidden;
    pointer-events: none;
}

.section-play {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.section-play-img {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.section-extra {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    color: #9f9f9f;
    font-size: 14px;
}

.section-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #9f9f9f;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.section-time {
    flex-shrink: 0;
    color: #9f9f9f;
    font-size: 12px;
}

.section-item.is-active {
    color: #4dd4ac;
}

    .section-item.is-active .section-time,
    .section-item.is-active .section-play,
    .section-item.is-active .section-extra,
    .section-item.is-active .section-title {
        color: #4dd4ac;
    }

.status-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-0 {
    background: #6b7cff;
}

.status-1 {
    background: #4dd4ac;
}

.status-2 {
    background: #9f9f9f;
}

/* 未学：半灰半绿 */
.status-3 {
    background: linear-gradient(90deg, #9f9f9f 0 50%, #4dd4ac 50% 100%);
}

/* 视频区 */
.left-panel {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 320px;
    overflow: hidden;
    border-right: 1px solid #d7e1f2;
}

.video-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f2f6ff;
}

.video-container {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    padding: 24px;
    overflow: hidden;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(145deg, #1a2a4a 0%, #2d4a7c 100%);
    /* box-shadow: 0 8px 32px rgba(35, 111, 255, 0.2); */
    color: rgba(255, 255, 255, 0.85);
    aspect-ratio: 16 / 9;
}

    .video-placeholder .ph-icon {
        margin-bottom: 12px;
        opacity: 0.9;
        font-size: 42px;
    }

    .video-placeholder .ph-title {
        margin-bottom: 6px;
        padding: 0 16px;
        font-size: 16px;
        font-weight: 600;
        text-align: center;
    }

    .video-placeholder .ph-sub {
        opacity: 0.7;
        font-size: 13px;
    }

.transcript-area {
    flex: 1;
    width: 100%;
    padding-bottom: 16px;
    overflow-y: auto;
}

.transcript-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.transcript-item {
    margin-bottom: 16px;
}

    .transcript-item .timestamp {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
        color: #656981;
        font-size: 12px;
        gap: 10px;
    }

.timestamp-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background: linear-gradient(180deg, #85e1ff 0%, #6796ff 67.93%, #56c8ff 100%);
    color: #fff;
    font-size: 11px;
}

.transcript-text {
    padding: 16px;
    border: 2px solid #fff;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(35, 111, 255, 0.12);
    color: #484848;
    font-size: 14px;
    line-height: 22px;
    cursor: pointer;
}

    .transcript-text.is-active {
        border-color: #84fbff;
        background: #236fff;
        color: #fff;
    }

/* 课程详情中间栏 */
.middle-panel {
    display: flex;
    flex: none;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s ease-in-out;
    border-right: 1px solid #d7e1f2;
    background: #fff;
}

    .middle-panel.is-expand {
        width: var(--course-expand-w);
    }

    .middle-panel.is-collapse {
        width: var(--course-collapse-w);
    }

.course-detail .tab-header {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    margin: 0 17px;
    border-bottom: 1px solid #eff0f2;
}

.course-detail.is-collapse .tab-header {
    display: none;
}

.tab-list-h {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: rgba(35, 111, 255, 0.3) transparent;
}

.tab-header-main {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.tab-list-h::-webkit-scrollbar {
    height: 4px;
}

.tab-list-h::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background: rgba(35, 111, 255, 0.3);
}

.tab-item-h {
    display: flex;
    position: relative;
    flex: none;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 2px;
    color: #666;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

    .tab-item-h.is-active {
        color: #236fff;
        font-weight: bold;
    }

        .tab-item-h.is-active::after {
            content: "";
            position: absolute;
            right: 0;
            bottom: 8px;
            left: 0;
            height: 3px;
            border-radius: 2px;
            background: linear-gradient(90deg, #236fff 0%, rgba(240, 246, 255, 0) 100%);
        }

.icon-collapse {
    color: #7e8fad;
    font-size: 18px;
    cursor: pointer;
}

.tab-line-bottom {
    display: none;
}

.tab-content {
    flex: 1;
    padding: 16px 17px 24px;
    overflow: auto;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
}

.course-detail.is-collapse .tab-content {
    display: none;
}

.collapse-sidebar {
    display: none;
    flex-direction: column;
    align-items: center;
    padding-top: 8px;
}

.course-detail.is-collapse .collapse-sidebar {
    display: flex;
}

.icon-expand-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 13px 0;
    border-radius: 50%;
    background: #f2f7ff;
    cursor: pointer;
}

    .icon-expand-box .iconfont {
        color: #2b487a;
        font-size: 18px;
    }

.collapse-sidebar .mini-line {
    width: 16px;
    height: 1px;
    background: #eff0f2;
}

.tab-list-v {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 240px);
    margin-top: 20px;
    overflow-y: auto;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    gap: 18px;
}

    /* 与线上一致：两个标签上下排列，每个词内仍为横排，勿用 vertical-rl（会把「导读」拆成单字竖排） */
    .tab-list-v .tab-item-v {
        line-height: 1.4;
        white-space: nowrap;
        cursor: pointer;
    }

    .tab-list-v .docs-nav-vertical {
        /* color: #5b6f96; */
        font-size: 12px;
        font-weight: 600;
    }

/* AI 助手 */
.right-panel {
    display: flex;
    flex: none;
    flex-direction: column;
    width: 0;
    min-width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    background: #fff;
}

    .right-panel.is-open {
        width: var(--ai-w);
        min-width: var(--ai-w);
    }

.ai-assistant {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: radial-gradient(circle at 4% 26%, rgba(183, 126, 255, 0.28) 0, rgba(183, 126, 255, 0) 18%), radial-gradient(circle at 97% 86%, rgba(255, 231, 138, 0.26) 0, rgba(255, 231, 138, 0) 18%), radial-gradient(circle at 8% 6%, rgba(147, 211, 255, 0.25) 0, rgba(147, 211, 255, 0) 20%), linear-gradient(180deg, #eaf2ff 0%, #edf2ff 48%, #edf1fd 100%);
}

.ai-header {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.ai-header-title {
    color: #112f67;
    font-size: 16px;
    font-weight: bold;
}

/* 用两条线段画 ×，圆心对齐，不依赖字体字形（避免与「我的笔记」仍不一致） */
.ai-close {
    display: flex;
    position: relative;
    box-sizing: border-box;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(101, 137, 208, 0.5);
    cursor: pointer;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
}

    .ai-close::before,
    .ai-close::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 9px;
        height: 1.5px;
        margin-top: -0.75px;
        margin-left: -4.5px;
        border-radius: 1px;
        background: #fff;
    }

    .ai-close::before {
        transform: rotate(45deg);
    }

    .ai-close::after {
        transform: rotate(-45deg);
    }

.ai-line {
    height: 1px;
    margin: 0 24px;
    background: linear-gradient(63deg, #6dbce9 0%, rgba(196, 201, 235, 0) 100%);
}

.ai-dialog-box {
    flex: 1;
    padding: 14px 24px;
    overflow-y: auto;
}

.ai-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 25px;
}

.ai-avatar {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    padding: 2px;
    border-radius: 50%;
}

.ai-avatar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f7f9ff url("../assets/img/examine.png") center center / cover no-repeat;
}

.ai-welcome-title {
    margin: 18px 0 10px;
    color: #112f67;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.ai-welcome-subtitle {
    align-self: flex-start;
    margin: 0 0 10px 40px;
    color: #666;
    font-size: 12px;
}

.ai-suggest-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 80%;
    gap: 10px;
}

.ai-suggest-item {
    display: flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 14px;
    background: #fff;
    color: #112f67;
    font-size: 12px;
    line-height: 1;
}

.ai-chat-list {
    display: none;
    padding: 12px 0 0;
}

.ai-dialog-box.is-chatting .ai-welcome {
    display: none;
}

.ai-dialog-box.is-chatting .ai-chat-list {
    display: block;
}

.msg {
    display: flex;
    width: 100%;
    margin-bottom: 16px;
}

.msg-user {
    justify-content: flex-end;
}

.msg-bubble {
    display: inline-block;
    padding: 10px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.msg-user .msg-bubble {
    background: #4d5483;
    color: #fff;
}

.msg-ai {
    align-items: flex-start;
    gap: 10px;
}

    .msg-ai .msg-bubble {
        background: #fff;
        color: #232636;
    }

    .msg-ai .ai-avatar {
        width: 46px;
        height: 46px;
        margin-top: 4px;
    }

.ai-input-row {
    flex: none;
    padding: 0 24px 20px;
}

.ai-input-shell {
    position: relative;
    width: 100%;
    height: 140px;
    border: 2px solid transparent;
    border-radius: 20px;
    background-clip: padding-box, border-box;
    background-image: linear-gradient(180deg, #f3f6f9 0%, #ffffff 100%), linear-gradient(180deg, #ffffff 0%, #ffffff 5%, #77a6ff 50%, #86eaf4 100%);
    box-shadow: 0 8px 32px rgba(0, 52, 216, 0.1);
    background-origin: padding-box, border-box;
}

.ai-input-row textarea {
    width: 100%;
    height: 100%;
    padding: 18px 62px 18px 18px;
    border: 0;
    border-radius: 18px;
    outline: none;
    background: transparent;
    color: #333;
    font-family: inherit;
    font-size: 16px;
    line-height: 24px;
    resize: none;
}

.ai-send-btn {
    display: flex;
    position: absolute;
    right: 16px;
    bottom: 16px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(136deg, #52fffe 0%, #58a0ff 40.18%, #c38dff 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

    .ai-send-btn:hover {
        opacity: 0.92;
    }

.ai-hint {
    margin-top: 8px;
    color: #8892a8;
    font-size: 12px;
}

/* 玩转 AI 占位 */
.play-ai-block {
    display: none;
    flex: 1;
    flex-direction: column;
    min-width: 320px;
    overflow: auto;
    background: #f7f9fc;
}

    .play-ai-block.is-visible {
        display: flex;
    }

.play-ai-inner {
    flex: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 48px;
}

    .play-ai-inner h2 {
        margin: 0 0 12px;
        color: #112f67;
        font-size: 22px;
    }

    .play-ai-inner p {
        margin: 0 0 12px;
        color: #555;
        line-height: 1.8;
    }

.play-ai-card {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid #e8eef8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(35, 111, 255, 0.08);
}

.empty-catalogue {
    padding: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* 与线上一致：中间栏+AI 为固定宽度，不参与 flex 伸展，避免右侧出现大块空白 */
.normal-columns {
    display: flex;
    flex: none;
    min-width: 0;
}

.course-detail {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* 文档目录 + PDF 预览（导读/脑图右侧菜单） */
.docs-layout {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.docs-left {
    flex: 1;
    min-width: 0;
}

.docs-intro {
    margin-bottom: 14px;
    padding: 12px 16px;
    border: 1px solid #e8eef8;
    border-radius: 10px;
    background: #ffffff;
    color: #333;
}

    .docs-intro pre {
        margin: 0;
        white-space: pre-wrap;
    }

.docs-directories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
}

.dir-block {
    padding-bottom: 10px;
    border-bottom: 1px solid #eff0f2;
}

.dir-title {
    margin-bottom: 8px;
    color: #112f67;
    font-size: 13px;
    font-weight: 700;
}

.file-link {
    margin-bottom: 10px;
    padding: 8px 12px;
    border: 1px solid #e8eef8;
    border-radius: 8px;
    background: #f7f9ff;
    color: #236fff;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

    .file-link:hover {
        opacity: 0.92;
    }

    .file-link.is-active {
        border-color: transparent;
        background: linear-gradient(270deg, #4b81ff 0%, #b46aff 100%);
        color: #fff;
    }

.docs-pdf {
    width: 100%;
    height: 520px;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #e8eef8;
    border-radius: 12px;
    background: #f7f9ff;
}

    .docs-pdf iframe {
        width: 100%;
        height: 100%;
        border: 0;
        background: transparent;
    }

/* 导读静态内容（对齐 React 导读结构） */
.guide-content-static {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    height: 100%;
    /* padding: 24px 0 0; */
    overflow: auto;
    gap: 18px;
}

.guide-section {
    display: flex;
    flex: none;
    flex-direction: column;
    /* padding: 0 24px; */
    gap: 16px;
}

.guide-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-title-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(180deg, #85e1ff 0%, #6796ff 67.93%, #56c8ff 100%);
}

.guide-title h3 {
    margin: 0;
    color: rgba(0, 0, 0, 0.88);
    font-size: 16px;
    font-weight: bold;
}

.guide-keywords-wrap,
.guide-summary-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.guide-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
}

    .guide-keywords-list.is-collapsed {
        height: 40px;
        overflow: hidden;
    }

.guide-keyword-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 16px;
    transition: background-color 0.2s;
    border-radius: 4px;
    background: #f2f7ff;
    color: #2b487a;
    font-size: 14px;
    line-height: 1.5;
    cursor: default;
}

    .guide-keyword-tag:hover {
        background: #e6e8eb;
    }

.guide-summary-text {
    margin: 0;
    color: #222222;
    font-size: 14px;
    line-height: 24px;
}

    .guide-summary-text.is-collapsed {
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

.guide-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0px 8px;
    transition: color 0.2s;
    border-radius: 9px;
    background: linear-gradient(270deg, #ffffff 0%, #ebf3ff 100%);
    color: #236fff;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

    .guide-expand-btn:hover {
        color: #4d8aff;
    }

.guide-expand-icon {
    display: inline-block;
    transition: transform 0.3s;
    font-size: 12px;
}

.guide-expand-btn.is-expanded .guide-expand-icon {
    transform: rotate(180deg);
}

.guide-quick-view {
    /* margin: 0 12px; */
    padding: 20px 15px;
    border-radius: 20px;
    background: linear-gradient(0deg, #ffffff 0%, #f7f8fc 100%);
}

.guide-quick-header {
    display: flex;
    position: relative;
    flex-direction: column;
    /* align-items: center; */
    justify-content: space-between;
    width: 100%;
    height: 30px;
    /* margin-bottom: 16px; */
    color: #000000;
    font-size: 16px;
    font-weight: bold;
}

    .guide-quick-header::after {
        content: "";
        width: 20px;
        height: 4px;
        border-radius: 2px;
        background: linear-gradient(270deg, #6db4ff 0%, #397dff 100%);
    }

.guide-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 24px;
}

.guide-timeline-item {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* padding: 0 24px; */
}

.guide-timeline-time {
    display: flex;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    width: 80px;
    gap: 8px;
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

.guide-timeline-dot {
    display: flex;
    position: relative;
    z-index: 1;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 100%;
}

    .guide-timeline-dot::before {
        content: "";
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #d3ecff;
    }

    .guide-timeline-dot::after {
        content: "";
        position: absolute;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #236fff;
    }

.guide-timeline-card {
    flex: 0 1 560px;
    min-width: 0;
    min-height: 40px;
    padding: 10px;
    transition: all 0.3s ease;
    border: 2px solid #aae3ff;
    border-radius: 12px;
    background: #236fff;
    box-shadow: 0px 2px 4px 0px rgba(35, 111, 255, 0.12);
    color: #ffffff;
    font-size: 14px;
    line-height: 22px;
    cursor: pointer;
}

    .guide-timeline-card:hover {
        background: #236fff;
    }

.guide-empty {
    color: #9aa6c3;
    font-size: 13px;
}

/* 静态 DOM 的显示隐藏（导航切换只控制 display） */
.guide-static-block {
    display: none;
}

    .guide-static-block.is-active {
        display: flex;
    }

.docs-category {
    display: none;
}

    .docs-category.is-active {
        display: block;
    }

/* —— 我的笔记（侧栏，与 AI 助手 / 顶栏同系配色） —— */
.header-btn-notes {
    width: auto;
    min-width: 100px;
    padding: 0 14px;
    border: 1px solid #236fff;
    background: transparent;
    color: #236fff;
}

.notes-backdrop {
    visibility: hidden;
    position: fixed;
    z-index: 180;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    opacity: 0;
    background: rgba(17, 47, 103, 0.18);
    pointer-events: none;
    inset: 0;
}

    .notes-backdrop.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

.notes-drawer {
    display: flex;
    position: fixed;
    z-index: 190;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    flex-direction: column;
    width: min(360px, 100vw);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    border-left: 1px solid #e8eef8;
    background: linear-gradient(180deg, #e8f2ff 0%, #f5f9ff 40%, #fff 100%);
    box-shadow: -4px 0 24px rgba(35, 111, 255, 0.12);
}

    .notes-drawer.is-open {
        transform: translateX(0);
    }

.notes-drawer-head {
    display: flex;
    position: relative;
    flex: none;
    align-items: center;
    gap: 12px;
    padding: 9px 20px 10px;
    border-bottom: none;
}

.notes-drawer-head-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.notes-drawer-head::after {
    content: "";
    position: absolute;
    right: 20px;
    bottom: 0;
    left: 20px;
    height: 1px;
    background: linear-gradient(63deg, #6dbce9 0%, rgba(196, 201, 235, 0) 100%);
}

.notes-drawer-title {
    flex: 1;
    min-width: 0;
    color: #112f67;
    font-size: 16px;
    font-weight: bold;
}

.notes-drawer-x {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    transition: opacity 0.15s ease;
    border: none;
    border-radius: 50%;
    background: rgba(101, 137, 208, 0.5);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

    .notes-drawer-x:hover {
        opacity: 0.88;
    }

.notes-drawer-body {
    flex: 1;
    min-height: 0;
    padding: 12px 20px 20px;
    overflow: auto;
}

.notes-view.is-hidden {
    display: none !important;
}

.notes-btn-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    transition: opacity 0.15s ease;
    border: none;
    border-radius: 999px;
    background: linear-gradient(270deg, #4b81ff 0%, #b46aff 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    gap: 10px;
}

    .notes-btn-add:hover {
        opacity: 0.92;
    }

.notes-btn-add-icon {
    display: flex;
    flex: none;
    color: #fff;
}

.notes-btn-add-head {
    flex-shrink: 0;
    width: auto;
    padding: 6px 12px;
    font-size: 13px;
    gap: 6px;
}

    .notes-btn-add-head .notes-btn-add-icon svg {
        width: 16px;
        height: 16px;
    }

.notes-rule {
    height: 1px;
    margin: 16px 0;
    background: linear-gradient(63deg, #6dbce9 0%, rgba(196, 201, 235, 0) 100%);
}

.notes-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.notes-item {
    margin-bottom: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8eef8;
}

    .notes-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .notes-item.is-hidden {
        display: none;
    }

.notes-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.notes-item-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5b6f96;
    font-size: 13px;
    font-weight: 600;
}

    .notes-item-time svg {
        flex: none;
        opacity: 0.9;
    }

.notes-item-del {
    flex: none;
    padding: 6px;
    transition: background 0.15s ease, color 0.15s ease;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #8892a8;
    line-height: 0;
    cursor: pointer;
}

    .notes-item-del:hover {
        background: rgba(35, 111, 255, 0.08);
        color: #236fff;
    }

.notes-item-body {
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.notes-item-date {
    color: #8892a8;
    font-size: 12px;
}

.notes-textarea {
    display: block;
    width: 100%;
    min-height: 180px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #d7e1f2;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

    .notes-textarea::placeholder {
        color: #8892a8;
    }

    .notes-textarea:focus {
        border-color: #236fff;
        outline: none;
        box-shadow: 0 0 0 2px rgba(35, 111, 255, 0.15);
    }

.notes-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.notes-btn-secondary {
    padding: 8px 20px;
    transition: background 0.15s ease, border-color 0.15s ease;
    border: 1px solid #d7e1f2;
    border-radius: 8px;
    background: #fff;
    color: #5b6f96;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

    .notes-btn-secondary:hover {
        border-color: #236fff;
        background: #f5f9ff;
        color: #236fff;
    }

.notes-btn-primary {
    padding: 8px 20px;
    transition: opacity 0.15s ease;
    border: none;
    border-radius: 8px;
    background: linear-gradient(270deg, #4b81ff 0%, #b46aff 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

    .notes-btn-primary:hover {
        opacity: 0.92;
    }

.notes-drawer-body::-webkit-scrollbar {
    width: 6px;
}

.notes-drawer-body::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: rgba(35, 111, 255, 0.35);
}

/* PDF 预览抽屉 */
.pdf-preview-backdrop {
    visibility: hidden;
    position: fixed;
    z-index: 200;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    opacity: 0;
    background: rgba(17, 47, 103, 0.18);
    pointer-events: none;
    inset: 0;
}

    .pdf-preview-backdrop.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

.pdf-preview-drawer {
    display: flex;
    position: fixed;
    z-index: 210;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    flex-direction: column;
    width: min(720px, 92vw);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    border-left: 1px solid #dfe9ff;
    background: #fff;
    box-shadow: -6px 0 24px rgba(35, 111, 255, 0.14);
}

    .pdf-preview-drawer.is-open {
        transform: translateX(0);
    }

.pdf-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eef3ff;
}

.pdf-preview-title {
    color: #112f67;
    font-size: 16px;
    font-weight: 700;
}

.pdf-preview-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(101, 137, 208, 0.5);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.pdf-preview-body {
    flex: 1;
    min-height: 0;
    padding: 10px;
    background: #f7faff;
}

    .pdf-preview-body iframe {
        width: 100%;
        height: 100%;
        border: 1px solid #e5edff;
        border-radius: 8px;
        background: #fff;
    }
