/* OjToken CMS pages — sits on top of the homepage styles.css + light.css so the
   header and footer are literally the same as the static pages. */
:root {
  --oj-navy: #31527f;
  --oj-body: #64748b;
  --oj-line: #e3eaf4;
  --oj-line-soft: #eef3fa;
  --oj-blue: #3e6be3;
  --oj-blue-soft: #edf2ff;
  --oj-surface: #ffffff;
  --oj-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
body.oj-cms img { max-width: 100%; height: auto; }
/* 首页页头是绝对定位的，后台页面改成吸顶，保证内容不被盖住 */
.oj-cms .site-header { position: sticky; top: 0; z-index: 30; }
.oj-shell { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.oj-kicker {
  display: inline-block;
  font: 11px/1.6 var(--oj-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5b77a7;
}

.oj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #dce4f4;
  border-radius: 7px;
  background: #fff;
  color: #3f557b;
  font-size: 12.5px;
  white-space: nowrap;
  transition: border-color .2s, color .2s, background .2s;
}
.oj-btn:hover { border-color: #bdcce6; color: var(--oj-blue); }
.oj-btn-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(105deg, #4f74f0, #6b5cf0);
  box-shadow: 0 10px 24px #4c63e01f;
}
.oj-btn-primary:hover { color: #fff; background: linear-gradient(105deg, #5f83ff, #7b6bff); }

/* layout */
.oj-main { display: block; }
.oj-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding: 30px 0 70px; align-items: start; }
.oj-content { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* page hero */
.oj-hero {
  background: linear-gradient(135deg, #eef3fd, #f7fbff 62%);
  border: 1px solid #dfe8f6;
  border-radius: 14px;
  padding: 30px 32px;
}
.oj-hero h1 { margin: 12px 0 12px; font-size: clamp(26px, 3vw, 34px); line-height: 1.25; letter-spacing: -.02em; color: #1d2a40; }
.oj-hero p { margin: 0; font-size: 13.5px; line-height: 1.9; color: #5a6b85; max-width: 720px; }
.oj-hero-meta { display: inline-block; margin-top: 14px; font: 11px var(--oj-mono); color: #6f7d92; letter-spacing: .06em; }

/* list */
.oj-list { display: flex; flex-direction: column; gap: 14px; }
.oj-card {
  position: relative;
  background: var(--oj-surface);
  border: 1px solid var(--oj-line);
  border-radius: 12px;
  padding: 22px 24px 20px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.oj-card:hover { border-color: #c8d8f0; box-shadow: 0 14px 34px #2b4a7a0f; transform: translateY(-1px); }
.oj-card-cat {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 5px;
  background: var(--oj-blue-soft);
  color: #4a68bd;
  font-size: 11px;
}
.oj-card-title { margin: 12px 0 8px; font-size: 17px; line-height: 1.55; color: #1f2d44; }
.oj-card-title a:hover { color: var(--oj-blue); }
.oj-card-meta { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 11.5px; color: #7e8a9c; }
.oj-card-note { margin: 0; font-size: 12px; line-height: 1.8; color: #667487; word-break: break-word; }
.oj-card-more { display: inline-block; margin-top: 12px; font-size: 12px; color: #4f6dbb; }
.oj-card-more:hover { color: var(--oj-blue); }
.oj-empty { padding: 46px 24px; text-align: center; background: #fff; border: 1px dashed var(--oj-line); border-radius: 12px; color: #7b8798; font-size: 13px; }

/* pager */
.oj-pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 12.5px; color: #7b8798; }
.oj-pager a { padding: 9px 15px; background: #fff; border: 1px solid var(--oj-line); border-radius: 7px; color: #46577a; }
.oj-pager a:hover { border-color: #bdcce6; color: var(--oj-blue); }

/* article */
.oj-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #7d8a9d; }
.oj-crumbs a:hover { color: var(--oj-blue); }
.oj-crumb-current { color: #4c5b74; }
.oj-article { background: var(--oj-surface); border: 1px solid var(--oj-line); border-radius: 14px; padding: 34px 36px 30px; }
.oj-article-head { border-bottom: 1px solid var(--oj-line-soft); padding-bottom: 20px; margin-bottom: 22px; }
.oj-article-title { margin: 12px 0 12px; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.35; letter-spacing: -.02em; color: #1d2a40; }
.oj-article-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: #7e8a9c; }
.oj-article-content { font-size: 14.5px; line-height: 1.95; color: #4b5b72; }
.oj-article-content h2 { margin: 30px 0 12px; font-size: 19px; line-height: 1.5; color: #22314c; }
.oj-article-content h3 { margin: 24px 0 10px; font-size: 16px; color: #2b3b57; }
.oj-article-content p { margin: 0 0 15px; }
.oj-article-content ul, .oj-article-content ol { margin: 0 0 16px; padding-left: 22px; }
.oj-article-content li { margin-bottom: 7px; }
.oj-article-content strong { color: #26344e; }
.oj-article-content code { font: 12.5px var(--oj-mono); background: #f1f5fd; border: 1px solid #e3eaf7; border-radius: 4px; padding: 1px 5px; color: #3f5da8; }
.oj-article-content pre { background: #0d1c31; border-radius: 10px; padding: 18px 20px; overflow: auto; margin: 0 0 18px; }
.oj-article-content pre code { background: none; border: 0; padding: 0; color: #d2e2f8; font-size: 12.5px; line-height: 1.8; }
.oj-article-content table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 13px; }
.oj-article-content th, .oj-article-content td { border: 1px solid var(--oj-line); padding: 9px 12px; text-align: left; }
.oj-article-content th { background: #f8faff; color: #46577a; font-weight: 600; }
.oj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--oj-line-soft); }
.oj-tag { font-size: 11.5px; color: #5b6f95; background: #f2f6fd; border: 1px solid #e4ebf8; border-radius: 20px; padding: 3px 11px; }
.oj-relates { background: #fff; border: 1px solid var(--oj-line); border-radius: 12px; padding: 22px 24px; }
.oj-relates h2 { margin: 0 0 14px; font-size: 15px; color: #22314c; }
.oj-relates ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.oj-relates li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.7; }
.oj-relates li:before { content: "↗"; position: absolute; left: 0; color: #9db1d4; font-size: 11px; }
.oj-relates a:hover { color: var(--oj-blue); }
.oj-article-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* sidebar */
.oj-sidebar { display: flex; flex-direction: column; gap: 14px; }
.oj-widget { background: var(--oj-surface); border: 1px solid var(--oj-line); border-radius: 12px; padding: 18px 20px; }
.oj-widget-title { margin: 0 0 12px; font-size: 13px; color: #2b3f63; letter-spacing: .02em; }
.oj-widget-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.oj-widget-list li { font-size: 12.5px; line-height: 1.65; }
.oj-widget-list a { color: #5a6c88; }
.oj-widget-list a:hover { color: var(--oj-blue); }
.oj-widget-links a { display: inline-flex; align-items: center; gap: 6px; }
.oj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.oj-chip { font-size: 12px; color: #55698f; background: #f5f8ff; border: 1px solid #e5ecf8; border-radius: 6px; padding: 6px 12px; }
.oj-chip:hover { border-color: #c9d8f1; color: var(--oj-blue); }
.oj-widget-contact p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.9; color: #5a6c88; }
.oj-widget-link { font-size: 12px; color: #4f6dbb; }

@media (max-width: 1024px) {
  .oj-layout { grid-template-columns: minmax(0, 1fr); }
  .oj-sidebar { order: 2; }
}
@media (max-width: 760px) {
  .oj-shell { width: calc(100% - 40px); }
  .oj-hero { padding: 22px 20px; }
  .oj-card { padding: 18px 18px 16px; }
  .oj-article { padding: 22px 20px; }
}
