:root {
  --bg: #ece7dc;
  --paper: #fbf8f1;
  --ink: #1e3a5f;
  --muted: #6b6256;
  --line: #d9d0bf;
  --gold: #c9a227;
  --navy: #1e3a5f;
  --header-h: 4.25rem;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", "Source Han Sans SC", "Microsoft YaHei", serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(30, 58, 95, 0.05) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 100%;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
button { font: inherit; }

.jc-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--gold);
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.jc-skip:focus { left: 0.75rem; top: 0.75rem; }

.jc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}

.jc-header-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.jc-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--gold) !important;
}
.jc-brand span {
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  white-space: nowrap;
}

.jc-nav-toggle {
  margin-left: auto;
  height: 2.4rem;
  padding: 0 0.85rem 0 0.7rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  display: none;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  z-index: 60;
}
.jc-nav-toggle b {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.16em;
}
.jc-nav-toggle i {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.jc-nav-toggle i span {
  width: 14px;
  height: 2px;
  background: var(--gold);
}

.jc-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max), calc(100% - 2rem));
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 51;
  pointer-events: none;
}
.jc-nav > ul {
  pointer-events: auto;
  display: flex;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jc-nav-item { position: relative; }
.jc-nav-parent {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  cursor: default;
  color: #e8eef6;
}
.jc-nav-item:hover .jc-nav-parent,
.jc-nav-item:focus-within .jc-nav-parent {
  color: var(--gold);
  background: transparent;
}
.jc-sub {
  display: none;
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  min-width: 10rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--gold);
  box-shadow: 0 12px 24px rgba(30, 58, 95, 0.16);
}
.jc-nav-item:hover .jc-sub,
.jc-nav-item:focus-within .jc-sub { display: block; }
.jc-sub a {
  display: block;
  padding: 0.5rem 0.7rem;
  color: var(--ink);
}
.jc-sub a:hover {
  background: #f4ead0;
  color: var(--navy);
}

.jc-wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1.3rem auto 3rem;
}
.jc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17.6rem;
  gap: 1.5rem;
  align-items: start;
}

.jc-banner {
  margin: 0 0 1rem;
  overflow: hidden;
  background: var(--navy);
  border: 2px solid var(--gold);
  padding: 8px;
}
.jc-banner img {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
}

.jc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.jc-card {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 1rem 0.85rem 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 8px 8px 0 rgba(30, 58, 95, 0.12);
  position: relative;
}
.jc-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background:
    repeating-linear-gradient(
      to bottom,
      #16324f 0 8px,
      #1e3a5f 8px 16px
    );
  box-shadow: inset -3px 0 0 var(--gold);
}
.jc-card:hover { transform: translate(-2px, -2px); }
.jc-card-cover {
  margin-left: 1.35rem;
  overflow: hidden;
  background: #e8dfc8;
  min-height: 7.2rem;
  height: 7.2rem;
  border: 1px solid var(--gold);
}
.jc-card-cover img {
  width: 100%;
  height: 7.2rem;
  object-fit: cover;
  min-height: 7.2rem;
}
.jc-card h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.4;
  font-weight: 700;
}
.jc-card h2 a { color: var(--navy); }
.jc-card h2 a:hover { color: var(--gold); }
.jc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-family: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jc-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.55rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-family: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.jc-meta-l {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.jc-avatar {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: cover;
}

.jc-crumb {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-family: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.jc-crumb a { color: var(--navy); }

.jc-pager {
  display: flex;
  justify-content: flex-start;
  gap: 0.55rem;
  margin: 1.15rem 0 0.2rem;
}
.jc-pager a {
  min-width: 6.8rem;
  text-align: center;
  padding: 0.65rem 1.05rem;
  background: var(--navy);
  color: var(--gold) !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-family: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.jc-pager a:hover { background: #16324f; }

.jc-aside {
  position: sticky;
  top: calc(var(--header-h) + 0.8rem);
  display: grid;
  gap: 0.85rem;
}
.jc-side {
  background: var(--navy);
  color: #e8eef6;
  padding: 0.95rem 0.95rem 0.6rem;
  border-top: 3px solid var(--gold);
}
.jc-side h3 {
  margin: 0 0 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  color: var(--gold);
}
.jc-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: n;
  font-family: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.jc-side li { border-top: 1px solid rgba(201, 162, 39, 0.22); }
.jc-side li a {
  display: flex;
  gap: 0.5rem;
  padding: 0.58rem 0;
  color: #e8eef6;
  font-size: 0.88rem;
}
.jc-side li a:hover { color: var(--gold); }
.jc-side .jc-widlist a::before {
  counter-increment: n;
  content: counter(n, decimal-leading-zero);
  color: var(--gold);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  flex: 0 0 1.5rem;
  font-size: 0.76rem;
}
.jc-topthub a {
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0;
}
.jc-topthub img {
  width: 100%;
  height: 7.4rem;
  object-fit: cover;
}
.jc-topthub span { font-weight: 650; color: #fff8e7; }

.jc-article-card {
  background: var(--paper);
  padding: clamp(1.15rem, 3.2vw, 2.2rem);
  border: 1px solid var(--line);
  box-shadow: inset 14px 0 0 var(--navy);
  padding-left: 1.8rem;
}
.jc-article-card h1 {
  margin: 0 0 0.7rem;
  text-align: left;
  font-size: clamp(1.32rem, 3vw, 1.95rem);
  line-height: 1.35;
  color: var(--navy);
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--gold);
}
.jc-bloginfo {
  display: flex;
  justify-content: flex-start;
  color: var(--gold);
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
  font-family: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.jc-bloginfo ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.jc-prose {
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.95;
  color: #243447;
  max-width: 44rem;
  font-family: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.jc-prose img,
.jc-prose video,
.jc-prose iframe,
.jc-prose table { max-width: 100%; }
.jc-prose table { display: block; overflow-x: auto; }
.jc-copyright {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-family: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.jc-pagerow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1.15rem;
}
.jc-pagerow a {
  display: block;
  padding: 0.8rem 0.9rem;
  background: #f4ead0;
  font-size: 0.86rem;
  line-height: 1.45;
  font-family: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.jc-pagerow .next { text-align: right; }

.jc-footer {
  background: var(--navy);
  border-top: 3px solid var(--gold);
  padding: 1.5rem 1rem 2.3rem;
  text-align: center;
  color: #c9d4e4;
  font-size: 0.86rem;
  font-family: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.jc-footer p { margin: 0 0 0.7rem; }
.jc-footer a { color: var(--gold); margin: 0 0.35rem; }

#go-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1.2rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gold);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-weight: 800;
}
#go-to-top::after { content: "↑"; font-size: 1.05rem; }

.jc-mask { display: none; }

@media (max-width: 980px) {
  .jc-layout { grid-template-columns: 1fr; }
  .jc-aside { position: static; }
}

@media (max-width: 768px) {
  .jc-nav-toggle { display: inline-flex; }
  .jc-nav {
    left: auto;
    right: 0;
    top: 0;
    width: min(84vw, 20rem);
    height: 100dvh;
    margin: 0;
    display: block;
    background: var(--paper);
    box-shadow: -8px 0 28px rgba(30, 58, 95, 0.18);
    padding: 5rem 1.1rem 1.5rem;
    transform: translateX(110%);
    transition: transform 0.35s var(--ease), visibility 0.35s;
    overflow-y: auto;
    visibility: hidden;
    z-index: 55;
    pointer-events: auto;
  }
  body.nav-open .jc-nav {
    transform: translateX(0);
    visibility: visible;
  }
  .jc-nav > ul {
    flex-direction: column;
    gap: 0.2rem;
  }
  .jc-sub {
    display: block;
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0.4rem 0.8rem;
    background: transparent;
  }
  .jc-nav-parent {
    color: var(--ink);
  }
  .jc-nav-item:hover .jc-nav-parent {
    background: #f4ead0;
    color: var(--navy);
  }
  .jc-mask {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(30, 58, 95, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 40;
  }
  body.nav-open .jc-mask {
    opacity: 1;
    pointer-events: auto;
  }
  body.nav-open { overflow: hidden; }
  .jc-card {
    grid-template-columns: 4.6rem minmax(0, 1fr);
  }
  .jc-card-cover,
  .jc-card-cover img {
    min-height: 5.8rem;
    height: 5.8rem;
  }
  .jc-pagerow { grid-template-columns: 1fr; }
  .jc-pagerow .next { text-align: left; }
}

@media (max-width: 420px) {
  .jc-card { grid-template-columns: 1fr; }
  .jc-card-cover { margin: 0.75rem 0.85rem 0 1.4rem; }
  .jc-card-cover,
  .jc-card-cover img {
    width: calc(100% - 0px);
    height: 10rem;
    min-height: 10rem;
  }
  .jc-card > div { padding: 0.75rem 0.95rem 0.95rem 1.4rem; }
}

@media (min-width: 1440px) {
  :root { --max: 1260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
