/* style.css — MergeMix-Webpage (clean, white + blue accent) */

:root{
  --accent: #0b63d6;
  --muted: #6b7280;
  --max-width: 980px;
  --radius: 10px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin:0;
  color:#111827;
  background: #ffffff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  padding:30px 20px;
  display:flex;
  justify-content:center;
}

.container{
  max-width:var(--max-width);
  width:100%;
}

/* Header */
.site-header{
  display:flex;
  flex-direction:column;
  gap:14px;
  text-align:center;
  margin-bottom:18px;
}
.site-title{
  font-size:2.2rem;
  margin:0;
  /* color:var(--accent); */
  color: #6aa6f4; 
}
.subtitle{margin:6px 0 0; color:var(--muted)}

/* Meta */
.meta{display:flex;flex-direction:column;gap:8px;align-items:center}
.authors{font-weight:600}
.authors a {
  color: #6aa6f4; 
  text-decoration: none;
}
.authors a:hover {
  color: #094ba0;
  text-decoration: underline;
}
.affiliations{color:var(--muted); font-size:0.92rem}
.institution-logos {display: flex; justify-content: center; align-items: center; gap: 30px; margin: 15px 0; padding: 10px 0;}
.inst-logo {height: 60px; width: auto; object-fit: contain; max-width: 150px;}
.links{
  margin-top:8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn{
  display:inline-flex;
  padding:8px 12px;
  border-radius:8px;
  border:1px solid rgba(11,99,214,0.12);
  background:transparent;
  color:var(--accent);
  text-decoration:none;
  font-weight:600;
  transition:all .18s ease;
  align-items: center;
  gap: 8px; /* 图标和文字之间的间距 */
}
.btn:hover{transform:translateY(-3px); box-shadow:0 6px 18px rgba(11,99,214,0.06)}

/* 统一图标样式 */
.btn i,
.icon-svg {
  font-size: 1.em;
  width: 1.5em;
  height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Sections */
.panel{margin:28px 0;padding:18px 12px;border-radius:12px}
.panel h2{margin:0 0 12px;padding-bottom:6px;border-bottom:1px solid #f1f5f9;color:#0f172a}


/* Teaser */
.teaser{display:flex;flex-direction:column;align-items:center;gap:10px}
.teaser img{width:100%;max-height:420px;object-fit:cover;border-radius:12px;box-shadow:0 6px 20px rgba(2,6,23,0.06)}
.fig-caption{color:var(--muted);font-size:0.95rem;text-align:center}

/* Overview grid */
.overview-grid{display:grid;grid-template-columns:1fr;gap:18px;align-items:center}
.overview-grid img{width:100%;border-radius:10px;}

/* Results grid */
.results-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.results-grid img.card{width:100%;height:220px;object-fit:cover;border-radius:10px;transition:transform .18s ease, box-shadow .18s ease}
.results-grid img.card:hover{transform:translateY(-6px);box-shadow:0 14px 30px rgba(2,6,23,0.08)}

/* calibration-grid */
.grid{display:grid;grid-template-columns:1fr;gap:12px}
.grid img{width:80%;height:auto;object-fit:cover;border-radius:8px;margin:0 auto;display:block}

/* BibTeX */
.bibtex{background:#fbfdff;border:1px solid #eef6ff;padding:12px;border-radius:8px;font-family:monospace;white-space:pre-wrap; font-size: 1.rem;}

.bibtex-container {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgb(62, 180, 252);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.copy-btn:hover {
  background-color: rgb(62, 180, 252);
}

.copy-btn:active {
  background-color: #094ba0;
}

/* Method Buttons */
.method-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.method-buttons .btn {
  margin: 0;
  min-width: 200px;
  text-align: center;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.site-footer{margin:36px 0 18px;text-align:center;color:var(--muted);font-size:0.9rem}

/* Responsive */
@media(max-width:820px){
  .overview-grid{grid-template-columns:1fr;gap:12px}
  .results-grid{grid-template-columns:1fr;gap:12px}
}

/* Light animations (fade-up) */
.fade-up{opacity:0; transform:translateY(12px); transition:opacity .6s ease, transform .6s ease}
.fade-up.visible{opacity:1; transform:none}


/* --- Single-image Carousel --- */
.results-carousel {
  position: relative;
  width: 95%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: #fff;
  height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  display: none; /* 默认隐藏所有幻灯片 */
}

.slide.active {
  display: flex; /* 只显示激活的幻灯片 */
}

.slide img {
  width: auto;
  height: 85%;
  border-radius: 16px;
  transition: transform 0.4s ease;
}

.slide img:hover {
  transform: scale(1.02);
}


.slide-w {
  min-width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: #fff;
  height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  display: none; /* 默认隐藏所有幻灯片 */
}

.slide-w.active {
  display: flex; /* 只显示激活的幻灯片 */
}

.slide-w img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  transition: transform 0.4s ease;
}

.slide-w img:hover {
  transform: scale(1.02);
}


.slide-h {
  min-width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: #fff;
  /* height: 100%; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  display: none; /* 默认隐藏所有幻灯片 */
}

.slide-h.active {
  display: flex; /* 只显示激活的幻灯片 */
}

.slide-h img {
  width: 80%;
  height: auto;
  border-radius: 16px;
  transition: transform 0.4s ease;
}

.slide-h img:hover {
  transform: scale(1.02);
}


.caption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #555;
}

/* --- Buttons --- */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(62, 180, 252, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgb(62, 180, 252);
}

.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .results-carousel {
    width: 95%;
  }
  
  .slide {
    height: 350px; /* 在小屏幕上减小高度 */
  }
}