* {
  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 p {
  font-size: 16px;
  color: #7f8c8d;
  max-width: 95%;
  margin: 0 auto;
}

/* 搜索区域样式 */
.search-container {
  background: white;
  max-width: 900px;
  margin: 0 auto 30px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.search-box {
  display: flex;
  gap: 10px;
}

#searchInput {
  flex: 1;
  padding: 14px 20px;
  font-size: 1.1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s;
}

#searchInput:focus {
  border-color: #4a90e2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

#searchInput::placeholder {
  color: #aaa;
}

/* 快捷键区域样式 */
.shortcuts-container {
  margin-bottom: 25px;
  column-count: 2;
  /* 初始显示三列 */
  column-gap: 20px;
  padding: 0 10px;
}

.category-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
  /* 防止卡片被拆分到不同列 */
}

.category-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-header {
  background: linear-gradient(to right, #4a90e2, #5a9cec);
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.shortcut-table {
  width: 100%;
  border-collapse: collapse;
}

.shortcut-table th {
  background-color: #f8f9fa;
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  color: #444;
  border-bottom: 2px solid #eaeaea;
}

.shortcut-table td {
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
}

.shortcut-table tr:last-child td {
  border-bottom: none;
}

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

.shortcut-table tr:hover {
  background-color: #f0f7ff;
}

.function-cell {
  width: 60%;
}

.shortcut-cell {
  width: 40%;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #d35400;
}

.no-results {
  text-align: center;
  padding: 3rem;
  grid-column: 1 / -1;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  break-inside: avoid;
}

.no-results h2{
  margin-bottom: 25px;
  color: #333;
  font-size: 1.25rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 100%;
  margin-bottom: 25px;
  background: #fff;
  border-radius: 12px;
}

.footer-section h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section p {
  opacity: 0.85;
  line-height: 1.7;
}

footer{
  text-align: center;
  margin-bottom: 25px;
  opacity: 0.7;
  font-size: 0.95rem;
}
