/* 解构主义风格 - 玫瑰金主题 */
:root {
    --rose-gold: #e0bfb8;
    --rose-gold-dark: #b38b8b;
    --rose-gold-light: #f7e9e3;
    --dark-text: #3a3a3a;
    --light-text: #f5f5f5;
    --accent: #d4a59a;
    --bg-color: #f9f5f3;
    --deco-color: rgba(192, 152, 154, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 解构主义不对称布局 */
.container {
    width: 94%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 3%;
    position: relative;
}

/* 倾斜的头部设计 */
header {
    background-color: var(--rose-gold-light);
    padding: 2rem 0;
    transform: skewY(-1deg);
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--rose-gold);
}

.header-content {
    transform: skewY(1deg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--rose-gold-dark);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    padding-left: 1rem;
}

.logo::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
    width: 4px;
    background-color: var(--rose-gold);
}

/* 非常规导航布局 */
nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 1.5rem;
}

nav ul li {
    position: relative;
}

nav ul li a {
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: var(--dark-text);
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background-color: var(--rose-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav ul li a:hover {
    color: var(--rose-gold-dark);
}

nav ul li a:hover::after {
    transform: scaleX(1);
}

/* 解构的内容区块 */
.main-content {
    position: relative;
    padding: 2.5rem;
    margin-bottom: 3rem;
    background-color: white;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    border-left: 4px solid var(--rose-gold);
    transform: rotate(0.5deg);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
    color: var(--rose-gold-dark);
    position: relative;
    display: inline-block;
    padding-right: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
    height: 120%;
    width: 8px;
    background-color: var(--deco-color);
}

/* 破碎网格布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    position: relative;
}

.article-grid::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed var(--deco-color);
    pointer-events: none;
}

.article-card {
    background: white;
    padding: 1.5rem;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--rose-gold-light);
}

.article-card:nth-child(odd) {
    transform: rotate(0.5deg);
}

.article-card:nth-child(even) {
    transform: rotate(-0.5deg);
}

.article-card:hover {
    transform: rotate(0deg) scale(1.02) !important;
    box-shadow: 8px 8px 25px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 1.2rem;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.article-card:hover .card-image {
    filter: grayscale(0%);
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: var(--dark-text);
    position: relative;
    z-index: 2;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--rose-gold-dark);
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

/* 文章详情页的非常规布局 */
.article-detail {
    position: relative;
    padding: 2rem;
}

.article-header {
    margin-bottom: 2.5rem;
    position: relative;
}

.article-title {
    font-size: 2.2rem;
    line-height: 1.3;
    color: var(--rose-gold-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--rose-gold);
    transform: skewX(-30deg);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--rose-gold-dark);
    font-size: 0.9rem;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    margin: 2rem 0;
    box-shadow: 15px 15px 0 var(--deco-color);
}

.article-content {
    line-height: 1.8;
    font-size: 1.05rem;
    position: relative;
}

.article-content p {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.article-content p::before {
    content: '■';
    position: absolute;
    left: -10px;
    top: 0;
    color: var(--rose-gold);
    font-size: 0.6rem;
}

/* 非常规分页设计 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    position: relative;
}

.pagination::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--rose-gold), transparent);
}

.pagination a {
    padding: 0.8rem 1.5rem;
    background-color: var(--rose-gold-light);
    color: var(--rose-gold-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--rose-gold);
    transition: left 0.3s ease;
    z-index: 0;
}

.pagination a:hover {
    color: white;
}

.pagination a:hover::before {
    left: 0;
}

.pagination a span {
    position: relative;
    z-index: 1;
}

/* 解构的友情链接设计 */
.friend-links {
    background-color: white;
    padding: 2rem;
    margin: 3rem 0;
    position: relative;
    box-shadow: 0 0 0 5px var(--rose-gold-light), 
                0 0 0 10px white, 
                0 0 0 15px var(--deco-color);
}

.friend-links h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--rose-gold-dark);
    text-align: center;
    position: relative;
}

.friend-links h3::before,
.friend-links h3::after {
    content: '✧';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rose-gold);
}

.friend-links h3::before {
    left: -30px;
}

.friend-links h3::after {
    right: -30px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.friend-links-container a {
    padding: 0.5rem 1.2rem;
    background-color: var(--rose-gold-light);
    color: var(--rose-gold-dark);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.friend-links-container a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--rose-gold);
    transition: width 0.3s ease;
}

.friend-links-container a:hover {
    background-color: var(--rose-gold);
    color: white;
}

.friend-links-container a:hover::before {
    width: 100%;
}

/* 独特的页脚设计 */
footer {
    background-color: var(--rose-gold-dark);
    color: var(--light-text);
    padding: 3rem 0;
    margin-top: 4rem;
    position: relative;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0% 100%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.copyright {
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card:nth-child(n) {
        transform: rotate(0deg);
    }
    
    footer {
        clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);
    }
}

/* 动画效果 */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0.5deg); }
    50% { transform: translateY(-10px) rotate(-0.5deg); }
}

.article-card:hover {
    animation: float 3s ease-in-out infinite;
}