/**
 * 飞机背景动画样式
 * 提供飞机SVG和跑道引导线的视觉样式
 */

:root {
  --plane-bg-color: #f8f9fa;
  --plane-color: rgb(233 236 239);
  --detail-color: #fcfcfc;
  --line-color: #d8d8d8;
  --runway-color: #e0e0e0;
  --detail-line: rgba(0, 0, 0, 0.1);
  --window-color: #e0e0e0;
  --cockpit-color: #dcdcdc;
  --base-scale: 1;
}

/* 确保main建立层叠上下文 */
main {
  position: relative;
  z-index: 1;
}

/* 无缝背景层 - 跑道引导线改为宽虚线 */
.runway-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'%3E%3Cpath d='M400 0v400' stroke='%23e0e0e0' stroke-width='4' stroke-dasharray='20, 20'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-position: center top;
  will-change: background-position;
  pointer-events: none;
  background-color: rgba(248, 199, 3, 0.1)
}

/* 飞机容器:固定在视口 */
.plane-layer {
  position: fixed;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  transform: translateX(-50%) scale(var(--base-scale));
  will-change: transform;
}

@media (min-width: 1200px) {
  :root { 
    --base-scale: 1.1; 
  }
}

@media (max-width: 767px) {
  .plane-layer { 
    width: 100vw; 
  }
  :root {
    --base-scale: 1.5;
  }
}
