/* 列表页面样式 */

/* 页面标题 */
.page-title {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 60px 0;
    position: relative;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://24344043.s21i.faiusr.com/4/ABUIABAEGAAgtoCYvwYo1L26kgIwiws4lAU.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.page-title .container {
    position: relative;
    z-index: 1;
}

.page-title h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.breadcrumbs {
    font-size: 15px;
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs span {
    color: #ccc;
}

/* 列表区域样式 */
.list-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.list-wrapper {
    display: flex;
    gap: 30px;
}

/* 筛选侧边栏 */
.filter-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.filter-widget {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 25px;
}

.filter-widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-color);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.price-range {
    margin-top: 10px;
}

.price-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    font-size: 14px;
}

.price-btn {
    width: 100%;
    padding: 8px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.price-btn:hover {
    background-color: #178149;
}

/* 筛选开关按钮（移动端） */
.filter-toggle {
    display: none;
    background-color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: var(--box-shadow);
}

.filter-toggle i {
    margin-right: 8px;
    color: var(--primary-color);
}

.filter-toggle.active {
    background-color: var(--primary-color);
    color: white;
}

.filter-toggle.active i {
    color: white;
}

.close-filter {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 5;
}

/* 列表内容 */
.ads-list {
    flex: 1;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
}

.list-summary span {
    color: var(--primary-color);
    font-weight: bold;
}

.list-sort {
    display: flex;
    align-items: center;
    gap: 15px;
}

.list-sort a {
    color: #666;
    font-size: 14px;
    transition: var(--transition);
}

.list-sort a:hover, .list-sort a.active {
    color: var(--primary-color);
}

/* 广告列表项 */
.ads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.ad-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.ad-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.ad-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.ad-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.ad-info {
    padding: 20px;
}

.ad-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.ad-info h3 a {
    color: var(--text-color);
}

.ad-info h3 a:hover {
    color: var(--primary-color);
}

.ad-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.ad-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ad-desc {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.ad-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-color);
}

.ad-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.view-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.view-btn:hover {
    background-color: #178149;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
}


/* 响应式样式 */
@media (max-width: 992px) {
    .list-wrapper {
        flex-direction: column;
    }
    
    .filter-sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        max-width: 320px;
        background-color: white;
        z-index: 1000;
        padding: 20px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .filter-sidebar.active {
        transform: translateX(0);
    }
    
    .filter-toggle {
        display: block;
    }
    
    .close-filter {
        display: flex;
    }
    
    .filter-options {
        display: flex;
        flex-direction: column;
    }
    
    .filter-widget {
        margin-top: 40px;
    }
    
    .filter-widget:first-child {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .ads-grid {
        grid-template-columns: 1fr;
    }
    
    .list-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .page-title {
        padding: 40px 0;
    }
    
    .page-title h1 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .pagination a {
        width: 35px;
        height: 35px;
    }
    
    .filter-sidebar {
        max-width: 280px;
    }
    
    .ad-meta {
        flex-direction: column;
        gap: 5px;
    }
} 