/* 页面横幅样式 */
.page-banner {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 64px 24px;
    text-align: center;
}

[data-theme="dark"] .page-banner {
    background: var(--card-bg);
}

.banner-content h1 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 16px;
}

.banner-content p {
    font-size: 18px;
    color: var(--text-color-secondary);
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-banner {
        padding: 48px 24px;
    }

    .banner-content h1 {
        font-size: 24px;
    }

    .page-banner p {
        font-size: 14px;
    }
}

/* 过滤栏样式 */
.filter-bar {
    padding: 24px 0;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tag {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter-tag:hover, .filter-tag.active {
    color: white;
    background: var(--primary-color);
}

.filter-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.filter-tag:active::after {
    transform: translate(-50%, -50%) scale(1);
}

.sort-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sort-select {
    padding: 0 15px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    background: var(--bg-color);
}

.sort-button {
    min-width: 80px;
}

/* 产品网格布局 */
.product-main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto 100px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 产品卡片样式 */
.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: -26px;
    background: #1a73e8;
    color: white;
    transform: rotate(45deg);
    font-size: 12px;
    white-space: nowrap;
    z-index: 2;
    width: 90px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

.product-badge.hot {
    background: #ff5722;
}

.product-badge.new {
    background: #4caf50;
}

.product-badge.recommend {
    background: #ffc107;
    color: #333;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

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

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

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

.product-info {
    flex: 1 1 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.product-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.tag.ai {
    background: #e3f2fd;
    color: #1a73e8;
}

.tag.commerce {
    background: #f1f8e9;
    color: #388e3c;
}

.tag.cloud {
    background: #ffe0b2;
    color: #ef6c00;
}

.tag.enterprise {
    background: #fce4ec;
    color: #c2185b;
}

.product-title {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
}

.star {
    color: #ffb400;
}

.reviews {
    color: #888;
    font-size: 0.85rem;
}

.product-desc {
    color: var(--text-color);
    flex: 1 1 auto;
    margin-bottom: 1.5rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-color-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-number {
    display: flex;
    gap: 0.5rem;
}

.page-number span {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-number .current,
.page-number span:hover {
    background: #1a73e8;
    color: white;
}