/* 订单详情页面专用样式 */

/* 订单详情区域 */
.order-detail-section {
  padding: 60px 0;
  background-color: #f5f7fa;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 订单基本信息卡片 */
.detail-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.detail-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.detail-main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background-color: #ffffff;
}

.detail-image {
  width: 240px;
  height: 240px;
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-title {
  font-size: 24px;
  font-weight: 600;
  color: #333333;
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-meta-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  background: #F1F5F9;
  padding: 15px 17px;
  border-radius: 4px;
}

.detail-meta-bar .meta-item {
  font-size: 18px;
  font-weight: 500;
  color: #666;
}

.detail-meta-bar .meta-item:first-child {
  color: #EC1917;
}

.detail-price {
  font-size: 18px;
  font-weight: 500;
  color: #333333;
  margin: 0;
}

.detail-price .price-value {
  font-size: 20px;
  font-weight: 700;
  color: #EC1917;
}

.detail-location,
.detail-date {
  font-size: 18px;
  color: #666666;
  margin: 0;
  display: flex;
  align-items: center;
}

.detail-date-icon {
  width: 20px;
  height: 25px;
  margin-right: 11px;
}

/* 详情网格布局 */
.detail-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 20px;
}

/* 详情表格 */
.card-title {
  font-size: 24px;
  font-weight: 600;
  color: #333333;
  margin: 0 0 20px 0;
}

.detail-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* gap: 16px; */
  margin-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
}

.detail-table.shengchan {
  grid-template-columns: 1fr;
}

.table-row {
  display: flex;
}

.table-label {
  font-size: 18px;
  color: #666666;
  font-weight: 500;
  height: 60px;
  line-height: 60px;
  background-color: #F1F5F9;
  width: 140px;
  text-align: center;
}

.table-value {
  font-size: 18px;
  color: #333333;
  font-weight: 400;
  height: 60px;
  line-height: 60px;
  padding-left: 20px;
  border-top: 1px solid #f0f0f0;
  /* border-bottom: 1px solid #f0f0f0; */
  flex: 1;
}

/* 工厂要求部分 */
.factory-requirements {
  margin-top: 20px;
}

.factory-requirements .detail-table {
  margin-bottom: 0;
}

/* 联系方式卡片 */
.contact-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

contact-item-box .contact-card .card-title {
  width: 100%;
  margin-bottom: 20px;
}

.contact-info {
  margin-bottom: 24px;
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
}

.contact-item-box {
  display: flex;
  align-items: center;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.contact-item-box .contact-name,
.contact-item-box .contact-phone {
  font-size: 20px;
  font-weight: 600;
  color: #333333;
  margin: 0;
}

.contact-item-box .contact-name {
  margin-bottom: 20px;
}

.contact-avatar {
  width: 71px;
  height: 81px;
  object-fit: contain;
}


.btn-primary {
  background-color: #1890ff;
  color: #ffffff;
  border: none;
  padding: 10px 32px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: none;
}



.qrcode-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.qrcode-img {
  width: 140px;
  height: 140px;
  border-radius: 4px;
}

.qrcode-text {
  font-size: 16px;
  color: #666666;
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

.detail-type {
  display: flex;
}

.detail-type span {
  padding: 6px 15px;
  margin-right: 10px;
  background-color: RGBA(244, 245, 248, 1);
  border-radius: 4px;
  font-size: 16px;
  color: #666;
}

.detail-date-icon {
  width: 20px;
  height: 25px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .detail-info {
    width: 100%;
  }

  .table-label,
  .table-value {
    font-size: 14px;
    line-height: 40px;
    height: 40px;
    width: 80px;
  }

  .detail-meta-bar .meta-item,
  .detail-price,
  .detail-location,
  .detail-date {
    font-size: 14px;
  }

  .detail-type span {
    font-size: 12px;
    padding: 4px 10px;
  }

  .detail-date-icon {
    width: 14px;
    height: 18px;
    margin-right: 6px;
  }

  .contact-item-box .contact-name,
  .contact-item-box .contact-phone {
    font-size: 14px;
  }

  .contact-item-box .contact-name {
    margin-bottom: 12px;
  }

  .contact-avatar {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-card {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
    padding: 0 16px;
  }

  .order-detail-section {
    padding: 20px 0;
  }

  .detail-card {
    padding: 16px;
  }

  .detail-main {
    flex-direction: column;
  }

  .detail-image {
    width: 100%;
    height: 200px;
  }

  .detail-title {
    font-size: 16px;
  }

  .detail-meta-bar {
    gap: 8px;
  }

  .detail-table {
    grid-template-columns: 1fr;
  }


  .card-title {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .contact-card {
    padding: 20px 16px;
  }

  .qrcode-img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 12px;
  }

  .order-detail-section {
    padding: 16px 0;
  }

  .detail-card {
    padding: 14px;
    border-radius: 6px;
  }

  .detail-image {
    height: 180px;
  }

  .detail-title {
    font-size: 15px;
  }

  .detail-price .price-value {
    font-size: 18px;
  }

  .btn-primary {
    font-size: 13px;
    padding: 8px 24px;
    height: 36px;
  }

  .qrcode-img {
    width: 100px;
    height: 100px;
  }

  .qrcode-text {
    font-size: 11px;
  }
}