/* AI工具分类汇总页样式 */

/* 主内容区 */
.tools-main {
  max-width: 1152px;
  margin: 20px auto 0;
  padding: 0 16px 48px;
}

.tools-container {
  width: 100%;
}

/* 面包屑 */
.tools-container .breadcrumb {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}

.tools-container .breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.tools-container .breadcrumb a:hover {
  color: #6366f1;
}

.tools-container .breadcrumb .separator {
  margin: 0 8px;
  color: #999;
}

.tools-container .breadcrumb .current {
  color: #333;
  font-weight: 500;
}

/* 页面标题 */
.tools-hero {
  text-align: center;
  padding: 32px 0 24px;
}

.tools-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.tools-desc {
  font-size: 15px;
  color: #666;
  margin: 0;
}

/* 分类快速导航 */
.tools-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e8e8ec;
  border-radius: 10px;
  margin-bottom: 28px;
}

.quick-nav-item {
  font-size: 13px;
  color: #555;
  background: #f5f5f7;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.quick-nav-item:hover {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
}

/* 工具分类 */
.tools-categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tool-category {
  background: #fff;
  border: 1px solid #e8e8ec;
  border-radius: 10px;
  padding: 20px 24px;
  transition: border-color 0.2s;
}

.tool-category:hover {
  border-color: #d0d0d8;
}

/* 分类标题 */
.category-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-icon {
  font-size: 18px;
  line-height: 1;
}

/* 工具列表 */
.tool-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.tool-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: #f9f9fb;
  border: 1px solid #f0f0f3;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  overflow: hidden;
}

.tool-item:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: #6366f1;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.tool-name {
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.tool-item:hover .tool-name {
  color: #6366f1;
}

/* 响应式 */
@media (max-width: 1200px) {
  .tool-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .tool-list {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .tools-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .tool-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tool-category {
    padding: 16px;
  }
  
  .category-title {
    font-size: 15px;
  }
  
  .tools-title {
    font-size: 22px;
  }
  
  .tools-hero {
    padding: 20px 0 16px;
  }
  
  .tools-quick-nav {
    padding: 12px 16px;
    gap: 8px;
  }
  
  .quick-nav-item {
    font-size: 12px;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .tool-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .tool-item {
    padding: 8px 12px;
  }
  
  .tool-name {
    font-size: 12px;
  }
}

/* 深色模式 */
[data-theme="dark"] .tools-container .breadcrumb {
  color: #888;
}

[data-theme="dark"] .tools-container .breadcrumb a {
  color: #888;
}

[data-theme="dark"] .tools-container .breadcrumb a:hover {
  color: #818cf8;
}

[data-theme="dark"] .tools-container .breadcrumb .separator {
  color: #666;
}

[data-theme="dark"] .tools-container .breadcrumb .current {
  color: #e0e0e0;
}

[data-theme="dark"] .tools-title {
  color: #e0e0e0;
}

[data-theme="dark"] .tools-desc {
  color: #888;
}

[data-theme="dark"] .tools-quick-nav {
  background: #1e1e2e;
  border-color: #333;
}

[data-theme="dark"] .quick-nav-item {
  color: #aaa;
  background: #2a2a3a;
}

[data-theme="dark"] .quick-nav-item:hover {
  color: #818cf8;
  background: rgba(129, 140, 248, 0.15);
}

[data-theme="dark"] .tool-category {
  background: #1e1e2e;
  border-color: #333;
}

[data-theme="dark"] .tool-category:hover {
  border-color: #444;
}

[data-theme="dark"] .category-title {
  color: #e0e0e0;
  border-bottom-color: #333;
}

[data-theme="dark"] .tool-item {
  background: #2a2a3a;
  border-color: #3a3a4a;
}

[data-theme="dark"] .tool-item:hover {
  background: rgba(129, 140, 248, 0.1);
  border-color: #818cf8;
  box-shadow: 0 2px 8px rgba(129, 140, 248, 0.15);
}

[data-theme="dark"] .tool-name {
  color: #ccc;
}

[data-theme="dark"] .tool-item:hover .tool-name {
  color: #818cf8;
}
