/* 贪心风格 - 大胆视觉设计 */
:root {
    --primary-color: #FF3E4D; /* 活力红 */
    --secondary-color: #FFD166; /* 阳光黄 */
    --dark-color: #2B2D42; /* 深蓝灰 */
    --light-color: #EDF2F4; /* 浅灰 */
    --accent-color: #06D6A0; /* 翡翠绿 */
    --shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    --border-radius-lg: 20px;
    --border-radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 600;
}

a:hover {
    color: var(--dark-color);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 夸张的头部设计 */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    padding-bottom: 50px;
    margin-bottom: -20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 36px;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul li a:hover {
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-3px);
}

/* 主要内容区域 - 大胆卡片设计 */
.main-content {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    margin: 40px 0;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

/* 贪心风格文章网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: white;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 62, 77, 0.1);
}

.article-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid var(--secondary-color);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 14px;
    color: var(--dark-color);
}

.card-category {
    background-color: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

/* 分类区块设计 */
.category-section {
    margin-bottom: 50px;
}

.category-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 文章详情页 - 夸张设计 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 42px;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--dark-color);
    text-shadow: 2px 2px 0 rgba(255, 214, 102, 0.3);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #666;
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-size: 16px;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: 40px;
    border: 5px solid white;
    box-shadow: var(--shadow);
}

.article-content {
    line-height: 1.9;
    font-size: 18px;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    margin: 30px 0;
    border: 3px solid var(--secondary-color);
}

/* 夸张的分页设计 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.pagination a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    background-color: var(--dark-color);
}

/* 友情链接区块 */
.friend-links {
    background: linear-gradient(135deg, var(--dark-color), #3a3d5a);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    margin: 50px 0;
    box-shadow: var(--shadow);
}

.friend-links h3 {
    margin-bottom: 25px;
    color: white;
    font-size: 28px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.friend-links-container a {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: white;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: scale(1.05);
    text-decoration: none;
}

/* 页脚设计 */
footer {
    background-color: var(--dark-color);
    padding: 40px 0;
    text-align: center;
    margin-top: 70px;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
    padding-top: 70px;
    color: white;
}

.copyright {
    font-size: 16px;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 30px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-title {
        font-size: 36px;
    }
    
    .article-meta {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .logo {
        font-size: 28px;
    }
    
    nav ul li a {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .main-content {
        padding: 30px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 30px;
    }
    
    .friend-links-container a {
        padding: 8px 15px;
    }
}

/* 动画效果 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}