/* ============================================================
   首页「最新预订」轮播模块样式
   参照参考站（大同和平国旅）module-order 视觉
   作用域：.wym-latest-orders，不影响站内其他模块
   ============================================================ */

.wym-latest-orders {
    background: #f5f6f8;
    border-radius: 8px;
    padding: 14px 12px 6px;
}

.wym-latest-orders h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 2px;
    line-height: 1.4;
}

/* 滚动窗口
   ⚠️ 必须给固定高度，否则容器被所有 li 撑开，SuperSlide 的 vis:5 无法裁切。
   每条实占 87px（卡片 79 + 间距 8），5 条 = 435px，正好整除 → 不会露半张。
*/
.wym-latest-orders .wym-order-scroll {
    position: relative;
    overflow: hidden;
    height: 435px;
}

.wym-latest-orders .wym-order-bd {
    overflow: hidden;
    height: 435px;
}

.wym-latest-orders .wym-order-bd ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 单张卡片
   ⚠️ box-sizing:border-box 下 height 含 padding！
      正确算法 = 内容 59 (标题39 + 间距6 + 昵称12) + padding 上下 20 = 79
      加上 margin-bottom 8 → 每条实占 87px
      标题换行数不同会让高度变化 → 必须写死，否则步长错位、上下露半张
*/
.wym-latest-orders .wym-order-bd li {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    padding: 10px 12px;
    margin-bottom: 8px;
    box-sizing: border-box;
    list-style: none;
    height: 79px;      /* 含 padding，实际内容 59 */
    overflow: hidden;
}

/* 线路标题
   固定两行高度（13px × 1.5 × 2 = 39px），保证每张卡片总高一致
*/
.wym-latest-orders .wym-order-bd li a.tit {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
    height: 39px;
    color: #2b2b2b;
    text-decoration: none;
    margin-bottom: 6px;
    word-break: break-all;
}

.wym-latest-orders .wym-order-bd li a.tit:hover {
    color: #c4651a;
}

/* 昵称 + 时间 */
.wym-latest-orders .wym-order-bd li p.bkTime {
    margin: 0;
    font-size: 12px;
    color: #9a9a9a;
    line-height: 1;
    display: flex;
    align-items: center;
}

.wym-latest-orders .wym-order-bd li p.bkTime i {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #3ec26a;
    margin-right: 6px;
    flex: 0 0 14px;
    position: relative;
    overflow: hidden;
    font-style: normal;
}

/* 头像里的小人 */
.wym-latest-orders .wym-order-bd li p.bkTime i:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    transform: translateX(-50%);
}

.wym-latest-orders .wym-order-bd li p.bkTime i:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 9px;
    height: 6px;
    border-radius: 6px 6px 0 0;
    background: #fff;
    transform: translateX(-50%);
}

/* 手机端适配 */
@media (max-width: 750px) {
    .wym-latest-orders {
        padding: 12px 10px 4px;
    }
    .wym-latest-orders h3 {
        font-size: 15px;
    }
    .wym-latest-orders .wym-order-bd li a.tit {
        font-size: 13px;
    }
    /* 手机端单条同样 87px，容器 435px */
    .wym-latest-orders .wym-order-scroll,
    .wym-latest-orders .wym-order-bd {
        height: 435px;
    }
}
