:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --accent-bd: #bfdbfe;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei UI", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 85% 0%, rgba(37, 99, 235, 0.08), transparent 45%),
              radial-gradient(circle at 10% 15%, rgba(234, 88, 12, 0.06), transparent 40%),
              var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 980px; margin: 0 auto; padding: 36px 20px 56px; }
.wrap-sm { max-width: 720px; margin: 0 auto; padding: 36px 20px 56px; }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 24px; font-size: 13.5px; color: var(--muted);
}
.topbar-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 15px; }
.topbar-brand img { width: 28px; height: 28px; border-radius: 7px; }
.topbar-links { display: flex; gap: 16px; }
.topbar-links a:hover { color: var(--accent); }

/* Main Download Card */
.dl-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 32px; box-shadow: 0 12px 36px -12px rgba(15, 23, 42, 0.10);
  margin-bottom: 20px;
}
.dl-head { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.dl-head img { width: 72px; height: 72px; border-radius: 16px; flex-shrink: 0; }
.dl-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.dl-title-row h1 { font-size: 26px; line-height: 1.25; }
.badge {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-bd);
}
.dl-sub { color: var(--muted); font-size: 14.5px; }

/* Download CTA */
.dl-action {
  background: #f8fafc; border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
}
.dl-meta { font-size: 13px; color: var(--muted); }
.dl-meta strong { color: var(--text); font-size: 14.5px; display: block; margin-bottom: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 11px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s ease;
}
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
}
.btn-accent:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--text); border-color: #cbd5e1; font-size: 13.5px; padding: 9px 16px; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Format pills */
.sec-label { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-bd);
  font-family: Consolas, "Microsoft YaHei UI", monospace;
}

/* Steps card */
.steps-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px 28px; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  margin-bottom: 20px;
}
.steps-card h2 { font-size: 17px; margin-bottom: 16px; }
.step { display: flex; gap: 14px; margin-bottom: 14px; }
.step:last-child { margin-bottom: 0; }
.step-num {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.step h3 { font-size: 14.5px; margin-bottom: 2px; }
.step p { font-size: 13.5px; color: var(--muted); }

.tip-box {
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  border-radius: 12px; padding: 14px 16px; font-size: 13px; margin-top: 16px;
}

/* Index page grid */
.hero-center { text-align: center; margin-bottom: 32px; }
.hero-center h1 { font-size: 30px; margin-bottom: 8px; }
.hero-center p { color: var(--muted); font-size: 15px; }

.suite-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
  color: #fff; border-radius: 20px; padding: 28px 30px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  box-shadow: 0 18px 40px -14px rgba(37, 99, 235, 0.35);
}
.suite-info { display: flex; align-items: center; gap: 18px; }
.suite-info img { width: 68px; height: 68px; border-radius: 15px; }
.suite-info h2 { font-size: 22px; margin-bottom: 4px; }
.suite-info p { font-size: 13.5px; color: #cbd5e1; max-width: 500px; }
.suite-btns { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; min-width: 190px; }
.btn-white { background: #fff; color: #1d4ed8; }
.btn-white:hover { background: #eff6ff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.28); font-size: 13.5px; padding: 9px 16px; }
.btn-ghost:hover { background: rgba(255,255,255,0.22); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pkg {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.pkg-head { display: flex; align-items: center; gap: 14px; }
.pkg-head img { width: 50px; height: 50px; border-radius: 12px; }
.pkg-head h3 { font-size: 17px; }
.pkg-head span { font-size: 12.5px; color: var(--subtle); }
.pkg-actions { display: flex; gap: 10px; margin-top: auto; }
.pkg-actions .btn { flex: 1; padding: 10px 12px; font-size: 13.5px; }

.footer {
  text-align: center; font-size: 12.5px; color: var(--subtle); margin-top: 28px;
}
.footer a { color: var(--accent); }

/* Category themes */
.theme-embroidery { --accent: #ea580c; --accent-soft: #fff7ed; --accent-bd: #fed7aa; }
.theme-design     { --accent: #4f46e5; --accent-soft: #eef2ff; --accent-bd: #c7d2fe; }
.theme-raw        { --accent: #0891b2; --accent-soft: #ecfeff; --accent-bd: #a5f3fc; }
.theme-mesh       { --accent: #059669; --accent-soft: #ecfdf5; --accent-bd: #a7f3d0; }
.theme-suite      { --accent: #2563eb; --accent-soft: #eff6ff; --accent-bd: #bfdbfe; }

@media (max-width: 700px) {
  .dl-head, .suite-card { flex-direction: column; text-align: center; }
  .dl-title-row { justify-content: center; }
  .dl-action { flex-direction: column; text-align: center; }
  .dl-action .btn { width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
  .suite-info { flex-direction: column; }
  .suite-btns { width: 100%; }
}
