.repair-page {
  height: calc(100% - 60px - 96px);
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  background-color: white;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.repair-grid {
  display: grid;
  margin: 0 20px;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px;
  background-color: #f5f5f5;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.repair-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 20px;
  background-color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.repair-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.repair-item i {
  font-size: 24px;
  margin-bottom: 8px;
  color: #007aff;
}

.repair-item span {
  font-size: 14px;
  color: #333;
}

.repair-subpage {
  display: none;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  margin: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 500px;
  overflow-y: auto;
}

.repair-subpage.active {
  display: flex;
}

.order-detail-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.detail-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
  position: relative;
}

.detail-header .back-button {
  position: absolute;
  left: 16px;
  background: none;
  border: none;
  font-size: 16px;
  color: #007aff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.detail-header .back-button i {
  margin-right: 4px;
}

.detail-header .detail-title {
  flex: 1;
  text-align: center;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.manage-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  /* border-bottom: 1px solid #eee; */
}

.add-order-button {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background-color: #007aff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-order-button:hover {
  background-color: #0056b3;
}

.add-order-button i {
  margin-right: 8px;
}

.order-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
}

.tab {
  padding: 12px;
  padding-top: 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: #666;
  transition: all 0.3s ease;
}

.tab:hover {
  color: #007aff;
}

.tab.active {
  color: #007aff;
  border-bottom-color: #007aff;
}

.tab-content {
  display: none;
  padding: 0;
  padding-top: 16px;
  max-height: 350px;
}

.tab-content.active {
  display: block;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px;
}

.order-item {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.order-item:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  padding-top: 6px;
  padding-bottom: 10px;
}

.order-id {
  font-weight: bold;
  color: #333;
}

.order-status {
  padding: 4px 8px;
  background: #e8f5ff;
  color: #007aff;
  border-radius: 4px;
  font-size: 12px;
}

.order-info {
  display: grid;
  color: #666;
  font-size: 14px;
}

.order-info p {
  margin: 0;
}

.order-info strong {
  color: #333;
  margin-right: 8px;
  padding: 16px;
  background-color: #fff;
  /* border-bottom: 1px solid #eee; */
}

.acceptance-list {
  padding: 20px;
}

.acceptance-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 60px - 96px);
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
  padding-top: 50px;
  max-width: 393px;
  margin: 0;
}

.acceptance-modal .modal-content {
  background: white;
  border-radius: 12px 12px 0 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.acceptance-modal .modal-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
  background-color: white;
}

.acceptance-modal .back-button {
  background: none;
  border: none;
  padding: 8px;
  margin-right: 16px;
  cursor: pointer;
  color: #333;
}

.acceptance-modal .order-title {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 0;
}

.acceptance-modal .modal-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  z-index: 1000;
  max-width: 393px;
  margin: 0;
}

.acceptance-modal .modal-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 353px;
  max-height: 80vh;
  overflow-y: auto;
  margin: 0 auto;
}

.acceptance-modal h3 {
  margin-bottom: 20px;
  font-size: 18px;
  color: #333;
}

.acceptance-modal .form-group {
  margin-bottom: 16px;
}

.acceptance-modal .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #666;
}

.acceptance-modal .form-group input,
.acceptance-modal .form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.acceptance-modal .form-group textarea {
  height: 100px;
  resize: vertical;
}

.acceptance-modal .photo-upload {
  margin-top: 20px;
}

.acceptance-modal .upload-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  margin-top: 10px;
}

.acceptance-modal .upload-area i {
  font-size: 24px;
  color: #999;
  margin-bottom: 8px;
}

.acceptance-modal .modal-buttons {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.acceptance-modal .modal-buttons button {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.acceptance-modal .cancel-button {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  color: #666;
}

.acceptance-modal .confirm-button {
  background-color: #007aff;
  border: none;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.detail-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.loading-text {
  text-align: center;
  padding: 20px;
  color: #666;
}

.info-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-section p {
  margin: 8px 0;
  color: #333;
  line-height: 1.5;
}

.action-buttons {
  padding: 16px;
  background-color: #fff;
  border-top: 1px solid #eee;
  position: sticky;
  bottom: 0;
}

.action-button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.action-button.pending {
  background-color: #007aff;
  color: #fff;
}

.action-button.pending:hover {
  background-color: #0056b3;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 16px;
  padding-top: 16px;
  margin-bottom: 20px;
}

.page-header h2 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.form-group {
  margin-bottom: 16px;
  padding-left: 16px;
  padding-right: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #666;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.form-group textarea {
  min-height: 60px;
  resize: vertical;
}

.print-button {
  background-color: #007aff;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-left: 16px;
  margin-right: 16px;
  margin-bottom: 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.query-button,
.add-order-button {
  background-color: #007aff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.print-button:hover,
.query-button:hover,
.add-order-button:hover {
  background-color: #0056b3;
}

.query-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  margin: 20px auto;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.cancel-button {
  background-color: #f5f5f5;
  color: #666;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.confirm-button {
  background-color: #007aff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.photo-upload {
  margin-top: 20px;
}

.upload-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  margin-top: 12px;
}

.upload-area i {
  font-size: 32px;
  color: #999;
  margin-bottom: 8px;
}

.upload-area span {
  color: #666;
  font-size: 14px;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.order-id {
  color: #1890ff;
  font-weight: 500;
}

.order-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  background-color: #e6f7ff;
  color: #1890ff;
}

.order-info p {
  margin: 8px 0;
  color: #666;
  line-height: 1.5;
}

.order-info strong {
  color: #333;
  margin-right: 8px;
}

/* 维修单查询页面样式 */
.repair-query-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.repair-query-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.repair-query-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 20px;
}

.repair-query-filter-group {
    flex: 1;
    min-width: 200px;
}

.repair-query-filter-group input,
.repair-query-filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
}

.repair-query-filter-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333'%3E%3Cpath d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.repair-query-button {
    padding: 10px 24px;
    background-color: #007aff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.repair-query-button:hover {
    background-color: #0056b3;
}

.repair-query-results {
    margin: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.repair-query-result-list {
    padding: 20px;
}

.repair-query-result-item {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: center;
}

.repair-query-result-item:last-child {
    border-bottom: none;
}

.repair-query-result-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.repair-query-result-item p strong {
    color: #333;
    margin-right: 8px;
}

.repair-query-result-item .status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    width: fit-content;
}

.repair-query-result-item .status.pending {
    background-color: #fff3e0;
    color: #ff9800;
}

.repair-query-result-item .status.processing {
    background-color: #e3f2fd;
    color: #2196f3;
}

.repair-query-result-item .status.completed {
    background-color: #e8f5e9;
    color: #4caf50;
}

.order-info p {
  margin: 8px 0;
  color: #666;
  line-height: 1.5;
}

.order-info strong {
  color: #333;
  margin-right: 8px;
}
