/* ====== 书法家子页面样式 ====== */
body {
  margin: 0;
  padding: 0;
  font-family: "KaiTi", "STKaiti", serif;
  background: #fdfaf6;
  color: #333;
}
.navbar {
  background: #d2b48c; /* 浅棕色导航栏 */
  padding: 10px 20px;
}
.navbar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: flex-start;
}
.navbar li {
  margin-right: 20px;
}
.navbar a {
  color: #5a3e1b;
  text-decoration: none;
  font-weight: bold;
}
/* 页面主体 */
.container {
  max-width: 960px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.container h1 {
  font-size: 42px;
  color: #5a3e1b;
  text-align: center;
  margin-bottom: 10px;
}
.subtitle {
  text-align: center;
  color: #8b4513;
  font-size: 18px;
  margin-bottom: 30px;
}
.artist-info {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
}
.artist-portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 30px;
  border: 3px solid #d2b48c;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.artist-portrait:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.info-text {
  flex-grow: 1;
  text-align: justify;
}
.info-text h2 {
  font-size: 28px;
  color: #8b4513;
  margin-top: 0;
  margin-bottom: 15px;
}
.info-text p {
  line-height: 1.8;
  margin-bottom: 15px;
}
.works-section {
  margin-top: 40px;
}
.works-section h2 {
  font-size: 32px;
  color: #5a3e1b;
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #d2b48c;
  padding-bottom: 10px;
}
.work-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  background: #fdfaf6;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}
.work-item img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  margin-right: 20px;
  border: 1px solid #eee;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.work-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
.work-item h3 {
  font-size: 22px;
  color: #8b4513;
  margin-top: 0;
  margin-bottom: 10px;
}
.work-item p {
  line-height: 1.6;
  text-align: justify;
}
/* 底部版权 */
.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 {
    margin: 20px 10px;
    padding: 15px;
  }
  
  .container h1 {
    font-size: 32px;
  }
  
  .subtitle {
    font-size: 16px;
  }
  
  .artist-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .artist-portrait {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .info-text h2 {
    font-size: 24px;
  }
  
  .works-section h2 {
    font-size: 26px;
  }
  
  .work-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .work-item img {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 10px 5px;
    padding: 10px;
  }
  
  .container h1 {
    font-size: 24px;
  }
  
  .subtitle {
    font-size: 14px;
  }
  
  .artist-portrait {
    width: 150px;
    height: 150px;
  }
  
  .info-text h2 {
    font-size: 20px;
  }
  
  .info-text p {
    font-size: 14px;
  }
  
  .works-section h2 {
    font-size: 22px;
  }
  
  .work-item {
    padding: 10px;
  }
  
  .work-item img {
    width: 150px;
    height: 100px;
  }
  
  .work-item h3 {
    font-size: 18px;
  }
  
  .work-item p {
    font-size: 14px;
  }
}