/* ================== 线路列表基础页面背景 ================== */
.xllb-container {
    padding: 0 10px 10px 10px; /* 顶部内边距去掉，让筛选栏贴紧广告 */
}

/* ================== 排序过滤栏 ================== */
.filter-bar {
    display: flex;
    background: #fff;
    height: 44px;
    align-items: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.filter-item {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #666;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 竖向分割线 */
.filter-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 14px;
    width: 1px;
    background: #eee;
}

.filter-item.active {
    color: #009688; /* 选中时的青色主色调 */
}

/* 价格排序箭头（上下小三角） */
.filter-item .arrow {
    display: inline-flex;
    flex-direction: column;
    margin-left: 4px;
    gap: 2px;
}
.filter-item .arrow::before,
.filter-item .arrow::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}
.filter-item .arrow::before {
    border-bottom: 4px solid #ccc; /* 上箭头 */
}
.filter-item .arrow::after {
    border-top: 4px solid #ccc; /* 下箭头 */
}

/* 激活状态的箭头颜色（通过 .asc 类名控制升降序） */
.filter-item.active.asc .arrow::before {
    border-bottom-color: #009688;
}
.filter-item.active:not(.asc) .arrow::after {
    border-top-color: #009688;
}

/* ================== 左图右文 产品卡片样式 ================== */
.xllb-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s;
}

.xllb-card:active {
    background-color: #f9f9f9;
}

/* 左侧图片区域 */
.xllb-img {
    width: 110px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0; /* 防止图片被挤压 */
    background: #eee;
    position: relative;
}

.xllb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* 右侧信息区域 */
.xllb-info {
    flex: 1;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0; /* 关键：防止 flex 子项文本溢出撑破容器 */
}

/* 标题：强制单行，自适应屏幕，超出显示省略号 */
.xllb-title {
    font-size: 15px;
    color: #333;
    font-weight: bold;
    line-height: 1.4;
    white-space: nowrap; /* 强制不换行 */
    overflow: hidden; /* 超出部分隐藏 */
    text-overflow: ellipsis; /* 超出部分显示省略号 */
}

/* 描述：最多两行，超出省略号 */
.xllb-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================== 核心修复：底部价格与关注度栏 ================== */
.xllb-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 修复点1：改为垂直居中对齐，避免高低错位 */
    margin-top: 8px;
    width: 100%;
}

/* 价格区域 */
.xllb-price {
    color: #ff5722;
    display: flex;
    align-items: baseline;
    white-space: nowrap; /* 修复点2：强制价格文字不换行 */
    flex-shrink: 0;      /* 修复点3：禁止被压缩 */
}

.xllb-price .currency {
    font-size: 12px;
    margin-right: 2px;
    font-weight: bold;
}

.xllb-price .num {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.xllb-price .unit {
    font-size: 12px;
    color: #999;
    margin-left: 3px;
    font-weight: normal;
}

/* 无价格时的电话咨询样式 */
.xllb-price .phone-consult {
    font-size: 16px;
    font-weight: bold;
    color: #ff5722;
    line-height: 1;
}

/* 关注度区域 */
.xllb-views {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    white-space: nowrap; /* 修复点2：强制关注度文字不换行 */
    flex-shrink: 0;      /* 修复点3：禁止被压缩 */
}

.xllb-views svg {
    margin-right: 4px;
    width: 14px;
    height: 14px;
}

/* ================== 加载状态提示样式 ================== */
.xllb-loading {
    text-align: center;
    padding: 15px 0 25px 0;
    color: #999;
    font-size: 13px;
    display: none; /* 默认隐藏，由JS控制 */
}
/* ================== [智能自适应] 列表纯文字无图排版补丁 ================== */

/* 1. 强行撤销有图时的左右布局，变成上下自由铺满 */
.xllb-card.xllb-card-nopic {
    display: block; 
    padding: 16px;       /* 上下左右留白稍微加大，大厂纯文字卡片的呼吸感 */
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* 2. 让文字信息区撑满 100% 的宽度 */
.xllb-card.xllb-card-nopic .xllb-info {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 3. 标题：清爽深黑、允许换行显示 */
.xllb-card.xllb-card-nopic .xllb-title {
    font-size: 16px;
    color: #333333;      /* 正常的深灰/纯黑色，绝不发暗 */
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    white-space: normal; /* 强制允许换行 */
}

/* 4. 简介文字：正常的阅读浅灰（不用截图里奇怪的青色），最多显示两行 */
.xllb-card.xllb-card-nopic .xllb-desc {
    font-size: 14px;
    color: #666666;      /* 极其高级舒适的正常阅读灰 */
    line-height: 1.6;
    margin-bottom: 12px;
    white-space: normal;
    
    /* 智能显示两行，超出自动变省略号 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    overflow: hidden;
}

/* 5. 底部模块：完美还原截图，把阅读量一把推到最右侧 */
.xllb-card.xllb-card-nopic .xllb-bottom {
    display: flex;
    justify-content: flex-end; /* 核心：把内部的浏览量挤到最右侧 */
    align-items: center;
    margin-top: 0;
}

/* 稍微优化一下眼睛图标和数字的间距 */
.xllb-card.xllb-card-nopic .xllb-views {
    display: flex;
    align-items: center;
    gap: 4px;            /* 图标与文字拉开一点点高级小缝隙 */
    color: #999999;
}