/* 广告列表页样式 */

/* 页面横幅 */
.page-banner {
    background-color: #111;
    padding: 120px 0 60px;
    text-align: center;
    border-bottom: 1px solid #222;
}

.page-banner h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #FFD100;
}

.breadcrumb {
    color: #999;
    font-size: 14px;
}

.breadcrumb a {
    color: #ccc;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #FFD100;
}

/* 筛选器区域 */
.ad-filter {
    background-color: #0c0c0c;
    padding: 30px 0;
    border-bottom: 1px solid #222;
}

.filter-box {
    background-color: #111;
    border-radius: 8px;
    padding: 20px;
}

.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #222;
}

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

.filter-label {
    width: 100px;
    color: #ccc;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

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

.filter-options a {
    display: inline-block;
    padding: 6px 12px;
    background-color: #1a1a1a;
    border-radius: 4px;
    color: #999;
    font-size: 13px;
    transition: all 0.3s;
}

.filter-options a:hover,
.filter-options a.active {
    background-color: #FFD100;
    color: #000;
}

/* 广告列表头部 */
.ad-list {
    padding: 50px 0;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.total-count {
    color: #ccc;
    font-size: 14px;
}

.total-count span {
    color: #FFD100;
    font-weight: bold;
}

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

.sort-options span {
    color: #999;
    font-size: 14px;
}

.sort-options a {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s;
    padding-bottom: 2px;
    position: relative;
}

.sort-options a:hover,
.sort-options a.active {
    color: #FFD100;
}

.sort-options a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #FFD100;
}

/* 广告网格 */
.ad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.ad-item {
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

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

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

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.ad-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FFD100;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
}

.ad-info {
    padding: 20px;
    display: block;
}

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

.ad-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.ad-type,
.ad-style {
    display: inline-block;
    background-color: #1a1a1a;
    color: #999;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 3px;
}

.ad-desc {
    color: #999;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 63px;
}

.ad-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ad-price {
    color: #FFD100;
    font-size: 20px;
    font-weight: bold;
}

/* 分页控件 */
.pagination-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .ad-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .sort-options {
        flex-wrap: wrap;
    }
    
    .ad-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-label {
        width: 80px;
    }
    
    .pagination-box {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .page-banner {
        padding: 100px 0 40px;
    }
    
    .page-banner h1 {
        font-size: 32px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-label {
        margin-bottom: 10px;
    }
    
    .filter-options {
        width: 100%;
    }
    
    .page-btn, 
    .page-num {
        padding: 6px 12px;
        font-size: 13px;
    }
} 