/**
 * 移动端 Stats Widget 空白修复
 * 解决移动端widget下方大片空白问题
 */

/* 移除固定高度，使用动态高度 */
@media (max-width: 768px) {
  .stats-wrapper {
    margin: 0.5rem auto !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
  }

  .stats-widget-iframe {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 8px;
    overflow: hidden;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }

  /* 让widget上下间距相等，实现居中 - 覆盖wrapper类的margin */
  .funding-daily.wrapper {
    margin: 0.5rem auto !important;
  }
}

@media (max-width: 480px) {
  .stats-wrapper {
    margin: 0.5rem auto !important;
  }

  .stats-widget-iframe {
    border-radius: 6px;
  }
}

@media (max-width: 375px) {
  .stats-wrapper {
    margin: 0.5rem auto !important;
  }

  .stats-widget-iframe {
    border-radius: 4px;
  }
}
