/* 大胆开放风格CSS */
:root {
    --primary: #FF3E9D;
    --secondary: #0E1F5B;
    --accent: #00C4FF;
    --light: #FFFFFF;
    --dark: #1A1A2E;
    --gradient: linear-gradient(45deg, var(--primary), var(--accent));
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:hover {
    color: var(--primary);
    text-shadow: 0 0 5px rgba(255, 62, 157, 0.3);
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 大胆的头部设计 */
header {
    background: var(--light);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    transform: skewX(-10deg);
    display: inline-block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 50px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 80%;
}

/* 主要内容区域 - 非对称设计 */
.main-content {
    padding: 50px;
    margin: 40px 0;
    background: var(--light);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--gradient);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    color: var(--secondary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 5px;
    background: var(--gradient);
    border-radius: 5px;
}

/* 大胆的文章网格布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.article-card {
    background: var(--light);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    position: relative;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.article-card:hover::before {
    opacity: 0.05;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 5px solid var(--primary);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--secondary);
}

.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: 20px;
    font-size: 0.9rem;
    color: #888;
}

.card-category {
    background: var(--gradient);
    color: white;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 分类部分 */
.category-section {
    margin-bottom: 50px;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40%;
    height: 4px;
    background: var(--accent);
    border-radius: 4px;
}

/* 文章详情页 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--secondary);
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
    outline: 2px dashed var(--primary);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 196, 255, 0.3);
}

/* 友情链接 */
.friend-links {
    background: var(--light);
    padding: 40px;
    margin: 50px 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.friend-links::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: var(--gradient);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.friend-links h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--secondary);
    position: relative;
    z-index: 1;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.friend-links-container a {
    padding: 10px 20px;
    border-radius: 50px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: 600;
}

.friend-links-container a:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
}

/* 页脚 */
footer {
    background: var(--secondary);
    color: white;
    padding: 50px 0;
    text-align: center;
    margin-top: 70px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%230E1F5B"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,72,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%230E1F5B"></path><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,960.1,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%230E1F5B"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
}

.copyright {
    font-size: 1rem;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .article-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .friend-links-container a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}