/* 折纸风格全局样式 */
:root {
    --primary-color: #d2b48c; /* 卡其色 */
    --secondary-color: #b8860b;
    --dark-color: #3e2723;
    --light-color: #fff8e1;
    --text-color: #5d4037;
    --accent-color: #8d6e63;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
    --fold-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', 'Noto Sans SC', monospace;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.7;
    background-image: linear-gradient(to bottom, transparent 95%, rgba(0,0,0,0.05) 100%);
    background-size: 100% 30px;
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 折纸效果头部 */
header {
    background-color: var(--primary-color);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--dark-color);
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
    letter-spacing: 2px;
    position: relative;
    padding: 0 10px;
}

.logo::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--dark-color);
    transform: rotate(-1deg);
    z-index: -1;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    padding: 8px 15px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 3px;
    font-weight: bold;
    box-shadow: var(--fold-shadow);
    transform: rotate(0.5deg);
    display: inline-block;
}

nav ul li a:hover {
    background-color: var(--dark-color);
    color: var(--light-color);
    transform: rotate(-0.5deg) scale(1.05);
}

/* 折纸风格主要内容区域 */
.main-content {
    background-color: white;
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid rgba(0,0,0,0.1);
    transform: rotate(0.3deg);
}

.main-content::before {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.05) 50%);
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px dashed var(--primary-color);
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transform: rotate(-0.5deg);
}

.section-title::after {
    content: '✂';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

/* 折纸卡片式文章列表 */
.article-origami-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.article-origami-card {
    background-color: white;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    transform: rotate(0.5deg);
    border-top: 15px solid var(--primary-color);
}

.article-origami-card:hover {
    transform: rotate(-0.5deg) translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.article-origami-card::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    opacity: 0.7;
}

.origami-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px dashed var(--primary-color);
}

.origami-body {
    padding: 20px;
    position: relative;
}

.origami-body::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-left: 1px dashed var(--primary-color);
    border-top: 1px dashed var(--primary-color);
}

.origami-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--dark-color);
}

.origami-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--accent-color);
    margin-top: 15px;
    font-style: italic;
}

/* 折纸分类标签 */
.origami-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 10px;
    box-shadow: var(--fold-shadow);
    transform: rotate(-1deg);
}

/* 文章详情页折纸样式 */
.origami-detail {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
    transform: rotate(-0.3deg);
    border: 1px solid rgba(0,0,0,0.1);
}

.origami-detail::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary-color);
    z-index: -1;
    opacity: 0.5;
}

.origami-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.origami-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 15px;
    background-color: var(--primary-color);
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}

.origami-detail-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--dark-color);
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
    position: relative;
}

.origami-detail-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--accent-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-style: italic;
}

.origami-detail-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    margin-bottom: 30px;
    border: 5px solid white;
    box-shadow: var(--shadow);
    position: relative;
}

.origami-detail-image::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: -1;
    opacity: 0.3;
}

.origami-content {
    line-height: 1.8;
    font-size: 17px;
    position: relative;
}

.origami-content p {
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.origami-content p::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.origami-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border: 1px dashed var(--primary-color);
    padding: 5px;
}

/* 折纸风格分页导航 */
.origami-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.origami-pagination a {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 3px;
    box-shadow: var(--fold-shadow);
    transform: rotate(1deg);
    transition: all 0.3s;
    font-weight: bold;
}

.origami-pagination a:hover {
    background-color: var(--dark-color);
    color: var(--light-color);
    transform: rotate(-1deg) scale(1.05);
}

/* 折纸风格友情链接 */
.origami-friend-links {
    background-color: white;
    border-radius: 5px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    position: relative;
    transform: rotate(0.5deg);
    border-top: 10px solid var(--primary-color);
}

.origami-friend-links h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.origami-friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.origami-friend-links-container a {
    padding: 8px 15px;
    background-color: var(--light-color);
    border-radius: 3px;
    font-size: 14px;
    box-shadow: var(--fold-shadow);
    transform: rotate(-0.5deg);
    border: 1px dashed var(--primary-color);
}

.origami-friend-links-container a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: rotate(0.5deg);
}

/* 折纸风格页脚 */
footer {
    background-color: var(--dark-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    color: var(--light-color);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: var(--primary-color);
    opacity: 0.7;
}

.copyright {
    font-size: 14px;
    margin-top: 20px;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .article-origami-grid {
        grid-template-columns: 1fr;
    }
    
    .origami-detail-title {
        font-size: 26px;
    }
    
    .origami-detail-meta {
        gap: 15px;
    }
    
    footer {
        clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    }
}