/* ==========================================================================
   CAPLINK design tokens
   Derived from en.jielong-storage.com (computed styles, audited 2026-11-24).
   See DESIGN_TOKENS.md. Shared by every page under /downloads/; reusable for
   future /lp/ marketing pages (copy or extract this block to a shared file).
   ========================================================================== */
:root {
  /* Brand */
  --color-brand: #0071e3; /* reference --bc, nav hover */
  --color-brand-hover: #005bb8; /* --color-brand darkened for button hover */
  --color-brand-deep: #1365a7; /* reference footer */
  --color-brand-light: #eaf3ff; /* reference --bl */
  --color-brand-on-dark: #4da3ff; /* brand accent legible on black */

  /* Neutrals */
  --color-header-bg: #000;
  --color-on-dark: #fff;
  --color-on-dark-muted: rgba(255, 255, 255, 0.85);
  --color-heading: #111;
  --color-text: #212529;
  --color-text-muted: #666;
  --color-border: #ddd;
  --color-border-light: #efefef;
  --color-surface: #fff;
  --color-surface-alt: #f6f6f6;
  --color-surface-sunken: #ececec;

  /* Typography */
  --font-sans: Arial, Helvetica, sans-serif;
  --font-size-body: 14px;
  --font-size-nav: 16px;
  --font-size-title: clamp(1.75rem, 1.306rem + 1.48vw, 2.5rem); /* 28 -> 40px */
  --font-weight-heading: 700;

  /* Layout */
  --header-height: 72px;
  --container-max: 1410px; /* 1354px content + 2 x 28px padding: 43px gutters at 1440px */
  --gutter: 28px;

  /* Shape and motion */
  --radius-sm: 4px; /* buttons, inputs */
  --radius: 5px; /* cards, panels (reference --br) */
  --shadow: 0 0 30px rgba(0, 0, 0, 0.07); /* reference --shadow */
  --transition: 0.15s ease-in-out;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    15px/1.5 system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  color: #15243a;
  background: #f4f6f9;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a.action {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 2px;
}
.top {
  height: 68px;
  background: #111d31;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1440px) / 2));
  gap: 20px;
}
.brand {
  font-size: 26px;
  letter-spacing: -1.3px;
  font-weight: 850;
  white-space: nowrap;
}
.brand i {
  color: #d0ac70;
  font-style: normal;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
}
.top nav a:hover {
  color: #e3bc7d;
}
.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 30px 20px;
}
.crumb {
  color: #63738a;
  font-size: 12px;
  margin-bottom: 15px;
}
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2px;
  color: #8b6633;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 7px 0 8px;
}
.hero p {
  margin: 0;
  color: var(--color-text-muted);
}
.action {
  border: 1px solid #18324e;
  background: #18324e;
  color: white;
  border-radius: 7px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 650;
  white-space: nowrap;
}
.action.secondary {
  background: white;
  color: #18324e;
  border-color: #c7d2df;
}
.action:hover {
  filter: brightness(1.1);
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.viewer {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 7px 25px #172a4810;
}
.toolbar {
  height: auto;
  min-height: 52px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  min-width: 32px;
  height: 34px;
  padding: 0 7px;
}
.tool:hover {
  background: var(--color-brand-light);
  border-color: var(--color-border);
}
.tool:disabled {
  opacity: 0.35;
  cursor: default;
}
.tool svg,
.action svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sep {
  height: 22px;
  width: 1px;
  background: var(--color-border);
  margin: 0 3px;
}
.counter {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 13px;
}
.counter input {
  width: 42px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 4px 0;
  color: var(--color-text);
}
.zoom {
  font-size: 12px;
  min-width: 43px;
  text-align: center;
  color: var(--color-text-muted);
}
.body {
  display: flex;
  height: clamp(540px, 73vh, 850px);
  min-height: 0;
}
.sidebar {
  width: 166px;
  flex-shrink: 0;
  border-right: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  overflow: auto;
  padding: 12px;
}
.side-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin: 3px 5px 12px;
}
.thumb {
  display: block;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 7px;
  margin-bottom: 9px;
  padding: 7px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 11px;
}
.thumb img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 1px 5px #172a4822;
  margin: 0 auto 5px;
}
.thumb.active {
  background: var(--color-brand-light);
  border-color: var(--color-brand);
  color: var(--color-brand);
  font-weight: 700;
}
.thumb:hover {
  background: var(--color-border-light);
}
.stage {
  background: #e4e9f0;
  flex: 1;
  min-width: 0;
  overflow: auto;
  position: relative;
  padding: 24px;
  display: block;
  text-align: center;
}
.page {
  display: block;
  max-width: none;
  margin: 0 auto;
  box-shadow: 0 4px 22px #132a4733;
  background: white;
  height: auto;
}
.stage.zoomed {
  text-align: left;
}
.stage.zoomed .page {
  margin-left: auto;
  margin-right: auto;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 12px;
  padding: 13px 1px;
}
.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 10px;
  border-top: 1px solid var(--color-border);
  margin-top: 10px;
}
.support strong {
  display: block;
  font-size: 16px;
}
.support span {
  color: var(--color-text-muted);
  font-size: 13px;
}
.support a {
  color: #173c65;
  font-weight: 650;
}
.viewer:fullscreen {
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.viewer:fullscreen .body {
  height: auto;
  flex: 1;
}
.sidebar[hidden] {
  display: none;
}
.sr {
  position: absolute;
  left: -9999px;
}
.mobilehint {
  display: none;
}
@media (max-width: 700px) {
  .top {
    padding: 0 16px;
    height: 58px;
  }
  .top nav {
    gap: 12px;
  }
  .top nav a:first-child {
    display: none;
  }
  .shell {
    padding: 18px 13px;
  }
  .hero {
    display: block;
  }
  .actions {
    margin-top: 15px;
  }
  .hero p {
    font-size: 13px;
  }
  .sidebar {
    width: 100px;
    padding: 6px;
  }
  .body {
    height: 65vh;
    min-height: 380px;
  }
  .stage {
    padding: 12px;
  }
  .toolbar {
    padding: 6px;
  }
  .tools {
    gap: 2px;
  }
  .tool {
    min-width: 29px;
    padding: 0 4px;
  }
  .sep {
    margin: 0 1px;
  }
  .support {
    align-items: flex-start;
    flex-direction: column;
  }
  .foot {
    font-size: 11px;
  }
  .mobilehint {
    display: block;
  }
  .top .brand {
    font-size: 23px;
  }
}

:root {
  /* Original aliases, now mapped to the shared tokens above. */
  --blue: var(--color-brand);
  --navy: var(--color-brand-deep);
  --ink: var(--color-text);
  --muted: var(--color-text-muted);
  --line: var(--color-border);
}
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  background: var(--color-surface);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
a,
button {
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}
.top {
  height: var(--header-height);
  background: var(--color-header-bg);
  color: var(--color-on-dark);
  border-bottom: 0;
  padding: 0 max(var(--gutter), calc((100vw - var(--container-max)) / 2 + var(--gutter)));
  gap: 22px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0;
}
.brand img {
  width: 142px;
  height: auto;
  filter: brightness(0) invert(1); /* white logo on the black header; no new asset */
}
.brand small {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 12px;
  line-height: 1.4;
}
.top nav {
  height: 100%;
  gap: clamp(20px, 2.8vw, 40px);
  font-size: var(--font-size-nav);
  white-space: nowrap;
}
.top nav a {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}
.top nav a:hover,
.top nav a.active {
  color: var(--blue);
}
.top nav a.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 3px;
  background: var(--blue);
  left: 0;
  right: 0;
}
.top .contact-link {
  border: 1px solid var(--blue);
  border-radius: var(--radius-sm);
  height: auto;
  padding: 9px 16px;
  color: var(--color-on-dark);
}
.top .contact-link:hover {
  background: var(--blue);
  color: var(--color-on-dark);
}
.wrap {
  max-width: var(--container-max);
  margin: auto;
  padding: 0 var(--gutter);
}
.banner {
  background:
    linear-gradient(90deg, #000 0%, #020a16 34%, rgba(0, 24, 52, 0.72) 58%, rgba(0, 24, 52, 0.13) 100%),
    url("assets/banner.webp") right center/cover no-repeat;
  color: #fff;
  min-height: 270px;
  display: flex;
  align-items: center;
}
.banner .wrap {
  width: 100%;
  padding-top: 38px;
  padding-bottom: 38px;
}
.banner .kicker {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-brand-on-dark);
  font-weight: 700;
}
.banner h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: var(--font-weight-heading);
  letter-spacing: -1px;
  margin: 12px 0;
}
.banner p {
  font-size: 16px;
  color: var(--color-on-dark-muted);
  margin: 0;
  max-width: 530px;
  line-height: 1.7;
}
.crumb {
  padding: 17px 0;
  margin: 0;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-muted);
}
.crumb a:hover {
  color: var(--blue);
}
.section-heading {
  padding: 50px 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.section-heading h2 {
  font-size: var(--font-size-title);
  font-weight: var(--font-weight-heading);
  color: var(--color-heading);
  letter-spacing: 0;
  margin: 0 0 8px;
}
.section-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}
.search {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  background: #fff;
  padding: 0 12px;
  gap: 8px;
  min-width: 270px;
  height: 44px;
}
.search input {
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  background: transparent;
  font-size: 14px;
}
.search:focus-within {
  border-color: var(--blue);
}
.search svg {
  width: 19px;
  stroke: var(--color-text-muted);
  fill: none;
  stroke-width: 1.6;
}
.resources {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 30px;
  padding-bottom: 60px;
}
.categories {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: max-content;
}
.categories h3 {
  margin: 0;
  background: var(--navy);
  color: white;
  padding: 17px 20px;
  font-size: 15px;
  font-weight: var(--font-weight-heading);
}
.category {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-surface);
  color: var(--color-text);
  padding: 15px 18px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  cursor: pointer;
}
.category:last-child {
  border-bottom: 0;
}
.category.selected {
  color: var(--blue);
  background: var(--color-brand-light);
  border-left: 3px solid var(--blue);
  padding-left: 15px;
  font-weight: 600;
}
.category:hover {
  background: var(--color-surface-alt);
}
.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 13px;
  margin: 0 0 15px;
}
.results-head strong {
  color: var(--ink);
  font-size: 15px;
}
.doc-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 255px;
  transition: box-shadow var(--transition);
}
.doc-card:hover {
  box-shadow: var(--shadow);
}
.cover-area {
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cover-area img {
  width: 144px;
  max-width: 100%;
  box-shadow: 0 5px 18px #13274332;
  height: auto;
  display: block;
}
.doc-info {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.doc-type {
  font-size: 11px;
  letter-spacing: 1.3px;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
}
.doc-info h3 {
  margin: 9px 0;
  font-size: 24px;
  font-weight: var(--font-weight-heading);
  color: var(--color-heading);
  letter-spacing: -0.3px;
}
.doc-info h3 a:hover {
  color: var(--blue);
}
.doc-info p {
  color: var(--muted);
  margin: 0 0 15px;
  font-size: 14px;
  line-height: 1.6;
}
.meta {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.action {
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 11px 17px;
  font-size: 14px;
  color: white;
}
.action.secondary {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--color-surface);
}
.action:hover {
  background: var(--color-brand-hover);
  border-color: var(--color-brand-hover);
  filter: none;
  color: white;
}
.action.secondary:hover {
  background: var(--color-brand-light);
  border-color: var(--blue);
  color: var(--blue);
}
.empty {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 44px 25px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
  font-size: 18px;
}
.helpband {
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border-light);
  padding: 50px 0;
}
.helpband .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.helpband h2 {
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: var(--font-weight-heading);
  color: var(--color-heading);
}
.helpband p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}
.site-footer {
  background: var(--color-brand-deep);
  color: var(--color-on-dark-muted);
  padding: 50px 0 22px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer strong {
  color: var(--color-on-dark);
  font-size: 16px;
}
.site-footer p {
  margin: 8px 0;
  font-size: 14px;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 30px;
  padding-top: 18px;
  color: var(--color-on-dark-muted);
  font-size: 12px;
}
.shell {
  max-width: var(--container-max);
  padding: 0 var(--gutter) 30px;
}
.shell .hero {
  margin: 26px 0 22px;
}
.shell .eyebrow {
  color: var(--blue);
}
.shell h1 {
  font-size: 36px;
  letter-spacing: -0.8px;
  font-weight: var(--font-weight-heading);
  color: var(--color-heading);
}
.viewer {
  border-radius: var(--radius);
  box-shadow: none;
}
.toolbar {
  background: var(--color-surface-alt);
}
.thumb.active {
  background: var(--color-brand-light);
  border-color: var(--color-brand);
}
.stage {
  background: var(--color-surface-sunken);
}
.support a {
  color: var(--blue);
}
.backlink {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  margin-top: 17px;
}
.backlink:hover {
  text-decoration: underline;
}
.overview-footer {
  margin-top: 0;
}
@media (max-width: 950px) {
  .top {
    height: auto;
    min-height: 74px;
    flex-wrap: wrap;
    padding: 14px 20px 0;
    gap: 8px;
  }
  .top nav {
    height: 48px;
    overflow: auto;
    gap: 20px;
    max-width: 100%;
    width: 100%;
    font-size: 13px;
  }
  .top .contact-link {
    display: none;
  }
  .brand small {
    display: none;
  }
  .resources {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 18px;
  }
  .doc-card {
    grid-template-columns: 160px 1fr;
  }
  .doc-info {
    padding: 20px;
  }
}
@media (max-width: 680px) {
  .wrap,
  .shell {
    padding-left: 16px;
    padding-right: 16px;
  }
  .banner {
    min-height: 220px;
  }
  .banner .wrap {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .section-heading {
    display: block;
    padding: 25px 0 18px;
  }
  .search {
    margin-top: 15px;
    min-width: 0;
  }
  .resources {
    display: block;
    padding-bottom: 32px;
  }
  .categories {
    display: flex;
    overflow: auto;
    margin-bottom: 20px;
  }
  .categories h3 {
    display: none;
  }
  .category {
    width: auto;
    white-space: nowrap;
    gap: 10px;
    border-bottom: 0;
    padding: 12px 14px;
  }
  .category.selected {
    border-left: 0;
    border-bottom: 3px solid var(--blue);
    padding-left: 14px;
  }
  .doc-card {
    grid-template-columns: 112px 1fr;
  }
  .cover-area {
    padding: 10px;
  }
  .doc-info {
    padding: 15px;
  }
  .doc-info h3 {
    font-size: 19px;
  }
  .doc-info p {
    font-size: 13px;
  }
  .meta {
    gap: 7px;
  }
  .actions {
    gap: 7px;
  }
  .action {
    padding: 9px 12px;
    font-size: 13px;
  }
  .helpband .wrap {
    display: block;
  }
  .helpband .action {
    margin-top: 15px;
  }
  .shell h1 {
    font-size: 28px;
  }
  .top .brand img {
    width: 125px;
  }
}
