/* SanDisk 百度盘链接查询工具 - 样式 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 标题 */
.header {
  text-align: center;
  padding: 30px 0;
}

.header h1 {
  color: #E31937; /* SanDisk 红色 */
  font-size: 28px;
  font-weight: 600;
}

.header p {
  color: #666;
  margin-top: 8px;
  font-size: 14px;
}

/* 筛选按钮 */
#category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.category-btn {
  padding: 10px 20px;
  border: 2px solid #E31937;
  background: white;
  color: #E31937;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-btn:hover {
  background: #fff5f5;
}

.category-btn.active {
  background: #E31937;
  color: white;
}

/* 表格 */
.table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #E31937;
  color: white;
}

thead th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 500;
  font-size: 14px;
}

tbody tr {
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

tbody tr:hover {
  background: #fff5f5;
}

tbody td {
  padding: 14px 12px;
  font-size: 14px;
  color: #444;
}

tbody td:first-child {
  color: #888;
  font-size: 13px;
}

tbody td:nth-child(3) {
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 链接样式 */
tbody td a {
  color: #E31937;
  text-decoration: none;
  font-weight: 500;
}

tbody td a:hover {
  text-decoration: underline;
}

/* 空状态 */
.empty {
  text-align: center;
  color: #999;
  padding: 40px !important;
}

/* 统计 */
.stats {
  text-align: center;
  padding: 12px;
  color: #888;
  font-size: 13px;
  background: #fafafa;
  border-top: 1px solid #eee;
}

/* 响应式 */
@media (max-width: 768px) {
  .container {
    padding: 12px;
  }

  .header h1 {
    font-size: 22px;
  }

  #category-buttons {
    padding: 12px;
    gap: 8px;
  }

  .category-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  table {
    font-size: 13px;
  }

  thead th, tbody td {
    padding: 10px 8px;
  }

  tbody td:nth-child(3) {
    max-width: 200px;
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 24px;
  color: #999;
  font-size: 12px;
}
