/* 樱花粉毛玻璃主题 */
:root {
    --sakura-pink: #ff9aae;
    --sakura-light: #ffdfe9;
    --sakura-dark: #d45d79;
    --glass-bg: rgba(255, 230, 240, 0.7);
    --text-dark: #5a2e3b;
    --text-light: #fff;
    --shadow: 0 4px 20px rgba(214, 112, 147, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--sakura-light);
    background-image: radial-gradient(circle at 20% 30%, rgba(255,154,174,0.2) 0%, transparent 30%),
                      radial-gradient(circle at 80% 70%, rgba(255,154,174,0.2) 0%, transparent 30%);
    color: var(--text-dark);
    line-height: 1.8;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--sakura-dark);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:hover {
    color: var(--sakura-pink);
    text-shadow: 0 0 5px rgba(255,154,174,0.3);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 毛玻璃头部 */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(to right, var(--sakura-dark), var(--sakura-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    text-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    background: rgba(255,255,255,0.3);
}

nav ul li a:hover {
    background: var(--sakura-pink);
    color: var(--text-light);
    box-shadow: 0 2px 10px rgba(212,93,121,0.3);
}

/* 毛玻璃内容区域 */
.main-content {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.3);
}

.section-title {
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    position: relative;
    color: var(--sakura-dark);
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--sakura-pink), transparent);
}

/* 花瓣飘落效果 */
.petal {
    position: fixed;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff9aae"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg>') no-repeat;
    z-index: -1;
    pointer-events: none;
    animation: falling linear infinite;
}

@keyframes falling {
    0% {
        transform: translate(0, -10vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(var(--random-x) * 10vw), 100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 文章卡片 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255,255,255,0.4);
}

.article-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(212,93,121,0.2);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.4);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-dark);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--sakura-dark);
    margin-top: 15px;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--sakura-pink);
    color: white;
    border-radius: 50px;
    font-size: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(212,93,121,0.3);
}

/* 文章详情 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--sakura-dark);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--sakura-dark);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.4);
}

.article-content {
    line-height: 1.9;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 20px;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 50px;
    background-color: rgba(255,255,255,0.5);
    border: 1px solid var(--sakura-pink);
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--sakura-pink);
    color: white;
}

/* 友情链接 */
.friend-links {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.3);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--sakura-dark);
    font-size: 22px;
    text-align: center;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.friend-links-container a {
    padding: 8px 20px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50px;
    font-size: 14px;
    border: 1px solid var(--sakura-pink);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--sakura-pink);
    color: white;
    transform: translateY(-3px);
}

/* 页脚 */
footer {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.copyright {
    font-size: 14px;
    color: var(--sakura-dark);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
    }
}