/* 踌躇风格 - 不对称有机设计 */
:root {
    --clay-1: #e6d5b8;
    --clay-2: #c4a97c;
    --clay-3: #9c7e5b;
    --clay-4: #6b4b3a;
    --ink: #3a2d28;
    --paper: #f8f4e9;
    --highlight: #d4a373;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'LXGW WenKai', sans-serif;
}

body {
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.8;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M30,50 Q50,30 70,50 T90,50" stroke="%23d4a37320" fill="none" stroke-width="1"/></svg>');
    background-size: 200px;
}

a {
    text-decoration: none;
    color: var(--clay-4);
    position: relative;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--highlight);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--highlight);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
}

/* 有机形状头部 */
header {
    background-color: var(--clay-1);
    padding: 2rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 80% 100%, 0 85%);
    margin-bottom: 3rem;
    border-bottom: 3px solid var(--clay-3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--clay-4);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    font-family: 'ZCOOL KuaiLe', cursive;
    transform: rotate(-3deg);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav ul li a {
    padding: 0.5rem 1rem;
    background-color: var(--clay-2);
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 3px 3px 0 var(--clay-3);
}

nav ul li a:hover {
    background-color: var(--highlight);
    color: white;
    box-shadow: 3px 3px 0 var(--clay-4);
}

/* 不对称内容区域 */
.main-content {
    padding: 2.5rem;
    background-color: white;
    margin: 2rem 0;
    border-radius: 15px 5px 15px 5px;
    box-shadow: 8px 8px 0 var(--clay-1), 
                15px 15px 0 var(--clay-2),
                3px 3px 10px rgba(0,0,0,0.1);
    border: 1px solid var(--clay-2);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(135deg, var(--clay-1) 0%, transparent 100%);
    z-index: 0;
    opacity: 0.3;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px dashed var(--clay-3);
    color: var(--clay-4);
    position: relative;
    transform: rotate(-1deg);
}

.section-title::after {
    content: '✧';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--highlight);
}

/* 手绘风格文章列表 */
.article-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
}

.article-tile {
    background-color: white;
    border-radius: 10px 3px 10px 3px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid var(--clay-2);
    position: relative;
}

.article-tile:nth-child(odd) {
    transform: rotate(1deg);
}

.article-tile:nth-child(even) {
    transform: rotate(-1deg);
}

.article-tile:hover {
    transform: rotate(0deg) scale(1.03) !important;
    box-shadow: 5px 5px 0 var(--clay-3);
}

.tile-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px dashed var(--clay-2);
}

.tile-body {
    padding: 1.2rem;
}

.tile-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
}

.tile-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--clay-3);
    margin-top: 1rem;
    font-family: 'LXGW WenKai', sans-serif;
}

.category-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--highlight);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    box-shadow: 2px 2px 0 var(--clay-4);
}

/* 文章详情页 */
.article-journal {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.article-header::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--highlight);
    border-radius: 2px;
}

.article-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--clay-4);
    font-weight: 700;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--clay-3);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    font-family: 'LXGW WenKai', sans-serif;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 5px 15px 5px 15px;
    margin-bottom: 2rem;
    border: 3px solid var(--clay-2);
    box-shadow: 5px 5px 0 var(--clay-1);
}

.article-content {
    line-height: 1.9;
    font-size: 1.1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1.5rem 0;
    border: 2px solid var(--clay-2);
}

/* 手绘风格分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination a {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background-color: var(--clay-1);
    border: 2px solid var(--clay-3);
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 3px 3px 0 var(--clay-3);
}

.pagination a:hover {
    background-color: var(--highlight);
    color: white;
    transform: translateY(-3px);
    box-shadow: 5px 5px 0 var(--clay-4);
}

/* 手绘风格友情链接 */
.friend-links {
    background-color: var(--clay-1);
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 15px 5px 15px 5px;
    border: 2px dashed var(--clay-3);
    position: relative;
}

.friend-links h3 {
    margin-bottom: 1.5rem;
    color: var(--clay-4);
    font-size: 1.5rem;
    text-align: center;
}

.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(--paper);
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid var(--clay-3);
    box-shadow: 2px 2px 0 var(--clay-3);
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background-color: var(--highlight);
    color: white;
    transform: translateY(-2px);
}

/* 有机形状页脚 */
footer {
    background-color: var(--clay-4);
    color: var(--clay-1);
    padding: 3rem 0 4rem;
    text-align: center;
    margin-top: 4rem;
    clip-path: polygon(20% 0, 100% 15%, 100% 100%, 0 100%, 0 15%);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: var(--highlight);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.copyright {
    font-size: 1rem;
    margin-top: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .article-tile:nth-child(n) {
        transform: rotate(0deg);
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .main-content::before {
        width: 100%;
        height: 30%;
    }
}