.VPHero .VPImage {
  filter: drop-shadow(0 0 32px rgb(163, 159, 133));
}
/* Hero logo 轻微浮动动画 */
.VPHero .VPImage img {
  animation: foxel-float 6s ease-in-out infinite;
}
@keyframes foxel-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Hero 标题渐变与进入动画（仅首页） */
.VPHome .VPHero .name {
  background: linear-gradient(90deg, #6ee7b7, #60a5fa 50%, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foxel-fadein 0.8s ease-out both;
}
@keyframes foxel-fadein { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: translateY(0);} }

/* Hero 按钮交互反馈（不影响全站：限定到 Hero 区域） */
.VPHero .actions .VPButton {
  transition: transform .15s ease, box-shadow .15s ease;
}
.VPHero .actions .VPButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Features 卡片 hover 微动效 + 阴影 */
.VPFeatures .item, .VPFeatures .feature {
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.VPFeatures .item:hover, .VPFeatures .feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.sponsor-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* 允许在窄屏换行 */
  gap: 20px;
  margin-top: 40px;
}

.sponsor-card {
  box-sizing: border-box; /* 保证宽度包含内边距，避免小屏溢出 */
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  width: 300px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sponsor-card.wechat {
  background-color: #e6f7e6;
  border: 1px solid #b7e0b7;
}

.sponsor-card.alipay {
  background-color: #e6f0ff;
  border: 1px solid #b3d1ff;
}

.sponsor-card h2 {
  margin-top: 0;
  font-size: 1.5em;
}

.sponsor-card p {
  color: #666;
  
}

.sponsor-card img {
  width: 200px;
  height: 200px;
  margin: 20px auto;
}

.sponsor-card .button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.sponsor-card.wechat .button {
  background-color: #28a745;
}

.sponsor-card.alipay .button {
  background-color: #007bff;
}

.sponsor-list {
  margin-top: 40px;
}

.sponsor-list table {
  width: 100%;
  border-collapse: collapse;
}

.sponsor-list th,
.sponsor-list td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.sponsor-list th {
  background-color: #f2f2f2;
}

/* --- Doc readability tweaks (scoped to VitePress doc) --- */
.vp-doc table {
  display: block;
  overflow-x: auto;
}

.vp-doc pre {
  overflow-x: auto;
}

.vp-doc pre code {
  white-space: pre-wrap; /* wrap long code lines */
  word-break: break-word;
}

.vp-doc blockquote {
  margin: 1em 0;
  font-size: 0.95em;
}

/* --- Mobile layout for sponsor cards --- */
@media (max-width: 680px) {
  .sponsor-container {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .sponsor-card {
    width: 100%;
    max-width: 360px; /* 居中且不贴边 */
  }
}

/* --- Dark theme overrides for sponsor page --- */
.dark .sponsor-card p {
  color: #bbb;
}

.dark .sponsor-card.wechat {
  background-color: rgba(40, 167, 69, 0.12); /* 绿色低饱和背景 */
  border: 1px solid rgba(40, 167, 69, 0.35);
}

.dark .sponsor-card.alipay {
  background-color: rgba(0, 123, 255, 0.12); /* 蓝色低饱和背景 */
  border: 1px solid rgba(0, 123, 255, 0.35);
}

.dark .sponsor-list th,
.dark .sponsor-list td {
  border-color: #2d3748;
}

.dark .sponsor-list th {
  background-color: #1f2937;
}
