/* 羽翼风格全局样式 */
:root {
    --feather-light: #f8f9fa;
    --feather-dark: #343a40;
    --primary-color: #a78bfa;
    --secondary-color: #c4b5fd;
    --accent-color: #8b5cf6;
    --text-color: #495057;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --feather-bg: linear-gradient(135deg, #f5f3ff 0%, #e9d8fd 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
}

body {
    background: var(--feather-bg);
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%238b5cf6" fill-opacity="0.03" d="M30,20 Q50,10 70,20 T90,40 Q80,50 90,60 T70,80 Q50,90 30,80 T10,60 Q20,50 10,40 T30,20 Z"/></svg>');
    background-size: 200px;
    opacity: 0.3;
    z-index: -1;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--primary-color);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 羽翼风格头部 */
header {
    background-color: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    position: relative;
    padding-left: 40px;
}

.logo::before {
    content: "🪶";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 0;
    font-weight: 500;
    color: var(--text-color);
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* 主要内容区域 - 羽毛卡片 */
.main-content {
    background-color: rgba(255,255,255,0.85);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 0;
}

.section-title {
    font-size: 24px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
    color: var(--accent-color);
    z-index: 1;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    border-radius: 3px;
}

/* 羽毛风格文章列表 */
.feather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.feather-card {
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
}

.feather-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.card-feather {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    opacity: 0.1;
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.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-color);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-color);
    margin-top: 15px;
    opacity: 0.8;
}

/* 分类标签 - 羽毛形状 */
.feather-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
    position: relative;
}

.feather-tag::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid var(--secondary-color);
}

/* 文章详情页 - 羽毛风格 */
.feather-article {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.article-title::before, .article-title::after {
    content: "🪶";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.2;
    font-size: 24px;
}

.article-title::before {
    left: -40px;
}

.article-title::after {
    right: -40px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-size: 14px;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.8);
}

.article-content {
    line-height: 1.8;
    font-size: 16px;
}

.article-content p {
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.article-content p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

/* 分页导航 - 羽毛风格 */
.feather-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.feather-pagination a {
    padding: 10px 20px;
    border-radius: 30px;
    background-color: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
    color: var(--text-color);
    font-size: 14px;
}

.feather-pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 友情链接 - 羽毛风格 */
.feather-links {
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,255,255,0.8);
}

.feather-links h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feather-links h3::before {
    content: "🪶";
    font-size: 24px;
    opacity: 0.5;
}

.feather-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feather-links-container a {
    padding: 8px 15px;
    background-color: rgba(255,255,255,0.9);
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(0,0,0,0.05);
    color: var(--text-color);
}

.feather-links-container a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 页脚样式 - 羽毛飘落效果 */
footer {
    background-color: rgba(255,255,255,0.9);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%238b5cf6" fill-opacity="0.1" d="M30,20 Q50,10 70,20 T90,40 Q80,50 90,60 T70,80 Q50,90 30,80 T10,60 Q20,50 10,40 T30,20 Z"/></svg>');
    background-size: 100px;
    background-repeat: repeat-x;
    opacity: 0.5;
}

.copyright {
    font-size: 14px;
    color: var(--text-color);
    position: relative;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .feather-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-title::before, .article-title::after {
        display: none;
    }
    
    .article-meta {
        gap: 10px;
    }
}