
.compound-analysis-section {
  background-color: #f9fbf9;
  padding: 80px 20px;
  text-align: center;
}

.section-title-imgbrush {
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
  text-align: center;
}

.section-title-imgbrush h2 {
  position: relative;
  font-size: 1.8rem;
  font-weight: bold;
  color: #2b3e3e;
  padding: 10px 30px;
  z-index: 2;
}

.section-title-imgbrush .brush-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  transform: translate(-50%, -50%) rotate(-4deg);
  z-index: 1;
  opacity: 0.8;
  pointer-events: none;
}

.compound-analysis-content {
  display: flex;
  align-items: stretch;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  overflow-x: hidden;
}

.compound-analysis-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.white-card {
  background-color: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-card {
  flex: 0.9;
  min-width: 260px;
}

.right-card {
  flex: 1.4;
  min-width: 340px;
  overflow-x: auto;
}

.white-card img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 100%;
}

.chart-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chart-scroll-wrapper canvas {
  min-width: 600px;
  width: 100%;
  border-radius: 12px;
  object-fit: contain;
  height: 100%;
}

.chart-mobile {
  display: none;
}

@media (max-width: 768px) {
  .compound-analysis-content {
    flex-direction: column;
  }
  .right-card {
    min-height: auto;
    padding: 0;
  }
  .chart-desktop {
    display: none;
  }
  .chart-mobile {
    display: block;
    padding: 24px 20px;
  }
  .chart-mobile img {
    width: 100%;
    border-radius: 12px;
    display: block;
  }
}
