/* 地区页面公共样式 - 合并自regions/index.php和regions/detail.php */

/* ====== 地区列表页卡片样式 ====== */
.region-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    border: none;
    position: relative;
}

.region-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.region-card .card-img-container {
    height: 160px;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
}

.region-card .card-img-container img.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background-color: #e9ecef;
}

.region-card:hover .card-img-container img {
    transform: scale(1.05);
}

.region-card .region-flag {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.region-card .card-body {
    padding: 1.5rem;
}

.region-card .region-name {
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.region-card .region-name i {
    margin-right: 8px;
    color: var(--bs-primary);
}

.region-stats {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.stat-item i {
    color: var(--bs-primary);
    margin-right: 5px;
}

.product-types {
    margin-top: 15px;
}

.product-type {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

.product-type i {
    margin-right: 5px;
}

.region-cta {
    margin-top: 10px;
}

/* 默认图片样式备用 */
.default-region-img {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: #adb5bd;
    font-size: 2rem;
}

/* ====== 地区详情页样式 ====== */
.region-hero {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: white;
    position: relative;
    overflow: hidden;
}

.region-hero-content {
    position: relative;
    z-index: 1;
}

.product-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.product-card .card-header {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-bottom: none;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    max-width: 60%;
    margin-right: 15px;
}

.product-card .vendor-logo {
    max-width: 120px;
    max-height: 40px;
    object-fit: contain;
    margin-left: auto;
    flex-shrink: 0;
}

.product-card .vendor-badge {
    margin-left: auto;
    font-size: 0.9rem;
    padding: 5px 10px;
    flex-shrink: 0;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.spec-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.95rem;
    background-color: #f8f9fa;
    color: #495057;
}

.spec-badge i {
    margin-right: 6px;
    color: var(--bs-primary);
    font-size: 1rem;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.price-tag {
    font-weight: 600;
    color: var(--bs-primary);
    font-size: 1.1rem;
}

.badge-top {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.product-type-container {
    margin-bottom: 30px;
}

.product-type-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

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

.product-type-icon i {
    color: var(--bs-primary);
    font-size: 1.2rem;
}

.product-type-title {
    margin: 0;
    font-weight: 600;
}

.view-more-btn {
    margin-top: 10px;
}

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

    .product-card .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-card .card-title {
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .product-card .vendor-logo,
    .product-card .vendor-badge {
        margin-left: 0;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
        margin-bottom: 5px;
    }
} 