:root {
  --ink: #13263a;
  --muted: #506577;
  --deep: #102c45;
  --blue: #096b62;
  --jade: #087760;
  --line: #d8e3e3;
  --wash: #f1f6f5;
  --serif:
    "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun",
    "宋体", Georgia, serif;
}
.header-inner {
  height: 72px;
}
.nav > a,
.nav > details > summary {
  height: 72px;
  letter-spacing: 0.02em;
}
.nav > a[aria-current="page"]:after,
.nav > details.current > summary:after {
  height: 3px;
  background: var(--jade);
}
.brand {
  letter-spacing: 0;
  font-weight: 750;
}
.nav-actions .btn.primary {
  background: var(--deep);
  border-color: var(--deep);
  border-radius: 5px;
}
.nav-actions .btn.primary:hover {
  background: #0c4454;
}
.search-box [hidden] {
  display: none;
}
.search-box input[type="search"]::-webkit-search-cancel-button {
  display: none;
}
.search-box:focus-within {
  outline: 2px solid #2f9084;
  outline-offset: 1px;
}
.search-box input:focus-visible {
  outline: 0;
}
.search-box button {
  min-width: 34px;
  min-height: 34px;
  color: var(--jade);
  border-radius: 4px;
}
.search-box button:hover {
  background: var(--wash);
}
.search-box button[type="submit"] {
  border-left: 1px solid var(--line);
  border-radius: 0;
}
.btn.primary {
  background: var(--deep);
}
.btn.primary:hover {
  background: #16435c;
}
.hero .btn.primary {
  background: var(--deep);
}

.journal {
  padding: clamp(32px, 3.7vw, 58px) 0 52px;
}
.journal-mast {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.journal-mast h1,
.directory-page .page-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 4.35vw, 70px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0.008em;
  color: #10283d;
}
.journal-mast h1 {
  display: flex;
  align-items: center;
  gap: 18px;
}
.journal-mast h1:before {
  content: "";
  display: block;
  background: var(--jade);
  width: 6px;
  height: 0.85em;
  border-radius: 1px;
}
.journal-mast p {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(14px, 1.13vw, 18px);
}
.journal-mast .search-box {
  width: clamp(225px, 25vw, 330px);
  min-height: 45px;
  flex-shrink: 0;
  border-radius: 5px;
  border-color: #bdccce;
}
.journal-categories {
  display: flex;
  align-items: stretch;
  gap: clamp(15px, 2.4vw, 36px);
  margin: 25px 0 26px;
  border-bottom: 1px solid #bccdcc;
  overflow-x: auto;
  scrollbar-width: thin;
}
.journal-categories .chip {
  min-height: 46px;
  padding: 7px 2px 10px;
  flex: none;
  font-weight: 600;
  font-size: 15px;
  color: #415466;
  background: none;
  box-shadow: none;
  border-radius: 0;
  position: relative;
}
.journal-categories .chip.active,
.journal-categories .chip:hover {
  color: var(--jade);
}
.journal-categories .chip.active:after {
  position: absolute;
  content: "";
  height: 3px;
  bottom: 0;
  inset-inline: 0;
  background: var(--jade);
}
.journal-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  min-height: clamp(274px, 25.8vw, 375px);
  background: #10283e;
  color: #fff;
  isolation: isolate;
}
.feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(27px, 3.2vw, 53px);
  min-width: 0;
}
.journal-meta {
  display: flex;
  align-items: center;
  gap: 9px 14px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  color: #516578;
}
.journal-meta > :not(:first-child) {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.journal-meta > :not(:first-child):before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.8em;
  background: currentColor;
  opacity: 0.48;
}
.journal-meta > :first-child {
  color: var(--jade);
  font-weight: 700;
}
.feature-copy .journal-meta {
  color: #cbd6dd;
}
.feature-copy .journal-meta > :first-child {
  color: #9ae4cf;
}
.journal-feature h2 {
  font: 700 clamp(28px, 2.7vw, 45px) / 1.45 var(--serif);
  letter-spacing: 0.012em;
  margin: 12px 0 9px;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.feature-copy p,
.journal-row p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}
.feature-copy p {
  color: #c7d5de;
  line-height: 1.78;
  font-size: clamp(14px, 1.07vw, 17px);
}
.feature-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9af0d1;
  margin-top: clamp(16px, 1.6vw, 26px);
  font-size: 14px;
  font-weight: 700;
}
.feature-action svg,
.journal-row h3 {
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}
.journal-feature:hover .feature-action svg {
  transform: translateX(4px);
}
.journal-image {
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #edf3f2;
}
.journal-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.journal-feature .journal-image img {
  position: absolute;
  inset: 0;
}
.journal-feature:not(:has(.journal-image)) {
  grid-template-columns: 1fr;
  min-height: 0;
}
.journal-feature:not(:has(.journal-image)) .feature-copy {
  max-width: 900px;
}
.journal-feed {
  margin-top: clamp(27px, 3vw, 46px);
}
.journal-section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 5px;
}
.journal-section-title h2,
.journal-empty h2 {
  font: 700 clamp(24px, 2.1vw, 34px) / 1.45 var(--serif);
  color: var(--ink);
}
.journal-section-title:after {
  content: "";
  height: 1px;
  background: #9eb4b4;
  flex: 1;
}
.journal-section-title small {
  color: var(--muted);
  font-size: 13px;
}
.journal-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 48px);
}
.journal-row {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.65vw, 26px);
  min-width: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.journal-row > .journal-image {
  width: clamp(108px, 11vw, 165px);
  aspect-ratio: 1.36;
  flex-shrink: 0;
}
.journal-row > div:last-child {
  min-width: 0;
}
.journal-row h3 {
  font: 700 clamp(20px, 1.5vw, 25px) / 1.46 var(--serif);
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.journal-row:hover h3 {
  color: var(--jade);
}
.journal-row p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}
.journal-row:not(:has(.journal-image)) {
  align-items: flex-start;
}
.journal-empty {
  padding: clamp(35px, 6vw, 85px) 18px;
  text-align: center;
  border-block: 1px solid var(--line);
  background: #f5f9f8;
}
.journal-empty > .icon {
  color: var(--jade);
  margin-bottom: 8px;
}
.journal-empty > p {
  margin: 8px 0 17px;
  color: var(--muted);
}
.journal-detail {
  padding: clamp(26px, 3vw, 50px) 0 60px;
}
.journal-detail article {
  max-width: 820px;
  margin: auto;
}
.journal-detail .back {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--jade);
  font-weight: 600;
}
.journal-detail header {
  border-top: 2px solid var(--deep);
  padding: 24px 0;
}
.journal-detail h1 {
  font: 750 clamp(30px, 3.1vw, 50px) / 1.35 var(--serif);
  letter-spacing: 0.012em;
  margin: 12px 0;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.journal-deck {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.8;
  color: var(--muted);
}
.journal-detail .journal-image {
  aspect-ratio: 2.45;
  margin: 0 0 22px;
}
.journal-reader {
  padding: 10px 0;
  justify-content: space-between;
}
.journal-size,
.journal-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.journal-size > span {
  margin-right: 4px;
}
.journal-size .chip,
.journal-tools .btn {
  padding: 6px 11px;
  min-height: 36px;
}
.journal-size .chip {
  border: 1px solid transparent;
  border-radius: 4px;
}
.journal-size .chip[aria-pressed="true"] {
  border-color: #8ebdb3;
  background: #edf7f3;
  box-shadow: none;
}
.journal-tools .btn {
  font-size: 13px;
  gap: 5px;
  border: 0;
  box-shadow: none;
  color: var(--jade);
  background: transparent;
}
.journal-body p {
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.95;
  margin: 0 0 1.2em;
}
.journal-body p:last-child {
  margin: 0;
}
.journal-detail footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.journal-detail footer .back {
  margin: 0;
}

.directory-page .page-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 21px;
}
.directory-page .page-head h1 {
  font-size: clamp(35px, 3.4vw, 52px);
}
.directory-page .filterbar {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0 0 15px;
  border-radius: 0;
}
.directory-page .chip.active {
  background: #e3f1eb;
  color: var(--jade);
  box-shadow: none;
}
.service-index {
  gap: 0 clamp(20px, 2vw, 32px);
}
.service-index .card {
  border: 0;
  border-top: 2px solid #527e7e;
  border-radius: 0;
  padding: 20px 0 22px;
}
.service-index .card:hover {
  transform: none;
  border-color: var(--jade);
}
.service-index .card:hover h3 {
  color: var(--jade);
}
.service-index h3 {
  font: 700 clamp(20px, 1.55vw, 25px) / 1.4 var(--serif);
}
.service-index .category,
.home-content .category {
  color: var(--jade);
  background: #e8f3ef;
}
.section-head h2,
.home-content .feed-item h3 {
  font-family: var(--serif);
}

@media (max-width: 880px) {
  .header-inner {
    height: 62px;
  }
  .journal-rows {
    grid-template-columns: 1fr;
  }
  .journal-row > .journal-image {
    width: 144px;
  }
}
@media (max-width: 680px) {
  .journal {
    padding: 25px 0 34px;
  }
  .journal-mast {
    display: block;
  }
  .journal-mast h1 {
    font-size: 38px;
    gap: 10px;
  }
  .journal-mast h1:before {
    width: 4px;
  }
  .journal-mast p {
    margin-top: 8px;
    font-size: 14px;
  }
  .journal-mast .search-box {
    width: 100%;
    margin-top: 15px;
    min-height: 40px;
  }
  .journal-categories {
    gap: 20px;
    margin: 10px 0 16px;
  }
  .journal-categories .chip {
    font-size: 14px;
    min-height: 42px;
    padding-bottom: 8px;
  }
  .journal-feature {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .journal-feature .journal-image {
    order: -1;
    aspect-ratio: 2.35;
  }
  .feature-copy {
    padding: 18px 21px 21px;
  }
  .journal-feature h2 {
    font-size: clamp(24px, 6.4vw, 32px);
    margin: 7px 0;
    line-height: 1.4;
    text-wrap: balance;
  }
  .feature-copy p {
    font-size: 14px;
  }
  .feature-action {
    margin-top: 11px;
  }
  .journal-feed {
    margin-top: 23px;
  }
  .journal-section-title {
    gap: 11px;
  }
  .journal-section-title h2 {
    font-size: 24px;
  }
  .journal-row {
    padding: 14px 0;
    gap: 12px;
    align-items: flex-start;
  }
  .journal-row > .journal-image {
    width: clamp(84px, 25vw, 126px);
    aspect-ratio: 1.2;
  }
  .journal-row h3 {
    font-size: 18px;
    line-height: 1.4;
    margin: 5px 0;
  }
  .journal-row p {
    font-size: 13px;
    -webkit-line-clamp: 1;
  }
  .journal-meta {
    font-size: 11px;
    gap: 6px 8px;
  }
  .journal-meta > :not(:first-child) {
    gap: 8px;
  }
  .journal-detail .journal-image {
    aspect-ratio: 1.95;
  }
  .journal-detail header {
    padding: 17px 0;
  }
}
@media (max-width: 640px) {
  .header-inner {
    height: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .feature-action svg,
  .journal-row h3 {
    transition: none;
  }
}

.directory-mast {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(165px, 16vw, 234px);
  margin-bottom: 26px;
  background: #edf4f3;
  border-top: 2px solid var(--deep);
  border-bottom: 1px solid var(--line);
}
.directory-mast > div {
  position: relative;
  z-index: 1;
  width: 65%;
  padding: clamp(20px, 2.6vw, 40px);
}
.directory-mast h1 {
  font: 750 clamp(34px, 3.5vw, 55px) / 1.22 var(--serif);
  color: var(--ink);
  letter-spacing: 0;
}
.directory-mast p {
  max-width: 42ch;
  margin: 10px 0 0;
  color: #41586b;
}
.directory-mast .btn {
  margin-top: 14px;
  min-height: 38px;
  padding: 6px 15px;
  border-radius: 4px;
}
.directory-mast img {
  position: absolute;
  right: 0;
  inset-block: 0;
  width: 42%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(90deg, transparent, #000 21%);
}
.toolkit-index .tool-icon {
  color: var(--jade);
  margin-bottom: 3px;
  line-height: 1;
}
#site-footer {
  margin-top: auto;
}
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
@media (max-width: 680px) {
  .directory-mast {
    margin-bottom: 20px;
    min-height: 145px;
  }
  .directory-mast > div {
    width: 75%;
    padding: 16px;
  }
  .directory-mast img {
    width: 34%;
    mask-image: linear-gradient(90deg, transparent, #000 46%);
  }
  .directory-mast h1 {
    font-size: 32px;
  }
  .directory-mast p {
    margin-top: 7px;
    font-size: 13px;
  }
  .directory-mast .btn {
    margin-top: 10px;
  }
}
