/* 工具页面样式 —— 深色玻璃风（类名与旧版兼容） */

.tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}

.tool-item:hover {
  transform: translateY(-3px);
  background: var(--color-surface-hover);
  border-color: var(--color-border-strong);
}

.tool-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
}

.tool-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.tool-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* 工具详情页 */
.tool-page {
  max-width: 720px;
}

.tool-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.tool-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.tool-panel textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.875rem;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 0.875rem;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tool-panel input[type="text"],
.tool-panel input[type="datetime-local"] {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tool-panel select {
  background: rgba(0, 0, 0, 0.3);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.tool-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tool-result {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.stats-result p {
  margin: 0.5rem 0;
  font-size: 0.9375rem;
}
