.pagination {
    margin-top: 2rem;
}

.pagination .container {
    display: flex;
    justify-content: center;
}

.pagination ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.pagination .current {
    background: var(--color-primary);
    color: #fff;
    border-color: transparent;
}

.pagination .prev,
.pagination .next {
    padding: 0 1rem;
}

.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 0;
}

.error-content {
    max-width: 500px;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-message {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.no-products,
.no-cases,
.no-solutions,
.no-posts,
.no-news {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-light);
}

/* Featured Grid (Product/Case Homepage) */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
}

.featured-item-box {
    position: relative;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    transition: all 0.5s ease;
}

.featured-item-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
    z-index: 1;
}

.featured-item-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.featured-item-box:hover::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.9));
}

.featured-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 2;
    color: #fff;
    box-sizing: border-box;
}

.featured-item-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
}

.featured-item-desc {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    display: block;
    line-height: 1.6;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-item-button {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.featured-item-box:hover .featured-item-button {
    background: #fff;
    color: #000;
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .featured-item-box {
        height: 240px;
    }
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Card Common Styles */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

/* Section Common Styles */
.section {
    padding: 5rem 0;
    background: #f8fafc; /* 统一浅灰色背景 */
}

.section:nth-child(even) {
    background: #fff; /* 交替背景，增强层次感 */
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-intro {
    text-align: center;
    color: var(--color-text-light);
    max-width: 820px;
    margin: -2rem auto 2.25rem;
    line-height: 1.8;
}

@media (max-width: 576px) {
    .error-code {
        font-size: 5rem;
    }
    
    .error-actions {
        flex-direction: column;
    }
}
