/* 列表页面专用样式 */

/* 面包屑导航 */
.breadcrumb {
    background-color: white;
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.breadcrumb ul {
    display: flex;
    align-items: center;
}

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

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

.breadcrumb li a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    margin: 0 10px;
    font-size: 12px;
    color: #999;
}

/* 列表内容区 */
.list-content {
    padding: 0 0 40px;
}

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

.list-main {
    flex: 0 0 70%;
}

.list-sidebar {
    flex: 0 0 30%;
}

/* 列表头部 */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.list-header h1 {
    font-size: 24px;
    color: var(--dark-color);
    font-weight: 700;
}

.list-filter {
    display: flex;
    gap: 15px;
}

.filter-item {
    padding: 5px 15px;
    border-radius: 20px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-item:hover {
    background-color: #eee;
}

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

/* 列表项 */
.list-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.list-item:hover {
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.item-left {
    width: 120px;
    margin-right: 20px;
    flex-shrink: 0;
}

.item-thumb {
    display: block;
    width: 100%;
    height: 90px;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

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

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.item-right {
    flex: 1;
    min-width: 0;
}

.item-tag {
    background-color: var(--accent-color-2);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    text-align: center;
    width: 60px;
}

.item-tag:nth-child(2) {
    background-color: var(--accent-color-3);
}

.item-title a {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-title a:hover {
    color: var(--primary-color);
}

.item-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.meta-company, .meta-date, .meta-location {
    color: #999;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-company {
    color: var(--primary-color);
    font-weight: 500;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 5px;
}

.page-item, .page-next {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background-color: white;
    color: var(--dark-color);
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.page-item:hover, .page-next:hover {
    background-color: #f5f5f5;
}

.page-item.active {
    background-color: var(--primary-color);
    color: white;
    cursor: default;
}

/* 侧边栏 */
.sidebar-box {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

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

.sidebar-header h3 {
    font-size: 18px;
    color: var(--dark-color);
    position: relative;
    padding-left: 15px;
}

.sidebar-header h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.sidebar-content {
    padding: 15px;
}

/* 推荐信息 */
.recommend-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.recommend-img {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.recommend-item:hover .recommend-img img {
    transform: scale(1.1);
}

.recommend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recommend-title a {
    font-size: 14px;
    color: var(--dark-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommend-title a:hover {
    color: var(--primary-color);
}

.recommend-meta {
    font-size: 12px;
    color: #999;
}

/* 联系我们 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* 付费发布按钮 */
.btn-publish-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, var(--accent-color-1), var(--accent-color-4));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-publish-info i {
    font-size: 16px;
}

.btn-publish-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, var(--accent-color-4), var(--accent-color-1));
}

.btn-publish-info:active {
    transform: translateY(-1px);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    width: 400px;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    padding: 30px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-color-1);
}

.modal h2 {
    font-size: 22px;
    color: var(--dark-color);
    margin-bottom: 15px;
    text-align: center;
}

.modal-desc {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-login {
    background-color: var(--primary-color);
    color: white;
}

.modal-login:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.modal-recharge {
    background-color: var(--accent-color-3);
    color: white;
}

.modal-recharge:hover {
    background-color: #0fb88a;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.modal-footer {
    text-align: center;
    margin-top: 15px;
}

.modal-link {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.modal-link:hover {
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .list-layout {
        flex-direction: column;
    }
    
    .list-main, .list-sidebar {
        flex: 0 0 100%;
    }
    
    .recommend-item {
        width: 48%;
        display: inline-flex;
        vertical-align: top;
        margin-right: 2%;
    }
}

@media (max-width: 768px) {
    .list-item {
        flex-direction: column;
    }
    
    .item-left {
        flex-direction: row;
    }
    
    .recommend-item {
        width: 100%;
        margin-right: 0;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .item-meta {
        flex-direction: column;
        gap: 5px;
    }
} 