* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

[v-cloak] {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    min-height: 100vh;
}

.rich-text-content {
    padding: 20px;
    line-height: 1.8;
}

/* 富文本内容样式 */
.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4,
.rich-text-content h5,
.rich-text-content h6 {
    margin: 1.2em 0 0.8em;
    font-weight: bold;
    line-height: 1.4;
}

.rich-text-content h1 { font-size: 2em; }
.rich-text-content h2 { font-size: 1.75em; }
.rich-text-content h3 { font-size: 1.5em; }
.rich-text-content h4 { font-size: 1.25em; }
.rich-text-content h5 { font-size: 1.1em; }
.rich-text-content h6 { font-size: 1em; }

.rich-text-content p {
    margin: 0.8em 0;
}

.rich-text-content ul,
.rich-text-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.rich-text-content ul {
    list-style-type: disc;
}

.rich-text-content ol {
    list-style-type: decimal;
}

.rich-text-content li {
    margin: 0.5em 0;
    display: list-item;
}

.rich-text-content ul ul,
.rich-text-content ol ul {
    list-style-type: circle;
}

.rich-text-content ul ul ul,
.rich-text-content ol ul ul,
.rich-text-content ol ol ul {
    list-style-type: square;
}

.rich-text-content a {
    color: #1890ff;
    text-decoration: none;
}

.rich-text-content a:hover {
    text-decoration: underline;
}

.rich-text-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em 0;
}

.rich-text-content blockquote {
    margin: 1em 0;
    padding: 0.8em 1.2em;
    border-left: 4px solid #ddd;
    background-color: #f9f9f9;
    color: #666;
}

.rich-text-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.rich-text-content table th,
.rich-text-content table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.rich-text-content table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.rich-text-content code {
    padding: 2px 6px;
    background-color: #f5f5f5;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.rich-text-content pre {
    margin: 1em 0;
    padding: 1em;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow-x: auto;
}

.rich-text-content pre code {
    padding: 0;
    background-color: transparent;
}

.rich-text-content strong,
.rich-text-content b {
    font-weight: bold;
}

.rich-text-content em,
.rich-text-content i {
    font-style: italic;
}

.rich-text-content hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid #ddd;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .rich-text-content {
        padding: 15px;
        font-size: 14px;
    }

    .rich-text-content h1 { font-size: 1.6em; }
    .rich-text-content h2 { font-size: 1.4em; }
    .rich-text-content h3 { font-size: 1.2em; }
}
