:root {
  --aail-blue: #0d6efd;
  --aail-dark: #0b275a;
  --aail-light: #f7f9fc;
  --aail-gray: #495055;
}

html {
  scroll-padding-top: 80px;
}


body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #ffffff;
  color: #1f2d3d;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--aail-blue);
}

a:hover {
  color: #0a58ca;
}

.navbar {
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
  background-color: #ffffff !important;
  backdrop-filter: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

.navbar.scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  background-color: #ffffff !important;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* 语言切换按钮 */
.lang-btn {
  min-width: 2.5rem;
  height: 2rem;
  padding: 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  border: 1.5px solid var(--aail-blue);
  border-radius: 6px;
  background: transparent;
  color: var(--aail-blue);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.lang-btn:hover {
  background: var(--aail-blue);
  color: #fff;
}

.lang-divider {
  color: #adb5bd;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1;
  margin: 0 4px;
  user-select: none;
}

.hero {
  background: linear-gradient(110deg, rgba(4, 82, 62, 0.12), rgba(72, 3, 73, 0.12));
  border-radius: 18px;
  padding: 2rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(13, 110, 253, 0.13) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #0b275a 0%, #0d6efd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-img-glow {
  box-shadow: 0 8px 40px rgba(13, 110, 253, 0.22), 0 2px 12px rgba(0, 0, 0, 0.08);
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--aail-dark);
}

.hero-tagline {
  font-size: 1.1rem;
  color: #2d3b4f;
}

.section-title {
  font-weight: 800;
  color: var(--aail-dark);
  letter-spacing: 0.3px;
}

.section-lead {
  color: var(--aail-gray);
  max-width: 760px;
}

.card-shadow {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card-shadow:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 38px rgba(13, 110, 253, 0.12);
}

.badge-soft {
  background: rgba(13, 110, 253, 0.08);
  color: var(--aail-dark);
  border: 1px solid rgba(13, 110, 253, 0.2);
  padding: 0.4rem 0.65rem;
  border-radius: 50rem;
  font-size: 0.85rem;
}

.img-placeholder {
  background-color: var(--aail-light);
  border: 1px dashed rgba(13, 110, 253, 0.25);
}

.img-banner {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
}


/* .card-img-top:hover {
  transform: scale(1.05);
  transition: 0.3s ease;
} */


.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
}

/* ===== News Timeline ===== */
.news-scroll-box {
  max-height: 640px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

/* ===== Section Scroll Box (Products / Research / People) ===== */
.section-scroll-box {
  max-height: 720px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.section-scroll-box::-webkit-scrollbar {
  width: 4px;
}

.section-scroll-box::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.section-scroll-box::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* ===== Activity Horizontal Scroll ===== */
.activity-scroll-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.activity-scroll-track::-webkit-scrollbar {
  height: 4px;
}

.activity-scroll-track::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.activity-scroll-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.activity-card {
  flex: 0 0 300px;
}

.activity-card-wide {
  flex: 0 0 600px;
}

.activity-card-wide .activity-info {
  text-align: center;
}

.activity-imgs-row {
  display: flex;
}

.activity-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.activity-date {
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.news-scroll-box::-webkit-scrollbar {
  width: 4px;
}

.news-scroll-box::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.news-scroll-box::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.news-timeline {
  position: relative;
  padding-right: 6px;
}

.news-timeline::before {
  content: '';
  position: absolute;
  left: 76px;
  top: 6px;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.news-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  position: relative;
}

.news-item:last-child {
  margin-bottom: 0;
}

.news-date {
  width: 66px;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #6c757d;
  padding-top: 3px;
  line-height: 1.4;
}

.news-connector {
  width: 24px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  position: relative;
  z-index: 1;
}

.news-dot {
  width: 10px;
  height: 10px;
  background: #94a3b8;
  border: 2px solid #fff;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px #cbd5e1;
}

.news-content {
  flex: 1;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  min-width: 0;
}

.news-content-solo {
  background: transparent;
  border: none;
  padding: 0.25rem 0.5rem;
}

.news-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.65;
  min-width: 0;
}

.news-text p {
  margin-bottom: 0.35rem;
}

.news-text p:last-child {
  margin-bottom: 0;
}

.news-text a {
  color: var(--aail-blue);
  text-decoration: none;
  font-weight: 500;
}

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

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

.news-links a {
  font-size: 0.85rem;
  color: var(--aail-blue);
  text-decoration: none;
}

.news-links a:hover {
  text-decoration: underline;
}

.news-media {
  flex-shrink: 0;
  width: 280px;
}

.news-media video,
.news-media img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

@media (max-width: 767px) {
  .news-timeline::before {
    left: 58px;
  }
  .news-date {
    width: 52px;
    font-size: 0.75rem;
  }
  .news-content {
    flex-direction: column;
  }
  .news-media {
    width: 100%;
  }
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--aail-blue);
}

.map-placeholder {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.02));
  border: 1px dashed rgba(13, 110, 253, 0.3);
  border-radius: 12px;
  min-height: 260px;
}

@media (max-width: 767px) {
  .hero {
    padding: 2rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }
}

/* Particle layer behind the content */
.particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* Keep core content above the particle canvas */
body > nav,
body > main,
body > footer {
  position: relative;
  z-index: 1;
}

/* 接近 Tailwind 的 font-extrabold */
.fw-extrabold {
  font-weight: 800;
}

/* 接近 Tailwind 的 font-medium */
.fw-medium {
  font-weight: 500;
}

/* 卡片整体 */
.research-card {
  transition: all 0.25s ease;
  background-color: #fff;
  overflow: hidden;
  position: relative;
}

.research-card::before {
  content: '';
  display: block;
  height: 4px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 16px 16px 0 0;
}

.research-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* 图标容器 */
.icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* 颜色体系 */
.bg-purple { background-color: rgba(168, 85, 247, 0.10); }
.text-purple { color: #a855f7; }

.bg-blue { background-color: rgba(59, 130, 246, 0.10); }
.text-blue { color: #3b82f6; }

.bg-cyan { background-color: rgba(34, 211, 238, 0.10); }
.text-cyan { color: #06b6d4; }

.bg-emerald { background-color: rgba(16, 185, 129, 0.10); }
.text-emerald { color: #10b981; }

/* 每张卡片顶部彩色线 */
.research-card.card-purple::before { background: linear-gradient(90deg, #a855f7, #c084fc); }
.research-card.card-purple { background: linear-gradient(160deg, rgba(168,85,247,0.06) 0%, #fff 60%); }

.research-card.card-blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.research-card.card-blue { background: linear-gradient(160deg, rgba(59,130,246,0.06) 0%, #fff 60%); }

.research-card.card-cyan::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.research-card.card-cyan { background: linear-gradient(160deg, rgba(34,211,238,0.06) 0%, #fff 60%); }

.research-card.card-emerald::before { background: linear-gradient(90deg, #10b981, #34d399); }
.research-card.card-emerald { background: linear-gradient(160deg, rgba(16,185,129,0.06) 0%, #fff 60%); }

/* 蓝色竖线 */
.title-bar{
  display: inline-block;   
  width: 6px;
  height: 36px;
  background: #0d6efd;
  border-radius: 999px;
  margin-right: 10px;     
  vertical-align: middle;    
}

/* 中深灰色 */
.text-muted-dark {
  color: #495057; /* Bootstrap gray-700 */
}

.fw-black {
  font-weight: 1000;
}

.img-decorated {
  border-radius: 18px;              /* 边角钝化 */
  border: 8px solid rgba(4, 45, 20, 0.08); /* 细边框 */
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card-img-link {
  display: block;
}

.card-img-link img {
  max-height: 200px;
  width: auto;
  margin: 0 auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* 悬停反馈（非常重要） */
.card-img-link:hover img {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* 让 card 本身“隐形”，像示例图那样只有照片在浮起来 */
.people-card {
  background: transparent;
  /* text-align: center;  */
}

/* 点击区域不显示下划线 */
.people-img-link {
  display: inline-flex;
  /* width: fit-content; */
  padding: 0;
  margin: 0;
  text-decoration: none;
}

/* 照片框：统一尺寸 + 圆角 + 白底 + 阴影 */
.people-photo {
  width: 200px;        /* 固定宽度 */
  height: 250px;
  margin: 0 auto 18px;        /* 居中 + 和文字拉开距离 */
  border-radius: 16px;        /* 圆角 */
  overflow: hidden;           /* 圆角裁切图片 */
  background: #fff;           /* 照片白底 */
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

/* 统一图片比例：示例接近 4:5（更像照片卡） */
.people-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;        /* 关键：统一高度 */
  object-fit: cover;          /* 填满并裁切，保证好看 */
  display: block;
}

/* 悬停：轻微抬起，像示例那种“可点击” */
.people-img-link:hover .people-photo {
  transform: translateY(-2px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}

/* 文本排版，接近示例的层级感 */
.people-body {
  padding-top: 0;
}

.people-name {
  font-weight: 700;
  margin-bottom: 10px;
}

.people-role {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.people-desc {
  color: rgba(0,0,0,0.65);
  line-height: 1.75;
  margin: 0 auto;
  max-width: 22em;            /* 让描述不要太“散”，像示例那样收一点 */
}
/* ===== 固定右下角吉祥物小人 ===== */
.mascot-widget {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  pointer-events: none;
}

.mascot-img {
  width: 90px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.mascot-bubble {
  position: relative;
  background: #fff;
  border: 2px solid #1a1a2e;
  border-radius: 12px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
  margin-bottom: 10px;
  box-shadow: 3px 3px 0 #1a1a2e;
}

/* 气泡底部三角（边框层） */
.mascot-bubble::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 11px 7px 0;
  border-style: solid;
  border-color: #1a1a2e transparent transparent;
}

/* 气泡底部三角（填充层，遮住border） */
.mascot-bubble::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 6px 0;
  border-style: solid;
  border-color: #fff transparent transparent;
  z-index: 1;
}