/* public/style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  padding: 40px 20px;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 36px;
  color: #0f172a;
  font-weight: 700;
}

/* 分类容器 */
.category {
  margin-bottom: 40px;
}

.category-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

/* 链接网格 */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  justify-items: center;
}

.link-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  background: white;
  border-radius: 16px;
  text-decoration: none;
  color: #2563eb;
  font-weight: bold;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
}

.link-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  background: #f1f5f9;
  color: #1d4ed8;
}

/* 底部备案 */
.footer {
  margin-top: 60px;
  font-size: 0.95rem;
  color: #64748b;
}

.footer a {
  color: #64748b;
  text-decoration: none;
}

.footer a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* 手机适配 */
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  .category-title {
    font-size: 1.25rem;
  }

  .link-box {
    height: 52px;
    font-size: 1rem;
  }
}
