:root {
  --ws-navy: #152238;
  --ws-navy-dark: #0D1624;
  --ws-ice: #4FB0C6;
  --ws-silver: #A8B4C0;
  --ws-ink: #18232F;
  --ws-muted: #5C6B7A;
  --ws-line: #D5DEE7;
  --ws-bg: #F4F7FA;
  --ws-paper: #FFFFFF;
  --ws-radius: 8px;
  --ws-shadow: 0 16px 36px rgba(21, 34, 56, 0.08);
  --ws-wrap: 1120px;
  --ws-font: "Source Han Sans SC", "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ws-display: "Source Han Serif SC", "Songti SC","SimSun","Noto Serif SC", "Songti SC", "SimSun", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ws-font);
  color: var(--ws-ink);
  background: var(--ws-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; }

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

/* Header */
.ws-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ws-line);
}
.ws-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.ws-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ws-logo img { height: 42px; width: auto; }
.ws-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: linear-gradient(145deg, var(--ws-navy), #1F3554);
  display: grid;
  place-items: center;
  color: var(--ws-ice);
  border: 1px solid rgba(79, 176, 198, 0.35);
  box-shadow: 0 8px 16px rgba(21, 34, 56, 0.22);
}
.ws-logo-mark-sm { width: 34px; height: 34px; }
.ws-logo-cn {
  font-family: var(--ws-display);
  font-size: 18px;
  font-weight: 700;
}
.ws-logo-text { display: flex; flex-direction: column; gap: 2px; }
.ws-logo-text strong {
  font-family: var(--ws-display);
  font-size: 18px;
}
.ws-logo-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--ws-muted);
}

.ws-nav { display: flex; align-items: center; gap: 16px; }
.ws-nav > ul { display: flex; align-items: center; gap: 2px; }
.ws-nav > ul > li { position: relative; }
.ws-nav > ul > li > a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}
.ws-nav > ul > li.is-active > a,
.ws-nav > ul > li > a:hover {
  color: var(--ws-navy);
  border-bottom-color: var(--ws-ice);
}
.ws-subnav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--ws-line);
  border-radius: 8px;
  box-shadow: var(--ws-shadow);
}
.ws-nav > ul > li:hover > .ws-subnav { display: block; }
.ws-subnav a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
}
.ws-subnav a:hover { background: #EAF4F8; color: var(--ws-navy); }

.ws-search {
  display: flex;
  border: 1px solid var(--ws-line);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.ws-search input {
  border: 0;
  outline: 0;
  width: 140px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  background: transparent;
}
.ws-search button {
  border: 0;
  background: var(--ws-navy);
  color: #fff;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.ws-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ws-line);
  border-radius: 8px;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.ws-nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ws-navy);
  transition: transform .2s, opacity .2s;
}
.ws-nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 28, 0.45);
  z-index: 90;
}
body.nav-open .ws-nav-mask { display: block; }

/* Centered masthead */
.ws-mast {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(79, 176, 198, 0.18), transparent 55%),
    linear-gradient(180deg, #152238 0%, #1A2C46 100%);
  color: #fff;
  text-align: center;
  padding: 68px 0 72px;
}
.ws-mast-inner { max-width: 720px; }
.ws-kicker {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--ws-ice);
  font-weight: 700;
}
.ws-rule {
  width: 72px;
  height: 2px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, var(--ws-ice), transparent);
}
.ws-mast h1 {
  font-family: var(--ws-display);
  font-size: clamp(28px, 4.4vw, 42px);
  margin-bottom: 14px;
}
.ws-mast-desc {
  margin: 0 auto 26px;
  max-width: 520px;
  opacity: 0.84;
  font-size: 15px;
}
.ws-mast-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s, background .2s, border-color .2s;
}
.ws-btn:hover { transform: translateY(-1px); }
.ws-btn-primary {
  background: var(--ws-ice);
  color: #0D1624;
}
.ws-btn-ghost {
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
}
.ws-btn-ghost:hover { background: rgba(255,255,255,.08); }

/* Chapter tiles */
.ws-chapters {
  margin-top: -28px;
  position: relative;
  z-index: 2;
}
.ws-chapters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ws-chapters a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius);
  box-shadow: var(--ws-shadow);
  transition: transform .2s, border-color .2s;
}
.ws-chapters a:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ws-ice) 45%, var(--ws-line));
}
.ws-chapters span {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ws-ice);
  font-weight: 800;
}
.ws-chapters strong {
  font-family: var(--ws-display);
  font-size: 18px;
}
.ws-chapters em {
  font-style: normal;
  font-size: 12px;
  color: var(--ws-muted);
}

.ws-home-body {
  padding: 36px 0 56px;
  display: grid;
  gap: 24px;
}
.ws-block {
  background: var(--ws-paper);
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius);
  padding: 24px;
  box-shadow: var(--ws-shadow);
}
.ws-section-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.ws-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ws-ice);
  font-weight: 700;
}
.ws-section-hd h2 {
  font-family: var(--ws-display);
  font-size: 24px;
}
.ws-more {
  font-size: 13px;
  color: var(--ws-navy);
  font-weight: 600;
}
.ws-more:hover { color: var(--ws-ice); }

/* Dossier list with left accent */
.ws-dossier { display: grid; gap: 12px; }
.ws-dossier a {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: start;
  padding: 16px 16px 16px 18px;
  border-radius: 6px;
  background: #F7FAFC;
  border: 1px solid transparent;
  border-left: 4px solid var(--ws-ice);
  transition: background .2s, border-color .2s, transform .2s;
}
.ws-dossier a:hover {
  background: #fff;
  border-color: var(--ws-line);
  border-left-color: var(--ws-navy);
  transform: translateX(2px);
}
.ws-dossier time {
  font-size: 13px;
  font-weight: 700;
  color: var(--ws-navy);
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.ws-dossier h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.ws-dossier p {
  margin: 0;
  font-size: 13px;
  color: var(--ws-muted);
}

/* Split observe + judge */
.ws-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}
.ws-observe { counter-reset: wsobs; display: grid; gap: 8px; }
.ws-observe li { counter-increment: wsobs; }
.ws-observe a {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  transition: background .2s;
}
.ws-observe a:hover { background: #F0F7FA; }
.ws-num::before {
  content: counter(wsobs, decimal-leading-zero);
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ws-silver);
}
.ws-observe li:nth-child(-n+2) .ws-num::before { color: var(--ws-ice); }
.ws-observe h3 { font-size: 15px; margin-bottom: 4px; }
.ws-observe p { margin: 0; font-size: 13px; color: var(--ws-muted); }

.ws-judge {
  background: linear-gradient(165deg, #152238, #1F3554);
  color: #fff;
  border-color: transparent;
}
.ws-judge .ws-eyebrow { color: var(--ws-ice); }
.ws-judge .ws-more { color: rgba(255,255,255,.85); }
.ws-stacks { display: grid; gap: 10px; }
.ws-stacks a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-left: 3px solid var(--ws-ice);
}
.ws-stacks a:hover { background: rgba(255,255,255,.1); }
.ws-stacks h3 { font-size: 15px; }
.ws-stacks p { margin: 0; font-size: 13px; opacity: 0.75; }
.ws-stacks time { font-size: 12px; opacity: 0.55; }

/* Inner */
.ws-crumb {
  background: #fff;
  border-bottom: 1px solid var(--ws-line);
  padding: 12px 0;
  font-size: 13px;
  color: var(--ws-muted);
}
.ws-crumb a:hover { color: var(--ws-navy); }
.ws-crumb span { margin: 0 6px; opacity: 0.5; }

.ws-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 28px 0 56px;
  align-items: start;
}
.ws-panel {
  background: #fff;
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius);
  padding: 22px;
  box-shadow: var(--ws-shadow);
}
.ws-panel-hd {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid color-mix(in srgb, var(--ws-ice) 40%, var(--ws-line));
}
.ws-panel-hd h3 {
  font-family: var(--ws-display);
  font-size: 17px;
}
.ws-page-title {
  font-family: var(--ws-display);
  font-size: 26px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ws-line);
}

.ws-article-list { display: grid; gap: 14px; }
.ws-article-list li a {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--ws-line);
  transition: border-color .2s, box-shadow .2s;
}
.ws-article-list li a:hover {
  border-color: color-mix(in srgb, var(--ws-ice) 40%, var(--ws-line));
  box-shadow: 0 10px 22px rgba(21, 34, 56, 0.08);
}
.ws-article-list img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  background: #EAF4F8;
}
.ws-article-list h2 { font-size: 18px; margin-bottom: 8px; }
.ws-article-list p { margin: 0 0 10px; color: var(--ws-muted); font-size: 14px; }
.ws-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--ws-muted);
}
.ws-meta.center { justify-content: center; margin: 12px 0 22px; }
.ws-empty { padding: 40px 16px; text-align: center; color: var(--ws-muted); }

.ws-detail h1 {
  font-family: var(--ws-display);
  font-size: clamp(24px, 3vw, 32px);
  text-align: center;
}
.ws-richtext { font-size: 16px; line-height: 1.9; color: #243241; }
.ws-richtext p { margin: 0 0 1em; }
.ws-richtext img { margin: 1em auto; border-radius: 6px; }
.ws-pagerow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--ws-line);
  font-size: 14px;
}
.ws-pagerow a:hover { color: var(--ws-navy); }

.ws-rank { counter-reset: wsrank; display: grid; gap: 10px; }
.ws-rank li {
  counter-increment: wsrank;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
}
.ws-rank li::before {
  content: counter(wsrank);
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: #EAF4F8;
  color: var(--ws-navy);
}
.ws-rank li:nth-child(-n+3)::before {
  background: var(--ws-navy);
  color: var(--ws-ice);
}
.ws-rank a { font-size: 14px; }
.ws-rank a:hover { color: var(--ws-ice); }

.ws-side-list { display: grid; gap: 10px; }
.ws-side-list a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px dashed var(--ws-line);
  font-size: 14px;
}
.ws-side-list a:hover { color: var(--ws-navy); }
.ws-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-tags a {
  padding: 6px 12px;
  border-radius: 4px;
  background: #EAF4F8;
  color: var(--ws-navy);
  font-size: 12px;
}
.ws-tags a:hover { background: var(--ws-navy); color: #fff; }
.ws-ad { font-size: 14px; color: var(--ws-muted); line-height: 1.7; }

.ws-pagination { margin-top: 22px; }
.ws-page {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.ws-page a, .ws-page .dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--ws-line);
  background: #fff;
  font-size: 13px;
}
.ws-page .active a,
.ws-page a:hover {
  background: var(--ws-navy);
  border-color: var(--ws-navy);
  color: #fff;
}

/* Footer */
.ws-footer {
  background: #0D1624;
  color: rgba(255,255,255,.84);
  padding: 48px 0 28px;
  margin-top: 12px;
}
.ws-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.ws-foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.ws-foot-brand h3 {
  font-family: var(--ws-display);
  font-size: 18px;
  color: #fff;
}
.ws-footer h4 { margin-bottom: 12px; color: #fff; font-size: 15px; }
.ws-footer p { margin: 0 0 8px; font-size: 14px; opacity: 0.85; }
.ws-foot-links { display: grid; gap: 8px; }
.ws-foot-links a { font-size: 14px; opacity: 0.85; }
.ws-foot-links a:hover { opacity: 1; color: var(--ws-ice); }
.ws-friendlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
}
.ws-friendlinks a:hover { color: var(--ws-ice); }
.ws-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  opacity: 0.7;
}
.ws-copy a { color: inherit; }

@media (max-width: 960px) {
  .ws-chapters-grid { grid-template-columns: 1fr 1fr; }
  .ws-split,
  .ws-layout { grid-template-columns: 1fr; }
  .ws-footer-grid { grid-template-columns: 1fr; }
  .ws-article-list li a { grid-template-columns: 120px 1fr; }
}

@media (max-width: 768px) {
  .ws-nav-toggle { display: inline-flex; }
  .ws-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 320px);
    height: 100vh;
    z-index: 110;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 72px 18px 24px;
    gap: 16px;
    transform: translateX(105%);
    transition: transform .25s ease;
    box-shadow: -12px 0 30px rgba(0,0,0,.12);
  }
  .ws-nav.is-open { transform: translateX(0); }
  .ws-nav > ul { flex-direction: column; align-items: stretch; }
  .ws-nav > ul > li > a { border-bottom: 0; border-radius: 6px; }
  .ws-nav > ul > li.is-active > a,
  .ws-nav > ul > li > a:hover { background: #EAF4F8; }
  .ws-subnav {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 4px 0 4px 12px;
  }
  .ws-nav > ul > li.is-open > .ws-subnav { display: block; }
  .ws-search { width: 100%; }
  .ws-search input { width: 100%; flex: 1; }
  .ws-chapters-grid { grid-template-columns: 1fr; }
  .ws-dossier a { grid-template-columns: 1fr; gap: 8px; }
  .ws-article-list li a { grid-template-columns: 1fr; }
  .ws-article-list img { height: 160px; }
  .ws-pagerow { flex-direction: column; }
  body.nav-open { overflow: hidden; }
  body.nav-open .ws-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .ws-nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .ws-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
