/* 全局样式 */
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(120deg, #f6d365, #fda085);
  color: #333;
}

/* 首屏样式 */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 30vh;
  text-align: center;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  margin: 20px auto;
  padding: 20px;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #34495e;
}

.hero form {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.hero input[type="text"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.hero button {
  padding: 10px 20px;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.hero button:hover {
  background: #2980b9;
}

/* 热门扩展列表 */
.extension-list-section {
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.extension-list-section h2 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.extension-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 0;
}

.extension-list li {
  padding: 10px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.extension-list li:hover {
  background: #3498db;
  color: #fff;
}

/* 教程区域 */
.tutorial {
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

details summary {
  cursor: pointer;
  font-size: 1rem;
  color: #3498db;
}

details p {
  margin-top: 10px;
  font-size: 0.9rem;
}