/* 羽翼风格全局样式 */
:root {
    --feather-light: #f8f9fa;
    --feather-dark: #343a40;
    --primary-gradient: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    --secondary-gradient: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    --shadow-feather: 0 3px 15px rgba(0, 0, 0, 0.1);
    --transition-all: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--feather-light);
    color: var(--feather-dark);
    line-height: 1.7;
    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 d="M30,50 Q50,30 70,50 T90,50" fill="none" stroke="%23c2e9fb" stroke-width="0.5"/></svg>');
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-all);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 羽翼头部样式 */
header {
    background: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(8px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-feather);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-left: 40px;
}

.logo::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23a1c4fd"><path d="M22 12s-7-4-10-4-10 4-10 4 7 4 10 4 10-4 10-4z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-all);
}

nav ul li a:hover {
    color: #5a8cff;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 主要内容区域 - 羽毛卡片 */
.main-content {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--shadow-feather);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23c2e9fb" stroke-width="1"><path d="M12 3c4 3 8 7 8 11a5 5 0 0 1-5 5c-3 0-6-3-11-8l-1 1c3 5 6 8 10 8a7 7 0 0 0 7-7c0-4-4-8-8-11z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.3;
    transform: rotate(15deg);
}

.section-title {
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    position: relative;
    color: #4a6baf;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

/* 羽毛风格文章网格 */
.feather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.feather-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-all);
    box-shadow: var(--shadow-feather);
    position: relative;
}

.feather-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feather-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(161, 196, 253, 0.1) 0%, rgba(194, 233, 251, 0.1) 100%);
    z-index: 1;
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-body {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6c757d;
    margin-top: 15px;
}

/* 分类标签 - 羽毛形状 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--secondary-gradient);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 文章详情页 - 羽毛风格 */
.feather-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-header::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23a1c4fd"><path d="M22 12s-7-4-10-4-10 4-10 4 7 4 10 4 10-4 10-4z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.5;
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #4a6baf;
    position: relative;
    padding-bottom: 15px;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--primary-gradient);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: #6c757d;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-feather);
}

.article-content {
    line-height: 1.8;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.article-content p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    background: var(--primary-gradient);
    border-radius: 50%;
}

/* 分页导航 - 羽毛风格 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 30px;
    background: white;
    border: 1px solid #dee2e6;
    transition: var(--transition-all);
    position: relative;
    overflow: hidden;
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-all);
    z-index: -1;
}

.pagination a:hover {
    color: white;
    border-color: transparent;
}

.pagination a:hover::before {
    opacity: 1;
}

/* 友情链接 - 羽毛云朵效果 */
.feather-links {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow-feather);
    position: relative;
    overflow: hidden;
}

.feather-links::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23c2e9fb" stroke-width="1"><path d="M12 3c4 3 8 7 8 11a5 5 0 0 1-5 5c-3 0-6-3-11-8l-1 1c3 5 6 8 10 8a7 7 0 0 0 7-7c0-4-4-8-8-11z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.2;
    transform: rotate(-15deg);
}

.feather-links h3 {
    margin-bottom: 20px;
    color: #4a6baf;
    font-size: 20px;
}

.feather-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feather-links-container a {
    padding: 8px 15px;
    background: rgba(161, 196, 253, 0.1);
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(161, 196, 253, 0.3);
    transition: var(--transition-all);
}

.feather-links-container a:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* 页脚样式 - 羽毛飘落效果 */
footer {
    background: white;
    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: -30px;
    left: 10%;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23c2e9fb" stroke-width="1"><path d="M12 3c4 3 8 7 8 11a5 5 0 0 1-5 5c-3 0-6-3-11-8l-1 1c3 5 6 8 10 8a7 7 0 0 0 7-7c0-4-4-8-8-11z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.5;
    animation: feather-fall 8s linear infinite;
}

footer::after {
    content: '';
    position: absolute;
    top: -20px;
    right: 15%;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23c2e9fb" stroke-width="1"><path d="M12 3c4 3 8 7 8 11a5 5 0 0 1-5 5c-3 0-6-3-11-8l-1 1c3 5 6 8 10 8a7 7 0 0 0 7-7c0-4-4-8-8-11z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.5;
    animation: feather-fall 10s linear infinite;
    animation-delay: 2s;
}

.copyright {
    font-size: 14px;
    color: #6c757d;
    position: relative;
    z-index: 2;
}

@keyframes feather-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(300px) rotate(360deg);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .feather-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
    }
}