:root {
  --jx-ink: #171717;
  --jx-muted: #66625d;
  --jx-accent: #b42318;
  --jx-paper: #ffffff;
  --jx-warm: #f7f4ee;
  --jx-line: #ddd7ce;
  --jx-soft: #eee8df;
  --jx-wide: 1240px;
  --jx-reading: 760px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--jx-warm);
  color: var(--jx-ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--jx-accent);
  outline-offset: 3px;
}

.jx-site-header {
  position: relative;
  z-index: 20;
  padding: 0 !important;
  background: var(--jx-paper);
  border-top: 4px solid var(--jx-accent);
  border-bottom: 1px solid var(--jx-line);
}

.jx-masthead {
  min-height: 108px;
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
}

.jx-wordmark a,
.jx-wordmark {
  color: var(--jx-ink);
  font-family: "Songti SC", SimSun, "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
}

.jx-header-search {
  width: min(320px, 34vw);
}

.jx-header-search .wp-block-search__inside-wrapper,
.jx-search-form .wp-block-search__inside-wrapper {
  border: 1px solid var(--jx-line);
  padding: 0;
}

.jx-header-search .wp-block-search__input,
.jx-search-form .wp-block-search__input {
  min-height: 44px;
  border: 0;
  background: transparent;
}

.jx-header-search .wp-block-search__button,
.jx-search-form .wp-block-search__button {
  min-width: 48px;
  margin: 0;
  border-radius: 0;
  background: var(--jx-ink);
}

.jx-category-nav {
  border-top: 1px solid var(--jx-line);
}

.jx-category-nav__inner {
  display: flex;
  align-items: stretch;
  width: min(calc(100% - 2rem), var(--jx-wide));
  min-height: 50px;
  margin: 0 auto;
}

.jx-category-nav a,
.jx-category-nav summary {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 0.86rem;
  color: var(--jx-ink);
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.jx-category-nav a:hover,
.jx-category-nav summary:hover {
  color: var(--jx-accent);
  background: var(--jx-warm);
}

.jx-category-nav__home {
  color: var(--jx-accent) !important;
}

.jx-category-nav__more {
  position: relative;
  margin-left: auto;
}

.jx-category-nav__more summary {
  cursor: pointer;
  list-style: none;
}

.jx-category-nav__more summary::-webkit-details-marker {
  display: none;
}

.jx-category-nav__more summary::after {
  content: "＋";
  margin-left: 0.35rem;
}

.jx-category-nav__more[open] summary::after {
  content: "−";
}

.jx-category-nav__panel {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  width: 330px;
  padding: 0.75rem;
  background: var(--jx-paper);
  border: 1px solid var(--jx-line);
  box-shadow: 0 18px 40px rgb(23 23 23 / 12%);
}

.jx-main {
  padding: 0 !important;
}

.jx-home {
  width: min(calc(100% - 2rem), var(--jx-wide));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.75rem) 0 5rem;
}

.jx-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.jx-lead__main {
  padding-right: clamp(0rem, 3vw, 2.5rem);
  border-right: 1px solid var(--jx-line);
}

.jx-lead__media,
.jx-secondary-card__media,
.jx-story-row__media,
.jx-related__media {
  display: block;
  overflow: hidden;
  background: var(--jx-soft);
  text-decoration: none;
}

.jx-lead__image,
.jx-secondary-card__image,
.jx-story-row__image,
.jx-related__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

a:hover .jx-lead__image,
a:hover .jx-secondary-card__image,
a:hover .jx-story-row__image,
a:hover .jx-related__image {
  transform: scale(1.018);
}

.jx-lead__media {
  aspect-ratio: 16 / 9;
  margin-bottom: 1.4rem;
}

.jx-image-placeholder {
  display: grid;
  place-items: center;
  min-height: 100%;
  color: var(--jx-accent);
  background:
    linear-gradient(135deg, transparent 49.5%, rgb(180 35 24 / 12%) 50%, transparent 50.5%),
    var(--jx-soft);
  font-family: "Songti SC", SimSun, serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
}

.jx-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.65rem;
  color: var(--jx-muted);
  font-size: 0.78rem;
}

.jx-kicker,
.jx-article-category a,
.jx-card-category a {
  color: var(--jx-accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.jx-lead h1 {
  max-width: 17ch;
  margin: 0 0 1rem;
  font-family: "Songti SC", SimSun, "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.jx-lead h1 a,
.jx-secondary-card h2 a,
.jx-story-row h3 a,
.jx-sector-card a,
.jx-related a {
  color: inherit;
  text-decoration: none;
}

.jx-lead h1 a:hover,
.jx-secondary-card h2 a:hover,
.jx-story-row h3 a:hover,
.jx-sector-card a:hover,
.jx-related a:hover {
  color: var(--jx-accent);
}

.jx-lead__summary {
  max-width: 58ch;
  margin: 0;
  color: var(--jx-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.jx-lead__secondary {
  display: grid;
  gap: 1.3rem;
}

.jx-secondary-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--jx-line);
}

.jx-secondary-card__media {
  aspect-ratio: 4 / 3;
}

.jx-secondary-card h2 {
  margin: 0;
  font-family: "Songti SC", SimSun, "Noto Serif CJK SC", Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.42;
}

.jx-ad-slot[hidden] {
  display: none !important;
}

.jx-latest,
.jx-sectors {
  margin-top: clamp(4rem, 8vw, 7rem);
}

.jx-section-heading {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  align-items: end;
  margin-bottom: 2rem;
  padding-top: 0.8rem;
  border-top: 3px solid var(--jx-ink);
}

.jx-section-heading p {
  margin: 0 0 0.2rem;
  color: var(--jx-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.jx-section-heading h2 {
  margin: 0;
  font-family: "Songti SC", SimSun, serif;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
}

.jx-latest__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3rem;
}

.jx-story-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.2rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--jx-line);
}

.jx-story-row__media {
  aspect-ratio: 5 / 3;
}

.jx-story-row h3 {
  margin: 0 0 0.55rem;
  font-family: "Songti SC", SimSun, serif;
  font-size: 1.22rem;
  line-height: 1.38;
}

.jx-story-row p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--jx-muted);
  font-size: 0.9rem;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.jx-sectors__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.jx-sector-card {
  min-width: 0;
  padding: 1.5rem;
  background: var(--jx-paper);
  border-top: 4px solid var(--jx-accent);
  box-shadow: 0 10px 32px rgb(23 23 23 / 5%);
}

.jx-sector-card header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.jx-sector-card h3 {
  margin: 0;
  font-family: "Songti SC", SimSun, serif;
  font-size: 1.35rem;
}

.jx-sector-card__more {
  color: var(--jx-accent) !important;
  font-size: 0.75rem;
  font-weight: 700;
}

.jx-sector-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sector;
}

.jx-sector-card li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--jx-line);
  counter-increment: sector;
}

.jx-sector-card li a {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
}

.jx-sector-card time {
  color: var(--jx-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.jx-single-shell,
.jx-page-shell,
.jx-archive-shell,
.jx-search-shell,
.jx-error-shell {
  padding-top: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.jx-breadcrumbs {
  width: min(100%, var(--jx-wide));
  margin: 0 auto 2rem;
  color: var(--jx-muted);
  font-size: 0.8rem;
}

.jx-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jx-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.45rem;
  color: #aaa39a;
}

.jx-breadcrumbs a {
  color: inherit;
}

.jx-article-header {
  width: min(100%, 980px);
  margin-bottom: 2.5rem;
}

.jx-article-category {
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.jx-article-title {
  margin-top: 0;
  margin-bottom: 1.3rem;
  font-family: "Songti SC", SimSun, "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  letter-spacing: -0.055em;
  line-height: 1.14;
}

.jx-article-byline {
  gap: 0.8rem 1.3rem !important;
  color: var(--jx-muted);
  font-size: 0.85rem;
}

.jx-article-byline a {
  color: inherit;
}

.jx-article-featured {
  margin-bottom: 3rem;
}

.jx-article-featured img {
  width: 100%;
  object-fit: cover;
}

.jx-article-content {
  font-size: 1.075rem;
  line-height: 1.86;
}

.jx-article-content > p:first-of-type {
  font-size: 1.16rem;
  color: #35322f;
}

.jx-article-content h2,
.jx-article-content h3,
.jx-article-content h4 {
  margin-top: 2.2em;
  margin-bottom: 0.75em;
}

.jx-article-content h2 {
  padding-bottom: 0.45rem;
  font-family: "Songti SC", SimSun, serif;
  border-bottom: 1px solid var(--jx-line);
}

.jx-article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.jx-article-content th,
.jx-article-content td {
  padding: 0.8rem;
  border: 1px solid var(--jx-line);
  text-align: left;
}

.jx-article-content th {
  background: var(--jx-soft);
}

.jx-article-content blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 3px solid var(--jx-accent);
  color: #3d3935;
  font-family: "Songti SC", SimSun, serif;
  font-size: 1.16rem;
}

.jx-article-tags {
  width: min(100%, var(--jx-reading));
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--jx-line);
  color: var(--jx-muted);
  font-size: 0.85rem;
}

.jx-related {
  width: min(100%, var(--jx-wide));
  margin: 5rem auto 0;
}

.jx-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.jx-related__media {
  aspect-ratio: 5 / 3;
}

.jx-related h3 {
  margin: 0.85rem 0 0;
  font-family: "Songti SC", SimSun, serif;
  font-size: 1.05rem;
  line-height: 1.5;
}

.jx-page-title,
.jx-archive-title {
  font-family: "Songti SC", SimSun, serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  letter-spacing: -0.045em;
}

.jx-archive-title {
  margin-top: 0;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--jx-ink);
}

.jx-archive-query .wp-block-post-template {
  gap: 2.5rem 1.5rem;
}

.jx-archive-card {
  align-content: start;
  margin: 0;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--jx-line);
}

.jx-archive-card .wp-block-post-featured-image {
  margin-bottom: 1rem;
}

.jx-archive-card .wp-block-post-featured-image img {
  width: 100%;
  object-fit: cover;
}

.jx-archive-card .wp-block-post-title {
  margin: 0.45rem 0;
  font-family: "Songti SC", SimSun, serif;
  line-height: 1.4;
}

.jx-archive-card .wp-block-post-excerpt {
  color: var(--jx-muted);
  font-size: 0.9rem;
}

.jx-archive-card .wp-block-post-date,
.jx-search-card .wp-block-post-date {
  color: var(--jx-muted);
  font-size: 0.78rem;
}

.wp-block-query-pagination {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--jx-line);
}

.jx-search-form {
  max-width: 680px;
  margin-bottom: 3rem;
}

.jx-search-card {
  max-width: 880px;
  margin: 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--jx-line);
}

.jx-search-card .wp-block-post-title {
  margin: 0.4rem 0;
  font-family: "Songti SC", SimSun, serif;
}

.jx-error-shell {
  min-height: 65vh;
  text-align: center;
}

.jx-error-code {
  margin: 0;
  color: var(--jx-accent);
  font-size: clamp(5rem, 16vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.jx-error-shell .jx-search-form {
  margin-right: auto;
  margin-left: auto;
}

.jx-error-shell .wp-block-buttons {
  justify-content: center;
}

.jx-empty {
  min-height: 50vh;
  padding: 5rem 0;
  text-align: center;
}

.jx-site-footer {
  padding: 0 !important;
  color: #e7e2da;
  background: var(--jx-ink);
}

.jx-footer-grid,
.jx-footer-bottom {
  padding: 3rem clamp(1rem, 3vw, 2rem);
}

.jx-footer-title a,
.jx-footer-title {
  color: #fff;
  font-family: "Songti SC", SimSun, serif;
  font-size: 1.65rem;
  text-decoration: none;
}

.jx-footer-tagline,
.jx-footer-note,
.jx-footer-bottom {
  color: #aaa39a;
}

.jx-footer-bottom {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid #34302d;
  font-size: 0.78rem;
}

.jx-footer-bottom a {
  color: #fff;
}

@media (max-width: 1080px) {
  .jx-lead {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 2rem;
  }

  .jx-latest__list {
    grid-template-columns: 1fr;
  }

  .jx-sectors__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jx-category-nav__inner {
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .jx-category-nav__inner::-webkit-scrollbar {
    display: none;
  }

  .jx-category-nav__more {
    position: sticky;
    right: 0;
    background: var(--jx-paper);
  }
}

@media (max-width: 780px) {
  .jx-masthead {
    min-height: 84px;
  }

  .jx-header-search {
    width: 48px;
  }

  .jx-header-search .wp-block-search__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .jx-category-nav__inner {
    width: 100%;
    padding-left: 0.5rem;
  }

  .jx-category-nav a,
  .jx-category-nav summary {
    padding: 0 0.72rem;
    font-size: 0.86rem;
  }

  .jx-category-nav__inner > a:nth-of-type(n + 6) {
    display: none;
  }

  .jx-category-nav__panel {
    position: fixed;
    top: auto;
    right: 1rem;
    left: 1rem;
    width: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jx-home {
    width: min(calc(100% - 1.5rem), var(--jx-wide));
    padding-top: 2rem;
  }

  .jx-lead {
    display: block;
  }

  .jx-lead__main {
    padding-right: 0;
    padding-bottom: 2rem;
    border-right: 0;
    border-bottom: 3px solid var(--jx-ink);
  }

  .jx-lead h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .jx-lead__secondary {
    margin-top: 1.4rem;
  }

  .jx-secondary-card {
    grid-template-columns: 110px 1fr;
  }

  .jx-section-heading {
    grid-template-columns: 68px 1fr;
  }

  .jx-story-row {
    grid-template-columns: 118px 1fr;
  }

  .jx-story-row p {
    display: none;
  }

  .jx-sectors__grid,
  .jx-related__grid {
    grid-template-columns: 1fr;
  }

  .jx-archive-query .wp-block-post-template {
    grid-template-columns: 1fr 1fr;
  }

  .jx-article-title {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }
}

@media (max-width: 520px) {
  .jx-wordmark a,
  .jx-wordmark {
    font-size: 1.55rem;
  }

  .jx-secondary-card {
    grid-template-columns: 94px 1fr;
    gap: 0.75rem;
  }

  .jx-secondary-card h2 {
    font-size: 1rem;
  }

  .jx-story-row {
    grid-template-columns: 1fr;
  }

  .jx-story-row__media {
    display: none;
  }

  .jx-archive-query .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .jx-article-content {
    font-size: 1rem;
  }

  .jx-article-content table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
