/* 栏目图片显示区域样式 */
.category-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.category-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-banner .banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.category-banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.category-banner p {
    font-size: 18px;
}

/* 列表页内容样式 */
.list-content {
    padding: 60px 0;
    background-color: #f5f5f5;
}

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

.list-sidebar {
    width: 25%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.list-main {
    width: 75%;
}

.category-menu {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.category-menu h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

/* 板块头部样式 */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.section-icon {
    margin-right: 10px;
    color: #007bff;
}

.section-header h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
    flex-grow: 1;
}

.more-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #007bff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.more-btn:hover {
    color: #0056b3;
    transform: translateX(5px);
}

.more-btn span {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.more-btn:hover span {
    transform: translateX(3px);
}

/* 标签头部样式 */
.tags-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.tags-header h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
    flex-grow: 1;
}

/* 标签关键词样式 */
.tags-section {
    padding: 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

/* 标签网格布局 */
.tags-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tag-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.tag-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 40px;
}

.tag-wrapper.left {
    justify-content: flex-start;
}

.tag-wrapper.right {
    justify-content: flex-end;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 100%;
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    border-radius: 8px;
    box-sizing: border-box;
    transform: translateX(0);
}

/* 随机背景颜色 */
.tag-row:nth-child(1) .tag-wrapper:nth-child(1) .tag-item {
    background-color: #3498db;
}

.tag-row:nth-child(1) .tag-wrapper:nth-child(2) .tag-item {
    background-color: #e74c3c;
}

.tag-row:nth-child(2) .tag-wrapper:nth-child(1) .tag-item {
    background-color: #2ecc71;
}

.tag-row:nth-child(2) .tag-wrapper:nth-child(2) .tag-item {
    background-color: #f39c12;
}

.tag-row:nth-child(3) .tag-wrapper:nth-child(1) .tag-item {
    background-color: #9b59b6;
}

.tag-row:nth-child(3) .tag-wrapper:nth-child(2) .tag-item {
    background-color: #1abc9c;
}

.tag-row:nth-child(4) .tag-wrapper:nth-child(1) .tag-item {
    background-color: #e67e22;
}

.tag-row:nth-child(4) .tag-wrapper:nth-child(2) .tag-item {
    background-color: #34495e;
}

/* 标签展开动画效果 */
.tag-wrapper.left:hover .tag-item {
    transform: translateX(10px);
    width: auto;
    max-width: 300px;
    overflow: visible;
}

.tag-wrapper.right:hover .tag-item {
    transform: translateX(-10px);
    width: auto;
    max-width: 300px;
    overflow: visible;
}

/* 标签悬浮效果 */
.tag-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.category-menu ul {
    margin-top: 0;
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.category-menu li {
    margin-bottom: 0;
}

/* 只应用于列表项中的链接 */
.category-menu ul li a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    background-color: #f0f8ff;
    color: #3498db;
    border: 1px solid #e0f0ff;
}

/* 列表项链接的悬浮效果 */
.category-menu ul li a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #3498db;
    color: #ffffff;
}

.sidebar-products {
    padding: 20px;
}

.sidebar-products h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.sidebar-product-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-product-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-product-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.sidebar-product-link:hover {
    opacity: 1;
    background-color: #3498db;
    border-radius: 8px;
}

.sidebar-product-link:hover .sidebar-product-content h4,
.sidebar-product-link:hover .sidebar-product-content p,
.sidebar-product-link:hover .sidebar-product-content span {
    color: #fff;
}

.sidebar-product-link img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.sidebar-product-content {
    flex: 1;
}

.sidebar-product-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.sidebar-product-content p {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.sidebar-product-link span {
    font-size: 12px;
    color: #007bff;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.list-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.list-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.list-item-content {
    padding: 20px;
}

.list-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.list-item p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.list-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.list-item-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.list-item-link:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
}

.list-item-date {
    color: #999;
    font-size: 12px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.pagination-item {
    margin: 0;
}

.pagination-link {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-link:hover:not(.disabled) {
    background-color: #f0f0f0;
    color: #007bff;
    border-color: #007bff;
}

.pagination-link.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-link.disabled:hover {
    background-color: transparent;
    color: #666;
    border-color: #e0e0e0;
}

/* 图片悬停箭头效果 */
.list-item-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.list-item-image-container {
    position: relative;
    overflow: hidden;
}

.hover-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.hover-arrow svg {
    width: 24px;
    height: 24px;
    color: #007bff;
}

.list-item:hover .hover-arrow {
    transform: translate(-50%, -50%) scale(1);
}

.list-item:hover .list-item-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 5;
    transition: all 0.3s ease;
}
