/* Zunmao Tools portal — hand-written CSS, no frameworks, no external fonts. */

:root {
  --bg: #fafbfd;
  --surface: #ffffff;
  --ink: #1a2233;
  --muted: #5b6478;
  --line: #e6e9f0;
  --accent: #2f6df6;
  --accent-dark: #1f4fc4;
  --accent-soft: #eaf0fe;
  --soon: #8a6d1b;
  --soon-bg: #fdf6e3;
  --radius: 14px;
  --max: 1040px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Hero */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.stat-strip {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 24px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat strong {
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1.2;
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sections */
.tools-section { padding: 24px 0 8px; }
.soon-section { padding: 24px 0 64px; }

h2 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 24px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(31, 79, 196, 0.10);
}

.card-body { padding: 24px 24px 8px; flex: 1; }

.card-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.card-tagline {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.97rem;
}

.card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.price-badge {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 999px;
}

.free-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.card-foot {
  padding: 16px 24px 24px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--accent-dark); }

/* Coming soon */
.card-soon { border-style: dashed; }
.card-soon:hover { transform: none; box-shadow: none; }

.soon-badge {
  background: var(--soon-bg);
  color: var(--soon);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
}

.soon-hint {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.noscript-note {
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  padding-top: 28px;
  padding-bottom: 36px;
  text-align: center;
}

.footer-line {
  margin: 6px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-line a { color: var(--accent-dark); }

/* Mobile */
@media (max-width: 560px) {
  .hero { padding: 48px 0 32px; }
  .stat { min-width: 0; flex: 1 1 140px; padding: 12px 16px; }
  .header-inner { gap: 8px; }
}
