/**
 * 取包页样式（参照 WH5 TakeBagPage scoped styles）
 */
.page-take-bag {
  padding: 0;
  min-height: 100%;
  height: 100%;
  background: #f7f7f7;
  overflow: hidden;
}

/* 有顶部导航时使用减去导航后的可视高度 */
body.with-topnav .page-take-bag .tb-container {
  height: var(--app-content-height);
}

.page-take-bag .tb-container {
  height: 100vh;
  overflow: hidden;
}

.page-take-bag .tb-scroll {
  height: 100%;
  overflow-y: auto;
  position: relative;
  overscroll-behavior-y: contain;
  padding-bottom: 20px;
}

.page-take-bag .tb-order-list {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* 订单卡片 */
.page-take-bag .tb-order-item {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
}

.page-take-bag .tb-order-item:last-child {
  margin-bottom: 0;
}

.page-take-bag .tb-order-content {
  font-size: 14px;
  color: #b2b1b1;
  padding: 15px;
}

.page-take-bag .tb-info-row {
  display: flex;
  margin-bottom: 15px;
}

.page-take-bag .tb-info-row:last-child {
  margin-bottom: 0;
}

.page-take-bag .tb-info-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-take-bag .tb-info-title {
  margin-bottom: 5px;
  font-size: 14px;
  color: #b2b1b1;
  display: flex;
  align-items: center;
}

.page-take-bag .tb-info-value {
  color: #9d9c9c;
  font-size: 14px;
  word-break: break-all;
}

/* 密码显示/隐藏切换 */
.page-take-bag .tb-pwd-toggle {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  line-height: 1;
  color: #009aff;
  margin-left: 5px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.page-take-bag .tb-pwd-toggle:active {
  opacity: 0.7;
}

/* 复制图标 */
.page-take-bag .tb-copy-icon {
  font-size: 14px;
  color: #009aff;
  margin-left: 5px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.page-take-bag .tb-copy-icon:active {
  opacity: 0.7;
}

/* 操作按钮区域 */
.page-take-bag .tb-operation-btn {
  height: 45px;
  color: #fff;
  display: flex;
  border-top: 1px solid #f5f5f5;
}

.page-take-bag .tb-btn-open {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #009aff;
  border-bottom-left-radius: 10px;
  background-color: #fafafa;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 16px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.page-take-bag .tb-btn-open:active {
  background-color: #f0f0f0;
}

.page-take-bag .tb-btn-end {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #009aff;
  border-bottom-right-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 16px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.page-take-bag .tb-btn-end:active {
  background-color: #0088e6;
}

/* 加载状态 */
.page-take-bag .tb-loading-more {
  padding: 20px;
  text-align: center;
}

.page-take-bag .tb-loading-text {
  font-size: 14px;
  color: #999;
}

.page-take-bag .tb-no-more {
  padding: 20px;
  text-align: center;
}

.page-take-bag .tb-no-more-text {
  font-size: 14px;
  color: #cecece;
}

/* 空状态 */
.page-take-bag .tb-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-take-bag .tb-empty-icon {
  font-size: 60px;
  margin-bottom: 20px;
  line-height: 1;
}

.page-take-bag .tb-empty-text {
  font-size: 16px;
  color: #999;
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
}

/* 弹窗公共样式（结束订单 / 欠费） */
.page-take-bag .tb-modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 19000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.page-take-bag .tb-modal-panel {
  width: 100%;
  max-width: 340px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.page-take-bag .tb-modal-title {
  padding: 14px 16px 8px;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  text-align: center;
}

.page-take-bag .tb-modal-content {
  padding: 0 16px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.page-take-bag .tb-end-reason {
  margin-bottom: 10px;
  color: #d93026;
  word-break: break-all;
}

/* 结束订单弹窗状态行 */
.page-take-bag .tb-end-status-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.6;
}

.page-take-bag .tb-end-label {
  color: #999;
  flex-shrink: 0;
}

.page-take-bag .tb-end-value {
  color: #333;
  word-break: break-all;
}

.page-take-bag .tb-end-desc {
  margin-top: 8px;
}

.page-take-bag .tb-end-submsg {
  margin-top: 8px;
  color: #666;
  word-break: break-all;
}

.page-take-bag .tb-link {
  color: #1677ff;
  text-decoration: underline;
}

.page-take-bag .tb-arrears-num {
  font-size: 18px;
  font-weight: 600;
  color: #e4393c;
}

.page-take-bag .tb-arrears-tip {
  margin-top: 8px;
  color: #666;
  font-size: 13px;
}

.page-take-bag .tb-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid #eee;
}

.page-take-bag .tb-modal-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 15px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.page-take-bag .tb-modal-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.page-take-bag .tb-modal-btn:active {
  background: rgba(0, 0, 0, 0.04);
}

.page-take-bag .tb-btn-secondary {
  color: #666;
  border-right: 1px solid #eee;
}

.page-take-bag .tb-btn-primary {
  color: #1677ff;
  font-weight: 600;
}

@media (max-width: 375px) {
  .page-take-bag .tb-order-content {
    padding: 12px;
    font-size: 13px;
  }

  .page-take-bag .tb-info-row {
    margin-bottom: 12px;
  }

  .page-take-bag .tb-info-title {
    font-size: 13px;
  }

  .page-take-bag .tb-info-value {
    font-size: 13px;
  }

  .page-take-bag .tb-operation-btn {
    height: 40px;
    font-size: 15px;
  }
}