/* Externalized styles for UDDETTS Demo — beautified */
:root{
  --content-width: 1100px;
  --muted: #9aa3ad;
  --accent: #2b6cb0; /* pleasant blue */
  --card-bg: rgba(255,255,255,0.86);
  --glass: rgba(255,255,255,0.06);
}

html,body{
  height:100%;
  margin:0;
  font-family: 'Times New Roman', Times, serif;
  color:#0f1724;
  background: radial-gradient(circle at 8% 6%, rgba(255,255,255,0.03), transparent 12%),
              linear-gradient(180deg, #071126 0%, #0b2340 28%, #0f3755 62%, #f6fbff 100%);
  background-size: cover;
  background-attachment: fixed;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Page container */
.container-max{
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 28px 20px;
}

/* Hero area */
.page-hero{
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-radius: 14px;
  padding: 36px 28px;
  box-shadow: 0 8px 30px rgba(2,6,23,0.45);
  margin-bottom: 28px;
  backdrop-filter: blur(6px) saturate(120%);
}

.publication-title{
  font-size: 34px;
  line-height: 1.16;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 18px rgba(11,22,38,0.6);
  margin-bottom: 10px;
}

.publication-info{ color: var(--muted); font-size:15px; }
.section-title{ font-weight:700; color: #dfe9f3; margin-bottom:6px; }

/* Top-right action buttons */
.top-actions{ display:flex; gap:12px; justify-content:center; margin-top:12px }
.top-actions a.button{ display:inline-flex; align-items:center; gap:8px; }

/* Card for abstract and demos */
.card-pane{
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(11,22,38,0.24);
  margin-bottom: 24px;
}

h2.title{ font-family:'Times New Roman', Times, serif; color:#08263a; }

.content p{ font-size:16px; color:#122436; text-align: justify; }

img.responsive{
  max-width:100%; height:auto; border-radius:8px; box-shadow: 0 6px 20px rgba(9,20,33,0.2);
}

/* Audio grid styling */
.audio-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:14px; align-items:center; }
.audio-cell{ text-align:center; padding:8px; }
.audio-label{ font-weight:700; display:block; margin-bottom:6px; }

audio{ width:100%; max-width:260px; }

/* Table replacement styles for the large demo tables */
.demo-table{ width:100%; border-collapse:collapse; margin-top:12px }

/* Footer spacing */
.spacer{ height:18px }

.icon-hf { width: 20px; height: 20px; display:inline-block; vertical-align:middle; color:#FF9900; }

/* Zoomable image style */
.responsive.zoomable {
  cursor: zoom-in;
  transition: transform .22s ease, box-shadow .22s ease;
}
.responsive.zoomable:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(2,6,23,0.28);
}

/* Lightbox / modal */
.img-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.img-modal.open { display: flex; }

.img-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.68);
  backdrop-filter: blur(4px);
}

.img-modal-content {
  position: relative;
  max-width: calc(100% - 48px);
  max-height: calc(100% - 48px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 2;
  pointer-events: none;
}

.img-modal-content img {
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  pointer-events: auto;
  user-select: none;
  will-change: transform;
  transition: transform .12s ease;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(2,6,23,0.5);
}


.img-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 3;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: none;
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  pointer-events: auto;
}

.img-modal-controls {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 3;
  display:flex;
  gap:8px;
  pointer-events: auto;
}
.img-modal-controls button {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
}


.image-box {
  position: relative;
  max-width: 300px;
  flex: 0 0 auto;
  text-align: center;
}

.image-box img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.caption {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  background: none;   /* 去掉半透明背景 */
  position: static;   /* 取消绝对定位 */
  transform: none;
}


/* Small responsive tweaks */
@media (max-width: 720px){
  .publication-title{ font-size:24px }
  .content p{ font-size:15px }
  .page-hero{ padding:20px }
}
