:root {
  color-scheme: dark;
  --bg: #05060a;
  --panel: rgba(13, 18, 25, 0.78);
  --line: rgba(230, 244, 255, 0.16);
  --text: #f7fbff;
  --muted: #aab7c6;
  --cyan: #78f3ff;
  --lime: #b6ff5f;
  --coral: #ff8f70;
  --mx: 50%;
  --my: 50%;
  --grid-x: 0px;
  --grid-y: 0px;
  --panel-left-x: 0px;
  --panel-left-y: 0px;
  --panel-right-x: 0px;
  --panel-right-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  animation: page-fade-in 0.45s ease both;
  background:
    linear-gradient(135deg, rgba(120, 243, 255, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(182, 255, 95, 0.07), transparent 30%),
    #05060a;
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid rgba(182, 255, 95, 0.82);
  outline-offset: 4px;
}

.site-nav {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 40px;
  border-bottom: 1px solid rgba(230, 244, 255, 0.12);
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 20px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--cyan);
}

.home-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 104px 32px 48px;
  isolation: isolate;
  perspective: 1200px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(1.18) contrast(1.08) brightness(1.16);
  transform: scale(1.04);
}

.hero-depth {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-depth::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(5, 6, 10, 0.92), rgba(5, 6, 10, 0.36) 44%, rgba(5, 6, 10, 0.96)),
    radial-gradient(circle at var(--mx) var(--my), rgba(120, 243, 255, 0.18), transparent 28%);
  mix-blend-mode: normal;
}

.hero-depth::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247, 251, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 251, 255, 0.048) 1px, transparent 1px),
    linear-gradient(110deg, transparent 0 44%, rgba(120, 243, 255, 0.12) 45%, transparent 46% 100%);
  background-size: 84px 84px, 84px 84px, 360px 100%;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 76%, transparent);
  opacity: 0.42;
  transform: translate3d(var(--grid-x), var(--grid-y), 0);
}

.depth-panel {
  position: absolute;
  border: 1px solid rgba(230, 244, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(120, 243, 255, 0.13), transparent 48%),
    rgba(255, 255, 255, 0.025);
  clip-path: polygon(0 0, 86% 0, 100% 18%, 100% 100%, 14% 100%, 0 82%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 32px 110px rgba(0, 0, 0, 0.34);
}

.panel-left {
  left: 6vw;
  bottom: 9vh;
  width: 27vw;
  height: 23vh;
  opacity: 0.25;
  transform: translate3d(var(--panel-left-x), var(--panel-left-y), 0) rotate(-5deg);
}

.panel-right {
  right: 5vw;
  top: 18vh;
  width: 28vw;
  height: 34vh;
  opacity: 0.32;
  transform: translate3d(var(--panel-right-x), var(--panel-right-y), 0) rotate(8deg);
}

.signal-lattice {
  position: absolute;
  inset: 12vh 7vw;
  border: 1px solid rgba(120, 243, 255, 0.16);
  clip-path: polygon(8% 0, 100% 0, 100% 72%, 88% 100%, 0 100%, 0 18%);
  opacity: 0.34;
}

.signal-lattice::before,
.signal-lattice::after {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(182, 255, 95, 0.7), transparent);
}

.signal-lattice::before {
  left: 6%;
  right: 12%;
  top: 18%;
  height: 1px;
}

.signal-lattice::after {
  left: 22%;
  right: 6%;
  bottom: 24%;
  height: 1px;
}

.scan-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 22vh;
  background: linear-gradient(180deg, transparent, rgba(120, 243, 255, 0.11), transparent);
  opacity: 0.58;
  transform: translateY(-50%);
}

.home-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, 0.84), rgba(5, 6, 10, 0.18) 45%, rgba(5, 6, 10, 0.88)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
  opacity: 0.86;
}

.home-hero {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 96px;
  line-height: 1;
  color: #f7fbff;
  text-shadow: 0 0 28px rgba(120, 243, 255, 0.18), 0 22px 80px rgba(0, 0, 0, 0.62);
}

.home-hero h1 {
  position: relative;
}

.h1-ghost {
  position: absolute;
  top: 0;
  left: 0;
  color: rgba(120, 243, 255, 0.18);
  text-shadow: none;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: -1;
}

.hero-copy {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(247, 251, 255, 0.86);
  font-size: 21px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(120, 243, 255, 0.28), transparent);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.button:hover {
  border-color: rgba(0, 255, 0, 0.42);
  box-shadow: 0 0 18px rgba(0, 255, 0, 0.3);
}

.button:hover::after {
  transform: translateX(120%);
}

.button.primary {
  background: var(--text);
  color: #05060a;
}

.button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.home-readout {
  position: absolute;
  z-index: 2;
  right: 42px;
  bottom: 36px;
  display: grid;
  gap: 10px;
  color: rgba(247, 251, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.home-readout span {
  padding-left: 36px;
  border-top: 1px solid rgba(120, 243, 255, 0.28);
  padding-top: 8px;
}

.showcase-page {
  min-height: 100vh;
  background: #05060a;
}

.showcase-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  padding: 120px 40px 34px;
}

.showcase-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #05060a;
}

.showcase-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, 0.92), rgba(5, 6, 10, 0.52) 42%, rgba(5, 6, 10, 0.96)),
    radial-gradient(circle at 70% 50%, rgba(120, 243, 255, 0.14), transparent 34%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 5px);
}

.showcase-bg-image {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  opacity: 0;
  filter: blur(28px) saturate(1.22) brightness(0.72);
  transform: scale(1.12);
}

.showcase-bg-image.is-active {
  opacity: 1;
}

.showcase-copy {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
}

.showcase-copy-left {
  padding-right: 30px;
}

.showcase-copy-divider {
  align-self: stretch;
  background: #2a2a2a;
}

.showcase-copy-right {
  padding-left: 30px;
  text-align: right;
}

.copy-label {
  margin: 0;
  font-size: 24px;
  font-weight: 300;
  color: #909090;
  letter-spacing: 2px;
  line-height: 1.4;
  text-transform: uppercase;
}

.copy-counter {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 40px;
}

.copy-counter-current {
  font-size: 20px;
  font-weight: 900;
  color: #00ff00;
}

.copy-counter-total {
  font-size: 20px;
  font-weight: 400;
  color: #b0b0b0;
}

.showcase-copy-right h1 {
  margin: 0;
  font-size: 100px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.showcase-copy-right p {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 400;
  color: #b0b0b0;
  line-height: 1.5;
}

.showcase-stage {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 34px;
  z-index: 2;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 22px;
  align-items: end;
}

.showcase-stage.is-dragging {
  cursor: grabbing;
}

.showcase-nav-button {
  position: absolute;
  top: 45%;
  z-index: 8;
  width: 48px;
  height: 72px;
  border: 1px solid rgba(230, 244, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 6, 10, 0.48);
  color: rgba(247, 251, 255, 0.86);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.showcase-nav-button:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 243, 255, 0.48);
  background: rgba(120, 243, 255, 0.12);
}

.showcase-nav-button.prev {
  left: max(12px, calc(50% - 488px));
}

.showcase-nav-button.next {
  right: max(12px, calc(50% - 488px));
}

.showcase-counter {
  display: grid;
  gap: 4px;
  color: rgba(247, 251, 255, 0.6);
  font-size: 13px;
  font-weight: 800;
}

.showcase-counter .current-index {
  color: var(--lime);
  font-size: 36px;
  line-height: 1;
}

.showcase-track {
  position: relative;
  height: min(54vh, 560px);
  min-height: 420px;
  perspective: 1400px;
  cursor: grab;
  touch-action: pan-y;
}

.showcase-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(58vw, 780px);
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(230, 244, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(120, 243, 255, 0.08), transparent 36%),
    rgba(7, 10, 14, 0.86);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.48);
  transform-style: preserve-3d;
}

.showcase-card::before,
.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.showcase-card::before {
  background:
    linear-gradient(180deg, transparent, rgba(5, 6, 10, 0.82)),
    radial-gradient(circle at 26% 16%, rgba(120, 243, 255, 0.18), transparent 28%);
}

.showcase-card::after {
  border: 1px solid rgba(120, 243, 255, 0.18);
  opacity: 0;
  transition: opacity 260ms ease;
}

.showcase-card.is-active::after {
  opacity: 1;
}

.showcase-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: saturate(1.06) contrast(1.04);
}

.showcase-card-meta {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
}

.showcase-card-meta span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.showcase-card-meta h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.showcase-card-meta p {
  max-width: 560px;
  margin: 12px 0 0;
  color: rgba(247, 251, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.card-prompt {
  margin: 8px 0 0;
  color: rgba(247, 251, 255, 0.38);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.prompt-expand {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  max-height: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid transparent;
  transition: max-height 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

@media (hover: hover) {
  .showcase-card:hover {
    border-color: rgba(0, 255, 0, 0.35);
    transition: border-color 0.25s ease;
  }

  .showcase-card:hover .prompt-expand {
    max-height: 260px;
    border-color: #333;
  }
}

.showcase-card.is-expanded .prompt-expand {
  max-height: 260px;
  border-color: #333;
}

.prompt-expand-inner {
  padding: 12px 28px 16px;
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(247, 251, 255, 0.16) transparent;
}

.prompt-expand-inner::-webkit-scrollbar {
  width: 3px;
}

.prompt-expand-inner::-webkit-scrollbar-track {
  background: transparent;
}

.prompt-expand-inner::-webkit-scrollbar-thumb {
  background: rgba(247, 251, 255, 0.16);
  border-radius: 2px;
}

.prompt-expand-inner p {
  margin: 0;
  max-width: none;
  font-size: 12px;
  color: #999;
  line-height: 1.6;
  text-align: left;
}

.showcase-controls {
  grid-column: 2;
  display: grid;
  gap: 16px;
}

.progress-rail {
  height: 2px;
  overflow: hidden;
  background: rgba(230, 244, 255, 0.12);
}

.progress-fill {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: 0 0 24px rgba(120, 243, 255, 0.58);
}

.thumb-track {
  display: grid;
  grid-template-columns: repeat(13, minmax(42px, 1fr));
  gap: 8px;
}

.thumb-button {
  position: relative;
  height: 54px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(230, 244, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.thumb-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}

.thumb-button.is-active {
  transform: scale(1.08);
  z-index: 1;
}

.thumb-button.is-active::after {
  border-color: rgba(0, 255, 0, 0.88);
  background: rgba(0, 255, 0, 0.08);
}

.thumb-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.62;
  transition: opacity 200ms ease, transform 300ms ease;
}

.thumb-button:hover img,
.thumb-button.is-active img {
  opacity: 1;
  transform: scale(1.08);
}

.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 44px;
  align-items: end;
  padding: 154px 40px 58px;
  max-width: 1440px;
  margin: 0 auto;
}

.portfolio-hero > * {
  min-width: 0;
}

.portfolio-hero h1 {
  font-size: 76px;
}

.portfolio-hero p:not(.eyebrow) {
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px 80px;
  perspective: 1200px;
}

.project-card {
  position: relative;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  transform-origin: center bottom;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at var(--card-x, 50%) var(--card-y, 50%), rgba(120, 243, 255, 0.28), transparent 22%),
    linear-gradient(130deg, transparent 0 38%, rgba(255, 255, 255, 0.18) 45%, transparent 54% 100%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.project-card.featured,
.project-card.wide {
  grid-column: span 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  transition: transform 700ms ease, filter 700ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.02), rgba(5, 6, 10, 0.78)),
    linear-gradient(135deg, rgba(120, 243, 255, 0.18), transparent 46%);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

.project-meta {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
}

.project-meta span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-meta h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.project-meta p {
  max-width: 520px;
  margin: 10px 0 0;
  color: rgba(247, 251, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .site-nav {
    padding: 0 22px;
  }

  h1 {
    font-size: 64px;
  }

  .portfolio-hero {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100vw;
    padding: 132px 22px 42px;
  }

  .portfolio-hero p:not(.eyebrow) {
    width: calc(100vw - 44px);
  }

  .portfolio-hero h1 {
    font-size: 58px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    padding: 0 22px 52px;
  }

  .project-card,
  .project-card.featured,
  .project-card.wide {
    grid-column: auto;
  }

  .showcase-shell {
    min-height: auto;
    padding: 120px 22px 40px;
  }

  .showcase-copy {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .showcase-copy-divider {
    display: none;
  }

  .showcase-copy-left {
    padding-right: 0;
  }

  .showcase-copy-right {
    padding-left: 0;
    text-align: left;
  }

  .showcase-copy-right h1 {
    font-size: clamp(48px, 10vw, 100px);
  }

  .showcase-stage {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .showcase-nav-button {
    top: 48%;
    width: 42px;
    height: 62px;
    font-size: 34px;
  }

  .showcase-nav-button.prev {
    left: -8px;
  }

  .showcase-nav-button.next {
    right: -8px;
  }

  .showcase-counter {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .showcase-track {
    height: 58vh;
    min-height: 480px;
  }

  .showcase-card {
    width: min(82vw, 640px);
  }

  .showcase-controls {
    grid-column: auto;
  }

  .thumb-track {
    grid-template-columns: repeat(7, minmax(38px, 1fr));
  }
}

@media (max-width: 620px) {
  .nav-links {
    gap: 14px;
  }

  .home-shell {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-video {
    opacity: 0.52;
  }

  .panel-left,
  .panel-right,
  .home-readout {
    display: none;
  }

  h1 {
    font-size: 48px;
  }

  .hero-copy,
  .portfolio-hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .project-card {
    min-height: 380px;
  }

  .showcase-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .showcase-track {
    min-height: 390px;
  }

  .showcase-card {
    width: 84vw;
  }

  .showcase-card-meta {
    padding: 20px;
  }

  .showcase-card-meta h2 {
    font-size: 24px;
  }

  .thumb-track {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
  }
}

/* ─── Loading Screen ───────────────────────────── */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05060a;
  transition: opacity 0.6s ease;
}

.page-loader.is-done {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  font-size: 72px;
  font-weight: 800;
  color: #f7fbff;
  letter-spacing: 0.04em;
  text-shadow: 0 0 40px rgba(120, 243, 255, 0.45), 0 0 100px rgba(120, 243, 255, 0.15);
  animation: loader-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes loader-pulse {
  from { opacity: 0.55; }
  to   { opacity: 1; }
}

/* ─── 查看大图 Button ──────────────────────────── */

.card-view-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid rgba(0, 255, 0, 0.32);
  border-radius: 4px;
  background: rgba(0, 255, 0, 0.06);
  color: rgba(0, 255, 0, 0.75);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.card-view-btn::before {
  content: "⤢";
  font-size: 12px;
}

.card-view-btn:hover {
  background: rgba(0, 255, 0, 0.13);
  border-color: rgba(0, 255, 0, 0.65);
  color: #00ff00;
}

/* ─── Fullscreen Viewer ────────────────────────── */

.fullscreen-viewer {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.fullscreen-viewer.is-open {
  opacity: 1;
  pointer-events: all;
}

.fullscreen-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(120, 243, 255, 0.12);
}

.fullscreen-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(230, 244, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 251, 255, 0.78);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}

.fullscreen-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 255, 0, 0.45);
}
