/* ========== 基础设置 ========== */
#banner,
.banner {
  background: transparent !important;
  background-color: transparent !important;
}

#web_bg {
  background: transparent !important;
  background-color: transparent !important;
}

/* 只隐藏导航和副标题 */
#nav,
#page-header #nav,
.nav,
header#page-header nav,
#site-subtitle,
#subtitle,
.subtitle,
#blog_name {
  display: none !important;
}

/* ========== 开场页：固定视口，由 JS 控制淡出 ========== */
#page-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 20 !important;
  background: #000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

#page-header #site-info,
#page-header .site-info,
#page-header .headers,
#page-header .page-header-content,
#page-header .header-inner,
#page-header #page-site-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  width: 100% !important;
  min-height: 100vh !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
}

#page-header #site-title,
#page-header .site-title,
#page-header #site-name,
#page-header .site-name,
#page-header #handwriting-title,
#page-header #handwriting-wrap,
#page-header svg {
  display: block !important;
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 0 auto !important;
  transform: none !important;
  text-align: center !important;
  max-width: 90vw !important;
  color: #ffffff !important;
}

#page-header #handwriting-wrap,
#page-header #handwriting-title {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  max-width: 90vw !important;
  width: auto !important;
}

#recent-posts,
.recent-posts,
.recent-post-item {
  display: none !important;
}

#rightside,
#go-up,
.go-up,
#sidebar-menus,
.rightside-show,
#rightside-config-hide,
#rightside-config-show {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#mask,
.mask,
#loading-box,
.loading-bg,
#footer,
#footer-wrap,
footer,
.footer {
  display: none !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

html {
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html,
body {
  background: #000 !important;
}

#vanta-bg,
.vanta-canvas,
canvas.vanta-canvas {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

#body-wrap,
#content-inner,
.layout {
  position: relative;
  z-index: 1;
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
}

#home-pages {
  width: 100%;
  padding-top: 100vh !important;
  position: relative !important;
  z-index: 10 !important;
  background: transparent !important;
}

.home-page {
  min-height: calc(100vh + 150px);
  width: 100%;
  display: block;
  padding: 0 6%;
  box-sizing: border-box;
  position: relative;
  background: transparent !important;
}

.page-inner {
  position: sticky;
  top: 12vh;
  width: 100%;
  max-width: 1100px;
  padding-bottom: 10vh;
  box-sizing: border-box;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.home-page.is-leaving .page-inner {
  opacity: 0;
  transform: translateY(-28px);
  pointer-events: none;
}

.page-title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1.2px;
  margin-bottom: 1.8rem;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

.page-title .cursor,
.welcome-inner .cursor {
  color: #ffffff;
  margin-left: 2px;
  opacity: 0;
  animation: none;
}

.page-title .cursor.is-typing,
.welcome-inner .cursor.is-typing {
  opacity: 1;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.home-page .welcome-content {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  width: 100%;
  max-width: 1100px;
  gap: 3rem;
  flex-wrap: nowrap !important;
}

.home-page .welcome-left {
  flex: 1 1 auto;
  max-width: 680px;
  min-width: 0;
}

.home-page .welcome-inner {
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.25;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.home-page .intro-text {
  max-width: 680px;
  margin-top: 2.2rem;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  line-height: 1.75;
  color: #ffffff;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  font-weight: 400;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.home-page .welcome-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.1rem;
  padding-top: 7.2rem;
  min-width: 130px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.home-page .link-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.home-page .link-item:hover {
  opacity: 1;
  transform: translateX(5px);
}

.home-page .link-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.page-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.page-card.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

#research-card,
#projects-card {
  display: flex !important;
  flex-direction: row !important;
  gap: 2.8rem;
  margin-top: 0.5rem !important;
  width: 1100px;
  max-width: 92vw;
  min-height: 620px;
  background: rgba(12, 12, 14, 0.95) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px;
  padding: 2.2rem 2.5rem;
  overflow: hidden;
}

.research-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem;
  min-width: 240px;
  flex-shrink: 0;
  padding-top: 0.2rem;
}

.research-btn {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  font-size: 0.95rem;
  user-select: none;
  width: fit-content;
}

.research-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1px);
}

.research-btn.active {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
  box-shadow: 0 0 0 1px rgba(255, 107, 44, 0.25);
}

.btn-plus {
  font-size: 1.15rem;
  opacity: 0.75;
  line-height: 1;
  display: inline !important;
}

.btn-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b2c;
  display: none !important;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(255, 107, 44, 0.55);
}

.research-btn.active .btn-plus {
  display: none !important;
}

.research-btn.active .btn-dot {
  display: inline-block !important;
}

.research-right {
  flex: 1;
  min-height: 0;
  max-height: 560px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.6rem;
}

.research-panel {
  display: none !important;
  color: #ffffff;
}

.research-panel.active {
  display: block !important;
}

.research-panel h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.85rem 0;
  color: #ffffff;
}

.research-panel p {
  font-size: 0.96rem;
  line-height: 1.7;
  opacity: 0.88;
  margin: 0;
  color: #ffffff;
}

.research-panel p + p {
  margin-top: 0.85rem;
}

/* 图片/视频：宽 80%，不溢出 */
.research-figure {
  margin: 1.2rem 0 1rem;
  width: 80%;
  max-width: 80%;
  box-sizing: border-box;
}

.research-figure img,
.research-figure video,
.research-panel img,
.research-panel video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  box-sizing: border-box;
}

.research-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
}

#interest-cards {
  display: flex;
  gap: 1.4rem;
  margin-top: 0.5rem;
  max-width: 1100px;
  width: 100%;
}

.interest-card {
  flex: 1;
  background: rgba(16, 16, 18, 0.95) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 1.8rem 1.6rem 1.4rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.interest-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.75rem 0;
}

.interest-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.interest-card-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.interest-plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  font-size: 0;
}

.interest-plus::before {
  content: '+';
  font-size: 1.35rem;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
}

#awards-section {
  display: flex;
  flex-direction: row;
  gap: 3.5rem;
  margin-top: 0.5rem;
  max-width: 1000px;
  width: 100%;
}

.awards-col {
  flex: 1;
  min-width: 0;
  position: relative;
  padding-left: 0.35rem;
}

.awards-col-title {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.4rem;
  font-weight: 600;
}

/* 奖学金/奖项：年份前竖线时间轴 */
.award-item {
  position: relative;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
  padding-left: 1.15rem;
}

.award-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: -1.6rem;
  width: 2px;
  background: rgba(255, 255, 255, 0.22);
}

.award-item:last-child::before {
  bottom: 0.2rem;
}

.award-item::after {
  content: '';
  position: absolute;
  left: -3px;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b2c;
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.2);
}

.award-year {
  min-width: 78px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  flex-shrink: 0;
}

.award-content {
  flex: 1;
  min-width: 0;
}

.award-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.award-detail {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

#pub-section {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-top: 0.5rem;
  max-width: 820px;
  width: 100%;
}

.pub-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(16, 16, 18, 0.92) !important;
}

.pub-index {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  min-width: 28px;
}

.pub-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
}

.pub-meta {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

#side-nav {
  position: fixed !important;
  right: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  z-index: 9999 !important;
  padding: 12px 8px !important;
}

.side-nav-item {
  position: relative !important;
  width: 28px !important;
  height: 28px !important;
  background: transparent !important;
  cursor: pointer !important;
}

.side-nav-item::after {
  content: '' !important;
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 18px !important;
  height: 2px !important;
  background: rgba(255, 255, 255, 0.45) !important;
  border-radius: 2px !important;
  transition: all 0.25s ease !important;
}

.side-nav-item.active::after {
  background: #ffffff !important;
  width: 28px !important;
}

#interest-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
}

#interest-overlay.open {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

/* ========== Website Data ========== */
#data-section {
  margin-top: 0.5rem;
  max-width: 1100px;
  width: 100%;
}

.data-stats-row {
  display: flex;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
  width: 100%;
}

.data-stat-card,
.data-map-card {
  background: rgba(16, 16, 18, 0.95) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
}

.data-stat-card {
  flex: 1;
  padding: 1.8rem 1.6rem 1.6rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.data-stat-label {
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
}

.data-stat-value {
  font-size: clamp(2.6rem, 5.5vw, 3.6rem);
  font-weight: 700;
  color: #fff;
}

.data-map-card {
  width: 100%;
  min-height: 420px;
  padding: 1.6rem 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  box-sizing: border-box;
}

.data-map-frame {
  width: 100%;
  height: 340px;
  min-height: 340px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0c;
}

#visitor-leaflet-map {
  width: 100%;
  height: 100%;
  min-height: 340px;
  background: #0a0a0c;
}

#visitor-leaflet-map .leaflet-control-zoom a {
  background: rgba(20, 20, 24, 0.92) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

#visitor-leaflet-map .leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.55) !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 10px !important;
}

#visitor-leaflet-map .leaflet-control-attribution a {
  color: rgba(255, 255, 255, 0.7) !important;
}

#visitor-leaflet-map .leaflet-popup-content-wrapper {
  background: rgba(20, 20, 24, 0.96);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

#visitor-leaflet-map .leaflet-popup-tip {
  background: rgba(20, 20, 24, 0.96);
}

@media (max-width: 640px) {
  .data-stats-row { flex-direction: column; }
  .data-map-frame,
  #visitor-leaflet-map {
    height: 280px;
    min-height: 280px;
  }
  .research-figure {
    width: 100%;
    max-width: 100%;
  }
}
