:root {
  --night: #030811;
  --surface: #08111e;
  --ink: #f8f4e9;
  --muted: #9ba3b0;
  --gold: #efbd58;
  --line: rgba(255, 255, 255, 0.12);
  --page: 1360px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--night);
  scroll-behavior: smooth;
}
body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(30, 62, 112, 0.22), transparent 34%),
    var(--night);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 999;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: #fff;
  color: #111;
}
.skip-link:focus {
  transform: none;
}
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, 1920px);
  max-width: 1920px;
  height: 88px;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  transition: background 260ms ease, border-color 260ms ease, height 260ms ease;
}
.site-header.scrolled {
  height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 8, 17, 0.78);
  backdrop-filter: blur(18px) saturate(125%);
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.7rem;
  width: max-content;
  color: #fff;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.brand-mark {
  width: 28px;
  height: 28px;
  fill: var(--gold);
  filter: drop-shadow(0 0 10px rgba(239, 189, 88, 0.35));
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.desktop-nav a {
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  color: #aeb4bf;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}
.desktop-nav a:hover,
.desktop-nav a.active {
  background: rgba(239, 189, 88, 0.11);
  color: var(--gold);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  justify-self: end;
}
.header-cta {
  padding: 0.72rem 1.3rem;
  border: 1px solid rgba(239, 189, 88, 0.35);
  border-radius: 999px;
  background: rgba(162, 104, 23, 0.16);
  color: #f7d894;
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  box-shadow: inset 0 0 22px rgba(239, 189, 88, 0.05);
  transition: transform 180ms ease, background 180ms ease;
}
.header-cta:hover {
  transform: translateY(-2px);
  background: rgba(162, 104, 23, 0.28);
}
.menu-button,
.mobile-menu {
  display: none;
}
.lang-selector {
  position: relative;
  display: inline-block;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 220ms ease;
  outline: none;
}
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(239, 189, 88, 0.4);
  color: #fff;
}
.lang-selector.open .lang-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
  color: #fff;
}
.earth-icon {
  flex-shrink: 0;
  color: currentColor;
  transition: transform 300ms ease;
}
.lang-btn:hover .earth-icon {
  transform: rotate(15deg);
}
.arrow-icon {
  flex-shrink: 0;
  opacity: 0.6;
  transition: transform 200ms ease;
}
.lang-selector.open .arrow-icon {
  transform: rotate(180deg);
  opacity: 1;
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  width: 580px;
  margin: 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(4, 9, 17, 0.95);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}
.lang-selector.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.lang-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.lang-col-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0.2rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}
.lang-col-title span:first-child {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-col-title span:last-child {
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.lang-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-dropdown li {
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
  outline: none;
}
.lang-dropdown li:hover,
.lang-dropdown li:focus {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.lang-dropdown li.active {
  background: rgba(239, 189, 88, 0.09);
  color: var(--gold);
  font-weight: 700;
  box-shadow: inset 0 0 10px rgba(239, 189, 88, 0.04);
}
.lang-dropdown::-webkit-scrollbar {
  width: 4px;
}
.lang-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.lang-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
}
.lang-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
.content-shell {
  width: min(calc(100% - 3rem), var(--page));
  min-height: calc(100vh - 146px);
  margin: auto;
  padding: calc(88px + 5rem) 0 6rem;
}
.page-intro {
  max-width: 980px;
  margin-bottom: 2.6rem;
}
.eyebrow {
  margin: 0 0 1.3rem;
  color: var(--gold);
  font-family: ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
}
.page-intro h1 {
  margin: 0;
  color: #f4cb78;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(3.7rem, 8vw, 7.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.055em;
}
.page-intro > p:last-child {
  max-width: 800px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}
.scope-note {
  max-width: 1050px;
  margin: 0 0 3rem;
  padding: 1.25rem 1.4rem;
  border-left: 2px solid var(--gold);
  background: rgba(239, 189, 88, 0.055);
}
.scope-note strong {
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}
.scope-note p {
  margin: 0.55rem 0 0;
  color: #bbc0c9;
  line-height: 1.75;
}
.collection-list,
.library-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.collection-list > li {
  border-top: 1px solid var(--line);
}
.collection-list > li:last-child {
  border-bottom: 1px solid var(--line);
}
.collection-row {
  display: grid;
  grid-template-columns: 55px minmax(240px, 1.2fr) minmax(360px, 1.6fr) auto;
  align-items: center;
  gap: 1.2rem;
  min-height: 130px;
  padding: 1rem 0;
}
.ordinal {
  align-self: start;
  padding-top: 0.5rem;
  color: var(--gold);
  font-family: ui-monospace, monospace;
}
.sutra-title h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 1.35rem;
  font-weight: 400;
}
.sutra-title p {
  margin: 0.42rem 0 0;
  color: #8f97a3;
}
.sutra-title small {
  display: block;
  margin-top: 0.45rem;
  color: #687282;
  font-family: Georgia, serif;
}
.meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
}
.meta div {
  min-width: 0;
}
.meta dt {
  color: #667080;
  font-size: 0.66rem;
  text-transform: uppercase;
}
.meta dd {
  margin: 0.25rem 0 0;
  color: #c5c8ce;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
.read-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(239, 189, 88, 0.45);
  border-radius: 8px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.read-link:hover {
  background: rgba(239, 189, 88, 0.1);
}
details {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.014);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 1rem 0 55px;
  color: #aeb3bd;
  cursor: pointer;
}
.alternate-wrap {
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #959ca7;
  font-size: 0.76rem;
}
th,
td {
  padding: 0.76rem 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
thead th {
  border-top: 0;
  color: #687280;
  font-size: 0.67rem;
  white-space: nowrap;
}
th:first-child,
td:first-child {
  width: 24%;
  padding-left: 55px;
}
th:nth-child(2),
td:nth-child(2) {
  width: 16%;
}
th:nth-child(3),
td:nth-child(3),
th:nth-child(4),
td:nth-child(4) {
  width: 9%;
}
th:nth-child(5),
td:nth-child(5) {
  width: 15%;
}
th:nth-child(6),
td:nth-child(6) {
  width: 12%;
}
th:nth-child(7),
td:nth-child(7) {
  width: 10%;
}
.contract-note {
  color: #68717f;
  font-family: ui-monospace, monospace;
  font-size: 0.71rem;
}
.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.catalog-toolbar p {
  color: var(--gold);
  font-size: 0.84rem;
}
.catalog-toolbar label {
  display: grid;
  gap: 0.45rem;
  width: min(100%, 360px);
  color: #929aa6;
  font-size: 0.72rem;
}
.catalog-toolbar input {
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
}
.library-list li {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 92px;
  border-top: 1px solid var(--line);
}
.library-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.library-list .ordinal {
  align-self: center;
  padding: 0;
}
.library-list h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 1.26rem;
  font-weight: 400;
}
.library-list small {
  display: block;
  margin-top: 0.42rem;
  color: #717a88;
}
.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.pagination a {
  width: max-content;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}
.pagination a:last-child {
  justify-self: end;
}
.pagination span {
  color: #89919d;
  font-size: 0.78rem;
  text-align: center;
}
.data-grid {
  max-width: 1050px;
}
.data-grid section {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.data-grid section > span {
  color: var(--gold);
  font-family: ui-monospace, monospace;
}
.data-grid h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 1.8rem;
  font-weight: 400;
}
.data-grid p {
  max-width: 800px;
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}
.data-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}
.data-status div {
  padding: 1.3rem;
  background: #07101c;
}
.data-status dt {
  color: #717b89;
  font-size: 0.67rem;
  text-transform: uppercase;
}
.data-status dd {
  margin: 0.5rem 0 0;
  color: #d5d8dd;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.data-status .healthy {
  color: #83c69d;
}
.error-card {
  padding: 1.4rem;
  border: 1px solid rgba(208, 113, 91, 0.35);
  border-radius: 10px;
  color: #e0a08e;
  background: rgba(208, 113, 91, 0.06);
}
.skeleton {
  height: 92px !important;
  border-radius: 8px !important;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.025),
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.025)
  );
  background-size: 200% 100%;
  animation: skeleton 1.4s linear infinite;
}
.content-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  width: min(calc(100% - 3rem), var(--page));
  min-height: 64px;
  margin: auto;
  border-top: 1px solid var(--line);
  color: #69717e;
  font-size: 0.72rem;
}
.content-footer nav {
  display: flex;
  gap: 1rem;
}
.content-footer a {
  color: #89919d;
  text-decoration: none;
}
.content-footer a:hover {
  color: var(--gold);
}
@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .desktop-nav,
  .header-cta {
    display: none;
  }
  .menu-button {
    display: grid;
    place-content: center;
    justify-self: end;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(3, 8, 17, 0.35);
    color: #fff;
  }
  .menu-button span {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }
  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }
  .mobile-menu {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 1.25rem;
    display: grid;
    width: min(280px, calc(100vw - 2.5rem));
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(4, 9, 17, 0.94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }
  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .mobile-menu a {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
  }
  .mobile-menu a:hover,
  .mobile-menu a.active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }
  .mobile-menu .mobile-cta {
    margin-top: 0.35rem;
    background: linear-gradient(110deg, #f4c969, #d8942c);
    color: #261504;
    text-align: center;
    font-weight: 700;
  }
  .content-shell {
    padding-top: calc(88px + 3.5rem);
    padding-bottom: 7rem;
  }
  .collection-row {
    grid-template-columns: 38px 1fr;
  }
  .collection-row .meta,
  .collection-row .read-link {
    grid-column: 2;
  }
  .collection-row .read-link {
    width: max-content;
  }
  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 0.8rem;
  }
  .data-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand {
    font-size: 0.86rem;
  }
}
@media (max-width: 1000px) {
  .lang-dropdown {
    right: -60px;
  }
}
@media (max-width: 759px) {
  .site-header {
    width: 100%;
    height: 72px;
    padding: 0 1rem;
  }
  .brand {
    font-size: 0.9rem;
  }
  .brand-mark {
    width: 24px;
    height: 24px;
  }
  .lang-btn {
    height: 34px;
    padding: 0 0.6rem;
    font-size: 0.78rem;
  }
  .lang-dropdown {
    position: fixed;
    top: 64px;
    right: 1rem;
    left: 1rem;
    width: auto;
    max-width: none;
    max-height: 380px;
    overflow-y: auto;
  }
  .lang-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .content-shell {
    padding-top: calc(72px + 3.5rem);
  }
}
@media (max-width: 560px) {
  .content-shell,
  .content-footer {
    width: min(calc(100% - 2rem), var(--page));
  }
  .page-intro h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }
  .meta {
    grid-template-columns: 1fr;
  }
  .library-list li {
    grid-template-columns: 38px 1fr;
  }
  .library-list .read-link {
    grid-column: 2;
    width: max-content;
  }
  .pagination {
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
  }
  .pagination a {
    padding: 0.65rem 0.75rem;
  }
  .data-status {
    grid-template-columns: 1fr;
  }
  .content-footer {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 1rem 0;
  }
  .content-footer nav {
    justify-content: flex-start;
  }
}
@media (max-width: 480px) {
  .lang-dropdown {
    right: 1rem;
    left: 1rem;
    max-height: 350px;
  }
  .lang-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}
@media (max-width: 400px) {
  .lang-btn .current-lang-name {
    display: none;
  }
  .lang-btn {
    padding: 0 0.5rem;
    gap: 0.2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
@keyframes skeleton {
  to {
    background-position: -200% 0;
  }
}
