/* 服务页面样式 */
.service-container {
  display: flex;
  height: calc(100vh - 60px - 60px - 50px); /* 减去顶部导航栏、底部导航栏和结算栏的高度 */
  overflow: hidden;
}

/* 左侧类别导航 */
.category-sidebar {
  width: 90px;
  background-color: #f8f8f8;
  overflow-y: auto;
  border-right: 1px solid #eee;
  flex-shrink: 0;
}

.category-item {
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  color: #666;
  position: relative;
  cursor: pointer;
}

.category-item.active {
  color: #1CBBB4;
  background-color: #fff;
}

.category-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background-color: #1CBBB4;
}

.category-icon {
  font-size: 20px;
  margin-bottom: 5px;
}

.category-name {
  font-size: 12px;
}

/* 右侧内容区域 */
.content-area {
  flex: 1;
  overflow-y: auto;
  background-color: #fff;
  padding-bottom: 20px;
}

.content-section {
  display: none;
  padding: 0 15px;
}

.content-section.active {
  display: block;
}

.section-header {
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 15px;
}

.section-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 5px;
}

.section-desc {
  font-size: 14px;
  color: #999;
  margin: 0;
}

/* 排队预约样式 */
.queue-form {
  background-color: #fff;
  border-radius: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 10px;
}

.form-control {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #eee;
  background-color: #f8f8f8;
  font-size: 15px;
  color: #333;
}

.room-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.room-type {
  width: calc(33.33% - 7px);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #eee;
  text-align: center;
  cursor: pointer;
}

.room-type.active {
  border-color: #1CBBB4;
  background-color: rgba(28, 187, 180, 0.05);
}

.room-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}

.room-price {
  font-size: 12px;
  color: #FF5722;
}

.time-selector {
  width: 100%;
}

.time-select {
  width: 100%;
}

.queue-status {
  display: flex;
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.status-item {
  flex: 1;
  text-align: center;
}

.status-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.status-value {
  font-size: 16px;
  font-weight: 600;
  color: #1CBBB4;
}

.queue-btn {
  width: 100%;
  height: 45px;
  background-color: #1CBBB4;
  color: white;
  border-radius: 22.5px;
  font-size: 16px;
  font-weight: 500;
  border: none;
}

/* 服务列表样式 */
.service-list {
  padding: 0;
}

.service-item {
  background-color: white;
  border-radius: 10px;
  margin-bottom: 15px;
  padding: 15px;
  display: flex;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.service-image {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
  margin-top: 0;
}

.service-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  margin-top: 0;
  flex: 1;
}

.service-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-price {
  font-size: 16px;
  color: #FF5722;
  font-weight: 500;
}

.service-time {
  font-size: 14px;
  color: #999;
}

.select-btn {
  background-color: #1CBBB4;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-btn:hover {
  transform: scale(1.1);
  background-color: #17a39d;
}

.select-btn i {
  font-size: 14px;
}

/* 底部结算栏样式 */
.settlement-bar {
  position: fixed;
  bottom: 60px; /* 底部导航栏的高度 */
  left: 0;
  right: 0;
  max-width: 414px;
  margin: 0 auto;
  height: 50px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 99;
}

.cart-info {
  display: flex;
  align-items: center;
}

.cart-icon {
  position: relative;
  margin-right: 10px;
}

.cart-icon i {
  font-size: 24px;
  color: #1CBBB4;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #ff4d4f;
  color: white;
  font-size: 12px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 4px;
  font-weight: bold;
}

.total-price {
  font-size: 18px;
  font-weight: bold;
  color: #FF5722;
}

.settlement-btn {
  background-color: #1CBBB4;
  color: white;
  height: 36px;
  padding: 0 20px;
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.settlement-btn.disabled {
  background-color: #ccc;
  pointer-events: none;
}

/* 餐饮服务样式 */
.food-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.food-item {
  background-color: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.food-image {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.food-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.food-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.food-name {
  font-size: 15px;
  font-weight: 500;
}

.food-price {
  font-size: 15px;
  color: #FF5722;
}

.food-counter {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.counter-btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #f5f5f5;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: #333;
  cursor: pointer;
}

.counter-btn.minus {
  color: #999;
}

.counter-btn.plus {
  background-color: #1CBBB4;
  color: white;
}

.counter-input {
  width: 30px;
  text-align: center;
  border: none;
  font-size: 15px;
  background-color: transparent;
}

/* 技师选择样式 */
.technician-list {
  margin: 0 15px;
}

.technician-item {
  background-color: white;
  border-radius: 10px;
  margin-bottom: 15px;
  padding: 15px;
  display: flex;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.technician-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  position: relative;
}

.technician-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.technician-status {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.technician-status.free {
  background-color: rgba(28, 187, 180, 0.2);
  color: #1CBBB4;
}

.technician-status.busy {
  background-color: rgba(255, 87, 34, 0.2);
  color: #FF5722;
}

.technician-info {
  flex: 1;
}

.technician-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}

.technician-detail {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.technician-specialty {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.technician-rating {
  font-size: 14px;
  color: #FF9800;
}

.select-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #1CBBB4;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
}

.radio-inner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #1CBBB4;
}

.radio-inner.empty {
  display: none;
}

/* 预约时间样式 */
.time-picker {
  margin: 0 15px;
  background-color: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.date-select {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.date-item {
  width: 23%;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  border: 1px solid #eee;
}

.date-item.active {
  border-color: #1CBBB4;
  background-color: rgba(28, 187, 180, 0.05);
}

.date-day {
  font-size: 14px;
  margin-bottom: 5px;
}

.date-value {
  font-size: 14px;
  color: #666;
}

.hour-select {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hour-item {
  width: calc(25% - 8px);
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  border: 1px solid #eee;
  font-size: 14px;
}

.hour-item.active {
  border-color: #1CBBB4;
  background-color: rgba(28, 187, 180, 0.05);
  color: #1CBBB4;
}

/* 门店选择样式 */
.store-select {
  margin: 0 15px;
}

.store-dropdown {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #eee;
  background-color: white;
  font-size: 15px;
  color: #333;
}

/* 订单摘要样式 */
.order-summary {
  margin: 20px 15px;
  background-color: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.summary-label {
  font-size: 15px;
  color: #666;
}

.summary-value {
  font-size: 15px;
  color: #333;
}

.total {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.total .summary-label,
.total .summary-value {
  font-weight: bold;
  color: #FF5722;
  font-size: 16px;
}

/* 提交按钮样式 */
.submit-section {
  margin: 20px 15px 30px;
}

.submit-btn {
  width: 100%;
  height: 45px;
  background-color: #1CBBB4;
  color: white;
  border-radius: 22.5px;
  font-size: 16px;
  font-weight: 500;
}

/* 响应式调整 */
@media screen and (max-width: 360px) {
  .category-sidebar {
    width: 80px;
  }
  
  .service-image {
    width: 80px;
    height: 80px;
  }
} 