.main-container {
  width: 1200px;
  margin: 20px auto;
  position: relative;
  z-index: 2;
  margin-bottom: 110px;
}
.calc-card {
  background: linear-gradient(135deg, #f0e8d8, #e8e0c8);
  border: 1px solid rgba(168, 136, 96, 0.45);
  border-radius: 28px;
  padding: 28px 32px;
  box-shadow: 0 12px 28px rgba(100, 70, 40, 0.2);
}
.calc-header {
  text-align: center;
  margin-bottom: 28px;
  border-bottom: 2px solid rgba(232, 90, 70, 0.3);
  padding-bottom: 16px;
}
.calc-header h1 {
  font-size: 32px;
  color: #e87a6f;
}
.product-info {
  background: rgba(232, 90, 70, 0.06);
  border-radius: 30px;
  padding: 16px 24px;
  margin-bottom: 25px;
  border-left: 4px solid #e87a6f;
  text-align: left;
}
.product-info h3 {
  font-size: 24px;
  color: #e87a6f;
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-info .product-attr {
  color: #b85c40;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  background: rgba(232, 90, 70, 0.1);
  display: inline-block;
  padding: 2px 12px;
  border-radius: 20px;
}
.product-info p {
  color: #786040;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 6px;
}
.product-info small {
  color: #9a7a58;
  line-height: 1.4;
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  margin-top: 10px;
}
.control-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  background: rgba(232, 90, 70, 0.04);
  padding: 20px;
  border-radius: 28px;
  align-items: flex-end;
}
.control-group {
  flex: 1 1 160px;
  min-width: 140px;
}
.control-group label {
  display: block;
  font-weight: 600;
  color: #e87a6f;
  margin-bottom: 8px;
}
.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}
.select-trigger {
  background: #fffcf5;
  border: 1px solid #dbbd93;
  border-radius: 40px;
  padding: 10px 14px;
  font-size: 14px;
  color: #584830;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}
.select-trigger:hover,
.select-trigger.open {
  border-color: #e87a6f;
  background: #fff9f0;
}
.select-trigger .arrow {
  font-size: 12px;
  color: #e87a6f;
  transition: transform 0.2s;
}
.select-trigger.open .arrow {
  transform: rotate(180deg);
}
.select-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  background: #fffcf5;
  border: 1px solid #e87a6f;
  border-radius: 16px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  display: none;
}
.select-dropdown.show {
  display: block;
}
.select-dropdown::-webkit-scrollbar {
  width: 6px;
}
.select-dropdown::-webkit-scrollbar-track {
  background: #f0e8d8;
  border-radius: 10px;
}
.select-dropdown::-webkit-scrollbar-thumb {
  background: #e87a6f;
  border-radius: 10px;
}
.select-option {
  padding: 10px 14px;
  font-size: 14px;
  color: #584830;
  cursor: pointer;
  transition: background 0.1s;
}
.select-option:hover {
  background: rgba(232, 90, 70, 0.1);
  color: #e87a6f;
}
.select-option.selected {
  background: rgba(232, 90, 70, 0.2);
  color: #e87a6f;
  font-weight: 500;
}
.select-option.highlight {
  background: rgba(232, 90, 70, 0.25);
  color: #e87a6f;
}
#quantityInput,
.price-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 40px;
  border: 1px solid #dbbd93;
  background: #fffcf5;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
}
#quantityInput:focus,
.price-input:focus {
  border-color: #e87a6f;
  outline: none;
  box-shadow: 0 0 0 2px rgba(232, 90, 70, 0.2);
}
.btn-reset {
  background: linear-gradient(135deg, #e87a6f, #f0d99c);
  border: none;
  padding: 10px 20px;
  border-radius: 40px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  white-space: nowrap;
}
.btn-reset:hover {
  transform: scale(1.02);
  background: linear-gradient(135deg, #d65a4a, #f0d99c);
  box-shadow: 0 0 12px rgba(232, 90, 70, 0.5);
}
.materials-table {
  width: 100%;
  border-radius: 20px;
  overflow-x: auto;
  background: #faf5eb;
  border-collapse: separate;
  border-spacing: 0;
}
.materials-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 20px;
  overflow: hidden;
  table-layout: auto;
}
.materials-table th,
.materials-table td {
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid #ecdbba;
  vertical-align: middle;
  font-size: 14px;
}
.materials-table th {
  background: #f5e8da;
  color: #e87a6f;
  font-weight: 600;
  font-size: 14px;
}
.material-name {
  font-weight: 600;
  text-align: left;
}
.price-input {
  width: 100px;
  padding: 6px;
  border-radius: 20px;
  border: 1px solid #dbbd93;
  text-align: center;
}
.materials-table tbody tr {
  transition: all 0.2s ease;
}
.materials-table tbody tr:hover {
  background: rgba(232, 90, 70, 0.08);
  box-shadow: inset 0 0 0 1px rgba(232, 90, 70, 0.3);
  cursor: pointer;
}
.total-cost {
  margin-top: 25px;
  text-align: right;
  background: #f9efdf;
  padding: 16px 24px;
  border-radius: 48px;
  font-size: 20px;
  font-weight: bold;
  color: #b85c40;
  border-left: 6px solid #e87a6f;
  margin-top: 20px;
}
.total-cost span {
  font-size: 28px;
  color: #e87a6f;
  margin-left: 8px;
}
.cost-tip {
  margin-top: 20px;
}
@media (max-width: 1350px) {
  .main-container {
    width: 98%;
  }
}
@media (max-width: 900px) {
  .materials-table th,
  .materials-table td {
    font-size: 12px;
    padding: 8px 4px;
  }
  .price-input {
    width: 70px;
  }
  .control-group {
    flex-basis: 140px;
    min-width: 120px;
  }
  .btn-reset {
    white-space: normal;
    font-size: 13px;
  }
}
.product-title-img {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
.product-title-img h3 {
  display: inline-block;
  margin: 0;
}
.product-img-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  vertical-align: middle;
}
.material-img-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-right: 6px;
  vertical-align: middle;
}
/* 采集地点行 - 占满整行 */
.location-row td {
  display: block;
  width: 502% !important;
  padding: 4px 8px;
  background: #f9efdf;
  border-bottom: 1px solid #ecdbba;
  box-sizing: border-box;
  text-align: left;
}
.location-row td {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.location-icon {
  margin-right: 6px;
  color: #e87a6f;
  flex-shrink: 0;
  margin-left: 0;
}
.location-text {
  font-size: 12px;
  color: #7a5a3a;
  background: #f9efdf;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height:2;
  flex: 1;
  text-align: left;
}
.section-title{
  font-size:14px;
  margin-bottom:15px;
}

.materials-table th{
  width:20%;
}
.location-row .fas{
  margin-left:20px;
}