/* Entrepreneurship页面专用样式 */

/* 折叠效果样式 */
.collapsible-section {
  margin: 20px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.collapsible-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 20px;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.collapsible-header:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.collapsible-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.collapsible-toggle {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.collapsible-toggle.expanded {
  transform: rotate(180deg);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: white;
}

.collapsible-content.expanded {
  max-height: 2000px;
}

.collapsible-content-inner {
  padding: 20px;
}

/* PESTLE交互式模型样式 */
.pestle-interactive-container {
  max-width: 800px;
  margin: 20px auto 300px auto;
  position: relative;
  width: 100%;
}

/* 125%缩放时增加底部边距 */
.zoom-125.pestle-interactive-container {
  margin-bottom: 400px;
}

/* 六边形Grid容器 - 六边形排列 */
.pestle-hexagon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 0;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 1;
  /* 使用负边距来创建六边形排列 */
  transform: translateY(-20px);
}

.pestle-hexagon {
  width: 100px;
  height: 100px;
  background: #90B3C8;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
  justify-self: center;
  align-self: center;
}

.pestle-hexagon:hover {
  background: #A87779 !important;
  transform: scale(1.1);
  z-index: 15 !important;
}

.pestle-hexagon:hover + .pestle-description,
.pestle-hexagon:hover ~ .pestle-description {
  display: block;
}

.pestle-description {
  position: absolute;
  top: calc(100% - 230px);
  left: 0;
  right: 0;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  min-height: 150px;
  display: block;
  text-align: left;
  font-size: 16px;
  color: #333;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 六边形Grid位置和颜色 - 六边形排列 */
/* 顶部行 */
.pestle-hexagon:nth-child(1) {
  grid-column: 2;
  grid-row: 1;
  background: #A7DADE;
  transform: translateY(25px);
}

.pestle-hexagon:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  background: #77B0C4;
  transform: translateX(120px) translateY(-125px);
}

.pestle-hexagon:nth-child(3) {
  grid-column: 3;
  grid-row: 2;
  background: #758BB0;
  transform: translateX(-120px) translateY(-124px);
}

/* 底部行 */
.pestle-hexagon:nth-child(4) {
  grid-column: 1;
  grid-row: 3;
  background: #336274;
  transform: translateX(120px) translateY(-220px);
}

.pestle-hexagon:nth-child(5) {
  grid-column: 3;
  grid-row: 3;
  background: #485E85;
  transform: translateX(-120px) translateY(-220px);
}

.pestle-hexagon:nth-child(6) {
  grid-column: 2;
  grid-row: 3;
  background: #6C8BE5;
  transform: translateY(-165px);
}

/* 可滚动的文字框样式 */
.pestle-text-scrollable {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

.pestle-text-scrollable::-webkit-scrollbar {
  width: 6px;
}

.pestle-text-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.pestle-text-scrollable::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.pestle-text-scrollable::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .pestle-hexagon-grid {
    max-width: 400px;
    transform: translateY(-15px);
  }

  .pestle-hexagon {
    width: 80px;
    height: 80px;
    font-size: 20px;
  }

  /* 调整移动端的六边形位置 - 按比例缩放 */
  .pestle-hexagon:nth-child(1) { transform: translateY(20px); }
  .pestle-hexagon:nth-child(2) { transform: translateX(80px) translateY(-80px); }
  .pestle-hexagon:nth-child(3) { transform: translateX(-80px) translateY(-80px); }
  .pestle-hexagon:nth-child(4) { transform: translateX(80px) translateY(-140px); }
  .pestle-hexagon:nth-child(5) { transform: translateX(-80px) translateY(-140px); }
  .pestle-hexagon:nth-child(6) { transform: translateY(-100px); }
}

/* 使用JavaScript类控制不同缩放级别 */
.zoom-110 .pestle-hexagon-grid {
  max-width: 600px;
  transform: translateY(-25px);
}

.zoom-110 .pestle-hexagon {
  width: 105px;
  height: 105px;
  font-size: 25px;
}

.zoom-110 .pestle-hexagon:nth-child(1) { transform: translateY(-10px); }
.zoom-110 .pestle-hexagon:nth-child(2) { transform: translateX(115px) translateY(-155px); }
.zoom-110 .pestle-hexagon:nth-child(3) { transform: translateX(-115px) translateY(-155px); }
.zoom-110 .pestle-hexagon:nth-child(4) { transform: translateX(115px) translateY(-245px); }
.zoom-110 .pestle-hexagon:nth-child(5) { transform: translateX(-115px) translateY(-245px); }
.zoom-110 .pestle-hexagon:nth-child(6) { transform: translateY(-195px); }

.zoom-125 .pestle-hexagon-grid {
  max-width: 650px;
  transform: translateY(-50px);
  padding-bottom: 100px;
  min-height: 660px;
}

.zoom-125 .pestle-hexagon {
  width: 110px;
  height: 110px;
  font-size: 26px;
}

.zoom-125 .pestle-hexagon:nth-child(1) { transform: translateY(35px); }
.zoom-125 .pestle-hexagon:nth-child(2) { transform: translateX(86px) translateY(-96px); }
.zoom-125 .pestle-hexagon:nth-child(3) { transform: translateX(-86px) translateY(-96px); }
.zoom-125 .pestle-hexagon:nth-child(4) { transform: translateX(86px) translateY(-168px); }
.zoom-125 .pestle-hexagon:nth-child(5) { transform: translateX(-86px) translateY(-168px); }
.zoom-125 .pestle-hexagon:nth-child(6) { transform: translateY(-110px); }

