/* 全局样式增强 */
body.ui-style-3 {
  font-size: 15px;
}

/* 卡片悬停效果 */
div[style*="background: #fff"] {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

div[style*="background: #fff"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

/* 链接增强 */
a {
  transition: color 0.2s ease;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 10px 24px;
  background: #0066cc;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #0052a3;
  text-decoration: none;
}

/* 响应式优化 */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 28px !important;
  }

  h2 {
    font-size: 22px !important;
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* 渐入动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: fadeIn 0.6s ease-out;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 加载状态 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0,102,204,0.3);
  border-radius: 50%;
  border-top-color: #0066cc;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer样式增强 */
footer a {
  color: #aaa;
  text-decoration: underline;
}

footer a:hover {
  color: #fff;
}

/* 首页特殊样式 */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 20px;
  text-align: center;
  color: #fff;
  border-radius: 12px;
  margin-bottom: 60px;
}

.hero-section h1 {
  font-size: 42px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.95;
}

/* 列表页样式 */
.rank-number {
  font-size: 28px;
  font-weight: bold;
  min-width: 50px;
  text-align: center;
}

.rank-number.top {
  color: #ff6b6b;
}

/* 专题页分组样式 */
.topic-group {
  margin-bottom: 50px;
}

.topic-group h2 {
  border-left: 4px solid #0066cc;
  padding-left: 15px;
  margin-bottom: 25px;
}

/* 年份标签 */
.year-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #0066cc;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}
