body {
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    font-size: 1rem;
}

:root {
    --bs-primary: #3d4450;
    --bs-primary-rgb: 61, 68, 80;
}

.btn-primary {
    --bs-btn-bg: #3d4450;
    --bs-btn-border-color: #3d4450;
    --bs-btn-hover-bg: #2f353e;
    --bs-btn-hover-border-color: #2a3038;
    --bs-btn-active-bg: #2a3038;
    --bs-btn-active-border-color: #252a32;
    --bs-btn-disabled-bg: #3d4450;
    --bs-btn-disabled-border-color: #3d4450;
}

.btn-outline-primary {
    --bs-btn-color: #3d4450;
    --bs-btn-border-color: #3d4450;
    --bs-btn-hover-bg: #3d4450;
    --bs-btn-hover-border-color: #3d4450;
    --bs-btn-active-bg: #3d4450;
    --bs-btn-active-border-color: #3d4450;
}

.bg-primary {
    background-color: #3d4450 !important;
}

.text-primary {
    color: #3d4450 !important;
}

.border-primary {
    border-color: #3d4450 !important;
}

.navbar-dark.bg-primary {
    background-color: #3d4450 !important;
}

.form-check-input:checked {
    background-color: #3d4450;
    border-color: #3d4450;
}

.form-control:focus,
.form-select:focus {
    border-color: #3d4450;
    box-shadow: 0 0 0 0.25rem rgba(61, 68, 80, 0.25);
}

.page-link {
    color: #3d4450;
}

.page-item.active .page-link {
    background-color: #3d4450;
    border-color: #3d4450;
}

.nav-pills .nav-link.active {
    background-color: #3d4450;
}

.progress-bar {
    background-color: #3d4450;
}

.list-group-item.active {
    background-color: #3d4450;
    border-color: #3d4450;
}

/* 重置textarea和pre的默认样式 */
textarea, pre {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* 恢复普通textarea的边框 */
textarea.normal-textarea {
    border: 1px solid #ced4da !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.25rem !important;
}

textarea.normal-textarea:focus {
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* 作业描述文本框样式 - 统一边框 */
.homework-description-input {
    border: 1px solid #ced4da !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.375rem !important;
    background-color: #fff !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.homework-description-input:focus {
    border-color: #0d6efd !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

.homework-description-input:hover {
    border-color: #adb5bd !important;
}

.homework-description-input::placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

/* 禁止页面刷新时的自动滚动 */
html {
    scroll-behavior: auto;
    scroll-padding-top: 0;
}

body {
    background-color: #f8f9fa;
    scroll-padding-top: 0;
}

/* 强制覆盖Bootstrap的form-control样式 */
.form-control.code-input,
.form-control.fullscreen-textarea {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.form-control.code-input:focus,
.form-control.fullscreen-textarea:focus {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body {
    background-color: #f8f9fa;
}

.alert {
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 80vw;
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    z-index: 10000;
    padding: 20px 50px 20px 20px;
    animation: alertFadeIn 0.3s ease-in-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pricing-alert {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    z-index: auto !important;
    padding: 15px !important;
    animation: none !important;
    text-align: left !important;
}

.service-expiry-alert {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    z-index: auto !important;
    padding: 15px !important;
    animation: none !important;
    text-align: left !important;
}

.service-expiry-alert.full-width {
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
}

@keyframes alertFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    opacity: 0.9;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-dismissible .btn-close::before {
    content: '×';
    font-size: 24px;
    font-weight: bold;
    color: inherit;
    line-height: 1;
}

.alert-dismissible .btn-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.4);
}

.alert-dismissible .btn-close:focus {
    box-shadow: none;
    outline: none;
}

.alert-success .btn-close {
    background: rgba(255, 255, 255, 0.3);
    color: #155724;
}

.alert-danger .btn-close {
    background: rgba(255, 255, 255, 0.3);
    color: #721c24;
}

.alert-warning .btn-close {
    background: rgba(255, 255, 255, 0.3);
    color: #856404;
}

.alert-info .btn-close {
    background: rgba(255, 255, 255, 0.3);
    color: #0c5460;
}

.result-container {
    min-height: 400px;
    overflow-y: auto;
}

.result-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.code-block {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.error-item {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.success-item {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.line-explanation {
    border-left: 3px solid #007bff;
    padding-left: 10px;
    margin-bottom: 8px;
}

.analogy {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9em;
}

.badge-correct {
    background-color: #28a745;
}

.badge-error {
    background-color: #dc3545;
}

.badge-success {
    background-color: #28a745;
}

.badge-secondary {
    background-color: #6c757d;
}

pre[class*="language-"] {
    background-color: #2d2d2d;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    overflow-x: auto;
}

pre[class*="language-"] code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #f8f8f2;
}

.content-section h5 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.content-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-section ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.code-editor-container {
    position: relative;
    width: 100%;
    min-height: 560px;
    background-color: #2d2d2d;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    overflow: visible;
}

.line-numbers {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 100%;
    padding: 0.375rem 0.5rem 0.375rem 0;
    background-color: #1e1e1e;
    color: #6c757d;
    text-align: right;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    z-index: 1;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid #3d3d3d;
    user-select: none;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.line-numbers::-webkit-scrollbar {
    display: none;
}

.line-number {
    line-height: 1.6 !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: default;
    display: block;
    text-align: right;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 14px !important;
    height: 22.4px;
    box-sizing: border-box;
}

.line-number:hover {
    background-color: #2d2d2d;
    color: #adb5bd;
}

.code-input {
    position: absolute;
    top: 0;
    left: 40px;
    width: calc(100% - 40px);
    height: 100%;
    padding: 0.375rem 0.75rem !important;
    background-color: transparent !important;
    color: #000000;
    caret-color: #fff;
    z-index: 2;
    resize: none;
    overflow: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    border: none !important;
    outline: none !important;
    box-sizing: border-box;
    margin: 0 !important;
    white-space: pre !important;
    word-wrap: normal !important;
    tab-size: 4 !important;
    -moz-tab-size: 4 !important;
    -o-tab-size: 4 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.code-input.syntax-highlighted {
    color: transparent !important;
}

.code-output {
    position: absolute;
    top: 0;
    left: 40px;
    width: calc(100% - 40px);
    height: 100%;
    padding: 0.375rem 0.75rem !important;
    background-color: #2d2d2d;
    color: #f8f8f2;
    z-index: 1;
    overflow: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    pointer-events: none;
    white-space: pre !important;
    word-wrap: normal !important;
    margin: 0 !important;
    box-sizing: border-box;
    tab-size: 4 !important;
    -moz-tab-size: 4 !important;
    -o-tab-size: 4 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.code-output code {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    display: block !important;
    white-space: pre !important;
    word-wrap: normal !important;
    box-sizing: border-box !important;
    tab-size: 4 !important;
    -moz-tab-size: 4 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.code-output pre {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    tab-size: 4 !important;
    -moz-tab-size: 4 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.code-output code[class*="language-"] {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    display: block !important;
    white-space: pre !important;
    word-wrap: normal !important;
    box-sizing: border-box !important;
    tab-size: 4 !important;
    -moz-tab-size: 4 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #6272a4;
}

.token.punctuation {
    color: #ff79c6;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #bd93f9;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #50fa7b;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #ff79c6;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #8be9fd;
}

.token.function,
.token.class-name {
    color: #ffb86c;
}

.token.regex,
.token.important,
.token.variable {
    color: #f1fa8c;
}

.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2d2d2d;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #1a1a1a;
    border-bottom: 1px solid #3d3d3d;
}

.fullscreen-header h5 {
    color: #f8f8f2;
    margin: 0;
}

.fullscreen-content {
    flex: 1;
    padding: 20px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.fullscreen-editor-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #2d2d2d;
    border: 1px solid #3d3d3d;
    border-radius: 0.25rem;
    overflow: hidden;
}

.fullscreen-line-numbers {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 100%;
    padding: 20px 10px 20px 0;
    background-color: #1e1e1e;
    color: #6c757d;
    text-align: right;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.6;
    z-index: 1;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid #3d3d3d;
    user-select: none;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.fullscreen-line-numbers::-webkit-scrollbar {
    display: none;
}

.fullscreen-line-numbers .line-number {
    line-height: 1.6 !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: default;
    display: block;
    text-align: right;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 16px !important;
    height: 25.6px;
    box-sizing: border-box;
}

.fullscreen-textarea {
    width: 100%;
    height: 100%;
    background-color: transparent !important;
    color: #000000;
    caret-color: #fff;
    border: none !important;
    border-radius: 0;
    resize: none;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    outline: none !important;
    position: absolute;
    top: 0;
    left: 50px;
    padding: 20px !important;
    z-index: 2;
    box-sizing: border-box;
    margin: 0 !important;
    white-space: pre !important;
    word-wrap: normal !important;
    tab-size: 4 !important;
    -moz-tab-size: 4 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.fullscreen-textarea.syntax-highlighted {
    color: transparent !important;
}

.fullscreen-code-output {
    position: absolute;
    top: 0;
    left: 50px;
    width: calc(100% - 50px);
    height: 100%;
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 20px !important;
    margin: 0 !important;
    overflow: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    pointer-events: none;
    white-space: pre !important;
    word-wrap: normal !important;
    z-index: 1;
    box-sizing: border-box;
    tab-size: 4 !important;
    -moz-tab-size: 4 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.fullscreen-code-output code {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    display: block !important;
    white-space: pre !important;
    word-wrap: normal !important;
    box-sizing: border-box !important;
    tab-size: 4 !important;
    -moz-tab-size: 4 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.fullscreen-code-output pre {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    tab-size: 4 !important;
    -moz-tab-size: 4 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.fullscreen-code-output code[class*="language-"] {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    display: block !important;
    white-space: pre !important;
    word-wrap: normal !important;
    box-sizing: border-box !important;
    tab-size: 4 !important;
    -moz-tab-size: 4 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.fullscreen-question-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    gap: 20px;
}

.fullscreen-question-container .fullscreen-textarea {
    flex: 1;
    position: relative;
    background-color: #2d2d2d;
    color: #f8f8f2;
    border: 1px solid #3d3d3d;
    border-radius: 0.25rem;
}

.fullscreen-question-container .fullscreen-textarea {
    width: 100%;
    height: 100%;
    background-color: #2d2d2d;
    color: #f8f8f2;
    caret-color: #fff;
    border: none;
    border-radius: 0;
    resize: none;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.6;
    outline: none;
    padding: 20px;
}

.fullscreen-preview {
    flex: 1;
    overflow: auto;
    background-color: #1a1a1a;
    border: 1px solid #3d3d3d;
    border-radius: 0.25rem;
}

.fullscreen-preview .card {
    height: 100%;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.fullscreen-preview .card-header {
    background-color: #007bff;
    color: white;
    border-radius: 0;
    padding: 10px 15px;
}

.fullscreen-preview .card-body {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    overflow: auto;
}

.fullscreen-markdown-content {
    font-size: 16px;
    line-height: 1.8;
}

.fullscreen-markdown-content h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #f8f8f2;
}

.fullscreen-markdown-content h2 {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.25rem;
    color: #f8f8f2;
}

.fullscreen-markdown-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #f8f8f2;
}

.fullscreen-markdown-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #f8f8f2;
}

.fullscreen-markdown-content code {
   
    background-color: #44475a;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #ffb86c;
}

.fullscreen-markdown-content pre {
    background-color: #1a1a1a;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #44475a;
}

.fullscreen-markdown-content pre code {
    background-color: transparent;
    padding: 0;
    color: #f8f8f2;
}

.fullscreen-markdown-content ul {
    margin-left: 25px;
    margin-bottom: 1.25rem;
}

.fullscreen-markdown-content ol {
    margin-left: 25px;
    margin-bottom: 1.25rem;
}

.fullscreen-markdown-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: #f8f8f2;
}

.fullscreen-markdown-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin: 1.5rem 0;
    color: #6272a4;
    background-color: #1a1a1a;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
}

.fullscreen-markdown-content strong {
    font-weight: bold;
    color: #f8f8f2;
}

.fullscreen-markdown-content em {
    font-style: italic;
    color: #bd93f9;
}

.fullscreen-markdown-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff;
}

.btn-outline-light {
    border-color: #f8f9fa;
    color: #f8f9fa;
}

.btn-outline-light:hover {
    background-color: #f8f9fa;
    color: #000;
}

/* 作业编辑功能样式 */
.questions-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 10px;
}

.question-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.question-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 12px 16px;
}

.question-card .card-body {
    padding: 16px;
}

.question-text {
    resize: vertical;
    min-height: 80px;
}

.question-score {
    width: 100px;
}

.input-group-text {
    min-width: 40px;
    justify-content: center;
    font-weight: 600;
}

.correct-answer {
    max-width: 200px;
}

.btn-group .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
}

.pricing-card {
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card ul {
    flex-grow: 1;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.pricing-card.popular {
    border-color: #28a745;
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.price-display {
    margin: 20px 0;
}

.price {
    font-size: 36px;
    font-weight: bold;
    color: #28a745;
}

.original-price {
    font-size: 18px;
    font-weight: normal;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.period {
    font-size: 16px;
    color: #6c757d;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pricing-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.active-package {
    border-color: #007bff;
    background-color: #e7f1ff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.footer {
    background-color: #343a40;
    color: #ffffff;
    padding: 20px 0;
    margin-top: 40px;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer small {
    font-size: 0.85rem;
    color: #adb5bd;
}

.footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer .footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer .footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.markdown-preview {
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 15px;
    background-color: #f8f9fa;
    animation: fadeIn 0.3s ease-in;
}

.markdown-preview .card {
    border: none;
    box-shadow: none;
    background-color: transparent;
}

.markdown-preview .card-header {
    background-color: #007bff;
    color: white;
    border-radius: 6px 6px 0 0;
    padding: 8px 15px;
}

.markdown-preview .card-body {
    padding: 15px;
    background-color: white;
    border-radius: 0 0 6px 6px;
    min-height: 100px;
}

.markdown-content h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #212529;
}

.markdown-content h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: #212529;
}

.markdown-content h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.6rem;
    color: #212529;
}

.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.step-label {
    font-size: 0.9rem;
    color: #6c757d;
    transition: all 0.3s;
}

.step.active .step-number {
    background-color: #0d6efd;
    color: white;
    transform: scale(1.1);
}

.step.active .step-label {
    color: #0d6efd;
    font-weight: bold;
}

.step-line {
    width: 60px;
    height: 3px;
    background-color: #e9ecef;
    border-radius: 2px;
}

.step-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-success {
    box-shadow: 0 0 30px rgba(25, 135, 84, 0.5) !important;
    border: 2px solid #198754 !important;
    animation: greenGlow 2s ease-in-out infinite alternate;
}

.result-error {
    box-shadow: 0 0 30px rgba(220, 53, 69, 0.5) !important;
    border: 2px solid #dc3545 !important;
    animation: redGlow 2s ease-in-out infinite alternate;
}

.result-system-error {
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.5) !important;
    border: 2px solid #ffc107 !important;
    animation: yellowGlow 2s ease-in-out infinite alternate;
}

@keyframes greenGlow {
    from {
        box-shadow: 0 0 20px rgba(25, 135, 84, 0.4);
    }
    to {
        box-shadow: 0 0 40px rgba(25, 135, 84, 0.7);
    }
}

@keyframes redGlow {
    from {
        box-shadow: 0 0 20px rgba(220, 53, 69, 0.4);
    }
    to {
        box-shadow: 0 0 40px rgba(220, 53, 69, 0.7);
    }
}

@keyframes yellowGlow {
    from {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
    }
    to {
        box-shadow: 0 0 40px rgba(255, 193, 7, 0.7);
    }
}

.markdown-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #495057;
}

.markdown-content code {
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #c7254e;
}

.markdown-content pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 16px 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
    color: #f8f8f2;
}

.markdown-content ul {
    margin-left: 20px;
    margin-bottom: 1rem;
}

.markdown-content ol {
    margin-left: 20px;
    margin-bottom: 1rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.markdown-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 15px;
    margin: 1rem 0;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 0 6px 6px 0;
}

.markdown-content strong {
    font-weight: bold;
    color: #212529;
}

.markdown-content em {
    font-style: italic;
    color: #495057;
}

.markdown-content a[href*="luogu.com.cn"] {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #e7f1ff;
    transition: all 0.2s;
    display: inline-block;
    margin: 2px 0;
}

.markdown-content a[href*="luogu.com.cn"]:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.markdown-preview a[href*="luogu.com.cn"] {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #e7f1ff;
    transition: all 0.2s;
    display: inline-block;
    margin: 2px 0;
}

.markdown-preview a[href*="luogu.com.cn"]:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.fullscreen-markdown-content a[href*="luogu.com.cn"] {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #1e3a5f;
    transition: all 0.2s;
    display: inline-block;
    margin: 2px 0;
}

.fullscreen-markdown-content a[href*="luogu.com.cn"]:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.result-container a[href*="luogu.com.cn"] {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #e7f1ff;
    transition: all 0.2s;
    display: inline-block;
    margin: 2px 0;
}

.result-container a[href*="luogu.com.cn"]:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.markdown-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#sidebarContainer {
    position: relative;
    z-index: 1000;
}

#sidebarContainer .list-group-item {
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    color: #333;
}

#sidebarContainer .list-group-item:hover {
    background-color: #f5f5f5;
}

#sidebarContainer .list-group-item.active {
    background-color: #e8f4ff;
    color: #2196f3;
    font-weight: 500;
}

#sidebarContainer .list-group-item.active:hover {
    background-color: #d4edff;
}

#sidebarContainer .menu-icon {
    display: inline-block;
    min-width: 24px;
    text-align: center;
    transition: all 0.2s ease;
}

#sidebarContainer .menu-text {
    opacity: 1;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

#sidebarMiniContent {
    display: block;
    overflow: visible;
}

#sidebarMiniContent .list-group-item {
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    color: #333;
    overflow: visible;
}

#sidebarMiniContent .list-group-item:hover {
    background-color: #f5f5f5;
}

#sidebarMiniContent .list-group-item.active {
    background-color: #e8f4ff;
    color: #2196f3;
}

#sidebarMiniContent .list-group-item.active:hover {
    background-color: #d4edff;
}

#sidebarMiniContent .mini-menu-icon {
    display: inline-block;
    transition: all 0.2s ease;
}

#sidebarMiniContent .list-group-item::after {
    content: attr(data-title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    z-index: 9999;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

#sidebarMiniContent .list-group-item:hover::after {
    opacity: 1;
    visibility: visible;
    margin-left: 12px;
}

#sidebarMiniContent .list-group-item::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #333;
    z-index: 9999;
    margin-left: -4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

#sidebarMiniContent .list-group-item:hover::before {
    opacity: 1;
    visibility: visible;
}

#mainContent {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    #sidebarContainer {
        position: fixed;
        left: 0;
        top: 56px;
        height: calc(100vh - 56px);
        z-index: 1000;
    }
    
    #mainContent {
        margin-left: 0 !important;
    }
}

.auto-hide-alert {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
}

.auto-hide-alert.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.auto-hide-alert .alert-message {
    flex: 1;
}

.auto-hide-alert .alert-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.auto-hide-alert .alert-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.searchable-select {
    position: relative;
    display: flex;
    align-items: stretch;
}

.searchable-select .searchable-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: stretch;
}

.searchable-select .searchable-input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding-right: 40px;
}

.searchable-select .searchable-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 1;
}

.searchable-select .searchable-clear:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.searchable-select .searchable-clear.show {
    display: flex;
}

.searchable-select .searchable-toggle {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    padding: 0.375rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.searchable-select .searchable-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.25rem 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.searchable-select .searchable-dropdown.show {
    display: block;
}

.searchable-select .searchable-options {
    max-height: 200px;
    overflow-y: auto;
}

.searchable-select .searchable-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.searchable-select .searchable-option:hover {
    background-color: #f8f9fa;
}

.searchable-select .searchable-option.selected {
    background-color: #e7f1ff;
    color: #004085;
}

.searchable-select .searchable-option.no-result {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: default;
    font-style: italic;
}

.searchable-select .searchable-option.no-result:hover {
    background-color: #f8f9fa;
}

.searchable-select .searchable-options::-webkit-scrollbar {
    width: 8px;
}

.searchable-select .searchable-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.searchable-select .searchable-options::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.searchable-select .searchable-options::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.friend-links-list {
    padding: 4px 0;
}

.friend-link-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    text-decoration: none;
    color: #3d4450;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #fff;
    white-space: nowrap;
}

.friend-link-item:hover {
    border-color: #3d4450;
    background-color: #3d4450;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(61, 68, 80, 0.25);
}

.friend-link-item:hover .friend-link-clicks {
    color: rgba(255, 255, 255, 0.8);
}

.friend-link-name {
    font-weight: 500;
}

.friend-link-clicks {
    font-size: 11px;
    color: #6c757d;
    transition: color 0.2s ease;
}