/* ============================================================
   Construction Under-Work Page - Geometric 3D Aesthetic
   ============================================================ */

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(17, 21, 30, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 210, 255, 0.35);

  --accent-cyan: #00d2ff;
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;
  --accent-neon: #00ffff;

  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-dim: #64748b;

  --font-main: 'Plus Jakarta Sans', 'Noto Sans TC', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  font-family: var(--font-main);
  color: var(--text-main);
}

/* 幾何多面體背景 Canvas */
#geometryCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* 3D 空間透視地平線 */
.perspective-ground {
  position: fixed;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 45vh;
  background-image: 
    linear-gradient(rgba(0, 210, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 210, 255, 0.12) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(300px) rotateX(65deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 85%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 85%);
  pointer-events: none;
  z-index: 2;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 600px; }
}

/* 主內容版面 */
.construction-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

/* 頂部狀態膠囊 */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
}

.pulsing-beacon {
  width: 8px;
  height: 8px;
  background-color: var(--accent-amber);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-amber);
  animation: beaconPulse 1.8s infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px var(--accent-amber); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 2px;
  color: #fbbf24;
  font-weight: 600;
}

/* 核心幾何施工人場景 (Geometric Builder) */
.worker-scene-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto 10px;
}

.geometric-builder {
  position: relative;
  width: 100%;
  height: 100%;
}

.worker-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.6));
}

/* 手臂敲擊動畫 */
.swinging-arm {
  transform-origin: 215px 165px;
  animation: hammerStrike 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) infinite;
}

@keyframes hammerStrike {
  0% {
    transform: rotate(-35deg);
  }
  40% {
    transform: rotate(18deg);
  }
  48% {
    transform: rotate(15deg);
  }
  75% {
    transform: rotate(-35deg);
  }
  100% {
    transform: rotate(-35deg);
  }
}

/* 敲擊火花動畫 */
.strike-sparks {
  transform-origin: 105px 175px;
  animation: sparkBurst 1.2s infinite;
}

@keyframes sparkBurst {
  0%, 36% {
    opacity: 0;
    transform: scale(0.2);
  }
  40% {
    opacity: 1;
    transform: scale(1.3);
  }
  55% {
    opacity: 0;
    transform: scale(1.8) translateY(-10px);
  }
  100% {
    opacity: 0;
  }
}

/* 漂浮的立體 3D 幾何方塊 */
.floating-polyhedron {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 50px;
  height: 50px;
  perspective: 400px;
  pointer-events: none;
}

.poly-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 8s linear infinite;
}

@keyframes rotateCube {
  0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

.poly-cube .face {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(0, 210, 255, 0.08);
  border: 1.5px solid rgba(0, 210, 255, 0.6);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.poly-cube .front  { transform: rotateY(0deg) translateZ(25px); }
.poly-cube .back   { transform: rotateY(180deg) translateZ(25px); }
.poly-cube .right  { transform: rotateY(90deg) translateZ(25px); }
.poly-cube .left   { transform: rotateY(-90deg) translateZ(25px); }
.poly-cube .top    { transform: rotateX(90deg) translateZ(25px); }
.poly-cube .bottom { transform: rotateX(-90deg) translateZ(25px); }

/* 文案 Typography */
.content-block {
  max-width: 680px;
  margin: 0 auto;
}

.headline-en {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.headline-zh {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--accent-cyan);
  text-shadow: 0 0 24px rgba(0, 210, 255, 0.4);
  margin-bottom: 18px;
}

.description {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* 快捷通道卡片 */
.action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(0, 210, 255, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 210, 255, 0.12);
  border-radius: 20px;
  padding: 22px 28px;
  text-align: left;
  backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 210, 255, 0.25);
}

.card-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.btn-enter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #00d2ff 0%, #3b82f6 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 210, 255, 0.4);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-enter:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 210, 255, 0.6);
}

/* 頁底 */
.construction-footer {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.geo-code {
  color: rgba(0, 210, 255, 0.6);
}

/* 響應式 */
@media (max-width: 680px) {
  .headline-en { font-size: 2.4rem; }
  .headline-zh { font-size: 1.7rem; }
  .action-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .btn-enter {
    width: 100%;
    justify-content: center;
  }
}
