/* 生成艺术风格 - 砖红色调 */
:root {
    --primary: #B33F40; /* 砖红主色 */
    --secondary: #F9564F; /* 亮砖红 */
    --dark: #1A1A1A; /* 深色背景 */
    --light: #F8F1E5; /* 米白 */
    --accent: #7D8CA3; /* 蓝灰点缀 */
    --text: #333333;
    --text-light: #F8F1E5;
  }
  
  /* 生成艺术基础样式 */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
  }
  
  body {
    background-color: var(--light);
    color: var(--text);
    overflow-x: hidden;
    position: relative;
  }
  
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
      radial-gradient(circle at 20% 30%, rgba(179, 63, 64, 0.1) 0%, transparent 25%),
      linear-gradient(45deg, transparent 48%, var(--primary) 48%, var(--primary) 52%, transparent 52%),
      linear-gradient(-45deg, transparent 48%, var(--primary) 48%, var(--primary) 52%, transparent 52%);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: -1;
  }
  
  a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
  }
  
  a:hover {
    color: var(--secondary);
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  /* 生成艺术风格头部 */
  header {
    background-color: var(--dark);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
  }
  
  .logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--light);
    position: relative;
    padding: 5px 10px;
  }
  
  .logo::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
  }
  
  .logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  
  nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
  }
  
  nav ul li a {
    color: var(--light);
    padding: 5px 10px;
    position: relative;
  }
  
  nav ul li a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
  }
  
  nav ul li a:hover::before {
    width: 100%;
  }
  
  /* 生成艺术内容区域 */
  .main-content {
    background-color: white;
    margin: 40px 0;
    padding: 30px;
    position: relative;
    box-shadow: 10px 10px 0 var(--primary);
    border: 2px solid var(--dark);
  }
  
  .main-content::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }
  
  .section-title {
    font-size: 24px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
    position: relative;
    color: var(--dark);
  }
  
  .section-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50%;
    height: 3px;
    background-color: var(--secondary);
  }
  
  /* 生成艺术网格布局 */
  .art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
  }
  
  .art-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
      linear-gradient(90deg, transparent 49%, var(--primary) 49%, var(--primary) 51%, transparent 51%),
      linear-gradient(0deg, transparent 49%, var(--primary) 49%, var(--primary) 51%, transparent 51%);
    background-size: 30px 30px;
    opacity: 0.1;
    pointer-events: none;
  }
  
  .art-card {
    background: white;
    border: 2px solid var(--dark);
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
  }
  
  .art-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 8px 8px 0 var(--primary);
  }
  
  .art-card::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px dashed var(--primary);
    pointer-events: none;
  }
  
  .card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 1px solid var(--dark);
    filter: grayscale(30%);
    transition: filter 0.3s ease;
  }
  
  .art-card:hover .card-image {
    filter: grayscale(0%);
  }
  
  .card-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--dark);
  }
  
  .card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--primary);
  }
  
  /* 文章详情页样式 */
  .art-article {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
  }
  
  .article-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    display: inline-block;
  }
  
  .article-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
  }
  
  .article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    color: var(--primary);
  }
  
  .article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin: 30px 0;
    border: 2px solid var(--dark);
    box-shadow: 8px 8px 0 var(--primary);
  }
  
  .article-content {
    line-height: 1.8;
    font-size: 16px;
  }
  
  .article-content p {
    margin-bottom: 20px;
  }
  
  .article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border: 1px solid var(--dark);
  }
  
  /* 分页导航 */
  .pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
  }
  
  .pagination a {
    padding: 10px 20px;
    border: 2px solid var(--dark);
    color: var(--dark);
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .pagination a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    transition: all 0.6s ease;
  }
  
  .pagination a:hover::before {
    left: 100%;
  }
  
  .pagination a:hover {
    background-color: var(--dark);
    color: var(--light);
  }
  
  /* 友情链接样式 */
  .art-links {
    background-color: var(--dark);
    padding: 30px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
  }
  
  .art-links::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
      linear-gradient(45deg, transparent 45%, var(--primary) 45%, var(--primary) 55%, transparent 55%),
      linear-gradient(-45deg, transparent 45%, var(--primary) 45%, var(--primary) 55%, transparent 55%);
    background-size: 20px 20px;
    opacity: 0.1;
  }
  
  .art-links h3 {
    color: var(--light);
    margin-bottom: 20px;
    font-size: 22px;
    position: relative;
    display: inline-block;
  }
  
  .art-links h3::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
  }
  
  .links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .links-container a {
    padding: 8px 15px;
    background-color: rgba(249, 86, 79, 0.2);
    color: var(--light);
    border: 1px solid var(--secondary);
    transition: all 0.3s ease;
  }
  
  .links-container a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
  }
  
  /* 页脚样式 */
  footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 30px 0;
    text-align: center;
    position: relative;
  }
  
  footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
  }
  
  .copyright {
    font-size: 14px;
    margin-top: 10px;
  }
  
  /* 响应式设计 */
  @media (max-width: 768px) {
    .header-content {
      flex-direction: column;
      gap: 20px;
    }
    
    nav ul {
      flex-wrap: wrap;
      justify-content: center;
    }
    
    .art-grid {
      grid-template-columns: 1fr;
    }
    
    .article-title {
      font-size: 26px;
    }
    
    .article-meta {
      gap: 10px;
    }
  }