/* 简洁工具箱 - 核心变量 */
:root {
  /* 基础背景色 */
  --space-bg: #ffffff;
  --space-light: #f8f9fa;
  --space-lighter: #f0f2f5;
  
  /* 主题颜色 */
  --primary-color: #0a7aff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  
  /* 界面元素 */
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: rgba(0, 0, 0, 0.05);
  
  /* 文本颜色 */
  --text-primary: #333333;
  --text-secondary: #6c757d;
  --text-muted: #979da3;
  
  /* 新增按钮灰色系 */
  --btn-gray: #6c757d;
  --btn-gray-hover: #5a6268;
  --btn-gray-border: #545b62;
  
  /* 其他变量 */
  --card-radius: 8px;
  --btn-radius: 4px;
  --transition: 0.2s ease;
  --container-width: 1800px;
  --header-height: 240px;
}

/* 基础样式覆盖 */
body {
  background-color: var(--space-bg);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: #0056b3;
  text-decoration: none;
}

/* 工具页面布局 */
.tools-universe {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--space-bg);
}

/* 顶部区域 */
.universe-header {
  position: relative;
  width: 100%;
  height: var(--header-height);
  background: linear-gradient(to bottom, #f0f2f5, #fafbfc);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.mini-header {
  height: 180px;
}

.galaxy-bg, .star, .planet, .shooting-star {
  display: none;
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.header-content h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 15px;
  color: var(--text-primary);
}

.header-content p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.neo-search {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 24px auto 0;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.neo-search:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(10, 122, 255, 0.1);
}

.neo-search input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 12px 48px 12px 16px;
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
}

.neo-search input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
}

/* 主体容器 */
.universe-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px 48px;
  position: relative;
}

/* 导航 */
.neo-navigation {
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.neo-navigation::-webkit-scrollbar {
  display: none;
}

.nav-track {
  display: flex;
  padding: 8px 4px;
  gap: 8px;
}

.nav-item {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  color: var(--text-secondary);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  min-width: max-content;
  font-weight: 500;
  font-size: 14px;
}

.nav-item:hover {
  background: var(--space-lighter);
  color: var(--text-primary);
}

.nav-item.active, .category-link-highlight {
  background: #f5f5f5;
  color: #444444;
  border-color: #cccccc;
  font-weight: 600;
}

.nav-icon {
  margin-right: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 内容区域 */
.universe-content {
  position: relative;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  padding-left: 16px;
  margin: 0;
}

.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* 工具展示区 */
.tools-section {
  margin-bottom: 48px;
}

.view-controls {
  display: flex;
  gap: 8px;
}

.view-button {
  width: 36px;
  height: 36px;
  border-radius: var(--btn-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  cursor: pointer;
}

.view-button:hover {
  background: var(--space-lighter);
  color: var(--text-primary);
}

.view-button.active {
  background: #f5f5f5;
  color: #444444;
  border-color: #cccccc;
}

.sort-controls {
  position: relative;
}

.neo-select {
  appearance: none;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'%3E%3Cpath fill='rgba(0,0,0,0.4)' d='M4 6L0 0h8z'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--card-border);
  border-radius: var(--btn-radius);
  padding: 8px 32px 8px 12px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
}

.neo-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* 工具卡片网格 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.tools-grid.view-mode-tiles {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

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

/* 卡片基础样式 */
.neo-card {
  position: relative;
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 8px var(--card-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.neo-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
}

.card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  height: 64px;
}

.card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 添加FontAwesome图标样式 */
.card-image i {
  font-size: 32px;
  color: var(--primary-color);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(10, 122, 255, 0.1);
  border-radius: 50%;
}

/* 添加Emoji图标样式 */
.card-image .emoji-icon {
  font-size: 36px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.card-info p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.5;
}

.card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  padding-top: 16px;
}

.card-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--btn-radius);
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.card-button:hover {
  background-color: #0062cc;
}

.card-button.secondary {
  background-color: #f8f9fa;
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
}

.card-button.secondary:hover {
  background-color: #e9ecef;
  color: var(--text-primary);
}

.card-button i {
  margin-left: 8px;
}

/* AI工具展示区 */
.ai-tools-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

/* AI卡片 */
.ai-card .card-image {
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
  border-radius: var(--card-radius);
  background-color: rgba(0, 0, 0, 0.01);
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.ai-card .card-image img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.ai-card .card-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
  z-index: 2;
}

.ai-card .card-badge.free {
  background: var(--success-color);
  color: white;
}

.ai-card .card-content {
  padding: 12px;
}

.ai-card .card-info {
  flex: 1;
}

.ai-card .card-info h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 5px;
  color: var(--text-primary);
}

.ai-card .card-info p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.3;
  margin: 0 0 10px;
  -webkit-line-clamp: 2;
}

.ai-card .card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  color: #444444;
  padding: 6px 12px;
  border-radius: var(--btn-radius);
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
  flex: 1;
  text-align: center;
  margin: 0 2px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.ai-card .card-button.secondary {
  background-color: #ffffff;
  color: #666666;
  border: 1px solid #e0e0e0;
}

.ai-card .card-button:hover {
  background-color: #eeeeee;
  color: #222222;
  border-color: #cccccc;
}

.ai-card .card-button i {
  margin-left: 5px;
  font-size: 10px;
}

/* 工具卡片 */
.tool-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--card-radius);
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.featured-card .card-icon {
  background: var(--danger-color);
}

.tool-card .card-info {
  flex: 1;
}

.tool-card .card-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.tool-card .card-info p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tool-card .tag {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: white;
  font-weight: 500;
}

.tool-card .category-tag {
  background: var(--primary-color);
}

.tool-card .new-tag {
  background: var(--danger-color);
}

.tool-card .featured-tag {
  background: var(--warning-color);
}

.tool-card .card-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  color: #444444;
  padding: 8px 12px;
  border-radius: var(--btn-radius);
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tool-card:hover .card-button {
  background-color: #eeeeee;
  color: #222222;
  border-color: #cccccc;
}

.tool-card .card-button i {
  margin-left: 6px;
}

/* 列表视图模式 */
.tools-grid.view-mode-list .neo-card {
  display: flex;
  height: auto;
}

.tools-grid.view-mode-list .card-content {
  flex-direction: row;
  align-items: center;
  padding: 16px;
}

.tools-grid.view-mode-list .card-icon {
  margin-bottom: 0;
  margin-right: 16px;
  flex-shrink: 0;
}

.tools-grid.view-mode-list .card-info {
  flex: 1;
  margin-right: 16px;
}

.tools-grid.view-mode-list .card-info h3 {
  margin-bottom: 4px;
}

.tools-grid.view-mode-list .card-info p {
  margin-bottom: 4px;
  -webkit-line-clamp: 2;
}

.tools-grid.view-mode-list .card-button {
  width: auto;
  margin-top: 0;
  padding: 6px 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* 瓷砖视图模式 */
.tools-grid.view-mode-tiles .tool-card .card-info p {
  -webkit-line-clamp: 2;
}

.tools-grid.view-mode-tiles .card-content {
  padding: 16px;
}

.tools-grid.view-mode-tiles .card-icon {
  width: 36px;
  height: 36px;
  font-size: 16px;
  margin-bottom: 12px;
}

/* 无结果状态 */
.no-results {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  text-align: center;
  background: var(--space-light);
  border-radius: var(--card-radius);
  border: 1px solid var(--card-border);
  padding: 24px;
}

.no-results-content {
  max-width: 400px;
}

.no-results-icon {
  font-size: 36px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.no-results h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.no-results p {
  color: var(--text-secondary);
  margin: 0;
}

/* 请求区域 */
.request-portal {
  position: relative;
  max-width: 800px;
  margin: 48px auto;
  padding: 40px 24px;
  text-align: center;
  border-radius: var(--card-radius);
  background: var(--space-light);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.portal-content {
  position: relative;
}

.portal-ring {
  display: none;
}

.portal-text h2 {
  font-size: 24px;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.portal-text p {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 按钮 */
.neon-button {
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #444444;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: var(--btn-radius);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.neon-button:hover {
  background: #eeeeee;
  color: #222222;
  border-color: #cccccc;
}

.neon-button span {
  display: none;
}

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

.neon-button i {
  margin-right: 6px;
}

/* 底部区域 */
.universe-footer {
  padding: 40px 20px;
  text-align: center;
  background: var(--space-lighter);
  margin-top: 40px;
  border-top: 1px solid var(--card-border);
}

.stat-counters {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.stat-item {
  max-width: 160px;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--primary-color);
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 面包屑导航 */
.neo-breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: var(--space-light);
  border-radius: var(--btn-radius);
  border: 1px solid var(--card-border);
  font-size: 14px;
}

.neo-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.neo-breadcrumb a:hover {
  color: var(--primary-color);
}

.neo-breadcrumb-divider {
  margin: 0 8px;
  color: var(--text-muted);
  font-size: 10px;
}

.neo-breadcrumb .current {
  color: var(--primary-color);
  font-weight: 600;
}

/* 分类部分 */
.ai-categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.neo-category-pill {
  padding: 6px 12px;
  background: var(--space-light);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.neo-category-pill:hover {
  background: var(--space-lighter);
  color: var(--text-primary);
}

.neo-category-pill.active {
  background: #f5f5f5;
  color: #444444;
  border-color: #cccccc;
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* 分类网格 */
.neo-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.neo-category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border-radius: var(--card-radius);
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 6px var(--card-shadow);
}

.neo-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.category-icon {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.category-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

/* 返回按钮区域 */
.back-to-tools {
  margin-top: 32px;
  margin-bottom: 16px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .universe-header {
    height: 200px;
  }
  
  .header-content h1 {
    font-size: 28px;
  }
  
  .header-content p {
    font-size: 16px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .section-header h2 {
    font-size: 20px;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .tools-grid.view-mode-tiles {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  
  .stat-counters {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  
  .neo-categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .portal-text h2 {
    font-size: 20px;
  }
  
  .portal-text p {
    font-size: 14px;
  }

  /* 调整AI工具布局，更适合移动设备 */
  .ai-tools-carousel {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* 添加查看全部链接样式 */
.view-more-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--btn-radius);
  transition: var(--transition);
  background-color: var(--space-lighter);
}

.view-more-link i {
  margin-left: 4px;
  font-size: 12px;
}

.view-more-link:hover {
  background-color: var(--space-light);
  color: var(--text-primary);
}

/* 添加返回链接样式 */
.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--btn-radius);
  transition: var(--transition);
  background-color: var(--space-lighter);
  border: 1px solid var(--card-border);
}

.back-link i {
  margin-right: 8px;
  font-size: 12px;
}

.back-link:hover {
  background-color: var(--space-light);
  color: var(--text-primary);
}

/* 修改详情页访问官网按钮 */
.tool-action .neon-button {
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #444444;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: var(--btn-radius);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tool-action .neon-button:hover {
  background: #eeeeee;
  color: #222222;
  border-color: #cccccc;
} 