:root {
  --header-bg: linear-gradient(-180deg, #17181e 5%, #17181e 95%) !important;
  --primary-color: #a74fffe0 !important;
}

* {
  user-select: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.news-card {
  background: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-content {
  padding: 15px;
}

.news-category {
  font-size: 12px;
  color: #bbb;
  margin-bottom: 5px;
}

.news-title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 限制顯示兩行 */
  line-clamp: 2; /* Standard property for compatibility */
  -webkit-box-orient: vertical;
}

.ad-coin-img {
  width: 100%;
}

.ad-coin a {
  display: contents;
}

.ad-coin {
  position: relative;
  width: 100%;
}

.ad-coin h4 {
  position: absolute;
  bottom: 3.5%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  width: 100%;
  text-align: center;
  font-size: 12px;
  margin: 0;
}
.ad-coin h4 .num {
  color: rgb(250, 253, 67);
  font-size: 22px;
  margin-left: 10px;
}

@media (max-width: 768px) {
  .ad-coin h4 {
    font-size: 24px;
  }
  .ad-coin h4 .num {
    font-size: 36px;
  }
}
