/* ==================== 生活服务列表页 - 仿UI设计图 ==================== */

/* 主体区域 */
.fw-main {
    padding: 20px 0 40px;
    background: #fff;
}

.fw-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 分类标签 */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #fff;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.category-tabs a {
    padding: 8px 18px;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.category-tabs a:hover {
    background: #ff6a00;
    color: #fff;
}

.category-tabs a.active {
    background: #ff6a00;
    color: #fff;
}

/* ==================== 两栏布局 - 左大右小 ==================== */
.fw-layout {
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 15px;
}

/* 左侧信息列表 */
.fw-left {
    min-width: 0;
}

/* 右侧推广信息 */
.fw-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 筛选区域 */
.filter-section {
    background: #fff;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 12px;
    border: 1px solid #f0f0f0;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    min-width: 70px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-options a {
    padding: 5px 14px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.filter-options a:hover {
    background: #ff6a00;
    color: #fff;
}

.filter-options a.active {
    background: #ff6a00;
    color: #fff;
}

.filter-options a.active .filter-count {
    color: #fff;
}

.filter-count {
    font-size: 12px;
    color: #999;
    margin-left: 4px;
}

/* 列表工具栏 */
.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 4px;
    padding: 12px 20px;
    margin-bottom: 12px;
    border: 1px solid #f0f0f0;
}

.sort-options {
    display: flex;
    gap: 5px;
}

.sort-options a {
    padding: 6px 14px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.sort-options a:hover {
    background: #ff6a00;
    color: #fff;
}

.sort-options a.active {
    background: #ff6a00;
    color: #fff;
}

.list-stats {
    font-size: 13px;
    color: #999;
}

.list-stats strong {
    color: #ff6a00;
    font-weight: 700;
}

/* ==================== 左侧列表项样式 ==================== */
.fw-list {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.fw-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

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

.fw-item:hover {
    background: #fafafa;
}

.fw-item.sticky {
    background: #fffbf0;
    border-left: 3px solid #ff6a00;
}

.fw-item.sticky .item-title a {
    color: #ff6a00;
    font-weight: 600;
}

/* 左侧图片区域 */
.item-img {
    width: 140px;
    height: 105px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    margin-right: 15px;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fw-item:hover .item-img img {
    transform: scale(1.05);
}

/* 中间内容区域 */
.item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-title {
    font-size: 16px;
    font-weight: 500;
    color: #0066cc;
    margin-bottom: 6px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-title a {
    color: #0066cc;
}

.item-title a:hover {
    color: #ff6a00;
    text-decoration: underline;
}

.item-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.tag-sticky {
    display: inline-block;
    padding: 2px 8px;
    background: #ff6a00;
    color: #fff;
    font-size: 11px;
    border-radius: 3px;
    font-weight: 500;
}

.tag-category {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f5e9;
    color: #4caf50;
    font-size: 11px;
    border-radius: 3px;
}

.tag-vip {
    display: inline-block;
    padding: 2px 8px;
    background: #fff3e0;
    color: #ff9800;
    font-size: 11px;
    border-radius: 3px;
}

.item-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #bbb;
}

.meta-divider {
    color: #ddd;
}

/* 右侧操作区域 - 查看电话按钮 */
.item-action {
    flex-shrink: 0;
    margin-left: 15px;
}

.btn-phone {
    padding: 8px 20px;
    background: #ff6a00;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-phone:hover {
    background: #e65c00;
    transform: scale(1.02);
}

/* 分页区域 */
.pagination-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 4px;
    padding: 15px 20px;
    margin-top: 15px;
    border: 1px solid #f0f0f0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.pagination a,
.pagination span {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 13px;
    color: #666;
    background: #fff;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: #ff6a00;
    color: #ff6a00;
}

.pagination span.active,
.pagination a.active,
.pagination a.cur {
    background: #ff6a00;
    border-color: #ff6a00;
    color: #fff;
}

.pagination span.disabled,
.pagination a.disabled {
    background: #f7f7f7;
    color: #ccc;
    cursor: not-allowed;
}

.pagination .page-ellipsis,
.pagination .pageEllipsis {
    min-width: 24px;
    padding: 0 4px;
    border-color: transparent;
    background: transparent;
    color: #999;
}

.pagination .prev,
.pagination .next {
    min-width: 80px;
    text-align: center;
}

.page-info {
    font-size: 13px;
    color: #999;
}

/* ==================== 右侧推广区块 - 上图下文字 ==================== */
.promo-section {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.section-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #ff6a00;
    border-radius: 2px;
}

/* 推广卡片网格 - 单列上图下文字 */
.promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
}

.promo-card {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.promo-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #ff6a00;
}

.promo-img {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.promo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.promo-card:hover .promo-img img {
    transform: scale(1.05);
}

.promo-info {
    padding: 10px;
    text-align: left;
}

.promo-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.promo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.promo-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f5e9;
    color: #4caf50;
    border-radius: 3px;
    font-size: 11px;
}

/* 广告位 */
.ad-section {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.ad-section img {
    width: 100%;
    display: block;
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 1024px) {
    .fw-layout {
        grid-template-columns: 3.5fr 1fr;
    }

    .item-img {
        width: 120px;
        height: 90px;
    }

    .item-title {
        font-size: 15px;
    }

    .promo-img {
        height: 100px;
    }
}

@media (max-width: 900px) {
    .fw-layout {
        grid-template-columns: 1fr;
    }

    .fw-right {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .ad-section {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .fw-item {
        padding: 12px 15px;
    }

    .item-img {
        width: 100px;
        height: 75px;
        margin-right: 12px;
    }

    .item-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .item-desc {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .item-meta {
        font-size: 11px;
    }

    .btn-phone {
        padding: 6px 14px;
        font-size: 12px;
    }

    .category-tabs {
        justify-content: center;
        padding: 12px 15px;
    }

    .category-tabs a {
        padding: 6px 12px;
        font-size: 13px;
    }

    .list-toolbar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .pagination-section {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .fw-right {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .ad-section {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .fw-layout {
        grid-template-columns: 1fr;
    }

    .fw-right {
        grid-template-columns: 1fr 1fr;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .item-img {
        width: 85px;
        height: 64px;
    }

    .item-title {
        font-size: 13px;
    }

    .item-desc {
        display: none;
    }

    .btn-phone {
        padding: 5px 12px;
        font-size: 11px;
    }
}
