:root {
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --accent: #6366f1;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 50%, #f0fdf4 100%);
  min-height: 100vh;
  color: var(--text);
}

.app { max-width: 480px; margin: 0 auto; padding: 24px 16px 48px; }

.header-top { margin-bottom: 8px; }

.back-link { color: var(--text-muted); text-decoration: none; font-size: 14px; }

.hero { text-align: center; margin: 12px 0 28px; }

.hero h1 {
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero p { margin-top: 8px; font-size: 14px; color: var(--text-muted); }

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

.tool-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px 16px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.18);
}

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

.tool-name { font-size: 15px; font-weight: 600; }

.footer-note {
  margin-top: 32px; text-align: center; font-size: 13px; color: var(--text-muted);
}

.footer-note a { color: var(--accent); text-decoration: none; }

.footer-note a:hover { text-decoration: underline; }
