/**
 * Hero区域增强样式
 * 高雅素净的日式设计风格
 */

/* Hero区域背景渐变 */
.hero {
    position: relative;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(232, 244, 248, 0.9) 25%, 
        rgba(240, 232, 245, 0.9) 50%, 
        rgba(232, 244, 248, 0.9) 75%, 
        rgba(255, 255, 255, 0.95) 100%);
    background-size: 100% 200%;
    animation: gradientShift 15s ease-in-out infinite;
    overflow: hidden;
    min-height: calc(100vh - 60px); /* 减去导航栏高度 */
    padding-bottom: var(--spacing-lg); /* 添加底部内边距，确保与footer有间距 */
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 0% 100%;
    }
}

/* 背景图片层 */
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.2; /* 降低透明度，让几何图形更明显 */
    z-index: 0;
    pointer-events: none;
}

/* 几何图形Canvas层 */
#geometric-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    /* 确保canvas可见 */
    mix-blend-mode: normal;
}

/* Hero内容层 */
.hero-content {
    position: relative;
    z-index: 2;
}

/* 产品卡片容器 */
.hero-products {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 3rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* 产品卡片 */
.product-card {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.08);
    border: 1px solid rgba(184, 212, 227, 0.3);
    transition: all 0.4s ease-out;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.05) 0%, 
        rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease-out;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    border-color: rgba(74, 144, 226, 0.5);
}

/* 产品图标 */
.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

/* 产品标题 */
.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* 产品描述 */
.product-description {
    font-size: 1rem;
    color: #7F8C8D;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* 产品链接按钮 */
.product-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4A90E2 0%, #8B5CF6 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease-out;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.product-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Hero标题样式增强 - 使用深蓝色实心颜色 */
.hero-title {
    color: #1e3a5f; /* 深蓝色 */
    /* 移除渐变效果 */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #1e3a5f;
    background-clip: unset;
    /* 添加轻微文字阴影增强可见性 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* 标题居中 */
    text-align: center;
}

/* 确保text-line元素也使用深蓝色 */
.hero-title .text-line {
    display: block;
    color: #1e3a5f; /* 深蓝色 */
    /* 移除渐变效果 */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #1e3a5f;
    background-clip: unset;
    /* 添加轻微文字阴影 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* 标题居中 */
    text-align: center;
}

/* Hero副标题样式 */
.hero-subtitle {
    color: #2C3E50;
    font-weight: 400;
    line-height: 1.8;
}

/* Hero区域按钮样式 */
.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #4A90E2;
    border: 2px solid #4A90E2;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

.hero .btn-secondary:hover {
    background: #4A90E2;
    color: #FFFFFF;
    border-color: #4A90E2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-products {
        flex-direction: column;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .product-card {
        min-width: 100%;
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .product-icon {
        font-size: 2.5rem;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .product-description {
        font-size: 0.95rem;
    }
}
