:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #526075;
  --line: #dce6f2;
  --blue: #1677ff;
  --page: #f5f8fc;
  --panel: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}

a {
  color: var(--jys-color-text-link);
  text-decoration-thickness: from-font;
  text-underline-offset: var(--jys-space-1, .25rem);
  transition:
    color var(--jys-motion-duration-fast, 120ms) var(--jys-motion-easing-standard, ease),
    background-color var(--jys-motion-duration-fast, 120ms) var(--jys-motion-easing-standard, ease);
}

a:hover {
  color: var(--jys-color-action-primary-hover, LinkText);
  text-decoration: underline;
}

a:focus-visible {
  border-radius: var(--jys-radius-small, .375rem);
  outline: 2px solid var(--jys-color-border-focus, LinkText);
  outline-offset: 3px;
  box-shadow: var(--jys-shadow-focus, none);
}

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.topbar-inner,
.document,
.footer-inner {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  font-size: 13px;
}

.topbar nav a {
  min-height: var(--jys-size-control-touch, 2.75rem);
  display: inline-flex;
  align-items: center;
  padding: 0 var(--jys-space-2, .5rem);
  border-radius: var(--jys-radius-control, .5rem);
  color: var(--muted);
  text-decoration: none;
}

.topbar nav a:hover {
  background: var(--jys-color-action-primary-subtle, Canvas);
  color: var(--jys-color-action-primary-hover, LinkText);
  text-decoration: underline;
}

.document {
  margin-top: 28px;
  margin-bottom: 48px;
  padding: clamp(24px, 6vw, 54px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.07);
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.18;
}

.meta {
  margin: 14px 0 30px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #edf5ff;
  color: #245487;
  font-size: 14px;
}

h2 {
  margin: 34px 0 10px;
  font-size: 21px;
  line-height: 1.35;
}

h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

p { margin: 0 0 14px; }

ul,
ol {
  margin: 8px 0 16px;
  padding-left: 1.4em;
}

li { margin: 5px 0; }

.table-wrap {
  overflow-x: auto;
  margin: 14px 0 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th { background: #f7faff; }

tr:last-child td { border-bottom: 0; }

.note {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--blue);
  background: #f4f8ff;
  color: var(--muted);
}

footer {
  padding: 0 0 36px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--jys-space-2, .5rem) var(--jys-space-6, 1.5rem);
  padding-top: var(--jys-space-6, 1.5rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--jys-space-2, .5rem) var(--jys-space-5, 1.25rem);
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--jys-color-action-primary-hover, LinkText);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .topbar nav { justify-content: flex-start; }

  .document {
    width: calc(100% - 20px);
    margin-top: 10px;
    border-radius: 12px;
  }
}
