/* 附加工具下载 — 抽离原版内联样式 */
.extra-tools-section {
  padding: 3rem 0 4rem;
  background: var(--bg-secondary, #f5f5f7);
}

.extra-tools-empty {
  text-align: center;
  padding: 4rem 2rem;
}
.extra-tools-empty h3 {
  color: var(--text-secondary, #6e6e73);
}
.extra-tools-empty p {
  color: var(--text-tertiary, #86868b);
}

.category-section {
  margin-bottom: 3.5rem;
  animation: etFadeInUp 0.5s ease-out;
}

.category-section__title {
  color: var(--text-primary, #1d1d1f);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 1.35rem;
  font-weight: 700;
}

.category-section__count {
  color: var(--text-tertiary, #86868b);
  font-size: 0.95rem;
  font-weight: normal;
}

.tools-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.tools-container.is-collapsed {
  display: none;
}

.tool-card.card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  background: var(--bg-card, #fff);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03), 0 12px 28px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 20px 40px rgba(0, 0, 0, 0.04);
}

.tool-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 113, 227, 0.08);
  color: #0071e3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.tool-card__body {
  flex: 1;
  min-width: 0;
}

.tool-card__name {
  color: var(--text-primary, #1d1d1f);
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.tool-card__desc {
  color: var(--text-secondary, #6e6e73);
  font-size: 0.88rem;
  margin: 0 0 0.65rem;
  line-height: 1.5;
}

.tool-card__meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.tool-card__ver {
  background: rgba(0, 113, 227, 0.08);
  color: #0071e3;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tool-card__size {
  color: var(--text-tertiary, #86868b);
  font-size: 0.82rem;
}

.tool-card__meta .btn-download {
  margin-left: auto;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
}

.other-category-toggle {
  margin-left: auto;
  background: rgba(0, 113, 227, 0.08);
  color: #0071e3;
  border: 1px solid rgba(0, 113, 227, 0.2);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.other-category-toggle:hover {
  background: #0071e3;
  color: #fff;
  border-color: #0071e3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

.other-category-toggle:active {
  transform: scale(0.96);
}

.extra-tools-back {
  text-align: center;
  margin-top: 3.5rem;
}

.extra-tools-back .btn {
  border-radius: 9999px;
  padding: 0.85rem 2.2rem;
  font-weight: 500;
}

@keyframes etFadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-theme="dark"] .tool-card {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .other-category-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .other-category-toggle:hover {
  background: #0071e3;
  border-color: #0071e3;
  color: #fff;
}

@media (max-width: 480px) {
  .tools-container {
    grid-template-columns: 1fr;
  }
}
