@import "../../../../themes/t.cell.scss";
@import "../../../../themes/page.scss";
@import "../../assets/iconfont/iconfont.wxss";

/* module/order/pages/logistics-detail/logistics-detail.scss */
.page-scroll__container {
  flex: 0 1 auto;
  height: var(--page-container-safeHeight, 100vh);
  background: #f5f5f5;
  // padding-bottom: calc(24rpx + env(safe-area-inset-bottom));
  box-sizing: border-box;
  // padding-top: 10px;
}

.logistics-page {
  padding-bottom: 32rpx;
}

.map-header {
  height: 320rpx;
  background: linear-gradient(180deg, #dde6f0 0%, #e8edf4 45%, #f0f2f5 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.map-header__map {
  width: 100%;
  flex: 1;
  min-height: 264rpx;
}

.map-header__fallback {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32rpx;
}

.map-header__fallback-text {
  font-size: 28rpx;
  color: rgba(0, 0, 0, 0.45);
}

.map-header__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  pointer-events: none;
}

.map-header__inner::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 38%;
  height: 2rpx;
  background: rgba(255, 255, 255, 0.7);
  transform: rotate(-8deg);
}

.map-header__inner::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 15%;
  top: 55%;
  height: 2rpx;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(6deg);
}

.map-header__city {
  font-size: 28rpx;
  color: rgba(0, 0, 0, 0.35);
  font-weight: 500;
}

.logistics-card {
  padding: 32rpx 28rpx 28rpx;
  background: #fff;
  box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1;
}

.carrier-row {
  display: flex;
  align-items: center;
  margin-bottom: 28rpx;
}

.carrier-row__logo {
  width: 50rpx;
  height: 50rpx;
  border-radius: 50%;
  background: #1e6ee8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carrier-row__logo-text {
  font-size: 22rpx;
  color: #fff;
  font-weight: 600;
}

.carrier-row__info {
  flex: 1;
  min-width: 0;
  margin-left: 20rpx;
  display: flex;
  gap: 8rpx;
  align-items: center;
}

.carrier-row__name {
  font-size: 24rpx;
  font-weight: 600;
  color: #888;
  margin-right: 3px;
}

.carrier-row__no {
  font-size: 24rpx;
  color: #888;
}

.carrier-row__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #888;
}

.carrier-row__action {
  font-size: 26rpx;
  padding: 8rpx 12rpx;
}

.carrier-row__divider {
  width: 1rpx;
  height: 28rpx;
  background: #e5e5e5;
  margin: 0 4rpx;
}

.trace-list {
  position: relative;
}

.trace-list__axis {
  position: absolute;
  left: 16rpx;
  top: 22rpx;
  bottom: 26rpx;
  width: 0;
  border-left: 2rpx dashed #d8d8d8;
}

.trace-item {
  position: relative;
  padding-left: 48rpx;
  padding-bottom: 8rpx;
}

.trace-item--current {
  padding-bottom: 16rpx;
}

.trace-item--expand {
  padding-bottom: 0;
}

.trace-item__dot {
  position: absolute;
  left: 16rpx;
  top: 10rpx;
  width: 16rpx;
  height: 16rpx;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.trace-item__dot--active {
  background: #ff6b00;
  box-shadow: 0 0 0 6rpx rgba(255, 107, 0, 0.22);
}

.trace-item__dot--grey {
  background: #c8c8c8;
}

.trace-item__dot--hollow {
  width: 14rpx;
  height: 14rpx;
  top: 12rpx;
  border: 2rpx solid #bbb;
  background: #fff;
}

.trace-item__body--inline {
  display: flex;
  align-items: center;
  gap: 8rpx;
}

.trace-item__title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16rpx;
  margin-bottom: 12rpx;
}

.trace-item__status {
  font-size: 28rpx;
  font-weight: 600;
  color: #333;
}

.trace-item__status--accent {
  font-size: 32rpx;
  font-weight: 700;
  color: #ff6b00;
}

.trace-item__time {
  font-size: 24rpx;
  color: #999;
}

.trace-item__time--accent {
  font-size: 26rpx;
  color: #ff6b00;
}

.trace-item__desc {
  font-size: 26rpx;
  color: #888;
  line-height: 1.55;
  display: block;
}

.trace-item__desc--muted {
  color: #888;
}

.trace-expand__text {
  font-size: 26rpx;
  color: #999;
}

.logistics-divider {
  height: 1rpx;
  background: #eee;
  margin: 28rpx 0 24rpx;
}

.addr-block {
  display: flex;
  align-items: flex-start;
  gap: 12rpx;
}

.addr-block__icon {
  flex-shrink: 0;
  margin-top: 6rpx;
}

.addr-block__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 5px;
}

.addr-block__address {
  font-size: 28rpx;
  font-weight: 600;
  color: #333;
  line-height: 1.45;
  width: 100%;
  margin-bottom: 10rpx;
}

.addr-block__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12rpx 16rpx;
  width: 100%;
  color: #888;
  font-size: 22rpx;
}

.address-name {
  font-weight: 500;
  line-height: 1.4;
}

.address-phone {
  font-weight: 400;
  line-height: 1.4;
}

.addr-block__tag {
  font-size: 18rpx !important;
  color: #888 !important;
  padding: 0rpx 2rpx !important;
}

.addr-block__tag--orange {
  color: #ff6b00 !important;
  border-color: rgba(255, 107, 0, 0.45) !important;
}


.addr-block__virtual-arrow {
  margin-left: -4rpx;
}

.goods-section {
  margin: 24rpx 0rpx 0;
  padding: 8rpx 24rpx 24rpx;
  background: #fff;
}

.goods-item {
  display: flex;
  align-items: flex-start;
  padding: 24rpx 0;
  border-bottom: 1rpx solid #f0f0f0;
}

.goods-item:last-child {
  border-bottom: none;
}

.goods-item__img {
  flex-shrink: 0;
  margin-right: 20rpx;
}

.goods-item__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10rpx;
}

.goods-item__title {
  font-size: 28rpx;
  color: #333;
  margin-bottom: 10px;
}

.goods-item__spec {
  font-size: 24rpx;
  color: #999;
}

.goods-item__price-col {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 12rpx;
  align-items: flex-end;
}

.goods-item__price {
  font-size: 28rpx;
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
}

.goods-item__qty {
  font-size: 24rpx;
  color: #999;
}