/* ==========================================================================
   方案四十八：科技·全息线框翻页 (Holographic Wireframe)
   Cyan wireframe cubes, scan lines, ripple background, holographic projectors
   ========================================================================== */

:root {
  --hw-bg-1: #1A1828;
  --hw-bg-2: #0F1A2E;
  --hw-cyan: #00D4FF;
  --hw-cyan-dim: rgba(0, 212, 255, 0.35);
  --hw-cyan-glow: rgba(0, 212, 255, 0.55);
  --hw-text: #C8E0F0;
  --hw-text-dim: #6B8AA8;
  --hw-panel: rgba(15, 26, 46, 0.55);
  --hw-border: rgba(0, 212, 255, 0.28);
  --hw-cube-size: 180px;
  --hw-cube-edge: 70px;
  --hw-radius: 4px;
  --hw-nav-h: 64px;
}

/* Light theme override (kept minimal since this scheme is dark-native) */
[data-theme="light"] {
  --hw-bg-1: #E6EEF5;
  --hw-bg-2: #D5E2EE;
  --hw-text: #1A2A3A;
  --hw-text-dim: #5A7088;
  --hw-cyan: #0080B0;
  --hw-cyan-dim: rgba(0, 128, 176, 0.30);
  --hw-cyan-glow: rgba(0, 128, 176, 0.45);
  --hw-panel: rgba(255, 255, 255, 0.65);
  --hw-border: rgba(0, 128, 176, 0.30);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--hw-bg-2);
  color: var(--hw-text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background: dark gradient + concentric ripple waves (holographic base) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(0, 212, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 20% 30%, rgba(80, 60, 180, 0.10) 0%, transparent 40%),
    linear-gradient(180deg, var(--hw-bg-1) 0%, var(--hw-bg-2) 100%);
  z-index: -2;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-radial-gradient(circle at 50% 110%,
      transparent 0,
      transparent 40px,
      rgba(0, 212, 255, 0.05) 41px,
      rgba(0, 212, 255, 0.05) 42px,
      transparent 43px,
      transparent 80px);
  z-index: -1;
  pointer-events: none;
  animation: hw-ripple 18s linear infinite;
}
@keyframes hw-ripple {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 0.4; }
}

/* ============================ NAV ============================ */
.hw-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--hw-nav-h);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(15, 26, 46, 0.55);
  border-bottom: 1px solid var(--hw-border);
}
.hw-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hw-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--hw-text);
}
.hw-logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hw-cyan);
  color: var(--hw-cyan);
  font-weight: 800;
  font-style: italic;
  border-radius: var(--hw-radius);
  box-shadow: 0 0 12px var(--hw-cyan-dim), inset 0 0 8px var(--hw-cyan-dim);
  position: relative;
}
.hw-logo-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed var(--hw-cyan-dim);
  border-radius: 2px;
  animation: hw-spin 12s linear infinite;
}
@keyframes hw-spin { to { transform: rotate(360deg); } }
.hw-logo-text {
  font-weight: 600;
  letter-spacing: 0.5px;
  font-style: italic;
}
.hw-nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.hw-nav-links a {
  position: relative;
  color: var(--hw-text);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 2px;
  letter-spacing: 0.4px;
}
.hw-nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--hw-cyan);
  box-shadow: 0 0 8px var(--hw-cyan);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.hw-nav-links a:hover::after { width: 100%; }
.hw-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hw-icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hw-border);
  background: transparent;
  color: var(--hw-text);
  border-radius: var(--hw-radius);
  cursor: pointer;
  transition: all 0.25s ease;
}
.hw-icon-btn:hover {
  border-color: var(--hw-cyan);
  color: var(--hw-cyan);
  box-shadow: 0 0 12px var(--hw-cyan-dim);
}
.hw-icon-btn svg { width: 16px; height: 16px; }
.hw-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hw-border);
  background: transparent;
  cursor: pointer;
}
.hw-mobile-btn span {
  width: 16px;
  height: 1px;
  background: var(--hw-text);
}

/* ============================ SEARCH OVERLAY ============================ */
.hw-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
}
.hw-search-overlay.active { display: flex; }
.hw-search-box {
  width: 90%;
  max-width: 640px;
  position: relative;
}
.hw-search-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: none;
  border: 1px solid var(--hw-border);
  color: var(--hw-text);
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
  border-radius: var(--hw-radius);
}
.hw-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--hw-cyan);
  background: rgba(15, 26, 46, 0.6);
  padding: 14px 18px;
  border-radius: var(--hw-radius);
  box-shadow: 0 0 20px var(--hw-cyan-dim);
}
.hw-search-input-wrap svg { width: 18px; height: 18px; color: var(--hw-cyan); flex-shrink: 0; }
.hw-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--hw-text);
  font-size: 16px;
  font-family: inherit;
}
.hw-search-results {
  margin-top: 16px;
  max-height: 50vh;
  overflow-y: auto;
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
  background: rgba(15, 26, 46, 0.7);
}
.hw-search-result-item {
  display: flex;
  gap: 14px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--hw-text);
  border-bottom: 1px solid var(--hw-border);
  transition: background 0.2s;
}
.hw-search-result-item:hover { background: rgba(0, 212, 255, 0.08); }
.hw-search-result-item:last-child { border-bottom: none; }
.hw-search-result-thumb {
  width: 56px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--hw-border);
  overflow: hidden;
}
.hw-search-result-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.6) brightness(0.85) sepia(0.5) hue-rotate(150deg) saturate(2);
}
.hw-search-result-cat {
  font-size: 11px;
  color: var(--hw-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.hw-search-result-title { font-size: 14px; line-height: 1.4; }
.hw-search-empty {
  padding: 24px;
  text-align: center;
  color: var(--hw-text-dim);
  font-style: italic;
}

/* ============================ HERO: 4 CUBES ============================ */
.hw-hero {
  padding: 56px 28px 32px;
  max-width: 1320px;
  margin: 0 auto;
}
.hw-hero-head {
  text-align: center;
  margin-bottom: 40px;
}
.hw-hero-label {
  display: inline-block;
  border: 1px solid var(--hw-cyan);
  background: transparent;
  color: var(--hw-cyan);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hw-hero-title {
  font-weight: 200;
  font-style: italic;
  font-size: clamp(28px, 4vw, 46px);
  margin: 0 0 12px;
  letter-spacing: 1px;
  color: var(--hw-text);
  text-shadow: 0 0 16px var(--hw-cyan-dim);
}
.hw-hero-sub {
  color: var(--hw-text-dim);
  font-size: 14px;
  letter-spacing: 0.5px;
  margin: 0;
}

/* The cube stage — 3D perspective container */
.hw-cube-stage {
  perspective: 1200px;
  perspective-origin: 50% 40%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: center;
  justify-items: center;
  min-height: 280px;
  margin-top: 20px;
}
.hw-cube-cell {
  position: relative;
  width: var(--hw-cube-size);
  height: var(--hw-cube-size);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.hw-cube-scene {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: hw-cube-spin 16s linear infinite;
  transition: transform 0.5s ease;
}
.hw-cube-cell:hover .hw-cube-scene { animation-duration: 6s; }
.hw-cube-cell.is-focus .hw-cube-scene { animation-play-state: paused; }

.hw-cube-face {
  position: absolute;
  width: var(--hw-cube-size);
  height: var(--hw-cube-size);
  border: 1px solid var(--hw-cyan);
  background: rgba(0, 212, 255, 0.04);
  box-shadow: 0 0 18px var(--hw-cyan-dim), inset 0 0 18px var(--hw-cyan-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backface-visibility: visible;
}
.hw-cube-face::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--hw-cyan-dim);
  pointer-events: none;
}
.hw-cube-face img {
  width: 78%;
  height: 78%;
  object-fit: cover;
  opacity: 0.55;
  filter: grayscale(1) brightness(0.85) sepia(1) hue-rotate(155deg) saturate(2.5) contrast(1.1);
  mix-blend-mode: screen;
}
.hw-cube-face-front  { transform: translateZ(calc(var(--hw-cube-size) / 2)); }
.hw-cube-face-back   { transform: rotateY(180deg) translateZ(calc(var(--hw-cube-size) / 2)); }
.hw-cube-face-right  { transform: rotateY(90deg) translateZ(calc(var(--hw-cube-size) / 2)); }
.hw-cube-face-left   { transform: rotateY(-90deg) translateZ(calc(var(--hw-cube-size) / 2)); }
.hw-cube-face-top    { transform: rotateX(90deg) translateZ(calc(var(--hw-cube-size) / 2)); }
.hw-cube-face-bottom { transform: rotateX(-90deg) translateZ(calc(var(--hw-cube-size) / 2)); }

@keyframes hw-cube-spin {
  0%   { transform: rotateX(-15deg) rotateY(0deg); }
  100% { transform: rotateX(-15deg) rotateY(360deg); }
}

/* Cube caption — holographic floating title above cube */
.hw-cube-caption {
  position: absolute;
  bottom: -56px;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  text-align: center;
  pointer-events: none;
}
.hw-cube-caption-tag {
  display: inline-block;
  border: 1px solid var(--hw-cyan);
  background: transparent;
  color: var(--hw-cyan);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.hw-cube-caption-title {
  font-size: 13px;
  font-style: italic;
  color: var(--hw-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 0 10px var(--hw-cyan-dim);
}
.hw-cube-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hw-cyan), transparent);
  box-shadow: 0 0 12px var(--hw-cyan);
  opacity: 0;
  pointer-events: none;
  top: 50%;
}
.hw-cube-cell:hover .hw-cube-scan {
  opacity: 1;
  animation: hw-scan-pass 1.4s ease-in-out infinite;
}
@keyframes hw-scan-pass {
  0%   { top: 0%; }
  50%  { top: 100%; }
  100% { top: 0%; }
}

/* Click feedback: ring scan */
.hw-cube-cell:active .hw-cube-scene { transform: scale3d(0.92, 0.92, 0.92); }

/* ============================ SECTIONS ============================ */
.hw-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 28px;
}
.hw-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--hw-border);
  padding-bottom: 16px;
}
.hw-section-label {
  font-size: 11px;
  color: var(--hw-cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hw-section-title {
  font-weight: 200;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0;
  letter-spacing: 0.6px;
}
.hw-section-count {
  font-size: 12px;
  color: var(--hw-text-dim);
  font-style: italic;
  letter-spacing: 1px;
}

/* Wireframe card grid */
.hw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hw-card {
  position: relative;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--hw-border);
  background: rgba(15, 26, 46, 0.4);
  padding: 14px;
  border-radius: var(--hw-radius);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hw-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 24px; height: 24px;
  border-top: 1px solid var(--hw-cyan);
  border-left: 1px solid var(--hw-cyan);
}
.hw-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 24px; height: 24px;
  border-bottom: 1px solid var(--hw-cyan);
  border-right: 1px solid var(--hw-cyan);
}
.hw-card:hover {
  border-color: var(--hw-cyan);
  box-shadow: 0 0 20px var(--hw-cyan-dim);
  transform: translateY(-3px);
}
.hw-card:active { transform: scale3d(0.98, 0.98, 1); }
.hw-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--hw-border);
  margin-bottom: 12px;
}
.hw-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.8) brightness(0.75) sepia(0.6) hue-rotate(155deg) saturate(2) contrast(1.05);
  transition: filter 0.4s, transform 0.4s;
}
.hw-card:hover .hw-card-img img {
  filter: grayscale(0.4) brightness(0.9) sepia(0.4) hue-rotate(155deg) saturate(2.2) contrast(1.05);
  transform: scale(1.05);
}
.hw-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 26, 46, 0.7));
  pointer-events: none;
}
.hw-card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  border: 1px solid var(--hw-cyan);
  background: rgba(15, 26, 46, 0.7);
  color: var(--hw-cyan);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 2;
}
.hw-card-title {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--hw-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hw-card-excerpt {
  font-size: 12px;
  color: var(--hw-text-dim);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 10px;
}
.hw-card-read {
  font-size: 11px;
  color: var(--hw-cyan);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.hw-card-read svg { width: 12px; height: 12px; }

/* Wide list row (alternating) */
.hw-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hw-list-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.hw-list-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--hw-border);
  background: rgba(15, 26, 46, 0.4);
  padding: 12px;
  border-radius: var(--hw-radius);
  transition: all 0.3s ease;
  position: relative;
}
.hw-list-item:hover {
  border-color: var(--hw-cyan);
  box-shadow: 0 0 16px var(--hw-cyan-dim);
}
.hw-list-item:active { transform: scale3d(0.99, 0.99, 1); }
.hw-list-item-img {
  width: 100%;
  height: 100px;
  overflow: hidden;
  border: 1px solid var(--hw-border);
}
.hw-list-item-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.8) brightness(0.75) sepia(0.6) hue-rotate(155deg) saturate(2);
}
.hw-list-item-body { display: flex; flex-direction: column; }
.hw-list-item-tag {
  align-self: flex-start;
  border: 1px solid var(--hw-cyan);
  color: var(--hw-cyan);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.hw-list-item-title {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hw-list-item-excerpt {
  font-size: 11px;
  color: var(--hw-text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* Compact scroll row */
.hw-row-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-color: var(--hw-cyan-dim) transparent;
  scrollbar-width: thin;
}
.hw-row-scroll::-webkit-scrollbar { height: 6px; }
.hw-row-scroll::-webkit-scrollbar-track { background: transparent; }
.hw-row-scroll::-webkit-scrollbar-thumb {
  background: var(--hw-cyan-dim);
  border-radius: 3px;
}
.hw-compact {
  flex: 0 0 220px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--hw-border);
  background: rgba(15, 26, 46, 0.4);
  padding: 10px;
  border-radius: var(--hw-radius);
  transition: all 0.3s ease;
}
.hw-compact:hover {
  border-color: var(--hw-cyan);
  box-shadow: 0 0 14px var(--hw-cyan-dim);
  transform: translateY(-2px);
}
.hw-compact:active { transform: scale3d(0.98, 0.98, 1); }
.hw-compact-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--hw-border);
  margin-bottom: 8px;
  position: relative;
}
.hw-compact-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.8) brightness(0.75) sepia(0.6) hue-rotate(155deg) saturate(2);
}
.hw-compact-tag {
  position: absolute;
  top: 6px; left: 6px;
  border: 1px solid var(--hw-cyan);
  background: rgba(15, 26, 46, 0.7);
  color: var(--hw-cyan);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hw-compact-title {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Section divider — scan line */
.hw-divider {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}
.hw-divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hw-cyan), transparent);
  box-shadow: 0 0 8px var(--hw-cyan-dim);
  opacity: 0.5;
}

/* ============================ FOOTER: HOLOGRAPHIC PROJECTORS ============================ */
.hw-footer {
  margin-top: 80px;
  padding: 64px 28px 32px;
  border-top: 1px solid var(--hw-border);
  background: rgba(15, 26, 46, 0.4);
  position: relative;
  overflow: hidden;
}
.hw-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hw-cyan), transparent);
  box-shadow: 0 0 12px var(--hw-cyan);
}
.hw-projectors {
  display: flex;
  justify-content: center;
  gap: 120px;
  margin-bottom: 40px;
  position: relative;
  height: 70px;
}
.hw-projector {
  position: relative;
  width: 40px;
  height: 70px;
}
.hw-projector-cone {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 22px solid var(--hw-cyan-dim);
  filter: drop-shadow(0 0 6px var(--hw-cyan));
}
.hw-projector-cone::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: -16px;
  width: 32px;
  height: 4px;
  background: var(--hw-cyan);
  box-shadow: 0 0 10px var(--hw-cyan);
}
.hw-projector-beam {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 50px solid rgba(0, 212, 255, 0.12);
  transform-origin: bottom center;
  animation: hw-beam-swing 4s ease-in-out infinite;
  filter: blur(0.5px);
}
.hw-projector:nth-child(2) .hw-projector-beam { animation-delay: -1.3s; }
.hw-projector:nth-child(3) .hw-projector-beam { animation-delay: -2.6s; }
@keyframes hw-beam-swing {
  0%, 100% { transform: translateX(-50%) rotate(-8deg); opacity: 0.7; }
  50%      { transform: translateX(-50%) rotate(8deg);  opacity: 0.4; }
}

.hw-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
}
.hw-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.hw-footer-brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--hw-cyan);
  color: var(--hw-cyan);
  font-weight: 800;
  font-style: italic;
  border-radius: var(--hw-radius);
}
.hw-footer-brand-text {
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.5px;
}
.hw-footer-desc {
  color: var(--hw-text-dim);
  font-size: 13px;
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.hw-footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex-wrap: wrap;
}
.hw-footer-link {
  position: relative;
  color: var(--hw-text);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  letter-spacing: 0.4px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.hw-footer-link:hover {
  border-color: var(--hw-cyan);
  color: var(--hw-cyan);
}
.hw-footer-link::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 1px solid var(--hw-cyan);
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.2s ease;
  pointer-events: none;
}
.hw-footer-link:active::after {
  opacity: 1;
  transform: scale(1);
  animation: hw-ring-scan 0.4s ease-out;
}
@keyframes hw-ring-scan {
  0%   { opacity: 1; transform: scale(0.7); }
  100% { opacity: 0; transform: scale(1.4); }
}
.hw-footer-bottom {
  border-top: 1px solid var(--hw-border);
  padding-top: 18px;
  font-size: 12px;
  color: var(--hw-text-dim);
  letter-spacing: 0.5px;
}

/* ============================ DETAIL PAGE ============================ */
.hw-detail-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 28px 80px;
  position: relative;
}
.hw-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hw-cyan);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--hw-border);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 32px;
  position: relative;
  transition: all 0.25s;
}
.hw-back:hover {
  border-color: var(--hw-cyan);
  box-shadow: 0 0 14px var(--hw-cyan-dim);
}
.hw-back:active::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid var(--hw-cyan);
  border-radius: 999px;
  animation: hw-ring-scan 0.4s ease-out;
  pointer-events: none;
}
.hw-back svg { width: 12px; height: 12px; }
.hw-detail-tag {
  display: inline-block;
  border: 1px solid var(--hw-cyan);
  background: transparent;
  color: var(--hw-cyan);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hw-detail-title {
  font-weight: 200;
  font-style: italic;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.25;
  margin: 0 0 24px;
  letter-spacing: 0.5px;
  color: var(--hw-text);
  text-shadow: 0 0 16px var(--hw-cyan-dim);
}
.hw-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: var(--hw-text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 32px;
  border-top: 1px solid var(--hw-border);
  border-bottom: 1px solid var(--hw-border);
  padding: 14px 0;
}
.hw-card-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hw-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  border: 1px solid var(--hw-cyan);
  box-shadow: 0 0 10px var(--hw-cyan-dim);
}
.hw-card-author-info { display: flex; flex-direction: column; line-height: 1.3; }
.hw-card-author-name { color: var(--hw-text); font-weight: 600; text-transform: none; letter-spacing: 0.3px; }
.hw-card-author-role { color: var(--hw-text-dim); font-size: 11px; }
.hw-detail-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--hw-cyan);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 0 24px var(--hw-cyan-dim), inset 0 0 24px var(--hw-cyan-dim);
}
.hw-detail-img-wrap::before,
.hw-detail-img-wrap::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  z-index: 2;
}
.hw-detail-img-wrap::before {
  top: 8px; left: 8px;
  border-top: 1px solid var(--hw-cyan);
  border-left: 1px solid var(--hw-cyan);
}
.hw-detail-img-wrap::after {
  bottom: 8px; right: 8px;
  border-bottom: 1px solid var(--hw-cyan);
  border-right: 1px solid var(--hw-cyan);
}
.hw-detail-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  filter: none;
}
.hw-detail-scan {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hw-cyan), transparent);
  box-shadow: 0 0 14px var(--hw-cyan);
  animation: hw-detail-scan-move 4s linear infinite;
  z-index: 3;
  opacity: 0.7;
}
@keyframes hw-detail-scan-move {
  0%   { top: 0%; }
  100% { top: 100%; }
}
.hw-detail-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--hw-text);
  letter-spacing: 0.2px;
}
.hw-detail-body p { margin: 0 0 20px; }
.hw-detail-body p:first-letter {
  font-size: 42px;
  font-weight: 200;
  font-style: italic;
  float: left;
  line-height: 1;
  padding: 6px 10px 0 0;
  color: var(--hw-cyan);
  text-shadow: 0 0 12px var(--hw-cyan-glow);
}
.hw-detail-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hw-cyan), transparent);
  margin: 40px 0;
  opacity: 0.5;
}
.hw-detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
}
.hw-detail-nav a {
  flex: 1;
  max-width: 48%;
  padding: 14px 18px;
  border: 1px solid var(--hw-border);
  text-decoration: none;
  color: var(--hw-text);
  border-radius: var(--hw-radius);
  transition: all 0.25s;
  position: relative;
}
.hw-detail-nav a:hover {
  border-color: var(--hw-cyan);
  box-shadow: 0 0 14px var(--hw-cyan-dim);
}
.hw-detail-nav a.disabled {
  opacity: 0.3;
  pointer-events: none;
}
.hw-detail-nav-label {
  font-size: 10px;
  color: var(--hw-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hw-detail-nav-title {
  font-size: 13px;
  font-style: italic;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hw-detail-nav a.next { text-align: right; }

/* Related articles on detail page */
.hw-related {
  margin-top: 56px;
  border-top: 1px solid var(--hw-border);
  padding-top: 32px;
}
.hw-related-title {
  font-size: 11px;
  color: var(--hw-cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hw-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ============================ REVEAL ANIMATION ============================ */
.hw-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hw-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) {
  .hw-cube-stage { grid-template-columns: repeat(2, 1fr); gap: 56px 32px; }
  .hw-grid { grid-template-columns: repeat(3, 1fr); }
  .hw-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hw-nav-links { display: none; }
  .hw-nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: var(--hw-nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(15, 26, 46, 0.95);
    padding: 16px 28px;
    gap: 14px;
    border-bottom: 1px solid var(--hw-border);
  }
  .hw-mobile-btn { display: flex; }
  .hw-cube-stage { grid-template-columns: 1fr; gap: 80px; }
  .hw-grid { grid-template-columns: repeat(2, 1fr); }
  .hw-list-row { grid-template-columns: 1fr; }
  .hw-related-grid { grid-template-columns: 1fr; }
  .hw-detail-nav { flex-direction: column; }
  .hw-detail-nav a { max-width: 100%; text-align: left !important; }
  .hw-footer-links { gap: 14px; }
  .hw-projectors { gap: 60px; }
}
@media (max-width: 480px) {
  .hw-grid { grid-template-columns: 1fr; }
  .hw-list-item { grid-template-columns: 100px 1fr; }
  .hw-hero { padding: 36px 18px 20px; }
  .hw-section { padding: 36px 18px; }
  .hw-detail-wrap { padding: 32px 18px 60px; }
}
