/* 手绘插画风格 */
:root {
    --primary: #5e3a00;
    --secondary: #8c6239;
    --light-bg: #fff9e6;
    --dark-text: #3a2800;
    --border-color: #d4c9a8;
    --highlight: #f0e8d0;
    --shadow: 3px 3px 0 rgba(0,0,0,0.1);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Caveat', 'Comic Sans MS', cursive, sans-serif;
  }
  
  body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
    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 0h100v100H0z" fill="none"/><path d="M10 10h80v80H10z" stroke="%23d4c9a8" stroke-width="1" stroke-dasharray="5,5" fill="none"/></svg>');
    background-size: 100px 100px;
  }
  
  /* 手绘风格头部 */
  .handdrawn-header {
    background-color: var(--light-bg);
    border-bottom: 3px dashed var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .site-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    text-shadow: var(--shadow);
    position: relative;
  }
  
  .site-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 50%;
  }
  
  /* 手绘风格导航 */
  .handdrawn-nav {
    width: 100%;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    padding: 0.5rem 0;
    margin-top: 1rem;
  }
  
  .handdrawn-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .handdrawn-nav a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0.3rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    background-color: var(--light-bg);
    box-shadow: var(--shadow);
  }
  
  .handdrawn-nav a:hover {
    color: var(--primary);
    background-color: var(--highlight);
    transform: rotate(-2deg) scale(1.05);
  }
  
  /* 手绘风格内容区 */
  .main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
  
  /* 手绘风格文章网格 */
  .handdrawn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
  }
  
  /* 手绘风格卡片 */
  .handdrawn-card {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    position: relative;
    border-radius: 15px;
    transition: all 0.3s ease;
  }
  
  .handdrawn-card:hover {
    transform: rotate(1deg) scale(1.02);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.15);
  }
  
  .card-image {
    margin-bottom: 1rem;
    overflow: hidden;
    border: 2px solid var(--border-color);
    border-radius: 10px;
  }
  
  .card-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(30%) contrast(110%);
  }
  
  .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    position: relative;
    display: inline-block;
  }
  
  .card-title:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
  }
  
  .card-title a {
    color: var(--primary);
    text-decoration: none;
  }
  
  .card-title a:hover {
    text-decoration: underline;
  }
  
  .card-desc {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .card-footer {
    color: var(--secondary);
    font-size: 0.9rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 0.8rem;
    display: flex;
    justify-content: space-between;
  }
  
  /* 手绘风格侧边栏 */
  .sidebar {
    border-left: 2px dashed var(--border-color);
    padding-left: 1.5rem;
  }
  
  .sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
    position: relative;
  }
  
  .sidebar-title:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30%;
    height: 3px;
    background-color: var(--secondary);
  }
  
  .sidebar-list {
    list-style: none;
    margin-bottom: 2rem;
  }
  
  .sidebar-list li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--border-color);
    position: relative;
    padding-left: 1.5rem;
  }
  
  .sidebar-list li:before {
    content: '✏️';
    position: absolute;
    left: 0;
  }
  
  .sidebar-list a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .sidebar-list a:hover {
    color: var(--secondary);
    text-decoration: underline;
  }
  
  /* 手绘风格分类标题 */
  .section-headline {
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
    position: relative;
  }
  
  .section-headline:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40%;
    height: 3px;
    background-color: var(--secondary);
  }
  
  /* 手绘风格分页 */
  .handdrawn-pagination {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    gap: 1rem;
  }
  
  .handdrawn-pagination a {
    color: var(--primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    background-color: var(--light-bg);
    box-shadow: var(--shadow);
  }
  
  .handdrawn-pagination a:hover {
    background-color: var(--highlight);
    transform: rotate(-2deg);
  }
  
  /* 手绘风格文章详情 */
  .handdrawn-article {
    background-color: var(--light-bg);
    padding: 2rem;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    position: relative;
    border-radius: 15px;
  }
  
  .article-header {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .article-headline {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
  }
  
  .article-headline:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 4px;
  }
  
  .article-subtitle {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--secondary);
  }
  
  .article-meta {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    justify-content: center;
    gap: 2rem;
  }
  
  .article-image {
    margin: 2rem 0;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
  }
  
  .article-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(30%) contrast(110%);
  }
  
  .article-body {
    line-height: 1.8;
    font-size: 1.1rem;
  }
  
  .article-body p {
    margin-bottom: 1rem;
  }
  
  .article-body img {
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    display: block;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    filter: sepia(30%) contrast(110%);
  }
  
  .article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-color);
  }
  
  .article-navigation a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    background-color: var(--light-bg);
    box-shadow: var(--shadow);
  }
  
  .article-navigation a:hover {
    background-color: var(--highlight);
    transform: rotate(-2deg);
  }
  
  /* 手绘风格友情链接 */
  .handdrawn-links {
    margin: 3rem 0;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border: 2px dashed var(--border-color);
    border-radius: 15px;
  }
  
  .links-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
    position: relative;
  }
  
  .links-title:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30%;
    height: 3px;
    background-color: var(--secondary);
  }
  
  .links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .links-list a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    background-color: var(--light-bg);
    box-shadow: var(--shadow);
  }
  
  .links-list a:hover {
    background-color: var(--highlight);
    transform: rotate(2deg);
  }
  
  /* 手绘风格页脚 */
  .handdrawn-footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 3px dashed var(--border-color);
    margin-top: 2rem;
  }
  
  .copyright {
    font-size: 0.9rem;
    color: var(--secondary);
  }
  
  /* 响应式设计 */
  @media (max-width: 768px) {
    .main-content {
      grid-template-columns: 1fr;
      padding: 0 1.5rem;
    }
    
    .sidebar {
      border-left: none;
      padding-left: 0;
      border-top: 2px dashed var(--border-color);
      padding-top: 1.5rem;
      margin-top: 2rem;
    }
    
    .article-body {
      column-count: 1;
    }
    
    .handdrawn-grid {
      grid-template-columns: 1fr;
    }
    
    .site-title {
      font-size: 2.5rem;
    }
    
    .handdrawn-nav ul {
      gap: 1rem;
    }
  }