/* 带宽产品模块样式 */

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    position: relative;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../images/pattern.png") repeat;
    opacity: 0.1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.hero-description {
    max-width: 600px;
}

.hero-stats {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 600;
}

.stat-label {
    font-size: 0.9rem;
}

/* 渐变背景 */
.bg-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* 卡片悬停效果 */
.hover-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    border-color: rgba(var(--bs-primary-rgb), 0.3);
}

/* 按钮放大效果 */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* 产品卡片样式 */
.product-item {
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #3498db, #2c3e50);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
    border-radius: 16px;
}

.product-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-item:hover::before {
    opacity: 0.05;
}

.product-item .card-body {
    padding: 1.8rem;
    position: relative;
    z-index: 2;
}

.product-item .card-title {
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 1.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 3rem;
    transition: color 0.3s ease;
}

.product-item .card-title a {
    color: #2c3e50;
    background-image: linear-gradient(120deg, #2980b9, #3498db);
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: 0 bottom;
    transition: background-size 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.product-item .card-title a:hover {
    color: #3498db;
    background-size: 100% 2px;
}

.top-badge-container, .featured-badge-container {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
}

.top-badge, .featured-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 0 0 0 16px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
}

.top-badge {
    background: linear-gradient(135deg, #ff6b6b, #e74c3c);
}

.featured-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.top-badge i, .featured-badge i {
    margin-right: 0.5rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.vendor-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    color: #6c757d;
    font-size: 0.95rem;
    background: rgba(240, 242, 245, 0.7);
    padding: 10px 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.vendor-name, .country {
    display: inline-flex;
    align-items: center;
    margin-right: 1.2rem;
    margin-bottom: 0.3rem;
    transition: transform 0.3s ease;
}

.vendor-name:hover, .country:hover {
    transform: translateX(3px);
}

.vendor-name i, .country i {
    margin-right: 0.5rem;
    opacity: 0.8;
    color: #3498db;
    font-size: 1.1rem;
}

.bandwidth-prices {
    background: linear-gradient(145deg, #f8f9fa, #eef1f5);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 1.8rem;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.03), 0 5px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bandwidth-prices::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(0, 0, 0, 0));
    border-radius: 50%;
    top: -50px;
    left: -50px;
}

.bandwidth-prices .price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(222, 226, 230, 0.8);
    transition: transform 0.2s ease, background-color 0.2s ease;
    padding: 8px 10px;
    border-radius: 8px;
}

.bandwidth-prices .price-item:hover {
    transform: translateX(5px);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.bandwidth-prices .price-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.price-label {
    color: #5a6268;
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.price-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #7c3aed;
    border-radius: 50%;
    margin-right: 8px;
    opacity: 0.7;
}

.price-value {
    font-weight: 800;
    color: #5b21b6;
    font-size: 1.2rem;
    text-shadow: none;
    letter-spacing: 0.5px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 4px 10px;
    border-radius: 6px;
    position: relative;
}

.price-value::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 25%;
    width: 50%;
    height: 2px;
    background-color: var(--bs-primary);
    opacity: 0.5;
}

.product-item .btn {
    border-radius: 50px;
    padding: 0.6rem 2rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.product-item .btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transition: all 0.5s ease;
}

.product-item .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.product-item .btn:hover::after {
    left: 100%;
}

.product-item .btn-primary {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    border: none;
}

.product-item .btn-primary:hover {
    background: linear-gradient(135deg, #5b21b6, #4c1d95);
}

/* 价格卡片样式 */
.price-card, .action-card {
    transition: all 0.3s ease;
}

.price-card:hover, .action-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* 详情页样式 */
.vendor-logo {
    max-height: 30px;
    width: auto;
}

.vendor-logo-large {
    max-height: 60px;
    width: auto;
}

.price-item-card {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.meta-item {
    transition: all 0.3s ease;
}

.meta-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.meta-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.meta-icon i {
    color: var(--bs-primary);
}

.action-card {
    transition: all 0.3s ease;
}

.action-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 主卡片样式 */
.product-main-card {
    position: relative;
    overflow: hidden;
}

.product-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1) 0%, rgba(var(--bs-primary-rgb), 0) 70%);
    border-radius: 0 0 0 100%;
    z-index: 0;
}

/* 产品信息卡片样式 */
.product-info-card {
    transition: all 0.3s ease;
}

.scene-item {
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

.scene-item:hover {
    transform: translateX(5px);
    background-color: rgba(52, 152, 219, 0.05);
}

.scene-icon {
    color: #3498db;
}

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

/* 标题图标 */
.icon-circle {
    transition: all 0.3s ease;
}

/* Logo容器样式 */
.hero-logo-container {
    position: relative;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.hero-logo-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15) !important;
}

/* 筛选表单样式 */
#filter-form select {
    border-radius: 4px;
    border: 1px solid #ced4da;
}

#filter-form select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 分页样式 */
.pagination .page-link {
    color: #3498db;
}

.pagination .page-item.active .page-link {
    background-color: #3498db;
    border-color: #3498db;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    /* 移动端隐藏页脚 */
    footer.footer {
        display: none !important;
    }

    .stat-value {
        font-size: 1.5rem;
    }
    
    .product-item {
        margin-bottom: 1.5rem;
    }
    
    .product-item .card-body {
        padding: 1.2rem;
    }
    
    .bandwidth-prices {
        padding: 12px;
    }
} 