/*
 * 慧创科学首页 - 超净间四大区域样式
 * 版本: v4 完整版 CSS (桌面+移动双SVG)
 * 更新日期: 2026-03-07
 */

/* ============ Solvior主题官方配色 ============ */
:root {
    --solvior-primary: #0075ff;
    --solvior-dark: #051229;
    --solvior-bg: #e1e8f0;
    --solvior-bg-2: #dfecfd;
    --solvior-text: #364052;
    --solvior-text-2: #7e8590;
    --solvior-border: #ced7e0;
}

/* ============ 基础样式 ============ */
.wise-hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, var(--solvior-bg-2) 0%, var(--solvior-bg) 100%);
}

/* ============ 背景 ============ */
.wise-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    z-index: 1;
    overflow: hidden;
}

/* 桌面/移动版切换 */
.wise-hero-desktop {
    display: block !important;
}
.wise-hero-mobile {
    display: none !important;
}

.wise-hero-background object,
.wise-hero-svg-object {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    display: block;
}

/* ============ 热区容器 ============ */
.wise-hero-zones {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 28px;
    padding: 0 40px;
    margin-top: 18vh;
}

/* ============ 热区卡片 ============ */
.wise-zone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    border: 1px solid rgba(0, 117, 255, 0.12);
    text-decoration: none;
    color: inherit;
    width: 165px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(5, 18, 41, 0.08);
}

.wise-zone-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 117, 255, 0.18);
    border-color: rgba(0, 117, 255, 0.35);
}

/* 各区域特定悬停效果 */
.wise-zone-item.zone-lithography:hover {
    border-color: rgba(0, 117, 255, 0.5);
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(0,117,255,0.04) 100%);
}
.wise-zone-item.zone-etching:hover {
    border-color: rgba(147, 51, 234, 0.5);
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(147,51,234,0.04) 100%);
}
.wise-zone-item.zone-deposition:hover {
    border-color: rgba(78, 205, 196, 0.5);
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(78,205,196,0.04) 100%);
}
.wise-zone-item.zone-packaging:hover {
    border-color: rgba(0, 117, 255, 0.5);
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(0,117,255,0.04) 100%);
}

/* ============ 图标 ============ */
.wise-zone-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 14px;
    transition: transform 0.35s ease;
}
.wise-zone-item:hover .wise-zone-icon {
    transform: scale(1.12) rotate(3deg);
}
.wise-zone-icon svg {
    width: 100%;
    height: 100%;
}

/* ============ 热区内容 ============ */
.wise-zone-content {
    text-align: center;
}
.wise-zone-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--solvior-dark);
    margin: 0 0 4px 0;
}
.wise-zone-en {
    font-size: 11px;
    font-weight: 500;
    color: var(--solvior-text-2);
    margin: 0 0 6px 0;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.wise-zone-desc {
    font-size: 12px;
    color: var(--solvior-text);
    margin: 0;
    line-height: 1.4;
}

/* ============ 桌面端响应式 ============ */
@media (min-width: 1600px) {
    .wise-hero-zones { gap: 32px; }
    .wise-zone-item { width: 180px; }
    .wise-zone-icon { width: 75px; height: 75px; }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .wise-hero-zones { gap: 28px; }
    .wise-zone-item { width: 165px; }
    .wise-zone-icon { width: 70px; height: 70px; }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .wise-hero-section { min-height: 70vh; }
    .wise-hero-zones {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 15vh;
    }
    .wise-zone-item { width: 150px; }
    .wise-zone-icon { width: 65px; height: 65px; }
}

/* ============ 移动端优化 (≤768px) ============ */
@media (max-width: 768px) {
    .wise-hero-section {
        min-height: 100vh;
        padding: 0;
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* 切换到移动版 SVG */
    .wise-hero-desktop { display: none !important; }
    .wise-hero-mobile { display: block !important; }

    /* 移动端 SVG 完整显示 */
    .wise-hero-background object,
    .wise-hero-svg-object {
        width: 100vw;
        height: auto;
        min-height: 100vh;
        max-width: 100vw;
        object-fit: contain !important;
        position: absolute;
        top: 0;
        left: 0;
    }

    /* 卡片容器：2×2 网格，顶部显示 */
    .wise-hero-zones {
        position: absolute;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 12px;
        width: calc(100% - 24px);
        max-width: 380px;
        padding: 0;
        margin: 0;
        z-index: 20;
    }

    /* 卡片：紧凑型 */
    .wise-zone-item {
        width: 100%;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 16px 8px;
        gap: 8px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 14px;
        min-height: 110px;
    }

    /* 图标 */
    .wise-zone-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
    }

    /* 内容 */
    .wise-zone-content {
        text-align: center;
        flex: 0;
    }

    .wise-zone-title {
        font-size: 15px;
        margin-bottom: 1px;
    }

    .wise-zone-en {
        font-size: 8px;
        margin-bottom: 0;
        opacity: 0.6;
        letter-spacing: 0.5px;
    }

    /* 隐藏描述文字 */
    .wise-zone-desc-mobile {
        display: none;
    }

    /* 触摸反馈 */
    .wise-zone-item:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 1);
    }
    .wise-zone-item:hover {
        transform: none;
    }
    .wise-zone-item:hover .wise-zone-icon {
        transform: none;
    }

    /* 顶部渐变遮罩 */
    .wise-hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 220px;
        background: linear-gradient(180deg, rgba(245,247,250,0.95) 0%, rgba(245,247,250,0.6) 60%, transparent 100%);
        z-index: 15;
        pointer-events: none;
    }

    /* 底部渐变遮罩 */
    .wise-hero-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 150px;
        background: linear-gradient(0deg, rgba(245,247,250,0.9) 0%, transparent 100%);
        z-index: 15;
        pointer-events: none;
    }
}

/* ============ 小屏手机优化 (≤480px) ============ */
@media (max-width: 480px) {
    .wise-hero-zones {
        width: calc(100% - 24px);
        gap: 12px;
        max-width: 360px;
    }
    .wise-zone-item {
        padding: 16px 10px;
        min-height: 120px;
        gap: 8px;
    }
    .wise-zone-icon {
        width: 48px;
        height: 48px;
    }
    .wise-zone-title {
        font-size: 15px;
    }
    .wise-zone-en {
        font-size: 8px;
    }
}

/* ============ 载入动画 ============ */
.wise-hero-section .wise-zone-item {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 0.5s ease forwards;
}
.wise-hero-section .wise-zone-item:nth-child(1) { animation-delay: 0.1s; }
.wise-hero-section .wise-zone-item:nth-child(2) { animation-delay: 0.2s; }
.wise-hero-section .wise-zone-item:nth-child(3) { animation-delay: 0.3s; }
.wise-hero-section .wise-zone-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 移动端无入场动画 */
@media (max-width: 768px) {
    .wise-hero-section .wise-zone-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
