/* 全局重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'SF Pro Text', 'Microsoft YaHei', sans-serif; /* 适配Mac字体 */
}
body {
  background: #f5f7fa;
  color: #333;
  min-height: 100vh;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
/* 头部样式 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.header h1 {
  color: #2d3748;
  font-size: 28px;
}
.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
/* 按钮样式 */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
  outline: none;
}
.btn-primary { background: #4299e1; color: #fff; }
.btn-success { background: #48bb78; color: #fff; }
.btn-danger { background: #e53e3e; color: #fff; }
.btn-warning { background: #ed8936; color: #fff; }
.btn-default { background: #f3f4f6; color: #333; }
.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #4a5568;
}
input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  border-color: #4299e1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}
/* 面板与卡片样式 */
.panel {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}
.card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
/* 网格布局 */
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* 队列与列表样式 */
.queue-list {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 20px;
  border-radius: 6px;
  border: 1px solid #eee;
}
.queue-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}
.queue-item:last-child { border-bottom: none; }
.queue-item:hover { background: #f8f9fa; }
.queue-item.active { background: #e8f4f8; border-left: 4px solid #4299e1; }
/* 登录面板样式 */
.login-panel {
  max-width: 500px;
  margin: 100px auto;
  text-align: center;
}
.login-panel h1 {
  margin-bottom: 30px;
  color: #4299e1;
}
.login-form {
  text-align: left;
}
/* 显示大屏样式 */
.screen-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 40px);
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}
.screen-title {
  font-size: 48px;
  margin-bottom: 40px;
  color: #38bdf8;
}
.screen-current {
  margin-bottom: 60px;
}
.screen-current p {
  font-size: 36px;
  color: #e2e8f0;
  margin-bottom: 10px;
}
.screen-number {
  font-size: 120px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 20px rgba(66, 153, 225, 0.5);
  margin: 20px 0;
}
.screen-counter {
  font-size: 48px;
  color: #48bb78;
}
.screen-waiting {
  width: 100%;
  margin-top: 40px;
}
.screen-waiting h3 {
  font-size: 32px;
  color: #e2e8f0;
  margin-bottom: 20px;
}
.waiting-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.waiting-number {
  font-size: 28px;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e2e8f0;
}
/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  width: 500px;
  max-width: 90%;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.modal-header h3 {
  color: #2d3748;
}
.modal-close {
  cursor: pointer;
  font-size: 20px;
  color: #666;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
/* 表格样式（管理员后台） */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.data-table th, .data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.data-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #4a5568;
}
.data-table tr:hover {
  background: #f8f9fa;
}
/* 响应式适配 */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .screen-number { font-size: 80px; }
  .screen-counter { font-size: 36px; }
  .waiting-number { font-size: 20px; padding: 10px 20px; }
  .header { flex-direction: column; align-items: flex-start; gap: 15px; }
}
/* 头顶屏样式 */
.head-screen-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #fff;
  color: #333;
  padding: 20px;
  text-align: center;
}
.head-screen-item {
  margin: 15px 0;
  font-size: 48px;
  font-weight: 600;
}
.head-screen-label {
  color: #666;
  margin-right: 20px;
}
.head-screen-counter {
  color: #e53e3e;
  font-size: 64px;
  font-weight: bold;
  margin: 20px 0;
}
.head-screen-handler {
  color: #4299e1;
}