/* cjh 官网 · 纯静态、零外部依赖 */
:root {
  --bg: #060a12;
  --bg-2: #0a1120;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #e9eef7;
  --muted: #93a2b8;
  --brand: #0fbfae;
  --brand-deep: #00868B;
  --cyan: #35d6f5;
  --amber: #f7b955;
  --radius: 16px;
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--cyan); }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(15, 191, 174, 0.12);
  color: #7ef0e2;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  word-break: break-word;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  background: rgba(6, 10, 18, 0.72);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { color: var(--text); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #03110f;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(15, 191, 174, 0.35);
}
.brand-name { font-size: 19px; letter-spacing: 0.02em; }
.brand-tag {
  display: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding-left: 10px;
  border-left: 1px solid var(--line-2);
}

.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 13px 24px; font-size: 15.5px; border-radius: 12px; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #04120f;
  box-shadow: 0 8px 26px rgba(15, 191, 174, 0.28);
}
.btn-primary:hover { color: #04120f; transform: translateY(-1px); box-shadow: 0 12px 32px rgba(15, 191, 174, 0.42); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--panel-2); color: var(--text); transform: translateY(-1px); }
.btn-link { color: var(--muted); padding: 9px 4px; }
.btn-link:hover { color: var(--brand); }

/* ---------- language switch ---------- */
.lang-switch {
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.lang-switch:hover {
  color: var(--brand);
  border-color: rgba(15, 191, 174, 0.5);
  background: var(--panel-2);
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 84px 24px 64px; overflow: hidden; }
.hero-glow {
  position: absolute;
  inset: -30% 20% 30% -10%;
  background:
    radial-gradient(46% 46% at 28% 30%, rgba(15, 191, 174, 0.22), transparent 70%),
    radial-gradient(38% 38% at 76% 18%, rgba(53, 214, 245, 0.14), transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 32%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 32%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 52px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 6px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(15, 191, 174, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 191, 174, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(15, 191, 174, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 191, 174, 0); }
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.grad {
  background: linear-gradient(100deg, var(--brand) 8%, var(--cyan) 55%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { margin: 0 0 30px; color: #c2cddd; font-size: 17px; max-width: 33em; }
.lede strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-actions.center { justify-content: center; }
.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 38px 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-size: 22px; font-weight: 800; color: var(--brand); font-family: var(--mono); }
.hero-facts span { color: var(--muted); font-size: 12.5px; }

/* ---------- terminal ---------- */
.hero-term {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #0d1526, #080e1a);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.term-title { margin-left: 10px; color: var(--muted); font-size: 12px; font-family: var(--mono); }
.term-body {
  margin: 0;
  padding: 18px 16px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.6px;
  line-height: 1.85;
  color: #cfe3e0;
}
.term-body .c-dim { color: #64748b; }
.term-body .c-prompt { color: var(--brand); font-weight: 700; }

/* ---------- strip ---------- */
.strip { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(15, 191, 174, 0.06), rgba(255, 255, 255, 0.015)); }
.strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.strip-item { display: flex; flex-direction: column; gap: 2px; }
.strip-item .k { color: var(--muted); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.strip-item .v { font-size: 13.8px; font-weight: 600; }

/* ---------- section ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 88px 24px 0; scroll-margin-top: 76px; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.01em;
  font-weight: 800;
}
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }
.section-head strong { color: var(--text); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 191, 174, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}
.card-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: rgba(15, 191, 174, 0.14);
  border: 1px solid rgba(15, 191, 174, 0.3);
  color: var(--brand);
  font-size: 17px;
}
.card h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 14.2px; }

/* ---------- shots ---------- */
.shots-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 14px 16px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.shot figcaption strong { color: var(--brand); }

/* ---------- quickstart panels ---------- */
.start-grid { display: grid; gap: 16px; }
.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #0b1322, #080e1a);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
}
.copy {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--muted);
  font-family: var(--font);
  font-size: 12.5px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.copy:hover { color: var(--brand); border-color: rgba(15, 191, 174, 0.5); }
.copy.done { color: #04120f; background: var(--brand); border-color: var(--brand); }
.panel pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.8;
  color: #d6e6e3;
}
.start-note { margin: 20px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- downloads ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dl {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.25s ease;
}
.dl:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 191, 174, 0.5);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.45);
  color: var(--text);
}
.dl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dl-os { color: var(--brand); font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; }
.dl-size { color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.dl-name { font-family: var(--mono); font-size: 13.2px; word-break: break-all; }
.dl-desc { color: var(--muted); font-size: 13px; }
.dl-sha { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); color: #5f7288; font-family: var(--mono); font-size: 11.5px; }

/* ---------- docs ---------- */
.docs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.doc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.doc:hover { border-color: rgba(15, 191, 174, 0.45); background: var(--panel-2); color: var(--text); }
.doc-t { font-weight: 700; font-size: 14.5px; }
.doc-d { color: var(--muted); font-size: 12.8px; }

/* ---------- cta ---------- */
.cta { margin-top: 92px; padding: 0 24px; }
.cta-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 28px;
  text-align: center;
  border: 1px solid rgba(15, 191, 174, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(15, 191, 174, 0.16), transparent 70%),
    linear-gradient(180deg, #0b1424, #070d18);
}
.cta h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
.cta p { margin: 0 auto 26px; max-width: 34em; color: var(--muted); }

/* ---------- footer ---------- */
.footer { margin-top: 88px; border-top: 1px solid var(--line); background: #05090f; }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 24px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-size: 15px; }
.footer-brand span { color: var(--muted); font-size: 12.5px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); font-size: 13.5px; }
.footer-links a:hover { color: var(--brand); }
.footer-note {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 34px;
  color: #5a6a7e;
  font-size: 12px;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 60px 22px 46px; }
  .cards, .dl-grid, .docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav { gap: 14px; padding: 12px 18px; }
  .nav-links { display: none; }
  /* 小屏优先留语言切换与下载，GitHub 入口退到页脚 */
  .nav-cta .btn-ghost { display: none; }
  .brand-tag { display: none; }
  .section { padding: 64px 18px 0; }
  .hero h1 { font-size: 2rem; }
  /* 窄屏下按钮已占满一行，仓库链接独占一行靠左，避免被挤出右边界 */
  .hero-actions .btn-link { flex: 1 0 100%; padding-left: 0; justify-content: flex-start; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .cards, .dl-grid, .docs-grid, .shots-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .term-body { font-size: 11.6px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
