        /* 全局重置与基础设置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
        }
        body {
            background-color: #f5f6f7;
            color: var(--text-1);
        }
        /* SVG 图标基类 — 替代 Font Awesome */
        .svg-icon {
            display: inline-block;
            width: 1em;
            height: 1em;
            vertical-align: -0.125em;
            flex-shrink: 0;
            fill: currentColor;
        }
        .svg-spin {
            animation: svg-spin 2s linear infinite;
        }
        @keyframes svg-spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* 表单样式（保留，供弹窗内容区使用） */
        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            font-size: 14px;
            color: #1f2329;
            margin-bottom: 8px;
        }

        .form-input {
            width: 100%;
            height: 36px;
            padding: 0 12px;
            border: 1px solid #d9d9d9;
            border-radius: 6px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s;
        }

        .form-input:focus {
            border-color: var(--primary);
        }

        #noteContentInput {
            height: 108px;
            max-height: 180px;
            padding: 8px 12px;
            overflow-y: auto;
        }

        #noteSourceInput {
            height: 55px;
            padding: 8px 12px;
        }

        .form-input::placeholder {
            color: var(--text-4);
        }

        .status-tag-btn {
            padding: 4px 12px;
            border: none;
            border-radius: 16px;
            background: #F2F3F5;
            color: #646a73;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .status-tag-btn:hover {
            color: var(--primary);
        }

        .status-tag-btn.active {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
        }

        .category-tags {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        .cat-tag-btn {
            padding: 4px 12px;
            border: none;
            border-radius: 16px;
            background: #F2F3F5;
            color: #646a73;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .cat-tag-btn:hover {
            color: var(--primary);
        }

        .cat-tag-btn.active {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
        }

        .cat-tag-btn.active:hover {
            color: #fff;
        }

        .cat-tag-btn .cat-tag-remove {
            font-size: 14px;
            line-height: 1;
            opacity: 0.6;
            cursor: pointer;
        }

        .cat-tag-btn .cat-tag-remove:hover {
            opacity: 1;
        }

        .cat-tag-btn.active .cat-tag-remove {
            color: #fff;
        }

        .cat-add-btn {
            width: 28px;
            height: 28px;
            border: none;
            border-radius: 50%;
            background: #F2F3F5;
            color: #8f959e;
            font-size: 16px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            line-height: 1;
            padding: 0;
        }

        .cat-add-btn:hover {
            color: var(--primary);
        }

        .cat-add-input {
            width: 80px;
            height: 28px;
            padding: 0 10px;
            border: 1px solid var(--primary);
            border-radius: 14px;
            font-size: 13px;
            outline: none;
            box-sizing: border-box;
        }

        .invite-wrapper {
            display: flex;
            border: 1px solid #d9d9d9;
            border-radius: 6px;
            overflow: hidden;
            background: #ffffff;
        }

        .invite-wrapper:focus-within {
            border-color: var(--primary);
        }

        .invite-wrapper .form-input {
            border: none;
            border-radius: 0;
            flex: 1;
        }

        .invite-wrapper .form-input:focus {
            border: none;
        }

        .invite-add-btn {
            border: none;
            border-left: 1px solid #d9d9d9;
            background: transparent;
            padding: 0 16px;
            font-size: 20px;
            color: #1f2329;
            cursor: pointer;
            height: 36px;
            display: flex;
            align-items: center;
        }

        .invite-wrapper:focus-within .invite-add-btn {
            border-left-color: var(--primary);
        }

        /* 待办状态徽标（桌面端 + 移动端共用） */
        .todo-badge {
            display: inline-block; padding: 2px 10px; border-radius: 4px;
            font-size: 12px; line-height: 20px; white-space: nowrap;
        }
        .todo-badge-pending  { background: #f0f0f0; color: #646a73; }
        .todo-badge-running  { background: #e4eeff; color: var(--primary); }
        .todo-badge-overdue  { background: #ffe2e0; color: #f54a45; }
        .todo-badge-done     { background: #e3f6e9; color: #00b42c; }

        /* 待办类别徽标（桌面端 + 移动端共用） */
        .todo-cat {
            display: inline-block; padding: 2px 10px; border-radius: 4px;
            font-size: 12px; line-height: 20px; white-space: nowrap;
        }
        .todo-cat-project { background: #e4eeff; color: var(--primary); }
        .todo-cat-life    { background: #e3f6e9; color: #00b42c; }
        .todo-cat-other   { background: #f0f0f0; color: #646a73; }

        /* 待办勾选框 */
        .todo-check {
            width: 18px; height: 18px;
            border: 2px solid #c9cdd4;
            border-radius: 4px;
            cursor: pointer;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            background: #fff;
            box-sizing: border-box;
        }
        .todo-check:hover { border-color: var(--primary); }
        .todo-check.checked {
            background: #dee0e3;
            border-color: #dee0e3;
        }
        .todo-check.checked::after {
            content: '';
            width: 4px; height: 8px;
            border: 2px solid #fff;
            border-top: 0; border-left: 0;
            transform: rotate(45deg);
            margin-top: -2px;
        }

        /* 待办状态开关（待开始/进行中）— 文字内置在开关内 */
        .todo-toggle {
            display: inline-flex; align-items: center;
            cursor: pointer; user-select: none;
        }
        .todo-toggle-switch {
            position: relative; width: 65px; height: 22px;
            border-radius: 11px; background: #e5e6eb;
            transition: background 0.2s; flex-shrink: 0;
            overflow: hidden;
        }
        .todo-toggle-thumb {
            position: absolute; top: 3px; left: 3px;
            width: 16px; height: 16px; border-radius: 50%;
            background: #fff; transition: left 0.2s;
            box-shadow: 0 1px 2px rgba(0,0,0,0.15);
            z-index: 1;
        }
        .todo-toggle-text {
            position: absolute; top: 50%; transform: translateY(-50%);
            font-size: 12px; white-space: nowrap; line-height: 1;
            transition: all 0.2s;
        }
        .todo-toggle.is-pending .todo-toggle-thumb { left: 3px; }
        .todo-toggle.is-pending .todo-toggle-switch { background: #00b42c; }
        .todo-toggle.is-pending .todo-toggle-text { right: 8px; color: #fff; }
        .todo-toggle.is-running .todo-toggle-switch { background: var(--primary); }
        .todo-toggle.is-running .todo-toggle-thumb { left: 46px; }
        .todo-toggle.is-running .todo-toggle-text { left: 7px; color: #fff; }

        /* 待办状态标签（已超时/已完成） */
        .todo-tag {
            display: inline-block; padding: 2px 8px;
            border-radius: 4px; font-size: 12px;
            line-height: 18px; white-space: nowrap;
        }
        .todo-tag-overdue { background: #ffe2e0; color: #f54a45; cursor: pointer; }
        .todo-tag-done { background: #dee0e3; color: #fff; cursor: default; }

        /* 编辑器"已完成"按钮选中样式 */
        .status-tag-btn.status-tag-done.active {
            background: #00b42c; border-color: #00b42c; color: #fff;
        }

        /* --- 文件列表纵向微动动画（桌面端 + 移动端共用，数据读取视觉掩护） --- */
        @keyframes listSlideIn {
            from { transform: translateY(8px); opacity: 0; }
            to   { transform: translateY(0);   opacity: 1; }
        }
        .sliding-in { animation: listSlideIn 0.15s ease-out forwards; }

        /* 灵感标签（桌面端 + 移动端共用） */
        .note-tag-chip {
            display: inline-block; padding: 2px 8px; border-radius: 4px;
            background: #f0f0f0; color: #666; font-size: 12px;
            margin-right: 4px; line-height: 18px; white-space: nowrap;
        }
        .note-tag-chip-words { background: #e8f0fe; color: var(--primary); }
        .note-tag-chip-idea  { background: #e8f6e9; color: #00b42a; }
        .note-tag-chip-joke  { background: #ffe8e8; color: #f54a45; }
        .note-tag-chip-dream { background: #fff3e0; color: #ff7d00; }
        .note-tags-wrap { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px; }

/* ===== 补充样式（原第二个 <style> 块） ===== */
.note-chip {
    display:inline-block; padding:4px 14px; border-radius:16px;
    background:#f2f3f5; color:#646a73; font-size:13px; cursor:pointer;
    user-select:none; transition:background 120ms,color 120ms;
}
.note-chip.active { background:var(--primary); color:#fff; }

/* 灵感详情弹窗（只读） */
.note-detail-body { padding: 0 20px; max-height: 60vh; overflow-y: auto; }
#noteDetailTitle, #diaryDetailTitle { padding-left: 20px; display: flex; flex-direction: column; }
.note-detail-time { font-size: 12px; color: var(--text-3); margin-top: 6px; font-weight: 400; }
.note-detail-field { margin-bottom: 16px; }
.note-detail-field:last-child { margin-bottom: 0; }
.note-detail-field > label { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 4px; padding: 4px 8px; background: #F2F3F5; border-radius: 4px; }
.note-detail-field > .note-detail-value { font-size: 14px; color: var(--text-1); line-height: 1.6; word-break: break-word; }
.note-detail-value.note-detail-content { white-space: pre-wrap; }

/* ===== 灵感推送条（桌面端，位于 .main-content flex 底部）===== */
.inspiration-push-bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.2s;
}

.inspiration-push-bar.is-hidden { display: none; }

/* 固定灵感按钮 */
.inspiration-push-pin-btn {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border: none;
    background: transparent;
    color: #d0d0d0;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s, background 0.2s;
}
.inspiration-push-pin-btn:hover {
    color: var(--primary);
    background: rgba(51, 112, 255, 0.12);
}
.inspiration-push-pin-btn.is-active {
    color: var(--primary);
}
.inspiration-push-pin-btn.is-empty {
    display: none;
}
.inspiration-push-pin-btn .svg-icon {
    width: 16px;
    height: 16px;
    stroke-width: 1.2;
    fill: none;
}

.inspiration-push-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.inspiration-push-text {
    display: inline-block;
    white-space: nowrap;
    min-width: 0;
    font-size: 14px;
    color: #1f2329;
    line-height: 1.4;
}
.inspiration-push-gap {
    display: inline-block;
    width: 40px;
}
/* 跑马灯：滚动距离由 JS 通过 --marquee-distance 注入（文字右端贴视口右端时停止） */
.inspiration-push-bar .inspiration-push-viewport.is-scrolling .inspiration-push-text {
    animation: inspiration-scroll 24s linear forwards;
}
@keyframes inspiration-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(var(--marquee-distance, 0)); }
}

/* ===== 设置弹窗 ===== */
/* 设置弹窗专用样式已提取到 /assets/css/settings-modal.css */
