/* 小茜的家 - 温暖可爱风格 */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}

body{
    font-family:"Noto Sans SC",-apple-system,BlinkMacSystemFont,sans-serif;
    background:#fef9f3;
    min-height:100vh;
    color:#4a4a4a;
    line-height:1.8;
    position:relative
}

/* 温暖的背景 */
body::before{
    content:"";
    position:fixed;
    top:0;left:0;right:0;bottom:0;
    background:
        radial-gradient(ellipse at 20% 20%,rgba(255,182,193,0.15) 0%,transparent 50%),
        radial-gradient(ellipse at 80% 80%,rgba(221,160,221,0.12) 0%,transparent 50%),
        radial-gradient(ellipse at 50% 50%,rgba(255,218,185,0.1) 0%,transparent 60%);
    pointer-events:none;
    z-index:0
}

.container{max-width:900px;margin:0 auto;padding:0 20px;position:relative;z-index:1}

/* 顶部横幅 */
.banner{
    background:linear-gradient(135deg,#FFB6C1 0%,#DDA0DD 50%,#E6E6FA 100%);
    padding:8px 0;
    text-align:center;
    position:relative;
    overflow:hidden
}
.banner::before{
    content:"";
    position:absolute;
    top:0;left:-100%;right:-100%;
    height:100%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,0.3),transparent);
    animation:shimmer 3s infinite
}
@keyframes shimmer{
    0%{transform:translateX(-100%)}
    100%{transform:translateX(100%)}
}
.banner-text{
    color:#fff;
    font-size:14px;
    font-weight:500;
    text-shadow:0 1px 2px rgba(0,0,0,0.1);
    letter-spacing:1px
}

/* 导航 */
.site-header{
    background:rgba(255,255,255,0.95);
    backdrop-filter:blur(10px);
    padding:16px 0;
    border-bottom:2px solid rgba(255,182,193,0.3);
    position:sticky;
    top:0;
    z-index:100
}
.site-header .container{
    display:flex;
    justify-content:space-between;
    align-items:center
}
.logo{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:#4a4a4a
}
.logo-icon{
    font-size:28px;
    animation:wiggle 2s ease-in-out infinite;
    display:inline-block
}
@keyframes wiggle{
    0%,100%{transform:rotate(0deg)}
    25%{transform:rotate(10deg)}
    75%{transform:rotate(-10deg)}
}
.logo-text{
    font-size:20px;
    font-weight:700;
    background:linear-gradient(135deg,#FFB6C1,#DDA0DD);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent
}
.site-nav{display:flex;gap:6px}
.site-nav a{
    color:#888;
    text-decoration:none;
    font-weight:500;
    padding:8px 16px;
    border-radius:20px;
    transition:all 0.3s ease;
    font-size:14px
}
.site-nav a:hover{
    background:linear-gradient(135deg,rgba(255,182,193,0.2),rgba(221,160,221,0.2));
    color:#DDA0DD
}

/* 英雄区 - 自我介绍 */
.hero{
    padding:40px 0 30px;
    text-align:center
}
.hero-avatar{
    width:100px;
    height:100px;
    margin:0 auto 16px;
    position:relative
}
.hero-avatar img{
    width:100%;
    height:100%;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #fff;
    box-shadow:0 6px 20px rgba(255,182,193,0.35);
    transition:transform 0.3s ease
}
.hero-avatar:hover img{
    transform:scale(1.05)
}
.hero-avatar::after{
    content:"✨";
    position:absolute;
    top:-3px;
    right:-3px;
    font-size:20px;
    animation:sparkle 1.5s ease-in-out infinite
}
@keyframes sparkle{
    0%,100%{opacity:1;transform:scale(1)}
    50%{opacity:0.5;transform:scale(0.8)}
}

.hero-title{
    font-size:28px;
    margin-bottom:8px;
    color:#4a4a4a
}
.hero-title span{
    background:linear-gradient(135deg,#FFB6C1,#DDA0DD);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    font-weight:700
}

.hero-subtitle{
    font-size:15px;
    color:#888;
    margin-bottom:16px
}

.hero-tags{
    display:flex;
    justify-content:center;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:16px
}
.tag{
    background:linear-gradient(135deg,rgba(255,182,193,0.15),rgba(221,160,221,0.15));
    padding:5px 12px;
    border-radius:15px;
    font-size:12px;
    color:#999;
    border:1px solid rgba(255,182,193,0.3)
}

.hero-intro{
    max-width:480px;
    margin:0 auto;
    padding:16px 20px;
    background:rgba(255,255,255,0.8);
    border-radius:16px;
    border:1px solid rgba(255,182,193,0.2);
    font-size:14px;
    color:#666;
    line-height:1.9
}

/* 文章区 */
.posts-section{
    padding:30px 0 50px
}
.section-header{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;
    margin-bottom:25px
}
.section-title{
    font-size:20px;
    color:#4a4a4a;
    position:relative
}
.section-title::before,.section-title::after{
    content:"🌸";
    font-size:14px
}

.posts-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:18px
}

.post-card{
    background:#fff;
    border-radius:16px;
    padding:20px;
    border:1px solid rgba(255,182,193,0.2);
    box-shadow:0 4px 15px rgba(255,182,193,0.08);
    transition:all 0.3s ease;
    position:relative;
    overflow:hidden
}
.post-card::before{
    content:"";
    position:absolute;
    top:0;left:0;right:0;
    height:3px;
    background:linear-gradient(90deg,#FFB6C1,#DDA0DD);
    opacity:0;
    transition:opacity 0.3s ease
}
.post-card:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 25px rgba(255,182,193,0.15);
    border-color:rgba(255,182,193,0.4)
}
.post-card:hover::before{
    opacity:1
}

.post-date{
    font-size:12px;
    color:#bbb;
    margin-bottom:6px
}
.post-title{
    font-size:16px;
    margin-bottom:8px;
    line-height:1.5
}
.post-title a{
    text-decoration:none;
    color:#4a4a4a;
    transition:color 0.3s ease
}
.post-title a:hover{
    color:#DDA0DD
}
.post-excerpt{
    font-size:13px;
    color:#888;
    line-height:1.7;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
    margin-bottom:10px
}
.read-more{
    font-size:12px;
    color:#FFB6C1;
    text-decoration:none;
    font-weight:500;
    transition:color 0.3s ease
}
.read-more:hover{
    color:#DDA0DD
}

/* 分页 */
.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    margin-top:35px
}
.page-btn{
    padding:10px 22px;
    background:#fff;
    border:2px solid rgba(255,182,193,0.3);
    border-radius:25px;
    color:#888;
    text-decoration:none;
    font-weight:500;
    font-size:14px;
    transition:all 0.3s ease
}
.page-btn:hover{
    background:linear-gradient(135deg,#FFB6C1,#DDA0DD);
    color:#fff;
    border-color:transparent
}
.page-info{
    font-size:13px;
    color:#bbb
}

/* 留言模块 */
.guestbook-section{
    padding:40px 0 50px;
    border-top:1px solid rgba(255,182,193,0.15)
}
.guestbook-title{
    text-align:center;
    font-size:20px;
    color:#4a4a4a;
    margin-bottom:20px
}
.guestbook-title::before,.guestbook-title::after{
    content:"💬";
    font-size:14px;
    margin:0 10px
}

/* 文章页 */
.article{
    padding:40px 0 50px
}
.article-header{
    text-align:center;
    margin-bottom:35px
}
.article-title{
    font-size:26px;
    color:#4a4a4a;
    margin-bottom:12px;
    line-height:1.4
}
.article-meta{
    font-size:14px;
    color:#bbb
}
.article-content{
    background:#fff;
    border-radius:20px;
    padding:35px;
    border:1px solid rgba(255,182,193,0.15);
    box-shadow:0 4px 20px rgba(255,182,193,0.06)
}
.article-content h2{
    font-size:18px;
    margin:25px 0 12px;
    color:#4a4a4a;
    padding-left:12px;
    border-left:3px solid #FFB6C1
}
.article-content h3{
    font-size:16px;
    margin:20px 0 10px;
    color:#DDA0DD
}
.article-content p{
    margin-bottom:14px;
    color:#555
}
.article-content img{
    max-width:100%;
    border-radius:12px;
    margin:18px 0
}
.article-content blockquote{
    border-left:3px solid #FFB6C1;
    background:rgba(255,182,193,0.08);
    padding:14px 18px;
    margin:18px 0;
    border-radius:0 12px 12px 0;
    font-style:italic;
    color:#777
}
.article-content code{
    background:rgba(221,160,221,0.1);
    padding:2px 6px;
    border-radius:4px;
    font-size:13px;
    color:#DDA0DD
}
.article-content pre{
    background:#2d2d2d;
    color:#f8f8f2;
    padding:18px;
    border-radius:12px;
    overflow-x:auto;
    margin:18px 0;
    font-size:13px
}
.article-content pre code{
    background:none;
    padding:0;
    color:inherit
}
.article-content a{
    color:#DDA0DD;
    text-decoration:none
}
.article-content a:hover{
    color:#FFB6C1
}
.article-footer{
    text-align:center;
    margin-top:35px
}
.back-home{
    display:inline-block;
    padding:10px 24px;
    background:linear-gradient(135deg,#FFB6C1,#DDA0DD);
    color:#fff;
    text-decoration:none;
    border-radius:25px;
    font-weight:500;
    font-size:14px;
    transition:all 0.3s ease;
    box-shadow:0 4px 12px rgba(255,182,193,0.25)
}
.back-home:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 18px rgba(255,182,193,0.35)
}

/* 评论模块 */
.comment-section{
    margin-top:40px;
    padding-top:30px;
    border-top:1px solid rgba(255,182,193,0.15)
}
.comment-title{
    font-size:18px;
    color:#4a4a4a;
    margin-bottom:20px;
    text-align:center
}
.comment-title::before{
    content:"💭 ";
}

/* 页脚 */
.site-footer{
    text-align:center;
    padding:25px 20px;
    background:linear-gradient(180deg,transparent,rgba(255,182,193,0.08));
    border-top:1px solid rgba(255,182,193,0.15)
}
.site-footer p{
    font-size:13px;
    color:#bbb;
    margin-bottom:5px
}
.footer-heart{
    color:#FFB6C1;
    animation:heartbeat 1s ease-in-out infinite;
    display:inline-block
}
@keyframes heartbeat{
    0%,100%{transform:scale(1)}
    50%{transform:scale(1.15)}
}

/* 响应式 */
@media(max-width:768px){
    .site-header .container{
        flex-direction:column;
        gap:12px
    }
    .site-nav{
        flex-wrap:wrap;
        justify-content:center
    }
    .hero{
        padding:30px 0
    }
    .hero-title{
        font-size:24px
    }
    .hero-avatar{
        width:80px;
        height:80px
    }
    .posts-grid{
        grid-template-columns:1fr
    }
    .article-content{
        padding:22px
    }
    .article-title{
        font-size:20px
    }
}