* {
  margin: 0;
  padding: 0;
}

body {
  background: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}

header .subtitle{
  font-size: 16px;
  color: #7f8c8d;
  max-width: 95%;
  margin: 0 auto;
}

.search-container {
  width: 800px;
  margin: 0 auto;
  position: relative;
}

#searchInput {
  width: 100%;
  padding: 15px 20px;
  padding-left: 50px;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#searchInput:focus {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
}

.shortcut-container {
  column-count: 2;
  /* 设置为2列 */
  column-gap: 20px;
  margin-bottom: 20px;
  padding: 0;
}

.category-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  break-inside: avoid;
  /* 防止卡片被拆分到不同列 */
  margin-bottom: 25px;
  display: inline-block;
  width: 100%;
}

.category-card:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.card-header {
  padding: 12px 20px;
  background: linear-gradient(to right, #4b6cb7, #182848);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.card-icon {
  margin-right: 10px;
}

.card-body {
  padding: 0;
}

.shortcut-table {
  width: 100%;
  border-collapse: collapse;
}

.shortcut-table th {
  background-color: #f8f9fa;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e9ecef;
}

.shortcut-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.9rem;
}

.shortcut-table tr:last-child td {
  border-bottom: none;
}

.shortcut-table tr:hover {
  background-color: #f8f9ff;
}

.key {
  display: inline-block;
  padding: 4px 8px;
  background: linear-gradient(to bottom, #f5f7fa, #e4e7eb);
  border-radius: 4px;
  border: 1px solid #d1d5db;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05);
  margin: 2px 3px;
  font-family: monospace;
  font-size: 0.8rem;
  min-width: 42px;
  text-align: center;
}

.highlight {
  background-color: #fff9db;
  font-weight: 600;
}

.no-results {
  text-align: center;
  padding: 40px;
  font-size: 1.2rem;
  color: #6c757d;
  display: none;
  break-inside: avoid;
}

footer {
  background: linear-gradient(to right, #2c3e50, #4a6491);
  color: white;
  padding: 25px 0;
  border-radius: 12px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
}

.footer-content {
  margin: 0 auto;
  padding: 0 20px;
}

.footer-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-info {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.footer-info p {
  margin-bottom: 15px;
  line-height: 1.8;
  font-size: 1.1rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.8;
}
