/* Mingfu Physics Club Posters - Bundled Stylesheet */
/* Swiss International Typographic Style Design System for Mingfu Physics Club */
:root {
  /* Core Swiss Colors */
  --swiss-red: #E30613;          /* Authentic Swiss High-Saturation Red */
  --swiss-red-light: #FFF0F1;
  --swiss-red-dark: #BA000D;
  --swiss-black: #0A0B0E;        /* Deep Neutral Carbon Black */
  --swiss-dark: #1A1C22;
  --swiss-charcoal: #2F343E;
  --swiss-mid-gray: #6B7280;
  --swiss-light-gray: #E5E7EB;
  --swiss-border: #D1D5DB;
  --swiss-border-subtle: #EBECEF;
  --swiss-bg-white: #FFFFFF;
  --swiss-bg-canvas: #F0F2F5;
  --swiss-bg-card: #F9FAFB;
  --swiss-accent-yellow: #FFD200;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", Monaco, Consolas, "JetBrains Mono", "Courier New", monospace;
  --font-display: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;

  /* Layout */
  --poster-radius: 0px; /* Swiss Style uses strict crisp geometric corners */
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--swiss-bg-canvas);
  color: var(--swiss-black);
  line-height: 1.4;
  overflow-x: hidden;
}

/* Technical Grid & Graphic Elements */
.swiss-cross {
  position: relative;
  width: 11px;
  height: 11px;
  display: inline-block;
  opacity: 0.6;
}
.swiss-cross::before, .swiss-cross::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.swiss-cross::before {
  top: 5px; left: 0; width: 11px; height: 1px;
}
.swiss-cross::after {
  top: 0; left: 5px; width: 1px; height: 11px;
}

.swiss-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  background: var(--swiss-black);
  color: #fff;
  border-radius: 0;
}

.swiss-tag.red {
  background: var(--swiss-red);
}

.swiss-tag.outline {
  background: transparent;
  color: var(--swiss-black);
  border: 1px solid var(--swiss-black);
}

.swiss-tag.subtle {
  background: #F3F4F6;
  color: var(--swiss-charcoal);
  border: 1px solid var(--swiss-border-subtle);
}

/* Workspace Container */
.workspace-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--swiss-bg-canvas);
}

/* 9:16 Vertical Poster Stack */
.poster-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 520px;
  gap: 28px;
  padding: 24px 16px 60px 16px;
  margin: 0 auto;
  transition: var(--transition-smooth);
}

.poster-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--swiss-bg-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--swiss-border);
  position: relative;
  overflow: hidden;
  user-select: text;
}

/* Inner padding and grid */
.poster-inner {
  padding: 24px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  position: relative;
}

/* Subtle background precision grid pattern */
.poster-sheet::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

.poster-inner > * {
  position: relative;
  z-index: 1;
}

/* Header Area */
.poster-header {
  border-bottom: 2px solid var(--swiss-black);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--swiss-mid-gray);
  margin-bottom: 6px;
}

.header-top-row .live-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--swiss-red);
}

.header-top-row .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--swiss-red);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.poster-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.main-title-cn {
  font-size: clamp(34px, 7vw, 42px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--swiss-black);
}

.main-title-cn span.red {
  color: var(--swiss-red);
}

.main-title-en {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--swiss-mid-gray);
  margin-top: 4px;
}

.poster-serial {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: var(--swiss-red);
}

/* Swiss Layout Divider */
.swiss-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--swiss-mid-gray);
  margin: 10px 0;
}
.swiss-divider .line {
  flex: 1;
  height: 1px;
  background: var(--swiss-border);
}

/* Hero Visual Box for Poster 1 */
.hero-visual-frame {
  position: relative;
  background: #FAFBFD;
  border: 1.5px solid var(--swiss-black);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.hero-visual-frame .frame-label {
  position: absolute;
  top: -9px;
  left: 12px;
  background: var(--swiss-black);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 7px;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.physics-canvas-stage {
  width: 100%;
  aspect-ratio: 460 / 175;
  height: auto;
  max-height: 175px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: crosshair;
  touch-action: none;
}

#prism-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Manifesto Box */
.manifesto-box {
  background: #FFF;
  border-left: 4px solid var(--swiss-red);
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border-top: 1px solid var(--swiss-border-subtle);
  border-right: 1px solid var(--swiss-border-subtle);
  border-bottom: 1px solid var(--swiss-border-subtle);
}

.manifesto-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: var(--swiss-red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.manifesto-quote {
  font-size: clamp(16px, 3.4vw, 19px);
  font-weight: 900;
  line-height: 1.35;
  color: var(--swiss-black);
  letter-spacing: -0.02em;
  margin-bottom: 5px;
}

.manifesto-desc {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--swiss-charcoal);
  text-align: justify;
}

/* Highlights Grid (Poster 1) */
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.highlight-item {
  border: 1px solid var(--swiss-border);
  padding: 8px 10px;
  background: #FAFAFA;
  position: relative;
  transition: var(--transition-smooth);
}

.highlight-item:hover {
  border-color: var(--swiss-black);
  background: #FFF;
}

.highlight-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.highlight-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--swiss-red);
}

.highlight-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--swiss-black);
  letter-spacing: -0.01em;
}

.highlight-desc {
  font-size: 10px;
  line-height: 1.4;
  color: var(--swiss-mid-gray);
}

/* Footer Banner */
.poster-footer {
  border-top: 2px solid var(--swiss-black);
  padding-top: 10px;
  margin-top: auto;
}

.footer-action-banner {
  background: var(--swiss-black);
  color: #FFF;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-action-banner span.teacher-badge {
  background: var(--swiss-red);
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.footer-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--swiss-mid-gray);
}

/* ========================================================
   POSTER 2 SPECIFIC STYLES
   ======================================================== */

.domains-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.domain-card {
  border: 1.5px solid var(--swiss-black);
  padding: 8px 9px;
  background: #FFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.domain-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 12px 12px 0;
  border-color: transparent var(--swiss-black) transparent transparent;
}

.domain-card.featured::after {
  border-color: transparent var(--swiss-red) transparent transparent;
}

.domain-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}

.domain-idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 900;
  color: var(--swiss-red);
}

.domain-svg-mini {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  overflow: visible;
}

/* ==========================================================
   DOMAINS MICRO-ANIMATIONS (Physics Precision Vector Motion)
   ========================================================== */

/* --- 01 / MECHANICS: Parabolic Projectile Motion --- */
.mech-projectile {
  offset-path: path("M 4 22 Q 14 5 24 18");
  offset-distance: 100%;
  offset-rotate: 0deg;
  animation: mechProjectileFly 2.6s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, offset-distance, opacity;
}

@keyframes mechProjectileFly {
  0% {
    offset-distance: 0%;
    opacity: 0;
    transform: scale(0.4);
  }
  10% {
    opacity: 1;
    transform: scale(1);
  }
  78% {
    opacity: 1;
    transform: scale(1);
  }
  92%, 100% {
    offset-distance: 100%;
    opacity: 0;
    transform: scale(0.6);
  }
}

.mech-track {
  animation: mechTrackBreathe 2.6s ease-in-out infinite;
}

@keyframes mechTrackBreathe {
  0%, 100% {
    opacity: 0.5;
  }
  45% {
    opacity: 0.85;
  }
}

/* --- 02 / OPTICS: Snell Dispersion & Spectral Stream --- */
.optics-ray-in {
  stroke-dasharray: 4 3;
  animation: opticsStreamIn 2.4s linear infinite;
}

.optics-ray-internal {
  stroke-dasharray: 4 3;
  animation: opticsStreamInternal 2.4s linear infinite;
}

.optics-ray-red,
.optics-ray-yellow,
.optics-ray-blue {
  stroke-dasharray: 4.5 3;
  animation: opticsStreamOut 2.4s linear infinite;
}

.optics-ray-yellow {
  animation-delay: -0.15s;
}

.optics-ray-blue {
  animation-delay: -0.3s;
}

@keyframes opticsStreamIn {
  0% {
    stroke-dashoffset: 14;
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.7;
  }
}

@keyframes opticsStreamInternal {
  0% {
    stroke-dashoffset: 14;
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.75;
  }
}

@keyframes opticsStreamOut {
  0% {
    stroke-dashoffset: 15;
    opacity: 0.65;
  }
  45% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.65;
  }
}

/* --- 03 / SIGNALS: Digital Oscilloscope Continuous Sweep --- */
.signal-wave-path {
  animation: signalWaveScroll 2.0s linear infinite;
  will-change: transform;
}

@keyframes signalWaveScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(10px);
  }
}

.signal-led {
  animation: signalLedPulse 1.4s ease-in-out infinite;
  transform-origin: 23.5px 7.5px;
}

@keyframes signalLedPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.85);
  }
}

/* --- 04 / COMPUTATION: Gravitational Keplerian Orbit --- */
.comp-orbit-dashed {
  transform-origin: 14px 14px;
  animation: compOrbitSpin 14s linear infinite;
}

@keyframes compOrbitSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.comp-satellite {
  offset-path: path("M 25 14 A 11 5.2 0 1 0 3 14 A 11 5.2 0 1 0 25 14");
  offset-distance: 0%;
  offset-rotate: 0deg;
  animation: compSatelliteOrbit 2.8s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
  will-change: offset-distance;
}

@keyframes compSatelliteOrbit {
  0% {
    offset-distance: 0%;
  }
  100% {
    offset-distance: 100%;
  }
}

.domain-title-cn {
  font-size: 12px;
  font-weight: 800;
  color: var(--swiss-black);
  line-height: 1.25;
  margin-bottom: 2px;
}

.domain-title-en {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  color: var(--swiss-mid-gray);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.domain-detail {
  font-size: 9.5px;
  line-height: 1.4;
  color: var(--swiss-charcoal);
  margin-bottom: 5px;
}

.domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.domain-tags span {
  font-family: var(--font-mono);
  font-size: 8px;
  background: #F3F4F6;
  color: var(--swiss-charcoal);
  padding: 1px 4px;
  border-radius: 0;
}

/* Voice & President Box */
.voice-strip {
  border: 1px solid var(--swiss-border);
  background: #FAFBFD;
  padding: 8px 11px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.voice-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  line-height: 1.4;
}

.voice-speaker {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 10px;
  color: var(--swiss-black);
  background: #E5E7EB;
  padding: 1px 6px;
  white-space: nowrap;
}

.voice-speaker.president {
  background: var(--swiss-black);
  color: #FFF;
}

.voice-content {
  color: var(--swiss-charcoal);
}

.voice-content strong {
  color: var(--swiss-black);
}

/* QR Code & Call to Action Box - Clean Balanced Square Format */
.cta-qr-box {
  border: 2px solid var(--swiss-black);
  background: #FFF;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  margin-bottom: 6px;
  position: relative;
}

.cta-qr-box .cta-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cta-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.cta-headline {
  font-size: 16px;
  font-weight: 900;
  color: var(--swiss-black);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cta-desc {
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--swiss-charcoal);
  margin: 3px 0 7px 0;
}

.cta-steps {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--swiss-charcoal);
}

.cta-steps span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cta-steps span b {
  color: var(--swiss-red);
  font-weight: 800;
}

/* High-Resolution Square QR Code Frame */
.qr-frame {
  width: 136px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.qr-target-corners {
  position: relative;
  width: 130px;
  height: 130px; /* Pure square 1:1 for crisp high-density QR code */
  padding: 4px;
  background: #FFF;
  border: 1.5px solid var(--swiss-black);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

/* Precision Viewfinder crosshairs at corners */
.qr-target-corners::before,
.qr-target-corners::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--swiss-red);
  pointer-events: none;
}
.qr-target-corners::before {
  top: -2px; left: -2px;
  border-top: 2.5px solid var(--swiss-red);
  border-left: 2.5px solid var(--swiss-red);
}
.qr-target-corners::after {
  bottom: -2px; right: -2px;
  border-bottom: 2.5px solid var(--swiss-red);
  border-right: 2.5px solid var(--swiss-red);
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.qr-caption {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--swiss-mid-gray);
  margin-top: 5px;
  text-align: center;
}

.prize-callout {
  background: var(--swiss-red-light);
  border: 1px dashed var(--swiss-red);
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--swiss-red-dark);
}

/* ==========================================================
   SIMPLE BULB FLICKER REVEAL (简单的闪一闪)
   ========================================================== */

/* 初始处于待机态 */
.js-energize-ready .highlight-item:not(.is-energized),
.js-energize-ready .domain-card:not(.is-energized) {
  opacity: 0;
}

/* 刷入视口时像灯泡一样简单闪一下浮现 (off -> 亮起 -> 微闪 -> 稳态) */
.highlight-item.is-energized,
.domain-card.is-energized {
  animation: simpleBulbFlicker 0.36s ease-out var(--bulb-delay, 0ms) forwards;
}

@keyframes simpleBulbFlicker {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  60% {
    opacity: 0.25;
  }
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-energize-ready .highlight-item:not(.is-energized),
  .js-energize-ready .domain-card:not(.is-energized),
  .highlight-item.is-energized,
  .domain-card.is-energized {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* Mobile Responsive Optimizations */
@media screen and (max-width: 540px) {
  .poster-container {
    max-width: 100%;
    padding: 12px 10px 48px 10px;
    gap: 20px;
  }

  .poster-sheet {
    aspect-ratio: auto;
    min-height: calc((100vw - 20px) * 16 / 9);
    height: auto;
    overflow: hidden;
  }

  .poster-inner {
    height: auto;
    min-height: calc((100vw - 20px) * 16 / 9);
    padding: 16px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
  }

  /* Header adjustments */
  .poster-header {
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  .header-top-row {
    font-size: clamp(8px, 2.2vw, 9.5px);
    letter-spacing: 0.02em;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
  }

  .header-top-row .header-sub-tag {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-top-row .live-status {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .main-title-cn {
    font-size: clamp(28px, 7.5vw, 36px);
  }

  .main-title-en {
    font-size: clamp(7.5px, 2vw, 8.5px);
    letter-spacing: 0.08em;
  }

  .poster-serial {
    font-size: 22px;
  }

  .swiss-divider {
    font-size: clamp(7.5px, 2vw, 8.5px);
    margin: 6px 0 8px 0;
    gap: 6px;
  }

  .swiss-divider span {
    white-space: nowrap;
  }

  /* Hero Canvas Frame */
  .hero-visual-frame {
    padding: 8px 10px;
    margin-bottom: 8px;
  }

  .hero-visual-frame .frame-label {
    top: -8px;
    left: 8px;
    font-size: clamp(7.5px, 2.2vw, 8.5px);
    letter-spacing: 0.02em;
    padding: 1px 5px;
    max-width: calc(100% - 16px);
  }

  .physics-canvas-stage {
    max-height: 150px;
  }

  /* Manifesto */
  .manifesto-box {
    padding: 8px 10px;
    margin-bottom: 8px;
  }

  .manifesto-tag {
    font-size: 8px;
    margin-bottom: 2px;
  }

  .manifesto-quote {
    font-size: clamp(14px, 3.8vw, 16.5px);
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .manifesto-desc {
    font-size: clamp(10px, 2.6vw, 11px);
    line-height: 1.45;
  }

  /* Highlights Grid */
  .highlights-grid {
    gap: 6px;
    margin-bottom: 8px;
  }

  .highlight-item {
    padding: 6px 8px;
  }

  .highlight-header {
    gap: 4px;
    margin-bottom: 2px;
  }

  .highlight-num {
    font-size: 9px;
  }

  .highlight-title {
    font-size: 11px;
  }

  .highlight-desc {
    font-size: clamp(8.5px, 2.3vw, 9.5px);
    line-height: 1.35;
  }

  /* Domains Grid (Poster 2) */
  .domains-grid {
    gap: 6px;
    margin-bottom: 8px;
  }

  .domain-card {
    padding: 6px 8px;
  }

  .domain-top {
    margin-bottom: 2px;
  }

  .domain-idx {
    font-size: 9.5px;
  }

  .domain-svg-mini {
    width: 20px;
    height: 20px;
  }

  .domain-title-cn {
    font-size: 11px;
    margin-bottom: 2px;
  }

  .domain-title-en {
    font-size: 7.5px;
    margin-bottom: 3px;
  }

  .domain-detail {
    font-size: clamp(8.5px, 2.3vw, 9.5px);
    line-height: 1.35;
    margin-bottom: 4px;
  }

  .domain-tags {
    gap: 2px;
  }

  .domain-tags span {
    font-size: 7.5px;
    padding: 1px 3px;
  }

  /* Voice strip */
  .voice-strip {
    padding: 6px 8px;
    margin-bottom: 8px;
    gap: 4px;
  }

  .voice-item {
    font-size: clamp(9.5px, 2.5vw, 10.5px);
    line-height: 1.35;
    gap: 4px;
  }

  .voice-speaker {
    font-size: 8.5px;
    padding: 1px 4px;
  }

  /* CTA & QR Box */
  .cta-qr-box {
    padding: 10px;
    gap: 10px;
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .cta-headline {
    font-size: 14px;
  }

  .cta-desc {
    font-size: 9.5px;
    margin: 2px 0 5px 0;
  }

  .cta-steps {
    font-size: 8.5px;
    gap: 2px;
  }

  .prize-callout {
    font-size: 8.5px;
    padding: 4px 6px;
    margin-top: 5px;
  }

  .qr-frame {
    width: 104px;
  }

  .qr-target-corners {
    width: 100px;
    height: 100px;
    padding: 3px;
  }

  .qr-caption {
    font-size: 8px;
    margin-top: 3px;
  }

  /* Footer Area */
  .poster-footer {
    padding-top: 8px;
    margin-top: auto;
  }

  .footer-action-banner {
    padding: 6px 10px;
    font-size: clamp(10px, 2.6vw, 11.5px);
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 4px;
  }

  .footer-action-banner span.teacher-badge {
    font-size: 9px;
    padding: 1px 5px;
  }

  .footer-meta-row {
    font-size: clamp(7.5px, 2vw, 8.5px);
    flex-wrap: wrap;
    gap: 4px;
  }
}

/* Extra Narrow Mobile Optimizations (<= 360px like small Androids and iPhone SE) */
@media screen and (max-width: 360px) {
  .poster-container {
    padding: 8px 6px 36px 6px;
  }

  .poster-sheet {
    min-height: calc((100vw - 12px) * 16 / 9);
  }

  .poster-inner {
    padding: 12px 10px 10px 10px;
    min-height: calc((100vw - 12px) * 16 / 9);
  }

  .main-title-cn {
    font-size: 26px;
  }

  .qr-frame {
    width: 88px;
  }

  .qr-target-corners {
    width: 84px;
    height: 84px;
  }
}


/* Print & PDF Export Optimization */
@media print {
  @page {
    size: 520px 924.44px;
    margin: 0;
  }

  html, body {
    background: #FFF !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .workspace-wrapper {
    min-height: auto !important;
    display: block !important;
    background: transparent !important;
  }

  .poster-container {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    max-width: 520px !important;
    width: 520px !important;
  }

  .poster-sheet {
    display: flex !important;
    width: 520px !important;
    height: 924.44px !important;
    max-width: 520px !important;
    aspect-ratio: 9 / 16 !important;
    border: none !important;
    box-shadow: none !important;
    page-break-after: always !important;
    break-after: page !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .poster-sheet:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }

  .poster-inner {
    height: 100% !important;
    padding: 24px 22px 20px 22px !important;
    box-sizing: border-box !important;
  }

  .hero-visual-frame {
    border-color: #000 !important;
  }

  .domain-card {
    border-color: #000 !important;
  }

  .footer-action-banner {
    background: #000 !important;
    color: #FFF !important;
  }

  /* Domain Cards Animated SVGs: Freeze at crisp static state for print/PDF */
  .domain-svg-mini * {
    animation: none !important;
  }

  .mech-projectile {
    offset-distance: 90% !important;
    opacity: 1 !important;
  }

  .mech-track {
    opacity: 0.7 !important;
  }

  .comp-satellite {
    offset-distance: 18% !important;
  }

  .comp-orbit-dashed {
    transform: none !important;
  }

  .signal-wave-path {
    transform: none !important;
  }

  .signal-led {
    opacity: 1 !important;
  }

  .optics-ray-in,
  .optics-ray-internal,
  .optics-ray-red,
  .optics-ray-yellow,
  .optics-ray-blue {
    stroke-dashoffset: 0 !important;
    stroke-dasharray: none !important;
    opacity: 1 !important;
  }

  /* Bulb-Flicker: Freeze at clean 100% opacity for print/PDF */
  .js-energize-ready .highlight-item:not(.is-energized),
  .js-energize-ready .domain-card:not(.is-energized),
  .highlight-item,
  .domain-card {
    animation: none !important;
    opacity: 1 !important;
  }
}


