/* 大胆开放风格全局样式 */
:root {
    --primary-color: #FF3E4D; /* 鲜艳红色 */
    --secondary-color: #FFD166; /* 明亮黄色 */
    --accent-color: #06D6A0; /* 荧光绿 */
    --dark-color: #1A1A2E; /* 深蓝背景 */
    --light-color: #F8F9FA;
    --text-color: #E2E2E2;
    --highlight-color: #A63EC5; /* 紫色 */
    --shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    --gradient: linear-gradient(45deg, var(--primary-color), var(--highlight-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Arial', sans-serif;
}

body {
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

a:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 非常规头部设计 */
header {
    background: var(--gradient);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    height: 120px;
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 36px;
    font-weight: 900;
    background: var(--light-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transform: rotate(-5deg);
    display: inline-block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    padding: 10px 20px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

nav ul li a:hover {
    background-color: var(--dark-color);
    color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

/* 3D效果主要内容区域 */
.main-content {
    background-color: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-color);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(1deg);
    transition: all 0.5s ease;
}

.main-content:hover {
    transform: perspective(1000px) rotateX(0deg);
    box-shadow: 0 0 30px var(--primary-color);
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
    color: var(--light-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 5px;
    background: var(--gradient);
    border-radius: 5px;
}

/* 非对称文章网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.article-card {
    background: linear-gradient(145deg, #2a2a3a, #1f1f2e);
    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);
    border-top: 3px solid var(--primary-color);
    transform: rotateY(5deg);
}

.article-card:nth-child(even) {
    transform: rotateY(-5deg);
}

.article-card:hover {
    transform: rotateY(0deg) scale(1.05);
    box-shadow: 0 10px 25px var(--primary-color);
    z-index: 10;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent-color);
    filter: saturate(1.2);
    transition: all 0.4s ease;
}

.article-card:hover .card-image {
    transform: scale(1.1);
    filter: saturate(1.5) brightness(1.1);
}

.card-body {
    padding: 25px;
    position: relative;
}

.card-body::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: -1;
}

.card-title {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--light-color);
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--secondary-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 分类标签 - 不规则形状 */
.category-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--highlight-color);
    color: white;
    border-radius: 0 15px 15px 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
    position: relative;
    left: -25px;
}

/* 文章详情页 - 创意布局 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 42px;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--light-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 4px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    border: 5px solid var(--primary-color);
    filter: drop-shadow(0 0 10px var(--accent-color));
}

.article-content {
    line-height: 1.9;
    font-size: 18px;
    column-count: 2;
    column-gap: 40px;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
    hyphens: auto;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 25px 0;
    border: 3px solid var(--accent-color);
}

/* 非常规分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 50px;
    background: var(--gradient);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(255, 62, 77, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.pagination a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--primary-color);
}

.pagination a:hover::before {
    left: 100%;
}

/* 创意友情链接 */
.friend-links {
    background: linear-gradient(145deg, #2a2a3a, #1f1f2e);
    border-radius: 20px;
    padding: 30px;
    margin: 50px 0;
    box-shadow: var(--shadow);
    border: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.friend-links::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 214, 102, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.friend-links h3 {
    margin-bottom: 25px;
    color: var(--light-color);
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    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;
    background-color: rgba(255, 62, 77, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-color);
}

/* 动态页脚 */
footer {
    background: var(--gradient);
    padding: 40px 0;
    text-align: center;
    margin-top: 70px;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><circle cx="50" cy="50" r="40" stroke="white" stroke-width="0.5" fill="none" /></svg>');
    background-size: 50px 50px;
    opacity: 0.1;
}

.copyright {
    font-size: 16px;
    color: white;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .article-content {
        column-count: 1;
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
        clip-path: none;
        padding: 20px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .logo {
        transform: rotate(0deg);
    }
    
    .article-card {
        transform: none !important;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .main-content {
        padding: 30px;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 26px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .pagination {
        flex-direction: column;
        align-items: center;
    }
}