:root {
    --text-color: #333;
    --light-gray: #f7f7f7;
    --border-color: #eaecef;
    --primary-color: #8260AB; /* 更改主题色 */
    --code-bg: #fef0f0; /* 更改代码块背景色为淡粉色 */
    --sidebar-width: 220px;
    --modal-bg: #f7f7f7;
    --modal-title-color: #8260AB; /* 更改弹窗标题颜色为深紫色 */
    --active-color: #e0e0ff; /* 菜单active背景色 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: white;
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.search-box {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    outline: none;
}

.sidebar-menu {
    padding: 1rem 0;
}

.menu-category {
    padding: 0.5rem 1rem;
    color: var(--primary-color); /* 更改侧边栏标题颜色 */
    font-weight: 600;
}

.menu-item {
    padding: 0.5rem 2rem;
    color: #333;
    display: block;
    transition: background-color 0.3s;
}

.menu-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.menu-item.active {
    background-color: var(--active-color);
    color: var(--primary-color);
    font-weight: bold;
}

/* Mobile menu button */
.menu-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    z-index: 200;
}

/* Main content */
.main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem 3rem;
    max-width: 768px;
    margin: 3 auto;;
    width: 100%;
}

.main-header {
    margin-bottom: 2rem;
}

.main-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tagline {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    line-height: 1.5;
    min-height: 24px; /* 最小高度 */
}

.tagline:before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background-color: var(--primary-color);
    margin-right: 8px;
}

/* Content sections */
.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.section-content {
    margin-bottom: 1rem;
}

/* Code Block Style */
.code-block {
    background-color: var(--code-bg);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Features list */
.features-list {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

.features-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.features-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Responsive design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .menu-button {
        display: block;
    }
}

/* Chat Bubble Style */
.chat-bubble {
    background-color: #f0f0ff;
    border-radius: 10px;
    padding: 15px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 25px;
}

.chat-bubble::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: var(--primary-color);
    border-radius: 10px 0 0 10px;
}

.chat-bubble p {
    margin-bottom: 10px;
}

/* Strong Text Style */
strong {
    background-color: #f0f0ff;
    padding: 2px 4px;
    border-radius: 4px;
    color: var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--modal-bg);
    border-radius: 8px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-title {
    color: var(--modal-title-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 1rem;
    background-color: #4169E1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.modal-button:hover {
    background-color: #3050C1;
}

/* Notice Box Style */
.notice-box {
    display: flex;
    background-color: #fff5f5;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.notice-icon {
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.notice-content h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #e74c3c;
}

.notice-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Notice Box Style */
.info-box {
    display: flex;
    background-color: #D6E3F1;
    border-left: 4px solid #4F9BFA;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.info-icon {
    background-color: #4F9BFA;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-content h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #4F9BFA;
}

.info-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Violation Table Style */
.violation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
}

.violation-table th, .violation-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.violation-table thead {
    background-color: #C19FCF;
    color: #333;
}

.violation-table tbody tr:nth-child(even) {
    background-color: #f9f4ff;
}

.violation-table tbody tr:hover {
    background-color: #f0e6ff;
}


/* Image Container Style */
.image-container {
    margin: 20px 0;
    text-align: center;
}

.example-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.image-caption {
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
}