/* 解构主义风格 - 石板灰主题 */
:root {
    --stone-1: #3a3a3a;
    --stone-2: #4e4e4e;
    --stone-3: #636363;
    --stone-light: #e0e0e0;
    --accent-red: #c74d4d;
    --accent-blue: #4d7fc7;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --gap: 15px;
    --angle: -3deg;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f0f0f0;
    color: var(--text-primary);
    line-height: 1.6;
    padding: var(--gap);
}

a {
    text-decoration: none;
    color: var(--accent-blue);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

/* 解构主义布局容器 */
.deconstruct-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
    max-width: 1400px;
    margin: 0 auto;
}

/* 不对称头部 */
.deconstruct-header {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--gap);
    margin-bottom: calc(var(--gap) * 2);
    transform: rotate(var(--angle));
    transform-origin: left center;
}

.header-left {
    background-color: var(--stone-1);
    color: white;
    padding: 30px;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 50px;
}

.logo {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}

.deconstruct-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.deconstruct-nav a {
    color: var(--stone-1);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.deconstruct-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: width 0.3s;
}

.deconstruct-nav a:hover::after {
    width: 100%;
}

/* 内容区块 */
.content-block {
    background-color: white;
    padding: 30px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: calc(var(--gap) * 2);
    border: 1px solid var(--stone-light);
    position: relative;
}

.content-block::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--stone-2);
    z-index: -1;
}

.main-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--stone-1);
    position: relative;
    display: inline-block;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 4px;
    background-color: var(--accent-red);
}

/* 文章网格 - 解构布局 */
.article-deconstruct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.article-deconstruct-item {
    background-color: white;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--stone-light);
    transform: rotate(calc(var(--angle) / 2));
}

.article-deconstruct-item:nth-child(even) {
    transform: rotate(calc(var(--angle) / -2));
}

.article-deconstruct-item:hover {
    transform: rotate(0deg) scale(1.03) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.deconstruct-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent-red);
}

.deconstruct-info {
    padding: 20px;
}

.deconstruct-article-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.deconstruct-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 15px;
    border-top: 1px dashed var(--stone-light);
    padding-top: 10px;
}

/* 分类标签 */
.deconstruct-category {
    display: inline-block;
    background-color: var(--stone-2);
    color: white;
    padding: 3px 10px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
}

/* 文章详情页 */
.article-deconstruct-detail {
    grid-column: 1 / -1;
}

.deconstruct-detail-header {
    margin-bottom: 40px;
    text-align: center;
}

.deconstruct-detail-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--stone-1);
}

.deconstruct-detail-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.deconstruct-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin: 30px 0;
    border: 10px solid white;
    box-shadow: 12px 12px 0 var(--stone-2);
}

.deconstruct-content {
    line-height: 1.8;
    font-size: 1.1rem;
    column-count: 2;
    column-gap: 40px;
}

.deconstruct-content p {
    margin-bottom: 20px;
    break-inside: avoid;
}

/* 分页导航 */
.deconstruct-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.deconstruct-pagination a {
    padding: 10px 25px;
    background-color: var(--stone-1);
    color: white;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.deconstruct-pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent-red);
    transition: all 0.3s;
    z-index: -1;
}

.deconstruct-pagination a:hover::before {
    left: 0;
}

/* 友情链接区块 */
.deconstruct-friendlinks {
    grid-column: 1 / -1;
    background-color: var(--stone-3);
    padding: 40px;
    margin: 50px 0;
    color: white;
}

.friendlinks-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.friendlinks-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30%;
    height: 3px;
    background-color: var(--accent-red);
}

.friendlinks-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.friendlinks-container a {
    display: block;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    transition: all 0.3s;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
}

.friendlinks-container a:hover {
    background-color: var(--accent-red);
    transform: translateX(10px);
}

/* 页脚 */
.deconstruct-footer {
    grid-column: 1 / -1;
    background-color: var(--stone-1);
    color: white;
    padding: 30px;
    text-align: center;
    margin-top: 50px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 90%);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .deconstruct-header {
        grid-template-columns: 1fr;
    }
    
    .header-left {
        clip-path: none;
    }
    
    .header-right {
        justify-content: flex-start;
        padding-left: 0;
    }
    
    .deconstruct-nav ul {
        flex-wrap: wrap;
    }
    
    .deconstruct-content {
        column-count: 1;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }
    
    .deconstruct-nav ul {
        gap: 15px;
    }
    
    .content-block {
        padding: 20px;
    }
    
    .article-deconstruct-item {
        transform: none !important;
    }
}