/* 产品页面优化样式 - GPU、PC、Phone */

/* ====== 全局变量定义 ====== */
:root {
    /* 主要颜色 */
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #1abc9c;
    --dark-color: #34495e;
    --light-color: #ecf0f1;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --border-color: #e0e6ed;
    --shadow-color: rgba(0, 0, 0, 0.08);
    
    /* 产品特定颜色 */
    --gpu-color: #e74c3c;
    --phone-color: #3498db;
    --pc-color: #0061a8;
    
    /* 设计变量 */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --border-radius: 4px;
    --transition: all 0.3s ease;
}

/* ====== 基础样式 ====== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* ====== 产品英雄区域 ====== */
.product-hero {
    background: linear-gradient(135deg, var(--primary-color), #003c6c);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.product-hero .hero-bg-pattern,
.hero-pattern-bg,
.hero-background-pattern {
    position: absolute;
    top: 0;
    start: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width=\'100%25\' height=\'100%25\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cdefs%3E%3Cpattern id=\'smallGrid\' width=\'20\' height=\'20\' patternUnits=\'userSpaceOnUse\'%3E%3Cpath d=\'M 20 0 L 0 0 0 20\' fill=\'none\' stroke=\'rgba(255,255,255,0.1)\' stroke-width=\'0.5\'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width=\'100%25\' height=\'100%25\' fill=\'url(%23smallGrid)\'/%3E%3C/svg%3E');
    opacity: 0.2;
    z-index: 0;
}

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

/* 产品类型特定背景 */
.product-hero-gpu {
    background: linear-gradient(135deg, var(--gpu-color), #c0392b);
}

.product-hero-phone {
    background: linear-gradient(135deg, var(--phone-color), #2980b9);
}

.product-hero-pc {
    background: linear-gradient(135deg, var(--pc-color), #003c6c);
}

/* ====== 价格框样式 ====== */
.price-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
}

/* ====== 规格高亮显示 ====== */
.specs-highlights .specs-highlight-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.specs-highlight-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ====== 产品卡片样式 ====== */
.product-item {
    transition: transform 0.2s ease-in-out;
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

/* ====== 价格标签样式 ====== */
.price-tag {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: bold;
}

.price-period {
    font-size: 0.875rem;
    color: #6c757d;
}

/* ====== 规格网格样式 ====== */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.specs-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: none;
}

.specs-label {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.specs-value {
    font-weight: bold;
    font-size: 1.1rem;
}

/* 水平规格网格 */
.specs-grid-horizontal {
    margin-bottom: 1rem;
}

.specs-params-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.specs-item-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.specs-item-horizontal .specs-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.specs-item-horizontal .specs-value {
    font-weight: bold;
    font-size: 0.875rem;
}

/* ====== 厂商信息样式 ====== */
.vendor-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 8px;
}

/* 厂商Logo样式 */
.vendor-logo-small {
    height: 30px;
    width: auto;
    background: rgba(255,255,255,0.2);
    padding: 5px;
    border-radius: 4px;
}

.vendor-logo-detail,
.vendor-logo-large {
    max-height: 80px;
}

/* ====== 价格容器样式 ====== */
.price-container {
    text-align: center;
}

/* 特色价格容器 */
.featured-price-container {
    background-color: var(--light-color);
    border-radius: 0.375rem;
    padding: 20px;
    border: none;
    box-shadow: none;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: none;
}

.price-row:last-child {
    border-bottom: none;
}

.price-label {
    font-weight: 500;
}

.featured-price-tag, .yearly-price-tag, .hourly-price-tag {
    font-weight: bold;
    color: var(--primary-color);
}

/* ====== 产品元信息 ====== */
.product-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ====== 面包屑导航 ====== */
.tech-breadcrumb {
    background-color: var(--light-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.tech-breadcrumb-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ====== 悬停阴影效果 ====== */
.hover-shadow-lg {
    transition: box-shadow 0.3s ease;
}

.hover-shadow-lg:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* ====== 特色信息卡片 ====== */
.featured-info-card {
    background-color: var(--light-color);
}

/* ====== 按钮样式 ====== */
.product-action-buttons {
    width: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* ====== 特性图标大尺寸样式 ====== */
.feature-icon-large {
    font-size: 2rem;
}

/* ====== 卡片样式 ====== */
.card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: var(--transition);
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.card-body {
    padding: 20px;
}

.card-title {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* ====== 响应式设计 ====== */
@media (max-width: 768px) {
    .product-hero {
        padding: 40px 0;
    }
    
    .product-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .specs-params-grid {
        justify-content: space-between;
    }
    
    .specs-item-horizontal {
        min-width: 70px;
    }
    
    .price-amount {
        font-size: 1.25rem;
    }
    
    .specs-params-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .specs-item-horizontal {
        width: 100%;
        padding: 8px 10px;
    }
    
    .price-container {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
        margin-top: 15px;
    }
    
    .product-action-buttons {
        display: flex;
        width: 100%;
    }
    
    .product-action-buttons .btn {
        flex: 1;
        margin: 0 5px;
    }
}

@media (max-width: 576px) {
    .specs-params-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-item-horizontal {
        margin-bottom: 10px;
    }
}

/* 桌面端产品卡片布局优化 */
@media (min-width: 768px) {
    .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%;
    }
    
    .product-action-buttons {
        width: 100%;
        max-width: 150px;
    }
    
    .product-action-buttons .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }
}

/* ====== 动画效果 ====== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .feature-card {
    animation: fadeIn 0.5s ease-out;
}

/* ====== 徽章样式 ====== */
.badge {
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
}

.badge.bg-light {
    background: var(--light-color) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color);
}

.badge.bg-success {
    background: var(--secondary-color) !important;
}

.badge.bg-warning {
    background: var(--warning-color) !important;
    color: white !important;
}

.badge.bg-info {
    background: var(--info-color) !important;
    color: white !important;
}