<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>博客园标题美化方案</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
            color: #333;
            padding: 40px 20px;
            min-height: 100vh;
        }
        
        .container {
            max-width: 1000px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
            padding: 40px;
            position: relative;
            overflow: hidden;
        }
        
        .container::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 10px;
            background: linear-gradient(90deg, #3498db, #2ecc71, #e74c3c, #f39c12, #9b59b6, #1abc9c);
        }
        
        header {
            text-align: center;
            margin-bottom: 50px;
            padding: 30px 0;
        }
        
        h1 {
            font-size: 3.2rem;
            background: linear-gradient(135deg, #3498db, #2c3e50);
            display: inline-block;
            padding: 15px 40px;
            border-radius: 15px;
            color: white;
            box-shadow: 0 10px 20px rgba(52, 152, 219, 0.4);
            margin: 20px 0;
        }
        
        .subtitle {
            font-size: 1.5rem;
            color: #7f8c8d;
            max-width: 800px;
            margin: 0 auto;
            line-height: 1.6;
        }
        
        .content {
            background: white;
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
        }
        
        .section {
            margin-bottom: 50px;
        }
        
        .section-title {
            font-size: 1.8rem;
            color: #2c3e50;
            padding-bottom: 15px;
            border-bottom: 3px dashed #3498db;
            margin-bottom: 30px;
        }
        
        /* 博客园标题美化样式 */
        #cnblogs_post_body h1 {
            background: linear-gradient(135deg, #3498db, #2c3e50);
            color: white;
            padding: 18px 30px;
            border-radius: 12px;
            font-size: 2.2rem;
            margin: 40px 0 25px;
            box-shadow: 0 8px 15px rgba(52, 152, 219, 0.3);
            border-left: 8px solid #e74c3c;
        }
        
        #cnblogs_post_body h2 {
            background: linear-gradient(to right, #2ecc71, #1abc9c);
            color: #2c3e50;
            padding: 16px 25px;
            border-radius: 10px;
            font-size: 1.9rem;
            margin: 35px 0 20px;
            border-left: 6px solid #f39c12;
        }
        
        #cnblogs_post_body h3 {
            background: linear-gradient(135deg, #f39c12, #e67e22);
            color: white;
            padding: 14px 22px;
            border-radius: 8px;
            font-size: 1.7rem;
            margin: 30px 0 18px;
            border-left: 5px solid #3498db;
        }
        
        #cnblogs_post_body h4 {
            background: linear-gradient(to right, #9b59b6, #8e44ad);
            color: #ecf0f1;
            padding: 12px 20px;
            border-radius: 8px;
            font-size: 1.5rem;
            margin: 25px 0 15px;
            border-left: 4px solid #2ecc71;
        }
        
        #cnblogs_post_body h5 {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: #f9f9f9;
            padding: 10px 18px;
            border-radius: 6px;
            font-size: 1.3rem;
            margin: 20px 0 12px;
            border-left: 3px solid #f1c40f;
        }
        
        #cnblogs_post_body h6 {
            background: linear-gradient(to right, #95a5a6, #7f8c8d);
            color: white;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 1.1rem;
            margin: 18px 0 10px;
            border-left: 2px solid #34495e;
        }
        
        .code-block {
            background: #2d2d2d;
            color: #f8f8f2;
            padding: 25px;
            border-radius: 10px;
            font-family: 'Fira Code', monospace;
            margin: 30px 0;
            overflow-x: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }
        
        .instructions {
            background: #e8f4fc;
            border-left: 5px solid #3498db;
            padding: 25px;
            border-radius: 0 10px 10px 0;
            margin: 40px 0;
        }
        
        .instructions h3 {
            color: #2c3e50;
            margin-top: 0;
            margin-bottom: 15px;
        }
        
        .instructions ol {
            padding-left: 25px;
        }
        
        .instructions li {
            margin: 12px 0;
            line-height: 1.6;
        }
        
        .color-palette {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin: 30px 0;
            justify-content: center;
        }
        
        .color-item {
            width: 120px;
            height: 120px;
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            text-align: center;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        
        .footer {
            text-align: center;
            margin-top: 50px;
            padding-top: 30px;
            border-top: 1px solid #ecf0f1;
            color: #7f8c8d;
        }
        
        @media (max-width: 768px) {
            .container {
                padding: 30px 20px;
            }
            
            h1 {
                font-size: 2.5rem;
                padding: 12px 25px;
            }
            
            .content {
                padding: 25px 15px;
            }
            
            #cnblogs_post_body h1 { font-size: 1.9rem; padding: 15px 20px; }
            #cnblogs_post_body h2 { font-size: 1.7rem; padding: 14px 18px; }
            #cnblogs_post_body h3 { font-size: 1.5rem; padding: 12px 16px; }
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <h1>博客园标题美化方案</h1>
            <p class="subtitle">为您的博客园文章标题添加多彩背景，增强视觉层次感，提升阅读体验</p>
        </header>
        
        <div class="content">
            <div class="section">
                <h2 class="section-title">效果预览</h2>
                
                <div id="cnblogs_post_body">
                    <h1>这是一级标题 (H1) - 深蓝色渐变</h1>
                    <p>这里是段落文本，展示标题与其他内容的关系。标题具有醒目的背景色，但其他内容保持不变。</p>
                    
                    <h2>这是二级标题 (H2) - 绿色渐变</h2>
                    <p>每个标题级别都有独特的配色方案，便于区分不同层级的标题。</p>
                    
                    <h3>这是三级标题 (H3) - 橙色渐变</h3>
                    <p>标题背景采用现代渐变设计，左侧有彩色边框作为点缀。</p>
                    
                    <h4>这是四级标题 (H4) - 紫色渐变</h4>
                    <p>所有标题都保留了原有的字体大小、边距等属性，仅添加了背景效果。</p>
                    
                    <h5>这是五级标题 (H5) - 红色渐变</h5>
                    <p>这个方案专注于标题美化，不会改变其他内容的样式。</p>
                    
                    <h6>这是六级标题 (H6) - 灰色渐变</h6>
                    <p>通过不同颜色的背景，文章结构更加清晰可见。</p>
                </div>
            </div>
            
            <div class="section">
                <h2 class="section-title">使用说明</h2>
                
                <div class="instructions">
                    <h3>在博客园中应用此样式</h3>
                    <ol>
                        <li>登录您的博客园账号</li>
                        <li>进入「设置」→「博客设置」</li>
                        <li>找到「页面定制CSS代码」区域</li>
                        <li>将以下CSS代码复制粘贴到输入框中</li>
                        <li>点击「保存」按钮应用更改</li>
                        <li>刷新您的博客页面查看效果</li>
                    </ol>
                </div>
                
                <div class="code-block">
/* 博客园标题美化样式 */
#cnblogs_post_body h1 {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 2.2rem;
    margin: 40px 0 25px;
    box-shadow: 0 8px 15px rgba(52, 152, 219, 0.3);
    border-left: 8px solid #e74c3c;
}

#cnblogs_post_body h2 {
    background: linear-gradient(to right, #2ecc71, #1abc9c);
    color: #2c3e50;
    padding: 16px 25px;
    border-radius: 10px;
    font-size: 1.9rem;
    margin: 35px 0 20px;
    border-left: 6px solid #f39c12;
}

#cnblogs_post_body h3 {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 1.7rem;
    margin: 30px 0 18px;
    border-left: 5px solid #3498db;
}

#cnblogs_post_body h4 {
    background: linear-gradient(to right, #9b59b6, #8e44ad);
    color: #ecf0f1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.5rem;
    margin: 25px 0 15px;
    border-left: 4px solid #2ecc71;
}

#cnblogs_post_body h5 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #f9f9f9;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 1.3rem;
    margin: 20px 0 12px;
    border-left: 3px solid #f1c40f;
}

#cnblogs_post_body h6 {
    background: linear-gradient(to right, #95a5a6, #7f8c8d);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 1.1rem;
    margin: 18px 0 10px;
    border-left: 2px solid #34495e;
}
                </div>
            </div>
            
            <div class="section">
                <h2 class="section-title">配色方案</h2>
                
                <div class="color-palette">
                    <div class="color-item" style="background: linear-gradient(135deg, #3498db, #2c3e50);">
                        <span>H1</span>
                        <span>深蓝渐变</span>
                    </div>
                    <div class="color-item" style="background: linear-gradient(to right, #2ecc71, #1abc9c);">
                        <span>H2</span>
                        <span>绿色渐变</span>
                    </div>
                    <div class="color-item" style="background: linear-gradient(135deg, #f39c12, #e67e22);">
                        <span>H3</span>
                        <span>橙色渐变</span>
                    </div>
                    <div class="color-item" style="background: linear-gradient(to right, #9b59b6, #8e44ad);">
                        <span>H4</span>
                        <span>紫色渐变</span>
                    </div>
                    <div class="color-item" style="background: linear-gradient(135deg, #e74c3c, #c0392b);">
                        <span>H5</span>
                        <span>红色渐变</span>
                    </div>
                    <div class="color-item" style="background: linear-gradient(to right, #95a5a6, #7f8c8d);">
                        <span>H6</span>
                        <span>灰色渐变</span>
                    </div>
                </div>
            </div>
        </div>
        
        <div class="footer">
            <p>© 2023 博客园标题美化方案 | 专注于提升博客阅读体验</p>
        </div>
    </div>
</body>
</html>