:root {
  --zh-harbor: #0D2B3E;
  --zh-harbor-deep: #071821;
  --zh-cyan: #00B4D8;
  --zh-steel: #4A5560;
  --zh-ink: #14222C;
  --zh-muted: #5C6B75;
  --zh-line: #D5DEE5;
  --zh-bg: #EAF0F4;
  --zh-white: #FFFFFF;
  --zh-radius: 8px;
  --zh-shadow: 0 14px 30px rgba(13, 43, 62, 0.1);
  --zh-wrap: 1160px;
  --zh-font: "Source Han Sans SC", "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --zh-display: "DIN Alternate", "Montserrat", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--zh-font);
  color: var(--zh-ink);
  background: var(--zh-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; }

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

/* Status bar + header */
.zh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--zh-line);
}
.zh-status {
  background: var(--zh-harbor);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}
.zh-status-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
.zh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6B7780;
}
.zh-dot.is-on {
  background: var(--zh-cyan);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.25);
  animation: zh-blink 1.8s ease-in-out infinite;
}
.zh-sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 4px;
}
.zh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.zh-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.zh-logo img { height: 40px; width: auto; }
.zh-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--zh-cyan), var(--zh-harbor));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(13, 43, 62, 0.25);
}
.zh-logo-mark-sm { width: 32px; height: 32px; }
.zh-logo-text { display: flex; flex-direction: column; gap: 2px; }
.zh-logo-text strong {
  font-size: 20px;
  color: var(--zh-harbor);
  letter-spacing: 0.02em;
}
.zh-logo-text em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--zh-cyan);
  font-family: var(--zh-display);
}
.zh-nav { display: flex; align-items: center; gap: 12px; }
.zh-nav > ul { display: flex; align-items: center; gap: 2px; }
.zh-nav > ul > li { position: relative; }
.zh-nav > ul > li > a {
  display: block;
  padding: 10px 13px;
  font-size: 14px;
  border-radius: 6px;
}
.zh-nav > ul > li.is-active > a,
.zh-nav > ul > li > a:hover {
  background: rgba(0, 180, 216, 0.12);
  color: var(--zh-harbor);
}
.zh-subnav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--zh-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.2s ease;
  z-index: 20;
  overflow: hidden;
}
.zh-nav > ul > li:hover > .zh-subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.zh-subnav a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--zh-line);
}
.zh-subnav a:hover { background: #F0F7FA; color: var(--zh-cyan); }
.zh-search {
  display: flex;
  background: #F0F4F7;
  border: 1px solid var(--zh-line);
  border-radius: 6px;
  overflow: hidden;
}
.zh-search input {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  width: 140px;
  outline: none;
  font-size: 13px;
}
.zh-search button {
  border: 0;
  background: var(--zh-harbor);
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
}
.zh-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--zh-line);
  background: #fff;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.zh-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--zh-harbor);
}
.zh-nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 24, 33, 0.45);
  z-index: 90;
}
body.nav-open .zh-nav-mask { display: block; }

/* Terminal hero */
.zh-terminal {
  background:
    radial-gradient(ellipse 50% 60% at 85% 40%, rgba(0, 180, 216, 0.18), transparent 60%),
    linear-gradient(135deg, var(--zh-harbor) 0%, #123A52 55%, var(--zh-harbor-deep) 100%);
  color: #fff;
  padding: 48px 0 56px;
}
.zh-terminal-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}
.zh-terminal-copy { animation: zh-rise 0.7s ease both; }
.zh-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--zh-cyan);
  font-family: var(--zh-display);
}
.zh-terminal h1 {
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 12em;
}
.zh-terminal-desc {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  max-width: 34em;
}
.zh-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.zh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}
.zh-btn-cyan {
  background: var(--zh-cyan);
  color: var(--zh-harbor-deep);
}
.zh-btn-cyan:hover { filter: brightness(1.08); transform: translateY(-1px); }
.zh-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.zh-btn-ghost:hover { border-color: var(--zh-cyan); color: var(--zh-cyan); }

.zh-hud {
  background: rgba(7, 24, 33, 0.55);
  border: 1px solid rgba(0, 180, 216, 0.35);
  border-radius: 10px;
  padding: 20px;
  font-family: var(--zh-display);
  animation: zh-rise 0.7s 0.08s ease both;
}
.zh-hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 13px;
}
.zh-hud-row span { color: rgba(255, 255, 255, 0.5); letter-spacing: 0.08em; }
.zh-hud-row strong { color: #fff; font-size: 15px; }
.zh-hud-row .is-live { color: var(--zh-cyan); }
.zh-hud-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 72px;
  margin-top: 16px;
}
.zh-hud-bars i {
  flex: 1;
  display: block;
  height: 40%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--zh-cyan), rgba(0, 180, 216, 0.2));
  transition: height 0.6s ease;
}
.zh-hud-bars i:nth-child(2) { height: 65%; }
.zh-hud-bars i:nth-child(3) { height: 45%; }
.zh-hud-bars i:nth-child(4) { height: 80%; }
.zh-hud-bars i:nth-child(5) { height: 55%; }
.zh-hud-bars i:nth-child(6) { height: 70%; }

@keyframes zh-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@keyframes zh-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.zh-home-body { padding: 36px 0 56px; }

.zh-section-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.zh-section-hd.light { color: #fff; }
.zh-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #0891B2;
  font-family: var(--zh-display);
}
.zh-section-hd.light .zh-eyebrow { color: rgba(0, 180, 216, 0.85); }
.zh-section-hd h2 { font-size: 26px; color: var(--zh-harbor); }
.zh-section-hd.light h2 { color: #fff; }
.zh-more {
  font-size: 13px;
  font-weight: 700;
  color: #0891B2;
}
.zh-more:hover { text-decoration: underline; }

/* Berth rows - dock lanes */
.zh-block { margin-bottom: 36px; }
.zh-berths { display: flex; flex-direction: column; gap: 10px; }
.zh-berths > a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--zh-line);
  border-left: 4px solid var(--zh-cyan);
  border-radius: var(--zh-radius);
  padding: 14px 16px;
  box-shadow: var(--zh-shadow);
  transition: transform 0.2s, border-color 0.2s;
}
.zh-berths > a:hover {
  transform: translateX(4px);
  border-left-color: var(--zh-harbor);
}
.zh-berth-id {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--zh-harbor);
  background: rgba(0, 180, 216, 0.12);
  border-radius: 4px;
  padding: 8px 0;
  text-align: center;
}
.zh-berths h3 { font-size: 16px; margin-bottom: 4px; }
.zh-berths p { margin: 0; font-size: 13px; color: var(--zh-muted); }
.zh-berths time {
  font-size: 12px;
  color: #0891B2;
  font-family: var(--zh-display);
  white-space: nowrap;
}

/* Twin piers */
.zh-piers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}
.zh-pier {
  background: #fff;
  border: 1px solid var(--zh-line);
  border-radius: var(--zh-radius);
  padding: 18px;
  box-shadow: var(--zh-shadow);
  position: relative;
  overflow: hidden;
}
.zh-pier::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--zh-cyan);
}
.zh-pier-alt::before { background: var(--zh-harbor); }
.zh-pier-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--zh-line);
}
.zh-pier-hd h2 { font-size: 20px; color: var(--zh-harbor); }
.zh-pier-hd a { font-size: 13px; color: #0891B2; }
.zh-pier li + li {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--zh-line);
}
.zh-pier h3 { font-size: 15px; margin-bottom: 4px; }
.zh-pier p { margin: 0 0 4px; font-size: 13px; color: var(--zh-muted); }
.zh-pier time { font-size: 12px; color: #0891B2; }
.zh-pier a:hover h3 { color: #0891B2; }

/* Radar band */
.zh-radar {
  background: linear-gradient(135deg, var(--zh-harbor-deep), #0F3A52 50%, #0A4A5C);
  color: #fff;
  border-radius: 12px;
  padding: 26px 22px 28px;
  animation: zh-rise 0.7s 0.1s ease both;
}
.zh-radar-list { counter-reset: zhrad; }
.zh-radar-list li {
  counter-increment: zhrad;
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 15px;
}
.zh-radar-list li:last-child { border-bottom: 0; }
.zh-radar-list li::before {
  content: "P" counter(zhrad, decimal-leading-zero);
  color: var(--zh-cyan);
  font-family: var(--zh-display);
  font-size: 12px;
  font-weight: 800;
  min-width: 2.4em;
}
.zh-radar-list a:hover { color: var(--zh-cyan); }

/* Inner */
.zh-crumb {
  background: #fff;
  border-bottom: 1px solid var(--zh-line);
  padding: 12px 0;
  font-size: 13px;
  color: var(--zh-muted);
}
.zh-crumb a:hover { color: #0891B2; }
.zh-crumb span { margin: 0 6px; color: #A8B4BC; }
.zh-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 28px 0 48px;
}
.zh-panel {
  background: #fff;
  border: 1px solid var(--zh-line);
  border-radius: var(--zh-radius);
  padding: 18px;
  margin-bottom: 16px;
}
.zh-panel-hd {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--zh-cyan);
}
.zh-panel-hd h3 { font-size: 16px; color: var(--zh-harbor); }
.zh-page-title {
  font-size: 26px;
  color: var(--zh-harbor);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--zh-line);
}
.zh-article-list li + li { border-top: 1px solid var(--zh-line); }
.zh-article-list a {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 0;
}
.zh-article-list img {
  width: 140px;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
  background: #D8E4EA;
}
.zh-article-list a:not(:has(img)) { grid-template-columns: 1fr; }
.zh-article-list h2 { font-size: 18px; margin-bottom: 8px; }
.zh-article-list p { margin: 0 0 8px; color: var(--zh-muted); font-size: 14px; }
.zh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--zh-muted);
}
.zh-meta.center { justify-content: center; margin: 12px 0 20px; }
.zh-empty { padding: 40px 0; text-align: center; color: var(--zh-muted); }
.zh-detail > h1 {
  font-size: clamp(24px, 3vw, 32px);
  text-align: center;
  color: var(--zh-harbor);
}
.zh-richtext { font-size: 16px; line-height: 1.85; }
.zh-richtext p { margin: 0 0 1em; }
.zh-richtext img { margin: 12px auto; border-radius: 6px; }
.zh-pagerow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--zh-line);
  font-size: 14px;
}
.zh-pagerow a:hover { color: #0891B2; }
.zh-rank { counter-reset: rank; }
.zh-rank li {
  counter-increment: rank;
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--zh-line);
  font-size: 14px;
}
.zh-rank li::before {
  content: counter(rank);
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #E8F4F8;
  color: var(--zh-harbor);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.zh-rank li:nth-child(-n+3)::before {
  background: var(--zh-cyan);
  color: var(--zh-harbor-deep);
}
.zh-side-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--zh-line);
  font-size: 14px;
}
.zh-side-list a:hover, .zh-rank a:hover { color: #0891B2; }
.zh-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.zh-tags a {
  font-size: 12px;
  padding: 4px 10px;
  background: #E8F4F8;
  color: var(--zh-harbor);
  border-radius: 4px;
}
.zh-tags a:hover { background: var(--zh-cyan); color: #fff; }
.zh-ad { font-size: 14px; color: var(--zh-muted); }
.zh-pagination { margin-top: 20px; }
.zh-page {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.zh-page a, .zh-page .dots {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--zh-line);
  background: #fff;
  border-radius: 6px;
  font-size: 14px;
}
.zh-page .active a,
.zh-page a:hover {
  background: var(--zh-harbor);
  border-color: var(--zh-harbor);
  color: var(--zh-cyan);
}

/* Footer */
.zh-footer {
  background: var(--zh-harbor-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 40px 0 24px;
  margin-top: 12px;
}
.zh-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}
.zh-foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #fff;
}
.zh-foot-brand h3 { font-size: 18px; }
.zh-footer h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.zh-footer p { margin: 0 0 8px; font-size: 14px; }
.zh-foot-links li { margin-bottom: 8px; }
.zh-foot-links a:hover { color: var(--zh-cyan); }
.zh-friendlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
.zh-friendlinks a:hover { color: var(--zh-cyan); }
.zh-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
.zh-copy a { color: rgba(255, 255, 255, 0.65); }

@media (max-width: 980px) {
  .zh-terminal-grid { grid-template-columns: 1fr; }
  .zh-piers { grid-template-columns: 1fr; }
  .zh-layout { grid-template-columns: 1fr; }
  .zh-footer-grid { grid-template-columns: 1fr; }
  .zh-berths > a { grid-template-columns: 48px 1fr; }
  .zh-berths time { grid-column: 2; }
}

@media (max-width: 768px) {
  .zh-nav-toggle { display: inline-flex; }
  .zh-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 320px);
    height: 100vh;
    background: #fff;
    z-index: 110;
    padding: 72px 20px 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12);
  }
  .zh-nav.is-open { transform: none; }
  .zh-nav > ul { flex-direction: column; align-items: stretch; width: 100%; }
  .zh-nav > ul > li > a {
    border-radius: 0;
    border-bottom: 1px solid var(--zh-line);
  }
  .zh-subnav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    background: #F0F7FA;
  }
  .zh-nav > ul > li.is-open > .zh-subnav { display: block; }
  .zh-search { width: 100%; margin-top: 12px; }
  .zh-search input { width: 100%; }
  .zh-article-list a { grid-template-columns: 1fr; }
  .zh-article-list img { width: 100%; height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .zh-terminal-copy, .zh-hud, .zh-radar { animation: none; }
  .zh-dot.is-on { animation: none; }
}
