/* VPS, 云主机, 云电脑, 云手机页面公共样式 */

/* ====== 英雄区域样式 ====== */
.hero-section {
    background: linear-gradient(135deg, #4c1d95, #5b21b6, #7c3aed, #a855f7);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-pattern.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 600px;
}

.hero-stats {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.stat-item {
    flex: 1;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    max-height: 300px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 400px;
    }
}

/* ====== 产品卡片样式 ====== */
/* 卡片样式重置 */
.card.h-100.shadow-sm.product-item {
    overflow: visible !important;
    position: relative !important;
}

.card-body {
    padding: 15px !important;
}

/* 价格和按钮容器 */
.price-action-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 150px;
    padding: 1rem;
}

/* 水平布局的规格项样式 */
.specs-grid-horizontal {
    display: flex;
    flex-wrap: wrap;
}

/* 新增参数网格布局 */
.specs-params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    width: 100%;
}

.specs-item-horizontal {
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    padding: 10px 16px;
    margin-right: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-width: 110px;
}

.specs-params-grid .specs-item-horizontal {
    margin-right: 0;
    margin-bottom: 0;
}

.specs-item-horizontal:hover {
    background-color: #e9f0ff;
    transform: translateY(-2px);
}

/* 标签样式 */
.card .product-tag-featured {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important; /* 改为右上角 */
    z-index: 99999 !important;
    pointer-events: none !important;
}

/* 标签样式优化 */
.top-badge-container,
.featured-badge-container {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important; /* 改为右上角 */
    z-index: 99999 !important;
    pointer-events: none !important;
}

.top-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: linear-gradient(135deg, #2196F3, #3F51B5) !important;
    color: white !important;
    padding: 8px 15px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    border-radius: 8px 0 8px 0 !important; /* 调整圆角 */
    box-shadow: 0 3px 8px rgba(33, 150, 243, 0.5) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    animation: badgePulse 2s infinite !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

.featured-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: linear-gradient(135deg, #ff9800, #ff5722) !important;
    color: white !important;
    padding: 8px 15px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    border-radius: 8px 0 8px 0 !important; /* 调整圆角 */
    box-shadow: 0 3px 8px rgba(255, 87, 34, 0.5) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    animation: badgePulse 2s infinite !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

.top-badge i,
.featured-badge i {
    font-size: 0.9rem !important;
    margin-right: 5px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

/* 厂商标志样式优化 */
.vendor-logo-img {
    max-height: 30px;
    max-width: 80px;
    object-fit: contain;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 厂商参数图标样式 */
.vendor-attrs {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 8px 12px;
}

.vendor-attr {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.vendor-attr i {
    font-size: 0.9rem;
}

.attr-text {
    font-size: 0.8rem;
}

/* 实名认证和支付方式分隔 */
.vendor-attr-realname {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.payment-divider {
    width: 1px;
    height: 20px;
    background-color: #d0d0d0;
    display: inline-block;
}

/* ====== 详情页面包屑导航 ====== */
/* 优化面包屑导航 */
.tech-breadcrumb {
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.breadcrumb-item + .breadcrumb-item::before {
    font-family: "Font Awesome 5 Free";
    content: "\f054";
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--bs-primary);
    margin-top: 2px;
}

.breadcrumb-item a {
    color: #555;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--bs-primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--bs-primary);
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .breadcrumb {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    
    .breadcrumb::-webkit-scrollbar {
        height: 3px;
    }
    
    .breadcrumb::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 3px;
    }
    
    /* 调整产品卡片布局 */
    .card-body .row {
        flex-direction: column;
    }
    
    .card-body .col-md-8,
    .card-body .col-md-4 {
        width: 100%;
        padding: 0;
    }
    
    /* 移动端价格和按钮容器 */
    .price-action-container {
        display: block !important;
        height: auto !important;
        min-height: auto !important;
        padding: 1rem 0 !important;
        text-align: center !important;
    }
    
    /* 产品卡片参数排列优化 */
    .specs-grid-horizontal {
        display: block !important;
        width: 100% !important;
        margin-bottom: 15px !important;
    }
    
    /* 移动端下的参数网格布局 */
    .specs-params-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    /* 确保每个参数项占满格子宽度 */
    .specs-item-horizontal {
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 10px !important;
        height: 100% !important;
    }
    
    /* 确保标签和值正确显示 */
    .specs-label {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 3px !important;
    }
    
    .specs-value {
        font-size: 14px;
        font-weight: bold;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 价格区域铺满整行 */
    .price-container {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        margin-bottom: 15px !important;
        margin-top: 15px !important;
    }
    
    .price-tag {
        width: 100%;
        display: block;
        text-align: center;
        background-color: #f8f9fa;
        padding: 10px;
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .secondary-price {
        width: 100%;
        display: block;
        text-align: center;
        padding: 5px;
    }
    
    /* 调整按钮布局 */
    .product-action-buttons {
        display: flex;
        width: 100%;
    }
    
    .product-action-buttons .btn {
        flex: 1;
        margin: 0 5px;
    }
    
    /* 隐藏页脚 */
    footer.footer {
        display: none;
    }
}

/* 桌面端产品卡片布局优化 */
@media (min-width: 768px) {
    /* 确保桌面端右侧价格和按钮区域不换行 */
    .col-md-4 {
        min-width: 200px;
        flex: 0 0 auto;
    }
    
    /* 价格和按钮容器样式 */
    .price-action-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        min-height: 150px;
        padding: 1rem;
        text-align: center;
    }
    
    /* 价格容器样式 */
    .price-container {
        text-align: center;
        margin-bottom: 1rem;
        min-width: 120px;
        width: 100%;
    }
    
    .price-tag {
        display: inline-block;
        white-space: nowrap;
        margin-bottom: 0.5rem;
    }
    
    .price-amount {
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.2;
    }
    
    .price-period {
        font-size: 0.9rem;
        margin-left: 0.25rem;
    }
    
    /* 按钮区域 */
    .product-action-buttons {
        width: 100%;
        max-width: 150px;
    }
    
    .product-action-buttons .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }
}