:root {
  --bg: #0B1220;
  --bg-card: #121C2E;
  --bg-card-2: #16233A;
  --primary: #2F81F7;
  --amber: #F5A524;
  --text: #E6EDF7;
  --text-muted: #8FA3BF;
  --success: #22C55E;
  --line: rgba(143, 163, 191, 0.18);
  --radius: 14px;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

a { color: var(--primary); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .82; }

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; flex-wrap: wrap; padding: 10px 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #1f5fb8);
  display: grid; place-items: center;
  font-weight: 700; font-size: 20px; color: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; letter-spacing: .5px; }
.brand-text small { font-size: 12px; color: var(--text-muted); }

.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav > a {
  padding: 8px 14px; border-radius: 8px; font-size: 14px; color: var(--text-muted);
}
.main-nav > a:hover { color: var(--text); background: var(--bg-card-2); }
.main-nav > a.active { color: #fff; background: rgba(47, 129, 247, 0.15); }

.nav-more { position: relative; }
.nav-more-btn {
  background: transparent; border: 1px solid var(--line); color: var(--text-muted);
  padding: 8px 14px; border-radius: 8px; font-size: 14px; cursor: pointer; font-family: inherit;
}
.nav-more:hover .nav-more-btn { color: var(--text); border-color: var(--primary); }
.nav-dropdown {
  display: none; position: absolute; right: 0; top: 110%;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; min-width: 160px; box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.nav-more:hover .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text-muted); }
.nav-dropdown a:hover { background: var(--bg-card-2); color: var(--text); }
.nav-dropdown a.active { color: #fff; background: rgba(47, 129, 247, 0.15); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(47, 129, 247, 0.18), transparent 60%),
    radial-gradient(600px 380px at 10% 120%, rgba(245, 165, 36, 0.10), transparent 60%),
    var(--bg);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-tag {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: 1px;
  color: var(--amber); border: 1px solid rgba(245, 165, 36, 0.4);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: 40px; line-height: 1.2; letter-spacing: .5px; margin-bottom: 12px; }
.hero-sub { font-size: 18px; color: var(--amber); margin-bottom: 12px; }
.hero-desc { color: var(--text-muted); margin-bottom: 24px; max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; color: #fff; font-family: var(--mono); }
.hero-stats span { font-size: 13px; color: var(--text-muted); }

.hero-visual img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  background: linear-gradient(180deg, #16233A, #0B1220);
  aspect-ratio: 16 / 9; object-fit: cover;
}

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 14px; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #256fd6; color: #fff; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Sections ---------- */
section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--primary);
  text-transform: uppercase; display: block; margin-bottom: 8px;
}
.section-head h2 { font-size: 28px; margin-bottom: 10px; }
.section-head p { color: var(--text-muted); }

h2 { font-size: 24px; margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 8px; }

/* Entry desk */
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.entry-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .2s, box-shadow .2s;
}
.entry-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,0.3); }
.entry-badge {
  font-family: var(--mono); font-size: 12px; color: var(--amber);
  border: 1px solid rgba(245, 165, 36, 0.4); padding: 2px 8px; border-radius: 6px;
  display: inline-block; margin-bottom: 12px;
}
.entry-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.entry-card a { font-size: 14px; }

.entry-visual img, .features-visual img {
  border-radius: var(--radius); border: 1px solid var(--line); margin: 0 auto;
  aspect-ratio: 4 / 3; object-fit: cover; max-width: 860px;
}

/* Quick start */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; }
.steps li { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li span { font-family: var(--mono); font-size: 30px; color: var(--primary); display: block; margin-bottom: 8px; }
.steps li h3 { font-size: 16px; }
.steps li p { color: var(--text-muted); font-size: 14px; }
.step-tip { text-align: center; color: var(--text-muted); margin-top: 22px; font-size: 14px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature-card p { color: var(--text-muted); font-size: 14px; }
.center-link { text-align: center; margin-top: 24px; }

/* Standards preview */
.standards-layout, .career-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.standards-text ul, .career-text ul { list-style: none; margin: 0 0 16px; }
.standards-text li, .career-text li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.standards-text h3 { margin-top: 16px; }
.standards-text p, .career-text p { color: var(--text-muted); margin-bottom: 14px; }
.standards-visual img, .career-visual img {
  border-radius: var(--radius); border: 1px solid var(--line);
  aspect-ratio: 3 / 2; object-fit: cover; width: 100%;
}

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 15px;
  list-style: none; position: relative; padding-right: 40px;
}
.faq-list summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--primary); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 20px 18px; color: var(--text-muted); font-size: 14px; }

/* Changelog */
.log-list { list-style: none; max-width: 760px; margin: 0 auto; }
.log-list li { display: flex; gap: 16px; padding: 10px 0; color: var(--text-muted); font-size: 14px; border-bottom: 1px dashed var(--line); }
.log-list time { font-family: var(--mono); color: var(--primary); flex-shrink: 0; }

/* ---------- Page (interior) ---------- */
.page { padding: 48px 0 64px; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); }
.page h1 { font-size: 32px; margin-bottom: 10px; }
.page-lead { color: var(--text-muted); font-size: 16px; margin-bottom: 28px; max-width: 74ch; }
.page-section { margin-bottom: 32px; }
.page-section h2 { border-left: 3px solid var(--primary); padding-left: 14px; }
.page-section p { color: var(--text-muted); margin-bottom: 12px; }
.page-section ul, .page-section ol { margin: 0 0 14px 22px; color: var(--text-muted); }
.page-section li { margin-bottom: 8px; }

table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); }
th { background: var(--bg-card-2); color: #fff; }
td { color: var(--text-muted); }

.step-list li { color: var(--text); }

.page-visual { margin: 24px 0; }
.page-visual img {
  border-radius: var(--radius); border: 1px solid var(--line);
  width: 100%; max-height: 420px; object-fit: cover;
}
.career-visual.page-visual img { aspect-ratio: 3 / 2; }

.page-next { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 28px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 24px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-nav a { color: var(--text-muted); font-size: 13px; }
.footer-nav a:hover { color: var(--text); }
.footer-note { color: var(--text-muted); font-size: 12px; opacity: .8; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .standards-layout, .career-layout { grid-template-columns: 1fr; }
  .entry-grid, .steps, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
}
@media (max-width: 600px) {
  .entry-grid, .steps, .feature-grid { grid-template-columns: 1fr; }
  .header-inner { justify-content: center; text-align: center; }
  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 16px; }
}
