/* 不对称布局橙色主题 */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7c59f;
    --dark-color: #292929;
    --light-color: #f8f8f8;
    --accent-color: #efefd0;
    --text-color: #333;
    --highlight: #ff9e1b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 不对称头部 */
header {
    background-color: var(--dark-color);
    padding: 25px 0;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: -5%;
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    transform: rotate(-5deg);
    text-shadow: 2px 2px 0 var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: var(--accent-color);
    font-weight: 600;
    padding: 8px 15px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s;
}

nav ul li a:hover::after {
    transform: scaleX(1);
}

/* 不对称内容区域 */
.main-content {
    background-color: white;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 15px 15px 0 var(--secondary-color);
    position: relative;
    border: 2px solid var(--dark-color);
}

.main-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    z-index: -1;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 5px;
    background-color: var(--primary-color);
}

/* 斜切网格布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    transform: rotate(-1deg);
}

.article-card {
    background-color: white;
    border: 2px solid var(--dark-color);
    box-shadow: 8px 8px 0 var(--secondary-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.article-card:nth-child(even) {
    transform: rotate(1deg);
}

.article-card:hover {
    transform: rotate(0deg) scale(1.03) !important;
    box-shadow: 15px 15px 0 var(--highlight);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--dark-color);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--dark-color);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    transform: rotate(0.5deg);
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark-color);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--primary-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-weight: 600;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border: 2px solid var(--dark-color);
    box-shadow: 10px 10px 0 var(--secondary-color);
    margin-bottom: 30px;
}

.article-content {
    font-size: 18px;
    line-height: 1.9;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border: 2px solid var(--dark-color);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    background-color: var(--dark-color);
    color: white;
    font-weight: 600;
    border: 2px solid var(--dark-color);
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 友情链接 */
.friend-links {
    background-color: var(--accent-color);
    padding: 30px;
    margin: 50px 0;
    border: 2px solid var(--dark-color);
    box-shadow: 10px 10px 0 var(--secondary-color);
}

.friend-links h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-container a {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border: 2px solid var(--dark-color);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--dark-color);
}

/* 斜切页脚 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    margin-top: 50px;
    text-align: center;
}

.copyright {
    font-size: 16px;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    header {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
        margin-bottom: -8%;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-grid {
        transform: rotate(0deg);
    }
    
    .article-card:nth-child(even) {
        transform: rotate(0deg);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 30px 20px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
}