/* VPS页面扁平化设计样式 */

/* ====== 全局扁平化设计变量 ====== */
: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);
    
    /* 扁平化设计字体 */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --border-radius: 4px;
    --transition: all 0.2s 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;
}

/* ====== 英雄区域扁平化设计 ====== */
.hero-section {
    background: var(--primary-color);
    position: relative;
    padding: 60px 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
    z-index: 0;
}

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

.hero-bg-overlay {
    display: none; /* 移除复杂的背景图案 */
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    font-weight: 400;
}

.hero-stats {
    background: rgba(255,255,255,0.15);
    border-radius: var(--border-radius);
    padding: 20px;
    backdrop-filter: none;
    box-shadow: none;
    margin-top: 30px;
}

.stat-item {
    flex: 1;
}

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

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

.hero-image {
    max-height: 300px;
    filter: none;
    animation: none;
}

/* ====== 产品卡片扁平化设计 ====== */
.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;
}

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

.specs-params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    width: 100%;
}

.specs-item-horizontal {
    display: flex;
    flex-direction: column;
    background-color: var(--light-color);
    padding: 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    min-width: 100px;
    border: 1px solid var(--border-color);
}

.specs-item-horizontal:hover {
    background-color: var(--primary-color);
    color: white;
}

.specs-item-horizontal:hover .specs-label,
.specs-item-horizontal:hover .specs-value {
    color: white;
}

.specs-label {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--text-muted);
}

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

/* ====== 价格和按钮区域扁平化设计 ====== */
.price-action-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 150px;
    padding: 1rem;
}

.price-container {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
    background: transparent;
    border: none;
    padding: 0;
}

.price-tag {
    color: var(--primary-color);
    padding: 0;
    border-radius: 0;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 10px;
    min-width: 120px;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

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

.price-period {
    font-size: 0.9rem;
    opacity: 0.8;
}

.product-action-buttons .btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

.product-action-buttons .btn:hover {
    background: #27ae60;
    transform: translateY(-1px);
}

/* ====== 产品元信息扁平化设计 ====== */
.product-meta-info {
    margin-bottom: 15px;
}

.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;
}

/* ====== 筛选区域扁平化设计 ====== */
.form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px 15px;
    font-size: 0.9rem;
    background: white;
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}

.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);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-secondary:hover {
    background: var(--light-color);
    color: var(--text-color);
}

/* ====== 分页扁平化设计 ====== */
.pagination {
    margin-top: 30px;
}

.page-link {
    border: 1px solid var(--border-color);
    margin: 0 2px;
    border-radius: var(--border-radius);
    color: var(--text-color);
    transition: var(--transition);
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ====== 特性介绍扁平化设计 ====== */
.features-section {
    padding: 60px 0;
    background: var(--card-background);
}

.feature-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.feature-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ====== 详情页扁平化设计 ====== */
.product-hero {
    background: var(--primary-color);
    padding: 40px 0;
    color: white;
    position: relative;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
    z-index: 0;
}

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

.price-box {
    background: rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    backdrop-filter: none;
}

.specs-highlights {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.specs-highlight-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

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

/* ====== 详情页配置信息扁平化设计 ====== */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.specs-item {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    transition: var(--transition);
}

.specs-item:hover {
    background: var(--primary-color);
    color: white;
}

.specs-item:hover .specs-label,
.specs-item:hover .specs-value {
    color: white;
}

.specs-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.specs-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

/* ====== 详情页价格信息扁平化设计 ====== */
.featured-price-container {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
}

.price-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.price-label {
    font-weight: 600;
    color: var(--text-color);
}

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

.price-amount {
    font-size: 1.2rem;
    font-weight: 700;
}

.price-period {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ====== 详情页产品参数网格扁平化设计 ====== */
.product-params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.param-item {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px;
    text-align: center;
    transition: var(--transition);
}

.param-item:hover {
    background: var(--primary-color);
    color: white;
}

.param-item:hover .param-icon,
.param-item:hover .param-label,
.param-item:hover .param-value {
    color: white;
}

.param-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.param-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.param-value {
    font-weight: 600;
    color: var(--text-color);
}

/* ====== 详情页厂商产品卡片扁平化设计 ====== */
.vendor-product-card {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

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

/* ====== 详情页扁平化卡片样式 ====== */
.flat-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);
}

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

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

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

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

/* ====== 厂商信息扁平化设计 ====== */
.vendor-details .badge {
    margin: 2px;
    padding: 5px 8px;
    font-size: 0.75rem;
}

.vendor-product-card {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

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

/* ====== 响应式设计 ====== */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    
    .specs-params-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specs-item-horizontal {
        padding: 10px;
    }
    
    .price-tag {
        width: 100%;
        max-width: none;
    }
    
    .product-action-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 575.98px) {
    .specs-params-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-item-horizontal {
        margin-bottom: 10px;
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .stat-item {
        margin-bottom: 15px;
    }
}

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

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

/* ====== 移除原有效果 ====== */
.hero-image {
    animation: none;
}

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