.tools-container {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 16px var(--site-content-bottom-gap, 35px);
}

/* 工具分类导航 */
.tool-categories {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

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

.category-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.category-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 工具列表 */
.tool-list {
    padding: 40px 0;
}

.tool-section {
    margin-bottom: 60px;
}

.tool-section h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1d4ed8;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tool-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.tool-info h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.tool-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.btn-use {
    display: inline-block;
    padding: 8px 20px;
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-use:hover {
    background: #1e40af;
}

.demands-container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 40px 20px;
}

/* /tools/ 列表主页：外层 .tools-page-shell 统一 var(--site-max-width)；底留白沿用全站变量 */
.tools-page-shell {
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-bottom: var(--site-content-bottom-gap, 35px);
  box-sizing: border-box;
}

/* 内层 .tools-page-wrap：仅分段与网格区间距 */
.tools-page-wrap .tools-grid {
  max-width: none;
  margin: 0 0 var(--site-content-bottom-gap, 35px) 0;
}

.tools-page-wrap .tools-section-block:last-child .tools-grid {
  margin-bottom: 0;
}

.section-banner {
    padding: 40px 0;
    text-align: center;
}
.section-banner h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.section-banner p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

/* 搜索框 */
.tools-search-bar {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: 520px;
}

.tools-search-bar input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: 15px;
    background: transparent;
}

.tools-search-bar button {
    border: none;
    background: #409EFF;
    color: #fff;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.tools-search-bar button:hover {
    background: #337ecc;
}

/* 空状态提示 */
.tools-empty-tip {
    text-align: center;
    color: #999;
    padding: 60px 20px;
    font-size: 15px;
}
.section-title {
  background: #e8f1ff;
  border-bottom: 1px solid #cce0ff;
  color: #222;
  padding: 12px 24px;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

/* /tools/detail/：标题左侧方形工具图，贴齐左缘与标题条上下边 */
.section-title.section-title--detail {
  padding: 0;
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
}

.section-title--detail .section-title-thumb {
  flex: 0 0 80px;
  width: 80px;
  min-width: 80px;
  max-width: 80px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-sizing: border-box;
}

.section-title--detail .section-title-thumb img {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
  height: 80px;
  min-height: 80px;
  max-height: 80px;
  object-fit: contain;
  display: block;
  box-sizing: border-box;
}

.section-title--detail .section-title-main {
  flex: 1;
  min-width: 0;
  padding: 9px 24px 9px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.section-title--detail .section-title-main h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.section-title--detail .section-title-main p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

@media (max-width: 480px) {
  .section-title--detail .section-title-thumb {
    display: none;
  }
  .section-title--detail .section-title-main {
    padding: 12px 24px;
  }
}

.section-more {
  color: #222;
  font-size: 15px;
  text-decoration: underline;
  margin-left: 12px;
  text-decoration:none;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}

/* /tools/ 卡片外层为 <a>，悬停时在子卡片上做缓慢上浮+阴影（与需求中心 demand-info-card、产品 product-card 同源参数，时长略加长更柔和） */
.tools-grid > a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tools-grid .tool-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 18px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.tools-grid > a:hover .tool-card {
  transform: translateY(-5px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.tool-card img {
  width: 72px;
  height: 72px;
  max-width: 100%;
  object-fit: contain;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 8px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.tool-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  text-align: center;
  line-height: 1.4;
  height: 1.4em;
  max-height: 1.4em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tool-desc {
  color: #888;
  font-size: 13px;
  text-align: center;
  line-height: 1.4;
  height: 2.8em;
  max-height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-all;
}

/* 响应式样式 - 工具列表 */
@media (max-width: 1024px) {
.tools-grid {
    grid-template-columns: repeat(5, 1fr);
}
}

@media (max-width: 768px) {
.tools-grid {
    grid-template-columns: repeat(3, 1fr);
}
}

@media (max-width: 540px) {
.tools-grid {
    grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 360px) {
.tools-grid {
    grid-template-columns: repeat(1, 1fr);
}
}
/* template-categories 横向分类 Tab（与模板页完全一致） */
.template-categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 6px;
    padding: 12px 0 0 0;
    margin-top: 0;
}
.template-categories::-webkit-scrollbar {
    display: none;
}
.template-categories .category {
    color: #666;
    font-size: 15px;
    padding: 2px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    background: transparent;
    user-select: none;
    line-height: 28px;
    text-decoration: none;
    display: inline-block;
}
.template-categories .category:hover {
    color: #409EFF;
}
.template-categories .category.active {
    color: #409EFF;
    background: #ecf5ff;
    font-weight: bold;
}
.template-categories .category:focus {
    outline: none;
}
.template-categories .category:focus-visible {
    outline: 2px solid #409EFF;
    outline-offset: 2px;
}
@media (max-width: 768px) {
.template-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}
.template-categories::-webkit-scrollbar { height: 3px; display: block; }
.template-categories::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.template-categories .category { flex-shrink: 0; font-size: 13px; padding: 2px 12px; }
}