* {
  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: 20px;
}

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 {
  max-width: 700px;
  margin: 0 auto 30px;
  position: relative;
}

#searchInput {
  width: 100%;
  padding: 15px 20px;
  border-radius: 50px;
  border: none;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#searchInput:focus {
  outline: none;
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.3);
}

#searchInput::placeholder {
  color: #aaa;
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #4285f4;
}

.tabs {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 18px 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  border-bottom: 3px solid transparent;
}

.tab.active {
  color: #4285f4;
  border-bottom: 3px solid #4285f4;
  background-color: rgba(66, 133, 244, 0.05);
}

.tab:hover {
  background-color: rgba(66, 133, 244, 0.1);
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 命令卡片样式 */
.commands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.command-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.command-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.command-header {
  padding: 10px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.command-icon {
  font-size: 2rem;
  margin-right: 15px;
  min-width: 40px;
  text-align: center;
}

.command-title {
  font-size: 1.1rem;
  color: #4285f4;
}

.command-url {
  font-family: monospace;
  color: #ea4335;
  background: rgba(234, 67, 53, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 5px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-block;
}

.command-body {
  padding: 20px;
}

.command-desc {
  margin-bottom: 15px;
  line-height: 1.6;
}

.command-tip {
  background: rgba(52, 168, 83, 0.08);
  border-left: 3px solid #34a853;
  padding: 12px 15px;
  margin: 15px 0;
  border-radius: 0 4px 4px 0;
}

.command-warning {
  background: rgba(251, 188, 5, 0.08);
  border-left: 3px solid #fbbc05;
  padding: 12px 15px;
  margin: 15px 0;
  border-radius: 0 4px 4px 0;
}

.section-title i {
  margin-right: 10px;
}

/* 快捷键样式 */
.shortcut-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #4285f4;
  margin-bottom: 20px;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.shortcut-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  border-radius: 8px;
  background: #f8f9fa;
  transition: transform 0.2s ease;
  border: 1px solid #eee;
}

.shortcut-item:hover {
  background: #edf2fa;
}

.keys {
  font-weight: 700;
  min-width: 180px;
  color: #ea4335;
  font-size: 18px;
}

.description {
  color: #555;
}

/* 底部样式 */

.footer-content {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  margin-top: 25px;
}

.footer-section h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #4285f4;
  display: flex;
  align-items: center;
}

.footer-section h3 span{
  margin-right: 10px;
}

.footer-section p {
  line-height: 1.7;
  margin-top: 10px;
  opacity: 0.85;
}

footer {
  width: 100%;
  text-align: center;
  color: #8a8a8a;
  margin: 25px 0;
}


/* 动画效果 */
.highlight {
  animation: highlight 1.5s ease;
  background-color: rgba(255, 234, 0, 0.3);
}

@keyframes highlight {
  0% {
    background-color: rgba(255, 234, 0, 0.8);
  }

  100% {
    background-color: transparent;
  }
}

.no-results {
  text-align: center;
  padding: 40px;
  font-size: 1.1rem;
  color: #666;
  background: white;
  border-radius: 12px;
  line-height: 1.75;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
