/* 渐变色调全局样式 */
:root {
    --gradient-1: linear-gradient(135deg, #72EDF2 0%, #5151E5 100%);
    --gradient-2: linear-gradient(135deg, #FF9A9E 0%, #FAD0C4 100%);
    --text-dark: #2C3E50;
    --text-light: #34495E;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #F9F9F9;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:hover {
    color: #5151E5;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 不对称头部设计 */
header {
    background: white;
    padding: 25px 0;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    right: -200px;
    width: 400px;
    height: 100%;
    background: var(--gradient-1);
    transform: skewX(-20deg);
    z-index: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    padding: 8px 15px;
    font-weight: 600;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 不对称内容区域 */
.main-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: var(--gradient-2);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    z-index: 1;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* 瀑布流文章列表 */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 10px;
    gap: 25px;
}

.masonry-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    background: white;
    position: relative;
    grid-row-end: span 30;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.masonry-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.masonry-content {
    padding: 20px;
}

.masonry-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.masonry-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 15px;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-1);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* 文章详情页 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--text-light);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.article-content {
    line-height: 1.9;
    font-size: 18px;
    color: var(--text-light);
}

.article-content p {
    margin-bottom: 25px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: var(--shadow-sm);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 30px;
    background: white;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.pagination a:hover {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 5px 15px rgba(81, 81, 229, 0.3);
}

/* 友情链接 */
.friend-links {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--shadow-sm);
}

.friend-links h3 {
    margin-bottom: 25px;
    font-size: 22px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-container a {
    padding: 8px 20px;
    background: rgba(114, 237, 242, 0.1);
    border-radius: 30px;
    font-weight: 500;
    border: 1px solid rgba(114, 237, 242, 0.5);
}

.friend-links-container a:hover {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
}

/* 页脚样式 */
footer {
    background: var(--gradient-1);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    color: white;
}

.copyright {
    font-size: 15px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 992px) {
    header::before {
        right: -300px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .article-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    header::before {
        display: none;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .masonry-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
    }
}