/* claude-z-collections r1 · categories page (theme "全新風格claude專用2" only)
   A system map (battery → controller → motor, cooling on the controller) and a large hover index.
   Scoped under .zk; nothing leaks to other pages. */

.zk {
  --zk-ink: #050507;
  --zk-ink-2: #0e0e15;
  --zk-fog: #e3e3ec;
  --zk-volt: #dfff3a;
  --zk-blue: #2f3dff;
  --zk-line: rgba(227, 227, 236, .14);
  --zk-line-2: rgba(227, 227, 236, .3);
  --zk-dim: rgba(227, 227, 236, .64);
  --zk-display: "Microostep Anton", "Anton", Impact, "Arial Narrow", sans-serif;
  --zk-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --zk-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --zk-g: clamp(16px, 3.6vw, 56px);
  --zk-ease: cubic-bezier(.2, .8, .2, 1);
  position: relative;
  background: var(--zk-ink);
  color: var(--zk-fog);
  font-family: var(--zk-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:where(.zk) *, :where(.zk) *::before, :where(.zk) *::after { box-sizing: border-box; }
:where(.zk) img { display: block; max-width: 100%; height: auto; }
.zk a { color: inherit; text-decoration: none; }
.zk :focus-visible { outline: 2px solid var(--zk-volt); outline-offset: 3px; border-radius: 6px; }
.zk-d { font-family: var(--zk-display); font-weight: 400; text-transform: uppercase; line-height: .9; letter-spacing: -.005em; }
.zk[data-lang="vi"] .zk-d { line-height: 1.14; }
.zk-d b { font-weight: 400; color: var(--zk-volt); }
.zk-m { font-family: var(--zk-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; }
.zk-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.zk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-family: var(--zk-mono); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .35s var(--zk-ease), background-color .25s ease, color .25s ease, box-shadow .35s var(--zk-ease);
}
.zk-btn:hover { transform: translateY(-2px); }
.zk .zk-btn--volt { background: var(--zk-volt); color: var(--zk-ink); }
.zk .zk-btn--volt:hover { box-shadow: 0 10px 30px -10px rgba(223, 255, 58, .55); }
.zk .zk-btn--line { box-shadow: inset 0 0 0 1px rgba(227, 227, 236, .5); }
.zk .zk-btn--line:hover { box-shadow: inset 0 0 0 1px var(--zk-fog); background: rgba(227, 227, 236, .06); }
.zk .zk-btn--ink { background: var(--zk-ink); color: var(--zk-fog); }
.zk .zk-btn--ink-line { box-shadow: inset 0 0 0 1.5px var(--zk-ink); color: var(--zk-ink); }

/* words rise in (split by the script; plain text without it) */
.zk-w { display: inline-block; white-space: nowrap; }
.zk.is-js [data-zk-words] .zk-w { opacity: 0; transform: perspective(600px) translateY(.35em) rotateX(-55deg); transform-origin: 50% 100%; transition: opacity .7s var(--zk-ease), transform .9s var(--zk-ease); transition-delay: calc(var(--i, 0) * 60ms); }
.zk.is-ready [data-zk-words] .zk-w { opacity: 1; transform: none; }

/* ======================================================================== */
/* HERO · WebGL poster, one scene per category. The category buttons along the  */
/* bottom switch scene with a full-frame transition (no pinning, no scroll      */
/* jacking). Without WebGL the gradient is the poster and the buttons only      */
/* change the label and link.                                                   */
/* ======================================================================== */
.zk-hero { position: relative; }
.zk-hero__clip {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; justify-content: safe flex-end;
  height: calc(100vh - var(--zk-header, 68px)); height: calc(100svh - var(--zk-header, 68px)); min-height: 600px; max-height: 1000px;
  padding: calc(clamp(22px, 3.6vw, 48px) + 30px) var(--zk-g) 0;
  background: radial-gradient(50% 55% at 66% 46%, rgba(47, 61, 255, .5), transparent 70%), var(--zk-ink);
}
.zk-hero__gl { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; }
.zk-hero.is-gl .zk-hero__gl { opacity: 1; }
.zk-hero__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 5, 7, .8) 0%, rgba(5, 5, 7, .42) 38%, rgba(5, 5, 7, 0) 64%),
    linear-gradient(0deg, rgba(5, 5, 7, .78) 0%, rgba(5, 5, 7, 0) 40%),
    linear-gradient(180deg, rgba(5, 5, 7, .5) 0%, rgba(5, 5, 7, 0) 22%);
}
.zk-crumb { position: absolute; z-index: 2; left: var(--zk-g); top: clamp(22px, 3.6vw, 48px); display: flex; flex-wrap: wrap; gap: 8px; margin: 0; color: var(--zk-dim); font-size: 11px; }
.zk .zk-crumb a:hover { color: var(--zk-volt); }
.zk-crumb [aria-current] { color: var(--zk-fog); }
.zk-hero__body { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px; }
.zk-hero__copy { position: relative; max-width: 780px; }
.zk-eyebrow { margin: 0; color: var(--zk-volt); }
.zk-hero__title { margin: 14px 0 0; max-width: 12ch; font-size: clamp(44px, min(8.2vw, 13vh), 150px); text-wrap: balance; text-shadow: 0 2px 40px rgba(5, 5, 7, .4); }
.zk[data-lang="vi"] .zk-hero__title { font-size: clamp(40px, min(6.8vw, 10.5vh), 124px); line-height: 1.1; }
.zk-hero__lead { margin: 20px 0 26px; max-width: 44ch; color: rgba(227, 227, 236, .8); font-size: clamp(15px, 1.2vw, 18px); }
/* the category on screen: number, name and a link to it */
.zk-hero__now { display: grid; justify-items: end; gap: 6px; max-width: min(36vw, 520px); text-align: right; }
.zk .zk-hero__now, .zk .zk-hero__now:hover { color: var(--zk-fog); }
.zk-hero__now-no { color: var(--zk-volt); }
.zk-hero__now-title { font-size: clamp(30px, 3.6vw, 60px); transition: opacity .25s ease, translate .35s var(--zk-ease); }
.zk-hero__now.is-swap .zk-hero__now-title, .zk-hero__now.is-swap .zk-hero__now-no { opacity: 0; translate: 0 10px; }
.zk-hero__now-no { transition: opacity .25s ease, translate .35s var(--zk-ease); }
.zk-hero__now-go { padding: 8px 14px; border-radius: 999px; background: rgba(5, 5, 7, .55); box-shadow: inset 0 0 0 1px rgba(227, 227, 236, .35); font-size: 11px; transition: background-color .25s ease, color .25s ease; }
.zk-hero__now:hover .zk-hero__now-go, .zk-hero__now:focus-visible .zk-hero__now-go { background: var(--zk-volt); color: var(--zk-ink); box-shadow: none; }
/* category buttons: a strip of four along the bottom edge; the active one's line fills */
.zk-hero__tabs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(22px, 3.6vh, 40px) calc(var(--zk-g) * -1) 0; padding: 0 var(--zk-g); border-top: 1px solid rgba(227, 227, 236, .14); background: linear-gradient(0deg, rgba(5, 5, 7, .55), rgba(5, 5, 7, 0)); }
.zk-tab {
  position: relative; display: flex; align-items: baseline; gap: 12px; min-width: 0;
  margin: 0; padding: 20px 16px 24px 0; border: 0; background: none; color: var(--zk-dim);
  font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color .3s ease;
}
.zk-tab::before { content: ""; position: absolute; left: 0; right: 16px; top: -1px; height: 2px; background: var(--zk-volt); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--zk-ease); }
.zk-tab__no { flex: none; font-size: 11px; transition: color .3s ease; }
.zk-tab__t { min-width: 0; font-size: clamp(14px, 1.15vw, 17px); font-weight: 600; line-height: 1.25; }
.zk-tab:hover, .zk-tab:focus-visible { color: var(--zk-fog); }
.zk-tab:focus-visible { outline: none; }
.zk-tab:focus-visible .zk-tab__t { text-decoration: underline; text-decoration-color: var(--zk-volt); text-underline-offset: 4px; }
.zk-tab[aria-current="true"] { color: var(--zk-fog); }
.zk-tab[aria-current="true"] .zk-tab__no { color: var(--zk-volt); }
.zk-tab[aria-current="true"]::before { transform: none; }
@media (max-width: 899px) {
  .zk-hero__clip { justify-content: flex-start; height: auto; min-height: calc(100svh - var(--zk-header, 64px)); max-height: none; padding-top: calc(clamp(22px, 3.6vw, 48px) + 40px); }
  .zk-hero__body { display: contents; }
  .zk-hero__copy { z-index: 2; max-width: none; }
  .zk-hero__now { position: relative; z-index: 2; margin-top: auto; padding-top: 40px; justify-items: start; max-width: none; text-align: left; }
  .zk-hero__shade { background: linear-gradient(180deg, rgba(5, 5, 7, .85) 0%, rgba(5, 5, 7, .3) 52%, rgba(5, 5, 7, .85) 100%); }
  .zk-hero__lead { margin: 14px 0 18px; }
  .zk-hero__tabs { margin-top: 18px; }
  .zk-tab { flex-direction: column; gap: 6px; padding: 14px 8px 18px 0; }
  .zk-tab::before { right: 8px; }
  .zk-tab__t { font-size: 12.5px; }
}
@media (max-width: 899px) and (max-height: 760px) { .zk-hero__lead { display: none; } }

/* ======================================================================== */
/* INDEX                                                                      */
/* ======================================================================== */
.zk-list { position: relative; margin: 0; padding: 0 var(--zk-g); list-style: none; counter-reset: zk; }
.zk-row { position: relative; border-top: 1px solid var(--zk-line); }
.zk-row:last-child { border-bottom: 1px solid var(--zk-line); }
.zk.is-js .zk-row[data-zk-reveal] { opacity: 0; translate: 0 28px; transition: opacity .7s ease calc(var(--i, 0) * 90ms), translate .9s var(--zk-ease) calc(var(--i, 0) * 90ms); }
.zk.is-js .zk-row[data-zk-reveal].is-in { opacity: 1; translate: none; }
.zk-row__link {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-areas: "no main go" "no copy copy" "no count vis";
  gap: 8px 14px; align-items: start;
  padding: 24px 0 26px;
  color: var(--zk-fog);
}
/* the plate that slides in behind the hovered row */
.zk-row__link::before {
  content: ""; position: absolute; inset: 0 calc(var(--zk-g) * -1); z-index: -1;
  background: linear-gradient(90deg, rgba(47, 61, 255, .2), rgba(14, 14, 21, .9) 60%);
  clip-path: inset(0 100% 0 0); transition: clip-path .6s cubic-bezier(.6, 0, .3, 1);
}
.zk-row__link::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--zk-volt); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--zk-ease); }
.zk-row__no { grid-area: no; padding-top: 8px; color: var(--zk-dim); transition: color .3s ease; }
.zk-row__main { grid-area: main; display: grid; gap: 6px; min-width: 0; }
.zk-row__title { font-size: clamp(36px, 5.4vw, 96px); transition: transform .6s var(--zk-ease), color .3s ease; }
.zk-row__sub { color: var(--zk-volt); font-size: 11px; }
.zk-row__copy { grid-area: copy; max-width: 54ch; color: var(--zk-dim); font-size: 15px; }
.zk-row__count { grid-area: count; align-self: center; color: var(--zk-dim); }
.zk-row__count b { color: var(--zk-fog); font-size: 14px; }
.zk-row__go { grid-area: go; justify-self: end; display: grid; place-items: center; width: 48px; height: 48px; margin-top: 4px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--zk-line-2); transition: background-color .3s ease, color .3s ease, transform .45s var(--zk-ease), box-shadow .3s ease; }
.zk-row__vis { grid-area: vis; justify-self: end; width: 120px; }
.zk-row__vis img { width: 100%; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .6)); }
.zk-row__link:hover::before, .zk-row__link:focus-visible::before { clip-path: inset(0 0 0 0); }
.zk-row__link:hover::after, .zk-row__link:focus-visible::after { transform: scaleX(1); }
.zk .zk-row__link:hover, .zk .zk-row__link:focus-visible { color: var(--zk-fog); }
.zk-row__link:hover .zk-row__no { color: var(--zk-volt); }
.zk-row__link:hover .zk-row__title { transform: translateX(14px); }
.zk-row__link:hover .zk-row__go { background: var(--zk-volt); color: var(--zk-ink); box-shadow: none; transform: rotate(-45deg); }
@media (min-width: 960px) {
  .zk-row__link { grid-template-columns: 70px minmax(0, 1.6fr) minmax(0, 1fr) 150px 56px; grid-template-areas: "no main copy count go"; align-items: center; gap: 24px; padding: clamp(26px, 3vw, 44px) 0; }
  .zk-row__no { padding-top: 0; }
  .zk-row__count { justify-self: end; text-align: right; }
  .zk-row__vis { display: none; }
  .zk-row__go { margin-top: 0; width: 56px; height: 56px; }
}

/* more collections */
.zk-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 26px var(--zk-g) 0; }
.zk-more__k { margin: 0; color: var(--zk-dim); }
.zk-more__list { display: flex; flex-wrap: wrap; gap: 8px; }
.zk-more__a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--zk-line); transition: box-shadow .25s ease, color .25s ease; }
.zk-more__a:hover { box-shadow: inset 0 0 0 1px var(--zk-volt); color: var(--zk-volt); }
.zk-more__a sup { top: -.5em; position: relative; font-size: 10px; opacity: .7; }

/* before ordering */
.zk-guide {
  display: grid; gap: 20px;
  margin: clamp(48px, 7vw, 96px) var(--zk-g) clamp(40px, 6vw, 80px);
  padding: clamp(26px, 4vw, 56px);
  border-radius: 28px; background: var(--zk-volt); color: var(--zk-ink);
}
.zk-guide__k { margin: 0; }
.zk-guide__text { margin: 0; max-width: 52ch; font-size: clamp(18px, 1.7vw, 26px); font-weight: 500; line-height: 1.4; }
.zk.is-js .zk-guide[data-zk-reveal] { opacity: 0; translate: 0 30px; transition: opacity .8s ease, translate .9s var(--zk-ease); }
.zk.is-js .zk-guide[data-zk-reveal].is-in { opacity: 1; translate: none; }
@media (min-width: 1000px) {
  .zk-guide { grid-template-columns: 200px minmax(0, 1fr) auto; align-items: center; column-gap: 40px; }
}
@media (max-width: 639px) {
  .zk-guide { border-radius: 20px; }
  .zk-row__vis { width: 96px; }
}
@media (max-width: 380px) { .zk-btn { padding: 0 16px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .zk *, .zk *::before, .zk *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
