* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
    line-height: 1.8;
    color: #333;
    background: #eef2ff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(123, 104, 238, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 191, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: bgShift 15s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    padding: 50px 0 30px;
    text-align: center;
    border-bottom: 1px solid rgba(123, 104, 238, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.site-title {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #6c5ce7, #0984e3, #6c5ce7);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    margin-bottom: 8px;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.site-desc {
    color: #777;
    font-size: 15px;
    margin-bottom: 24px;
}

.site-nav a {
    color: #666;
    text-decoration: none;
    margin: 0 16px;
    font-size: 15px;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #6c5ce7;
    border-bottom-color: #6c5ce7;
}

/* Posts */
main {
    padding: 40px 0;
}

.post-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(123, 104, 238, 0.08);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 104, 238, 0.06), transparent);
    transition: left 0.6s ease;
}

.post-card:hover::before {
    left: 100%;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(123, 104, 238, 0.25);
    box-shadow: 
        0 12px 40px rgba(108, 92, 231, 0.12),
        0 0 0 1px rgba(123, 104, 238, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.post-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.post-title a {
    text-decoration: none;
    background: linear-gradient(135deg, #6c5ce7, #0984e3, #00b894, #fdcb6e, #e17055, #6c5ce7);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: colorShift 6s linear infinite;
}

@keyframes colorShift {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

.post-date {
    display: inline-block;
    color: #6c5ce7;
    font-size: 13px;
    margin-bottom: 12px;
    padding: 2px 10px;
    background: rgba(108, 92, 231, 0.08);
    border-radius: 20px;
}

.post-excerpt {
    color: #636e72;
    font-size: 15px;
    margin-bottom: 16px;
}

.read-more {
    color: #6c5ce7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.read-more:hover {
    color: #0984e3;
    letter-spacing: 1px;
}

/* Article page */
.article-content {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(123, 104, 238, 0.08);
    border-radius: 16px;
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.article-content h1 {
    font-size: 26px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #6c5ce7, #0984e3, #00b894, #fdcb6e, #e17055, #6c5ce7);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: colorShift 6s linear infinite;
}

.article-content time {
    display: inline-block;
    color: #6c5ce7;
    font-size: 13px;
    margin-bottom: 24px;
    padding: 2px 10px;
    background: rgba(108, 92, 231, 0.08);
    border-radius: 20px;
}

.article-content p {
    margin-bottom: 16px;
    color: #555;
    font-size: 15px;
}

.article-content h2 {
    font-size: 18px;
    margin: 32px 0 12px;
    color: #2d3436;
    padding-left: 12px;
    border-left: 3px solid #6c5ce7;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #6c5ce7;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.back-link:hover {
    color: #0984e3;
    transform: translateX(-4px);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 13px;
    border-top: 1px solid rgba(123, 104, 238, 0.1);
}

.site-footer a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: #6c5ce7;
}

/* Staggered card animation */
.post-card:nth-child(1) { animation: fadeInUp 0.6s ease 0.1s both; }
.post-card:nth-child(2) { animation: fadeInUp 0.6s ease 0.25s both; }
.post-card:nth-child(3) { animation: fadeInUp 0.6s ease 0.4s both; }
.post-card:nth-child(4) { animation: fadeInUp 0.6s ease 0.55s both; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #eef2ff; }
::-webkit-scrollbar-thumb { background: rgba(108, 92, 231, 0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(108, 92, 231, 0.4); }
