/* 大胆开放创作风格 - 主色调：品红+橙黄+青绿 */
:root {
    --primary: #ff2d55; /* 品红 */
    --secondary: #ff9500; /* 橙黄 */
    --accent: #00cc88; /* 青绿 */
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --creative-bg: linear-gradient(135deg, #ff2d55 0%, #ff9500 50%, #00cc88 100%);
}

/* 激进的基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', 'Marker Felt', 'Arial Rounded', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.8;
    overflow-x: hidden;
}

/* 创意头部样式 */
header {
    background: var(--creative-bg);
    padding: 1.5rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 2.5rem;
    font-weight: 900;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    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 {
    transform: skewX(-15deg);
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

nav ul li:hover {
    transform: skewX(-15deg) scale(1.1);
    background: var(--dark);
}

nav ul li a {
    color: white;
    font-weight: bold;
    display: block;
    transform: skewX(15deg);
}

/* 创意容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 非对称内容区块 */
.main-content {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0;
    border: 2px dashed var(--accent);
    transform: rotate(0.5deg);
    transition: all 0.3s ease;
}

.main-content:hover {
    transform: rotate(0deg);
    box-shadow: 10px 10px 0 var(--primary),
                -10px -10px 0 var(--secondary);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 3px 3px 0 var(--primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    transform: skewX(-30deg);
}

/* 创意网格布局 */
.creative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.grid-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    transform: perspective(500px) rotateY(5deg);
}

.grid-item:nth-child(even) {
    transform: perspective(500px) rotateY(-5deg);
}

.grid-item:hover {
    transform: perspective(500px) rotateY(0deg) scale(1.05);
    box-shadow: 15px 15px 30px rgba(0,0,0,0.4);
    z-index: 10;
}

.grid-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 5px solid var(--primary);
}

.grid-info {
    padding: 1.5rem;
    background: white;
    color: var(--dark);
}

.grid-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-weight: 900;
}

.grid-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--secondary);
    margin-top: 1rem;
}

/* 文章详情页创意样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255,255,255,0.9);
    padding: 3rem;
    border-radius: 30px;
    color: var(--dark);
    border: 5px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.article-detail::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--secondary);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    z-index: 0;
}

.article-header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.article-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    line-height: 1.2;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    color: var(--secondary);
    font-weight: bold;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 3px solid var(--accent);
    box-shadow: 10px 10px 0 rgba(0,0,0,0.1);
}

.article-content {
    line-height: 1.9;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* 创意分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination a {
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    transform: rotate(-5deg);
}

.pagination a:nth-child(even) {
    background: var(--secondary);
    transform: rotate(5deg);
}

.pagination a:hover {
    transform: rotate(0deg) scale(1.1);
}

/* 创意友情链接 */
.friend-links {
    background: var(--creative-bg);
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 30px;
    clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%);
}

.friend-links h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.friend-links-container a {
    padding: 0.5rem 1.5rem;
    background: rgba(255,255,255,0.9);
    color: var(--dark);
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background: var(--dark);
    color: white;
    transform: translateY(-5px);
}

/* 创意页脚 */
footer {
    background: var(--dark);
    padding: 3rem 0;
    text-align: center;
    margin-top: 5rem;
    position: relative;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--creative-bg);
}

.copyright {
    font-size: 1rem;
    color: white;
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }
    
    .header-content {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .grid-item {
        transform: none !important;
    }
    
    .friend-links {
        clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%);
    }
}