/* 踌躇风格 - 不对称大地色系 */
:root {
    --primary-color: #8B5A2B;
    --secondary-color: #D2B48C;
    --accent-color: #A0522D;
    --bg-color: #F5F5DC;
    --text-color: #5C4033;
    --highlight: #CD853F;
    --shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', 'Brush Script MT', cursive;
}

body {
    background-color: var(--bg-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="M10,10 Q15,5 20,10 T30,10 T40,10 T50,10 T60,10 T70,10 T80,10 T90,10" stroke="%23D2B48C" fill="none" stroke-width="0.5" opacity="0.3"/></svg>');
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
    border-bottom: 1px dashed var(--secondary-color);
}

a:hover {
    color: var(--primary-color);
    border-bottom-style: solid;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 不对称头部 */
header {
    background-color: var(--bg-color);
    padding: 30px 0 15px;
    border-bottom: 2px solid var(--secondary-color);
    transform: rotate(-0.5deg);
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 10px;
}

.logo {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 2px 2px 0 var(--secondary-color);
    transform: rotate(2deg);
    display: inline-block;
    margin-left: -10px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    transform: rotate(1deg);
}

nav ul li a {
    padding: 5px 0;
    font-size: 1.1rem;
    border-bottom: none;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 手绘风格内容区 */
.main-content {
    background-color: white;
    padding: 40px;
    margin: 30px 0 50px;
    box-shadow: var(--shadow);
    border: 1px solid var(--secondary-color);
    position: relative;
    transform: rotate(0.7deg);
}

.main-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid var(--secondary-color);
    z-index: -1;
    transform: rotate(1deg);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    transform: rotate(-1deg);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70%;
    height: 4px;
    background-color: var(--highlight);
    transform: rotate(1deg);
}

/* 不规则网格布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    align-items: start;
}

.article-card {
    background: white;
    border: 1px solid var(--secondary-color);
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    transform: rotate(0.5deg);
}

.article-card:nth-child(2n) {
    transform: rotate(-0.5deg);
}

.article-card:hover {
    transform: rotate(0deg) scale(1.02) !important;
    box-shadow: 8px 8px 0 var(--secondary-color);
}

.card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border: 1px solid var(--secondary-color);
    margin-bottom: 20px;
    filter: sepia(30%);
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.4;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-top: 20px;
    font-style: italic;
}

/* 详情页特殊样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    transform: rotate(-0.3deg);
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    transform: rotate(0.5deg);
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--accent-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-style: italic;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border: 1px solid var(--secondary-color);
    margin: 30px 0;
    filter: sepia(30%);
    box-shadow: var(--shadow);
}

.article-content {
    line-height: 1.9;
    font-size: 1.1rem;
}

.article-content p {
    margin-bottom: 25px;
    text-align: justify;
}

/* 手绘分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
    transform: rotate(-1deg);
}

.pagination a {
    padding: 8px 20px;
    border: 1px solid var(--secondary-color);
    background-color: white;
    transition: all 0.3s;
    font-style: italic;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 手绘友情链接 */
.friend-links {
    background-color: white;
    padding: 30px;
    margin: 50px 0;
    border: 1px solid var(--secondary-color);
    transform: rotate(0.5deg);
    box-shadow: var(--shadow);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-container a {
    padding: 5px 15px;
    border: 1px dashed var(--secondary-color);
    font-style: italic;
}

.friend-links-container a:hover {
    border-style: solid;
    background-color: var(--bg-color);
}

/* 手绘页脚 */
footer {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 80px;
    position: relative;
    transform: rotate(0.5deg);
}

footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(135deg, transparent 33%, var(--primary-color) 33%), 
                linear-gradient(-135deg, transparent 33%, var(--primary-color) 33%);
    background-size: 20px 40px;
}

.copyright {
    font-size: 1rem;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .main-content,
    .article-detail,
    footer {
        transform: rotate(0deg) !important;
    }
}