
:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --primary: 7 86% 47%;
  --primary-foreground: 0 0% 100%;
  --secondary: 43 86% 57%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --border: 214.3 31.8% 91.4%;
  --ring: 348 83% 47%;
  --radius: 0.75rem;
  --ink: hsl(var(--foreground));
  --line: hsl(var(--border));
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, sans-serif;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: hsl(var(--primary)); }
.top {
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 14px 28px; position: sticky; top: 0; z-index: 5;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
}
.brand {
  color: hsl(var(--foreground)); text-decoration: none; font-weight: 700;
  display: flex; gap: 12px; align-items: center; letter-spacing: -0.03em;
}
.brand-name { font-size: 18px; line-height: 1.15; }
.brand-name .zh { font-weight: 500; color: hsl(var(--muted-foreground)); margin-left: 6px; }
.logo { display: block; height: 41px; width: auto; }
.footbrand .logo { height: 32px; }
.footbrand .brand-name { font-size: 16px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
nav a {
  color: hsl(var(--muted-foreground)); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 10px; border-radius: calc(var(--radius) - 2px);
}
nav a.on, nav a:hover { color: hsl(var(--foreground)); background: hsl(var(--muted)); }
.banner {
  margin: 16px 28px 0; padding: 10px 14px;
  border: 1px solid hsl(var(--secondary) / 0.45);
  background: hsl(43 86% 96%);
  color: hsl(32 70% 28%);
  border-radius: var(--radius); font-size: 14px;
}
.banner a { color: hsl(var(--primary)); font-weight: 600; }
main { padding: 28px; max-width: 1120px; margin: 0 auto; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; color: hsl(var(--foreground)); }
h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; margin: 12px 0; }
h2 { font-size: 28px; margin: 0 0 8px; }
h3 { font-size: 16px; margin: 0 0 6px; }
.lede { font-size: 18px; max-width: 680px; color: hsl(var(--muted-foreground)); }
.hero { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; align-items: end; padding: 12px 0 8px; }
.hero-wall {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -28px;
  min-height: 640px;
  background: #0b1220 url("/assets/mainland.jpg") center / cover no-repeat;
}
.hero-shade {
  position: absolute;
  inset: 0;
  /* Same stops as the caiqjobs.com homepage hero. */
  background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 20%, rgba(128,128,128,0.5) 45%, rgba(128,128,128,0.15) 65%, rgba(0,0,0,0) 80%);
  pointer-events: none;
}
.hero-wall .hero {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  min-height: 640px;
  padding: 56px 28px 48px;
  align-items: center;
}
.hero-wall .lede { max-width: 36rem; }
.hero-wall .stat { background: #fff; box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.12), 0 8px 10px -6px rgb(0 0 0 / 0.08); }
.chip {
  display: inline-flex; gap: 8px; align-items: center;
  border: 1px solid hsl(var(--border)); background: hsl(var(--muted));
  border-radius: 999px; padding: 6px 12px; font-size: 13px; color: hsl(var(--muted-foreground));
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn, button.btn {
  appearance: none; border: 0; background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  text-decoration: none; border-radius: var(--radius); padding: 10px 16px;
  font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center;
}
.btn:hover { filter: brightness(0.95); }
.btn.secondary {
  background: hsl(var(--background)); color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}
.btn.pine { background: hsl(var(--foreground)); }
.statgrid, .cards, .stages, .usecases { display: grid; gap: 12px; }
.statgrid { grid-template-columns: 1fr 1fr; }
.stat, .card, .stage, .panel, form.card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: hsl(var(--primary) / 0.45); }
.stat b { display: block; font-size: 28px; letter-spacing: -0.03em; color: hsl(var(--primary)); }
.stat span, .muted { color: hsl(var(--muted-foreground)); font-size: 14px; }
.section { margin-top: 42px; }
.cards { grid-template-columns: repeat(4, 1fr); }
.stages { grid-template-columns: repeat(3, 1fr); }
.usecases { grid-template-columns: repeat(4, 1fr); }
.kicker { color: hsl(32 80% 38%); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
pre, .code {
  background: hsl(222.2 47% 11%); color: hsl(210 40% 96%);
  border-radius: var(--radius); padding: 14px 16px; overflow: auto;
  font-size: 13px; line-height: 1.5;
}
code { font-size: 0.92em; }
.copyrow { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
label { display: block; font-size: 13px; color: hsl(var(--muted-foreground)); margin: 12px 0 6px; }
input, textarea, select {
  width: 100%; border: 1px solid hsl(var(--border)); background: white;
  border-radius: calc(var(--radius) - 2px); padding: 10px 12px; font: inherit; color: hsl(var(--foreground));
}
input:focus, textarea:focus, select:focus { outline: 2px solid hsl(var(--ring) / 0.35); border-color: hsl(var(--ring)); }
textarea { min-height: 90px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.error { background: hsl(0 86% 97%); color: hsl(0 72% 35%); border-radius: var(--radius); padding: 10px 12px; }
.ok { background: hsl(152 60% 95%); color: hsl(152 60% 22%); border-radius: var(--radius); padding: 10px 12px; }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.event { border-left: 3px solid hsl(var(--primary)); padding: 4px 0 4px 12px; }
.event .meta { color: hsl(var(--muted-foreground)); font-size: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid hsl(var(--border)); vertical-align: top; }
th { color: hsl(var(--muted-foreground)); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
footer {
  display: flex; justify-content: space-between; gap: 20px; padding: 28px;
  color: hsl(var(--muted-foreground)); border-top: 1px solid hsl(var(--border)); margin-top: 28px;
}
footer p { max-width: 460px; }
.footlinks { display: flex; gap: 14px; flex-wrap: wrap; align-items: start; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.tabs a {
  text-decoration: none; border: 1px solid hsl(var(--border)); border-radius: 999px;
  padding: 6px 12px; color: hsl(var(--foreground)); font-size: 13px; background: white;
}
.tabs a.on { background: hsl(var(--foreground)); color: white; border-color: hsl(var(--foreground)); }
@media (max-width: 900px) {
  .hero, .cards, .stages, .usecases, .row, footer { grid-template-columns: 1fr; display: grid; }
  .hero-wall { min-height: 0; }
  .hero-wall .hero { min-height: 560px; padding: 36px 16px 28px; }
  .hero-shade {
    background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 20%, rgba(128,128,128,0.5) 45%, rgba(128,128,128,0.15) 65%, rgba(0,0,0,0) 80%);
  }
  .top { flex-direction: column; align-items: flex-start; }
  main, .banner, .top, footer { padding-left: 16px; padding-right: 16px; }
  .banner { margin-left: 16px; margin-right: 16px; }
  h1 { font-size: 34px; }
  .brand-name .zh { display: inline; }
}
