body {
  font-family: Charter;
}

.header-wrapper {
    /* Light gray-blue on left transitioning smoothly to darker blue on right, balanced blue coverage */
    background: #FAF5EE;
    /* background-image: url('../../figs/banner_bg.jpg'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.header-container {
  color: #000000; /* Black for maximum visibility */
  text-align: center; /* Center content on small screens */
  padding: 20px; /* Reduced padding for small screens */
  opacity: 1.0;
  z-index: 10; /* Above the wrapper's ::before overlay */
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
}


.icon {
    height: 1.8em; /* Set a fixed height for all icons */
    width: auto; /* Adjust width to maintain aspect ratio */
    margin-bottom: 5px; /* Space between icon and text */
}

.icon-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping to the next line */
    width: 100%;
    padding: 20px; /* Padding around the images */
    line-height: 1rem;
}

.icon-link {
    display: flex;
    flex-direction: column; /* Stack image and text vertically */
    align-items: center; /* Center the image and text */
    text-align: center; /* Center text below the image */
    color: inherit; /* Inherit color from parent */
    padding: 10px; /* Add padding around the link */
    margin: 10px; /* Add margin around each link for spacing */
    border: 3px solid #508af6;
    border-radius: 10px;
    background-color: #d6eefb;
    flex: 1 1 100px; /* Allow flex items to grow and shrink */
}

.icon-link:hover {
    background-color: #88c2fa;
}

@media (max-width: 600px) {
    .icon-link {
        flex: 1 1 45%; /* Allow each icon link to take up about half the width */
    }
}


.icon-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.icon-item {
    align-items: center;
    display: flex;
}

.icon-item img {
    width: 30px;
    height: 30px;
    margin-right: 1em;
    /* Black icons for maximum visibility */
    filter: brightness(0);
    opacity: 0.9;
}

@media (max-width: 768px) {
  .icon-item img {
    margin-bottom: 1em;
  }
}

.header-content strong {
    color: #000000; /* Black for maximum visibility */
    font-weight: 600;
}

.header-content {
    color: #000000; /* Black text for clear readability */
    text-align: left;
}

.header-content h1 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
    color: #000000; /* Black for maximum visibility */
    font-weight: 600;
}

.header-content h2 {
    margin-bottom: 0.5em;
    line-height: 1.2;
    color: #000000; /* Black for maximum visibility */
    font-weight: 500;
}

.header-container p {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
  .header-container {
    padding: 16px;
    padding-top: 32px;
  }

  .header-content h1 {
    font-size: 3em;
    margin-bottom: 0.125em;
  }
  .header-content h2 {
    font-size: 1.7em;
    /* text no wrap */
    white-space: nowrap;
    margin-top: 0;
  }

  .header-container p {
    font-size: 1.04rem;
  }

  .header-image {
    /* 80% */
    max-width: 100%;
    /* center */
    margin-left: auto;
    margin-right: auto;
  }
}

.teaser-video video {
  height: auto; /* Maintain the aspect ratio of the image */
  display: block; /* Prevent inline spacing issues */
  max-width: 100%;
}

.header-image {
  position: relative;
  z-index: 1; /* Below the left panel which has z-index: 1000 */
}

.header-image img {
  width: 120%; /* Responsive width */
  max-width: 1200px; /* Limit maximum width to reduce loading size */
  max-height: 1125px; /* Limit maximum height to reduce file size needed */
  height: auto; /* Maintain the aspect ratio of the image */
  display: block; /* Prevent inline spacing issues */
  margin: 0 auto 20px; /* Center the image horizontally and add margin below */
  margin-left: -20px; /* Shift image slightly to the left */
  object-fit: contain; /* Ensure image fits within constraints */
  image-rendering: -webkit-optimize-contrast; /* Optimize rendering */
}

.header-hero-image {
  border: none;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1); */
  transition: none;
}

/* No hover effects for header hero image - removed empty ruleset */

.button-container {
    margin-top: 20px; /* Add margin above the buttons */
    margin-bottom: 20px; /* Add margin below the buttons */
    /* center */
    /* text-align: center; */
}

.button-container a.button {
  display: inline-block; /* Make buttons inline */
  margin: 10px; /* Space around buttons */
  padding: 10px 20px; /* Increase tap area for touch screens */
}

.button-container a.button {
  background-color: rgba(244, 234, 203, 0.9); /* Cream matching banner background */
  color: #0f2438; /* Darker blue text for contrast */
  border: 2px solid rgba(139, 111, 71, 0.4); /* Muted gold border */
  border-radius: 20px; /* Rounded borders */
  padding: 10px 20px; /* Top and bottom padding, left and right padding */
  margin: 5px 2px; /* Space between the buttons */
  text-decoration: none; /* Remove the underline from links */
  display: inline-block; /* Display links as inline blocks */
  font-weight: 600; /* Slightly lighter than bold for elegance */
  transition: all 0.3s ease; /* Smooth transition for all properties */
  box-shadow: 0 2px 4px rgba(15, 36, 56, 0.15);
}

.button-container a.button:hover {
  background-color: rgba(139, 111, 71, 0.15); /* Subtle muted gold on hover */
  color: #0f2438; /* Keep darker blue text */
  border-color: rgba(139, 111, 71, 0.6); /* Stronger gold border */
  box-shadow: 0 4px 8px rgba(15, 36, 56, 0.2);
  transform: translateY(-1px);
}

/* Styles for larger screens using a media query */
@media (min-width: 600px) {
  .header-container {
    display: flex; /* Use flexbox for positioning on larger screens */
    justify-content: space-between; /* Space between the content and image */
    align-items: center; /* Align items vertically */
    padding: 50px 50px; /* Increase padding for larger screens */
  }

  .header-content {
    max-width: calc(50% - 20px); /* Adjust width to include margin */
    text-align: left; /* Align text to the left for larger screens */
    margin-right: 10px; /* Add margin to the right of the header content */
  }

  .header-content h1 {
    font-size: 3.3em; /* Increase font size for larger screens */
  }

  .header-content h2 {
    margin-top: -0.75em; /* Reduce space between headers */
    font-size: 2em; /* Increase font size for larger screens */
  }

  .teaser-video {
    width: 100%; /* Set width to 100% */
    margin-bottom: 2em;
  }

  .header-image {
    max-width: calc(50% - 20px); /* Adjust width to include margin */
  }

  .header-image img {
    max-width: 120%; /* Image should be responsive within the container */
    max-height: 1200px; /* Limit maximum height */
  }
}


.byline {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0 5px 10px; /* Add padding to the top and bottom */
  margin-bottom: 20px;
}

.byline-container {
    padding-top: 2rem;
    padding-bottom: 0.5rem;
    text-align: center;  /* Center align the text */
}


.author-link, .affiliation-link {
    font-size: larger;
    color: black; /* Set the color to match the other text */
    text-decoration: none; /* Removes the underline */
    border-bottom: none;
    cursor: pointer; /* Changes cursor to pointer to indicate link */
    white-space: nowrap;  /* Prevent breaking names across lines */
    /* Increase vertical spacing */
    line-height: 2.3rem; /* Increase line height for better readability */

}

.author-note {
    font-size: 0.9rem;
    color: #999; /* Light grey color for the text */
    margin-top: 0.25em; /* Space above the note */
    margin-bottom: 0.25em; /* Space below the note */
}

.authors {
    line-height: 1.8;
    font-size: 1.15rem;
}

.author-name {
    white-space: nowrap;
    font-weight: 500;
}

.authors a,
.authors a * {
    text-decoration: none !important;
    border-bottom: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
}

.authors a:visited,
.authors a:focus,
.authors a:active,
.authors a:visited *,
.authors a:focus *,
.authors a:active * {
    text-decoration: none !important;
    border-bottom: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
}

.authors a:hover,
.authors a:hover * {
    color: #007bff !important;
    text-decoration: underline !important;
    text-decoration-line: underline !important;
    text-decoration-style: solid !important;
    text-decoration-color: #007bff !important;
}

.affiliations {
    margin-top: 0.5rem;
    line-height: 1.6;
}

.affiliations div {
    margin: 0.25rem 0;
}

@media (max-width: 768px) {
    .authors {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .affiliations {
        font-size: 0.95rem;
    }
}

#affiliation {
    font-size: 1.6em;
    /* bold */
    font-weight: bolder;
}

.author-link:hover, .affiliation-link:hover {
  text-decoration: underline; /* Adds underline on hover for visual feedback */
  border-bottom: none;
  color: #007bff;
}


d-article {
  contain: none;
  position: relative;
}

d-article d-contents {
  max-width: 100%; /* Or the maximum width you want it to have */
  box-sizing: border-box; /* Include padding in the width calculation */
  align-self: start;
  grid-column: 1 / 4;
  grid-row: auto / span 4;
  justify-self: end;
  margin-top: 5em;
  padding-right: 3em;
  padding-left: 2em;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
}


d-article d-contents nav {
  display: block;
}

d-article d-contents nav h4 {
  margin-top: 0;
  margin-bottom: 1em;
}

d-article d-contents nav div {
  color: rgba(91, 184, 73, 0.8);
  font-weight: bold;
}

d-article d-contents nav a {
  color: rgba(0, 0, 0, 0.8);
  border-bottom: none;
  text-decoration: none;
}

d-article d-contents li {
  list-style-type: none;
}

d-article d-contents ul {
  padding-left: 1em;
}

d-article d-contents nav ul li {
  margin-bottom: 0.25em;
}

d-article d-contents nav a:hover {
  text-decoration: underline solid rgba(0, 0, 0, 0.6);
}

d-article d-contents nav ul {
  margin-top: 0;
  margin-bottom: 6px;
}

d-article d-contents nav > div {
  display: block;
  outline: none;
  margin-bottom: 0.5em;
}

d-article d-contents nav > div > a {
  font-size: 13px;
  font-weight: 600;
}

d-article d-contents nav > div > a:hover,
d-article d-contents nav > ul > li > a:hover {
  text-decoration: none;
}

.active-nav-item {
  color: #0d6efd; /* Change as per your preference */
}

.shaded-figure {
  background-color: hsl(0, 0%, 97%);
  border-top: 1px solid hsla(0, 0%, 0%, 0.1);
  border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
  padding: 30px 0;
}

.pointer {
  position: absolute;
  width: 26px;
  height: 26px;
  top: 26px;
  left: -48px;
}

.sidebar {
  position: sticky;
}

d-article section{
  margin: 0 !important;
}


/* Removed conflicting video-container styles */

.preview-container {
  display: flex;
  justify-content: left;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 20px;
}

.preview {
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  opacity: 0.5; /* 50% transparent */
  height: 50px; /* Fixed height */
  width: auto; /* Auto width to maintain aspect ratio */
  margin-right: 10px;
  margin-left: 10px;
}

div .preview-video-active,
.preview:hover {
  opacity: 1.0; /* Fully opaque on hover */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Shadow effect on hover */
}


/* blockquote {
  border-left: 4px solid #ccc;
  margin: 0.5em auto;
  padding: 0.5em 10px;
  color: #666;
  font-style: italic;
  width: 80%;
} */

/* blockquote:before {
  color: #ccc;
  content: open-quote;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
} */

blockquote.storytext {
  border-left: 6px solid #4a90e2; /* Brighter border color */
  background-color: #f9f9f9;      /* Subtle background */
  margin: 0px auto;
  padding: 1em 10px;
  color: #333;                    /* Darker font color */
  font-style: italic;
  font-weight: bold;              /* Bolder font */
  width: 85%;
  box-shadow: 2px 2px 8px #ccc;   /* Box shadow */
  padding-left: 2em;
  font-style: italic;
  color: rgba(0, 0, 0, 0.6);
  font-size: 15px;
}

blockquote.storytext:before {
  color: #4a90e2;                 /* Matching the border color */
  content: open-quote;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
}

.fancybreak {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #333, transparent);
  margin: 0.8em auto;
}


#image-text-container {
  display: flex;
  flex-direction: column;
  /* align-items: center; */
}

.image-review-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-box {
  width: 50%; /* Adjust the width as needed */
  margin-left: 0%; /* Space between image and text box */
  height: 100%; /* Make the text box the same height as the image */
}

.button-bar button {
  background-color: #88AB8E; /* Green background */
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 11px;
  margin-top: 0px;  /* Keeps the original top margin */
  margin-bottom: 2em;
  margin-left: 5px;  /* Increases the left margin */
  margin-right: 5px;  /* Increases the right margin */
  cursor: pointer;
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 2px #999; /* Subtle shadow */
  transition: all 0.3s ease; /* Smooth transition for hover effect */
}

div .active-button,
.button-bar button:hover {
  background-color: #45a049; /* Slightly darker shade on hover */
  box-shadow: 0 6px #666; /* Change in shadow */
  transform: translateY(-2px); /* Slight raise */
}

.interactive-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 50px;
}

.llmul {
  text-decoration-color: royalblue;
}

.geoul {
  text-decoration-color: ForestGreen;
}

.cvul {
  text-decoration-color: #FF43A4;  
}

.colul {
  text-decoration-color: #FFAE42;
}

.character-card-img {
  width: 85%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


/* collapsible code */
.collapsible {
  background-color: hsla(206, 95%, 20%, 0.2);
  cursor: pointer;
  padding: 1em;
  border: none;
  text-align: left;
  outline: none;
}

.active, .collapsible:hover {
  transition: max-height 0.2s ease-out;
  /* background-color: #acc2c2; */
}

.collapsible {
  background-color: hsla(206, 95%, 20%, 0.2);
  cursor: pointer;
  padding: 1em;
  border: none;
  text-align: left;
  outline: none;
}

.active, .collapsible:hover {
  transition: max-height 0.2s ease-out;
}

.collapsible {
  display: flex;
  justify-content: space-between;
  align-content: center;
  border-radius: 4px;
}

.collapsible.active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.collapsible .collapsible-indicator::after {
  content: "+"
}

.collapsible.active .collapsible-indicator::after {
  content: "-"
}

.collapsible h4 {
  margin: 0;
  line-height: inherit;
}

d-article .content {
  padding: .3em 1em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  border-color: hsla(206, 95%, 20%, 0.2);
  margin-bottom: 20px;
}

/* assign the final paragraph of an aside no bottom margin */
aside p:last-child {
  margin-bottom: 0;
}


aside.counting-table {
  position: absolute;
  top: 42%;
  left: 105%;
}

aside figure {
  margin: 0;
  display: block; /* Ensures that figure behaves as a block-level element */
}

aside figure table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* Use fixed table layout for consistent column sizing */
}

aside th, aside td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #dee2e6;
  white-space: nowrap;
  text-overflow: ellipsis; /* Add ellipsis to clipped content */
}

aside th {
  background-color: #e9ecef;
  color: #495057;
}
aside tr:hover {
  background-color: #f2f2f2;
}
aside th:first-child, aside td:first-child {
  border-right: 1px solid #dee2e6;
}


figcaption .table-caption {
  text-align: center;
  padding: 8px;
  font-style: italic;
  color: #6c757d;
  margin-top: 0; /* Ensures there is no additional space between table and caption */
  font-size: 12px;
}


* {
  box-sizing: border-box;
}

.img-magnifier-container {
  position:relative;
  margin-bottom: 20px;
}

.img-magnifier-glass {
  position: absolute;
  border: 3px solid #000;
  border-radius: 50%;
  cursor: none;
  /*Set the size of the magnifier glass:*/
  width: 100px;
  height: 100px;
}


img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}



/* Position the image container (needed to position the left and right arrows) */
.slider-img-container {
  position: relative;
}

/* Hide the images by default */
.my-slides {
  display: none;
}

#slider-img-tourist .my-slides img {
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 75%;
}

#slider-img-photographer .my-slides img {
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 90%;
}

.my-slides:hover .overlay {
  opacity: 1;
}

/* Add a pointer when hovering over the thumbnail images */
.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 45%;
  width: auto;
  padding: 10px;
  margin-top: -50px;
  color: rgb(148, 143, 143, 0.8);
  font-weight: bold;
  font-size: 30px;
  border-radius: 3px 3px 3px 3px;
  user-select: none;
  -webkit-user-select: none;
  border-bottom: none;
}

.prev {
  left: -5%;
}

/* Position the "next button" to the right */
.next {
  right: -5%;
  border-radius: 3px 3px 3px 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.7);
  color: rgb(255, 255, 255);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f8f9fa; /* Light color for better visibility */
  font-family: 'Arial', sans-serif; /* A more modern font */
  font-size: 16px; /* Slightly larger for readability */
  font-weight: bold; /* Make it bold */
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  padding: 5px 15px; /* Increased padding for better spacing */
  position: absolute;
  top: 10px; /* Adjusted to not be too close to the edge */
  left: 50%;
  transform: translateX(-50%); /* Center it horizontally */
  text-shadow: 1px 1px 2px black; /* Text shadow for better readability */
  border-radius: 5px; /* Rounded corners for a softer look */
}

.row {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Six columns side by side */
.column {
  float: left;
  margin-left: 10px;
  margin-right: 10px;
}

/* Add a transparency effect for thumnbail images */
.demo {
  opacity: 0.5;
  height: 50px; /* Fixed height */
  width: auto; /* Auto width to maintain aspect ratio */
}

.active-slide-img,
.demo:hover {
  opacity: 1;
}


.overlay {
  display: block;
  margin-left: 5%;
  margin-right: 5%;
  position: absolute; 
  top: 0; 
  background: rgba(0, 0, 0, 0.5); /* Black see-through */
  color: #f1f1f1; 
  width: 90%;
  transition: .5s ease;
  opacity:0;
  color: white;
  font-size: 20px;
  padding: 20px;
  text-align: center;
}

.system-fundamental-aside {
  display: none;
  background-color: #F3F8FF;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 100;
  width: 300px;
  color: rgb(0, 0, 0);
  font-size: 14px;
  height: fit-content;
  position: absolute;
  top: 39.5%;
  left: 105%;
}

.clickable-region {
  position: absolute;
  /* border: 2px solid rgba(255, 255, 255, 0.5); */
  /* background: rgba(255, 255, 0, 0.5);  */
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s; /* Smooth transition */
}

.clickable-region:hover {
  background: rgba(255, 255, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.75); /* Brighter border on hover */
}

.clickable-image-container {
  position: relative;
  width: 100%;
}
.clickable-image-container img {
  width: 100%;
  height: auto;
}

.resscolor {
  background-color: rgb(194,255,191);
}

.sizescolor {
  background-color: rgb(194,215,255);
}

.inline-tag {
  height: 18px;
  width: auto;
}

blockquote.place-review {
  border-left: 2px solid #FFAE42; /* Brighter border color */
  padding-left: 5px !important;
  color: #333;                    /* Darker font color */
  font-style: italic;
  box-shadow: 2px 2px 8px #ccc;   /* Box shadow */
  padding-left: 2em;
  font-style: italic;
  color: rgba(0, 0, 0, 0.6);
  font-size: 12px;
  text-overflow: ellipsis; /* Add ellipsis to clipped content */
  margin-bottom: 0px;
}

aside blockquote {
  padding-left: 10px;
  color: #505050;                   
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}


.avatar-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2%;
  margin: 20px;
}

.avatar {
  text-align: center;
}

.avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid #ccc;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar img:hover {
  transform: scale(1.1);
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2);
}

.avatar figcaption {
  /* display: inline-block; */
  /* margin-top: 8px; */
  margin-left: auto;
  margin-right: auto;
  padding: 5px 10px;
  font-size: 1.05em;
  color: #333;
  /* background-color: #f8f8f8; */
  /* border: 1px solid #ddd; */
  /* border-radius: 5px; */
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  text-align: center;
  width: 80px; /* Adjust as needed */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.left-aside-container {
  display: flex;
  flex-direction: row;
  margin-top: 10px;
}

.left-side-bar {
  position: absolute;
  top: 91.5%;
  left: -35%;
}
.right-side-bar {
  position: absolute;
  top: 91.5%;
  right: -35%;
}


.click-hint{
  display: block;
  margin: auto;
  width: 60%;
  font-size: 15px; /* Adjust the font size */
  color: #333333; /* Set text color */
  /* background-color: #f2f2f2; */
  border: 2px solid #cccccc; /* Add border */
  padding: 10px; /* Add padding around text */
  border-radius: 5px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
  text-align: center; /* Center the text */
  margin-bottom: 20px; /* Add some margin at the bottom */
}

.click-hint strong {
  color: #007bff; /* Highlight the 'strong' element with a different color */
  /* text-decoration: underline; Underline the 'strong' text */
}


.grey-overlay {
  position: absolute; /* Change to absolute positioning */
  top: 0;
  left: 0;
  width: 1000%; /* Full container width */
  height: 100%; /* Full container height */
  background-color: rgba(245, 237, 220, 0.5);
  z-index: -1; /* Ensure it's above other content */
  margin-left: -500%;
}

d-article h3 {
  margin-top: 20px;
}

d-article > div > h3 {
  width: 150%;
  margin-left: -10%;
}


.text {
  /* width: 150%; */
  width: 150%;
  margin: 1em 0 1em -20%;
  font-size: 1.2rem;
}

h1.text {
    font-size: 2em;
}
h2.text {
    font-size: 1.8em;
}

.abstract {
    font-size: 1.35rem;
}

.auto-video {
  width: 130%;
  margin-left: -15%;
}

#diego-plan-video, #diego-plan-video-cap {
  width: 150%; 
  margin-left: -20%;
}

.nav-bar {
  position: fixed;
  left: 20px;
  top: 20px;
  width: 70px;
  height: fit-content;
  max-height: 100%;  /* Gives navbar a scrollbar if it's too long */
  background-color: #dbdbdb39;
  overflow-x: hidden;
  padding-top: 10px;
  z-index: 101;
  display: none;
}


.figure-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.figure {
    /* width: 150%; */
    display: flex;
    justify-content: center;
    flex-direction: row;
}

figure {
    width: 150%;
    margin-left: -20%;
}

#fig-vision_connector figure {
    width: 120%;
    margin-left: -10%;
}
#fig-narrowgap figure {
    width: 130%;
    margin-left: -15%;
}

#fig-dataengine figure {
    width: 120%;
    margin-left: -10%;
}

#fig-filter_k figure {
    width: 110%;
    margin-left: -7.5%;
}

#fig-data_ratio figure {
    width: 120%;
    margin-left: 0%;
}

figcaption {
    font-size: 1.125em;
    margin-top: 0.25em;
    text-align: center;
}

/* Default: show iframe, hide image */
.responsive-content iframe {
    display: block;
    justify-content: center;
    width: 150%;
    margin-left: -5%;
    margin-top: -2em;
    margin-bottom: -2em;
}

.responsive-content img {
    display: none;
}

#mllm_interface_click_hint {
    display: block;
}

@media (max-width: 720px) {
    .figure {
        width: 100%;
        margin-left: -1%;
    }
    figure {
        width: 100% !important;
        margin-left: 0% !important;
    }
    figure > iframe {
        max-width: 100%;
    }

    /* For mobile devices: hide iframe, show image */
    .responsive-content iframe {
        display: none;
    }

    #mllm_interface_click_hint {
        display: none !important;
    }

    .responsive-content img {
        display: block;
    }
}

#nav-bar > div {
    padding-left: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
  /* background-color: #fae7f378; */
  /* background-color: #ac87c52a; */
}
.nav-link > img {
    padding-top: 5px;
    padding-bottom: 5px;
    width: 40px;
    height: auto;
}
.geo-color {
    background-color: rgba(227, 242, 233, 0.5);
}
.llm-color {
    background-color: rgba(227, 237, 248, 0.5);
}
.cv-color {
    background-color: rgba(254, 237, 237, 0.5);
}
.col-color {
    background-color: rgba(255, 255, 204, 0.5);
}
.geo-color:hover {
    background-color: rgba(227, 242, 233, 0.9);
}
.llm-color:hover {
    background-color: rgba(227, 237, 248, 0.9);
}
.cv-color:hover {
    background-color: rgba(254, 237, 237, 0.9);
}
.col-color:hover {
    background-color: rgba(255, 255, 204, 0.9);
}

div.nav-bar a {
  border: none;
  opacity: 0.5;
}

div.nav-bar a:hover {
  color: black;
  opacity: 1.0;
}

div.nav-bar img:hover {
  transform: scale(1.3);
}

a.active-link {
  color: #007bff; /* Change to your preferred color */
    /* If you're using images inside <a>, you might want to apply a filter instead */
  /* filter: brightness(1.2); */
  opacity: 1.0 !important;
}

/* a.active-link img {
  border: 2px solid #007bff;
  border-radius: 4px;
} */

.takeaway-card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  text-align: left;
  padding: 0px;
  margin: 1em;
  border-radius: 15px;
  line-height: 1.6;
}

.takeaway-head {
  display: flex;
  justify-content: space-between; /* Aligns items in a row with space between them */
  text-align: left;
  padding: 10px;
  padding-left: 15px;
  background-color: rgb(113, 115, 148);
  border-radius: 15px 15px 0px 0px;
  line-height: 1.6;
  color: white;
  font-size: 20px;
}

.takeaway-tags {
  display: flex; /* Ensures the images are lined up horizontally */
  align-items: center; /* Vertically centers the tags within the div */
  /* Additional styling, if necessary, can go here */
}

.exemplar-takeaways > .takeaway-card {
    display: none;
}


div.takeaway-tags img {
  height: 28px;
  margin-right: 5px;
}

.takeaway-content {
  font-size: 17px; /* Adjusts the font size */
  color: #333; /* Sets the text color; choose a color that fits your design */
  margin: 0px; /* Adds space around the paragraph */
  padding: 10px 10px 15px 15px;
  background-color: #f9f9f9; /* Optional background color */
  border-radius: 5px; /* Rounds the corners if there's a background color */
  line-height: 1.4; /* Adjusts the line height for better readability */
  /* Additional styling like text-align, letter-spacing, etc., can be added as per your preference */
  border-radius: 0px 0px 15px 15px;
}


.diego-revise-img {
  width: 130%;
  margin-left: -15%;
}

#prev-diego-revise-1, #prev-diego-revise-2 {
  top: 75%;
  left: -20%
}

#next-diego-revise-1, #next-diego-revise-2 {
  top: 75%;
  right: -20%
}


.img-grid-row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
  width: 120%;
  margin-left: -10%;
}

.img-grid-column {
  flex: 16%;
  padding: 0 4px;
}

.img-grid-column img {
  margin-top: 8px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  d-article > div > h3 {
    width: 100%;
    margin-left: 0%;
  }

  .text {
    width: 100%;
    margin: 1em 0 1em 0;
  }

  div.takeaway-tags img {
    height: 22px;
    margin-right: 2px;
  }

  #prev-diego-revise-1, #prev-diego-revise-2 {
    top: 115%;
    left: -7%
  }
  
  #next-diego-revise-1, #next-diego-revise-2 {
    top: 115%;
    right: -7%
  }

  aside {
    display: none;
  }
}

/* tables */

.table-container {
    overflow: auto;
    overflow-y: hidden;
    max-width: 90vw;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* for smoother scrolling on iOS */
}

.data-table {
    border-collapse: separate;
    border-spacing: 2.5px;
    margin: 0 auto;
    font-size: 12px;
    min-width: 100%;
    /* width: max-content; */
    width: 100%;
    line-height: 1.25;
    border-collapse: separate;
}

.data-table td {
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.data-table td, .data-table th {
    padding: 0.25em 0.25em;
}

.data-table th:first-child, .data-table td:first-child {
    text-align: right;
    font-weight: bold;
}

.tb-hdr {
    background-color: #f2f2f2;
    font-weight: bold;
    text-align: center !important;
}

.highlight {
    background-color: #e6ffe6;
    font-weight: bold;
}

.highlight-green {
    background-color: #e6ffe6;
}

.highlight-orange {
    background-color: #fff2e6;
}

.highlight-gray td {
    background-color: #f2f2f2;
    text-align: left !important;
}

.highlight-blue {
    background-color: #e6f2ff;
}

caption {
    padding: 10px;
    caption-side: bottom;
    font-weight: 500;
}

/* Mobile-specific styles */
@media screen and (max-width: 600px) {
    .data-table {
        font-size: 0.8em;
    }
    
    .data-table td, .data-table th {
        padding: 0.2em 0.4em;
        font-size: 0.8em;
    }
    
    iframe {
        width: 99%;
    }
}

iframe {
    width: 1250px;
    height: 650px;
    border: none;
}

.bibtex {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f9f9f9;
    padding: 2em;
    color: #222;
    font-size: 1em;
}

/* PDF figure styling - now for PNG images */
.pdf-figure {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    image-rendering: auto;
}


/* Ensure figures look crisp and maintain aspect ratio */
figure img {
    width: 100%;
    height: auto;
    display: block;
}

/* Extra figures collapsible section */
.extra-figures {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.extra-figures summary {
    cursor: pointer;
    padding: 0.5em;
    background-color: #f0f0f0;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.extra-figures summary:hover {
    background-color: #e0e0e0;
}

/* Sub-sections */
.sub-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.key-contributions {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Interactive Demo Styles - Clean and Polished */
.demo-container {
    display: flex;
    gap: 2rem;
    width: 100%;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.demo-card {
    flex: 1;
    min-width: 45%;
    max-width: 48%;
    background: #fafafa;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.demo-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.demo-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.demo-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
}

.demo-label {
    padding: 8px;
    background-color: #e8f4f8;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    color: #2c5282;
    font-size: 0.9rem;
}

.demo-video {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.demo-video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.demo-info {
    padding: 8px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    margin-bottom: 15px;
    font-size: 0.9rem;
    border-radius: 4px;
}

.demo-info i {
    color: #856404;
    margin-right: 0.5rem;
}

.demo-qa {
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.demo-question {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.demo-question p {
    margin-bottom: 10px;
}

.options-label {
    margin-bottom: 8px;
    font-weight: 600;
}

.options-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 15px;
    flex-grow: 1;
}

.options-list li {
    padding: 8px;
    margin-bottom: 5px;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.options-list li:hover {
    background-color: #e9ecef;
}

.options-list input {
    margin-right: 8px;
}

.options-grid {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex-grow: 1;
}

.options-grid li {
    padding: 8px 16px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.2s;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.options-grid li:hover {
    background-color: #e9ecef;
}

.options-grid input {
    margin-right: 5px;
    flex-shrink: 0;
}

.demo-answer {
    display: none;
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    margin-top: 15px;
    border: 1px solid #ddd;
    animation: slideIn 0.5s ease;
}

.demo-answer p {
    margin: 0;
    font-size: 1.1rem;
    color: #28a745;
    text-align: center;
    font-weight: 600;
}

.demo-button {
    width: 100%;
    padding: 12px;
    margin-top: auto;
    background-color: white;
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}

.demo-button:hover {
    background-color: #007bff;
    color: white;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New video presentation styles */
.preview-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.preview {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.preview-video-active {
    border-color: #007bff;
    box-shadow: 0 4px 16px rgba(0,123,255,0.3);
}

.video-container {
    max-width: 1500px;
    width: 150%;
    margin: 20px auto 40px -25%;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    clear: both;
}

.video-label {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 6px;
}

.video-music {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.speed-reminder {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
}

.video-qa {
    margin-top: 20px;
}

/* Side-by-side layout for video (left) and QA (right) */
.video-flex {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.video-area {
    flex: 0 0 66%;
    min-width: 0;
}

.video-flex .video-qa {
    flex: 0 0 34%;
    max-width: 520px;
    margin-top: 0;
}

.video-flex .qa-item {
    height: 100%;
}

@media (max-width: 900px) {
    .video-flex {
        flex-direction: column;
    }
    .video-area,
    .video-flex .video-qa {
        flex: 0 0 auto;
        max-width: 100%;
    }
}

.qa-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.qa-item p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Ensure QA content uses full width of its column */
.video-qa .qa-item ul {
    width: 100%;
}

.click-hint {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border: 2px dashed #007bff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.click-hint:hover {
    background-color: #e3f2fd;
    border-color: #0056b3;
}

.click-hint img {
    margin-right: 8px;
    vertical-align: middle;
}

.l-body {
    margin-bottom: 40px;
    clear: both;
}

/* Responsive adjustments for demo cards */
@media (max-width: 768px) {
    .demo-container {
        flex-direction: column;
    }
    
    .demo-card {
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .demo-title {
        font-size: 1rem;
    }
    
    .demo-label {
        font-size: 0.8rem;
        padding: 10px 16px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }

    /* Make video container full-width on small screens */
    .video-container {
        width: 100%;
        margin-left: 0;
        max-width: 100%;
    }
}

/* 学术表格样式 */
.cf-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}
.cf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    text-align: center;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
}
.cf-table th, .cf-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
}
.cf-table th {
    font-weight: 600;
    color: #333;
    background-color: #fafafa;
}
.cf-table tr:hover {
    background-color: #f5f5f5;
}
.cf-table .highlight-open { background-color: #e6f2ff; } /* 蓝色高亮开源最佳 */
.cf-table .highlight-closed { background-color: #ffe6e6; } /* 粉色高亮闭源最佳 */

/* 交互式模型切换器样式 */
.interactive-viewer {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.viewer-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}
.model-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
}
.model-btn:hover, .model-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}
.viewer-display img {
    width: 100%;
    border-radius: 8px;
    display: none; /* 默认隐藏所有图片 */
}
.viewer-display img.active {
    display: block; /* 只显示激活的图片 */
}

/* 页面内跳转导航栏样式 */
.nav-menu-container {
    margin: 3rem auto;
    max-width: 1000px;
    text-align: center;
}
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap; /* 【关键修改1】强制不换行 */
    margin-bottom: 15px;
    width: 100%;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #eef6ff; 
    border: 2px solid #5b9bd5; 
    border-radius: 12px;
    padding: 15px 10px; /* 稍微减小了左右内边距 */
    text-decoration: none !important;
    color: #333;
    font-weight: 600;
    transition: all 0.2s ease;
    
    /* 【关键修改2】让按钮自适应宽度，不再写死 */
    flex: 1; 
    min-width: 0; 
    box-sizing: border-box; 
    
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 下面的悬浮效果保持你原来的不变 */
.nav-btn i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #5b9bd5;
}
.nav-btn:hover {
    background-color: #5b9bd5;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.nav-btn:hover i {
    color: #fff;
}

.nav-hint {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #0066cc;
    font-weight: bold;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-top: 10px;
}

/* ==========================================
   交互式旭日图弹窗样式 (Modal)
========================================== */
.modal-overlay {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

/* 修改弹窗容器的宽度 */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 居中显示，距离顶部 5% */
    padding: 20px;
    border: 1px solid #888;
    border-radius: 12px; /* 圆角 */
    width: 90%; 
    max-width: 450px; /* 🔑 核心修改：把最大宽度调小，比如 400px 到 500px 之间 */
    position: relative;
}

/* 限制图片的最大高度，防止竖图超出屏幕 */
#modal-image {
    width: 100%;
    max-height: 70vh; /* 🔑 核心修改：限制图片最高只能占屏幕高度的 70% */
    object-fit: contain; /* 保证图片按比例缩放，不会变形 */
    border-radius: 8px;
}


.close-btn {
    position: absolute;
    top: 10px; 
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

.close-btn:hover { 
    color: #333; 
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================
   Key Results 表格样式 (Academic Booktabs)
========================================== */
.table-caption {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 10px;
    text-align: justify;
}
.cap-hl-blue { background-color: #d9f0ff; padding: 0 4px; }
.cap-hl-pink { background-color: #ffe6e6; padding: 0 4px; }

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 2rem;
}

.academic-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Times New Roman", Times, serif; /* 学术表格常用字体 */
    font-size: 1.05rem;
    text-align: center;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

.academic-table th, .academic-table td {
    padding: 8px 12px;
    white-space: nowrap;
}

.academic-table thead tr:first-child th {
    border-bottom: 1px solid #aaa;
}
.academic-table thead tr:last-child th {
    border-bottom: 1px solid #000;
}

.academic-table .model-name {
    text-align: left;
}

/* 分组标题背景色 */
.group-header.open-source td {
    background-color: #fff9c4; /* 浅黄色 */
    font-style: italic;
    border-bottom: 1px solid #ddd;
}
.group-header.closed-source td {
    background-color: #e6e0ff; /* 浅紫色 */
    font-style: italic;
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #ddd;
}

/* 最佳数据高亮色 */
.academic-table td.hl-blue { background-color: #d9f0ff; }
.academic-table td.hl-pink { background-color: #ffe6e6; }

/* ==========================================
   交互式图片查看器样式
========================================== */
.interactive-viewer {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
}

.viewer-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.model-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.model-btn:hover { background: #f0f0f0; }
.model-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.viewer-display {
    position: relative;
    width: 100%;
    min-height: 300px; /* 根据您的图片高度可适当调整 */
    display: flex;
    justify-content: center;
}

.viewer-img {
    display: none;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease-in-out;
}
.viewer-img.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Interactive Benchmark Viewer Styles
   ========================================================================== */
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.button-container .btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-family: inherit;
}

.button-container .btn:hover {
    background-color: #e9e9e9;
}

.button-container .btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.result-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    align-items: center;
}

.prompt-col {
    flex: 1;
}

.image-col {
    flex: 1;
    text-align: center;
}

.image-col img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.level-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

.level-badge.factual { background-color: #28a745; }
.level-badge.explicit { background-color: #fd7e14; }
.level-badge.implicit { background-color: #dc3545; }

.prompt-text {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    font-style: italic;
    margin-top: 0;
}

.benchmark-viewer {
    position: relative;
    left: 50%;
    width: min(95vw, 1280px);
    max-width: 1280px;
    transform: translateX(-50%);
    padding: 24px;
    box-sizing: border-box;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* 顶部控制区域 */
.controls-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    margin-bottom: 24px;
}

.controls-group {
    width: 100%;
    margin-bottom: 0;
}

.control-label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05em;
    font-weight: 700;
    color: #111827;
}

/* 场景下拉框 */
.scenario-select {
    width: 100%;
    max-width: 520px;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    outline: none;
}

.scenario-select:focus {
    border-color: #2f6fed;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.16);
}

/* 模型按钮容器 */
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.benchmark-btn {
    padding: 7px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
    transition: all 0.15s ease;
}

.benchmark-btn:hover {
    border-color: #2f6fed;
    color: #2f6fed;
    background: #f8fbff;
}

.benchmark-btn.active {
    background: #2f6fed;
    color: white;
    border-color: #2f6fed;
    box-shadow: 0 4px 10px rgba(47, 111, 237, 0.24);
}

/* L1 / L2 / L3 横向三列 */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    width: 100%;
    margin-top: 26px;
}

/* 单个层级卡片 */
.level-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
}

.level-header {
    margin-bottom: 10px;
}

/* 标签 */
.level-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 0;
    white-space: normal;
}

.level-badge.factual {
    background: #e8f1ff;
    color: #1d4ed8;
}

.level-badge.explicit {
    background: #fff3cd;
    color: #92400e;
}

.level-badge.implicit {
    background: #f3e8ff;
    color: #7e22ce;
}

/* Prompt 固定高度，超出滚动 */
.prompt-box {
    height: 150px;
    overflow-y: auto;
    padding: 11px 12px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}

/* 滚动条美化 */
.prompt-box::-webkit-scrollbar {
    width: 7px;
}

.prompt-box::-webkit-scrollbar-track {
    background: #eef2f7;
    border-radius: 999px;
}

.prompt-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.prompt-box::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.prompt-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #1f2937;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 图片区域：保持原比例，不裁剪，不强行等高 */
.image-box {
    width: 100%;
    text-align: center;
}

.image-box img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    image-rendering: auto;
    border-radius: 10px;
}


/* 兼容旧结构，如果页面里还有 result-row，不至于炸版 */
.result-row {
    display: none;
}

/* 中等屏幕：仍尽量保持三列，但缩小间距 */
@media (max-width: 1100px) {
    .benchmark-viewer {
        width: 96vw;
        padding: 18px;
    }

    .comparison-grid {
        gap: 12px;
    }

    .level-card {
        padding: 12px;
    }

    .prompt-box {
        height: 140px;
    }

    .level-badge {
        font-size: 12px;
        padding: 5px 8px;
    }
}

/* 小屏幕：改为单列，避免三列太挤 */
@media (max-width: 768px) {
    .benchmark-viewer {
        width: 96vw;
        padding: 14px;
        border-radius: 14px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .scenario-select {
        max-width: 100%;
    }

    .prompt-box {
        height: 130px;
    }

    .button-container {
        gap: 7px;
    }

    .benchmark-btn {
        font-size: 13px;
        padding: 7px 11px;
    }
}

