:root {
  --primary-color: #7fbfff; /* 调整为主色调 */
  --secondary-color: #ff99cc; /* 新增辅助色 */
  --text-color: #2d3748;
  --hover-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础链接样式 */
a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--hover-transition);
  position: relative;
}

a:focus,
a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--hover-transition);
}

a:hover::after {
  width: 100%;
}

/* 导航栏 */
.navbar {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
}

/* 头部区域 */
.header {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fbff 0%, #e6f1ff 100%);
  border-radius: 0 0 2rem 2rem;
}

.header .title {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.header .fa {
  color: #94a3b8;
  font-size: 1.2rem;
}

/* 搜索框 */
.header .search-wrapper {
  max-width: 720px;
  margin: 2rem auto;
}

.header .search {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 2rem;
  transition: var(--hover-transition);
  background: rgba(255, 255, 255, 0.9);
}

.header .search:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(127, 191, 255, 0.3);
}

/* 主要内容区 */
main {
  min-height: 50vh;
  padding: 2rem 0;
}

/* 卡片样式 */
.pack {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.pack:hover {
  transform: translateY(-4px);
}

.pack .title a {
  color: var(--text-color);
  font-size: 1.25rem;
  font-weight: 600;
}

/* 表格优化 */
.api-table {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.api-table th {
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  color: #64748b;
  font-weight: 600;
  padding: 1rem;
}

.api-table td {
  padding: 0.75rem 1rem;
  border-color: #f1f5f9;
}

.api-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.api-table tr:hover {
  background-color: #f1f5f9;
}

/* 版权信息 */
.copyright {
  background: linear-gradient(145deg, var(--primary-color) 0%, #6ba8ff 100%);
  color: white;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* 响应式设计 */
@media  {
  .header .title {
    font-size: 1.75rem;
  }
  
  .header .search {
    padding: 0.8rem 1.5rem;
  }
  
  .pack {
    margin: 0 1rem;
  }
}

/* 动画增强 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

main > * {
  animation: fadeIn 0.5s ease-out;
}