:root {
  --bg-color-light: #ffffff;
  --text-color-light: #333;
  --bg-color-dark: #1e1e1e;
  --text-color-dark: #f0f0f0;
  --accent-color: #2c3e50;
  --accent-hover: #3498db;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-color-light);
  background-color: var(--bg-color-light);
  transition: color 0.3s, background-color 0.3s;
  padding-left: 8px;
  padding-right: 4px;
}
p {
  margin: 4px 0;
}

.dark-mode {
  background-color: var(--bg-color-dark);
  color: var(--text-color-dark);
}
.header {
  text-align: center;
  padding: 10px 0;
  background: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 30px;
}
h1 {
  color: var(--accent-color);
  margin-bottom: 10px;
  margin-top: 5px;
}
.authors {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.6;
}
.authors a {
  color: #1a73e8;
  text-decoration: none;
}

.authors sup {
  font-size: 18px;
  vertical-align: super;
}

.authors em {
  font-size: 14px;
}
.abstract {
  scroll-margin-top: 50px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}
h2 {
  color: var(--accent-color);
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin-top: 10px;
  padding-left: 10px;
}
.content-section {
  margin-top: 10px;
  scroll-margin-top: 50px;
  margin-bottom: 40px;
}
.footer {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
  border-top: 1px solid #eee;
  background: #f9f9f9;
}
.nav {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: var(--bg-color-light);
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.nav.dark-mode {
  background: var(--bg-color-dark);
}
.nav a {
  margin: 0 10px;
  color: var(--accent-color);
  text-decoration: none;
}
.nav a:hover {
  color: #3498db;
}
.toggle-btn {
  background-color: #517599;
  color: #fff;
  border: none;
  padding: 5px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  position: absolute;
  top: 10px;
  right: 10px;
}

.toggle-btn:hover {
  background-color: var(--accent-hover);
}
.buttons {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.buttons a {
  display: inline;
  padding: 10px 20px;
  margin: 2px 10px;
  background-color: #2c3e50;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.buttons a:hover {
  background-color: #3498db;
}

.video-section {
  margin-top: 40px;
}

.video-section h2 {
  text-align: center;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.bibtex-section {
  position: relative;
  margin-top: 40px;
}

.bibtex-section pre {
  padding: 20px;
  background-color: #f5f5f5;
  overflow-x: auto;
}

.bibtex-copy-button {
  background-color: #517599;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.bibtex-copy-button:hover {
  background-color: #3498db;
}
.carousel-container {
  max-width: 90vw;
  width: 100%;
  margin: 0 auto 40px auto;
  position: relative;
  overflow: hidden;
}

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

.carousel-slide {
  flex: 0 0 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-slide figure {
  margin: 0;
  max-width: 100%;
  text-align: center;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.carousel-slide figcaption {
  margin-top: 8px;
  font-size: 0.9em;
  color: #666;
}

.dark-mode .carousel-slide figcaption {
  color: #ccc;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.carousel-button:hover {
  background: rgba(255, 255, 255, 1);
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
}

.indicator.active {
  background: #3b82f6;
}
.scrollUpBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: #517599;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 15px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  width: 50px;
  height: 50px;
}

.scrollUpBtn:hover {
  background-color: #3498db;
}

.dark-mode .header,
.dark-mode .abstract,
.dark-mode .footer,
.dark-mode .buttons a,
.dark-mode h1,
.dark-mode h2,
.dark-mode .bibtex-section pre {
  background-color: #333;
  color: var(--text-color-dark);
}
.dark-mode .nav a {
  color: var(--text-color-dark);
}
.dark-mode .buttons a:hover {
  background-color: #3498db;
}
.dark-mode .nav a:hover {
  color: #3498db;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

body.dark-mode .modal-content {
  background-color: #222;
  color: #f1f1f1;
}

.license-scroll {
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ccc;
  margin: 1em 0;
  background-color: #f8f8f8;
}

body.dark-mode .license-scroll {
  background-color: #333;
  color: #ddd;
  border-color: #555;
}

.modal-buttons {
  text-align: right;
}

.modal-buttons button {
  margin-left: 10px;
}

#copyMessage {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  color: green;
  margin-top: 0.5em;
  font-size: 0.95em;
}

.bibtex-copy-container {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.copy-message {
  color: green;
  font-size: 0.95em;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  white-space: nowrap;
}

.buttons a,
.button-fallback {
  display: inline-block;
  padding: 10px 20px;
  margin: 2px 10px;
  background-color: #2c3e50;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  vertical-align: middle;
}

.button-fallback:hover,
.buttons a:hover {
  background-color: #3498db;
}

.method-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.architecture-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.radar-chart-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.quant-pvpe-opt-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.qual-res-class {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
