    /* =========================================================
       技术笔记首页
       作用域：body[data-page="note"]
       不影响其他页面
       ========================================================= */


    /* =========================================================
       1. 页面变量
       ========================================================= */

body[data-page="note"] {

    --note-primary: #5b4fe8;
    --note-primary-dark: #4438c8;
    --note-indigo: #7c72f0;

    --note-text: #241a52;
    --note-text-secondary: #413a5f;
    --note-muted: #7a7398;

    --note-border: #e9e6f7;
    --note-border-light: #f5f3ff;

    --note-bg: #faf9ff;
    --note-white: #ffffff;

    color: var(--note-text);
    background: var(--note-bg);

}


/* =========================================================
   2. 页面基础
   ========================================================= */

body[data-page="note"] .note-page {

    min-height: 100vh;

    background:
            linear-gradient(
                    180deg,
                    #ffffff 0%,
                    #faf9ff 35%,
                    #faf9ff 100%
            );

}


body[data-page="note"] .container-xl {

    position: relative;
    z-index: 2;

}


/* =========================================================
   3. Hero
   ========================================================= */

body[data-page="note"] .note-hero {

    position: relative;

    min-height: 280px;

    display: flex;
    align-items: center;

    overflow: hidden;

    border-bottom: 1px solid var(--note-border-light);

    background:
            radial-gradient(
                    circle at 75% 20%,
                    rgba(91, 79, 232, .12),
                    transparent 30%
            ),
            radial-gradient(
                    circle at 90% 80%,
                    rgba(124, 108, 232, .10),
                    transparent 30%
            ),
            linear-gradient(
                    180deg,
                    #ffffff 0%,
                    #faf9ff 100%
            );

}


body[data-page="note"] .note-hero::before {

    content: "";

    position: absolute;

    inset: 0;

    background-image:
            linear-gradient(
                    rgba(36, 26, 82, .035) 1px,
                    transparent 1px
            ),
            linear-gradient(
                    90deg,
                    rgba(36, 26, 82, .035) 1px,
                    transparent 1px
            );

    background-size: 36px 36px;

    mask-image:
            linear-gradient(
                    to bottom,
                    rgba(0, 0, 0, .75),
                    transparent
            );

    pointer-events: none;

}


/* =========================================================
   4. Hero 内容
   ========================================================= */

body[data-page="note"] .note-hero-inner {

    min-height: 280px;

    display: flex;
    align-items: center;

}


body[data-page="note"] .note-hero-content {

    position: relative;

    max-width: 680px;

    padding: 44px 0;

    z-index: 3;

}


body[data-page="note"] .note-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 18px;

    color: var(--note-primary);

    font-size: .72rem;

    font-weight: 750;

    letter-spacing: .12em;

}


body[data-page="note"] .note-eyebrow-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--note-primary);

    box-shadow:
            0 0 0 5px rgba(91, 79, 232, .10);

}


body[data-page="note"] .note-hero-title {

    margin: 0;

    color: var(--note-text);

    font-size: clamp(
            2.2rem,
            4vw,
            3.4rem
    );

    line-height: 1.08;

    letter-spacing: -.055em;

    font-weight: 800;

}


body[data-page="note"] .note-hero-title span {

    color: var(--note-primary);

}


body[data-page="note"] .note-hero-desc {

    max-width: 650px;

    margin: 25px 0 0;

    color: var(--note-muted);

    font-size: 1rem;

    line-height: 1.9;

}


/* =========================================================
   5. Hero 装饰
   ========================================================= */

body[data-page="note"] .note-hero-decoration {

    position: absolute;

    width: 530px;
    height: 350px;

    right: 0;
    top: 0;

    pointer-events: none;

}


body[data-page="note"] .note-decoration-grid {

    position: absolute;

    width: 300px;
    height: 300px;

    right: 30px;
    top: 25px;

    opacity: .55;

    background-image:
            linear-gradient(
                    rgba(91, 79, 232, .12) 1px,
                    transparent 1px
            ),
            linear-gradient(
                    90deg,
                    rgba(91, 79, 232, .12) 1px,
                    transparent 1px
            );

    background-size: 24px 24px;

    mask-image:
            radial-gradient(
                    circle,
                    black 0%,
                    transparent 70%
            );

}


body[data-page="note"] .note-decoration-circle {

    position: absolute;

    border-radius: 50%;

}


body[data-page="note"] .circle-one {

    width: 260px;
    height: 260px;

    right: 55px;
    top: 45px;

    border: 1px solid rgba(91, 79, 232, .12);

}


body[data-page="note"] .circle-two {

    width: 170px;
    height: 170px;

    right: 100px;
    top: 90px;

    border: 1px solid rgba(124, 108, 232, .15);

}


/* =========================================================
   6. Hero 浮动卡片
   ========================================================= */

body[data-page="note"] .note-floating-card {

    position: absolute;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 13px 16px;

    border: 1px solid rgba(255, 255, 255, .85);

    border-radius: 14px;

    background:
            rgba(255, 255, 255, .88);

    backdrop-filter: blur(14px);

    -webkit-backdrop-filter: blur(14px);

    box-shadow:
            0 20px 45px rgba(36, 26, 82, .10),
            0 4px 12px rgba(36, 26, 82, .05);

}


body[data-page="note"] .note-floating-card-one {

    right: 220px;
    top: 80px;

    animation:
            noteFloatOne
            5s
            ease-in-out
            infinite;

}


body[data-page="note"] .note-floating-card-two {

    right: 45px;
    bottom: 65px;

    gap: 7px;

    animation:
            noteFloatTwo
            6s
            ease-in-out
            infinite;

}


body[data-page="note"] .note-floating-icon {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    color: #ffffff;

    background:
            linear-gradient(
                    135deg,
                    #5b4fe8,
                    #7c72f0
            );

}


body[data-page="note"] .note-floating-title {

    color: #241a52;

    font-size: .78rem;

    font-weight: 700;

}


body[data-page="note"] .note-floating-text {

    margin-top: 2px;

    color: #8a83a8;

    font-size: .68rem;

}


body[data-page="note"] .note-floating-number {

    color: var(--note-primary);

    font-size: 1.2rem;

    font-weight: 800;

}


body[data-page="note"] .note-floating-label {

    color: #7a7398;

    font-size: .7rem;

}


@keyframes noteFloatOne {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }

}


@keyframes noteFloatTwo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }

}


/* =========================================================
   7. 搜索区域
   ========================================================= */

body[data-page="note"] .note-toolbar-section {

    padding: 30px 0 0;

}


body[data-page="note"] .note-toolbar {

    display: flex;

}


body[data-page="note"] .note-search {

    position: relative;

    width: 100%;

    max-width: 760px;

    display: flex;

    align-items: center;

}


body[data-page="note"] .note-search-icon {

    position: absolute;

    left: 18px;

    color: #8a83a8;

    pointer-events: none;

}


body[data-page="note"] .note-search-input {

    width: 100%;

    height: 52px;

    padding:
            0
            110px
            0
            50px;

    border: 1px solid var(--note-border);

    border-radius: 14px;

    outline: none;

    background: #ffffff;

    color: var(--note-text);

    font-size: .9rem;

    box-shadow:
            0 3px 10px rgba(36, 26, 82, .03);

    transition:
            border-color .2s ease,
            box-shadow .2s ease;

}


body[data-page="note"] .note-search-input::placeholder {

    color: #8a83a8;

}


body[data-page="note"] .note-search-input:focus {

    border-color:
            rgba(91, 79, 232, .45);

    box-shadow:
            0 0 0 4px rgba(91, 79, 232, .08),
            0 5px 15px rgba(36, 26, 82, .05);

}


body[data-page="note"] .note-search-button {

    position: absolute;

    right: 7px;

    top: 7px;

    height: 38px;

    padding: 0 20px;

    border: none;

    border-radius: 9px;

    color: #ffffff;

    background:
            linear-gradient(
                    135deg,
                    #5b4fe8,
                    #4438c8
            );

    font-size: .8rem;

    font-weight: 650;

    cursor: pointer;

    box-shadow:
            0 5px 12px rgba(91, 79, 232, .18);

    transition:
            transform .2s ease,
            box-shadow .2s ease;

}


body[data-page="note"] .note-search-button:hover {

    transform: translateY(-1px);

    box-shadow:
            0 8px 18px rgba(91, 79, 232, .25);

}


/* =========================================================
   8. 分类
   ========================================================= */

body[data-page="note"] .note-category-wrapper {

    margin-top: 28px;

}


body[data-page="note"] .note-category-title {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 13px;

    color: #413a5f;

    font-size: .85rem;

    font-weight: 700;

}


body[data-page="note"] .note-category-count {

    color: #8a83a8;

    font-size: .72rem;

    font-weight: 500;

}


body[data-page="note"] .note-category-list {

    display: flex;

    flex-wrap: wrap;

    gap: 9px;

}


body[data-page="note"] .note-category-btn {

    padding: 8px 16px;

    border: 1px solid #e9e6f7;

    border-radius: 999px;

    background: #ffffff;

    color: #7a7398;

    font-size: .78rem;

    font-weight: 600;

    cursor: pointer;

    transition:
            color .2s ease,
            background .2s ease,
            border-color .2s ease,
            transform .2s ease,
            box-shadow .2s ease;

}


body[data-page="note"] .note-category-btn:hover {

    transform: translateY(-1px);

    border-color:
            rgba(91, 79, 232, .25);

    color: var(--note-primary);

    background: #ffffff;

}


body[data-page="note"] .note-category-btn.active {

    border-color: var(--note-primary);

    background:
            linear-gradient(
                    135deg,
                    #5b4fe8,
                    #4438c8
            );

    color: #ffffff;

    box-shadow:
            0 6px 15px rgba(91, 79, 232, .18);

}


/* =========================================================
   9. 笔记列表
   ========================================================= */

body[data-page="note"] .note-list-section {

    padding: 36px 0 52px;

}


body[data-page="note"] .note-section-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;

}


body[data-page="note"] .note-section-title {

    margin: 0;

    color: var(--note-text);

    font-size: 1.8rem;

    line-height: 1.35;

    font-weight: 750;

    letter-spacing: -.035em;

}


body[data-page="note"] .note-section-desc {

    margin: 7px 0 0;

    color: var(--note-muted);

    font-size: .875rem;

}


body[data-page="note"] .note-result-count {

    color: #8a83a8;

    font-size: .78rem;

}


/* =========================================================
   10. 笔记卡片
   ========================================================= */

body[data-page="note"] .note-card {

    height: 100%;

    overflow: hidden;

    border: 1px solid #e9e6f7;

    border-radius: 18px;

    background: #ffffff;

    cursor: pointer;

    box-shadow:
            0 2px 5px rgba(36, 26, 82, .025);

    transition:
            transform .3s ease,
            box-shadow .3s ease,
            border-color .3s ease;

}


body[data-page="note"] .note-card:hover {

    transform: translateY(-7px);

    border-color:
            rgba(91, 79, 232, .18);

    box-shadow:
            0 20px 45px rgba(36, 26, 82, .11);

}


/* =========================================================
   11. 封面
   ========================================================= */

body[data-page="note"] .note-card-cover {

    position: relative;

    overflow: hidden;

    aspect-ratio: 16 / 9;

    background: #e9e6f7;

}


body[data-page="note"] .note-card-cover img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
            transform .5s ease,
            filter .5s ease;

}


body[data-page="note"] .note-card:hover
.note-card-cover img {

    transform: scale(1.06);

    filter: brightness(.93);

}


body[data-page="note"] .note-card-cover-mask {

    position: absolute;

    inset: 0;

    background:
            linear-gradient(
                    to top,
                    rgba(36, 26, 82, .34),
                    transparent 55%
            );

    pointer-events: none;

}


body[data-page="note"] .note-card-label {

    position: absolute;

    left: 14px;
    top: 14px;

    padding: 5px 9px;

    border-radius: 7px;

    color: #ffffff;

    background:
            rgba(36, 26, 82, .68);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    font-size: .68rem;

    font-weight: 600;

}


body[data-page="note"] .note-card-arrow {

    position: absolute;

    right: 14px;
    bottom: 14px;

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    background:
            rgba(36, 26, 82, .62);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    opacity: 0;

    transform: translateX(-5px);

    transition:
            opacity .25s ease,
            transform .25s ease;

}


body[data-page="note"] .note-card:hover
.note-card-arrow {

    opacity: 1;

    transform: translateX(0);

}


/* =========================================================
   12. 卡片内容
   ========================================================= */

body[data-page="note"] .note-card-body {

    padding: 14px 16px 12px;

}


body[data-page="note"] .note-card-title {

    min-height: 44px;

    margin: 0;

    color: #241a52;

    font-size: .95rem;

    line-height: 1.45;

    font-weight: 700;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;

}


body[data-page="note"] .note-card-summary {

    height: 40px;

    margin: 7px 0 0;

    color: #7a7398;

    font-size: .75rem;

    line-height: 1.65;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;

}


/* =========================================================
   13. 作者
   ========================================================= */

body[data-page="note"] .note-card-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding-top: 11px;

    border-top: 1px solid #faf9ff;

}


body[data-page="note"] .note-author {

    display: flex;

    align-items: center;

    gap: 8px;

    min-width: 0;

}


body[data-page="note"] .note-author-avatar {

    width: 22px;
    height: 22px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    color: #ffffff;

    background:
            linear-gradient(
                    135deg,
                    #5b4fe8,
                    #7c72f0
            );

    font-size: .66rem;

    font-weight: 700;

    overflow: hidden;

}


body[data-page="note"] .note-author-avatar img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;

}


body[data-page="note"] .note-author-info {

    display: flex;

    flex-direction: column;

    min-width: 0;

}


body[data-page="note"] .note-author-name {

    overflow: hidden;

    color: #413a5f;

    font-size: .72rem;

    font-weight: 650;

    white-space: nowrap;

    text-overflow: ellipsis;

}


body[data-page="note"] .note-author-label {

    display: none;

}


/* =========================================================
   13.1 元信息（日期 / 浏览量）
   ========================================================= */

body[data-page="note"] .note-card-meta {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-left: auto;

    color: #8a83a8;

    font-size: .7rem;

    white-space: nowrap;

}


body[data-page="note"] .note-meta-item {

    display: inline-flex;

    align-items: center;

    gap: 3px;

}


body[data-page="note"] .note-meta-item svg {

    opacity: .8;

}


body[data-page="note"] .note-read-link {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    color: var(--note-primary);

    font-size: .73rem;

    font-weight: 650;

    transition:
            gap .2s ease;

}


body[data-page="note"] .note-card:hover
.note-read-link {

    gap: 8px;

}


/* =========================================================
   13.2 搜索关键词高亮
   ========================================================= */

body[data-page="note"] mark.note-hl {

    padding: 0 2px;

    border-radius: 3px;

    color: #b45309;

    background: #fde68a;

}


/* =========================================================
   14. 空数据
   ========================================================= */

body[data-page="note"] .note-empty {

    padding: 90px 20px;

    text-align: center;

}


body[data-page="note"] .note-empty-icon {

    width: 70px;
    height: 70px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 20px;

    color: var(--note-primary);

    background:
            rgba(91, 79, 232, .08);

}


body[data-page="note"] .note-empty h3 {

    margin: 0 0 7px;

    color: #413a5f;

    font-size: 1rem;

}


body[data-page="note"] .note-empty p {

    margin: 0;

    color: #8a83a8;

    font-size: .8rem;

}


/* =========================================================
   15. 分页
   ========================================================= */

body[data-page="note"] .note-pagination-wrapper {

    display: flex;

    justify-content: center;

    margin-top: 45px;

}


body[data-page="note"] .note-pagination {

    gap: 7px;

}


body[data-page="note"] .note-pagination .page-item {

    margin: 0;

}


body[data-page="note"] .note-pagination .page-link {

    min-width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0 11px;

    border: 1px solid #e9e6f7;

    border-radius: 9px !important;

    background: #ffffff;

    color: #7a7398;

    font-size: .78rem;

    font-weight: 600;

    cursor: pointer;

    box-shadow: none;

    transition:
            color .2s ease,
            background .2s ease,
            border-color .2s ease,
            transform .2s ease;

}


body[data-page="note"] .note-pagination .page-link:hover {

    transform: translateY(-1px);

    border-color:
            rgba(91, 79, 232, .3);

    color: var(--note-primary);

}


body[data-page="note"] .note-pagination
.page-item.active .page-link {

    border-color: var(--note-primary);

    background: var(--note-primary);

    color: #ffffff;

    box-shadow:
            0 6px 15px rgba(91, 79, 232, .18);

}


/* =========================================================
   16. 底部 CTA
   ========================================================= */

body[data-page="note"] .note-bottom {

    padding: 0 0 70px;

}


body[data-page="note"] .note-bottom-card {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    overflow: hidden;

    min-height: 210px;

    padding: 42px 48px;

    border-radius: 22px;

    background:
            linear-gradient(
                    135deg,
                    #241a52,
                    #5b4fe8
            );

    box-shadow:
            0 20px 45px rgba(91, 79, 232, .18);

}


body[data-page="note"] .note-bottom-card::before {

    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    right: -100px;
    top: -150px;

    border-radius: 50%;

    background:
            rgba(255, 255, 255, .08);

}


body[data-page="note"] .note-bottom-card::after {

    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: 180px;
    bottom: -120px;

    border-radius: 50%;

    background:
            rgba(255, 255, 255, .06);

}


body[data-page="note"] .note-bottom-label {

    margin-bottom: 10px;

    color: rgba(255, 255, 255, .65);

    font-size: .68rem;

    font-weight: 700;

    letter-spacing: .14em;

}


body[data-page="note"] .note-bottom-card h2 {

    position: relative;

    z-index: 2;

    margin: 0;

    color: #ffffff;

    font-size: clamp(
            1.4rem,
            3vw,
            2rem
    );

    line-height: 1.5;

    letter-spacing: -.025em;

}


body[data-page="note"] .note-bottom-button {

    position: relative;

    z-index: 3;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;

    padding: 12px 20px;

    border-radius: 11px;

    background: #ffffff;

    color: #4438c8;

    font-size: .82rem;

    font-weight: 700;

    text-decoration: none;

    box-shadow:
            0 8px 20px rgba(36, 26, 82, .15);

    transition:
            transform .2s ease,
            box-shadow .2s ease;

}


body[data-page="note"] .note-bottom-button:hover {

    transform: translateY(-2px);

    color: #4438c8;

    box-shadow:
            0 12px 25px rgba(36, 26, 82, .20);

}


/* =========================================================
   17. 平板
   ========================================================= */

@media (max-width: 991.98px) {

    body[data-page="note"] .note-hero-decoration {

        opacity: .55;

        right: -80px;

    }


    body[data-page="note"] .note-hero-title {

        font-size: 3.4rem;

    }


    body[data-page="note"] .note-bottom-card {

        padding: 35px;

    }

}


/* =========================================================
   18. 手机
   ========================================================= */

@media (max-width: 767.98px) {

    body[data-page="note"] .note-hero {

        min-height: auto;

    }


    body[data-page="note"] .note-hero-inner {

        min-height: auto;

    }


    body[data-page="note"] .note-hero-content {

        padding: 55px 0;

    }


    body[data-page="note"] .note-hero-title {

        font-size: 2.7rem;

    }


    body[data-page="note"] .note-hero-desc {

        font-size: .92rem;

        line-height: 1.8;

    }


    body[data-page="note"] .note-hero-decoration {

        display: none;

    }


    body[data-page="note"] .note-toolbar-section {

        padding-top: 22px;

    }


    body[data-page="note"] .note-section-header {

        align-items: flex-start;

        flex-direction: column;

        gap: 6px;

    }


    body[data-page="note"] .note-section-title {

        font-size: 1.55rem;

    }


    body[data-page="note"] .note-list-section {

        padding-top: 38px;

    }


    body[data-page="note"] .note-bottom-card {

        flex-direction: column;

        align-items: flex-start;

        padding: 32px;

    }

}


/* =========================================================
   19. 超小屏
   ========================================================= */

@media (max-width: 575.98px) {

    body[data-page="note"] .note-hero-content {

        padding: 45px 0;

    }


    body[data-page="note"] .note-hero-title {

        font-size: 2.35rem;

    }


    body[data-page="note"] .note-search-input {

        height: 48px;

        padding-left: 45px;

        padding-right: 95px;

    }


    body[data-page="note"] .note-search-button {

        height: 34px;

        top: 7px;

        right: 7px;

        padding: 0 15px;

    }


    body[data-page="note"] .note-category-btn {

        padding: 7px 13px;

        font-size: .72rem;

    }


    body[data-page="note"] .note-card-body {

        padding: 16px;

    }


    body[data-page="note"] .note-bottom-card {

        padding: 28px 24px;

        border-radius: 18px;

    }


    body[data-page="note"] .note-bottom-card h2 {

        font-size: 1.3rem;

    }

}


/* =========================================================
   20. 减少动画
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    body[data-page="note"] *,
    body[data-page="note"] *::before,
    body[data-page="note"] *::after {

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;

    }

}