:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #5b6472;
  --line: #e5e7eb;
  --accent: #1d4ed8;
  --accent-dark: #1e40af;
  --accent-soft: rgba(29, 78, 216, 0.08);
  --warm-bg: #fff7ed;
  --warm-line: #fed7aa;
  --warm-text: #9a3412;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, var(--accent-soft), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 40px auto 60px;
}

.hero,
.section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 56px 42px 40px;
  text-align: center;
  margin-bottom: 28px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 2.55rem;
  line-height: 1.15;
  font-weight: 700;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

.authors {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.authors span {
  white-space: nowrap;
}

.authors sup,
.institutions sup {
  font-size: 0.72em;
  vertical-align: super;
}

.institutions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 1rem;
}

.inst-sep {
  color: #94a3b8;
}

.site-note {
  margin: 0 auto 22px;
  max-width: 760px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--warm-bg);
  border: 1px solid var(--warm-line);
  color: var(--warm-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background: var(--accent);
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.18);
}

.links a:hover {
  transform: translateY(-1px);
  opacity: 0.97;
  background: var(--accent-dark);
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.22);
}

.section {
  padding: 34px 34px 30px;
  margin-bottom: 24px;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.62rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.content-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.text-card {
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-soft);
}

.section-text {
  margin: 0;
  font-size: 1rem;
  color: #334155;
}

.section-image,
.result-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  background: #ffffff;
}

.results-subsection + .results-subsection {
  margin-top: 34px;
}

.results-subsection h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  color: var(--text);
}

.results-caption {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.carousel-stage {
  margin-top: 4px;
}

.carousel-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  min-height: 52px;
}

.carousel-frame {
  width: 100%;
}

.carousel-image {
  width: 100%;
  border-radius: 0;
}

.carousel-btn {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn span {
  display: inline-block;
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-1px);
}

.carousel-btn:hover {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  opacity: 0.9;
}

.carousel-dot:hover {
  transform: scale(1.12);
  background: #94a3b8;
}

.carousel-dot.active {
  width: 26px;
  background: var(--accent);
  opacity: 1;
}

pre {
  margin: 0;
  overflow-x: auto;
  background: #0f172a;
  color: #e5e7eb;
  padding: 18px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
}

code {
  font-family: "Courier New", Courier, monospace;
}

@media (max-width: 700px) {
  .container {
    width: min(1080px, calc(100% - 18px));
    margin-top: 18px;
  }

  .hero,
  .section {
    border-radius: 16px;
  }

  .hero {
    padding: 32px 20px;
  }

  .section {
    padding: 24px 18px 22px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

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

  .institutions {
    font-size: 0.96rem;
  }

  .links a {
    width: 100%;
  }

  .text-card {
    padding: 18px 16px 16px;
  }

  .results-subsection h3 {
    font-size: 1.08rem;
  }

  .carousel-topbar {
    min-height: 44px;
    margin-bottom: 10px;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
  }

  .carousel-btn span {
    font-size: 1.2rem;
  }

  .carousel-dot.active {
    width: 22px;
  }
}
