/* 基础样式 - 网站整体样式（保持不变） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(to right, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.template-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.template-selector label {
    font-weight: 500;
    font-size: 1.1rem;
}

.template-selector select {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.2);
    background-color: rgba(255,255,255,0.15);
    color: white;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.template-selector select:hover {
    background-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.template-selector select:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background-color: rgba(255,255,255,0.3);
}

.template-selector select option {
    background-color: #667eea;
    color: white;
}

.copy-button {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.2);
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.25) 100%);
    color: white;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.copy-button:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.35) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-button.copied {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.editor-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.editor-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.editor-panel textarea {
    flex: 1;
    padding: 1.5rem;
    border: none;
    resize: none;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1rem;
    outline: none;
    background-color: #ffffff;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
    line-height: 1.6;
}

.editor-panel textarea:focus {
    box-shadow: inset 0 2px 15px rgba(0,0,0,0.1);
}

.preview-panel {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background-color: #ffffff;
    box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

/* 预览区域样式 - 每个模板只影响这个区域 */
#preview-output {
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

#preview-output h1,
#preview-output h2,
#preview-output h3,
#preview-output h4,
#preview-output h5,
#preview-output h6 {
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
    position: relative;
}

#preview-output h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#preview-output h2 {
    font-size: 1.9rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.6rem;
}

#preview-output h3 {
    font-size: 1.6rem;
}

#preview-output p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: #34495e;
    text-align: justify;
}

#preview-output ul,
#preview-output ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

#preview-output ul li,
#preview-output ol li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

#preview-output a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px dashed #3498db;
    transition: all 0.3s ease;
}

#preview-output a:hover {
    color: #2980b9;
    border-bottom: 1px solid #2980b9;
    text-decoration: none;
}

#preview-output code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.95rem;
    color: #e74c3c;
    border: 1px solid #eee;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

#preview-output pre {
    background: linear-gradient(135deg, #2c3e50, #1a2530);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid #2c3e50;
}

#preview-output pre code {
    background: none;
    padding: 0;
    color: #ecf0f1;
    border: none;
    box-shadow: none;
}

#preview-output blockquote {
    border-left: 5px solid #3498db;
    padding: 1rem 1.5rem;
    margin: 0 0 1.5rem;
    color: #7f8c8d;
    background-color: #f8f9fa;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-style: italic;
}

#preview-output img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#preview-output img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

#preview-output table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

#preview-output table th,
#preview-output table td {
    padding: 1rem;
    border: 1px solid #ddd;
    text-align: left;
}

#preview-output table th {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    font-weight: 600;
}

#preview-output table tr:nth-child(even) {
    background-color: #f8f9fa;
}

#preview-output table tr:hover {
    background-color: #eef5f9;
}

/* 模板2：简约风格 */
.template2 #preview-output {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

.template2 #preview-output h1,
.template2 #preview-output h2,
.template2 #preview-output h3 {
    font-weight: 300;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.template2 #preview-output h1 {
    font-size: 2.5rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.template2 #preview-output h1::after {
    content: "";
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

.template2 #preview-output h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
}

.template2 #preview-output p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.template2 #preview-output a {
    color: #6a11cb;
    border-bottom: 1px solid #6a11cb;
}

.template2 #preview-output a:hover {
    color: #2575fc;
    border-bottom: 1px solid #2575fc;
}

.template2 #preview-output blockquote {
    background: linear-gradient(135deg, #e0e7ff 0%, #d5deff 100%);
    border-left: 4px solid #6a11cb;
    border-radius: 0 10px 10px 0;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.template2 #preview-output code {
    background-color: #f0f4ff;
    color: #4a6cf7;
    border: 1px solid #d5deff;
}

/* 模板3：暗黑模式 */
.template3 #preview-output {
    background: linear-gradient(135deg, #121212 0%, #1a1a2e 100%);
    padding: 2rem;
    border-radius: 10px;
    color: #e2e8f0;
}

.template3 #preview-output h1,
.template3 #preview-output h2,
.template3 #preview-output h3,
.template3 #preview-output h4,
.template3 #preview-output h5,
.template3 #preview-output h6 {
    color: #f1f5f9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.template3 #preview-output p {
    color: #cbd5e1;
}

.template3 #preview-output a {
    color: #60a5fa;
    border-bottom: 1px dashed #60a5fa;
}

.template3 #preview-output a:hover {
    color: #3b82f6;
    border-bottom: 1px solid #3b82f6;
}

.template3 #preview-output code {
    background-color: #1e293b;
    color: #f87171;
    border: 1px solid #334155;
}

.template3 #preview-output pre {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.template3 #preview-output blockquote {
    border-left: 5px solid #60a5fa;
    background-color: #1e293b;
    color: #94a3b8;
}

.template3 #preview-output table th {
    background: linear-gradient(135deg, #334155, #1e293b);
}

.template3 #preview-output table th,
.template3 #preview-output table td {
    border-color: #334155;
}

.template3 #preview-output table tr:nth-child(even) {
    background-color: #1e293b;
}

.template3 #preview-output table tr:hover {
    background-color: #334155;
}

/* 模板4：学术论文 */
.template4 #preview-output {
    font-family: 'Times New Roman', serif;
    background: #fdfcf8;
    padding: 3rem;
    max-width: 700px;
    margin: 1rem auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    border: 1px solid #e6d3a0;
}

.template4 #preview-output h1 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    border-bottom: 3px double #8e7c68;
    padding-bottom: 2rem;
    font-weight: normal;
    line-height: 1.3;
}

.template4 #preview-output h2 {
    font-size: 1.9rem;
    border-bottom: 1px solid #8e7c68;
    padding-bottom: 0.8rem;
    font-weight: normal;
    margin-top: 2.5rem;
}

.template4 #preview-output h3 {
    font-size: 1.5rem;
    font-weight: normal;
    margin-top: 2rem;
}

.template4 #preview-output p {
    text-indent: 2.5rem;
    margin-bottom: 1.3rem;
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.9;
}

.template4 #preview-output blockquote {
    font-style: italic;
    border-left: 3px solid #8e7c68;
    background-color: rgba(142, 124, 104, 0.05);
    padding: 1.8rem;
    margin: 1.8rem 2rem;
}

.template4 #preview-output ol,
.template4 #preview-output ul {
    text-indent: 0;
    padding-left: 3rem;
    font-size: 1.1rem;
}

.template4 #preview-output .citation {
    font-size: 0.9rem;
}

.template4 #preview-output a {
    color: #5d4037;
    border-bottom: 1px solid #5d4037;
}

/* 模板5：博客风格 */
.template5 #preview-output {
    font-family: Georgia, serif;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 1rem auto;
}

.template5 #preview-output h1,
.template5 #preview-output h2,
.template5 #preview-output h3 {
    font-family: Georgia, serif;
    color: #2c3e50;
    position: relative;
}

.template5 #preview-output h1::before,
.template5 #preview-output h2::before {
    content: "#";
    color: #3498db;
    margin-right: 10px;
}

.template5 #preview-output h1 {
    font-size: 2.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid #eee;
    text-align: center;
    margin-bottom: 2rem;
}

.template5 #preview-output h2 {
    font-size: 1.9rem;
    margin-top: 2.5rem;
}

.template5 #preview-output p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.template5 #preview-output a {
    color: #2980b9;
    border-bottom: 1px solid #2980b9;
    transition: all 0.3s ease;
}

.template5 #preview-output a:hover {
    color: #3498db;
    border-bottom: 1px solid #3498db;
    background-color: rgba(52, 152, 219, 0.05);
    padding: 2px 4px;
    border-radius: 3px;
}

.template5 #preview-output blockquote {
    background: linear-gradient(135deg, #e1f0fa 0%, #d1e7f5 100%);
    border-left: 5px solid #3498db;
    border-radius: 0 10px 10px 0;
    padding: 1.8rem;
    margin: 1.5rem 0;
}

.template5 #preview-output ul,
.template5 #preview-output ol {
    font-size: 1.1rem;
}

/* 模板6：技术文档 */
.template6 #preview-output {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    max-width: 900px;
    margin: 1rem auto;
}

.template6 #preview-output h1,
.template6 #preview-output h2,
.template6 #preview-output h3 {
    color: #2b6cb0;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.template6 #preview-output h1 {
    font-size: 2.4rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

.template6 #preview-output h2 {
    font-size: 1.8rem;
    margin-top: 2.2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.8rem;
}

.template6 #preview-output p {
    font-size: 1rem;
    line-height: 1.7;
    color: #2d3748;
}

.template6 #preview-output a {
    color: #3182ce;
    border-bottom: 1px solid #3182ce;
}

.template6 #preview-output a:hover {
    color: #2b6cb0;
    border-bottom: 1px solid #2b6cb0;
    background-color: rgba(49, 130, 206, 0.05);
    padding: 2px 4px;
    border-radius: 3px;
}

.template6 #preview-output code {
    background-color: #f7fafc;
    color: #e53e3e;
    border: 1px solid #e2e8f0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.template6 #preview-output pre {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid #4a5568;
}

.template6 #preview-output pre code {
    background: none;
    color: #e2e8f0;
    border: none;
}

.template6 #preview-output blockquote {
    background: linear-gradient(135deg, #ebf8ff 0%, #ceedff 100%);
    border-left: 4px solid #3182ce;
    border-radius: 0 8px 8px 0;
    padding: 1.3rem 1.5rem;
}

.template6 #preview-output table {
    font-size: 0.95rem;
}

/* 模板7：便签风格 */
.template7 #preview-output {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: #fffde7;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px dashed #fbc02d;
    max-width: 750px;
    margin: 1rem auto;
    position: relative;
    overflow: hidden;
}

.template7 #preview-output::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: repeating-linear-gradient(
        #fffde7,
        #fffde7 10px,
        #fdd835 10px,
        #fdd835 11px
    );
}

.template7 #preview-output h1,
.template7 #preview-output h2,
.template7 #preview-output h3 {
    color: #f57f17;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    position: relative;
}

.template7 #preview-output h1::after {
    content: "📝";
    margin-left: 10px;
}

.template7 #preview-output h2::after {
    content: "📌";
    margin-left: 10px;
}

.template7 #preview-output h1 {
    font-size: 2.3rem;
    text-align: center;
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.template7 #preview-output p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #5a5a5a;
}

.template7 #preview-output a {
    color: #f57f17;
    border-bottom: 1px dashed #f57f17;
}

.template7 #preview-output a:hover {
    color: #f9a825;
    border-bottom: 1px solid #f9a825;
    background-color: rgba(249, 168, 37, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

.template7 #preview-output blockquote {
    background: linear-gradient(135deg, #fff59d 0%, #fff176 100%);
    border-left: 5px solid #f57f17;
    border-radius: 0 15px 15px 0;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.template7 #preview-output code {
    background-color: #fff59d;
    color: #d84315;
    border: 1px solid #fdd835;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
}

/* 模板8：古典风格 */
.template8 #preview-output {
    font-family: 'Times New Roman', serif;
    background: #f5f5dc;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(93, 64, 55, 0.15);
    border: 1px solid #e6d3a0;
    max-width: 750px;
    margin: 1rem auto;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f5f5dc"/><path d="M0 0L100 100M100 0L0 100" stroke="%23e6d3a0" stroke-width="1"/></svg>');
}

.template8 #preview-output h1,
.template8 #preview-output h2,
.template8 #preview-output h3 {
    color: #5d4037;
    font-family: 'Times New Roman', serif;
    position: relative;
}

.template8 #preview-output h1 {
    text-align: center;
    font-size: 2.8rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px double #5d4037;
    margin-bottom: 2.5rem;
    font-weight: normal;
}

.template8 #preview-output h2 {
    font-size: 1.9rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #5d4037;
    margin-top: 2.5rem;
}

.template8 #preview-output p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 1.3rem;
}

.template8 #preview-output a {
    color: #5d4037;
    border-bottom: 1px solid #5d4037;
}

.template8 #preview-output a:hover {
    color: #3e2723;
    border-bottom: 1px solid #3e2723;
    background-color: rgba(93, 64, 55, 0.05);
    padding: 2px 4px;
}

.template8 #preview-output blockquote {
    background-color: rgba(230, 211, 160, 0.3);
    border-left: 4px solid #5d4037;
    border-radius: 0 8px 8px 0;
    padding: 1.8rem;
    font-style: italic;
    margin: 1.8rem 0;
}

.template8 #preview-output code {
    background-color: #e6d3a0;
    color: #3e2723;
    border: 1px solid #5d4037;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
}

/* 模板9：现代卡片 */
.template9 #preview-output {
    background: transparent;
    padding: 1rem;
    max-width: 100%;
}

.template9 #preview-output > * {
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #eef5f9;
}

.template9 #preview-output > *:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.template9 #preview-output h1,
.template9 #preview-output h2,
.template9 #preview-output h3 {
    color: #2c3e50;
    margin-top: 0;
}

.template9 #preview-output h1 {
    font-size: 2.3rem;
    border-bottom: none;
    padding-bottom: 0;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.template9 #preview-output p:last-child {
    margin-bottom: 0;
}

.template9 #preview-output a {
    color: #667eea;
    border-bottom: 1px solid #667eea;
}

.template9 #preview-output a:hover {
    color: #764ba2;
    border-bottom: 1px solid #764ba2;
}

.template9 #preview-output blockquote {
    background: linear-gradient(135deg, #eef5f9 0%, #ddebf4 100%);
    border-left: 5px solid #667eea;
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.template9 #preview-output pre {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
    border: 1px solid #eef5f9;
}

.template9 #preview-output ul,
.template9 #preview-output ol {
    padding-left: 1.5rem;
}

/* 模板10：清新自然 */
.template10 #preview-output {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 150, 136, 0.1);
    border: 1px solid #b2dfdb;
    max-width: 850px;
    margin: 1rem auto;
    background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%);
}

.template10 #preview-output h1,
.template10 #preview-output h2,
.template10 #preview-output h3 {
    color: #00796b;
    position: relative;
}

.template10 #preview-output h1::before {
    content: "🌿";
    margin-right: 10px;
}

.template10 #preview-output h2::before {
    content: "🍃";
    margin-right: 10px;
}

.template10 #preview-output h1 {
    font-size: 2.4rem;
    text-align: center;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid #b2dfdb;
    margin-bottom: 2rem;
}

.template10 #preview-output h2 {
    font-size: 1.8rem;
    margin-top: 2.2rem;
}

.template10 #preview-output p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #263238;
}

.template10 #preview-output a {
    color: #009688;
    border-bottom: 1px dashed #009688;
}

.template10 #preview-output a:hover {
    color: #00796b;
    border-bottom: 1px solid #00796b;
    background-color: rgba(0, 150, 136, 0.05);
    padding: 2px 4px;
    border-radius: 3px;
}

.template10 #preview-output blockquote {
    background: linear-gradient(135deg, #e0f2f1 0%, #d2e8e5 100%);
    border-left: 5px solid #009688;
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    margin: 1.5rem 0;
}

.template10 #preview-output code {
    background-color: #e0f2f1;
    color: #00796b;
    border: 1px solid #b2dfdb;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
}

.template10 #preview-output pre {
    background: linear-gradient(135deg, #263238, #1a2530);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid #37474f;
}

/* 模板11：极简黑白 */
.template11 #preview-output {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    background: #ffffff;
    padding: 3rem;
    max-width: 800px;
    margin: 1rem auto;
    border: 1px solid #000000;
    box-shadow: 10px 10px 0px #000000;
}

.template11 #preview-output h1,
.template11 #preview-output h2,
.template11 #preview-output h3 {
    font-weight: bold;
    color: #000000;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.template11 #preview-output h1 {
    font-size: 2.5rem;
    text-align: left;
    border-bottom: 3px solid #000000;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.template11 #preview-output h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #000000;
    padding-bottom: 0.8rem;
    margin-top: 2rem;
}

.template11 #preview-output p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 1.5rem;
}

.template11 #preview-output a {
    color: #000000;
    text-decoration: underline;
    font-weight: bold;
}

.template11 #preview-output a:hover {
    background-color: #000000;
    color: #ffffff;
}

.template11 #preview-output blockquote {
    border-left: 3px solid #000000;
    padding: 1.5rem;
    margin: 1.5rem 0;
    background-color: #f5f5f5;
}

.template11 #preview-output code {
    background-color: #000000;
    color: #ffffff;
    padding: 0.2rem 0.5rem;
    font-family: 'Courier New', monospace;
}

.template11 #preview-output pre {
    background-color: #000000;
    color: #ffffff;
    padding: 1.5rem;
    border: 1px solid #000000;
    font-family: 'Courier New', monospace;
}

.template11 #preview-output ul,
.template11 #preview-output ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.template11 #preview-output ul li,
.template11 #preview-output ol li {
    margin-bottom: 0.5rem;
}

.template11 #preview-output table {
    border: 2px solid #000000;
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5rem;
}

.template11 #preview-output table th,
.template11 #preview-output table td {
    border: 1px solid #000000;
    padding: 0.8rem;
    text-align: left;
}

.template11 #preview-output table th {
    background-color: #000000;
    color: #ffffff;
    font-weight: bold;
}

/* 模板12：科幻未来 */
.template12 #preview-output {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    padding: 2rem;
    border-radius: 10px;
    color: #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    border: 1px solid #00ffff;
    max-width: 850px;
    margin: 1rem auto;
    position: relative;
    overflow: hidden;
}

.template12 #preview-output::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.template12 #preview-output h1,
.template12 #preview-output h2,
.template12 #preview-output h3 {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    font-weight: 700;
    letter-spacing: 2px;
}

.template12 #preview-output h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.template12 #preview-output h1::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    margin: 10px auto;
}

.template12 #preview-output h2 {
    font-size: 1.9rem;
    margin-top: 2rem;
}

.template12 #preview-output p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.3rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.template12 #preview-output a {
    color: #00ffff;
    border-bottom: 1px dashed #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.template12 #preview-output a:hover {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
    text-shadow: 0 0 10px #ffffff;
}

.template12 #preview-output blockquote {
    border-left: 3px solid #00ffff;
    background-color: rgba(0, 255, 255, 0.1);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.template12 #preview-output code {
    background-color: rgba(0, 0, 0, 0.7);
    color: #00ff00;
    border: 1px solid #00ffff;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 5px #00ffff;
}

.template12 #preview-output pre {
    background: linear-gradient(135deg, #000000, #1a1a2e);
    border: 1px solid #00ffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.template12 #preview-output ul,
.template12 #preview-output ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.template12 #preview-output ul li::marker,
.template12 #preview-output ol li::marker {
    color: #00ffff;
}

.template12 #preview-output table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    border: 1px solid #00ffff;
}

.template12 #preview-output table th,
.template12 #preview-output table td {
    padding: 1rem;
    border: 1px solid #00ffff;
    text-align: left;
}

.template12 #preview-output table th {
    background: linear-gradient(135deg, #001f1f, #003333);
    color: #00ffff;
    font-weight: bold;
}

.template12 #preview-output table tr:nth-child(even) {
    background-color: rgba(0, 255, 255, 0.05);
}

/* 模板13：手绘草稿 */
.template13 #preview-output {
    font-family: 'Comic Sans MS', 'Marker Felt', 'Arial', cursive;
    background: #f9f4e8;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(139, 125, 107, 0.3);
    max-width: 800px;
    margin: 1rem auto;
    border: 2px solid #8b7d6b;
    background-image: 
        radial-gradient(#a9a296 10%, transparent 11%),
        radial-gradient(#a9a296 10%, transparent 11%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.template13 #preview-output h1,
.template13 #preview-output h2,
.template13 #preview-output h3 {
    font-family: 'Comic Sans MS', 'Marker Felt', cursive;
    color: #5d4037;
    position: relative;
}

.template13 #preview-output h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    border: 3px solid #5d4037;
    border-radius: 15px;
    transform: rotate(-1deg);
    background-color: #fff9c4;
    box-shadow: 5px 5px 0 #5d4037;
}

.template13 #preview-output h2 {
    font-size: 1.9rem;
    margin-top: 2rem;
    padding: 0.5rem;
    border-bottom: 2px dashed #5d4037;
    transform: rotate(0.5deg);
}

.template13 #preview-output p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5d4037;
    margin-bottom: 1.3rem;
}

.template13 #preview-output a {
    color: #5d4037;
    border-bottom: 1px dashed #5d4037;
    background-color: #ffecb3;
    padding: 2px 5px;
    border-radius: 5px;
}

.template13 #preview-output a:hover {
    background-color: #ffd54f;
    box-shadow: 2px 2px 0 #5d4037;
}

.template13 #preview-output blockquote {
    border-left: 5px dotted #5d4037;
    background-color: #ffecb3;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 10px 10px 0;
    transform: rotate(1deg);
    box-shadow: 3px 3px 0 #5d4037;
}

.template13 #preview-output code {
    background-color: #d7ccc8;
    color: #5d4037;
    border: 1px dashed #5d4037;
    border-radius: 5px;
    padding: 0.2rem 0.5rem;
    font-family: 'Courier New', monospace;
}

.template13 #preview-output pre {
    background-color: #d7ccc8;
    border: 2px dashed #5d4037;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 4px 4px 0 #5d4037;
}

.template13 #preview-output ul,
.template13 #preview-output ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.template13 #preview-output ul li::marker,
.template13 #preview-output ol li::marker {
    color: #5d4037;
}

.template13 #preview-output table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    border: 2px dashed #5d4037;
    background-color: #ffecb3;
}

.template13 #preview-output table th,
.template13 #preview-output table td {
    padding: 1rem;
    border: 1px dashed #5d4037;
    text-align: left;
}

.template13 #preview-output table th {
    background-color: #a1887f;
    color: #ffffff;
    font-weight: bold;
}

/* 模板14：复古报纸 */
.template14 #preview-output {
    font-family: 'Times New Roman', serif;
    background: #f5f1e0;
    padding: 2rem;
    max-width: 900px;
    margin: 1rem auto;
    border: 1px solid #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    column-count: 2;
    column-gap: 3rem;
    column-rule: 1px solid #000;
}

.template14 #preview-output h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    grid-column: 1 / -1;
    border-bottom: 3px double #000;
    padding-bottom: 1rem;
    color: #000;
}

.template14 #preview-output h2 {
    font-size: 1.8rem;
    margin-top: 1.5rem;
    border-bottom: 1px solid #000;
    padding-bottom: 0.5rem;
    font-weight: bold;
    color: #000;
}

.template14 #preview-output h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #000;
}

.template14 #preview-output p {
    font-size: 1rem;
    line-height: 1.5;
    text-align: justify;
    margin-bottom: 1rem;
    color: #222;
}

.template14 #preview-output a {
    color: #000;
    text-decoration: underline;
}

.template14 #preview-output a:hover {
    background-color: #000;
    color: #fff;
}

.template14 #preview-output blockquote {
    font-style: italic;
    border-left: 3px solid #000;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    background-color: #e8e4d4;
}

.template14 #preview-output code {
    background-color: #000;
    color: #fff;
    padding: 0.1rem 0.3rem;
    font-family: 'Courier New', monospace;
}

.template14 #preview-output pre {
    background-color: #000;
    color: #fff;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    border: 1px solid #000;
}

.template14 #preview-output ul,
.template14 #preview-output ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.template14 #preview-output ul li,
.template14 #preview-output ol li {
    margin-bottom: 0.3rem;
}

.template14 #preview-output table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    border: 1px solid #000;
}

.template14 #preview-output table th,
.template14 #preview-output table td {
    padding: 0.5rem;
    border: 1px solid #000;
    text-align: left;
    font-size: 0.9rem;
}

.template14 #preview-output table th {
    background-color: #000;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

/* 模板15：霓虹灯效 */
.template15 #preview-output {
    font-family: 'Arial', sans-serif;
    background: #000000;
    padding: 2rem;
    border-radius: 10px;
    color: #ffffff;
    max-width: 900px;
    margin: 1rem auto;
    box-shadow: 0 0 20px #ff00ff, 0 0 40px #00ffff;
    border: 2px solid #ff00ff;
    position: relative;
    overflow: hidden;
}

.template15 #preview-output::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 50%, rgba(255,0,255,0.1) 50%),
        linear-gradient(transparent 50%, rgba(0,255,255,0.1) 50%);
    background-size: 10px 10px;
    pointer-events: none;
    z-index: 0;
}

.template15 #preview-output > * {
    position: relative;
    z-index: 1;
}

.template15 #preview-output h1,
.template15 #preview-output h2,
.template15 #preview-output h3 {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.template15 #preview-output h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
    animation: neon1 1.5s ease-in-out infinite alternate;
}

.template15 #preview-output h2 {
    font-size: 1.9rem;
    margin-top: 2rem;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    animation: neon2 1.5s ease-in-out infinite alternate;
}

.template15 #preview-output h3 {
    font-size: 1.5rem;
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00;
    animation: neon3 1.5s ease-in-out infinite alternate;
}

@keyframes neon1 {
    from { text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff; }
    to { text-shadow: 0 0 15px #ff00ff, 0 0 30px #ff00ff, 0 0 40px #ff00ff; }
}

@keyframes neon2 {
    from { text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff; }
    to { text-shadow: 0 0 15px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff; }
}

@keyframes neon3 {
    from { text-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00; }
    to { text-shadow: 0 0 15px #ffff00, 0 0 30px #ffff00, 0 0 40px #ffff00; }
}

.template15 #preview-output p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.3rem;
    color: #ffffff;
}

.template15 #preview-output a {
    color: #ff00ff;
    border-bottom: 1px dashed #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
}

.template15 #preview-output a:hover {
    color: #00ffff;
    border-bottom: 1px solid #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.template15 #preview-output blockquote {
    border-left: 5px solid #ffff00;
    background-color: rgba(255, 255, 0, 0.1);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.3);
}

.template15 #preview-output code {
    background-color: rgba(0, 0, 0, 0.7);
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 5px #00ff00;
}

.template15 #preview-output pre {
    background: linear-gradient(135deg, #111, #222);
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.template15 #preview-output ul,
.template15 #preview-output ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.template15 #preview-output ul li::marker,
.template15 #preview-output ol li::marker {
    color: #ff00ff;
}

.template15 #preview-output table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
    border: 1px solid #ff00ff;
}

.template15 #preview-output table th,
.template15 #preview-output table td {
    padding: 1rem;
    border: 1px solid #ff00ff;
    text-align: left;
}

.template15 #preview-output table th {
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    color: #000;
    font-weight: bold;
}

.template15 #preview-output table tr:nth-child(even) {
    background-color: rgba(255, 0, 255, 0.05);
}

/* 模板16：水彩画风 */
.template16 #preview-output {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #e0f7fa, #f3e5f5, #fce4ec);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 850px;
    margin: 1rem auto;
    box-shadow: 0 0 30px rgba(171, 144, 193, 0.5);
    position: relative;
    overflow: hidden;
}

.template16 #preview-output::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: rotate(30deg);
    z-index: 0;
}

.template16 #preview-output > * {
    position: relative;
    z-index: 1;
}

.template16 #preview-output h1,
.template16 #preview-output h2,
.template16 #preview-output h3 {
    font-family: 'Georgia', serif;
    color: #5d408c;
    position: relative;
}

.template16 #preview-output h1 {
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(93, 64, 140, 0.3);
}

.template16 #preview-output h1::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #5d408c, transparent);
    margin: 10px auto;
}

.template16 #preview-output h2 {
    font-size: 1.9rem;
    margin-top: 2rem;
    color: #3f51b5;
}

.template16 #preview-output h3 {
    font-size: 1.5rem;
    color: #2196f3;
}

.template16 #preview-output p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4527a0;
    margin-bottom: 1.3rem;
}

.template16 #preview-output a {
    color: #5d408c;
    border-bottom: 1px solid #5d408c;
}

.template16 #preview-output a:hover {
    color: #3f51b5;
    border-bottom: 1px solid #3f51b5;
    background-color: rgba(93, 64, 140, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

.template16 #preview-output blockquote {
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.7), rgba(243, 229, 245, 0.7));
    border-left: 5px solid #5d408c;
    border-radius: 0 15px 15px 0;
    padding: 1.8rem;
    margin: 1.8rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-style: italic;
}

.template16 #preview-output code {
    background-color: rgba(93, 64, 140, 0.1);
    color: #5d408c;
    border: 1px solid rgba(93, 64, 140, 0.3);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-family: 'Courier New', monospace;
}

.template16 #preview-output pre {
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.1), rgba(33, 150, 243, 0.1));
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(93, 64, 140, 0.2);
}

.template16 #preview-output ul,
.template16 #preview-output ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.template16 #preview-output ul li,
.template16 #preview-output ol li {
    margin-bottom: 0.5rem;
}

.template16 #preview-output table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.5);
}

.template16 #preview-output table th,
.template16 #preview-output table td {
    padding: 1rem;
    border: 1px solid rgba(93, 64, 140, 0.2);
    text-align: left;
}

.template16 #preview-output table th {
    background: linear-gradient(135deg, #5d408c, #3f51b5);
    color: white;
    font-weight: bold;
}

.template16 #preview-output table tr:nth-child(even) {
    background-color: rgba(224, 247, 250, 0.5);
}

/* 模板17：像素艺术 */
.template17 #preview-output {
    font-family: 'Courier New', monospace;
    background: #121212;
    padding: 2rem;
    border: 10px solid #666666;
    border-radius: 0;
    color: #ffffff;
    max-width: 900px;
    margin: 1rem auto;
    box-shadow: 10px 10px 0 #000;
    position: relative;
    overflow: hidden;
}

.template17 #preview-output::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 10px 10px;
    pointer-events: none;
    z-index: 0;
}

.template17 #preview-output > * {
    position: relative;
    z-index: 1;
}

.template17 #preview-output h1,
.template17 #preview-output h2,
.template17 #preview-output h3 {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.template17 #preview-output h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #0066cc;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 5px 5px 0 #ffffff;
}

.template17 #preview-output h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    padding: 0.5rem;
    background-color: #009900;
    color: #ffffff;
    border-left: 5px solid #ffffff;
}

.template17 #preview-output h3 {
    font-size: 1.3rem;
    color: #ffcc00;
    border-bottom: 1px solid #ffcc00;
    padding-bottom: 0.5rem;
}

.template17 #preview-output p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: #cccccc;
}

.template17 #preview-output a {
    color: #ff3300;
    text-decoration: underline;
}

.template17 #preview-output a:hover {
    background-color: #ff3300;
    color: #ffffff;
}

.template17 #preview-output blockquote {
    border-left: 5px solid #ff00ff;
    background-color: #330033;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 3px 3px 0 #ffffff;
}

.template17 #preview-output code {
    background-color: #000000;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 0.2rem 0.5rem;
    font-family: 'Courier New', monospace;
}

.template17 #preview-output pre {
    background-color: #000000;
    border: 2px solid #00ff00;
    padding: 1.5rem;
    box-shadow: 5px 5px 0 #ffffff;
}

.template17 #preview-output ul,
.template17 #preview-output ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.template17 #preview-output ul li::marker,
.template17 #preview-output ol li::marker {
    color: #ffcc00;
}

.template17 #preview-output table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    border: 2px solid #ffffff;
    background-color: #222222;
}

.template17 #preview-output table th,
.template17 #preview-output table td {
    padding: 1rem;
    border: 1px solid #ffffff;
    text-align: left;
}

.template17 #preview-output table th {
    background-color: #660066;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}

.template17 #preview-output table tr:nth-child(even) {
    background-color: #333333;
}

/* 模板18：木质纹理 */
.template18 #preview-output {
    font-family: 'Georgia', serif;
    background: #f0e6d2 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f0e6d2"/><path d="M0 0L100 100M100 0L0 100" stroke="%23d4c8b0" stroke-width="0.5" opacity="0.3"/></svg>');
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 850px;
    margin: 1rem auto;
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.5);
    border: 1px solid #8b4513;
    position: relative;
    overflow: hidden;
}

.template18 #preview-output::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 49%, rgba(139, 69, 19, 0.2) 50%, transparent 51%),
        linear-gradient(transparent 49%, rgba(139, 69, 19, 0.2) 50%, transparent 51%);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.template18 #preview-output > * {
    position: relative;
    z-index: 1;
}

.template18 #preview-output h1,
.template18 #preview-output h2,
.template18 #preview-output h3 {
    font-family: 'Georgia', serif;
    color: #8b4513;
}

.template18 #preview-output h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px double #8b4513;
}

.template18 #preview-output h2 {
    font-size: 1.9rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #8b4513;
}

.template18 #preview-output h3 {
    font-size: 1.5rem;
    color: #a0522d;
}

.template18 #preview-output p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5d4037;
    margin-bottom: 1.3rem;
}

.template18 #preview-output a {
    color: #8b4513;
    border-bottom: 1px solid #8b4513;
}

.template18 #preview-output a:hover {
    color: #a0522d;
    border-bottom: 1px solid #a0522d;
    background-color: rgba(139, 69, 19, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

.template18 #preview-output blockquote {
    border-left: 5px solid #8b4513;
    background-color: rgba(240, 230, 210, 0.7);
    padding: 1.8rem;
    margin: 1.8rem 0;
    border-radius: 0 10px 10px 0;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    font-style: italic;
}

.template18 #preview-output code {
    background-color: #d2b48c;
    color: #8b0000;
    border: 1px solid #8b4513;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-family: 'Courier New', monospace;
}

.template18 #preview-output pre {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #5d4037;
    color: #ffffff;
}

.template18 #preview-output pre code {
    background: none;
    color: inherit;
    border: none;
}

.template18 #preview-output ul,
.template18 #preview-output ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.template18 #preview-output ul li,
.template18 #preview-output ol li {
    margin-bottom: 0.5rem;
}

.template18 #preview-output table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(240, 230, 210, 0.8);
    border: 1px solid #8b4513;
}

.template18 #preview-output table th,
.template18 #preview-output table td {
    padding: 1rem;
    border: 1px solid #8b4513;
    text-align: left;
}

.template18 #preview-output table th {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: #ffffff;
    font-weight: bold;
}

.template18 #preview-output table tr:nth-child(even) {
    background-color: rgba(210, 180, 140, 0.3);
}

/* 模板19：大理石纹 */
.template19 #preview-output {
    font-family: 'Times New Roman', serif;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 900px;
    margin: 1rem auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.template19 #preview-output::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 20%),
        radial-gradient(circle at 70% 70%, rgba(200, 200, 200, 0.5) 0%, transparent 20%);
    transform: rotate(30deg);
    pointer-events: none;
    z-index: 0;
}

.template19 #preview-output > * {
    position: relative;
    z-index: 1;
}

.template19 #preview-output h1,
.template19 #preview-output h2,
.template19 #preview-output h3 {
    font-family: 'Times New Roman', serif;
    color: #2c3e50;
}

.template19 #preview-output h1 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #3498db;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.template19 #preview-output h1::after {
    content: "";
    display: block;
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    margin: 15px auto 0;
}

.template19 #preview-output h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #3498db;
}

.template19 #preview-output h3 {
    font-size: 1.6rem;
    color: #2980b9;
}

.template19 #preview-output p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.template19 #preview-output a {
    color: #3498db;
    border-bottom: 1px solid #3498db;
}

.template19 #preview-output a:hover {
    color: #2980b9;
    border-bottom: 1px solid #2980b9;
    background-color: rgba(52, 152, 219, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

.template19 #preview-output blockquote {
    background: linear-gradient(135deg, rgba(236, 240, 241, 0.7), rgba(189, 195, 199, 0.7));
    border-left: 5px solid #3498db;
    border-radius: 0 15px 15px 0;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-style: italic;
}

.template19 #preview-output code {
    background-color: #ecf0f1;
    color: #e74c3c;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-family: 'Courier New', monospace;
}

.template19 #preview-output pre {
    background: linear-gradient(135deg, #2c3e50, #1a2530);
    border-radius: 10px;
    padding: 1.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #34495e;
}

.template19 #preview-output pre code {
    background: none;
    color: #ecf0f1;
    border: none;
}

.template19 #preview-output ul,
.template19 #preview-output ol {
    margin-bottom: 1.8rem;
    padding-left: 2.5rem;
}

.template19 #preview-output ul li,
.template19 #preview-output ol li {
    margin-bottom: 0.6rem;
}

.template19 #preview-output table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.template19 #preview-output table th,
.template19 #preview-output table td {
    padding: 1.2rem;
    border: 1px solid #bdc3c7;
    text-align: left;
}

.template19 #preview-output table th {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-weight: bold;
    text-align: center;
}

.template19 #preview-output table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.template19 #preview-output table tr:hover {
    background-color: #ecf0f1;
}

/* 模板20：玻璃拟态 */
.template20 #preview-output {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    padding: 2rem;
    border-radius: 20px;
    max-width: 900px;
    margin: 1rem auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.template20 #preview-output h1,
.template20 #preview-output h2,
.template20 #preview-output h3 {
    color: #2c3e50;
}

.template20 #preview-output h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.2);
}

.template20 #preview-output h2 {
    font-size: 1.9rem;
    margin-top: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}

.template20 #preview-output h3 {
    font-size: 1.5rem;
    color: #3498db;
}

.template20 #preview-output p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.3rem;
}

.template20 #preview-output a {
    color: #3498db;
    border-bottom: 1px solid #3498db;
}

.template20 #preview-output a:hover {
    color: #2980b9;
    border-bottom: 1px solid #2980b9;
    background-color: rgba(52, 152, 219, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
}

.template20 #preview-output blockquote {
    background: rgba(255, 255, 255, 0.3);
    border-left: 5px solid #3498db;
    border-radius: 0 15px 15px 0;
    padding: 1.8rem;
    margin: 1.8rem 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(31, 38, 135, 0.1);
}

.template20 #preview-output code {
    background-color: rgba(236, 240, 241, 0.5);
    color: #e74c3c;
    border: 1px solid rgba(189, 195, 199, 0.3);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-family: 'Courier New', monospace;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.template20 #preview-output pre {
    background: rgba(44, 62, 80, 0.8);
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.template20 #preview-output pre code {
    background: none;
    color: #ecf0f1;
    border: none;
}

.template20 #preview-output ul,
.template20 #preview-output ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.template20 #preview-output ul li,
.template20 #preview-output ol li {
    margin-bottom: 0.5rem;
}

.template20 #preview-output table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.8rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.template20 #preview-output table th,
.template20 #preview-output table td {
    padding: 1.2rem;
    border: 1px solid rgba(189, 195, 199, 0.3);
    text-align: left;
}

.template20 #preview-output table th {
    background: rgba(52, 152, 219, 0.7);
    color: white;
    font-weight: bold;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.template20 #preview-output table tr:nth-child(even) {
    background-color: rgba(236, 240, 241, 0.3);
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .controls {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .editor-container {
        flex-direction: column;
    }
    
    .editor-panel {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .preview-panel {
        padding: 1rem !important;
    }
    
    #preview-output,
    .template2 #preview-output,
    .template4 #preview-output,
    .template5 #preview-output,
    .template6 #preview-output,
    .template7 #preview-output,
    .template8 #preview-output,
    .template10 #preview-output,
    .template11 #preview-output,
    .template12 #preview-output,
    .template13 #preview-output,
    .template14 #preview-output,
    .template15 #preview-output,
    .template16 #preview-output,
    .template17 #preview-output,
    .template18 #preview-output,
    .template19 #preview-output,
    .template20 #preview-output {
        padding: 1rem !important;
        margin: 0.5rem auto;
    }
    
    #preview-output h1 {
        font-size: 1.8rem;
    }
    
    #preview-output h2 {
        font-size: 1.5rem;
    }
    
    .template4 #preview-output,
    .template5 #preview-output,
    .template6 #preview-output,
    .template7 #preview-output,
    .template8 #preview-output,
    .template10 #preview-output,
    .template11 #preview-output,
    .template12 #preview-output,
    .template13 #preview-output,
    .template14 #preview-output,
    .template15 #preview-output,
    .template16 #preview-output,
    .template17 #preview-output,
    .template18 #preview-output,
    .template19 #preview-output,
    .template20 #preview-output {
        padding: 1.5rem !important;
    }
    
    .template4 #preview-output {
        padding: 2rem 1rem !important;
    }
    
    .template14 #preview-output {
        column-count: 1;
        column-gap: 0;
        column-rule: none;
    }
}