/*引入国风思源宋体 + Playball花体英文，匹配jasperHaven的艺术字体效果*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;700&family=Playball&display=swap');

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>可爱风博客园主题演示</title>
    <!-- 引入 TailwindCSS 用于快速布局 -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- 引入 Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <!-- 引入 Google Fonts 可爱字体 -->
    <link href="https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&family=Nunito:wght@400;700&display=swap" rel="stylesheet">
    
    <style>
        /* 
         * 博客园页面定制 CSS 核心代码 
         * 请将此部分复制到博客园后台 -> 设置 -> 页面定制CSS代码
         */

        :root {
            --primary-color: #ff9a9e;
            --secondary-color: #fecfef;
            --accent-color: #a18cd1;
            --text-color: #555;
            --bg-color: #fdfbf7;
            --card-bg: rgba(255, 255, 255, 0.9);
            --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
        }

        body {
            font-family: 'Nunito', 'ZCOOL KuaiLe', sans-serif;
            background: linear-gradient(135deg, #fdfbf7 0%, #fff1f2 100%);
            color: var(--text-color);
            margin: 0;
            padding: 0;
            min-height: 100vh;
            background-attachment: fixed;
        }

        /* 隐藏博客园默认的一些杂乱元素，根据实际皮肤调整 */
        #home {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        /* 顶部导航栏美化 */
        #navigator {
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border-radius: 50px;
            box-shadow: var(--shadow);
            margin: 20px auto;
            padding: 10px 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            position: sticky;
            top: 20px;
            z-index: 100;
            border: 2px solid #fff;
        }

        #navList li {
            margin: 0 15px;
        }

        #navList a {
            color: var(--text-color);
            font-weight: 700;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            text-decoration: none;
            padding: 8px 16px;
            border-radius: 20px;
        }

        #navList a:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 154, 158, 0.4);
        }

        /* 博客标题区域 */
        #blogTitle {
            text-align: center;
            margin-bottom: 40px;
            position: relative;
        }

        #blogTitle h1 a {
            font-family: 'ZCOOL KuaiLe', cursive;
            font-size: 3rem;
            background: linear-gradient(to right, #ff9a9e, #a18cd1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-decoration: none;
            filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.1));
        }

        #blogTitle h2 {
            font-size: 1.2rem;
            color: #888;
            margin-top: 10px;
        }

        /* 文章列表卡片化 */
        .day {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: var(--shadow);
            border: 1px solid rgba(255, 255, 255, 0.5);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .day:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
        }

        /* 装饰性角标 */
        .day::before {
            content: '';
            position: absolute;
            top: -50px;
            right: -50px;
            width: 100px;
            height: 100px;
            background: var(--secondary-color);
            border-radius: 50%;
            opacity: 0.5;
            z-index: 0;
        }

        .postTitle {
            font-size: 1.5rem;
            margin-bottom: 15px;
            position: relative;
            z-index: 1;
        }

        .postTitle a {
            color: #444;
            text-decoration: none;
            transition: color 0.3s;
        }

        .postTitle a:hover {
            color: var(--primary-color);
        }

        .postTitle a::after {
            content: '🌸';
            margin-left: 8px;
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 1.2rem;
        }

        .postTitle a:hover::after {
            opacity: 1;
        }

        .postCon {
            color: #666;
            line-height: 1.8;
            position: relative;
            z-index: 1;
        }

        /* 侧边栏美化 */
        #sideBar {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 20px;
            box-shadow: var(--shadow);
        }

        .catListTitle {
            font-family: 'ZCOOL KuaiLe', cursive;
            font-size: 1.3rem;
            color: var(--accent-color);
            border-bottom: 2px dashed var(--secondary-color);
            padding-bottom: 10px;
            margin-bottom: 15px;
        }

        /* 自定义按钮 */
        .btn-cute {
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 25px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
        }

        .btn-cute:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(255, 154, 158, 0.5);
        }

        /* 鼠标点击特效容器 */
        .click-effect {
            position: fixed;
            pointer-events: none;
            animation: floatUp 1s ease-out forwards;
            font-size: 20px;
            z-index: 9999;
        }

        @keyframes floatUp {
            0% { transform: translateY(0) scale(1); opacity: 1; }
            100% { transform: translateY(-50px) scale(1.5); opacity: 0; }
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            #navigator {
                flex-wrap: wrap;
                border-radius: 20px;
            }
            #blogTitle h1 a {
                font-size: 2rem;
            }
        }
    </style>
</head>
<body>

  <!-- 模拟博客园结构 -->
    <div id="home">
        
        <!-- 页首 Html 代码区域 -->
        <header id="header">
            <div id="blogTitle">
                <h1><a href="#">我的可爱小站 🐱</a></h1>
                <h2>记录生活，分享知识，保持可爱</h2>
            </div>
            
            <nav id="navigator">
                <ul id="navList">
                    <li><a href="#"><i class="fas fa-home"></i> 首页</a></li>
                    <li><a href="#"><i class="fas fa-pencil-alt"></i> 随笔</a></li>
                    <li><a href="#"><i class="fas fa-images"></i> 相册</a></li>
                    <li><a href="#"><i class="fas fa-link"></i> 友链</a></li>
                    <li><a href="#"><i class="fas fa-envelope"></i> 留言</a></li>
                </ul>
            </nav>
        </header>

        <div id="main">
            <!-- 主体内容区 -->
            <div id="mainContent">
                <div class="forFlow">
                    
                    <!-- 文章卡片 1 -->
                    <div class="day">
                        <div class="postTitle">
                            <a href="#">如何制作一个可爱的博客主题？</a>
                        </div>
                        <div class="postCon">
                            <p>今天我们来聊聊如何使用 CSS3 和简单的 JavaScript 来美化你的博客园。通过柔和的色彩搭配和圆角设计，可以让页面看起来更加温馨...</p>
                        </div>
                        <div class="clear"></div>
                        <div class="postDesc">
                            posted @ 2026-06-28 10:00 <span class="btn-cute" style="padding: 2px 10px; font-size: 0.8rem;">阅读全文</span>
                        </div>
                    </div>

                    <!-- 文章卡片 2 -->
                    <div class="day">
                        <div class="postTitle">
                            <a href="#">CSS3 动画入门指南</a>
                        </div>
                        <div class="postCon">
                            <p>CSS3 提供了强大的动画功能，无需 JavaScript 也能实现许多有趣的交互效果。比如悬停放大、渐变背景流动等...</p>
                        </div>
                        <div class="clear"></div>
                        <div class="postDesc">
                            posted @ 2026-06-27 15:30 <span class="btn-cute" style="padding: 2px 10px; font-size: 0.8rem;">阅读全文</span>
                        </div>
                    </div>

                </div>
            </div>

            <!-- 侧边栏 -->
            <div id="sideBar">
                <div class="sidebar-block">
                    <h3 class="catListTitle"><i class="fas fa-user-astronaut"></i> 关于我</h3>
                    <div style="text-align: center;">
                        <img src="https://picsum.photos/150/150?random=1" alt="博主头像" style="border-radius: 50%; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1);">
                        <p style="margin-top: 10px; color: #666;">一只热爱编程的喵星人 🐾</p>
                    </div>
                </div>
                
                <div class="sidebar-block" style="margin-top: 30px;">
                    <h3 class="catListTitle"><i class="fas fa-tags"></i> 标签云</h3>
                    <div style="display: flex; flex-wrap: wrap; gap: 10px;">
                        <span class="btn-cute" style="font-size: 0.8rem; padding: 5px 12px;">CSS3</span>
                        <span class="btn-cute" style="font-size: 0.8rem; padding: 5px 12px;">JavaScript</span>
                        <span class="btn-cute" style="font-size: 0.8rem; padding: 5px 12px;">生活</span>
                        <span class="btn-cute" style="font-size: 0.8rem; padding: 5px 12px;">教程</span>
                    </div>
                </div>
            </div>
        </div>

        <!-- 页脚 Html 代码区域 -->
        <footer id="footer" style="text-align: center; margin-top: 50px; padding: 20px; color: #888;">
            <p>Copyright © 2026 我的可爱小站</p>
            <p>Theme by Cute Blog Design</p>
        </footer>

    </div>

    <script>
        /**
         * 博客园页面交互 JS 代码
         * 请将此部分复制到博客园后台 -> 设置 -> 页脚Html代码 或 侧边栏公告（需申请JS权限）
         */
        
        document.addEventListener('DOMContentLoaded', function() {
            
            // 1. 鼠标点击爱心/文字特效
            const clickTexts = ["❤️", "✨", "🌸", "加油!", "可爱!", "⭐"];
            
            document.addEventListener('click', function(e) {
                // 创建元素
                const span = document.createElement('span');
                span.className = 'click-effect';
                
                // 随机选择文字或表情
                const text = clickTexts[Math.floor(Math.random() * clickTexts.length)];
                span.innerText = text;
                
                // 设置位置
                span.style.left = e.clientX + 'px';
                span.style.top = e.clientY + 'px';
                
                // 随机颜色
                const colors = ['#ff9a9e', '#a18cd1', '#fad0c4', '#ffecd2'];
                span.style.color = colors[Math.floor(Math.random() * colors.length)];
                
                document.body.appendChild(span);
                
                // 动画结束后移除元素
                setTimeout(() => {
                    span.remove();
                }, 1000);
            });

            // 2. 侧边栏头像悬停旋转效果
            const avatar = document.querySelector('#sideBar img');
            if (avatar) {
                avatar.addEventListener('mouseenter', function() {
                    this.style.transform = 'rotate(360deg)';
                    this.style.transition = 'transform 0.6s ease';
                });
                avatar.addEventListener('mouseleave', function() {
                    this.style.transform = 'rotate(0deg)';
                });
            }

            // 3. 导航栏滚动阴影效果
            window.addEventListener('scroll', function() {
                const nav = document.getElementById('navigator');
                if (window.scrollY > 50) {
                    nav.style.boxShadow = '0 8px 32px 0 rgba(31, 38, 135, 0.2)';
                } else {
                    nav.style.boxShadow = '0 8px 32px 0 rgba(31, 38, 135, 0.1)';
                }
            });
        });
    </script>
</body>
</html>

