/**
 * HSI Group - Solution Page Styles
 * 解决方案页面样式 - 优化版
 */

/* ========================================
   Hero Section
======================================== */
.head-img {
    width: 100%;
    min-height: 480px;
    background: linear-gradient(135deg, #0a0f1a 0%, #0f172a 40%, #1a2744 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 主光晕效果 */
.head-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 120%, rgba(37, 99, 235, 0.25) 0%, transparent 60%),
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 35%);
    animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 网格背景 */
.head-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 0%, transparent 70%);
}

/* 浮动装饰粒子 */
.head-img .content::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatParticle 10s ease-in-out infinite;
}

.head-img .content::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -120px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatParticle 8s ease-in-out infinite reverse;
}

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.1); }
}

.head-img .content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white, #fff);
    padding: 0 24px;
    max-width: 800px;
}

.head-img .content h2 {
    font-family: var(--font-heading, 'Sora', sans-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    letter-spacing: -0.02em;
    text-shadow: 0 0 80px rgba(37, 99, 235, 0.5);
}

.head-img .content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    line-height: 1.6;
}

.head-img .content .knowBtn {
    padding: 16px 40px;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white, #fff);
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.3);
}

.head-img .content .knowBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.head-img .content .knowBtn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.4);
}

.head-img .content .knowBtn:hover::before {
    left: 100%;
}

@keyframes heroFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Main Content Section
======================================== */
.main {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gray-200, #E2E8F0), transparent);
}

.main-content {
    padding: 100px 24px 140px;
    text-align: center;
}

/* 标题部分 */
.main-content h3 {
    font-family: var(--font-heading, 'Sora', sans-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #0f172a;
    padding-top: 50px;
    margin-bottom: 20px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
}

.main-content h3.animate-in {
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.main-content > p {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.8;
    max-width: 640px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
}

.main-content > p.animate-in {
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Solution List
======================================== */
.solutionList {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 60px;
}

.solutionList li {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

/* PC 端第一行 3 卡片不换行 */
.solution-first {
    flex-wrap: nowrap;
}

.solution-first .solution-item {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

@media (max-width: 1024px) {
    .solution-first {
        flex-wrap: wrap;
    }
    
    .solution-first .solution-item {
        flex: none;
        width: 380px;
    }
}

/* ========================================
   Solution Card
======================================== */
.solution-item {
    background: #fff;
    width: 380px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 4px 6px rgba(15, 23, 42, 0.02),
        0 12px 24px rgba(15, 23, 42, 0.04);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.6);
    opacity: 0;
    transform: translateY(60px);
}

.solution-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 顶部渐变条 */
.solution-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #0ea5e9, #06b6d4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 光晕效果 */
.solution-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.solution-item:hover {
    transform: translateY(-12px);
    box-shadow: 
        0 20px 40px rgba(37, 99, 235, 0.1),
        0 8px 16px rgba(15, 23, 42, 0.06);
    border-color: rgba(37, 99, 235, 0.1);
}

.solution-item:hover::before {
    transform: scaleX(1);
}

.solution-item:hover::after {
    opacity: 1;
}

/* 图片容器 */
.solution-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-item:hover img {
    transform: scale(1.08);
}

/* ========================================
   Solution Text Content
======================================== */
.solution-text {
    padding: 32px 28px 36px;
    text-align: left;
    position: relative;
}

.solution-item h4 {
    font-family: var(--font-heading, 'Sora', sans-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.solution-item:hover h4 {
    color: #2563eb;
}

.solution-item p {
    font-size: 0.9375rem;
    line-height: 1.85;
    color: #64748b;
    min-height: 215px;
}

/* ========================================
   Cooperation Button
======================================== */
.cooperationBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2563eb;
    background: transparent;
    border: 2px solid #2563eb;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.cooperationBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.cooperationBtn:hover,
.solution-item:hover .cooperationBtn {
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.cooperationBtn:hover::before,
.solution-item:hover .cooperationBtn::before {
    width: 100%;
}

/* 添加箭头动画 */
.cooperationBtn::after {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.cooperationBtn:hover::after,
.solution-item:hover .cooperationBtn::after {
    opacity: 1;
    transform: translateX(0);
}

.solution-text .customized-support {
    margin-bottom: 32px;
}

/* ========================================
   动画延迟类
======================================== */
.solution-item:nth-child(1) { transition-delay: 0s; }
.solution-item:nth-child(2) { transition-delay: 0.1s; }
.solution-item:nth-child(3) { transition-delay: 0.2s; }

.solution-second .solution-item:nth-child(1) { transition-delay: 0s; }
.solution-second .solution-item:nth-child(2) { transition-delay: 0.1s; }

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1280px) {
    .solution-item {
        width: 340px;
    }
}

@media (max-width: 1080px) {
    .solutionList li {
        gap: 24px;
    }
    
    .solution-item {
        width: 320px;
    }
}

@media (max-width: 768px) {
    .head-img {
        min-height: 400px;
    }
    
    .head-img .content h2 {
        font-size: 2.5rem;
    }
    
    .solution-item {
        width: 100%;
        max-width: 420px;
    }
    
    .solution-item p {
        min-height: auto;
    }
    
    .main-content {
        padding: 70px 20px 100px;
    }
    
    .solutionList {
        margin-top: 50px;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .head-img {
        min-height: 360px;
    }
    
    .head-img .content {
        padding: 0 16px;
    }
    
    .head-img .content h2 {
        font-size: 2rem;
    }
    
    .head-img .content p {
        font-size: 1rem;
    }
    
    .head-img .content .knowBtn {
        padding: 14px 32px;
        font-size: 0.9375rem;
    }
    
    .main-content {
        padding: 50px 16px 80px;
    }
    
    .main-content h3 {
        font-size: 1.75rem;
    }
    
    .solution-text {
        padding: 24px 20px 28px;
    }
    
    .solution-item h4 {
        font-size: 1.2rem;
    }
    
    .solution-item p {
        font-size: 0.875rem;
    }
}
