/* 🌙 暗色系主题 + 明亮默认主题，适配移动端与桌面 */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

/* 🌑 暗色背景、文字更柔和 */
.dark body {
  background: #0f172a;
  color: #e2e8f0;
}

h1, h2, h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

a {
  color: #6366f1;
  transition: color 0.3s ease;
}
a:hover {
  color: #a78bfa;
  text-decoration: underline;
}

/* 📦 卡片样式 */
.card, .tool-card {
  background-color: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1rem;
  text-align: center;
}

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

.dark .card, .dark .tool-card {
  background-color: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}

/* 🎛️ 按钮样式 */
button, .button {
  background: linear-gradient(to right, #6366f1, #8b5cf6);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
}

button:hover, .button:hover {
  background: linear-gradient(to right, #4f46e5, #7c3aed);
  transform: scale(1.03);
}

/* 📝 表单控件 */
input, select {
  background-color: white;
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  width: 100%;
}

input:focus, select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  outline: none;
}

/* 暗色输入框 */
.dark input, .dark select {
  background-color: #334155;
  border-color: #475569;
  color: #f1f5f9;
}

/* 📎 页脚与细节 */
footer {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
}

.dark footer {
  color: #94a3b8;
}