:root {
  --ceo-wine: #6B1E2A;
  --ceo-wine-dark: #4A121C;
  --ceo-gold: #C9A227;
  --ceo-ink: #1F1A1B;
  --ceo-muted: #6B6164;
  --ceo-line: #E2D9DB;
  --ceo-bg: #F5F3F4;
  --ceo-paper: #FFFFFF;
  --ceo-radius: 12px;
  --ceo-shadow: 0 16px 36px rgba(74, 18, 28, 0.08);
  --ceo-wrap: 1140px;
  --ceo-font: "Source Han Sans SC", "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ceo-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(--ceo-font);
  color: var(--ceo-ink);
  background: var(--ceo-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; }

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

/* Header */
.ceo-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ceo-line);
}
.ceo-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}
.ceo-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ceo-logo img { height: 42px; width: auto; }
.ceo-logo-mark {
  min-width: 48px;
  height: 40px;
  padding: 0 8px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--ceo-wine), #8A2A3A);
  display: grid;
  place-items: center;
  color: var(--ceo-gold);
  box-shadow: 0 8px 16px rgba(107, 30, 42, 0.28);
}
.ceo-logo-mark-sm { min-width: 40px; height: 32px; }
.ceo-logo-cn {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.ceo-logo-text { display: flex; flex-direction: column; gap: 2px; }
.ceo-logo-text strong {
  font-family: var(--ceo-display);
  font-size: 17px;
}
.ceo-logo-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--ceo-muted);
}

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

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

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

/* Diagonal classroom hero */
.ceo-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #6B1E2A 0%, #4A121C 55%, #3A0E16 100%);
  color: #fff;
  padding: 60px 0 72px;
}
.ceo-hero-slash {
  position: absolute;
  right: -8%;
  top: -20%;
  width: 48%;
  height: 140%;
  background: linear-gradient(160deg, rgba(201, 162, 39, 0.18), transparent 60%);
  transform: skewX(-12deg);
  pointer-events: none;
}
.ceo-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: stretch;
  z-index: 1;
}
.ceo-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 800;
  background: rgba(201, 162, 39, 0.2);
  color: var(--ceo-gold);
  border: 1px solid rgba(201, 162, 39, 0.35);
}
.ceo-hero-copy h1 {
  font-family: var(--ceo-display);
  font-size: clamp(28px, 4.2vw, 40px);
  margin-bottom: 14px;
}
.ceo-hero-desc {
  margin: 0 0 24px;
  max-width: 480px;
  opacity: 0.86;
  font-size: 15px;
}
.ceo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ceo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s, background .2s, border-color .2s;
}
.ceo-btn:hover { transform: translateY(-1px); }
.ceo-btn-primary {
  background: var(--ceo-gold);
  color: #2A1F08;
}
.ceo-btn-ghost {
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
}
.ceo-btn-ghost:hover { background: rgba(255,255,255,.08); }

.ceo-schedule {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 22px;
  backdrop-filter: blur(8px);
}
.ceo-schedule h2 {
  font-family: var(--ceo-display);
  font-size: 16px;
  color: var(--ceo-gold);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.ceo-schedule ul { display: grid; gap: 10px; }
.ceo-schedule li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.ceo-schedule em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: var(--ceo-gold);
  letter-spacing: 0.04em;
}

/* 2x2 modules */
.ceo-modules {
  margin-top: -28px;
  position: relative;
  z-index: 2;
}
.ceo-modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ceo-modules a {
  display: block;
  padding: 22px 18px;
  background: #fff;
  border: 1px solid var(--ceo-line);
  border-radius: var(--ceo-radius);
  box-shadow: var(--ceo-shadow);
  transition: transform .2s, border-color .2s;
}
.ceo-modules a:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ceo-wine) 30%, var(--ceo-line));
}
.ceo-modules strong {
  display: block;
  font-size: 22px;
  color: var(--ceo-gold);
  margin-bottom: 8px;
  font-family: var(--ceo-display);
}
.ceo-modules h3 {
  font-family: var(--ceo-display);
  font-size: 18px;
  margin-bottom: 6px;
}
.ceo-modules p {
  margin: 0;
  font-size: 13px;
  color: var(--ceo-muted);
}

.ceo-home-body {
  padding: 36px 0 56px;
  display: grid;
  gap: 24px;
}

/* Blackboard news */
.ceo-board {
  background: linear-gradient(160deg, #2A1F22, #1F1618);
  color: #fff;
  border-radius: var(--ceo-radius);
  padding: 26px;
  box-shadow: var(--ceo-shadow);
  border: 1px solid #3A2A2E;
}
.ceo-section-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.ceo-section-hd.light h2 { color: #fff; }
.ceo-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ceo-gold);
  font-weight: 700;
}
.ceo-section-hd h2 {
  font-family: var(--ceo-display);
  font-size: 24px;
}
.ceo-more {
  font-size: 13px;
  color: var(--ceo-wine);
  font-weight: 600;
}
.ceo-more.light { color: rgba(255,255,255,.85); }
.ceo-more:hover { color: var(--ceo-gold); }

.ceo-board-list { display: grid; gap: 0; }
.ceo-board-list li + li { border-top: 1px dashed rgba(255,255,255,.14); }
.ceo-board-list a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 4px;
}
.ceo-board-list time {
  font-size: 13px;
  font-weight: 700;
  color: var(--ceo-gold);
}
.ceo-board-list h3 { font-size: 16px; font-weight: 600; }
.ceo-board-list span {
  font-size: 12px;
  opacity: 0;
  color: var(--ceo-gold);
  transition: opacity .2s;
}
.ceo-board-list a:hover span { opacity: 1; }

.ceo-dual {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}
.ceo-panel {
  background: var(--ceo-paper);
  border: 1px solid var(--ceo-line);
  border-radius: var(--ceo-radius);
  padding: 22px;
  box-shadow: var(--ceo-shadow);
}
.ceo-notes { display: grid; gap: 10px; }
.ceo-notes a {
  display: block;
  padding: 14px;
  border-radius: 10px;
  background: #FAF7F8;
  border: 1px solid transparent;
  border-left: 3px solid var(--ceo-wine);
  transition: border-color .2s, background .2s;
}
.ceo-notes a:hover {
  background: #fff;
  border-color: var(--ceo-line);
}
.ceo-notes h3 { font-size: 15px; margin-bottom: 6px; }
.ceo-notes p { margin: 0 0 8px; font-size: 13px; color: var(--ceo-muted); }
.ceo-notes time { font-size: 12px; color: var(--ceo-muted); }

.ceo-case-panel {
  background: linear-gradient(165deg, #6B1E2A, #4A121C);
  color: #fff;
  border-color: transparent;
}
.ceo-case-panel .ceo-more { color: rgba(255,255,255,.85); }
.ceo-cases { display: grid; gap: 10px; }
.ceo-cases a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
}
.ceo-cases a:hover { background: rgba(255,255,255,.12); }
.ceo-cases span {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--ceo-gold);
}
.ceo-cases h3 { font-size: 15px; }
.ceo-cases p { margin: 0; font-size: 13px; opacity: 0.78; }
.ceo-cases time { font-size: 12px; opacity: 0.55; }

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

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

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

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

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

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

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

/* Footer */
.ceo-footer {
  background: #2A1F22;
  color: rgba(255,255,255,.84);
  padding: 48px 0 28px;
  margin-top: 12px;
}
.ceo-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.ceo-foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.ceo-foot-brand h3 {
  font-family: var(--ceo-display);
  font-size: 18px;
  color: #fff;
}
.ceo-footer h4 { margin-bottom: 12px; color: #fff; font-size: 15px; }
.ceo-footer p { margin: 0 0 8px; font-size: 14px; opacity: 0.85; }
.ceo-foot-links { display: grid; gap: 8px; }
.ceo-foot-links a { font-size: 14px; opacity: 0.85; }
.ceo-foot-links a:hover { opacity: 1; color: var(--ceo-gold); }
.ceo-friendlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
}
.ceo-friendlinks a:hover { color: var(--ceo-gold); }
.ceo-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;
}
.ceo-copy a { color: inherit; }

@media (max-width: 960px) {
  .ceo-hero-grid,
  .ceo-dual,
  .ceo-layout { grid-template-columns: 1fr; }
  .ceo-modules-grid { grid-template-columns: 1fr 1fr; }
  .ceo-footer-grid { grid-template-columns: 1fr; }
  .ceo-article-list li a { grid-template-columns: 120px 1fr; }
}

@media (max-width: 768px) {
  .ceo-nav-toggle { display: inline-flex; }
  .ceo-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);
  }
  .ceo-nav.is-open { transform: translateX(0); }
  .ceo-nav > ul { flex-direction: column; align-items: stretch; }
  .ceo-subnav {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 4px 0 4px 12px;
  }
  .ceo-nav > ul > li.is-open > .ceo-subnav { display: block; }
  .ceo-search { width: 100%; }
  .ceo-search input { width: 100%; flex: 1; }
  .ceo-modules-grid { grid-template-columns: 1fr; }
  .ceo-board-list a { grid-template-columns: 48px 1fr; }
  .ceo-board-list span { display: none; }
  .ceo-article-list li a { grid-template-columns: 1fr; }
  .ceo-article-list img { height: 160px; }
  .ceo-pagerow { flex-direction: column; }
  body.nav-open { overflow: hidden; }
  body.nav-open .ceo-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .ceo-nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .ceo-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
