/* 大胆开放风格 - 鲜艳色调与非对称布局 */
:root {
    --primary: #FF3E4D; /* 鲜艳红色 */
    --secondary: #00D2B8; /* 青绿色 */
    --accent: #FFC300; /* 亮黄色 */
    --dark: #2C2C54; /* 深紫色 */
    --light: #F5F6FA; /* 浅灰色 */
    --text: #333333;
    --highlight: #FF9F43; /* 橙色 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Arial', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

/* 非对称头部设计 */
header {
    background: linear-gradient(135deg, var(--primary), var(--highlight));
    padding: 2rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    margin-bottom: -3rem;
    position: relative;
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
    transform: rotate(-5deg);
}

/* 导航菜单 - 圆形按钮 */
nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    display: block;
    width: 3.5rem;
    height: 3.5rem;
    line-height: 3.5rem;
    text-align: center;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
}

nav ul li a:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--accent);
    color: white;
}

/* 主要内容区域 - 倾斜设计 */
.main-content {
    background: white;
    padding: 3rem 5%;
    margin: 3rem 5%;
    border-radius: 1rem;
    box-shadow: 15px 15px 0 var(--secondary);
    transform: rotate(-1deg);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.5rem;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50%;
    height: 0.5rem;
    background: var(--accent);
    transform: skewX(-20deg);
}

/* 非网格文章列表 */
.article-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.article-item {
    flex: 1 1 300px;
    max-width: 400px;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 10px 10px 0 var(--dark);
    transition: all 0.3s ease;
    position: relative;
}

.article-item:nth-child(odd) {
    transform: rotate(2deg);
}

.article-item:nth-child(even) {
    transform: rotate(-1deg);
}

.article-item:hover {
    transform: rotate(0deg) scale(1.05) !important;
    box-shadow: 15px 15px 0 var(--primary);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 5px solid var(--accent);
}

.article-info {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 700;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
}

/* 文章详情页 - 杂志风格 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-detail-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.article-detail-title::before, .article-detail-title::after {
    content: "✻";
    color: var(--accent);
    position: absolute;
    font-size: 2rem;
}

.article-detail-title::before {
    left: -3rem;
    top: -1rem;
}

.article-detail-title::after {
    right: -3rem;
    bottom: -1rem;
}

.article-detail-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-detail-meta span {
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: bold;
}

.article-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 1rem;
    border: 5px solid white;
    box-shadow: 10px 10px 0 var(--primary);
    margin-bottom: 3rem;
}

.article-content {
    font-size: 1.1rem;
    column-count: 2;
    column-gap: 3rem;
    column-rule: 2px dotted var(--secondary);
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content p:first-child::first-letter {
    font-size: 4rem;
    float: left;
    line-height: 0.8;
    margin-right: 0.5rem;
    color: var(--primary);
    font-weight: bold;
}

/* 分页 - 箭头样式 */
.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

.pagination a {
    padding: 1rem 2rem;
    background: var(--dark);
    color: white;
    border-radius: 2rem;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.pagination a::before {
    content: "→";
    position: absolute;
    right: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.pagination a:hover::before {
    opacity: 1;
    right: 0.5rem;
}

.pagination a:first-child::before {
    content: "←";
    left: 1rem;
    right: auto;
}

.pagination a:first-child:hover::before {
    left: 0.5rem;
}

/* 友情链接 - 标签云 */
.friend-links {
    background: var(--dark);
    padding: 2rem;
    margin: 3rem 5%;
    border-radius: 1rem;
    transform: rotate(1deg);
}

.friend-links h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.friend-links-container a {
    padding: 0.5rem 1.5rem;
    background: var(--accent);
    color: var(--dark);
    border-radius: 2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background: white;
    transform: scale(1.1) rotate(5deg);
}

/* 页脚 - 波浪设计 */
footer {
    background: linear-gradient(135deg, var(--dark), #1A1A2E);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
    position: relative;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
    margin-top: 5rem;
}

footer::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" 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.21,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%232C2C54" opacity=".25"/><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,73,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" fill="%232C2C54" opacity=".5"/><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,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%232C2C54"/></svg>');
    background-size: cover;
}

.copyright {
    font-size: 1rem;
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }
    
    .logo {
        font-size: 2rem;
    }
    
    nav ul li a {
        width: 3rem;
        height: 3rem;
        line-height: 3rem;
    }
    
    .main-content {
        margin: 3rem 1rem;
        transform: rotate(0deg);
    }
    
    .article-content {
        column-count: 1;
    }
    
    .article-detail-title {
        font-size: 2rem;
    }
    
    .article-detail-title::before, 
    .article-detail-title::after {
        font-size: 1.5rem;
    }
    
    .article-detail-title::before {
        left: -1.5rem;
    }
    
    .article-detail-title::after {
        right: -1.5rem;
    }
}

/* 动画效果 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}