/* 首页特定样式 */
.hero-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.hero-section h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

/* 工具网格布局 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.tool-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #f0f0f0;
}

.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.tool-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tool-card h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.tool-card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* 特色功能区域 */
.features-section {
  margin-top: 4rem;
  text-align: center;
}

.features-section h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(219px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-radius: 10px;
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

/* 侧边栏样式 */
.popular-tools {
  list-style: none;
}

.popular-tools li {
  margin-bottom: 0.8rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.popular-tools li:hover {
  background: #e9ecef;
}

.popular-tools a {
  text-decoration: none;
  color: #667eea;
  font-weight: 500;
}

.update-item {
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 5px;
  border-left: 3px solid #667eea;
}

.update-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.3rem;
}

.update-content {
  color: #555;
  font-weight: 500;
}
.quick-search-module {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quick-search-module h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.search-container {
    display: flex;
    margin: 20px 0;
}

#toolSearch {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    outline: none;
}

#toolSearch:focus {
    border-color: #667eea;
}

.search-btn {
    padding: 12px 25px;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #5a6fd8;
}

.search-results {
    margin-top: 20px;
}

.result-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.result-item h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.result-item p {
    margin: 0 0 12px 0;
    color: #666;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #999;
}
/* 响应式调整 */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}
