/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Home Link */
.home-link {
  position: fixed;
  top: 24px;
  left: 24px;
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  z-index: 1000;
}

.home-link:hover {
  color: #764ba2;
  transform: translateX(-2px);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: #333;
  background: #ffffff;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 50px;
}

/* Header */
header {
  text-align: center;
  padding: 25px 20px 15px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 10px;
}

h1 {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.authors {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #444;
}

.author {
  font-weight: 500;
}

.separator {
  margin: 0 6px;
  color: #ccc;
}

.affiliations {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 8px;
}

.conf {
  font-style: italic;
  color: #6366f1;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: block;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.button svg {
  width: 15px;
  height: 15px;
}

/* Sections */
section {
  background: transparent;
  padding: 35px 60px;
  margin-bottom: 25px;
  border-radius: 0;
  box-shadow: none;
  border-top: 1px solid #e5e7eb;
}

/* Hero Section */
.hero {
  padding: 10px 60px 8px !important;
  border-top: none;
  margin-bottom: 10px;
}

.hero-image {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-image img {
  max-width: 75%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.02);
}

/* Abstract Section */
.abstract {
  padding: 20px 60px !important;
}

.abstract .lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.55;
  margin-bottom: 12px;
}

.abstract p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 10px;
}

h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
  display: block;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
  margin-top: 20px;
}

p {
  margin-bottom: 12px;
  font-size: 1.02rem;
  color: #4a5568;
}

/* Video Section */
.video-section {
  padding: 50px 60px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* Highlights Grid */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 30px;
}

.highlight-card {
  background: #f9fafb;
  padding: 32px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.highlight-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.highlight-card h3 {
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-top: 0;
  margin-bottom: 8px;
}

.highlight-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #5a6572;
  margin-bottom: 0;
}

/* Method Section */
.method-content ul, .method-content ol {
  margin-left: 24px;
  margin-bottom: 20px;
}

.method-content li {
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: #4a5568;
  line-height: 1.7;
}

/* Figures */
.figure {
  margin: 30px 0;
  text-align: center;
}

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

.figure-small img {
  max-width: 70%;
}

.caption {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #6b7280;
  font-style: italic;
  line-height: 1.6;
}

/* Overview Combined Section */
.overview-combined {
  padding: 35px 60px !important;
}

.overview-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.overview-main h2 {
  margin-top: 0;
}

.feature-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.feature-list li {
  margin-bottom: 14px;
  padding-left: 24px;
  position: relative;
  color: #4a5568;
  line-height: 1.7;
}

.feature-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.overview-demo .figure img {
  width: 100%;
  height: auto;
  min-height: 400px;
  object-fit: contain;
}

/* System Architecture Section */
.system-architecture {
  padding: 35px 60px !important;
}

.system-arch-full {
  margin-top: 30px;
}

.arch-image-full {
  text-align: center;
  margin-bottom: 50px;
}

.arch-image-full img {
  max-width: 85%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.arch-stages-horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.stage-horizontal {
  display: flex;
  gap: 20px;
  align-items: start;
}

.stage-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.stage-content h4 {
  font-size: 1.2rem;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.stage-content p {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
}

/* Technical Architecture Section */
.technical-architecture {
  padding: 35px 60px !important;
}

.tech-arch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  margin-top: 30px;
  align-items: start;
}

.tech-arch-item {
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.tech-arch-item .figure {
  margin: 0;
  text-align: center;
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 20px;
}

.tech-arch-item .figure img {
  max-height: 280px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

.tech-arch-item .caption {
  margin-top: 15px;
  margin-bottom: 20px;
}

.tech-desc {
  padding-top: 10px;
}

.tech-desc h3 {
  font-size: 1.3rem;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.tech-desc p {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
}

/* Results */
.results-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.result-item {
  padding: 28px;
  background: #f9fafb;
  border-left: 4px solid #667eea;
  border-radius: 8px;
}

.result-item h3 {
  margin-top: 0;
  color: #667eea;
  font-size: 1.2rem;
}

.result-item p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* Impact & Applications */
.impact-content > p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #2d3748;
  text-align: center;
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.use-case {
  background: #f9fafb;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.use-case:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.use-case h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.use-case p {
  margin-bottom: 0;
  color: #5a6572;
  font-size: 1rem;
  line-height: 1.6;
}

/* Demo Section */
.demo-content > p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #2d3748;
  text-align: center;
}

/* Research & Citation */
.research > p {
  font-size: 1.05rem;
  margin-bottom: 30px;
  color: #4a5568;
  text-align: center;
}

.citation-box {
  background: #f9fafb;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.citation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.citation-box h3 {
  margin: 0;
  color: #1a1a1a;
  font-size: 1.2rem;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.copy-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.copy-button svg {
  width: 14px;
  height: 14px;
}

.citation-box pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 24px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.citation-box code {
  font-family: 'Monaco', 'Courier New', monospace;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 20px;
  color: #718096;
  font-size: 0.95rem;
}

/* Links */
a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #764ba2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .home-link {
    top: 16px;
    left: 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 1200px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .overview-demo .figure img {
    max-width: 85%;
  }

  .arch-image-full img {
    max-width: 95%;
  }

  .arch-stages-horizontal {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .tech-arch-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tech-arch-item .figure {
    height: auto;
    padding-top: 10px;
  }

  .tech-arch-item .figure img {
    max-height: none;
    max-width: 100%;
  }

  .results-content {
    grid-template-columns: 1fr;
  }

  .use-cases {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  section {
    padding: 30px 24px !important;
  }

  .video-section {
    padding: 30px 24px !important;
  }

  .overview-combined {
    padding: 30px 24px !important;
  }

  .system-architecture {
    padding: 30px 24px !important;
  }

  .technical-architecture {
    padding: 30px 24px !important;
  }

  .buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    justify-content: center;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .container {
    padding: 20px 16px;
  }

  header {
    padding: 40px 20px 30px;
  }

  .hero {
    padding: 20px 24px 15px !important;
  }

  .hero-image img {
    max-width: 100%;
  }

  .abstract {
    padding: 30px 24px !important;
  }

  .abstract .lead {
    font-size: 1.1rem;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-demo .figure img {
    max-width: 100%;
  }

  .arch-image-full img {
    max-width: 100%;
  }

  .arch-stages-horizontal {
    grid-template-columns: 1fr;
  }

  .tech-arch-grid {
    grid-template-columns: 1fr;
  }

  .tech-arch-item .figure {
    height: auto;
    padding-top: 10px;
  }

  .tech-arch-item .figure img {
    max-height: none;
    max-width: 100%;
  }

  .results-content {
    grid-template-columns: 1fr;
  }

  .use-cases {
    grid-template-columns: 1fr;
  }
}
  