        /* 用户信息显示 */
        .user-info {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            position: relative;
            padding: 10px 15px;
            box-sizing: border-box;
            background-color: #f5f5f5;
            border-radius: 8px;
            margin: 10px 0;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            min-height: 60px;
            box-sizing: border-box;
        }

        .site-title {
            font-size: 1.6em;
            font-weight: bold;
            color: #333;
            margin-right: auto;
            line-height: 1;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #4a90e2;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.2em;
            flex-shrink: 0;
        }

        .user-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 40px;
        }

        .user-name {
            font-weight: bold;
            color: #333;
            margin-bottom: 3px;
            line-height: 1.2;
        }

        .logout-btn {
            padding: 6px 12px;
            background-color: #efefef;
            color: #f44336;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9em;
            transition: all 0.3s ease;
        }

        .logout-btn:hover {
            background-color: #ddd;
            transform: translateY(-1px);
        }

        /* 修改密码按钮样式 */
        .change-password-btn {
            padding: 8px 16px;
            background-color: #efefef;
            color: #666;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9em;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            height: 36px;
            min-width: 90px;
            box-sizing: border-box;
            margin: 0;
        }

        .change-password-btn:hover {
            background-color: #ddd;
            transform: translateY(-1px);
        }

        /* 登录按钮样式（顶部） */
        .login-btn-top {
            padding: 8px 16px;
            background-color: #efefef;
            color: #666;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9em;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 36px;
            min-width: 90px;
            box-sizing: border-box;
            margin: 0;
        }

        .login-btn-top:hover {
            background-color: #ddd;
            transform: translateY(-1px);
        }

        .user-info-login {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            flex: 0 0 100%;
            box-sizing: border-box;
            padding-right: 0;
        }

        .login-btn-top {
            margin-left: auto;
            flex-shrink: 0;
        }

        .user-info-auth {
            flex: 0 0 100%;
            display: flex;
            flex-direction: column;
        }

        .user-info-logged {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        /* 未登录状态显示登录按钮 */
        /* login-required and user-logged-in styles removed */

        /* 移动端/平板设备响应式布局 */
        @media screen and (max-width: 768px) {
            body {
                width: 100%;
                padding: 5px;
            }

            .bannerarea {
                flex-direction: column;
                align-items: stretch;
            }

            .mainarea {
                margin-bottom: 60px;
            }

            .editorareabtn {
                padding: 6px 10px;
                font-size: 0.85em;
                margin-right: 2px;
                width: auto;
                min-width: 60px;
            }

            .editorarea {
                width: 95%;
                padding: 8px;
            }

            #content,
            #contentcode,
            #contentpreview {
                height: 8em;
                font-size: 0.9em;
            }

            .comment {
                padding: 8px;
                margin-bottom: 8px;
            }

            .tag,
            .existingtag,
            .allcommentsbtn,
            .sortbtn {
                padding: 2px 8px;
                font-size: 0.75em;
                margin-right: 0.3em;
                white-space: nowrap;
            }

            #sortBtn {
                margin-bottom: 10px;
            }


            /* 编辑器按钮组布局调整 */
            .editorbtn-group {
                justify-content: center;
            }

            .editorbtn-group .editorareabtn {
                flex: 1;
                min-width: 70px;
                margin: 2px;
            }

            /* 内容区域调整 */
            .content {
                padding: 5px 10px;
            }

            /* 图片预览调整 */
            .preview-item img {
                width: 80px;
                height: 80px;
            }

            /* 二维码弹窗调整 */
            .popup-content {
                width: 90%;
                max-width: 380px;
            }

            .qrcode-content {
                padding: 15px;
            }

            /* 二维码放大效果 */
            .enlarged {
                transform: scale(1.5);
                transition: transform 0.3s ease;
            }
        }

        /* 大型移动设备（平板电脑） */
        @media screen and (min-width: 769px) and (max-width: 1024px) {
            body {
                width: 95%;
                padding: 8px;
            }

            .editorarea {
                width: 98%;
            }
        }

        /* 超小屏幕 */
        @media screen and (max-width: 480px) {
            .bannerarea {
                margin-top: 5px;
            }

            .bannerarea button {
                font-size: 0.8em;
                padding: 5px 8px;
            }

            .editorarea {
                padding: 5px;
            }

            .preview-item img {
                width: 60px;
                height: 60px;
            }

            #content,
            #contentcode,
            #contentpreview {
                height: 6em;
                font-size: 0.8em;
            }

            .move-btn {
                font-size: 2em;
            }

            /* 按钮紧凑布局 */
            .editorbtn-group {
                gap: 3px;
            }

            .editorbtn-group .editorareabtn {
                padding: 4px 8px;
                font-size: 0.75em;
            }
        }
        /* 定义键值的 CSS 样式 */
        body {
            width: 100%;
            max-width: 900px;
            margin: 0px auto;
            padding: 10px;
            box-sizing: border-box;
        }

        .bannerarea {
            display: flex;
            margin-top: 10px;
        }

        #banner {
            margin-bottom: 10px;
        }

        #bannerArea, #searchArea {
            display: none;
        }

        #bannerArea.show,
        #searchArea.show {
            display: flex;
        }

        #tagArea {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            align-items: center;
        }

        /* 搜索框样式 */
        .searcharea {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 0;
            margin: 10px 0;
            border-bottom: 1px solid #eee;
        }

        .search-input {
            flex: 1;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.3s;
        }

        .search-input:focus {
            border-color: #4a90e2;
        }

        .search-btn {
            padding: 10px 20px;
            background-color: #efefef;
            color: #666;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            transition: background-color 0.3s;
        }

        .search-btn:hover {
            background-color: #ddd;
        }

        .clear-search-btn {
            padding: 10px 15px;
            background-color: #efefef;
            color: #666;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            transition: background-color 0.3s;
        }

        .clear-search-btn:hover {
            background-color: #ddd;
        }

        /* 搜索高亮样式 */
        .highlight {
            background-color: #fff176;
            padding: 1px 2px;
            border-radius: 2px;
        }


        .mainarea {
            display: none;
            margin-bottom: 40px;
        }

        .mainarea.show {
            display: block;
        }

        .editorareabtn {
            padding: 8px 15px;
            background-color: #efefef;
            color: gray;
            border: none;
            border-radius: 3px;
            cursor: pointer;
            width: auto;
            white-space: nowrap;
            margin-right: 5px;
            transition: all 0.3s ease;
        }

        /* 移动设备按钮优化 */
        @media screen and (max-width: 768px) {
            .editorareabtn {
                padding: 6px 10px;
                width: auto;
                min-width: 70px;
                font-size: 0.9em;
                margin: 2px;
            }

            .searcharea {
                flex-direction: column;
                align-items: stretch;
            }

            .search-input {
                margin-bottom: 10px;
            }

            .search-btn, .clear-search-btn {
                width: 100%;
            }
        }

        .editorareabtn:hover {
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        /* 登录弹窗样式（手风琴式，就地展开） */
        .login-modal {
            display: none;
            flex: 1 1 100%;
            box-sizing: border-box;
            order: 99;
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 10px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            margin: 10px;
        }

        .login-modal.show {
            display: block;
        }

        .login-content {
            background-color: #fff;
            padding: 12px;
            border: none;
            max-width: 100%;
            border-radius: 10px;
            box-shadow: none;
            position: relative;
            margin: 0;
        }

        .login-form {
            margin-top: 10px;
        }

        .login-input-group {
            margin-bottom: 10px;
        }

        .login-input-group label {
            display: block;
            margin-bottom: 4px;
            color: #555;
            font-size: 0.9em;
            font-weight: 500;
        }

        .login-input-group input {
            width: 100%;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 3px;
            font-size: 0.9em;
            transition: border-color 0.3s;
            box-sizing: border-box;
            background-color: #fff;
        }

        .login-input-group input:focus {
            outline: none;
            border-color: #4a90e2;
            box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
        }

        .login-btn {
            display: block;
            width: fit-content;
            margin-left: auto;
            padding: 8px 15px;
            background-color: #efefef;
            color: gray;
            border: none;
            border-radius: 3px;
            font-size: 0.9em;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 5px;
        }

        .login-btn:hover {
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .login-error {
            color: #d32f2f;
            font-size: 0.9em;
            margin-top: 10px;
            padding: 8px;
            background-color: #ffebee;
            border: 1px solid #ffcdd2;
            border-radius: 4px;
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .login-success {
            color: #388e3c;
            font-size: 0.9em;
            margin-top: 10px;
            padding: 8px;
            background-color: #e8f5e9;
            border: 1px solid #c8e6c9;
            border-radius: 4px;
            display: none;
            animation: fadeIn 0.3s ease;
        }

        /* 用户信息显示 */
        .user-info {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: 12px;
            padding: 12px 15px;
            box-sizing: border-box;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border-radius: 10px;
            margin: 15px 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            border: 1px solid rgba(0,0,0,0.05);
            min-height: 60px;
        }

        .user-avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: linear-gradient(135deg, #4a90e2, #357abd);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.3em;
            box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
        }

        .user-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 40px;
        }

        .user-name {
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 4px;
            font-size: 1.05em;
        }

        .logout-btn {
            padding: 8px 16px;
            background-color: #efefef;
            color: #f44336;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9em;
            font-weight: 600;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            height: 36px;
            min-width: 90px;
            box-sizing: border-box;
            margin: 0;
        }

        .logout-btn:hover {
            background-color: #ddd;
            transform: translateY(-1px);
            box-shadow: 0 3px 10px rgba(244, 67, 54, 0.4);
        }

        /* 未登录状态显示登录按钮 */
        .login-required {
            display: block;
            text-align: right;
            margin: 10px 0;
        }

        /* 登录按钮 */
        .login-btn-header {
            padding: 8px 16px;
            background: linear-gradient(135deg, #4a90e2, #3a7bc8);
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9em;
            font-weight: 600;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .login-btn-header:hover {
            background: linear-gradient(135deg, #3a7bc8, #2a6cb8);
            transform: translateY(-1px);
            box-shadow: 0 3px 10px rgba(74, 144, 226, 0.4);
        }

        /* 动画 */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 移动设备登录弹窗优化 */
        @media screen and (max-width: 768px) {
            .login-modal {
                flex: 1 1 100%;
            }

            .login-content {
                padding: 12px;
                max-width: 100%;
                border-radius: 8px;
            }

            .login-input-group input {
                padding: 8px;
                font-size: 0.9em;
                border-radius: 3px;
            }

            .login-btn {
                padding: 8px 15px;
                font-size: 0.9em;
                border-radius: 3px;
            }

            .change-password-btn {
                padding: 6px 12px;
                font-size: 0.85em;
            }

            .user-info {
                padding: 10px 12px;
            }

            .user-avatar {
                width: 40px;
                height: 40px;
                font-size: 1.2em;
            }

            .change-password-btn,
            .logout-btn {
                height: 32px;
                min-width: 80px;
                font-size: 0.85em;
            }
        }

        /* 小屏幕优化 */
        @media screen and (max-width: 480px) {
            .login-modal {
                flex: 1 1 100%;
            }

            .login-content {
                padding: 12px;
                border-radius: 6px;
                max-width: 100%;
            }

            .login-form {
                margin-top: 10px;
            }

            .login-input-group input {
                padding: 8px;
                font-size: 0.85em;
                border-radius: 4px;
            }

            .login-btn {
                padding: 8px 15px;
                font-size: 0.9em;
                border-radius: 3px;
            }

            .user-info {
                padding: 8px 10px;
                border-radius: 8px;
            }

            .user-avatar {
                width: 35px;
                height: 35px;
                font-size: 1.1em;
            }

            .change-password-btn,
            .logout-btn {
                height: 28px;
                min-width: 70px;
                font-size: 0.8em;
            }
        }

        .editorarea {
            width: 99%;
            margin: 10px auto;
            padding: 0px;
            display: none;
            background: #f9f9f9;
            border: gray 1px solid;
            border-radius: 5px;
            padding-top: 10px;
        }

        #content,#contentcode,
        #contentpreview {
            width: 99%;
            height: 10em;
            padding: 5px;
            overflow-y: auto;
            color: #4e0d0d;
            font-family: Roboto Mono, Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
            height: 10em;
            border: gray 1px solid;
            border-radius: 5px;
        }
        #contentpreview{
            height: 8.5em;
        }

        .content img {
            max-width: 100%;
            border-radius: 5px;
        }

        .commentsarea {
            width: 100%;
            margin: 10px auto;
            padding: 0px;
        }

        /* 加载中指示器样式 */
        .loading-indicator {
            display: none;
            justify-content: center;
            align-items: center;
            padding: 20px;
            color: #666;
            font-size: 14px;
        }

        .loading-indicator span {
            display: inline-block;
            padding: 8px 16px;
            background-color: #efefef;
            border-radius: 4px;
        }

        /* 定义每个数据项的边框和间距 */
        .comment {
            border: 1px solid #ccc;
            padding: 10px;
            margin-bottom: 10px;
            background-color: #f9f9f9;
            border-radius: 5px;
            position: relative;
        }

        /* 定义作者和标题输入框的样式 */
        .input-group {
            margin-bottom: 10px;
            justify-content: space-between;
            align-items: center;
            padding: 0em 5px;
            border-radius: 5px;
            border: 0px solid #ccc;
        }

        .input-group input,
        .input-group textarea {
            width: 99%;
            padding: 5px;
            border: 0px solid #ccc;
            margin-right: 5px;
            margin-bottom: 2px;
        }

        .input-group input:focus,
        .input-group textarea:focus {
            outline: none;
            border: 0px solid transparent;
        }

        .editorinput {
            width: 100%;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 3px;
        }

        #imageFile {
            width: 20em;
        }

        .editorbtn-group {
            margin-bottom: 10px;
        }


        .header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            border-bottom: #ccc 1px solid;
            margin-bottom: 5px;
            padding-bottom: 5px;
        }

        .time-author {
            display: flex;
            align-items: center;
            font-family: Roboto Mono, Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
        }

        .action {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding: 0;
            width: 50%;
            padding: 0;
            position: absolute;
            top: 5px;
            right: 5px;
        }

        /* 删除和修改按钮样式 */
        .action-btn {
            /* width: auto; */
            line-height: 1.5em;
            padding: 1px;
            margin-right: 0px;
            background-color: #f9f9f9;
            border: none;
            border-radius: 3px;
            cursor: pointer;
            transition: background-color 0.3s, box-shadow 0.3s;
            transition: opacity 0.2s ease-in-out;
            background-repeat: no-repeat;
            background-size: 20px;
            color: transparent;
            opacity: 0;
        }

        .comment:hover .action-btn,
        .comment:hover .copy-pre-btn {
            opacity: 1.0;
        }

        .action-btn:hover {
            transform: scale(1.05);
        }

        .title {
            margin-left: 0.5em;
            font-family: 'Microsoft YaHei', '微软雅黑', 'Arial', sans-serif, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', '微软雅黑', 'STXihei', '华文细黑', 'SimSun', '宋体', 'Heiti', '黑体', 'Droid Sans Fallback';
            font-size: 1.2em;

        }

        .title p,
        .time-author p {
            margin: 0;
            font-size: 0.9em;
            color: gray;
            padding: 1px 5px;

        }

        .contentcontainer,
        .contentcodecontainer {
            padding: 5px;
            border-radius: 5px;
            position: relative;
            border: transparent 1px solid;
        }

        .contentcontainer:hover,
        .contentcodecontainer:hover {
            border: #ccc 1px solid;
        }

        .content {
            /* 让内容自动扩展填充剩余空间 */
            flex-grow: 1;
            padding: 2px 10px;
            border-radius: 5px;
            /* white-space: pre-wrap; */
            font-family: 'Microsoft YaHei', '微软雅黑', 'Arial', sans-serif, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', '微软雅黑', 'STXihei', '华文细黑', 'SimSun', '宋体', 'Heiti', '黑体', 'Droid Sans Fallback';
        }

        .contentcode {
            /* 让内容自动扩展填充剩余空间 */
            flex-grow: 1;
            padding: 2px 10px;
            color: #810b0b;
            white-space: pre-wrap;
            font-family: Roboto Mono, Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
            overflow: auto;
            word-wrap: break-word;
            border-left: 3px gray solid;
        }

        .tag-container {
            margin-top: 5px;
            border-top: 1px solid #ccc;
            padding: 5px 8px 0px;
        }

        .existingtagsdiv {
            margin-bottom: 10px;
        }

        .tag,
        .existingtag,
        .allcommentsbtn,
        .sortbtn {
            background-color: #efefef;
            padding: 2px 10px;
            border-radius: 5px;
            font-size: 0.8em;
            margin-right: 0.5em;
            color: black;
            font-family: Roboto Mono, Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
            white-space: nowrap;

        }

        .existingtag:hover,
        .tag:hover,
        .allcommentsbtn:hover,
        .sortbtn:hover {
            background-color: gray;
            color: white;
            transform: scale(1.05);
            box-shadow: 1px 1px 1px 1px;
        }



        /* 状态栏样式 */
        #statusBar {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: gray;
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            opacity: 0;
            transition: opacity 0.5s;
        }


        /* 复制成功提示弹窗样式 */
        .copy-success-popup {
            position: absolute;
            display: flex;
            justify-content: center;
            /* 水平居中 */
            align-items: center;
            /* 垂直居中 */
            top: 0;
            background-color: rgba(255, 241, 119, 0.8);
            color: #000;
            text-align: center;
            line-height: 2em;
            display: none;
            width: 99%;
            border-radius: 5px;
            opacity: 0.3;
            height: 100%;
            vertical-align: middle;
        }

        .popup-container {
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .popup-content {
            background-color: #fff;
            padding: 1em 2em;
            border-radius: 5px;
            width: 900px;
        }

        .close-btn {
            cursor: pointer;
            float: right;
            font-size: 25px;
            font-weight: bold;
        }

        /* 二维码 */
        /* 弹窗背景样式 */
        .qrcode-container {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(3px);
            align-items: center;
            justify-content: center;
        }

        /* 弹窗内容样式 */
        .qrcode-content {
            background-color: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            text-align: center;
            position: relative;
        }

        /* 关闭按钮样式 */
        .close {
            color: #aaa;
            position: absolute;
            top: 10px;
            right: 20px;
            font-size: 28px;
            font-weight: bold;
            transition: color 0.3s ease;
        }

        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        /* 放大后的二维码样式 */
        .enlarged {
            transform: scale(2);
            transition: transform 0.3s ease;
        }

        .collapsible {
            background-color: #efefef;
            color: gray;
            cursor: pointer;
            width: 100%;
            border: none;
            text-align: left;
            outline: none;
            font-size: 15px;
            width: 100%;
            border-radius: 5px;
            height: 2em;
            text-align: center;
        }

        /* 折叠按钮特殊样式 */
        /* 登录按钮特殊样式 */
        .collapsible:hover {
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }


        .star-container {
            display: inline-block;
            user-select: none;
            /* 禁止容器内文本选择 */
            width: 99%;
            text-align: right;
        }

        .star-icon {
            color: gray;
            cursor: pointer;
            user-select: none;
            outline: none;
        }

        .star-icon.selected {
            color: #000;
        }

        .star-div {
            display: flex;
            gap: 5px;
            color: gray;
            font-size: 0.8em;
            margin-right: 2em;
        }

    /* 手机屏幕 - header 重新设计 */
    @media screen and (max-width: 768px) {
	    .header {
	        display: block;
	    }

	    .header > .action {
	        position: static;
	        width: 100%;
	        display: flex;
	        align-items: center;
	        justify-content: flex-end;
	        gap: 3px;
	    }

	    .star-div {
	        gap: 2px;
	        margin-right: 4px;
	        flex-shrink: 0;
	    }

	    .action-btn {
	        background-size: 14px;
	        padding: 1px;
	        min-width: 20px;
	        min-height: 20px;
	        flex-shrink: 0;
	    }
	}
        /* 弹窗样式 */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(3px);
        }

        .modal-content {
            background-color: #fff;
            margin: 10% auto;
            padding: 15px;
            border: 1px solid #ddd;
            width: 95%;
            max-width: 600px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            max-height: 90vh;
            overflow-y: auto;
        }

        /* 移动设备图片弹窗优化 */
        @media screen and (max-width: 768px) {
            .modal-content {
                padding: 10px;
                margin: 5% auto;
                max-height: 95vh;
            }

            .input-section {
                flex-direction: column;
                gap: 8px;
            }

            .input-section input[type="text"] {
                min-width: 100%;
                padding: 8px;
                font-size: 14px;
            }

            .editorareabtn {
                padding: 8px 12px;
                font-size: 0.9em;
            }
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            transition: color 0.3s;
        }

        .close:hover,
        .close:focus {
            color: #555;
            text-decoration: none;
            cursor: pointer;
        }

        /* 输入区域 */
        .input-section {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }

        .input-section input[type="text"] {
            flex: 1;
            min-width: 200px;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 14px;
        }


        button {
            padding: 10px 15px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            transition: background-color 0.3s;
        }

        /* 预览区域 */
        .preview-section {
            display: flex;
            gap: 15px;
            min-height: 122px;
            padding: 10px;
        }

        .preview-item {
            position: relative;
            user-select: none;
            border-radius: 10px;
            overflow: visible;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .preview-item img {
            width: 120px;
            height: 120px;
            object-fit: cover;
            border: 1px solid #eee;
            border-radius: 10px;
            margin: 0;
            display: block;
        }

        .preview-size {
            font-size: 0.72em;
            color: #888;
            text-align: center;
            padding: 3px 0 1px;
            background-color: #fff;
        }

        .preview-item:hover {
            transform: scale(1.05);
        }

        .delete-btn-img {
            position: absolute;
            top: 5px;
            right: 5px;
            background-color: #dc3545;
            color: white;
            border: none;
            border-radius: 5px;
            width: 25px;
            height: 25px;
            cursor: pointer;
            z-index: 2;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background-color 0.3s;
        }

        .delete-btn-img:hover {
            background-color: #c82333;
        }

        .move-btn {
            position: absolute;
            top: 0;
            height: 100%;
            width: 50%;
            background-color: rgba(239, 239, 239, 0.61);
            color: red;
            border: none;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 1;
            font-size: 2.5em;
            font-weight: bold;
        }

        /* 移动设备上调整移动按钮 */
        @media screen and (max-width: 768px) {
            .move-btn {
                font-size: 1.8em;
                background-color: rgba(239, 239, 239, 0.8);
            }
        }

        .preview-item:hover .move-btn {
            opacity: 1.0;
        }

        .move-left-btn {
            left: 0;
        }

        .move-right-btn {
            right: 0;
        }

        .copy-pre-btn-div {
            position: absolute;
            /* 设置按钮所在的 div 为绝对定位 */
            top: 5px;
            /* 距离 pre 元素顶部 10px */
            right: 10px;
            /* 距离 pre 元素右侧 10px */
        }

        .copy-pre-btn {
            background-color: transparent;
            color: transparent;
            border: none;
            padding: 0;
            text-align: center;
            text-decoration: none;
            font-size: 14px;
            cursor: pointer;
            background-repeat: no-repeat;
            transition: opacity 0.2s ease-in-out;
            opacity: 0;
        }

        .copy-pre-btn:hover {
            transform: scale(1.05);
        }

        .tab-nav button.selected {
            background-color: gray;
            color: white;
        }
        .icon {
            width: 200px;
            height: 200px;
        }

        .copy-btn,
        .copy-code-btn {
            background-image: url("data:image/svg+xml;utf8,<svg class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg'><path d='M884.693333 268.074667h-127.616V138.112a32 32 0 0 0-32-32H139.306667a32 32 0 0 0-32 32v585.770667a32 32 0 0 0 32 32h127.616v129.962666a32 32 0 0 0 32 32h585.770666a32 32 0 0 0 32-32V300.074667a32 32 0 0 0-32-32z m-713.386666-98.133334h521.770666v521.770667H171.306667z m681.386666 683.733334H330.922667v-98.133334h394.24a32 32 0 0 0 32-32V331.733333h95.616z'></path></svg>");
        }

        .copy-pre-btn {
            background-image: url("data:image/svg+xml;utf8,<svg class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg'><path fill='white' d='M884.693333 268.074667h-127.616V138.112a32 32 0 0 0-32-32H139.306667a32 32 0 0 0-32 32v585.770667a32 32 0 0 0 32 32h127.616v129.962666a32 32 0 0 0 32 32h585.770666a32 32 0 0 0 32-32V300.074667a32 32 0 0 0-32-32z m-713.386666-98.133334h521.770666v521.770667H171.306667z m681.386666 683.733334H330.922667v-98.133334h394.24a32 32 0 0 0 32-32V331.733333h95.616z'></path></svg>");
        }

        .qr-code-btn,
        .qr-code-code-btn {
            background-image: url("data:image/svg+xml;utf8,<svg class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg'><path d='M92.48 483.52h384v-384h-384z m64-320h256v256h-256zM924.48 99.52h-384v384h384z m-64 320h-256v-256h256zM92.48 931.52h384v-384h-384z m64-320h256v256h-256z'></path><path d='M236.48 691.52h96v96h-96zM236.48 243.52h96v96h-96zM684.48 243.52h96v96h-96zM764.48 547.52h160v96h-160zM924.48 931.52V745.6h-99.2v89.92h-92.8v96h192zM764.48 739.52v-96h-96v-96h-128v128h128v64h-32v64h-96v128h96v-96h96v-96h32z'></path></svg>");
        }

        .export-one-comment-image-btn {
            background-image: url("data:image/svg+xml;utf8,<svg class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg'><path d='M896 96H128c-35.2 0-64 28.8-64 64v704c0 35.2 28.8 64 64 64h768c35.2 0 64-28.8 64-64V160c0-35.2-28.8-64-64-64z m-767.9 64h767.8l0.1 0.1v154L509.8 640 353.5 536.4c-20.3-13.4-46-14.3-67.1-2.2L128 624.8V160.1l0.1-0.1z m767.8 704H128.1l-0.1-0.1V698.5l190.1-108.7 156.3 103.6c23.5 15.6 55 13.8 76.6-4.4l345-291.1v466l-0.1 0.1z'></path><path d='M320 416c52.9 0 96-43.1 96-96s-43.1-96-96-96-96 43.1-96 96 43.1 96 96 96z m0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32z'></path></svg>");
        }

        .delete-btn {
            background-image: url("data:image/svg+xml;utf8,<svg class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg'><path d='M419.84 762.88c-25.6 0-46.08-20.48-46.08-46.08V419.84c0-25.6 20.48-46.08 46.08-46.08s46.08 20.48 46.08 46.08V716.8c0 25.6-20.48 46.08-46.08 46.08zM604.16 762.88c-25.6 0-46.08-20.48-46.08-46.08V419.84c0-25.6 20.48-46.08 46.08-46.08s46.08 20.48 46.08 46.08V716.8c0 25.6-20.48 46.08-46.08 46.08z'></path><path d='M967.68 148.48H721.92L660.48 35.84c-10.24-15.36-25.6-25.6-40.96-25.6H404.48c-15.36 0-30.72 10.24-40.96 25.6L302.08 148.48H56.32c-25.6 0-46.08 20.48-46.08 46.08s20.48 46.08 46.08 46.08h66.56v634.88c0 76.8 61.44 138.24 138.24 138.24h496.64c76.8 0 138.24-61.44 138.24-138.24V240.64h66.56c25.6 0 46.08-20.48 46.08-46.08s-20.48-46.08-40.96-46.08zM430.08 102.4h158.72l25.6 46.08H409.6l20.48-46.08z m378.88 773.12c0 25.6-20.48 46.08-46.08 46.08H261.12c-25.6 0-46.08-20.48-46.08-46.08V240.64h588.8v634.88z'></path></svg>");
        }

        .edit-btn {
            background-image: url("data:image/svg+xml;utf8,<svg class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg'><path d='M340.5 529.8l-82.8 206.7c-6.3 15.8 5.9 31.5 21.2 31.5 2.8 0 5.7-0.5 8.6-1.7l206.9-82.7c4-1.6 7.5-3.9 10.6-7l445.8-446c12.3-12.3 12.3-32.1 0-44.4l-113-113c-6.1-6.1-14.2-9.2-22.2-9.2s-16.1 3.1-22.2 9.2l-446 446.1c-3 3-5.4 6.6-6.9 10.5z m475.1-388.3l66.9 67-32.9 32.9-67-67 33-32.9zM397.4 559.8l340-340.1 67 67-339.9 340-111.7 44.6 44.6-111.5z'></path><path d='M928 351.8c-17.7 0-32 14.3-32 32V864c0 17.6-14.4 32-32 32H160c-17.6 0-32-14.4-32-32V160c0-17.6 14.4-32 32-32h481c17.7 0 32-14.3 32-32s-14.3-32-32-32H160c-52.9 0-96 43.1-96 96v704c0 52.9 43.1 96 96 96h704c52.9 0 96-43.1 96-96V383.8c0-17.7-14.3-32-32-32z'></path></svg>");
        }

        .export-one-comment-html-btn {
            background-image: url("data:image/svg+xml;utf8,<svg class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg'><path d='M220.55936 317.10208h187.98592V100.6592h394.81344v300.95872h49.4592V51.2H372.5568L171.20256 283.10528v118.51264h49.3568zM114.46272 440.77568v322.176h56.72448v209.1776l681.63072 0.67072v-209.82784h56.71936V440.77568H114.46272z m451.69664 77.63968l30.1312 122.37312 30.15168-122.37312h50.2784v166.92224h-32.72192V570.9824l-31.11936 114.3552h-34.67776l-30.8992-113.82784v113.82784h-32.4096l-0.01024-166.92224h51.2768z m-206.38208 0h135.71072v29.16352h-50.51392v137.76384H410.0608v-137.76384h-50.28352v-29.16352z m-153.81504 0h34.89792v62.85824h65.14688v-62.85824h35.12832v166.92224h-35.12832v-74.9056H240.85504v74.9056h-34.89792v-166.92224z m597.39648 404.89984l-582.80448-0.5632v-159.77984h582.80448v160.34304z m14.78144-237.97248h-117.632v-166.93248h34.90816v136.48384h82.71872v30.44864z'></path></svg>");
        }
        /* ///// MARKDOWN CSS/////////// */
        h1 {
            font-size: 1.25em;
            color: #fff;
            font-weight: bold;
            margin: 16px 0;
            padding: 10px;
            background: #6114a8;
            border-radius: 0px;
        }

        h2 {
            font-size: 1.25em;
            color: #6114a8;
            font-weight: bold;
            margin: 12px 0;
            padding: 10px;
            border-bottom: 2px solid #6114a8;
        }

        h3 {
            font-size: 1.15em;
            color: #6114a8;
            font-weight: bold;
            margin: 12px 0;
            border-radius: 5px;
        }

        h4 {
            font-size: 1.05em;
            color: #6114a8;
            font-weight: bold;
            margin: 14px 0;
            padding: 8px 0;
            border-radius: 5px;
        }

        h5 {
            font-size: 1.25em;
            text-align: center;
            font-weight: bold;
            color: #6114a8;
            background: #deaef9;
            padding: 10px;
            border-radius: 0px;
        }

        h6 {
            font-size: 1.25em;
            color: #fff;
            text-align: center;
            background: red;
            font-weight: bold;
            margin: 20px 0;
            padding: 10px 0;
            border-radius: 0px;
        }

        h2::before,
        h3::before {
            color: #6114a8;
            content: "❏";
        }

        /* 强调文本样式 */
        strong {
            color: #6114a8;
            font-weight: bold;
        }

        /* 列表样式 */
        ul,
        ol {
            margin: 16px 0;
            padding-left: 24px;
        }

        li {
            margin: 8px 0;
            line-height: 1.6;
            color: #333;
        }

        /* 表格样式 */
        table {
            width: 100%;
            margin: 16px 0;
            border-radius: 0px;
            background-color: #e5e4e4;
            box-shadow: #fff 2px 2px 10px;
        }

        thead {
            background-color: #dba6ff;
        }

        th {
            padding: 8px;
            text-align: center;
            background-color: #e5e4e4;
            font-weight: bold;
        }

        td {
            padding: 8px;
            border: 0px solid #6114a8;
            border-radius: 0px;
            background: #fff;
            text-align: left;
        }

        /* 图片样式 */
        img {
            max-width: 100%;
            height: auto;
            border-radius: 0px;
            margin: 1em auto;
            display: block;
        }

        /* 水平线样式 */
        hr {
            height: 1px;
            background: #6114a8;
            border-radius: 0px;
        }

        /* 代码样式 */
        code {
            padding: 2px 4px;
            border-radius: 3px;
            background: #f6e9ff;
            font-family: Roboto Mono, Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
        }


        pre {
            position: relative;
            border-radius: 5px;
            font-family: Roboto Mono, Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
            position: relative;
            overflow-x: auto;
            max-width: 100%;
            padding-top: 1.8em;
            border-radius: 5px;
            background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' x='0px' y='0px' width='450px' height='130px'><ellipse cx='65' cy='65' rx='50' ry='52' stroke='rgb(220,60,54)' stroke-width='2' fill='rgb(237,108,96)'/><ellipse cx='225' cy='65' rx='50' ry='52'  stroke='rgb(218,151,33)' stroke-width='2' fill='rgb(247,193,81)'/><ellipse cx='385' cy='65' rx='50' ry='52'  stroke='rgb(27,161,37)' stroke-width='2' fill='rgb(100,200,86)'/></svg>") 10px 10px / 60px no-repeat rgb(40, 44, 52);
        }

        pre code {
            display: block;
            padding: 0.5em;
            color: #fff;
            background: #363636;
        }

        blockquote {
            background: #deaef9;
            border-left: 4px solid #6114a8;
            padding: 5px;
            margin: 0.5em;
        }

        blockquote blockquote {
            margin: -5px -5px -5px -9px;
            border-left: 4px solid #6114a8;
            background: #ecfbec;
        }

        blockquote blockquote blockquote {
            border-left: 4px solid #6114a8;
            background: #ffdede;
        }

        blockquote blockquote blockquote blockquote {
            border-left: 4px solid #6114a8;
            background: #d5d5f7;
        }

        blockquote blockquote blockquote blockquote blockquote {
            border-left: 4px solid #6114a8;
            background: #fbfad2;
        }

        blockquote blockquote blockquote blockquote blockquote blockquote {
            border-left: 4px solid #6114a8;
            background: #c4c4c4;
        }

        blockquote blockquote blockquote blockquote blockquote blockquote blockquote {
            border-left: 4px solid #6114a8;
            background: #c4f9f1;
        }

        blockquote blockquote blockquote blockquote blockquote blockquote blockquote blockquote {
            border-left: 4px solid #6114a8;
            background: red;
            color: #fff;
        }

        /* 代码高亮monika 主题 */
        pre code.hljs {
            display: block;
            overflow-x: auto;
            padding: 1em
        }

        code.hljs {
            padding: 3px 5px
        }

        .hljs {
            color: #ddd
        }

        .hljs-keyword,
        .hljs-literal,
        .hljs-name,
        .hljs-selector-tag,
        .hljs-strong,
        .hljs-tag {
            color: #f92672
        }

        .hljs-code {
            color: #66d9ef
        }

        .hljs-attribute,
        .hljs-link,
        .hljs-regexp,
        .hljs-symbol {
            color: #bf79db
        }

        .hljs-addition,
        .hljs-built_in,
        .hljs-bullet,
        .hljs-emphasis,
        .hljs-section,
        .hljs-selector-attr,
        .hljs-selector-pseudo,
        .hljs-string,
        .hljs-subst,
        .hljs-template-tag,
        .hljs-template-variable,
        .hljs-title,
        .hljs-type,
        .hljs-variable {
            color: #a6e22e
        }

        .hljs-class .hljs-title,
        .hljs-title.class_ {
            color: #fff
        }

        .hljs-comment,
        .hljs-deletion,
        .hljs-meta,
        .hljs-quote {
            color: #75715e
        }

        .hljs-doctag,
        .hljs-keyword,
        .hljs-literal,
        .hljs-section,
        .hljs-selector-id,
        .hljs-selector-tag,
        .hljs-title,
        .hljs-type {
            font-weight: 700
        }
