/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  background-color: #f5f7fa;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

/* 顶部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* 主内容区 */
.main-content {
  margin-top: 80px;
  padding: 20px;
}

/* 卡片样式 */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
  padding: 20px;
  margin-bottom: 20px;
}

/* 状态标签 */
.status-tag {
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
}

/* 日历样式 */
.calendar-day {
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  background-color: #f5f7fa;
  border: 1px solid #e4e7ed;
}

.calendar-day.is-empty {
  background-color: transparent;
  border-color: transparent;
  cursor: default;
}

.calendar-day.active {
  background-color: #409eff;
  color: #fff;
  border-color: #409eff;
}

.calendar-day:hover:not(.active):not(.is-empty) {
  background-color: #ecf5ff;
  border-color: #b3d8ff;
}

.calendar-day.has-reservations {
  background-color: #ecf5ff;
  border-color: #409eff;
  color: #409eff;
}

.calendar-day.low-slots {
  background-color: #fdf6ec;
  border-color: #e6a23c;
  color: #e6a23c;
}

.calendar-day.over-limit {
  background-color: #fef0f0;
  border-color: #f56c6c;
  color: #f56c6c;
}

/* 打印区域 */
.print-area {
  min-height: 320px;
  border: 2px dashed #409eff;
  padding: 15px;
  background: #fff;
  border-radius: 4px;
}

/* 打印组件 */
.print-item {
  display: inline-block;
  padding: 6px 12px;
  margin: 5px;
  border: 1px dashed #dcdfe6;
  border-radius: 4px;
  cursor: move;
  user-select: none;
  background: #fff;
  transition: all 0.3s;
}

.print-item:hover {
  background-color: #ecf5ff;
  border-color: #409eff;
}

/* 工具类 */
.w-full {
  width: 100%;
}

.h-16 {
  height: 64px;
}

.w-24 {
  width: 96px;
}

.h-24 {
  height: 96px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.border-b {
  border-bottom: 1px solid #dcdfe6;
}

.border-dashed {
  border-style: dashed;
}

.my-1 {
  margin-top: 4px;
  margin-bottom: 4px;
}

.text-base {
  font-size: 16px;
}

.font-bold {
  font-weight: 700;
}

.text-xs {
  font-size: 12px;
}

.mt-1 {
  margin-top: 4px;
}

.text-gray {
  color: #909399;
}

.space-y-1 > * + * {
  margin-top: 4px;
}

/* 表格样式优化 */
.el-table {
  width: 100% !important;
}

.el-table__header th {
  text-align: center !important;
  padding: 8px 0 !important;
}

.el-table__body td {
  text-align: center !important;
  padding: 8px 0 !important;
}

.el-table .cell {
  padding: 0 10px;
  word-break: break-word;
  line-height: 1.5;
}

.el-table__body-wrapper {
  overflow-x: auto;
}

/* 按钮样式优化 */
.el-button--small {
  padding: 5px 8px;
  font-size: 12px;
}

.el-button--small + .el-button--small {
  margin-left: 4px;
}

/* 预约表单按钮容器 */
.reservation-button-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.reservation-button-group .el-button {
  width: 100% !important;
  height: 40px !important;
  font-size: 16px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 标签样式优化 */
.el-tag--small {
  padding: 0 6px;
  font-size: 11px;
  line-height: 18px;
}

/* 响应式优化 */
@media (max-width: 1200px) {
  .el-col {
    margin-bottom: 15px;
  }
  
  .el-table .cell {
    padding: 0 5px;
    font-size: 13px;
  }
  
  .el-button--small {
    padding: 4px 6px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .el-table {
    font-size: 12px;
  }
  
  .el-table__header th,
  .el-table__body td {
    padding: 6px 0 !important;
  }
  
  .el-tag--small {
    padding: 0 4px;
    font-size: 10px;
  }
}
