/* VEKTOR — Technical data sheet. Blueprint / spec-table layout (v3 rebuild) */

@font-face {
  font-family: "Technor";
  src: url("../assets/fonts/Technor-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Supreme";
  src: url("../assets/fonts/Supreme-Variable.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --void: #0e1013;
  --panel: #14171b;
  --panel-2: #191d22;
  --ink: #e6e8ea;
  --ink-2: #9aa2ab;
  --ink-3: #626b75;
  --orange: #ff5a1f;
  --grid: rgba(154, 162, 171, 0.09);
  --line: rgba(154, 162, 171, 0.22);
  --line-hard: rgba(154, 162, 171, 0.42);
  --display: "Technor", "Arial Black", sans-serif;
  --body: "Supreme", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--void);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--orange); color: #0e1013; }

.frame {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(12px, 2.4vw, 26px) 0;
}

/* 图纸外框 */
.drawing {
  border: 1px solid var(--line);
  background: rgba(14, 16, 19, 0.72);
  margin: clamp(12px, 2vw, 22px) 0;
}

.mono {
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.mono.hot { color: var(--orange); }

/* ---------- Title block (CAD 图框标题栏) ---------- */
.titleblock {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.tb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px clamp(14px, 2vw, 22px);
  border-right: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.tb-brand i { font-style: normal; color: var(--orange); }

.tb-nav {
  display: flex;
  align-items: stretch;
}
.tb-nav a {
  display: flex;
  align-items: center;
  padding: 0 clamp(12px, 1.8vw, 22px);
  border-right: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.18s ease, background 0.18s ease;
}
.tb-nav a:hover { color: var(--void); background: var(--orange); }

.tb-meta {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  padding: 0 clamp(14px, 2vw, 20px);
  flex-wrap: wrap;
}

/* ---------- Sheet head ---------- */
.sheet-head {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  border-bottom: 1px solid var(--line);
}

.sh-visual {
  position: relative;
  border-right: 1px solid var(--line);
  overflow: hidden;
  min-height: clamp(300px, 44vw, 520px);
}
.sh-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.55) contrast(1.14) brightness(0.72);
}
.sh-visual::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 16, 19, 0.86) 0%, rgba(14, 16, 19, 0.18) 55%, rgba(14, 16, 19, 0.6) 100%);
}
.sh-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(16px, 2.4vw, 28px);
}
.sh-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sh-title b { color: var(--orange); font-weight: 800; }

/* 十字准星标注 */
.crosshair {
  position: absolute;
  z-index: 2;
  width: 78px; height: 78px;
  pointer-events: none;
}
.crosshair::before, .crosshair::after {
  content: "";
  position: absolute;
  background: var(--orange);
  opacity: 0.75;
}
.crosshair::before { left: 50%; top: 0; width: 1px; height: 100%; }
.crosshair::after { top: 50%; left: 0; height: 1px; width: 100%; }
.crosshair span {
  position: absolute;
  left: calc(100% + 6px);
  top: calc(50% - 8px);
  white-space: nowrap;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.ch-1 { top: 22%; left: 58%; }
.ch-2 { top: 62%; left: 40%; }

.sh-spec { display: flex; flex-direction: column; }
.spec-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px clamp(14px, 2vw, 20px);
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.spec-row dd {
  font-size: 14.5px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.spec-row dd b { color: var(--orange); font-weight: 600; }

.sh-actions {
  display: flex;
  gap: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.btn {
  flex: 1;
  text-align: center;
  padding: 16px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-solid { background: var(--orange); color: #0e1013; }
.btn-solid:hover { background: #ff7440; }
.btn-ghost { border-left: 1px solid var(--line); color: var(--ink-2); }
.btn-ghost:hover { background: var(--panel-2); color: var(--ink); }

/* ---------- Telemetry ticker ---------- */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 9px 0;
}
.ticker-track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: slide 34s linear infinite;
}
.ticker-track span {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ticker-track span b { color: var(--ink); font-weight: 600; }
.ticker-track span i { color: var(--orange); font-style: normal; }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section head ---------- */
.band {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px clamp(14px, 2vw, 20px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.band h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---------- Catalog: index + detail ---------- */
.catalog {
  display: grid;
  grid-template-columns: 268px 1fr;
  border-bottom: 1px solid var(--line);
}

.cat-index { border-right: 1px solid var(--line); }
.cat-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
  width: 100%;
  text-align: left;
  padding: 14px clamp(12px, 1.6vw, 18px);
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--body);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.cat-item:hover { background: var(--panel); color: var(--ink); }
.cat-item .ci-code {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.cat-item .ci-name {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.cat-item[aria-selected="true"] {
  background: var(--panel-2);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--orange);
}
.cat-item[aria-selected="true"] .ci-code { color: var(--orange); }

.cat-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.cat-media {
  position: relative;
  border-right: 1px solid var(--line);
  min-height: 330px;
  background: var(--panel);
}
.cat-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  filter: grayscale(0.35) contrast(1.1);
}
.cat-media img.is-on { opacity: 1; transform: none; }
.cat-media .stamp {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 2;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 9px;
  background: rgba(14, 16, 19, 0.7);
}

.cat-panel { padding: clamp(16px, 2.4vw, 26px); }
.cat-panel .pane { display: none; }
.cat-panel .pane.is-on { display: block; animation: fadein 0.35s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.cat-panel h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cat-panel .lede { color: var(--ink-2); margin-bottom: 18px; font-size: 14.5px; }

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
table.spec th, table.spec td {
  border: 1px solid var(--line);
  padding: 9px 11px;
  text-align: left;
  font-size: 13px;
}
table.spec th {
  width: 44%;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--panel);
}
table.spec td { color: var(--ink); }
table.spec tr:hover td { background: rgba(255, 90, 31, 0.07); }
table.spec .price td { color: var(--orange); font-weight: 600; }

/* ---------- Test records ---------- */
.records {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.record {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.record:last-child { border-right: none; }
.rec-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.rec-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.12);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
.record:hover .rec-img img { transform: scale(1.05); filter: grayscale(0) contrast(1.16); }
.rec-no {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(14, 16, 19, 0.82);
  border: 1px solid var(--line);
  padding: 3px 7px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}
.rec-body { padding: 12px clamp(11px, 1.4vw, 15px) 14px; }
.rec-body h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.rec-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  border-bottom: 1px dotted var(--line);
  font-variant-numeric: tabular-nums;
}
.rec-line:last-child { border-bottom: none; }
.rec-line b { color: var(--ink-2); font-weight: 500; }
.pass {
  display: inline-block;
  margin-top: 9px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  padding: 3px 8px;
}

/* ---------- Facility ---------- */
.facility {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.fac-cell {
  border-right: 1px solid var(--line);
  position: relative;
  min-height: 220px;
  overflow: hidden;
}
.fac-cell:last-child { border-right: none; }
.fac-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.45) contrast(1.1) brightness(0.82);
  transition: filter 0.45s ease;
}
.fac-cell:hover img { filter: grayscale(0) contrast(1.14) brightness(0.92); }
.fac-tag {
  position: absolute;
  left: 0; bottom: 0;
  padding: 9px 12px;
  background: rgba(14, 16, 19, 0.84);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.fac-note {
  padding: clamp(18px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background: var(--panel);
}
.fac-note p { font-size: clamp(1rem, 1.6vw, 1.22rem); line-height: 1.45; }
.fac-note span { color: var(--ink-3); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Press ---------- */
.press {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  padding: clamp(22px, 3.4vw, 40px) clamp(14px, 2vw, 24px);
  border-bottom: 1px solid var(--line);
}
.press blockquote {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
}
.press cite {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 12px;
}
.press-marks { display: flex; flex-direction: column; gap: 7px; }
.press-marks span {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-left: 2px solid var(--orange);
  padding-left: 9px;
}

/* ---------- Build sheet CTA ---------- */
.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
  padding: clamp(22px, 3.4vw, 38px) clamp(14px, 2vw, 24px);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.cta h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  text-transform: uppercase;
  line-height: 1.04;
  margin-bottom: 8px;
}
.cta p { color: var(--ink-2); font-size: 14px; }
.cta a {
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 15px 26px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.cta a:hover { background: var(--orange); color: var(--void); }

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px clamp(14px, 2vw, 24px);
}
.colophon nav { display: flex; gap: 18px; flex-wrap: wrap; }
.colophon a:hover { color: var(--orange); }

/* ---------- Entrance ---------- */
.rise { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.rise.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sheet-head { grid-template-columns: 1fr; }
  .sh-visual { border-right: none; border-bottom: 1px solid var(--line); }
  .catalog { grid-template-columns: 1fr; }
  .cat-index { display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .cat-item { border-bottom: none; border-right: 1px solid var(--line); white-space: nowrap; }
  .records { grid-template-columns: repeat(2, 1fr); }
  .record:nth-child(2) { border-right: none; }
  .facility { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .titleblock { grid-template-columns: 1fr; }
  .tb-brand { border-right: none; border-bottom: 1px solid var(--line); }
  .tb-nav { overflow-x: auto; border-bottom: 1px solid var(--line); }
  .tb-meta { padding: 10px clamp(14px, 2vw, 20px); }
  .cat-detail { grid-template-columns: 1fr; }
  .cat-media { border-right: none; border-bottom: 1px solid var(--line); min-height: 240px; }
  .records { grid-template-columns: 1fr; }
  .record { border-right: none; border-bottom: 1px solid var(--line); }
  .facility { grid-template-columns: 1fr; }
  .fac-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .press, .cta { grid-template-columns: 1fr; }
  .press-marks { flex-direction: row; flex-wrap: wrap; }
}
