/* ===== 粉蓝梦境 · 页面样式（纯CSS）===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, 
        #fce4ec 0%, #f8bbd0 15%, #f48fb1 30%, 
        #e1bee7 45%, #ce93d8 55%, #b39ddb 65%, 
        #90caf9 80%, #64b5f6 100%);
    background-size: 300% 300%;
    animation: gradientFlow 8s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    position: relative;
    overflow-y: auto;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255,182,193,0.3), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(100,181,246,0.3), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(206,147,216,0.15), transparent 50%);
    animation: orbFloat 10s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientFlow {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes orbFloat {
    0% { transform: translate(0,0) scale(1); }
    50% { transform: translate(40px,-30px) scale(1.2); }
    100% { transform: translate(-30px,40px) scale(1.1); }
}

/* 主卡片 */
.blog-card {
    max-width: 1000px;
    width: 100%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 3rem;
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 40px 80px rgba(100,100,200,0.2);
    animation: cardFloat 5s ease-in-out infinite;
    margin: 1rem 0 2rem;
}

@keyframes cardFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 旋转边框 */
.blog-card::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 3rem;
    background: conic-gradient(from 0deg,
        #fce4ec, #f8bbd0, #f48fb1, #e1bee7,
        #ce93d8, #b39ddb, #90caf9, #64b5f6, #fce4ec);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderSpin 3s linear infinite;
    pointer-events: none;
    z-index: -1;
    padding: 4px;
}

@keyframes borderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.blog-card:hover::before {
    animation-duration: 1.2s;
}

/* 头部 */
.blog-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.15);
}

.blog-title {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #f06292, #e1bee7, #ce93d8, #90caf9, #64b5f6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textFlow 4s ease-in-out infinite;
    line-height: 1.1;
}

@keyframes textFlow {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.blog-sub {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(100,100,200,0.8);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.pulse-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #f06292, #64b5f6);
    border-radius: 50%;
    animation: dotPulse 0.8s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(100,150,255,0.4);
}

@keyframes dotPulse {
    0%,100% { transform: scale(0.5); opacity: 0.3; }
    50% { transform: scale(1.8); opacity: 1; }
}

.blog-date {
    font-size: 1rem;
    background: rgba(255,255,255,0.2);
    padding: 0.6rem 1.6rem;
    border-radius: 40px;
    border: 2px solid rgba(255,255,255,0.25);
    color: rgba(100,100,200,0.8);
    font-weight: 500;
    animation: datePulse 2.5s ease-in-out infinite;
}

@keyframes datePulse {
    0%,100% { border-color: rgba(255,255,255,0.25); transform: scale(1); }
    50% { border-color: rgba(100,150,255,0.5); transform: scale(1.04); }
}

/* 简介 */
.blog-intro {
    background: rgba(255,255,255,0.12);
    border-radius: 2rem;
    padding: 1.8rem 2.2rem;
    margin-bottom: 3rem;
    border-left: 6px solid;
    border-image: linear-gradient(180deg, #f06292, #ce93d8, #90caf9, #64b5f6) 1;
    animation: introGlow 3s ease-in-out infinite alternate;
    backdrop-filter: blur(4px);
}

@keyframes introGlow {
    0% { box-shadow: 0 0 30px rgba(240,98,146,0.12); }
    50% { box-shadow: 0 0 50px rgba(206,147,216,0.15); }
    100% { box-shadow: 0 0 30px rgba(100,181,246,0.12); }
}

.blog-intro p {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.8;
    color: #283593;
}

.blog-intro strong {
    color: #3949ab;
    font-weight: 700;
    background: linear-gradient(120deg, rgba(100,150,255,0.15), rgba(240,98,146,0.08));
    padding: 0.15rem 1rem;
    border-radius: 20px;
}

/* 文章网格 */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-item {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    border-radius: 2rem;
    padding: 2rem 1.8rem;
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(100,100,200,0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: cardSlide 0.6s ease-out backwards;
}

.post-item:nth-child(1) { animation-delay: 0.05s; }
.post-item:nth-child(2) { animation-delay: 0.15s; }
.post-item:nth-child(3) { animation-delay: 0.25s; }
.post-item:nth-child(4) { animation-delay: 0.35s; }

@keyframes cardSlide {
    0% { opacity: 0; transform: translateY(50px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.post-item:hover {
    transform: translateY(-16px) scale(1.04);
    background: rgba(255,255,255,0.18);
    border-color: rgba(100,150,255,0.3);
    box-shadow: 0 40px 80px rgba(100,100,200,0.15);
}

.post-category {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5c6bc0;
    background: rgba(100,150,255,0.1);
    padding: 0.25rem 1.2rem;
    border-radius: 30px;
    align-self: flex-start;
    margin-bottom: 1rem;
    border: 1.5px solid rgba(100,150,255,0.1);
    transition: all 0.3s;
}

.post-item:hover .post-category {
    background: rgba(100,150,255,0.2);
    transform: scale(1.08);
}

.post-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    color: #283593;
    transition: all 0.3s;
}

.post-item:hover .post-title {
    color: #1a237e;
    transform: translateX(8px);
}

.post-excerpt {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(40,53,147,0.6);
    flex: 1;
    margin-bottom: 1.2rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(40,53,147,0.35);
    border-top: 1.5px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

.read-more {
    font-weight: 600;
    color: #5c6bc0;
    padding: 0.2rem 1rem;
    border-radius: 40px;
    font-size: 0.75rem;
    background: rgba(100,150,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.post-item:hover .read-more {
    background: rgba(100,150,255,0.15);
    transform: translateX(10px) scale(1.08);
}

/* 底部 */
.blog-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    border-top: 2px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    color: rgba(40,53,147,0.5);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.8rem;
}

.social-links a {
    color: rgba(40,53,147,0.4);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
}

.social-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #f06292, #ce93d8, #90caf9, #64b5f6);
    transition: width 0.4s ease;
}

.social-links a:hover {
    color: #283593;
}

.social-links a:hover::after {
    width: 100%;
}

/* 爱心动画元素 */
.heart {
    position: fixed;
    pointer-events: none;
    font-size: 2.5rem;
    animation: heartRise 1.6s ease-out forwards;
    z-index: 99999;
    user-select: none;
    text-shadow: 0 0 30px rgba(255,255,255,0.4);
}

@keyframes heartRise {
    0% { opacity: 1; transform: translate(0,0) scale(0.3) rotate(0deg); }
    20% { transform: translate(var(--tx,60px), calc(var(--ty,-80px) * 0.2)) scale(1.2) rotate(10deg); opacity: 1; }
    100% { opacity: 0; transform: translate(var(--tx,100px), var(--ty,-300px)) scale(2.2) rotate(50deg); }
}

/* 点击提示 */
.click-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    background: rgba(100,150,255,0.12);
    padding: 0.6rem 2rem;
    border-radius: 40px;
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,0.15);
    animation: hintPulse 2s ease-in-out infinite;
    z-index: 100;
    pointer-events: none;
}

@keyframes hintPulse {
    0%,100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* 响应式 */
@media (max-width: 640px) {
    body { padding: 1rem; }
    .blog-card { padding: 1.8rem 1.2rem; border-radius: 2rem; }
    .blog-title { font-size: 2.2rem; }
    .post-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .blog-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .blog-intro { padding: 1.2rem 1.5rem; }
    .blog-intro p { font-size: 1rem; }
    .heart { font-size: 1.8rem; }
    .click-hint { font-size: 0.75rem; padding: 0.4rem 1.2rem; bottom: 1rem; }
    .blog-footer { flex-direction: column; align-items: flex-start; }
}
/* 爱心动画 - 正着向上飘，不旋转 */
.heart {
    position: fixed;
    pointer-events: none;
    font-size: 0.9rem;
    animation: heartRise 1.2s ease-out forwards;
    z-index: 99999;
    user-select: none;
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
}

@keyframes heartRise {
    0% { opacity: 1; transform: translate(0,0) scale(0.5); }
    30% { transform: translate(0, calc(var(--ty,-30px) * 0.3)) scale(1); opacity: 1; }
    100% { opacity: 0; transform: translate(0, var(--ty,-100px)) scale(1.2); }
}