/* ==========================================================================
   order.css —— 我的订单
   样式口径与订单页保持统一
   ========================================================================== */

body { background: #EDF1F4; }

/* 订单页底部导航选中色与首页不同：此处为 #008661（绿） */
/* 原实现订单页的选中色是 #008661（绿），与首页的 #66f 不同 */
.order-body .controls-btns-item-selected { color: #008661; }

.order-page { padding-bottom: 30px; }

/* ---------- 页头 ---------- */
.search_wrap {
  position: relative;
  padding: 10px;
  background-color: #fff;
}

.search_wrap h2 {
  text-align: center;
  font-weight: 700;
  font-size: 18px;
}

.goback {
  position: absolute;
  top: 10px;
  left: 15px;
  z-index: 1000;
  width: 23px;
  cursor: pointer;
}

/* ---------- 订单卡片 ---------- */
.title-box {
  margin: 10px;
  padding: 8px 13px;
  background-color: #fff;
  border-radius: 10px;
}

.price-box {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  margin-bottom: 8px;
  color: #000;
  font-size: 15px;
}

.time { margin-right: 8px; color: #999; font-size: 12px; }

.top-text { color: #e75718; font-size: 13px; }
.top-text.is-paid { color: #008661; }

.box {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid;
  margin-bottom: 5px;
}

.right-box { font-size: 30px; margin: 0 0 5px 15px; position: relative; display: inline-block; }

/* 视频订单在缩略图右上角打一个「视频」标，跟图片订单区分开 */
.media-tag {
  position: absolute;
  top: -4px;
  right: -6px;
  padding: 1px 5px;
  border-radius: 8px;
  background: #fe2c55;
  color: #fff;
  font-size: 10px;
  line-height: 14px;
  white-space: nowrap;
}

/* 待付款的视频订单：红字说明「需付款后由服务端合成」 */
.video-note {
  margin: 0 15px 2px;
  font-size: 12px;
  line-height: 1.6;
  color: #fe2c55;
}

.center-box { font-size: 13px; }

.center-box .bottom {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
}

.goods_img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.btn-box { display: flex; justify-content: space-between; }

.btn { margin-top: 10px; text-align: right; }

.btn .pill {
  display: inline-block;
  padding: 3px 10px;
  margin-left: 5px;
  border: 1px solid #999;
  border-radius: 10px;
  font-size: 13px;
  color: #000;
  background: #fff;
  cursor: pointer;
}

.btn .pill:active { background: #f2f2f2; }
.btn .pill.is-primary { border-color: #e75718; color: #e75718; }

.total-price { font-size: 15px; color: #e75718; }

/* ---------- 客服 ---------- */
.kefu {
  padding: 20px 10px 10px;
  text-align: center;
  font-size: 14px;
}

.kefu a { color: var(--c-accent); }

/* ---------- 空状态 ---------- */
.order-empty {
  margin: 10px;
  padding: 50px 16px;
  background: #fff;
  border-radius: 10px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

.order-empty .big { font-size: 15px; color: #666; margin-bottom: 8px; }

.order-empty .go {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 22px;
  border-radius: 20px;
  background: var(--c-accent);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

/* ---------- 桌面端：居中收窄，避免卡片被拉满 ---------- */
@media (min-width: 768px) {
  .order-page { max-width: 640px; margin: 0 auto; }
}
