
/* 标题 */
.page-header {
  text-align: center;
  padding: 40px 0;
}

.page-header .cn {
  font-size: 26px;
  font-weight: 600;
  color: #000;
}

.page-header .en {
  font-size: 14px;
  color: #000;
  margin-top: 6px;
}

/* 白色卡片 */
.card {
  width: 80%;
  margin: 0 auto 60px;
  /* background: #fff; */
  padding: 30px 40px;
  border-radius: 6px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
}

.tab {
  font-size: 16px;
  cursor: pointer;
  padding-bottom: 8px;
}

.tab.active {
  color: #6b4eff;
  border-bottom: 2px solid #6b4eff;
}

/* 内容 */
.tab-content {
  display: none;
}

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

/* 价格查询 */
.price-form {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
}

.price-form .form-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

select, input {
   width: 260px;   
  height: 40px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* 运费估算布局 */
.estimate-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* ❗改这里 */
}

.left {
  width: 45%;
}

.left .row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.left input, .left select {
  flex: 1;
}

.left,
.center,
.right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* ❗不要居中 */
}

.center,
.right {
  align-items: flex-start; /* 和左侧对齐 */
}

.center > *:first-child{
  margin-bottom: 30px;
}
.right > *:first-child {
  margin-bottom: 40px;
}

.left .row {
  margin-bottom: 20px;
}

.center {
  width: 160px;
}

.right {
  width: 160px;
}

/* 右边 */
.right {
  text-align: center;
}

/* 按钮 */
.btn {
  height: 40px;
  padding: 0 20px;
  border: none;
  background: #eef1f6;
  cursor: pointer;
  border-radius: 4px;
}

.btn.primary {
  background: #6b4eff;
  color: #fff;
}

/* 弹窗遮罩层 */
.shipping-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

/* 弹窗内容 */
.shipping-modal {
  background: white;
  border-radius: 8px;
  width: 100%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease-out;
}

/* 弹窗标题 */
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #333;
  background-color: #f5f5f5;
  border-radius: 50%;
}

/* 弹窗主体内容 */
.modal-body {
  padding: 24px;
}

/* 产品列表 */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 单个产品卡片 */
.product-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  background: white;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* 产品标题 */
.product-title {
  background-color: #f8f9fa;
  padding: 16px 20px;
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #007bff;
  border-bottom: 1px solid #eaeaea;
}

/* 产品详情 */
.product-details {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 14px;
  color: #666;
}

.detail-value {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* 运费特殊样式 */
.shipping-fee {
  color: #e63946;
  font-weight: bold;
  font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .product-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .shipping-modal {
    max-width: 95%;
  }
  
  .modal-body {
    padding: 16px;
  }
}

/* 动画 */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}