/* 交易箴言区域 - 完全自适应 */
.wisdom-section {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #fff;
  padding: clamp(1.25rem, 4vw, 2.5rem) 0;
  margin: 0 auto clamp(1.25rem, 4vw, 2.5rem);
  border-radius: clamp(0.5rem, 2vw, 0.75rem);
  overflow: hidden;
  position: relative;
  min-height: clamp(9.375rem, 25vw, 15.625rem);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wisdom-container {
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 1000px;
  padding: 0 clamp(0.625rem, 3vw, 1.875rem);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit; /* 继承父容器高度 */
}

.wisdom-item {
  position: absolute;
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: 500;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  word-break: keep-all;
  line-height: 1.4;
  opacity: 0;
  z-index: 1;
  transform-origin: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* 允许换行 */
  text-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.5);
  filter: drop-shadow(0 0 0.625rem rgba(255, 255, 255, 0.3));
  max-width: 90%;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
  box-sizing: border-box;
  gap: 0.125rem; /* 字符间距 */
}

.wisdom-char {
  display: inline-block;
  transition: all 0.3s ease;
  transform-origin: center;
  flex-shrink: 0; /* 防止字符被压缩 */
}

/* 加载状态 */
.wisdom-loading {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.875rem, 3vw, 1.125rem);
  text-align: center;
}

/* 响应式断点 */
@media (max-width: 768px) {
  .wisdom-section {
    min-height: clamp(7.5rem, 30vw, 11.25rem);
    padding: 0.9375rem 0;
    margin-bottom: 1.25rem;
    border-radius: clamp(0.375rem, 1.5vw, 0.5rem);
  }
  
  .wisdom-item {
    font-size: clamp(0.875rem, 3.5vw, 1.125rem);
    max-width: 95%;
    line-height: 1.3;
    gap: 0.0625rem;
  }
  
  .wisdom-container {
    padding: 0 0.3125rem;
  }
}

@media (max-width: 480px) {
  .wisdom-section {
    min-height: clamp(6.25rem, 35vw, 9.375rem);
    padding: 0.625rem 0;
  }
  
  .wisdom-item {
    font-size: clamp(0.75rem, 3vw, 1rem);
    line-height: 1.2;
    padding: 0 0.3125rem;
  }
}

/* 横屏适配 */
@media (max-height: 500px) and (orientation: landscape) {
  .wisdom-section {
    min-height: 7.5rem;
    padding: 0.625rem 0;
  }
}

/* 大屏幕适配 */
@media (min-width: 1200px) {
  .wisdom-section {
    min-height: 17.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 超小屏幕适配 */
@media (max-width: 320px) {
  .wisdom-section {
    min-height: 5rem;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
  }
  
  .wisdom-item {
    font-size: 0.75rem;
    line-height: 1.1;
  }
}

/* 高DPI屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .wisdom-section {
    background: linear-gradient(135deg, #1a3365 0%, #254785 100%);
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .wisdom-char {
    transition: none;
    animation: none;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .wisdom-section {
    background: linear-gradient(135deg, #0f1f3d 0%, #1a3365 100%);
  }
}