/* ====== 白天模式（默认） ====== */
.navbar {
  background-color: #3d85c6 !important;
  transition: background-color 0.3s ease;
}

/* ===== 通用样式 ===== */
.tools-container {
  max-width: 1100px;
  margin: 120px auto;
  text-align: center;
  padding: 0 20px;
}

.tools-subtitle {
  color: #666;
  margin-bottom: 40px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.tool-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px 15px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.tool-card h3 {
  margin: 15px 0 8px;
  font-size: 18px;
  color: #222;
}

.tool-card p {
  font-size: 14px;
  color: #666;
}

.tool-icon {
  font-size: 40px;
}

.tool-card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 600px) {
  .tool-card {
    padding: 20px 10px;
  }

  .tool-card h3 {
    font-size: 16px;
  }
}

/* ===== 夜间模式 ===== */
html[data-user-color-scheme='dark'] .navbar {
  background-color: #1f3144 !important;
}

html[data-user-color-scheme='dark'] .tools-container {
  color: #ddd;
}

html[data-user-color-scheme='dark'] .tool-card {
  background: #2a2d35;
  color: #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

html[data-user-color-scheme='dark'] .tool-card h3 {
  color: #fff;
}

html[data-user-color-scheme='dark'] .tool-card p {
  color: #aaa;
}

html[data-user-color-scheme='dark'] .tool-card:hover {
  background: #333740;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.9);
}
