* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  width: 100%; height: 100%;
  font-family: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  overflow: hidden;
  transition: background 0.15s ease;
  user-select: none;
}

body.idle { background: #d8d8d8; }

/* ── 网络状态灯 ── */
.net-dot {
  position: fixed; top: 16px; right: 16px; z-index: 100;
  width: 14px; height: 14px; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
  transition: background 0.4s;
}
.net-unknown { background: #888; }
.net-green   { background: #22cc44; box-shadow: 0 0 8px #22cc44aa, 0 0 0 2px rgba(255,255,255,0.5); }
.net-yellow  { background: #ffcc00; box-shadow: 0 0 8px #ffcc00aa, 0 0 0 2px rgba(255,255,255,0.5); }
.net-red     { background: #ff2020; box-shadow: 0 0 8px #ff2020aa, 0 0 0 2px rgba(255,255,255,0.5); }

/* ── 机位选择栏 ── */
.cam-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(12px);
  padding: 20px 16px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  transform: translateY(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.cam-bar.visible { transform: translateY(0); }

.cam-label {
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em; text-transform: uppercase;
}

.cam-btns {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}

.cam-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  font-size: 1.3rem; font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.cam-btn:active { transform: scale(0.92); }
.cam-btn.active {
  background: #0a84ff;
  border-color: #0a84ff;
  color: #fff;
  box-shadow: 0 0 16px rgba(10,132,255,0.6);
}

/* ── 主显示区 ── */
.main-display {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  cursor: pointer;
}

.cam-num {
  font-size: clamp(120px, 40vw, 260px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color 0.15s;
}

.status-label {
  font-size: clamp(1.4rem, 6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  min-height: 1.4em;
  transition: color 0.15s;
}

.tap-hint {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-top: 8px;
  opacity: 0.5;
  transition: color 0.15s;
}

/* 横屏适配 */
@media (orientation: landscape) {
  .cam-num { font-size: clamp(80px, 30vh, 200px); }
}

/* ── 品牌水印 ── */
.brand-mark {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  opacity: 0.3;
  transition: opacity 0.25s;
  padding: 8px 18px 7px;
  background: rgba(0,0,0,0.22);
  border-radius: 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}
.brand-mark:active { opacity: 0.9; }

.bm-logo {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bm-mark {
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #0a84ff 0%, #34cfff 100%);
  padding: 1px 6px 2px;
  border-radius: 5px;
  line-height: 1.35;
}
.bm-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.bm-tag {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em;
  white-space: nowrap;
}
