/* === 全局设置 === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === 顶部导航栏 === */
.navbar {
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  padding: 30px 0 20px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-title {
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-right: 60px;
}

.nav-links a {
  margin-left: 24px;
  color: #888;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-links a.active,
.nav-links a:hover {
  color: #000;
}

/* === 横幅图片区域 === */
.banner {
  width: 100%;
  height: 250px;
  background-image: url("assets/banner.png");
  background-position: center top; /* 向上偏移以显示人物头像 */
  background-repeat: no-repeat;
  background-size: cover;
}

/* === 主体内容区布局 === */
.main-content {
  display: flex;
  margin-top: 40px;
  gap: 40px;
  flex-wrap: wrap;
}

.left-column {
  flex: 1 1 250px;
  text-align: center;
}

.left-column .avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 0%;
  margin-bottom: 15px;
  border: 1px solid #ccc;
}

.title-block {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

.sidebar-link {
  display: inline-block;
  color: #333;
  font-size: 14px;
  margin-bottom: 6px;
  text-decoration: none;
  padding-left: 4px;
  transition: color 0.2s;
}

.sidebar-link:hover {
  color: #0066cc;
  text-decoration: underline;
}

.social-links {
  margin-top: 10px;
  line-height: 1.8;
}

.right-column {
  flex: 2 1 600px;
}

.right-column h2 {
  font-size: 20px;
  margin-bottom: 10px;
  margin-top: 30px;
}

.right-column ul {
  padding-left: 20px;
  list-style: disc;
}

.right-column p {
  letter-spacing: 0.4px;      /* 字符间距稍大 */
  line-height: 1.85;          /* 行距略加宽 */
  margin-bottom: 20px;        /* 段落间距 */
  font-size: 15.5px;
}

/* === 折叠块样式 === */
details summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  margin-top: 20px;
  list-style: none;
  position: relative;
  padding-left: 20px;
  transition: color 0.3s;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary:hover {
  color: #0066cc;
}

details[open] summary::before {
  content: "▼";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 14px;
  transition: transform 0.3s ease;
}

details:not([open]) summary::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 14px;
}

details ul {
  margin: 10px 0 20px 20px;
  padding-left: 20px;
  border-left: 2px solid #eee;
}

details ul li {
  margin-bottom: 10px;
}

.hobby-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 40px;
}

.hobby-card .label-chip {
  margin-bottom: 15px;
  display: inline-block;
}

.hobby-card p {
  font-size: 15.5px;
  line-height: 1.85;
  margin-bottom: 20px;
}

.hobby-card .gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hobby-card .gallery img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  width: 260px;
}

.gallery figure {
  margin: 0;
  text-align: center;
  width: 260px;
}

.gallery figure img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.gallery figure figcaption {
  font-size: 13.5px;
  color: #666;
  margin-top: 8px;
}

/* === 页脚样式 === */
.footer {
  background-color: #f9f9f9;
  padding: 30px 0;
  font-size: 14px;
  color: #666;
  text-align: center;
  border-top: 1px solid #ddd;
  margin-top: 60px;
}

.footer a {
  color: #666;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.research-section {
  margin-top: 40px;
}
.label-chip {
  display: inline-block;
  background-color: #bf5700;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.publication-item {
  margin: 10px 0 16px 0;
  padding-left: 18px;
  text-indent: -18px;
  line-height: 1.8;
}
.publication-item a {
  color: #bf5700;
  margin-left: 4px;
}
.publication-item a:hover {
  text-decoration: underline;
}

/* === 响应式支持 === */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .navbar-inner {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    margin-top: 10px;
  }

  .nav-links a {
    display: inline-block;
    margin: 5px 10px;
  }
}
