:root {
  --cz-navy: #1E3A5F;
  --cz-navy-dark: #0F2744;
  --cz-bronze: #B45309;
  --cz-gold: #D4A017;
  --cz-ink: #0F172A;
  --cz-muted: #64748B;
  --cz-line: #E2E8F0;
  --cz-bg: #F1F5F9;
  --cz-paper: #FFFFFF;
  --cz-radius: 4px;
  --cz-wrap: 1140px;
  --cz-font: "DIN Alternate", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--cz-font);
  color: var(--cz-ink);
  background: var(--cz-bg);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s, transform .2s, box-shadow .2s; }
a:hover { color: var(--cz-bronze); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; }

.cz-wrap {
  width: min(100% - 32px, var(--cz-wrap));
  margin-inline: auto;
}

/* Topbar */
.cz-topbar {
  background: var(--cz-navy-dark);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.cz-topbar .cz-wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.cz-topbar span:last-child { color: var(--cz-gold); }

/* Header */
.cz-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--cz-navy);
}

.cz-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.cz-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cz-logo img { height: 42px; width: auto; }

.cz-logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--cz-navy), var(--cz-navy-dark));
  color: var(--cz-gold);
  font-weight: 800;
  font-size: 20px;
  border: 2px solid var(--cz-gold);
  clip-path: polygon(8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%, 0 8%);
}

.cz-logo strong {
  display: block;
  font-size: 17px;
  color: var(--cz-navy);
}

.cz-logo em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--cz-muted);
  margin-top: 2px;
}

.cz-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cz-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.cz-nav > ul > li { position: relative; }

.cz-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--cz-ink);
  border-bottom: 2px solid transparent;
}

.cz-nav > ul > li.is-active > a,
.cz-nav > ul > li > a:hover {
  color: var(--cz-navy);
  border-bottom-color: var(--cz-bronze);
}

.cz-subnav {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 160px;
  padding: 8px;
  background: var(--cz-paper);
  border: 1px solid var(--cz-line);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .2s;
}

.cz-nav > ul > li:hover > .cz-subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.cz-subnav a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
}

.cz-subnav a:hover,
.cz-subnav .is-active a {
  background: #EFF6FF;
  color: var(--cz-navy);
}

.cz-search {
  display: flex;
  border: 1px solid var(--cz-line);
  overflow: hidden;
  background: #F8FAFC;
}

.cz-search input {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  width: 130px;
  outline: none;
  font: inherit;
  font-size: 13px;
}

.cz-search button {
  border: 0;
  background: var(--cz-navy);
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.cz-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--cz-line);
  background: var(--cz-paper);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.cz-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cz-navy);
}

.cz-nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 90;
}

body.nav-open .cz-nav-mask { display: block; }

/* Certificate hero */
.cz-cert {
  background:
    linear-gradient(120deg, rgba(180, 83, 9, 0.12) 0%, transparent 40%),
    linear-gradient(180deg, var(--cz-navy) 0%, var(--cz-navy-dark) 100%);
  color: #fff;
  padding: 48px 0 52px;
  position: relative;
  overflow: hidden;
}

.cz-cert::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 280px;
  height: 280px;
  border: 2px solid rgba(212, 160, 23, 0.25);
  transform: rotate(18deg);
  pointer-events: none;
}

.cz-cert-inner {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cz-cert-badge {
  width: 120px;
  height: 120px;
  border: 2px solid var(--cz-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(15, 39, 68, 0.5);
  animation: cz-pulse 3.5s ease-in-out infinite;
}

.cz-cert-badge span {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cz-gold);
}

.cz-cert-badge strong {
  font-size: 22px;
  color: #fff;
}

@keyframes cz-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.25); }
  50% { box-shadow: 0 0 0 10px rgba(212, 160, 23, 0); }
}

.cz-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cz-gold);
  font-weight: 700;
}

.cz-cert h1 {
  font-size: clamp(26px, 3.8vw, 40px);
  max-width: 14em;
}

.cz-cert-desc {
  margin: 14px 0 26px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 38em;
  font-size: 15px;
}

.cz-cert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
}

.cz-btn-primary {
  background: var(--cz-bronze);
  color: #fff;
}

.cz-btn-primary:hover {
  background: #92400E;
  color: #fff;
  transform: translateY(-1px);
}

.cz-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

.cz-btn-ghost:hover {
  border-color: var(--cz-gold);
  color: var(--cz-gold);
}

/* Sections */
.cz-section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.cz-section-hd h2 {
  font-size: 24px;
  color: var(--cz-navy);
}

.cz-section-hd span,
.cz-section-hd a {
  font-size: 13px;
  color: var(--cz-muted);
}

.cz-section-hd a:hover { color: var(--cz-bronze); }

.cz-syllabus,
.cz-industry,
.cz-boards {
  margin: 44px 0;
}

/* Horizontal syllabus */
.cz-syllabus-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  counter-reset: cz-lesson;
}

.cz-lesson {
  scroll-snap-align: start;
  background: var(--cz-paper);
  border: 1px solid var(--cz-line);
  border-top: 4px solid var(--cz-navy);
  padding: 20px 18px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-increment: cz-lesson;
}

.cz-lesson:nth-of-type(even) { border-top-color: var(--cz-bronze); }

.cz-lesson:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  color: inherit;
}

.cz-lesson-no::before {
  content: "课次 " counter(cz-lesson, decimal-leading-zero);
  font-size: 12px;
  font-weight: 700;
  color: var(--cz-bronze);
  letter-spacing: 0.04em;
}

.cz-lesson em {
  font-style: normal;
  font-size: 12px;
  color: var(--cz-muted);
}

.cz-lesson h3 { font-size: 16px; flex: 1; }

.cz-lesson time {
  font-size: 12px;
  color: var(--cz-muted);
}

/* Curriculum numbered list */
.cz-curriculum {
  background: var(--cz-paper);
  border: 1px solid var(--cz-line);
  counter-reset: cz-cur;
}

.cz-curriculum li {
  counter-increment: cz-cur;
  border-bottom: 1px solid var(--cz-line);
}

.cz-curriculum li:last-child { border-bottom: 0; }

.cz-curriculum a {
  display: grid;
  grid-template-columns: 72px 1fr 56px;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
}

.cz-curriculum a:hover {
  background: #F8FAFC;
  color: inherit;
}

.cz-cur-num::before {
  content: counter(cz-cur, decimal-leading-zero);
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--cz-navy);
  letter-spacing: -0.04em;
  line-height: 1;
}

.cz-cur-body h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.cz-cur-body p {
  margin: 0;
  font-size: 13px;
  color: var(--cz-muted);
}

.cz-curriculum time {
  font-size: 13px;
  font-weight: 700;
  color: var(--cz-bronze);
  text-align: right;
}

/* Dual boards */
.cz-boards {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.cz-board {
  background: var(--cz-paper);
  border: 1px solid var(--cz-line);
  padding: 24px;
}

.cz-board-dark {
  background: linear-gradient(165deg, var(--cz-navy) 0%, var(--cz-navy-dark) 100%);
  border-color: transparent;
  color: #fff;
}

.cz-board-dark .cz-section-hd h2 { color: #fff; }
.cz-board-dark .cz-section-hd a { color: rgba(255, 255, 255, 0.65); }
.cz-board-dark .cz-section-hd a:hover { color: var(--cz-gold); }

.cz-note-list li + li {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--cz-line);
}

.cz-note-list a { display: block; }
.cz-note-list a:hover { color: inherit; }
.cz-note-list h3 { font-size: 16px; margin-bottom: 6px; }
.cz-note-list p { margin: 0 0 8px; font-size: 13px; color: var(--cz-muted); }
.cz-note-list span { font-size: 12px; color: var(--cz-bronze); font-weight: 600; }

.cz-case-list li + li { margin-top: 10px; }

.cz-case-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--cz-gold);
}

.cz-case-list a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cz-case-list strong { font-size: 14px; font-weight: 600; }
.cz-case-list span { font-size: 12px; opacity: 0.65; flex-shrink: 0; }

/* Inner */
.cz-crumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--cz-muted);
  background: var(--cz-paper);
  border-bottom: 1px solid var(--cz-line);
}

.cz-crumb span { margin: 0 6px; color: #94A3B8; }

.cz-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding: 28px 0 48px;
  align-items: start;
}

.cz-panel {
  background: var(--cz-paper);
  border: 1px solid var(--cz-line);
  padding: 22px;
  margin-bottom: 18px;
}

.cz-panel-hd {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cz-navy);
}

.cz-panel-hd h3 { font-size: 16px; color: var(--cz-navy); }

.cz-page-title {
  font-size: 26px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cz-line);
  color: var(--cz-navy);
}

.cz-article-list li + li {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--cz-line);
}

.cz-article-list a {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
}

.cz-article-list a:not(:has(img)) { grid-template-columns: 1fr; }

.cz-article-list img {
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.cz-article-list h2 { font-size: 18px; margin-bottom: 6px; }
.cz-article-list p { margin: 0 0 8px; color: var(--cz-muted); font-size: 14px; }

.cz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--cz-muted);
}

.cz-meta.center { justify-content: center; margin: 12px 0 24px; }

.cz-empty {
  padding: 40px;
  text-align: center;
  color: var(--cz-muted);
}

.cz-detail h1 {
  font-size: 28px;
  text-align: center;
  color: var(--cz-navy);
}

.cz-richtext {
  font-size: 16px;
  line-height: 1.85;
}

.cz-richtext p { margin: 0 0 1em; }
.cz-richtext img { margin: 1em auto; }

.cz-pagerow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--cz-line);
  font-size: 13px;
}

.cz-pagerow a { color: var(--cz-navy); }
.cz-pagerow span { color: var(--cz-muted); }

.cz-rank { counter-reset: cz-rank; }
.cz-rank li {
  counter-increment: cz-rank;
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--cz-line);
  font-size: 14px;
}

.cz-rank li::before {
  content: counter(cz-rank);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--cz-bg);
  color: var(--cz-muted);
  font-size: 12px;
  font-weight: 700;
}

.cz-rank li:nth-child(-n+3)::before {
  background: var(--cz-navy);
  color: var(--cz-gold);
}

.cz-side-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--cz-line);
  font-size: 14px;
}

.cz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.cz-tags a {
  padding: 6px 12px;
  background: var(--cz-bg);
  border: 1px solid var(--cz-line);
  font-size: 12px;
}

.cz-tags a:hover {
  border-color: var(--cz-bronze);
  color: var(--cz-bronze);
}

.cz-ad { font-size: 14px; color: var(--cz-muted); }

.cz-page {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.cz-page li a,
.cz-page li span {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--cz-line);
  background: var(--cz-paper);
  font-size: 13px;
}

.cz-page li.active a,
.cz-page li a:hover {
  background: var(--cz-navy);
  border-color: var(--cz-navy);
  color: #fff;
}

.cz-page .dots { border: 0; background: transparent; }

/* Footer */
.cz-footer {
  margin-top: 24px;
  padding: 40px 0 28px;
  background: var(--cz-navy-dark);
  color: rgba(255, 255, 255, 0.75);
}

.cz-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.cz-footer h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.cz-footer h4 { color: var(--cz-gold); font-size: 14px; margin-bottom: 12px; }
.cz-footer p { margin: 0 0 6px; font-size: 13px; }

.cz-foot-links li { margin-bottom: 6px; }
.cz-foot-links a { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.cz-foot-links a:hover { color: var(--cz-gold); }

.cz-friendlinks {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.cz-friendlinks a {
  margin-right: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.cz-friendlinks a:hover { color: var(--cz-gold); }

.cz-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.cz-copy a { color: rgba(255, 255, 255, 0.5); }

@media (max-width: 992px) {
  .cz-cert-inner { grid-template-columns: 1fr; gap: 24px; }
  .cz-cert-badge { width: 100px; height: 100px; }
  .cz-boards { grid-template-columns: 1fr; }
  .cz-layout { grid-template-columns: 1fr; }
  .cz-footer-grid { grid-template-columns: 1fr 1fr; }
  .cz-curriculum a { grid-template-columns: 56px 1fr; }
  .cz-curriculum time { display: none; }
}

@media (max-width: 768px) {
  .cz-nav-toggle { display: flex; }

  .cz-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 320px);
    height: 100vh;
    background: var(--cz-paper);
    flex-direction: column;
    align-items: stretch;
    padding: 72px 20px 24px;
    gap: 20px;
    transform: translateX(105%);
    transition: transform .28s ease;
    z-index: 95;
    overflow-y: auto;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.14);
  }

  .cz-nav.is-open { transform: none; }

  .cz-nav > ul { flex-direction: column; align-items: stretch; }
  .cz-nav > ul > li > a { border-bottom: 0; padding: 12px 14px; background: #F8FAFC; margin-bottom: 4px; }

  .cz-subnav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 4px 0 4px 12px;
  }

  .cz-nav > ul > li.is-open > .cz-subnav { display: block; }

  .cz-search { width: 100%; }
  .cz-search input { flex: 1; width: auto; }

  .cz-cert { padding: 32px 0; }
  .cz-syllabus, .cz-industry, .cz-boards { margin: 32px 0; }
  .cz-article-list a { grid-template-columns: 1fr; }
  .cz-article-list img { height: 160px; }
  .cz-detail h1 { font-size: 22px; text-align: left; }
  .cz-pagerow { flex-direction: column; }
  .cz-footer-grid { grid-template-columns: 1fr; }
  .cz-topbar .cz-wrap { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .cz-section-hd { flex-direction: column; align-items: flex-start; }
  .cz-cur-num::before { font-size: 22px; }
}
