:root {
  color-scheme: light;
  --ink: #1d2528;
  --muted: #536166;
  --line: #d9e1df;
  --paper: #ffffff;
  --wash: #f5f8f5;
  --blue: #3f6fad;
  --green: #4f8a76;
  --yellow: #d49a29;
  --rust: #a65c45;
  --shadow: 0 18px 50px rgba(35, 53, 60, 0.13);
  --content: 1120px;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--wash);
  font-family: var(--sans);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

p,
li,
h1,
h2,
h3,
dd {
  overflow-wrap: anywhere;
}

.site-nav {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 252, 249, 0.92);
  border-bottom: 1px solid rgba(217, 225, 223, 0.75);
  backdrop-filter: blur(18px);
}

.site-nav__inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0.82rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.brand img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
}

.brand span {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.05rem;
  color: #354146;
  font-size: 0.94rem;
  white-space: nowrap;
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible,
.footer a:hover,
.footer a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--blue);
}

.hero {
  min-height: 78vh;
  max-height: 760px;
  padding: 7rem clamp(1rem, 4vw, 2rem) 4rem;
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(16, 33, 43, 0.86) 0%, rgba(16, 33, 43, 0.55) 34%, rgba(16, 33, 43, 0.05) 68%),
    url("./assets/jtxs-official-hero.png") center / cover no-repeat;
}

.hero__content {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: #f0c766;
  font-size: 0.86rem;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  max-width: 11em;
  font-size: clamp(3.5rem, 8vw, 6.6rem);
  line-height: 0.94;
  font-weight: 850;
}

.hero__lead {
  max-width: 38rem;
  margin: 1.2rem 0 1.7rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.8;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.48rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}

.section {
  padding: clamp(2.6rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.section--paper {
  background: #ffffff;
}

.section__inner {
  max-width: var(--content);
  margin: 0 auto;
}

.section__head {
  max-width: 46rem;
  margin-bottom: 1.8rem;
}

.section__head h2,
.subpage-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
}

.section__head p,
.subpage-hero p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

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

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

.panel {
  min-height: 100%;
  padding: 1.18rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.panel h3 {
  margin: 0 0 0.62rem;
  font-size: 1.1rem;
}

.panel p,
.panel li {
  color: var(--muted);
  line-height: 1.75;
}

.panel p {
  margin: 0;
}

.panel ul,
.facts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.fact {
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.fact dt {
  color: var(--muted);
  font-size: 0.86rem;
}

.fact dd {
  margin: 0.32rem 0 0;
  font-weight: 750;
}

.fact code,
.panel code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

.strip {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 1rem;
  align-items: center;
}

.status-list {
  display: grid;
  gap: 0.72rem;
}

.status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row strong {
  min-width: 8rem;
}

.status-row span {
  color: var(--muted);
  text-align: right;
}

.tone-blue {
  border-top: 4px solid var(--blue);
}

.tone-green {
  border-top: 4px solid var(--green);
}

.tone-yellow {
  border-top: 4px solid var(--yellow);
}

.tone-rust {
  border-top: 4px solid var(--rust);
}

.subpage {
  padding-top: 5.8rem;
}

.subpage-hero {
  max-width: var(--content);
  margin: 0 auto;
  padding: 4rem clamp(1rem, 4vw, 2rem) 2rem;
}

.article {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 4rem;
}

.article section {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.article h2 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
}

.article p,
.article li {
  color: var(--muted);
  line-height: 1.9;
}

.article ul {
  margin: 0;
  padding-left: 1.2rem;
}

.text-link {
  color: var(--blue);
  font-weight: 700;
}

.footer {
  padding: 2rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--line);
  background: #eef4f1;
  color: var(--muted);
}

.footer__inner {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.95rem;
}

@media (max-width: 840px) {
  .site-nav__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav__links {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.1rem;
  }

  .hero {
    min-height: 74vh;
    padding: 8.1rem 1rem 2.3rem;
    align-items: flex-end;
    background:
      linear-gradient(180deg, rgba(13, 28, 35, 0.9) 0%, rgba(13, 28, 35, 0.8) 48%, rgba(13, 28, 35, 0.92) 100%),
      url("./assets/jtxs-official-hero.png") 70% center / cover no-repeat;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 3.55rem);
    line-height: 1;
  }

  .hero__lead {
    margin: 0.9rem 0 1.1rem;
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .hero__meta {
    gap: 0.5rem;
  }

  .pill {
    min-height: 2rem;
    padding: 0.36rem 0.56rem;
    font-size: 0.84rem;
  }

  .panel-grid,
  .panel-grid--two,
  .facts,
  .strip {
    grid-template-columns: 1fr;
  }

  .status-row {
    display: grid;
  }

  .status-row span {
    text-align: left;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
