/* ========================= */
/* CSS Variables (Tech Blue) */
/* ========================= */
:root {
  --primary-color: #0066cc;
  /* Main Tech Blue */
  --primary-hover: #0052a3;
  /* Darker Blue for hover */
  --accent-color: #00f0ff;
  /* Cyan/Neon blue accent for faint glows */
  --bg-color: #f4f7f9;
  /* Very faint cool grayish-blue background */
  --text-main: #222222;
  --text-muted: #666666;
  --card-bg: #ffffff;
  --border-light: #e3ebf0;

  /* Shared Shadows & Transitions */
  --shadow-sm: 0 2px 8px rgba(0, 102, 204, 0.04);
  --shadow-hover: 0 6px 20px rgba(0, 102, 204, 0.12);
  --glow-hover: 0 0 10px rgba(0, 240, 255, 0.15);
  /* Tech glow */
  --transition-fast: 0.2s ease-out;
  --transition-normal: 0.3s ease;
}

/* 让整个页面别太贴边 */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-main);
}

/* 限制内容宽度 */
main {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* 顶部导航条 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  /* Added slight blur */
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

/* nav 内部左右排布 */
.nav-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* logo 部分 */
.logo a {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
}

/* 导航链接横向布局 */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-color);
}

/* 当前页面高亮 */
.nav-link-active {
  font-weight: 600;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.1rem;
}

/* 简单 mobile 响应式（小屏时让 nav 稍微紧凑一点） */
@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* ========================= */
/* Home page                 */
/* ========================= */

.hero {
  margin-bottom: 2.5rem;
  padding: 3rem 2.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(244, 247, 249, 0.5) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(0, 102, 204, 0.05), inset 0 2px 0 rgba(255, 255, 255, 1);
  backdrop-filter: blur(12px);
}

.hero-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(0, 102, 204, 0.08);
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(0, 102, 204, 0.15);
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, #111111 20%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #111;
  /* fallback */
  line-height: 1.2;
}

.hero-subtitle {
  margin: 0.4rem 0;
  font-size: 1.15rem;
  color: #444;
  font-weight: 400;
}

.hero-subtitle-cn {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* 通用 section 样式 */

.home-section {
  margin-bottom: 2.5rem;
  padding: 2rem 2.5rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* 首页主区域因为里面有卡片，本身边框就够了，我们可以让内部距离稍微再协调一点 */
.home-section h2 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1.2rem;
  color: var(--primary-color);
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 0.5rem;
}

.home-section>p {
  margin: 0.6rem 0;
}

/* Research section */

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.research-card {
  padding: 1.3rem 1.4rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.research-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover), var(--glow-hover);
  border-color: rgba(0, 102, 204, 0.3);
}

.research-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--primary-color);
}

.research-card ul {
  margin: 0.4rem 0 0.3rem;
  padding-left: 1.2rem;
}

.research-note {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #666;
}

.research-subsection h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.research-subsection ul {
  margin: 0.2rem 0 0;
  padding-left: 1.2rem;
}

/* Projects section */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  padding: 1.3rem 1.4rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover), var(--glow-hover);
  border-color: rgba(0, 102, 204, 0.3);
}

.project-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.project-meta {
  font-size: 0.85rem;
  color: #777;
  margin: 0.1rem 0 0.4rem;
}

.project-card ul {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
}

.project-more {
  margin-top: 1rem;
}

/* People section */

.people-more {
  margin-top: 0.6rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--primary-color);
  background: transparent;
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  /* Pill shape for a modern premium feel */
  border: 1px solid var(--primary-color);
  transition: all var(--transition-normal);
}

.btn-link:hover {
  color: #ffffff;
  background: var(--primary-color);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
  transform: translateY(-2px);
}

/* Home 页的响应式 */

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .research-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
}



.site-footer {
  margin-top: 4rem;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 2fr);
  gap: 1.5rem;
}

.footer-column h3,
.footer-column h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.footer-lab-name-en {
  font-size: 1rem;
  font-weight: 700;
}

.footer-lab-name-cn {
  margin: 0.15rem 0 0.4rem;
  font-size: 0.9rem;
  color: #666;
}

.footer-affiliation {
  margin: 0;
}

.footer-address {
  margin: 0 0 0.4rem;
}

.footer-contact-list,
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0;
}

.footer-contact-list li,
.footer-link-list li {
  margin-bottom: 0.2rem;
}

.footer-link-list a {
  color: #444;
  text-decoration: none;
}

.footer-link-list a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.footer-wechat {
  margin-top: 0.5rem;
}

.footer-wechat img {
  width: 96px;
  height: auto;
  display: block;
  border: 1px solid #ddd;
}

/* 底部细条 */
.footer-bottom {
  border-top: 1px solid #e0e0e0;
  padding: 0.75rem 1.5rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
}

/* Mobile: 三列改成一列 */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ========================= */
/* Publications page         */
/* ========================= */

.pub-year {
  margin-top: 2rem;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-left: 4px solid var(--primary-color);
  padding-left: 0.6rem;
}

/* 第一年的年份和标题之间距离略小 */
.pub-year:first-of-type {
  margin-top: 1.5rem;
}

.pub-list {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
}

.pub-item {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.75rem;
}

/* 小圆点（比普通 bullet 更精致一点） */
.pub-item::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-size: 0.9rem;
  color: #999;
}

.pub-title {
  font-weight: 600;
  color: #111;
}

.pub-authors {
  display: inline-block;
  margin-top: 0.1rem;
  font-size: 0.9rem;
  color: #555;
}

.pub-venue {
  display: inline-block;
  margin-top: 0.1rem;
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
}

.pub-item a {
  font-size: 0.9rem;
  margin-left: 0.25rem;
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

.pub-item a:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

/* 动感高亮的作者名字 */
.author-highlight {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  padding: 0 2px;
  background: rgba(0, 102, 204, 0.05);
  border-radius: 4px;
}

.author-highlight:hover {
  text-decoration: none !important;
  color: #fff !important;
  background: var(--primary-color);
  box-shadow: 0 2px 6px rgba(0, 102, 204, 0.3);
}

/* 如果之后想加标签，比如 [Best Paper]，可以用 span.pub-tag */
.pub-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(0, 102, 204, 0.1);
  /* light blue bg */
  color: var(--primary-hover);
  font-weight: 500;
}

/* Publications 页的顶部标题 */
.page-title {
  margin-bottom: 0.5rem;
}

.page-subtitle {
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  color: #555;
}

/* 移动端微调：减少左右空白，年份与条目更紧凑 */
@media (max-width: 768px) {
  .pub-year {
    margin-top: 1.5rem;
  }

  .pub-item {
    margin-bottom: 0.6rem;
  }
}


/* ========================= */
/* Projects page             */
/* ========================= */

.projects-page {
  margin-top: 0.5rem;
}

.project-grid-page {
  margin-top: 1.2rem;
}

/* 复用首页的 project-card 样式，在此基础上稍微更信息化一点 */
.project-card-page {
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.project-card-page:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover), var(--glow-hover);
  border-color: rgba(0, 102, 204, 0.3);
}

.project-title {
  margin: 0;
  font-size: 1.1rem;
}

.project-title a {
  text-decoration: none;
  color: var(--text-main);
  transition: color var(--transition-fast);
}

.project-title a:hover {
  color: var(--primary-color);
}

.project-short {
  margin: 0.35rem 0 0.4rem;
  font-size: 0.95rem;
  color: #444;
}

.project-meta-line {
  margin: 0.2rem 0 0.3rem;
  font-size: 0.85rem;
  color: #666;
}

.project-meta-label {
  font-weight: 600;
}

.project-meta-sep {
  margin: 0 0.3rem;
  color: #ccc;
}

.project-status {
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: #e6f3ff;
  color: #0052b3;
}

/* 标签样式 */
.project-tags {
  margin: 0.2rem 0 0.4rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(0, 102, 204, 0.08);
  /* Faint blue tag */
  color: var(--primary-hover);
  margin-right: 0.25rem;
  margin-bottom: 0.15rem;
}

/* “View project details” 链接位置 */
.project-more-link {
  margin-top: 0.2rem;
}

/* 响应式：中小屏时变单列，更易读 */
@media (max-width: 768px) {
  .project-grid.project-grid-page {
    grid-template-columns: 1fr;
  }

  .project-card-page {
    padding: 1rem 1.05rem;
  }
}

/* ========================= */
/* People page               */
/* ========================= */

.people-role {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem 1.6rem;
}

.people-card {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.people-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover), var(--glow-hover);
  border-color: rgba(0, 102, 204, 0.3);
}

.people-photo img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ddd;
}

.people-name {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
}

.people-email {
  font-size: 0.9rem;
  color: #666;
  margin: 0.2rem 0 0.4rem;
}

.people-interests {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: #444;
}

.people-interests li {
  margin-bottom: 0.1rem;
}

/* Mobile */
@media(max-width:768px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}

/* Icon Customizations */
i.fas,
i.fab,
i.far {
  margin-right: 0.25rem;
}

.logo-text i.fas {
  margin-right: 0.4rem;
}

.research-card h3 i {
  color: var(--primary-color);
  margin-right: 0.35rem;
}

.pub-year i {
  color: var(--primary-color);
  margin-right: 0.4rem;
}

/* Neuro-Symbolic Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 240, 255, 0.03) 100%);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.highlight-box h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
}

.highlight-box p {
  margin: 0;
  font-size: 1rem;
}

/* Fusion Grid Layout */
.fusion-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media(max-width: 900px) {
  .fusion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width: 600px) {
  .fusion-grid {
    grid-template-columns: 1fr;
  }
}