.ad-container {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  z-index: 1000;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  font-size: 16px;
  color: #999;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
}

.close-btn:hover {
  color: #333;
}

.ad-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* 响应式设计 - 小屏幕隐藏 */
@media (max-width: 768px) {
  .ad-container {
    display: none;
  }
}