:root {
    --primary-color: #4a90e2;
    --background-color: #f5f5f5;
    --surface-color: #ffffff;
    --text-color: #333333;
    --base-font-size: 16px;
    --small-font-size: 0.875rem;
    /* 14px */
    --medium-font-size: 1rem;
    /* 16px */
    --large-font-size: 1.125rem;
    /* 18px */
}

@media (min-width: 768px) {

    body {
        margin: 0;
        font-family: 'Inter', sans-serif;
        background-color: #f5f5f5;
        min-height: 100vh;
    }

    .container {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        box-sizing: border-box;
    }

    .toolbar {
        margin-bottom: 15px;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 8px;
    }

    .toolbar-group {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .modern-button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: none;
        border-radius: 6px;
        background-color: #e9ecef;
        color: #495057;
        font-size: var(--small-font-size);
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .modern-button:hover {
        background-color: #dee2e6;
    }

    .modern-button.primary {
        background-color: #228be6;
        color: white;
    }

    .modern-button.primary:hover {
        background-color: #1c7ed6;
    }

    .modern-button .material-icons {
        font-size: 20px;
    }

    .editor-output-container {
        flex: 1;
        display: grid;
        gap: 15px;
        min-height: 0;

    }

    @media (orientation: landscape) {
        .editor-output-container {
            grid-template-columns: 1fr 1fr;
        }
    }

    @media (orientation: portrait) {
        .editor-output-container {
            grid-template-rows: 1fr 1fr;
        }
    }

    .editor-container {
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #dee2e6;
        min-height: 0;
    }

    .output-container {
        background: #f8f9fa;
        overflow-y: auto;
        /* 添加垂直滚动 */
        overflow-x: auto;
        /*添加水平滚动*/
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        min-height: 0;

    }

    .output-header {
        width: calc(100%);
        display: flex;
        max-height: 36px;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #dee2e6;
    }


    .clear-button {
        padding: 6px 12px;
        font-size: 13px;
        background-color: #f1f3f5;
    }

    .clear-button:hover {
        background-color: #e9ecef;
    }

    #output {
        flex: 1;
        margin: 0;

        background: white;
        border-radius: 6px;
        overflow: auto;
        font-family: monospace;
        font-size: var(--medium-font-size);
        line-height: 1.5;
    }

    .CodeMirror {
        height: 100% !important;
        font-family: monospace;
        font-size: var(--medium-font-size) !important;
        line-height: 1.6;
    }



    /* 分割容器样式 */
    .split-container {
        display: flex;
        flex: 1;
        min-height: 0;
    }

    .problem-container {
        flex: 0 0 auto;
        width: 40%;
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
    }

    .problem-header {
        background: #f8f9fa;
        margin-top: 5px;
        border-bottom: 1px solid #dee2e6;
        border-radius: 8px 8px 0 0;
    }

    .problem-title {
        font-size: var(--small-font-size);
        font-weight: 600;
    }

    .problem-buttons {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .problem-content {
        flex: 1;
        margin: 3px;
        overflow-y: auto;
        font-size: 16px;
        line-height: 1.6;
    }

    .code-output-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;

    }

    .editor-container {
        flex: 1;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #dee2e6;
    }

    .output-container {
        flex: 0 0 auto;
        background: #f8f9fa;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
    }

    /* 分割线样式 */
    .gutter {
        background-color: #f1f3f5;
        background-repeat: no-repeat;
        background-position: 50%;
    }

    .gutter.gutter-horizontal {
        cursor: col-resize;
        background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
    }

    .gutter.gutter-vertical {
        cursor: row-resize;
        background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII=');
    }

    /* 编辑器区域样式 */
    .editor-section {
        background-color: #000000;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .editor-toolbar {
        background: #f8f9fa;
        border-radius: 8px;
    }

    .toolbar-group {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }



    /* 输出区域 */
    .output-container {
        flex: 1 1 auto;
        max-height: 100%;
        /* 默认高度 */
        background: #f8f9fa;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    /* 确保编辑器容器正确显示 */
    .editor-container {
        flex: 1;
        min-height: 0;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #dee2e6;
    }

    /* CodeMirror 调整 */
    .CodeMirror {
        height: 100% !important;
        font-size: 16px;
    }

    /* 输出区域调整 */
    #output {
        flex: 1;
        margin: 0;
        padding: 10px;
        background: white;
        border-radius: 6px;
        overflow: auto;
        font-size: 16px;
    }

    .navigation-buttons {
        display: flex;
        justify-content: space-between;
        margin: 10px 0;
        padding: 10px;
    }

    .nav-button {
        padding: 8px 16px;
        background-color: #4CAF50;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .nav-button:disabled {
        background-color: #cccccc;
        cursor: not-allowed;
    }

    .nav-button:hover:not(:disabled) {
        background-color: #45a049;
    }

    .problem-container {
        background-color: #f8f9fa;
        border-right: 1px solid #e9ecef;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .problem-header {
        background-color: #ffffff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .problem-buttons {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        border-bottom: 1px solid #e9ecef;
    }

    .problem-info {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .problem-number {
        font-size: var(--medium-font-size);
        color: #495057;
    }

    .problem-name {
        font-size: var(--medium-font-size);
        font-weight: 600;
        color: #2c3e50;
        flex-grow: 1;
    }

    .problem-level {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .level-label {
        color: #6c757d;
        font-size: 0.9em;
    }

    .stars-container {
        display: inline-flex;
        align-items: center;
    }

    .star-icon {
        font-size: 1.2em;
        transition: color 0.2s ease;
    }

    .star-icon.filled {
        color: #ffd700;
    }

    .star-icon.empty {
        color: #d1d5db;
    }

    /* 星星悬停效果 */
    .stars-container:hover .star-icon {
        transform: scale(1.1);
    }

    .problem-update-time {
        color: #6c757d;
        font-size: 0.9em;
    }

    .problem-content {
        background-color: #ffffff;
        border-radius: 8px;
        flex-grow: 1;
        overflow-y: auto;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        line-height: 1.6;
    }

    .problem-image {
        margin: 15px 0;
        text-align: center;
    }

    .problem-image img {
        max-width: 100%;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .modern-button {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 8px 12px;
        border: none;
        border-radius: 6px;
        background-color: #f8f9fa;
        color: #495057;
        font-size: 0.9em;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .modern-button:hover {
        background-color: #e9ecef;
    }

    .modern-button.primary {
        background-color: #228be6;
        color: white;
    }

    .modern-button.primary:hover {
        background-color: #1c7ed6;
    }

    .material-icons {
        font-size: var(--medium-font-size);
    }

    .problem-content::-webkit-scrollbar {
        width: 8px;
    }

    .problem-content::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .problem-content::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }

    .problem-content::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

    .problem-footer {
        margin-top: 15px;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }

    /* 文件名输入模态框样式 */
    .modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        backdrop-filter: blur(4px);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .modal-overlay.show {
        opacity: 1;
    }

    .modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -60%);
        background-color: white;
        padding: 25px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 1001;
        width: 90%;
        max-width: 400px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal.show {
        transform: translate(-50%, -50%);
        opacity: 1;
    }

    .modal-header {
        margin-bottom: 20px;
        font-size: var(--medium-font-size);
        font-weight: 600;
        color: #ffffff;
    }

    .modal-content {
        margin-bottom: 25px;
    }

    .modal-input {
        width: 100%;
        padding: 10px 15px;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        font-size: var(--small-font-size);
        transition: border-color 0.3s ease;
        outline: none;
    }

    .tab-container {
        display: flex;
        margin-bottom: 10px;
    }

    .modern-button.active .output-section-content {
        display: block;
    }

    .test-cases-section {
        display: none;
    }

    .input-area-section {
        width: 100%;
        height: 100px;
    }

    .modal-input:focus {
        border-color: #4dabf7;
    }

    .modal-buttons {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }

    .modal-button {
        padding: 8px 16px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: var(--small-font-size);
        transition: all 0.2s ease;
    }

    .modal-button.cancel {
        background-color: #e9ecef;
        color: #495057;
    }

    .modal-button.confirm {
        background-color: #228be6;
        color: white;
    }

    .modal-button:hover {
        transform: translateY(-1px);
    }

    .modal-button.cancel:hover {
        background-color: #dee2e6;
    }

    .modal-button.confirm:hover {
        background-color: #1c7ed6;
    }

    /* 调整整体容器大小 */
    .container {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        box-sizing: border-box;
    }

    .split-container {
        height: calc(100vh);
        /* 减去容器的padding */
        max-height: calc(100vh);
    }

    /* 调整代码编辑器字体大小 */
    .CodeMirror {
        font-size: 16px !important;
        height: 100% !important;
    }

    /* 调整输出区域字体大小 */
    #output {
        font-size: 16px;
        line-height: 1.5;
    }

    /* 调整模态框大小和位置 */
    .modal {
        width: 60%;
        max-height: 70%;
        /* 减小模态框宽度 */
        max-width: 90%;
        padding: 20px;
    }

    .modal-input {
        width: calc(100% - 30px);
        /* 考虑padding */
        padding: 10px 15px;
        font-size: 14px;
    }

    /* 调整按钮大小 */
    .modern-button {
        padding: 8px 12px;
        font-size: 14px;
    }

    /* 确保内容不会溢出 */
    .problem-container,
    .code-output-container {
        max-height: 100%;
        overflow: hidden;
    }

    .editor-section,
    .output-container {
        max-height: 100%;
        overflow: hidden;
    }

    .problem-content,
    .output-container pre {
        max-height: 100%;
        overflow-y: auto;
    }

    /* 调整分割条的大小 */
    .gutter {
        background-color: #f1f3f5;
        position: relative;
    }

    .gutter:hover {
        background-color: #e9ecef;
    }

    /* 调整题目内容的字体大小 */
    .problem-description {
        font-size: var(--medium-font-size);
        /* 设置字体大小 */
        font-family: 'Arial', sans-serif;
        /* 设置字体 */
        letter-spacing: 2px;
        line-height: 2;
        /* 设置行间距 */
        color: #414141;
        /* 设置文本颜色 */
        margin: 20px 0;
        /* 设置上下外边距 */
        padding: 0 10px;
        /* 设置左右内边距 */
        text-align: justify;
        /* 两端对齐文本 */
    }

    /* 调整题目信息的字体大小 */
    .problem-number {
        font-size: var(--medium-font-size);
    }

    .problem-name {
        font-size: var(--medium-font-size);
    }

    /* 确保模态框内容完整显示 */
    .modal-content {
        margin-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    /* 调整模态框按钮大小 */
    .modal-button {
        padding: 8px 16px;
        font-size: 14px;
        min-width: 60px;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 160px;
        height: 100%;
        background-color: #f5f5f5;
        border-right: 1px solid #ddd;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
    }

    .sidebar.collapsed {
        width: 1px;
    }

    .modern-level.collapsed {
        display: none;
    }

    .modern-level {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 1px 6px;
        border-radius: 10px;
        font-size: var(--small-font-size);
        font-weight: 500;
        border: none;
        background: #f1f3f5;
        color: #495057;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        white-space: nowrap;
    }

    .toggle-sidebar {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        min-width: 24px;
        z-index: 101;
        pointer-events: auto;
    }

    .sidebar.collapsed .toggle-sidebar {
        transform: rotate(180deg);
        margin: 0 auto;
        padding-top: 20px;
    }

    .sidebar.collapsed .sidebar-header {
        padding: 0;
        justify-content: center;
    }

    .sidebar.collapsed .sidebar-header h3 {
        display: none;
    }

    /* 其他样式保持不变... */

    /* 调整主内容区域的边距 */
    .container {
        margin-left: 155px;
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .container.sidebar-collapsed {
        margin-left: 1px;
    }

    /* 添加滚动条样式 */
    .sidebar-content::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar-content::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .sidebar-content::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

    .sidebar-content::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    .toc-item {
        padding: 10px;
        margin: 5px 0;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.2s ease;
        border: 1px solid transparent;
    }

    .toc-item:hover {
        background-color: #e0e0e0;
        border-color: #ccc;
    }

    .toc-item.active {
        background-color: #007bff;
        color: white;
        border-color: #0056b3;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .problem-title {
        font-size: var(--small-font-size);
        line-height: 1.4;
        word-break: break-word;
    }

    .toggle-sidebar .material-icons {
        font-size: 24px;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.collapsed .sidebar-content {
        opacity: 0;
        pointer-events: none;
    }

    .sidebar-header {

        justify-content: space-between;
        align-items: center;
        padding: 15px;
        border-bottom: 1px solid #ddd;
        white-space: nowrap;
        pointer-events: auto;
    }

    .modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .modal-overlay.show {
        opacity: 1;
    }



    .modal.show {
        transform: translate(-50%, -50%);
        opacity: 1;
    }

    .modal-content ul {
        margin: 10px 0;
        padding-left: 20px;
    }

    .modal-content li {
        margin: 5px 0;
    }

    .input-section {
        border: 1px solid #ddd;
        border-radius: 4px;
    }


    #input-area {
        width: 100%;
        min-height: 60px;
        border: none;
        resize: vertical;
        font-family: monospace;
        font-size: 14px;
        background-color: #fff;
    }

    #input-area:focus {
        outline: none;
        background-color: #f8f8f8;
    }

    .clear-button {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 4px 8px;
        border: none;
        background: none;
        cursor: pointer;
        color: #666;
    }

    .clear-button:hover {
        color: #333;
    }

    .clear-button .material-icons {
        font-size: 16px;
    }

    /* 修改目录容器的样式 */
    .sidebar-content {
        height: 85%;
        /* 确保容器占满整个侧边栏高度 */
        display: flex;
        flex-direction: column;
    }

    /* 修改目录列表的样式 */
    #toc-content {
        flex: 1;
        /* 占用剩余空间 */
        overflow-y: auto;
        /* 添加垂直滚动 */
        padding-right: 5px;
        /* 为滚动条预留空间 */
    }

    /* 美化滚动条样式 */
    #toc-content::-webkit-scrollbar {
        width: 2px;
    }

    #toc-content::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }

    #toc-content::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 2px;
    }

    #toc-content::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    .output-section-container {
        height: 200px;
        /* 固定高度 */
        min-height: 150px;
        display: flex;
        /* 将容器推到底部 */
        height: 100%;
        border-top: 1px solid #e0e0e0;
        background: #fff;
    }

    /* 让输入输出区域水平并列排布 */
    .input-output-section {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        height: 100%;
        width: 100%;
    }

    /* 输入区域和输出区域各占一半宽度 */
    /* 可以根据实际情况调整宽度 */


    .input-area-section-container
    .output-section {
        width: 48%;
        height: 100%;
        border-right: 1px solid #e0e0e0;
        display: flex;
        flex-direction: column;
        overflow: auto;
    }

    .output-header {
        padding: 2px 2px;
        background: #f5f5f5;
        border-bottom: 1px solid #e0e0e0;
    }

    .input-area-section {
        height: 100%;
        padding: 10px;
        border: none;
        resize: none;
        font-family: monospace;
        font-size: var(--medium-font-size);
        background: #fff;
    }

    .output-section-content {
        padding: 10px;
        margin: 0;
        overflow-y: auto;
        font-family: monospace;
        font-size: 14px;
        background: #fff;
    }

    .loading-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        height: auto;
        padding: 20px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .loading-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .loading-spinner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .loading-circle {
        width: 60px;
        height: 60px;
        border: 5px solid #f3f3f3;
        border-top: 5px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    .loading-text {
        font-size: 16px;
        color: #333;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .outout-font {
        height: 10px;
    }


}

/* 旋转动画 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 在原有样式基础上添加媒体查询 */
@media screen and (max-width: 768px) {

    /* 确保容器铺满 */
    .container {
        padding: 10px;
        background: #f5f5f5;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    /* 确保内容区域铺满 */
    .split-container {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* 确保问题容器和代码容器铺满 */
    .problem-container,
    .code-output-container {
        width: 100% !important;
        /* 使用 !important 覆盖内联样式 */
        margin: 0 0 15px 0;
        box-sizing: border-box;
    }

    /* 美化目录样式 */
    .sidebar {
        background: white;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
        border-radius: 12px;
        position: relative;
    }


    .sidebar-header {
        padding: 15px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #eee;
        background: white;
        z-index: 2;
    }

    .sidebar-header h3 {
        margin: 0;
        color: #2c3e50;
        font-size: var(--medium-font-size);
        font-weight: 500;
    }

    .chapter-content {
        overflow: hidden;
        transition: all 0.3s ease;
    }

    /* 展开状态 */
    .sidebar-content {

        max-height: 25vh;
        overflow-y: auto;
        padding: 10px;
        -webkit-overflow-scrolling: touch;
    }

    /* 目录项样式 */
    .toc-item {
        padding: 12px 15px;
        margin: 5px 0;
        border-radius: 8px;
        background: #f8f9fa;
        border: 1px solid #eee;
        transition: all 0.2s ease;
    }

    /* 确保编辑器区域铺满 */
    .editor-container {
        width: 100%;
        margin: 0;
    }

    /* 确保输入输出区域铺满 */
    .output-section-container {
        width: 100% !important;
        /* 强制铺满宽度 */
        margin: 15px 0;
        display: flex;
        flex-direction: column;
    }

    /* 输入区域容器 */
    .input-area-section-container {
        width: 100% !important;
        /* 强制铺满宽度 */
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* 输入区域 */
    .input-area-section {
        width: 100% !important;
        /* 强制铺满宽度 */
        flex: 1;
        padding: 15px;
        border: none;
        background: #f8f9fa;
        font-family: 'Fira Code', monospace;
        font-size: var(--medium-font-size);
        line-height: 1.5;
        resize: vertical;
        min-height: 100px;
        box-sizing: border-box;
    }

    /* 输出区域容器 */
    .output-section {
        width: 100% !important;
        /* 强制铺满宽度 */
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* 输出内容 */
    .output-section-content {
        width: 100% !important;
        /* 强制铺满宽度 */
        flex: 1;
        padding: 15px;
        margin: 0;
        box-sizing: border-box;
        font-family: 'Fira Code', monospace;
        font-size: var(--medium-font-size);
        line-height: 1.5;
        white-space: pre-wrap;
        overflow-x: auto;
    }

    /* 移除任何可能影响宽度的边距 */
    .editor-toolbar,
    .editor-container,
    .output-section-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 美化按钮样式 */
    .modern-button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        border-radius: 10px;
        font-size: var(--small-font-size);
        font-weight: 500;
        border: none;
        background: #f1f3f5;
        color: #495057;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        white-space: nowrap;
    }

    /* 美化按钮样式 */
    .modern-level {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        border-radius: 10px;
        font-size: var(--small-font-size);
        font-weight: 500;
        border: none;
        background: #f1f3f5;
        color: #495057;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        white-space: nowrap;
    }

    /* 主要按钮样式 */
    .modern-button.primary {
        background: #228be6;
        color: white;
        box-shadow: 0 2px 4px rgba(34, 139, 230, 0.3);
    }

    /* 按钮悬停效果 */
    .modern-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    }

    .modern-button.primary:hover {
        background: #1c7ed6;
        box-shadow: 0 3px 6px rgba(34, 139, 230, 0.4);
    }

    /* 按钮点击效果 */
    .modern-button:active {
        transform: translateY(0);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    /* 按钮图标样式 */
    .modern-button .material-icons {
        font-size: 18px;
    }

    /* 按钮组样式 */
    .toolbar-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
    }

    /* 清除按钮特殊样式 */
    .clear-button {
        background: #f8f9fa;
        color: #868e96;
        padding: 8px 12px;
        font-size: var(--small-font-size);
    }

    .clear-button:hover {
        background: #e9ecef;
        color: #495057;
    }

    /* 导航按钮样式 */
    .nav-button {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        color: #495057;
    }

    .nav-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    /* 题目容器样式 */
    .problem-container {
        background: #b9b9b91d;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        padding: 8px;
        margin-bottom: 15px;
    }

    /* 题目头部样式 */
    .problem-header {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 15px;

        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    #toggleSidebarButton {
        display: none;
        /* 在移动端隐藏按钮 */
    }

    /* 题目信息样式 */
    .problem-info {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 15px;
    }

    .problem-number {
        font-size: var(--medium-font-size);
        color: #495057;
    }

    .problem-name {
        font-size: var(--medium-font-size);
        font-weight: 600;
        color: #2c3e50;
        flex-grow: 1;
    }

    /* 难度等级样式 */
    .problem-level {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .level-label {
        color: #6c757d;
        font-size: 0.9em;
    }

    .stars-container {
        display: inline-flex;
        align-items: center;
    }

    .star-icon {
        font-size: 1.2em;
        transition: color 0.2s ease;
    }

    .star-icon.filled {
        color: #ffd700;
    }

    .star-icon.empty {
        color: #d1d5db;
    }

    /* 题目内容区域 */
    .problem-content {
        background: #a7a7a720;
        border-radius: 12px;
        padding: 8px;
        line-height: 1.6;
        color: #2c3e50;
        font-size: var(--medium-font-size);
    }

    /* 题目描述中的代码块 */
    .problem-content pre {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 15px;
        overflow-x: auto;
        border: 1px solid #e9ecef;
        margin: 15px 0;
    }

    /* 题目中的图片 */
    .problem-image {
        margin: 15px 0;
        text-align: center;
    }

    .problem-image img {
        width: 100%;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* 题目中的列表样式 */
    .problem-content ul,
    .problem-content ol {
        padding-left: 20px;
        margin: 10px 0;
    }

    .problem-content li {
        margin: 8px 0;
    }

    /* 题目中的表格样式 */
    .problem-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 15px 0;
    }

    .problem-content th,
    .problem-content td {
        padding: 10px;
        border: 1px solid #e9ecef;
        text-align: left;
    }

    .problem-content th {
        background: #f8f9fa;
        font-weight: 500;
    }

    /* 题目更新时间 */
    .problem-update-time {
        color: #6c757d;
        font-size: 0.9em;
        margin-top: 15px;
        text-align: right;
    }

    /* 强调文本 */
    .problem-content strong {
        color: #1c7ed6;
        font-weight: 600;
    }

    /* 链接样式 */
    .problem-content a {
        color: #228be6;
        text-decoration: none;
        border-bottom: 1px dashed #228be6;
    }

    .problem-content a:hover {
        color: #1971c2;
        border-bottom-style: solid;
    }

    /* 代码编辑器区域 */
    .editor-container {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border: 1px solid #e9ecef;
        margin-bottom: 15px;
    }

    /* CodeMirror 编辑器样式 */
    .CodeMirror {
        height: auto !important;
        font-family: 'Fira Code', monospace;
        font-size: var(--medium-font-size) !important;
        line-height: 1.6;
        padding: 10px 0;
    }

    /* 输入输出区域容器 */
    .output-section-container {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        margin-top: 15px;
    }

    /* 输入区域 */
    .input-area-section-container {
        border-bottom: 1px solid #e9ecef;
    }

    .input-area-section {
        width: 100%;
        padding: 15px;
        border: none;
        background: #f8f9fa;
        font-family: 'Fira Code', monospace;
        font-size: var(--medium-font-size);
        line-height: 1.5;
        resize: vertical;
        min-height: 100px;
    }

    /* 输出区域 */
    .output-section {
        background: white;
    }

    .output-section-content {
        padding: 15px;
        margin: 0;
        font-family: 'Fira Code', monospace;
        font-size: var(--medium-font-size);
        line-height: 1.5;
        color: #2c3e50;
        white-space: pre-wrap;
    }

    /* 区域标题 */
    .output-header {
        padding: 2px 2px;
        border-bottom: 1px solid #e9ecef;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }


    /* 模态框样式 */
    .modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        width: 90%;
        max-width: 400px;
        z-index: 1000;
    }

    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 999;
    }

    .modal-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #e9ecef;
    }

    .modal-title {
        font-size: var(--medium-font-size);
        font-weight: 600;
        color: #2c3e50;
        margin: 0;
    }

    .modal-body {
        margin-bottom: 20px;
    }

    .modal-input {
        width: 100%;
        padding: 12px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        font-size: var(--medium-font-size);
        margin-bottom: 10px;
        box-sizing: border-box;
    }

    .modal-input:focus {
        border-color: #228be6;
        outline: none;
        box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.1);
    }

    .modal-footer {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }

    .modal-button {
        padding: 10px 20px;
        border-radius: 8px;
        font-size: var(--small-font-size);
        font-weight: 500;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .modal-button.cancel {
        background: #f1f3f5;
        color: #495057;
    }

    .modal-button.confirm {
        background: #228be6;
        color: white;
    }

    .modal-button:hover {
        transform: translateY(-1px);
    }

    .modal-button.cancel:hover {
        background: #e9ecef;
    }

    .modal-button.confirm:hover {
        background: #1c7ed6;
    }

    /* 模态框默认隐藏 */
    .modal,
    .modal-overlay {
        display: none;
    }

    /* 模态框显示状态 */
    .modal.show,
    .modal-overlay.show {
        display: block;
    }

    /* 其他模态框样式保持不变 */
    .modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        width: 90%;
        max-width: 400px;
        z-index: 1000;
    }

    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 999;
    }

    /* 输出内容容器调整 */
    .output-section-content {
        transition: font-size 0.2s ease;
    }
}

.validate-button {
    background-color: #4CAF50;
    color: white;
}

.validate-button:hover {
    background-color: #45a049;
}

.testCasesContainer{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 创建两列 */
    gap: 16px;
    /* 列间距 */
}

.test-case {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 7px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    overflow: auto;
}

.test-case:hover {
    transform: translateY(-5px);
}

.test-case.passed {
    border-color: #00ff00;
    background-color: #0be33d;
}

.test-case.failed {
    border-color: #ff0019;
    background-color: #ff0015;

}

.xz-section {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}



.xz-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.xz-item {
    padding: 5px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.xz-question {
    font-weight: bold;
    margin-bottom: 15px;
    color: #34495e;
}

.xz-options {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.xz-option {
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.xz-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
}

.xz-option input[type="radio"] {
    margin: 0;
}

.xz-option:hover {
    background: #f8f9fa;
}

/* 正确答案的样式 */
.xz-option.correct {
    background-color: rgba(75, 181, 67, 0.1);
    border: 1px solid #4BB543;
    color: #4BB543;
}

/* 错误答案的样式 */
.xz-option.wrong {
    background-color: rgba(255, 99, 71, 0.1);
    border: 1px solid #FF6347;
    color: #FF6347;
}

/* 选项被禁用后的样式 */
.xz-option input[type="radio"]:disabled+.option-text {
    opacity: 0.7;
}

/* 禁用已选择的题目的其他选项 */
.xz-item.answered .xz-option:not(.correct):not(.wrong) {
    opacity: 0.6;
    pointer-events: none;
}

/* 反馈消息样式 */
.feedback-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
}

.feedback-message.correct {
    color: #4BB543;
    background-color: rgba(75, 181, 67, 0.1);
}

.feedback-message.wrong {
    color: #FF6347;
    background-color: rgba(255, 99, 71, 0.1);
}


/* 题解样式 */
.explanation-box {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid #4BB543;
    border-radius: 4px;
}

.explanation-header {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.explanation-content {
    color: #34495e;
    line-height: 1.5;
    white-space: pre-wrap;
}


/* 全屏模式下的样式 */
:fullscreen {
    border: none !important;
    padding: 0 !important;
}

/* 兼容不同浏览器的前缀 */
:-webkit-full-screen {
    border: none !important;
    padding: 0 !important;
}

:-moz-full-screen {
    border: none !important;
    padding: 0 !important;
}

:-ms-fullscreen {
    border: none !important;
    padding: 0 !important;
}


/* 隐藏二维码容器的样式 */
.hidden {
    display: none;
}

/* 二维码容器样式 */
.qrcode-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 100%;
    position: relative;
    z-index: 9999;
    overflow: auto;
}

.modal.hidden {
    display: none;
}

.modal:not(.hidden) {
    display: flex;
    flex-direction: column;
    max-height: 80%;
}

/* 二维码容器样式 */
.qrcode-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.qrcode-container.hidden {
    display: none;
}

#qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 60%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}



/* 表单样式优化 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #f8fafc;
}

.form-group input:focus {
    outline: none;
    border-color: #4dabf7;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
}

.form-buttons button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-buttons .modern-button.primary {
    background-color: #228be6;
    color: white;
    border: none;
}

.form-buttons .modern-button.primary:hover {
    background-color: #1c7ed6;
}

.form-buttons .modern-button:not(.primary) {
    background-color: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
}

.form-buttons .modern-button:not(.primary):hover {
    background-color: #e9ecef;
}

/* 确保模态框在所有其他元素之上 */
#studentInfoModal {
    position: fixed;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#studentInfoModal:not(.hidden) {
    display: flex;
}

.chapter-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    background-color: rgba(181, 181, 181, 0.516);
    border-radius: 4px;
}

.chapter-header:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.toggle-icon {
    margin-right: 8px;
    transition: transform 0.3s;
}




.CodeMirror-hints {
    position: absolute;
    z-index: 10;
    background-color: white;
    border: 1px solid #ccc;
    max-height: 200px;
    font-family: Arial, sans-serif;
}

.CodeMirror-hint {
    display: block;
    /* 使每个提示项独占一行 */
    padding: 2px 5px;
    /* 适当添加内边距 */
}

.CodeMirror-hint-active {
    background-color: #ddd;
    /* 活跃项的背景颜色 */
}

#status-bar {
    text-align: right;
    font-size: xx-small;
    color: #ffffff;

}

.hidden {
    display: none;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-content {
    width: 400px;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.form-content {
    margin-bottom: 2rem;
}

.loading-status {
    margin-top: 2rem;
    text-align: center;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.loading-progress {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: #2196F3;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* 添加淡入淡出动画 */
.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.submission-result-container {
    display: flex;
    height: 70vh;
    /* 设置一个固定高度 */
    margin-top: 20px;
}

.submission-editor-container {
    height: 400px;
    border: 1px solid #ccc;
    margin-top: 10px;
}

.submission-editor-container .CodeMirror {
    height: 100%;
    font-size: 14px;
}

.submissionSearchForm-group input {
    width: 60%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #f8fafc;
}



 /* AI总结助手打开的对话窗口顶部标题栏样式设置 */
 :root {
    --webchat-toolbar-background-color: #fff;
    --webchat-toolbar-text-color: #333;
}

/* AI总结助手打开的对话窗口如果被遮挡或需调整显示位置，可以尝试调整以下 z-index、bottom、right等属性 */
.webchat-container {
    z-index: 100;
    bottom: 10px;
    right: 10px;
}

/* AI总结助手的唤起图标如果被遮挡或需调整显示位置，可以尝试调整以下 z-index、bottom、right等属性 */
.webchat-bubble-tip {
    z-index: 99;
    bottom: 20px;
    right: 20px;
}

/* AI 对话框顶部渐变色 */
.webchat-container-toolbar {
    border-bottom: none !important;

    &::before {
        content: "";
        border-style: solid;
        border-width: 5px 0 0;
        border-image: linear-gradient(270deg, #eb8698, #1366ec) 1;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }
}

.summarize-ai-chat {

    /* 调整内容区域高度 */
    .nlux-launchPad-container,
    .nlux-conversation-container {
        height: calc(100% - 120px) !important;
    }

    /* 底部消息框布局调整 */
    .nlux-composer-container {
        box-sizing: content-box;
        width: unset !important;
        padding: 6px 16px 16px;
        border-top: none !important;

        &>div {
            border: 1px solid #DEE0E5;
            border-radius: 2px;
        }
    }

    /* 消息列表布局调整-list展示调整 */
    .nlux-comp-chatItem.nlux-comp-chatItem--listLayout {
        flex-direction: row !important;

        .nlux-comp-chatItem-participantName {
            display: none;
        }

        .nlux-comp-message.nlux_msg_sent,
        .nlux-comp-message.nlux_msg_received {
            margin-left: 0 !important;
        }
    }

    .nlux-comp-chatItem.nlux-comp-chatItem--sent.nlux-comp-chatItem--listLayout {
        margin-bottom: 1.5em;

        .nlux-comp-message.nlux_msg_sent {
            background-color: #e5effe;
            justify-content: center;
            padding: 10px;
            flex: unset !important;
        }
    }

    /* 页面总结按钮 */
    .webChat-footer-extra {

        height: 30px;
        padding-left: 16px;

        .webChat-footer-extra-button {
            display: inline-block;
            padding: 4px;
            font-size: 12px;
            border: 1px solid #DEE0E5;
            border-radius: 2px;
            background-color: #fff;
        }

        .webChat-footer-extra-button:hover {
            cursor: pointer;
            background: linear-gradient(61deg, rgba(229, 239, 254, .5) -24%, rgba(238, 235, 255, .5) 127%);
        }

        .webChat-footer-extra-button[disabled] {
            background-color: #ececec;
            cursor: not-allowed;
            opacity: 0.4;
        }
    }

    /* 发送按钮样式 */
    .nlux-comp-sendIcon {
        max-width: 28px !important;
        width: 28px;
        height: 28px;
        line-height: 28px;
        border-radius: 2px;
        background-color: #1366ec;
    }

    .nlux-comp-composer>button>.nlux-comp-sendIcon>.nlux-comp-sendIcon-container {
        mask: unset !important;
        background-color: unset;
        background-image: url('https://img.alicdn.com/imgextra/i3/O1CN01ZGAB0T1u6YYQ2sR8b_!!6000000005988-55-tps-13-13.svg');
        background-size: 12px;
        background-position: center;
    }

    .nlux-comp-composer>button[disabled]>.nlux-comp-sendIcon {
        opacity: 0.4;
    }
}

/* 终止按钮 */
.summarize-stop-button {
    bottom: 18px !important;
    right: 16px !important;
}


/* 智能荐题样式 */
.recommended-problems-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.recommended-problems-section h3 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.recommended-problems-section h3 .modern-button.small {
    padding: 2px 5px;
    margin-left: 10px;
    font-size: 0.8rem;
}

.knowledge-points-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.knowledge-tag {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.recommended-problems-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recommended-problem-item {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.recommended-problem-item:hover {
    background-color: #f5f5f5;
}

.recommended-problem-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.recommended-problem-desc {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.recommended-problem-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.recommended-problem-tag {
    background-color: #e0f7fa;
    color: #00838f;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* AI总结助手打开的对话窗口顶部标题栏样式设置 */
:root {
    --webchat-toolbar-background-color: #fff;
    --webchat-toolbar-text-color: #333;
}

/* AI总结助手打开的对话窗口如果被遮挡或需调整显示位置，可以尝试调整以下 z-index、bottom、right等属性 */
.webchat-container {
    z-index: 100;
    bottom: 10px;
    right: 10px;
}

/* 其他已有样式... */

/* 智能荐题样式 */
.recommended-problems-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 20px;
}

.recommended-problems-section h3 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.knowledge-points-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.knowledge-tag {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.recommended-problems-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recommended-problem-item {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.recommended-problem-item:hover {
    background-color: #f5f5f5;
}

.recommended-problem-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.recommended-problem-desc {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.recommended-problem-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.recommended-problem-tag {
    background-color: #e0f7fa;
    color: #00838f;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}