.container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            gap: 20px;
        }
        .main-area {
            flex: 1;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        .header {
            background: #7178ff;
            color: #fff;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .header h1 {
            font-size: 18px;
            font-weight: 500;
            color: #fff;
        }
        .toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            padding: 10px 15px;
            background: #fafafa;
            border-bottom: 1px solid #e8e8e8;
        }
        .toolbar-btn {
            padding: 6px 12px;
            border: 1px solid #d9d9d9;
            background: #fff;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
        }
        .toolbar-btn:hover {
            border-color: #7178ff;
            color: #7178ff;
        }
        .toolbar-btn.active {
            background: #7178ff;
            color: #fff;
            border-color: #7178ff;
        }
        #editor {
            width: 100%;
            min-height: 500px;
            padding: 20px;
            outline: none;
            font-size: 15px;
            line-height: 1.8;
            color: #333;
            text-align: right;
            direction: rtl;
        }
        #editor img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 10px 0;
            border-radius: 4px;
        }
        .status-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 20px;
            background: #f0f0f0;
            border-top: 1px solid #e0e0e0;
            font-size: 13px;
            color: #666;
        }
        .btn {
            padding: 6px 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            margin-left: 8px;
        }
        .btn-primary {
            background: #7178ff;
            color: #fff;
        }
        .btn-secondary {
            background: #fff;
            color: #666;
            border: 1px solid #d9d9d9;
        }
        /* ä¾§è¾¹æ åŽ†å²è®°å½• */
        .sidebar {
            width: 350px;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.1);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            max-height: calc(100vh - 40px);
        }
        .sidebar-header {
            background: #7178ff;
            color: #fff;
            padding: 15px;
            font-weight: 500;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .sidebar-body {
            flex: 1;
            overflow-y: auto;
            padding: 10px;
        }
        .history-item {
            padding: 12px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: background 0.2s;
            position: relative;
        }
        .history-item:hover {
            background: #f6ffed;
        }
        .history-title {
            font-size: 14px;
            color: #333;
            margin-bottom: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .history-meta {
            font-size: 12px;
            color: #999;
        }
        .history-actions {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            gap: 5px;
            opacity: 0;
            transition: opacity 0.2s;
        }
        .history-item:hover .history-actions {
            opacity: 1;
        }
        .history-btn {
            width: 28px;
            height: 28px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .history-btn.add {
            background: #E91E63;
            color: #fff;
        }
        .history-btn.del {
            background: #007bff;
            color: #fff;
        }
        .history-btn.save {
            background: #ff9800;
            color: #fff;
        }
        .empty-tip {
            text-align: center;
            color: #999;
            padding: 40px;
            font-size: 14px;
        }
        .toast {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%) translateY(-100px);
            background: #333;
            color: #fff;
            padding: 12px 24px;
            border-radius: 4px;
            font-size: 14px;
            z-index: 2000;
            opacity: 0;
            transition: all 0.3s;
        }
        .toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }
        .toast.success {
            background: #7178ff;
        }
        .toast.error {
            background: #ff4d4f;
        }