/* Go2 配送控制台样式 */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  margin: 0; padding: 0;
  background: #f5f6fa;
  color: #2f3640;
}

h1 { font-size: 1.4rem; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; color: #353b48; }

.hidden { display: none; }

#login {
  max-width: 360px;
  margin: 4rem auto;
  display: flex; flex-direction: column; gap: .6rem;
}

#dashboard { max-width: 1200px; margin: 0 auto; padding: 1rem; }
#dashboard header {
  display: flex; justify-content: space-between; align-items: center;
  background: white; padding: .75rem 1rem; border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.card {
  background: white;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  display: flex; flex-direction: column; gap: .6rem;
}

.card.video { grid-column: 1 / -1; }

input, select {
  padding: .5rem .75rem;
  border: 1px solid #dcdde1;
  border-radius: 6px;
  font-size: .95rem;
  width: 100%;
}

button {
  padding: .55rem 1rem;
  border: none; border-radius: 6px;
  background: #4cd137; color: white;
  font-weight: 600; font-size: .95rem;
  cursor: pointer;
  transition: filter .15s;
}
button:hover  { filter: brightness(1.05); }
button:active { filter: brightness(.95); }
button:disabled { background: #b2bec3; cursor: not-allowed; }

button.warn   { background: #e74c3c; }
button.ghost  { background: transparent; color: #2f3640; border: 1px solid #dcdde1; }

.cmd-btn {
  text-align: left;
  background: #487eb0;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem .8rem;
  font-size: .95rem;
}
.status-grid .label { color: #718093; }

.err { color: #e74c3c; font-size: .9rem; min-height: 1.2rem; }
.msg { color: #718093; font-size: .9rem; min-height: 1.2rem; }

video {
  width: 100%;
  background: #1e272e;
  border-radius: 6px;
  aspect-ratio: 16 / 9;
}

.video-controls {
  display: flex; align-items: center; gap: 1rem;
}
