/* ====== 左右分栏，书法家列表与简介 ====== */
body {
  margin: 0;
  padding: 0;
  font-family: "SimSun", serif;
  background: #f8f8f8;
  color: #333;
}
.navbar {
  background: #6a0505; /* 深红色导航栏 */
  padding: 10px 20px;
}
.navbar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: flex-end;
}
.navbar li {
  margin-left: 20px;
}
.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}
/* 页面主体布局 */
.container {
  display: flex;
  margin: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.artist-list {
  width: 250px;
  padding: 20px;
  border-right: 1px solid #eee;
  background: #fdf5e6; /* 浅米色侧边栏 */
}
.artist-list h2 {
  color: #6a0505;
  margin-top: 0;
  border-bottom: 2px solid #6a0505;
  padding-bottom: 10px;
}
.artist-list ul {
  list-style: none;
  padding: 0;
}
.artist-list li {
  margin-bottom: 10px;
}
.artist-list a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  display: block;
  padding: 5px 0;
  transition: color 0.3s ease;
}
.artist-list a:hover {
  color: #a0522d; /* 棕色 */
}
.artist-detail {
  flex-grow: 1;
  padding: 20px;
}
.artist-detail h1 {
  color: #6a0505;
  text-align: center;
  margin-top: 0;
  margin-bottom: 30px;
}
.artist-preview {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #ddd;
  text-align: center;
}
.artist-preview:last-child {
  border-bottom: none;
}
.artist-preview h3 {
  color: #a0522d;
  font-size: 24px;
  margin-bottom: 15px;
}
.artist-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.artist-img:hover {
  transform: scale(1.05); /* 放大特效 */
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.artist-preview p {
  line-height: 1.8;
  text-align: justify;
  margin: 0 auto;
  max-width: 600px;
}
.more-link {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  background: #a0522d;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.more-link:hover {
  background: #8b4513;
}
/* 底部版权 */
.footer {
  text-align: center;
  font-size: 12px;
  color: #999;
  padding: 20px;
}

/* ====== 响应式设计 ====== */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    align-items: center;
  }
  
  .navbar li {
    margin: 5px 0;
  }
  
  .container {
    flex-direction: column;
    margin: 10px;
  }
  
  .artist-list {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
  }
  
  .artist-detail {
    padding: 15px;
  }
  
  .artist-detail h1 {
    font-size: 24px;
  }
  
  .artist-preview h3 {
    font-size: 20px;
  }
  
  .artist-img {
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 5px;
  }
  
  .artist-list {
    padding: 15px;
  }
  
  .artist-detail {
    padding: 10px;
  }
  
  .artist-detail h1 {
    font-size: 20px;
  }
  
  .artist-preview h3 {
    font-size: 18px;
  }
  
  .artist-preview p {
    font-size: 14px;
  }
  
  .artist-img {
    max-width: 200px;
  }
  
  .more-link {
    padding: 6px 12px;
    font-size: 14px;
  }
}