/* =========================================
   Metro PIDS Display 4 — 样式表
   基于像素级分析
   ========================================= */

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

html, body {
  width: 1900px; height: 600px;
  overflow: hidden;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #FFFFFF;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  touch-action: none;
}

#display-root {
  width: 1900px; height: 600px;
  position: relative;
  overflow: hidden;
}

/* ==================== 状态栏 ==================== */
#display-statusbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 35px;
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.02);
  z-index: 9998;
  pointer-events: auto;
  -webkit-app-region: drag;
  cursor: move;
}

#display-statusbar-inner {
  width: 100%;
  max-width: 1900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

#display-statusbar .app-name {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #333);
  user-select: none;
  -webkit-app-region: drag;
  cursor: move;
  flex: 1;
}

#display-statusbar .app-name span,
#display-statusbar .app-name i {
  pointer-events: none;
}

/* ==================== 到达站页面 ==================== */
.arrival-screen {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
}

.arrival-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 线路徽章（左上角） */
.line-badge-area {
  position: absolute;
  top: 20px; left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.line-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px; height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  background: #E8A317;
}

.line-name {
  font-size: 18px;
  font-weight: 500;
  color: #666666;
}

/* 站点信息区域（水平布局：站名 - 黄点 - 英文名） */
.station-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}

.station-name-cn {
  font-size: 96px;
  font-weight: 900;
  color: #000000;
  letter-spacing: 10px;
  line-height: 1.1;
  text-align: right;
}

.station-indicator {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #E8A317;
  border: 4px solid #000000;
  flex-shrink: 0;
  animation: blink-indicator 1s ease-in-out infinite;
}

@keyframes blink-indicator {
  0%, 100% { background: #E8A317; }
  50% { background: #FFFFFF; }
}

.station-name-en {
  font-size: 52px;
  font-weight: 900;
  color: #000000;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: left;
}

/* 开门侧提示（右侧） */
.door-side-badge {
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.door-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 24px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
}

.door-badge.left-side { background: #1B8B2D; }
.door-badge.right-side { background: #2B5FA8; }
.door-badge.both-side { background: #E8A317; }

.door-badge-en {
  font-size: 15px;
  font-weight: 400;
  color: #FFFFFF;
}

/* ==================== 安全提示栏（底部） ==================== */
.safety-bar {
  width: 100%;
  height: 88px;
  background: #E8A317;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 0 60px;
}

.safety-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  background: #333333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.safety-icon svg {
  width: 32px; height: 32px;
}

.safety-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.safety-text-cn {
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  letter-spacing: 2px;
}

.safety-text-en {
  font-size: 26px;
  font-weight: 400;
  color: #000000;
}

/* ==================== 出站信号页面 ==================== */
.route-screen {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  background: #F0F0F0;
  padding: 60px 50px 120px;
}

.route-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.route-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 线路图区域 */
.route-map-container {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 40px;
}

.route-map {
  width: 100%;
  position: relative;
  height: 200px;
}

/* 线路轨道 */
.route-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 9px;
  background: #C0C0C0;
  overflow: hidden;
}

.route-track-active {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 200px;
  background: #0097A7;
  border-radius: 9px;
}

/* 列车指示器（胶囊形） */
.train-indicator {
  position: absolute;
  bottom: -55px;
  right: 160px;
  width: 40px;
  height: 55px;
  background: #E8A317;
  border-radius: 20px;
  border: 3px solid #000000;
  z-index: 3;
}

/* 站点节点 */
.station-node {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 2;
}

.station-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #D0D0D0;
  border: 2px solid #A0A0A0;
  transition: all 0.3s ease;
}

.station-node.current .station-dot {
  width: 40px; height: 40px;
  background: #E8A317;
  border-color: #000000;
  border-width: 3px;
}

.station-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.station-label-cn {
  font-size: 30px;
  font-weight: 500;
  color: #999999;
  letter-spacing: 5px;
  transition: all 0.3s ease;
}

.station-node.current .station-label-cn {
  font-size: 42px;
  font-weight: 900;
  color: #000000;
  letter-spacing: 6px;
}

.station-label-en {
  font-size: 13px;
  font-weight: 400;
  color: #AAAAAA;
  text-transform: uppercase;
}

.station-node.current .station-label-en {
  font-size: 17px;
  font-weight: 500;
  color: #000000;
}

/* 换乘信息 */
.transfer-info {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(20px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transfer-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.transfer-line-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #000000;
}

.transfer-line-name {
  font-size: 16px;
  font-weight: 500;
  color: #000000;
}

/* 方向箭头 */
.direction-arrow {
  position: absolute;
  top: 50%;
  right: 180px;
  transform: translateY(-50%);
  color: #FFFFFF;
  font-size: 28px;
  z-index: 3;
}

/* ==================== 欢迎/结束页面 ==================== */
.welcome-screen {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #FFFFFF;
}

.welcome-title {
  font-size: 72px;
  font-weight: 700;
  margin-bottom: 16px;
}

.welcome-subtitle {
  font-size: 32px;
  font-weight: 400;
  opacity: 0.9;
}

/* ==================== 辅助 ==================== */
.hidden { display: none !important; }

#rec-tip {
  position: fixed;
  top: 10px; right: 10px;
  padding: 4px 10px;
  background: #ff1b12;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  z-index: 999;
  display: none;
  animation: rec-blink 1s infinite;
}

@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
