/* CodeingOps 商店页：对齐 docs/UI设计提示词.md / CardTheme */
:root {
  --primary: #5B4FFF;
  --primary-soft: rgba(91, 79, 255, 0.12);
  --accent: #FF9F1C;
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --text: #1A1A1A;
  --muted: #6B7280;
  --line: #E5E7EB;
  --ok: #22C55E;
  --danger: #EF4444;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --radius: 16px;
  --radius-btn: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 247, 249, 0.88);
  backdrop-filter: saturate(1.2) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, #7A6FFF, var(--primary) 55%, #3D32D6);
  box-shadow: var(--shadow);
  position: relative;
}
.mark::after {
  content: "";
  position: absolute;
  inset: 9px 8px 8px 9px;
  border: 2px solid #fff;
  border-radius: 4px;
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(-45deg);
}
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-links a:hover { color: var(--text); background: #fff; text-decoration: none; }
.lang {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  height: 36px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.hero { padding: 72px 0 28px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 16px;
}
h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.lead { margin: 0 0 28px; color: var(--muted); font-size: 18px; max-width: 640px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); box-shadow: var(--shadow); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 12px 0 48px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-weight: 700;
}

.section { padding: 12px 0 56px; }
.section h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.02em; }
.section .sub { color: var(--muted); margin: 0 0 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-n {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.note {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.legal-page { padding: 40px 0 72px; }
.legal-page h1 { font-size: 36px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.legal-page h2 { font-size: 20px; margin: 28px 0 10px; }
.legal-page p, .legal-page li { color: #374151; }
.legal-page ul { padding-left: 1.2em; }
.legal-card { padding: 28px 32px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }
[hidden] { display: none !important; }

@media (max-width: 800px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .legal-card { padding: 20px; }
}
