/* 发行商商品列表页面样式 */

/* 基本布局样式 */
.layout {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.mainer {
    margin-top: 20px;
}
.sidebar {
    width: 280px;
}
.maincont {
    width: 900px;
}
.fl {
    float: left;
}
.fr {
    float: right;
}
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 发行商头部样式 */
.publisher-header {
    background: url(../../common/images/background.png) no-repeat center center;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    color: black;
    padding: 30px 0;
    text-align: center;
    margin-bottom: 20px;
}
.publisher-header h1 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.publisher-header p {
    font-size: 1.2em;
    margin: 0;
    opacity: 0.9;
}

/* 筛选区域样式 */
.filter-section {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}
.filter-section h3 {
    margin: 0 0 15px 0;
    color: #333;
}
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}
.filter-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.filter-item input[type="text"],
.filter-item input[type="number"],
.filter-item select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.filter-item input[type="checkbox"] {
    margin: 0;
}
.filter-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.filter-btn:hover {
    background: #0056b3;
}

/* 排序区域样式 */
.sort-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.sort-options {
    display: flex;
    gap: 10px;
}
.sort-option {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}
.sort-option:hover,
.sort-option.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 商品网格样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 280px;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.product-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
}
.product-image img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.product-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}
.product-tag {
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}
.product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex-shrink: 0;
}
.product-title a {
    color: #333;
    text-decoration: none;
}
.product-title a:hover {
    color: #007bff;
}
.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-shrink: 0;
}
.current-price {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}
.original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}
.discount-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #666;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}
.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}
.pagination a:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}
.pagination .current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 无商品提示样式 */
.no-products {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}
.no-products h3 {
    margin: 0 0 10px 0;
    color: #333;
}

/* 侧边栏样式 */
.sbcont {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.sbcont h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}
.green-line {
    display: inline-block;
    width: 30px;
    height: 2px;
    background: #007bff;
    margin-left: 10px;
}
.viewbuy-box {
    list-style: none;
    padding: 0;
    margin: 0;
}
.viewbuy-box li {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.viewbuy-box li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.rank-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.rank-link:hover {
    text-decoration: none;
}
.comico {
    float: left;
    width: 30px;
    height: 30px;
    background: #007bff;
    color: white;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}
.djimg {
    float: left;
    margin: 0 10px;
}
.djimg img {
    border-radius: 4px;
}
.djinfo {
    float: left;
    width: 140px;
}
.djname {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}
.djprice {
    margin: 0 0 3px 0;
    font-size: 12px;
    color: #999;
}
.djcpri {
    margin: 0;
    font-size: 12px;
    color: #e74c3c;
}
.djcpri strong {
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .layout {
        width: 100%;
        padding: 0 10px;
    }
    .sidebar {
        width: 250px;
    }
    .maincont {
        width: calc(100% - 270px);
    }
}

@media (max-width: 768px) {
    .layout {
        padding: 0 5px;
    }
    .sidebar {
        width: 100%;
        float: none;
        margin-bottom: 20px;
    }
    .maincont {
        width: 100%;
        float: none;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
    .product-card {
        height: 260px;
    }
    .product-image {
        height: 140px;
    }
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-item {
        justify-content: space-between;
    }
    .sort-section {
        flex-direction: column;
        gap: 10px;
    }
    .sort-options {
        flex-wrap: wrap;
    }
} 