/* book
----------------------------------------------- */
#book {
}
/* -- class-list -- */
#book .class-list {
  margin-top: 20px;
}
#book .class-list .item {
  display: block;
  border: 1px solid #eee;
  text-align: center;
  margin-bottom: 20px;
  padding: 15px 0;
}
#book .class-list .item .img {
  margin-bottom: 10px;
}
#book .class-list .item .img img {
  height: 30px;
}
/* -- item-list -- */
#book .item-list {
  margin-top: 20px;
}
#book .item-list .item {
  display: flex;
  border: 1px solid #eee;
  margin-bottom: 20px;
  padding: 20px;
}
#book .item-list .item .img {
}
#book .item-list .item .img img {
  width: 80px;
}
#book .item-list .item .info {
  padding: 0 10px;
}
#book .item-list .item .info .name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}
#book .item-list .item .info .tag {
  display: inline-block;
  font-size: 12px;
  border: 1px solid #ddd;
  color: #555;
  line-height: 100%;
  padding: 3px 10px;
  margin-bottom: 5px;
}
#book .item-list .item .info .brief {
  color: #999;
}
/* -- detail -- */
#book .detail {
  margin-top: 20px;
}
#book .detail h1 {
  color: #333333;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}
#book .detail .content {
  color: #666666;
  line-height: 180%;
}
#book .detail .content img {
  max-width: 100%;
}
/* -- time-select -- */
#book .time-select {
  margin-top: 50px;
}
#book .time-select .date-list {
  overflow-x: auto;
  white-space: nowrap;
}
#book .time-select .date-list .item {
  display: inline-block;
  cursor: pointer;
  border: 1px solid #eee;
  padding: 10px 30px;
  text-align: center;
  margin-right: 20px;
}
#book .time-select .date-list .item.active {
  background-color: #f5f5f5;
}
#book .time-select .time-list {
  margin-top: 20px;
}
#book .time-select .time-list .item {
  display: inline-block;
  cursor: pointer;
  border: 1px solid #eee;
  padding: 20px 50px;
  text-align: center;
  margin: 0 20px 20px 0;
}
#book .time-select .time-list .item em {
  display: block;
  color: #999;
  font-size: 12px;
  margin-top: 5px;
}
#book .time-select .time-list .item .price {
  color: #999;
  font-size: 12px;
}
#book .time-select .time-list .item.booked {
  background-color: #f5f5f5;
}
#book .time-select .time-list .item.disabled {
  background-color: #f5f5f5;
}
#book .time-select .time-list .item.active {
  background-color: #19b4ea;
  color: #fff;
}
#book .time-select .time-list .item.active em {
  color: #fff;
}
#book .time-select .time-list .item.active .price {
  color: #fff;
}
#book .time-select .submit {
  margin-top: 50px;
}
/* -- contact-select -- */
#book .contact-select {
  margin-top: 20px;
}
#book .contact-select .box {
  margin-bottom: 20px;
  border: 1px solid #eee;
  padding: 20px;
}
#book .contact-select .box .item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
#book .contact-select .box .item:last-child {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
}
#book .contact-select .box .item .name {
  font-weight: bold;
}
#book .contact-select .box .item .name i {
  font-size: 18px;
  width: 15px;
  text-align: center;
  margin-right: 5px;
}
#book .contact-select .box .item .value i {
  font-size: 12px;
  display: inline-block;
  border: 1px solid #19b4ea;
  color: #19b4ea;
  border-radius: 4px;
  line-height: 100%;
  padding: 2px 5px;
  cursor: pointer;
}
#book .contact-select .textarea {
  width: 100%;
}
/* -- remark-box -- */
#book .remark-box {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #EEE;
}
#book .remark-box .remark-head {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}
#book .remark-box .textarea {
  border: none;
  background-color: #f9f7f7;
  padding: 10px;
}
/* -- custom-fields-box -- */
#book .custom-fields-box .custom-field {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}
#book .custom-fields-box .custom-field:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
#book .custom-fields-box .custom-field .label {
  font-weight: bold;
  margin-bottom: 6px;
}
#book .custom-fields-box .custom-field .label .required {
  color: #d9534f;
  margin-left: 4px;
}
#book .custom-fields-box .custom-field .value .inp-main,
#book .custom-fields-box .custom-field .value .textarea,
#book .custom-fields-box .custom-field .value select {
  width: 100%;
  box-sizing: border-box;
}
#book .custom-fields-box .custom-field .custom-radio-group .radio-item {
  display: inline-block;
  margin-right: 15px;
  cursor: pointer;
}
/* -- contact-box -- */
#book .contact-box .overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
#book .contact-box .popup {
  position: fixed;
  bottom: -100%; /* 初始位置在屏幕外 */
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 1001; /* 在遮罩层之上 */
  transition: bottom 0.3s ease-out;
}
#book .contact-box .popup.active {
  bottom: 0; /* 弹出到屏幕底部 */
}
#book .contact-box .head {
  font-size: 16px;
  font-weight: bold;
  padding: 15px 25px 0 25px;
}
#book .contact-box .head i {
  float: right;
  font-size: 20px;
}
#book .contact-box .list {
  padding: 10px;
}
#book .contact-box .list .item {
  padding: 15px;
  cursor: pointer;
}
#book .contact-box .list .item i {
  font-size: 20px;
  margin-right: 10px;
}
#book .contact-box .list .item.active {
  border: 1px solid #19b4ea;
  color: #19b4ea;
}
#book .contact-box .list .item.active i {
  color: #19b4ea;
}
/* -- book-list -- */
#book .book-list {
  margin-top: 25px;
}
#book .book-list .item {
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  background: #fafafa;
}
#book .book-list .item .head {
  padding: 10px 16px;
  border-bottom: 1px solid #EEE;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
#book .book-list .item .head::before {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background-color: #19B4EA;
  border-radius: 2px;
  margin-right: 8px; 
}
#book .book-list .item .head .time {
  font-weight: bold;
  color: #333;
}
#book .book-list .item .head .status {
  display: inline-block;
  padding: 4px 12px;
  color: #999;
}
#book .book-list .item .item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
#book .book-list .item .item-link:hover {
  background-color: #fafafa;
}
#book .book-list .item .body {
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#book .book-list .item .info {
  color: #555;
  display: flex;
  align-items: flex-start;
}
#book .book-list .item .info:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
#book .book-list .item .info em {
  display: inline-block;
  min-width: 80px;
  color: #999;
  font-weight: 500;
  flex-shrink: 0;
}
#book .book-list .item .info span {
  color: #333;
  flex: 1;
}
@media (max-width: 768px) {
  #book .book-list .item .head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  #book .book-list .item .head .status {
    align-self: flex-start;
  }
  #book .book-list .item .info {
    flex-direction: column;
  }
  #book .book-list .item .info em {
    margin-bottom: 4px;
  }
}
/* -- view-toggle (按医生 / 按排班 切换) -- */
#book .view-toggle {
  margin: 20px 0 10px 0;
}
#book .view-toggle button {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  margin-right: 0;
  transition: all 0.2s;
}
#book .view-toggle button:first-child {
  border-radius: 4px 0 0 4px;
}
#book .view-toggle button:last-child {
  border-radius: 0 4px 4px 0;
  border-left: none;
}
#book .view-toggle button.active {
  background: #19b4ea;
  color: #fff;
  border-color: #19b4ea;
}
/* -- schedule-date-list -- */
#book .schedule-date-list {
  overflow-x: auto;
  white-space: nowrap;
  margin: 15px 0;
}
#book .schedule-date-list .item {
  display: inline-block;
  cursor: pointer;
  border: 1px solid #eee;
  padding: 10px 24px;
  text-align: center;
  margin-right: 10px;
}
#book .schedule-date-list .item.active {
  background-color: #f5f5f5;
  border-color: #19b4ea;
  color: #19b4ea;
}
/* -- schedule-list -- */
#book .schedule-list {
  margin-top: 10px;
}
#book .schedule-list .doctor-card {
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 15px 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}
#book .schedule-list .doctor-card .doctor-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 140px;
}
#book .schedule-list .doctor-card .doctor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eee;
  flex-shrink: 0;
}
#book .schedule-list .doctor-card .doctor-name {
  font-size: 15px;
  font-weight: bold;
  color: #333;
}
#book .schedule-list .doctor-card .doctor-tag {
  font-size: 12px;
  color: #999;
  margin-top: 3px;
}
#book .schedule-list .doctor-card .session-row {
  display: flex;
  gap: 10px;
  flex: 1;
}
#book .schedule-list .doctor-card .session {
  flex: 1;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 12px 0;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
#book .schedule-list .doctor-card .session:hover:not(.disabled) {
  background-color: #e8f7fd;
  border-color: #19b4ea;
}
#book .schedule-list .doctor-card .session.disabled {
  background-color: #f8f8f8;
  color: #ccc;
  cursor: not-allowed;
}
#book .schedule-list .doctor-card .session .session-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}
#book .schedule-list .doctor-card .session .session-count {
  font-size: 14px;
  font-weight: bold;
  color: #19b4ea;
}
#book .schedule-list .doctor-card .session.disabled .session-count {
  color: #ccc;
}
#book .schedule-list .schedule-empty {
  text-align: center;
  color: #999;
  padding: 40px 0;
  font-size: 14px;
}
@media (max-width: 768px) {
  #book .schedule-list .doctor-card {
    flex-direction: column;
    align-items: flex-start;
  }
  #book .schedule-list .doctor-card .doctor-info {
    min-width: auto;
  }
  #book .schedule-list .doctor-card .session-row {
    width: 100%;
  }
}
/* -- time-panel (底部弹出时段面板) -- */
#book .time-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
#book .time-panel {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 1001;
  transition: bottom 0.3s ease-out;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
#book .time-panel.active {
  bottom: 0;
}
#book .time-panel .time-panel-head {
  font-size: 16px;
  font-weight: bold;
  padding: 18px 25px 10px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}
#book .time-panel .time-panel-head i {
  font-size: 18px;
  cursor: pointer;
  color: #999;
}
#book .time-panel .time-list {
  padding: 15px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#book .time-panel .time-list .item {
  display: inline-block;
  cursor: pointer;
  border: 1px solid #eee;
  padding: 12px 20px;
  text-align: center;
  border-radius: 4px;
}
#book .time-panel .time-list .item em {
  display: block;
  color: #999;
  font-size: 12px;
  margin-top: 4px;
}
#book .time-panel .time-list .item .price {
  display: block;
  color: #999;
  font-size: 12px;
}
#book .time-panel .time-list .item.active {
  background-color: #19b4ea;
  color: #fff;
  border-color: #19b4ea;
}
#book .time-panel .time-list .item.active em,
#book .time-panel .time-list .item.active .price {
  color: #fff;
}
#book .time-panel .time-list .item.disabled,
#book .time-panel .time-list .item.booked,
#book .time-panel .time-list .item.full {
  background-color: #f5f5f5;
  color: #aaa;
  cursor: not-allowed;
}
#book .time-panel .time-panel-submit {
  padding: 15px 20px 20px 20px;
}
#book .time-panel .time-panel-submit .btn {
  width: 100%;
}
/* -- view -- */
#book .view {
  margin-top: 25px;
}
#book .view .tips-box {
  background: #fffbea;
  border: 1px solid #ffe58f;
  border-radius: 6px;
  padding: 15px 20px;
  margin-bottom: 20px;
}
#book .view .tips-box .head {
  font-size: 15px;
  font-weight: bold;
  color: #b7950b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
#book .view .tips-box .head i {
  font-size: 18px;
}
#book .view .tips-box .content p {
  color: #856404;
  line-height: 1.6;
  margin: 0;
  font-size: 14px;
}
#book .view .info-card {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  margin-bottom: 20px;
  overflow: hidden;
}
#book .view .info-card .card-head {
  padding: 16px 24px;
  background: #fafafa;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#book .view .info-card .card-head .user-info .name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}
#book .view .info-card .card-head .avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e0e0;
}
#book .view .info-card .card-body {
  padding: 20px 24px;
}
#book .view .info-card .card-body .info-row {
  margin-bottom: 15px;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px dotted #e8e8e8;
}
#book .view .info-card .card-body .info-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
#book .view .info-card .card-body .info-row em {
  display: inline-block;
  min-width: 80px;
  color: #999;
  font-weight: 500;
  flex-shrink: 0;
}
#book .view .info-card .card-body .info-row span {
  color: #333;
  flex: 1;
}
#book .view .info-card .card-body .info-row .status {
  color: #1976d2;
}
#book .view .action-bar {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}
#book .view .action-bar .btn-cancel,
#book .view .action-bar .btn-back {
  display: inline-block;
  padding: 10px 30px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}
#book .view .action-bar .btn-cancel {
  background: linear-gradient(135deg, #ff5252 0%, #ff1744 100%);
  color: #fff;
  box-shadow: 0 2px 4px rgba(255, 82, 82, 0.3);
}
#book .view .action-bar .btn-cancel:hover {
  background: linear-gradient(135deg, #ff1744 0%, #ff5252 100%);
  box-shadow: 0 3px 8px rgba(255, 82, 82, 0.4);
  transform: translateY(-1px);
}
#book .view .action-bar .btn-back {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  color: #555;
  border: 1px solid #d0d0d0;
}
#book .view .action-bar .btn-back:hover {
  background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  #book .view .action-bar {
    flex-direction: column-reverse;
  }
  #book .view .action-bar .btn-cancel,
  #book .view .action-bar .btn-back {
    width: 100%;
  }
}
#book .view .reject-form {
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  display: none;
  padding: 10px;
  margin: 20px 0 10px 0;
  text-align: center;
}
#book .view .reject-form .textarea {
  width: 100%;
}
#book .view .reject-form .btn {
  width: 100%;
}
