/* IP资源卡片样式 - 优化版 */
.ip-resources-section {
    padding: 4rem 0;
}

.ip-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    position: relative;
    background: #fff;
}

.ip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.ip-card-header {
    padding: 1.2rem 1rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ip-card-region {
    display: flex;
    align-items: center;
}

.ip-card-region-icon {
    margin-right: 0.4rem;
    font-size: 1rem;
    color: #8b5cf6;
}

.ip-card-region-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.ip-card-views-count {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-left: 0.5rem;
}

.ip-card-vendor {
    display: flex;
    align-items: center;
}

.ip-card-vendor-logo {
    width: 20px;
    height: 20px;
    margin-right: 0.4rem;
    border-radius: 3px;
}

.ip-card-vendor-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.ip-card-content {
    padding: 1.2rem 1rem;
}

.ip-card-type {
    margin-bottom: 0.8rem;
}

.ip-card-type-text {
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ip-card-title {
    margin-bottom: 0.8rem;
}

.ip-card-title .ip-card-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
}

.ip-card-title .ip-card-link:hover {
    color: #8b5cf6;
}

.ip-card-protocols {
    margin-bottom: 0.8rem;
}

.ip-card-protocols-label {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
}

.ip-card-protocols-label i {
    margin-right: 0.4rem;
    font-size: 0.7rem;
}

.ip-card-protocol-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.ip-card-protocol-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 0.2rem 0.4rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.ip-card-pricing {
    margin-bottom: 0.8rem;
    padding: 0.8rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.ip-card-pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ip-card-pricing-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
}

.ip-card-pricing-separator {
    flex-grow: 1;
    height: 1px;
    background: #dee2e6;
    margin: 0 0.8rem;
}

.ip-card-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ip-card-price-amount {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.ip-card-price-currency {
    margin-right: 0.2rem;
}

.ip-card-price-period {
    font-size: 0.7rem;
    color: #666;
    margin-left: 0.2rem;
}

.ip-card-footer {
    padding: 0 1rem 1rem;
}

.ip-card-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.6rem;
    background: linear-gradient(120deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ip-card-button:hover {
    background: linear-gradient(120deg, #7c3aed, #6d28d9);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.ip-card-button i {
    margin-left: 0.4rem;
    font-size: 0.8rem;
}

/* 置顶标记 - 优化版 */
.top-level-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff6b6b;
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .ip-card-header {
        padding: 1rem 0.8rem;
    }
    
    .ip-card-content {
        padding: 1rem 0.8rem;
    }
    
    .ip-card-footer {
        padding: 0 0.8rem 0.8rem;
    }
    
    .ip-card-title .ip-card-link {
        font-size: 0.9rem;
    }
    
    .ip-card-price-amount {
        font-size: 0.9rem;
    }
    
    .ip-card-button {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* 添加卡片间距优化 */
.row.g-4 > * {
    padding-right: calc(1rem * 0.5);
    padding-left: calc(1rem * 0.5);
}

.row.g-4 {
    margin-right: calc(-1rem * 0.5);
    margin-left: calc(-1rem * 0.5);
}