/* ==================== 预览区排版风格主题 ==================== */
/* 参考 mdnice 设计理念，每个主题覆盖所有 Markdown 语法元素 */

/* ==================== 1. 极简蓝 (Simple Blue) ==================== */
.preview.theme-simple {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #333333;
    padding: 20px;
}

/* 标题 */
.preview.theme-simple h1,
.preview.theme-simple h2,
.preview.theme-simple h3,
.preview.theme-simple h4,
.preview.theme-simple h5,
.preview.theme-simple h6 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
}

.preview.theme-simple h1 {
    font-size: 26px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #3b82f6;
}

.preview.theme-simple h2 {
    font-size: 22px;
    padding-left: 12px;
    border-left: 4px solid #3b82f6;
}

.preview.theme-simple h3 {
    font-size: 19px;
    color: #3b82f6;
}

.preview.theme-simple h4 {
    font-size: 17px;
    color: #3b82f6;
}

.preview.theme-simple h5 {
    font-size: 16px;
}

.preview.theme-simple h6 {
    font-size: 15px;
    color: #666666;
}

/* 段落 */
.preview.theme-simple p {
    margin: 1em 0;
    word-spacing: 0.05em;
}

/* 强调 */
.preview.theme-simple strong {
    font-weight: 700;
    color: #1a1a1a;
}

.preview.theme-simple em {
    font-style: italic;
    color: #555555;
}

.preview.theme-simple del {
    text-decoration: line-through;
    color: #999999;
}

/* 链接 */
.preview.theme-simple a {
    color: #3b82f6;
    text-decoration: none;
    border-bottom: 1px solid #3b82f6;
    padding-bottom: 1px;
}

.preview.theme-simple a:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* 引用 */
.preview.theme-simple blockquote {
    margin: 1.5em 0;
    padding: 14px 20px;
    background-color: #f1f5f9;
    border-left: 4px solid #3b82f6;
    border-radius: 0 8px 8px 0;
    color: #555555;
}

.preview.theme-simple blockquote p {
    margin: 0.5em 0;
}

/* 行内代码 */
.preview.theme-simple code {
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    font-size: 14px;
    padding: 2px 6px;
    margin: 0 2px;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #e11d48;
}

/* 代码块 */
.preview.theme-simple pre {
    margin: 1.5em 0;
    padding: 16px 20px;
    background-color: #1e293b;
    border-radius: 8px;
    overflow-x: auto;
    line-height: 1.6;
}

.preview.theme-simple pre code {
    display: block;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 14px;
}

/* 列表 */
.preview.theme-simple ul,
.preview.theme-simple ol {
    margin: 1em 0;
    padding-left: 2em;
}

.preview.theme-simple li {
    margin: 0.5em 0;
    line-height: 1.75;
}

.preview.theme-simple ul ul,
.preview.theme-simple ol ul,
.preview.theme-simple ul ol,
.preview.theme-simple ol ol {
    margin: 0.3em 0;
}

/* 任务列表 */
.preview.theme-simple input[type="checkbox"] {
    margin-right: 6px;
}

/* 图片 */
.preview.theme-simple img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* 表格 */
.preview.theme-simple table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.preview.theme-simple thead {
    background-color: #f1f5f9;
}

.preview.theme-simple th,
.preview.theme-simple td {
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.preview.theme-simple th {
    font-weight: 600;
    color: #1a1a1a;
}

.preview.theme-simple tr:hover {
    background-color: #f8fafc;
}

/* 分割线 */
.preview.theme-simple hr {
    margin: 2em 0;
    border: none;
    height: 1px;
    background-color: #e2e8f0;
}

/* 高亮标记 */
.preview.theme-simple mark {
    background-color: #fef08a;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 上标下标 */
.preview.theme-simple sup {
    color: #3b82f6;
}

.preview.theme-simple sub {
    color: #3b82f6;
}


/* ==================== 2. 优雅紫 (Elegant Purple) ==================== */
.preview.theme-elegant {
    font-family: "Georgia", "Source Serif Pro", "Songti SC", serif;
    font-size: 17px;
    line-height: 1.8;
    color: #2d2d2d;
    padding: 20px;
    letter-spacing: 0.3px;
}

/* 标题 */
.preview.theme-elegant h1,
.preview.theme-elegant h2,
.preview.theme-elegant h3,
.preview.theme-elegant h4,
.preview.theme-elegant h5,
.preview.theme-elegant h6 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    font-family: "Georgia", "Source Serif Pro", serif;
}

.preview.theme-elegant h1 {
    font-size: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 16px;
}

.preview.theme-elegant h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    border-radius: 2px;
}

.preview.theme-elegant h2 {
    font-size: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9d5ff;
}

.preview.theme-elegant h3 {
    font-size: 20px;
    color: #7c3aed;
}

.preview.theme-elegant h4 {
    font-size: 18px;
    color: #7c3aed;
}

.preview.theme-elegant h5 {
    font-size: 17px;
    color: #6b21a8;
}

.preview.theme-elegant h6 {
    font-size: 16px;
    color: #666666;
}

/* 段落 */
.preview.theme-elegant p {
    margin: 1.2em 0;
    text-align: justify;
}

/* 强调 */
.preview.theme-elegant strong {
    font-weight: 700;
    color: #1a1a1a;
}

.preview.theme-elegant em {
    font-style: italic;
    color: #6b21a8;
}

.preview.theme-elegant del {
    text-decoration: line-through;
    color: #999999;
}

/* 链接 */
.preview.theme-elegant a {
    color: #7c3aed;
    text-decoration: none;
    border-bottom: 1px dashed #a855f7;
    padding-bottom: 1px;
}

.preview.theme-elegant a:hover {
    color: #6b21a8;
    border-bottom-style: solid;
}

/* 引用 */
.preview.theme-elegant blockquote {
    margin: 1.5em 0;
    padding: 16px 24px;
    background: linear-gradient(135deg, #faf5ff 0%, #fdf4ff 100%);
    border-left: 4px solid #a855f7;
    border-radius: 0 8px 8px 0;
    color: #555555;
    font-style: italic;
}

.preview.theme-elegant blockquote p {
    margin: 0.5em 0;
}

/* 行内代码 */
.preview.theme-elegant code {
    font-family: "Consolas", "Monaco", monospace;
    font-size: 15px;
    padding: 2px 8px;
    margin: 0 2px;
    background-color: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 4px;
    color: #7c3aed;
}

/* 代码块 */
.preview.theme-elegant pre {
    margin: 1.5em 0;
    padding: 20px 24px;
    background-color: #2d2d2d;
    border-radius: 8px;
    border-left: 4px solid #a855f7;
    overflow-x: auto;
}

.preview.theme-elegant pre code {
    display: block;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    color: #e5e5e5;
    font-size: 14px;
    line-height: 1.6;
}

/* 列表 */
.preview.theme-elegant ul,
.preview.theme-elegant ol {
    margin: 1.2em 0;
    padding-left: 2em;
}

.preview.theme-elegant li {
    margin: 0.6em 0;
    line-height: 1.8;
}

.preview.theme-elegant ul li::marker {
    color: #a855f7;
}

.preview.theme-elegant ol li::marker {
    color: #a855f7;
    font-weight: 600;
}

/* 任务列表 */
.preview.theme-elegant input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #a855f7;
}

/* 图片 */
.preview.theme-elegant img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2);
}

/* 表格 */
.preview.theme-elegant table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.preview.theme-elegant thead {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.preview.theme-elegant th,
.preview.theme-elegant td {
    padding: 12px 16px;
    border: 1px solid #e9d5ff;
    text-align: left;
}

.preview.theme-elegant th {
    font-weight: 700;
    color: #7c3aed;
}

.preview.theme-elegant tr:hover {
    background-color: #faf5ff;
}

/* 分割线 */
.preview.theme-elegant hr {
    margin: 2.5em 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #a855f7, transparent);
}

/* 高亮标记 */
.preview.theme-elegant mark {
    background: linear-gradient(180deg, transparent 50%, #fde68a 50%);
    padding: 0 4px;
}

/* 上标下标 */
.preview.theme-elegant sup {
    color: #a855f7;
}

.preview.theme-elegant sub {
    color: #a855f7;
}


/* ==================== 3. 技术黑 (Tech Dark) ==================== */
.preview.theme-tech {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #e2e8f0;
    background-color: #0f172a;
    padding: 32px;
    border-radius: 12px;
}

/* 标题 */
.preview.theme-tech h1,
.preview.theme-tech h2,
.preview.theme-tech h3,
.preview.theme-tech h4,
.preview.theme-tech h5,
.preview.theme-tech h6 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 700;
    line-height: 1.3;
    color: #f1f5f9;
}

.preview.theme-tech h1 {
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #06b6d4;
    padding-bottom: 12px;
    border-bottom: 2px solid #06b6d4;
}

.preview.theme-tech h2 {
    font-size: 24px;
    color: #0ea5e9;
    padding-left: 16px;
    border-left: 4px solid #06b6d4;
}

.preview.theme-tech h3 {
    font-size: 20px;
    color: #22d3ee;
}

.preview.theme-tech h4 {
    font-size: 18px;
    color: #22d3ee;
}

.preview.theme-tech h5 {
    font-size: 17px;
    color: #67e8f9;
}

.preview.theme-tech h6 {
    font-size: 16px;
    color: #94a3b8;
}

/* 段落 */
.preview.theme-tech p {
    margin: 1em 0;
}

/* 强调 */
.preview.theme-tech strong {
    font-weight: 700;
    color: #f1f5f9;
}

.preview.theme-tech em {
    font-style: italic;
    color: #94a3b8;
}

.preview.theme-tech del {
    text-decoration: line-through;
    color: #64748b;
}

/* 链接 */
.preview.theme-tech a {
    color: #06b6d4;
    text-decoration: none;
    border-bottom: 1px solid #06b6d4;
    padding-bottom: 1px;
}

.preview.theme-tech a:hover {
    color: #22d3ee;
    border-bottom-color: #22d3ee;
}

/* 引用 */
.preview.theme-tech blockquote {
    margin: 1.5em 0;
    padding: 16px 24px;
    background-color: #1e293b;
    border-left: 4px solid #06b6d4;
    border-radius: 0 8px 8px 0;
    color: #94a3b8;
}

.preview.theme-tech blockquote p {
    margin: 0.5em 0;
}

/* 行内代码 */
.preview.theme-tech code {
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    font-size: 14px;
    padding: 3px 8px;
    margin: 0 2px;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 4px;
    color: #06b6d4;
}

/* 代码块 */
.preview.theme-tech pre {
    margin: 1.5em 0;
    padding: 20px 24px;
    background-color: #1e293b;
    border-radius: 8px;
    border: 1px solid #334155;
    overflow-x: auto;
}

.preview.theme-tech pre code {
    display: block;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.6;
}

/* 列表 */
.preview.theme-tech ul,
.preview.theme-tech ol {
    margin: 1em 0;
    padding-left: 2em;
}

.preview.theme-tech li {
    margin: 0.5em 0;
    line-height: 1.75;
}

.preview.theme-tech ul li::marker {
    color: #06b6d4;
}

.preview.theme-tech ol li::marker {
    color: #06b6d4;
}

/* 任务列表 */
.preview.theme-tech input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #06b6d4;
}

/* 图片 */
.preview.theme-tech img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 8px;
    border: 1px solid #334155;
}

/* 表格 */
.preview.theme-tech table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.preview.theme-tech thead {
    background-color: #1e293b;
}

.preview.theme-tech th,
.preview.theme-tech td {
    padding: 12px 16px;
    border: 1px solid #334155;
    text-align: left;
}

.preview.theme-tech th {
    font-weight: 600;
    color: #06b6d4;
}

.preview.theme-tech tr:hover {
    background-color: #1e293b;
}

/* 分割线 */
.preview.theme-tech hr {
    margin: 2em 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #06b6d4, transparent);
}

/* 高亮标记 */
.preview.theme-tech mark {
    background-color: rgba(6, 182, 212, 0.3);
    color: #06b6d4;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 上标下标 */
.preview.theme-tech sup {
    color: #06b6d4;
}

.preview.theme-tech sub {
    color: #06b6d4;
}


/* ==================== 4. 微信绿 (WeChat Green) ==================== */
.preview.theme-wechat {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: #3f3f3f;
    padding: 20px;
    letter-spacing: 0.5px;
}

/* 标题 */
.preview.theme-wechat h1,
.preview.theme-wechat h2,
.preview.theme-wechat h3,
.preview.theme-wechat h4,
.preview.theme-wechat h5,
.preview.theme-wechat h6 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    font-weight: 600;
    line-height: 1.4;
    color: #2c2c2c;
}

.preview.theme-wechat h1 {
    font-size: 24px;
    text-align: center;
    padding-bottom: 10px;
}

.preview.theme-wechat h2 {
    font-size: 22px;
    padding-left: 12px;
    border-left: 4px solid #07c160;
}

.preview.theme-wechat h3 {
    font-size: 20px;
}

.preview.theme-wechat h4 {
    font-size: 18px;
}

.preview.theme-wechat h5 {
    font-size: 17px;
}

.preview.theme-wechat h6 {
    font-size: 16px;
    color: #666666;
}

/* 段落 */
.preview.theme-wechat p {
    margin: 1em 0;
    text-align: justify;
}

/* 强调 */
.preview.theme-wechat strong {
    font-weight: 700;
    color: #2c2c2c;
}

.preview.theme-wechat em {
    font-style: italic;
    color: #555555;
}

.preview.theme-wechat del {
    text-decoration: line-through;
    color: #999999;
}

/* 链接 */
.preview.theme-wechat a {
    color: #576b95;
    text-decoration: none;
    border-bottom: 1px solid #576b95;
    padding-bottom: 1px;
}

.preview.theme-wechat a:hover {
    color: #485878;
}

/* 引用 */
.preview.theme-wechat blockquote {
    margin: 1.5em 0;
    padding: 14px 20px;
    background-color: #f7f7f7;
    border-left: 4px solid #07c160;
    border-radius: 0 4px 4px 0;
    color: #666666;
}

.preview.theme-wechat blockquote p {
    margin: 0.5em 0;
}

/* 行内代码 */
.preview.theme-wechat code {
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    font-size: 15px;
    padding: 2px 6px;
    margin: 0 2px;
    background-color: #f7f7f7;
    border: 1px solid #efefef;
    border-radius: 3px;
    color: #07c160;
}

/* 代码块 */
.preview.theme-wechat pre {
    margin: 1.5em 0;
    padding: 16px 20px;
    background-color: #f7f7f7;
    border-radius: 4px;
    overflow-x: auto;
}

.preview.theme-wechat pre code {
    display: block;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    color: #3f3f3f;
    font-size: 14px;
    line-height: 1.6;
}

/* 列表 */
.preview.theme-wechat ul,
.preview.theme-wechat ol {
    margin: 1em 0;
    padding-left: 2em;
}

.preview.theme-wechat li {
    margin: 0.6em 0;
    line-height: 1.75;
}

.preview.theme-wechat ul li::marker {
    color: #07c160;
}

.preview.theme-wechat ol li::marker {
    color: #07c160;
}

/* 任务列表 */
.preview.theme-wechat input[type="checkbox"] {
    margin-right: 6px;
    accent-color: #07c160;
}

/* 图片 */
.preview.theme-wechat img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 表格 */
.preview.theme-wechat table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    font-size: 16px;
}

.preview.theme-wechat thead {
    background-color: #f7f7f7;
}

.preview.theme-wechat th,
.preview.theme-wechat td {
    padding: 10px 14px;
    border: 1px solid #efefef;
    text-align: left;
}

.preview.theme-wechat th {
    font-weight: 600;
    color: #2c2c2c;
}

.preview.theme-wechat tr:hover {
    background-color: #fafafa;
}

/* 分割线 */
.preview.theme-wechat hr {
    margin: 2em 0;
    border: none;
    height: 1px;
    background-color: #efefef;
}

/* 高亮标记 */
.preview.theme-wechat mark {
    background-color: #fff9c4;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 上标下标 */
.preview.theme-wechat sup {
    color: #07c160;
}

.preview.theme-wechat sub {
    color: #07c160;
}


/* ==================== 5. 活力橙 (Vibrant Orange) ==================== */
.preview.theme-colorful {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
    padding: 20px;
}

/* 标题 */
.preview.theme-colorful h1,
.preview.theme-colorful h2,
.preview.theme-colorful h3,
.preview.theme-colorful h4,
.preview.theme-colorful h5,
.preview.theme-colorful h6 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 700;
    line-height: 1.3;
}

.preview.theme-colorful h1 {
    font-size: 28px;
    text-align: center;
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 12px;
    position: relative;
}

.preview.theme-colorful h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #dc2626);
    border-radius: 2px;
}

.preview.theme-colorful h2 {
    font-size: 24px;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preview.theme-colorful h3 {
    font-size: 20px;
    color: #ea580c;
}

.preview.theme-colorful h4 {
    font-size: 18px;
    color: #ea580c;
}

.preview.theme-colorful h5 {
    font-size: 17px;
    color: #f97316;
}

.preview.theme-colorful h6 {
    font-size: 16px;
    color: #666666;
}

/* 段落 */
.preview.theme-colorful p {
    margin: 1em 0;
}

/* 强调 */
.preview.theme-colorful strong {
    font-weight: 700;
    color: #1a1a1a;
    background: linear-gradient(180deg, transparent 60%, #fed7aa 60%);
    padding: 0 2px;
}

.preview.theme-colorful em {
    font-style: italic;
    color: #ea580c;
}

.preview.theme-colorful del {
    text-decoration: line-through;
    color: #999999;
}

/* 链接 */
.preview.theme-colorful a {
    color: #ea580c;
    text-decoration: none;
    background: linear-gradient(90deg, #fb923c, #f97316);
    background-size: 100% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 2px;
}

.preview.theme-colorful a:hover {
    color: #dc2626;
}

/* 引用 */
.preview.theme-colorful blockquote {
    margin: 1.5em 0;
    padding: 16px 24px;
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border-left: 4px solid #f97316;
    border-radius: 0 8px 8px 0;
    color: #555555;
}

.preview.theme-colorful blockquote p {
    margin: 0.5em 0;
}

/* 行内代码 */
.preview.theme-colorful code {
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    font-size: 14px;
    padding: 2px 8px;
    margin: 0 2px;
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border: 1px solid #fdba74;
    border-radius: 4px;
    color: #ea580c;
}

/* 代码块 */
.preview.theme-colorful pre {
    margin: 1.5em 0;
    padding: 20px 24px;
    background-color: #292524;
    border-radius: 8px;
    border-left: 4px solid #f97316;
    overflow-x: auto;
}

.preview.theme-colorful pre code {
    display: block;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    color: #e7e5e4;
    font-size: 14px;
    line-height: 1.6;
}

/* 列表 */
.preview.theme-colorful ul,
.preview.theme-colorful ol {
    margin: 1em 0;
    padding-left: 2em;
}

.preview.theme-colorful li {
    margin: 0.5em 0;
    line-height: 1.75;
}

.preview.theme-colorful ul li::marker {
    color: #f97316;
}

.preview.theme-colorful ol li::marker {
    color: #f97316;
    font-weight: 600;
}

/* 任务列表 */
.preview.theme-colorful input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #f97316;
}

/* 图片 */
.preview.theme-colorful img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.2);
}

/* 表格 */
.preview.theme-colorful table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.preview.theme-colorful thead {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
}

.preview.theme-colorful th,
.preview.theme-colorful td {
    padding: 12px 16px;
    border: 1px solid #fdba74;
    text-align: left;
}

.preview.theme-colorful th {
    font-weight: 600;
    color: #ea580c;
}

.preview.theme-colorful tr:hover {
    background-color: #fff7ed;
}

/* 分割线 */
.preview.theme-colorful hr {
    margin: 2em 0;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #fb923c, #f97316, #dc2626);
    border-radius: 1px;
}

/* 高亮标记 */
.preview.theme-colorful mark {
    background: linear-gradient(180deg, transparent 50%, #fde68a 50%);
    padding: 0 4px;
}

/* 上标下标 */
.preview.theme-colorful sup {
    color: #f97316;
}

.preview.theme-colorful sub {
    color: #f97316;
}


/* ==================== 主题切换过渡 ==================== */
.preview {
    transition: all 300ms ease-out;
}

/* 首字母不缩进（针对优雅主题可选） */
.preview.theme-elegant p:first-of-type::first-letter {
    font-size: 2em;
    font-weight: 700;
    float: left;
    line-height: 1;
    margin-right: 8px;
    color: #7c3aed;
}
