/* 踌躇风格全局样式 */
:root {
    --primary-color: #8B6B4A;
    --secondary-color: #D4B483;
    --accent-color: #6B8B4A;
    --light-color: #F5F0E6;
    --dark-color: #3A3226;
    --text-color: #3A3226;
    --highlight: #FFD700;
    --shadow: 5px 5px 15px rgba(58, 50, 38, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', '楷体', serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    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="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="%23D4B483" stroke-width="0.5" stroke-dasharray="5,5"/></svg>');
}

a {
    text-decoration: none;
    color: var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 不对称头部样式 */
header {
    background-color: var(--light-color);
    padding: 25px 0;
    border-bottom: 2px solid var(--secondary-color);
    transform: rotate(-0.5deg);
    margin: 20px 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: rotate(0.5deg);
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 2px 2px 0 var(--secondary-color);
    letter-spacing: 2px;
    font-style: italic;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li {
    transform: rotate(1deg);
}

nav ul li:nth-child(even) {
    transform: rotate(-1deg);
}

nav ul li a {
    padding: 8px 15px;
    background-color: var(--light-color);
    border: 1px solid var(--primary-color);
    display: block;
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* 手绘风格主要内容区域 */
.main-content {
    background-color: var(--light-color);
    padding: 40px;
    margin: 40px 0;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow);
    position: relative;
    transform: rotate(0.7deg);
}

.main-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 1px dashed var(--secondary-color);
    z-index: -1;
    transform: rotate(-0.5deg);
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px double var(--primary-color);
    color: var(--dark-color);
    text-align: center;
    font-style: italic;
    letter-spacing: 2px;
    transform: rotate(-0.5deg);
}

/* 手撕边缘文章列表 */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.article-item {
    background-color: var(--light-color);
    border: 2px solid var(--primary-color);
    padding: 0;
    position: relative;
    transform: rotate(0.5deg);
    transition: all 0.3s ease;
}

.article-item:nth-child(even) {
    transform: rotate(-0.5deg);
}

.article-item:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 8px 8px 0 var(--primary-color);
}

.article-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="%238B6B4A" stroke-width="1" stroke-dasharray="10,5"/></svg>');
    pointer-events: none;
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--primary-color);
    filter: sepia(30%);
}

.article-info {
    padding: 20px;
}

.article-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--primary-color);
    margin-top: 20px;
    font-style: italic;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 3px 12px;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 15px;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 0 var(--primary-color);
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    transform: rotate(0.5deg);
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    transform: rotate(-0.5deg);
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--dark-color);
    font-style: italic;
    letter-spacing: 1px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--primary-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    margin-bottom: 30px;
    filter: sepia(30%);
    box-shadow: var(--shadow);
}

.article-content {
    line-height: 1.9;
    font-size: 18px;
    padding: 0 20px;
}

.article-content p {
    margin-bottom: 25px;
    text-indent: 2em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--primary-color);
    margin: 25px 0;
    box-shadow: var(--shadow);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
    transform: rotate(-1deg);
}

.pagination a {
    padding: 10px 25px;
    background-color: var(--light-color);
    border: 2px solid var(--primary-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: rotate(1deg);
}

/* 友情链接 */
.friend-links {
    background-color: var(--light-color);
    padding: 30px;
    margin: 40px 0;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow);
    transform: rotate(-0.7deg);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 22px;
    text-align: center;
    font-style: italic;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.friend-links-container a {
    padding: 8px 20px;
    background-color: var(--light-color);
    border: 1px solid var(--primary-color);
    font-size: 14px;
    transform: rotate(0.5deg);
    transition: all 0.3s ease;
}

.friend-links-container a:nth-child(even) {
    transform: rotate(-0.5deg);
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: rotate(0deg) scale(1.1);
}

/* 页脚样式 */
footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 3px double var(--secondary-color);
    transform: rotate(0.5deg);
}

.copyright {
    font-size: 14px;
    letter-spacing: 1px;
    transform: rotate(-0.5deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-list {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .main-content, 
    header,
    footer {
        transform: rotate(0deg);
    }
}