:root {
  color-scheme: light;
  --ink: #20262b;
  --muted: #54616b;
  --line: #e1e6ea;
  --page: #f3f5f7;
  --rail: #383b3e;
  --accent: #075881;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); font-size: 15px; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #1696c5; outline-offset: 3px; }
.skip-link { position: absolute; top: .75rem; left: 1rem; z-index: 3; padding: .6rem 1rem; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.topbar {
  min-height: 58px; display: flex; align-items: center; gap: 16px;
  padding: 10px 26px; background: #2e3134; color: #fbfcfd;
}
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; font-size: 17px; font-weight: 650; }
.brand span { color: #cfd6db; font-size: 10px; letter-spacing: .13em; font-weight: 500; }
.demo-label { white-space: nowrap; margin-left: auto; padding: 4px 9px; border: 1px solid #747c83; border-radius: 4px; font-size: 12px; }
#menu-toggle { display: none; }
.shell { min-height: calc(100vh - 58px); display: grid; grid-template-columns: 208px minmax(0, 1fr); }
.sidebar { background: var(--rail); color: #f3f5f6; padding: 16px 0; }
.sidebar a { display: flex; align-items: center; gap: 10px; min-height: 43px; padding: 7px 17px; border-left: 3px solid transparent; text-decoration: none; }
.sidebar a:hover { background: #484d51; }
.sidebar a[aria-current="page"] { background: #4e565d; border-color: #81c9e4; font-weight: 650; }
.sidebar .child { padding-left: 31px; font-size: 14px; }
.nav-mark { width: 17px; text-align: center; color: #cad8df; }
main { min-width: 0; }
.page { max-width: 1360px; margin: 0 auto; padding: 26px 32px 44px; }
.breadcrumb { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0 0 18px; font-size: clamp(24px, 3vw, 33px); font-weight: 650; }
.panel { padding: 22px; background: white; border: 1px solid var(--line); }
.announcement { display: flex; align-items: baseline; gap: 13px; margin-bottom: 18px; padding: 12px 15px; color: #17465b; background: #e0f1f8; border-left: 4px solid #3188ad; }
.announcement strong { white-space: nowrap; }
.search { display: flex; gap: 8px; margin-bottom: 23px; }
.search input { flex: 1; min-width: 0; height: 42px; border: 1px solid #b9c4cb; border-radius: 4px; padding: 0 11px; color: var(--ink); font: inherit; }
.search button, #menu-toggle { border: 1px solid transparent; border-radius: 4px; padding: 0 16px; color: white; background: var(--accent); font: inherit; cursor: pointer; }
.search button:hover { background: #034465; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 13px; }
.section-head h2 { margin: 0; font-size: 18px; }
.section-head a, .detail-back { color: var(--accent); text-underline-offset: 3px; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.catalog-card { display: block; overflow: hidden; border: 1px solid #dce3e8; border-radius: 5px; text-decoration: none; background: #fff; }
.catalog-card:hover { border-color: #5696b6; background: #fbfdfe; }
.catalog-card h3 { margin: 0 0 5px; font-size: 16px; }
.catalog-card p { margin: 0; color: var(--muted); font-size: 13px; }
.card-copy { padding: 11px 13px 13px; }
.cover { aspect-ratio: 16 / 8; display: grid; place-items: center; overflow: hidden; background: #e1e8ed; }
.photo { background-image: url("./assets/industrial-gallery.jpg"); background-repeat: no-repeat; background-size: 300% auto; }
.photo-product { background-position: left center; }
.photo-production, .photo-video { background-position: center center; }
.photo-equipment { background-position: right center; }
.cover-document, .cover-public { color: #344d5d; background: #e7eef2; }
.cover-public { background: #eef0ea; color: #4b5e53; }
.cover-icon { font-size: 38px; line-height: 1; }
.list-intro { margin: -8px 0 17px; color: var(--muted); }
.empty { padding: 28px 14px; text-align: center; border: 1px dashed #bac6cf; color: var(--muted); }
.empty a { color: var(--accent); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 25px; }
.detail-layout .cover { aspect-ratio: 4 / 3; border-radius: 4px; }
.detail-layout h2 { margin: 0 0 12px; font-size: 19px; }
.detail-layout p { margin: 0 0 19px; color: #3d4a54; line-height: 1.65; }
.metadata { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.metadata dt { color: var(--muted); }
.metadata dd { margin: 0; }
.detail-back { display: inline-block; margin-top: 20px; }
footer { margin-top: 19px; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .page { padding: 22px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .topbar { gap: 10px; padding-inline: 13px; }
  #menu-toggle { display: block; flex: 0 0 auto; padding: 6px 9px; background: #43494e; font-size: 14px; }
  .brand { font-size: 15px; }
  .brand span { display: none; }
  .shell { display: block; }
  .sidebar { display: none; padding-block: 5px; }
  .sidebar.open { display: block; }
  .page { padding: 17px 12px 28px; }
  .panel { padding: 12px; }
  .grid { gap: 10px; }
  .announcement { gap: 8px; font-size: 13px; padding: 10px; }
  .card-copy { padding: 9px; }
  .catalog-card h3 { font-size: 14px; }
}
