:root {
  --el-color-primary: #4a7c59;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
  color: #2c3e50;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #1a3d2e;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a3d2e;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.header p {
  font-size: 1.2rem;
  color: #5a6c57;
  font-weight: 300;
  /* max-width: 600px; */
  margin: 0 auto;
}

.header .desc {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: #5a6c57;
  text-align: right;
}

.header .desc span {
  text-align: right;
  text-decoration: underline;
  cursor: pointer;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  margin-bottom: 2rem;
}

.chart-container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-container .grid-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.chart-container .grid-content div {
  width: 400px;
}

.chart-container .grid-content img {
  flex: 1;
  max-width: 850px;
}

.chart-wrapper {
  position: relative;
  height: 600px;
}

.sidebar {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: fit-content;
}

.sidebar h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #1a3d2e;
  margin-bottom: 1.5rem;
  text-align: center;
}

.brand-list {
  max-height: 500px;
  overflow-y: auto;
}

.brand-item {
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #4a7c59;
  transition: all 0.3s ease;
  cursor: pointer;
}

.brand-item:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.brand-name {
  font-weight: 600;
  color: #1a3d2e;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.brand-score {
  font-size: 0.9rem;
  color: #5a6c57;
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #7f8c8d;
  font-style: italic;
}

.controls {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.controls h3,
.chart-container h3 {
  font-family: 'Playfair Display', serif;
  color: #1a3d2e;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.control-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  background: linear-gradient(135deg, #4a7c59 0%, #6b8e5a 100%);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(74, 124, 89, 0.3);
}

.btn.active {
  background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
  box-shadow: 0 5px 15px rgba(44, 85, 48, 0.4);
}

.legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #5a6c57;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-self: center;
  align-items: center;
}

.flex-start {
  display: flex;
  align-items: center;
}

.flex-end {
  display: flex;
  justify-content: end;
}

.flex-column {
  flex-direction: column;
}

.flex1 {
  flex: 1;
}

.chart-arrow {
  position: relative;
  width: 200px;
  height: 8px;
  background-color: #588666;
  margin: 0 10px;
}

.chart-arrow::before,
.chart-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  z-index: 2;
}

.chart-arrow::before {
  left: -10px;
  border-width: 10px 10px 10px 0; /* 调整箭头大小和形状 */
  border-color: transparent #588666 transparent transparent;
}

.chart-arrow::after {
  right: -10px;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #588666;
}

.chart-arrow.vertical {
  width: 8px;
  height: 200px;
  margin: 10px 0;
}
.chart-arrow.vertical::before,
.chart-arrow.vertical::after {
  left: 50%;
  transform: translateX(-50%);
}
.chart-arrow.vertical::before {
  top: -10px;
  border-width: 0 10px 10px 10px; /* 调整箭头大小和形状 */
  border-color: transparent transparent #588666 transparent;
}

.chart-arrow.vertical::after {
  top: unset;
  bottom: -10px;
  border-width: 10px 10px 0px 10px;
  border-color: #588666 transparent transparent transparent;
}

@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .header h1 {
    font-size: 2.5rem;
  }

  .header h2 {
    font-size: 1.5rem;
  }

  .control-group {
    flex-direction: column;
    align-items: stretch;
  }

  .chart-container .grid-content div {
    width: 100%;
  }

  .chart-container .grid-content img {
    max-width: 100%;
  }
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 1.2rem;
  color: #7f8c8d;
}

.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
