/* 重点业务页面样式 */

/* ============ 页面基础样式 ============ */
.business-page {
    background: #000000;
    color: #FFFFFF;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "PingFang SC Medium";
}

/* ============ 流星背景效果 ============ */
.background-visuals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: visible;
    z-index: 0;
    pointer-events: none;
}

.background-visuals.meteor-background {
    background: transparent;
}

#meteorCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* ============ 星空背景（保留备用） ============ */
.star-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.stars {
    width: 100%;
    height: 100%;
    position: relative;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: min(2px, calc(2 / 1414 * 100vw));
    height: min(2px, calc(2 / 1414 * 100vw));
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite;
}

.stars::before {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.stars::after {
    top: 60%;
    left: 70%;
    animation-delay: 1s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* 生成更多星星 */
.stars .star {
    position: absolute;
    width: min(1px, calc(1 / 1414 * 100vw));
    height: min(1px, calc(1 / 1414 * 100vw));
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

/* ============ Banner区域 ============ */
.business-banner-section {
    position: relative;
    width: 100%;
    padding: min(80px, calc(80 / 1414 * 100vw)) min(20px, calc(20 / 1414 * 100vw)) min(60px, calc(60 / 1414 * 100vw));
    z-index: 1;
    min-height: min(600px, calc(600 / 1414 * 100vw));
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 70% 70% at center, transparent 30%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.8) 85%, #000000 100%);
    pointer-events: none;
}

.banner-bg img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.8;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.business-banner-content {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    max-width: min(800px, calc(800 / 1414 * 100vw));
}

.business-title {
    font-size: min(55px, calc(55 / 1414 * 100vw));
    font-weight: 700;
    letter-spacing: min(2.75px, calc(2.75 / 1414 * 100vw));
    background: linear-gradient(90deg, #0085FF 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin: 0;
    line-height: 1.2;
}

.business-subtitle {
    font-size: min(25px, calc(25 / 1414 * 100vw));
    font-weight: 400;
    background: linear-gradient(90deg, #1F80FF 10%, #FFFFFF 75%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin: min(20px, calc(20 / 1414 * 100vw)) 0 0 0;
    line-height: 1.4;
}

/* ============ 业务矩阵区域 ============ */
.business-matrix-section {
    position: relative;
    width: 100%;
    /* padding: min(60px, calc(60 / 1414 * 100vw)) min(20px, calc(20 / 1414 * 100vw)); */
    top: min(-60px, calc(-60 / 1414 * 100vw));
    z-index: 2;
}

.matrix-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.matrix-background img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate( -50%);
}

.business-container {
    max-width: min(1414px, 100vw);
    margin: 0 auto;
    position: relative;
}

/* ============ 业务图标环形布局 ============ */
.business-icons-ring {
    position: relative;
    width: 100%;
    width:  min(1207px, calc(1207 / 1414 * 100vw));
    height: min(752px, calc(752 / 1414 * 100vw));
    margin: 0 auto;
}

/* 标题区域 - 在中间 */
.business-matrix-title {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
}

.matrix-title {
    font-size: min(30px, calc(30 / 1414 * 100vw));
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1;
    margin: 0 0 min(11px, calc(11 / 1414 * 100vw));

}

.matrix-subtitle {
    font-size: min(20px, calc(20 / 1414 * 100vw));
    font-weight: 400;
    color: #A2A2A2;
    margin: 0;
    font-family: "PingFang SC Semibold";
}

.business-icon-item {
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.business-icon-item:hover {
    z-index: 10;
}

.business-icon-item:hover .icon-wrapper img {
    transform: scale(1.1);
}

.icon-wrapper {
    position: relative;
    text-align: center;
}

.icon-wrapper img {
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
    width: min(202px, calc(202 / 1414 * 100vw));
    height: min(213px, calc(213 / 1414 * 100vw));
}

/* 上方文字 - 鼠标悬停显示 */
.icon-label-top {
    position: absolute;
    top: min(-50px, calc(-50 / 1414 * 100vw));
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: min(14px, calc(14 / 1414 * 100vw));
    color: #FFFFFF;
    /* white-space: nowrap; */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    line-height: 1.4;
    width: min(123px, calc(163 / 1414 * 100vw));
    padding: 0 min(20px, calc(20 / 1414 * 100vw));
    padding-bottom: min(8px, calc(8 / 1414 * 100vw));
}

/* 上方文字下划线 */
.icon-label-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: min(2px, calc(2 / 1414 * 100vw));
    background-image: url('/assets/design/business/Line18.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 鼠标滑过时显示上方文字 */
.business-icon-item:hover .icon-label-top {
    opacity: 1;
    visibility: visible;
    top: min(-20px, calc(-20 / 1414 * 100vw));
}

/* 下方文字 - 长期显示 */
.icon-label-bottom {
    margin: min(10px, calc(10 / 1414 * 100vw)) auto 0;
    font-size: min(16px, calc(16 / 1414 * 100vw));
    color: #FFFFFF;
    white-space: nowrap;
    line-height: 1.4;
    border-radius: min(5px, calc(5 / 1414 * 100vw));
    transition: all 0.3s ease;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    width: min(130px, calc(130 / 1414 * 100vw));
    height: min(45px, calc(45 / 1414 * 100vw));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 渐变边框效果 */
.icon-label-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: min(5px, calc(5 / 1414 * 100vw));
    padding: min(1px, calc(1 / 1414 * 100vw));
    background: linear-gradient(180deg, #0A82FF 0%, #064E99 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
    font-family: "PingFang SC Medium";
}


/* 鼠标滑过时下方文字添加按钮背景 */
.business-icon-item:hover .icon-label-bottom {
    background-image: url('/assets/design/business/Blog3.png');
}

/* 图标位置 - 参照Figma设计图围绕中间的文字排列（注意：标题是第一个子元素） */
/* 机器人4s店 - 中心左侧 */
.business-icon-item:nth-child(2) {
    left: 0;
    top: min(15px, calc(15 / 1414 * 100vw));
    /* transform: translateY(-50%); */
}

/* 机器人焰究所 - 左下 */
.business-icon-item:nth-child(3) {
    left: min(72px, calc(72 / 1414 * 100vw));
    top:  min(378px, calc(378 / 1414 * 100vw));
}

/* 开发者社区 - 中下偏左 */
.business-icon-item:nth-child(4) {
    right: min(361px, calc(361 / 1414 * 100vw));
    top:  min(521px, calc(521 / 1414 * 100vw));
}

/* 工业旅游 - 中右偏上 */
.business-icon-item:nth-child(5) {

    left: min(361px, calc(361 / 1414 * 100vw));
    top:  min(521px, calc(521 / 1414 * 100vw));
}

/* 测评中心 - 右下 */

.business-icon-item:nth-child(6) {
    right: min(72px, calc(72 / 1414 * 100vw));
    top:  min(378px, calc(378 / 1414 * 100vw));
}
/* 预留 - 右侧偏上 */

.business-icon-item:nth-child(7) {
    right: 0;
    top: min(15px, calc(15 / 1414 * 100vw));
}

/* ============ 横向循环焦点图片展示区域 ============ */
.business-showcase-section {
    position: relative;
    width: 100%;
    /*padding: min(80px, calc(80 / 1414 * 100vw)) 0;*/
    z-index: 2;
    margin-top: min(140px, calc(140 / 1414 * 100vw));
}

/* 轮播外层容器 - 限制宽度1414并裁剪超出部分 */
.showcase-wrapper {
    width: 1414px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

/* Swiper 3D 轮播效果样式在 swiper.certify.css 中定义 */

/* 左侧堆叠 */
.showcase-stack-left {
    position: relative;
    width: auto;
    height: auto;
}

.showcase-stack-left .stack-card {
    position: absolute;
    width: auto;
    height: auto;
    border-radius: min(10px, calc(10 / 1414 * 100vw));
    overflow: hidden;
    box-shadow: 0 min(4px, calc(4 / 1414 * 100vw)) min(20px, calc(20 / 1414 * 100vw)) rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

.showcase-stack-left .stack-card img {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}

.showcase-stack-left .stack-card-back {
    left: min(-200px, calc(-200 / 1414 * 100vw));
    top: min(10px, calc(10 / 1414 * 100vw));
    opacity: 0.6;
    z-index: 1;
    transform: translateX(0);
}

.showcase-stack-left .stack-card-mid {
    left: min(-100px, calc(-100 / 1414 * 100vw));
    top: min(5px, calc(5 / 1414 * 100vw));
    opacity: 0.8;
    z-index: 2;
}

.showcase-stack-left .stack-card-front {
    left: 0;
    top: 0;
    opacity: 1;
    z-index: 3;
    transform: translateX(0);
}

/* 中间主展示 */
.showcase-main {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    border-radius: min(15px, calc(15 / 1414 * 100vw));
    overflow: hidden;
    box-shadow: 0 min(10px, calc(10 / 1414 * 100vw)) min(40px, calc(40 / 1414 * 100vw)) rgba(0, 132, 255, 0.3);
    border: min(2px, calc(2 / 1414 * 100vw)) solid #0A82FF;
    position: relative;
    z-index: 10;
    transition: all 0.5s ease;
}

.showcase-main img {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* 右侧堆叠 */
.showcase-stack-right {
    position: relative;
    width: auto;
    height: auto;
}

.showcase-stack-right .stack-card {
    position: absolute;
    width: auto;
    height: auto;
    border-radius: min(10px, calc(10 / 1414 * 100vw));
    overflow: hidden;
    box-shadow: 0 min(4px, calc(4 / 1414 * 100vw)) min(20px, calc(20 / 1414 * 100vw)) rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

.showcase-stack-right .stack-card img {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}

.showcase-stack-right .stack-card-front {
    left: 0;
    top: 0;
    opacity: 1;
    z-index: 2;
    transform: translateX(0);
}

.showcase-stack-right .stack-card-back {
    left: min(100px, calc(100 / 1414 * 100vw));
    top: min(5px, calc(5 / 1414 * 100vw));
    opacity: 0.8;
    z-index: 1;
    transform: translateX(0);
}

/* 导航文字 */
.showcase-navigation {
    display: flex;
    justify-content: center;
    gap: min(15px, calc(15 / 1414 * 100vw));
    flex-wrap: wrap;
}

.showcase-navigation .nav-item {
    padding: min(10px, calc(10 / 1414 * 100vw)) min(25px, calc(25 / 1414 * 100vw));
    background: rgba(255, 255, 255, 0.1);
    border: min(1px, calc(1 / 1414 * 100vw)) solid rgba(255, 255, 255, 0.3);
    border-radius: min(5px, calc(5 / 1414 * 100vw));
    color: #FFFFFF;
    font-size: min(16px, calc(16 / 1414 * 100vw));
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-navigation .nav-item:hover {
    background: rgba(10, 130, 255, 0.3);
    border-color: #0A82FF;
}

.showcase-navigation .nav-item.active {
    background: linear-gradient(135deg, #003CF1, #0A82FF);
    border-color: #0A82FF;
    box-shadow: 0 0 min(20px, calc(20 / 1414 * 100vw)) rgba(10, 130, 255, 0.5);
}

/* ============================================
   滚动渐入动画效果（参考首页）
   ============================================ */

/* 基础动画类：初始隐藏状态 */
.scroll-animate-up {
    opacity: 0;
    transform: translateY(200px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 300ms;
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-220px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 400ms;
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(220px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 800ms;
}

/* 激活状态：显示并移除偏移 */
.scroll-animate-up.visible,
.scroll-animate-left.visible,
.scroll-animate-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* ============ 响应式设计 ============ */
@media (max-width: 1024px) {
    .showcase-container {
        flex-direction: column;
    }
    
    .showcase-stack-left,
    .showcase-stack-right {
        width: 100%;
        max-width: min(300px, calc(300 / 1414 * 100vw));
        height: min(200px, calc(200 / 1414 * 100vw));
    }
    
    .showcase-main {
        width: 100%;
        max-width: min(400px, calc(400 / 1414 * 100vw));
        height: min(300px, calc(300 / 1414 * 100vw));
    }
}

@media (max-width: 768px) {
    .business-banner-section {
        padding: min(60px, calc(60 / 1414 * 100vw)) min(15px, calc(15 / 1414 * 100vw)) min(40px, calc(40 / 1414 * 100vw));
        min-height: min(400px, calc(400 / 1414 * 100vw));
    }

    .business-title {
        font-size: min(36px, calc(36 / 1414 * 100vw));
    }

    .business-subtitle {
        font-size: min(20px, calc(20 / 1414 * 100vw));
    }

    .matrix-title {
        font-size: min(32px, calc(32 / 1414 * 100vw));
    }

    .matrix-subtitle {
        font-size: min(16px, calc(16 / 1414 * 100vw));
    }

    .business-matrix-title {
        margin-bottom: min(100px, calc(100 / 1414 * 100vw));
    }

    .business-icons-ring {
        height: min(450px, calc(450 / 1414 * 100vw));
    }

    .business-matrix-title {
        margin-bottom: min(80px, calc(80 / 1414 * 100vw));
        top: 35%;
    }

    .showcase-container {
        min-height: auto;
    }

    .showcase-main {
        height: min(250px, calc(250 / 1414 * 100vw));
    }

    .showcase-navigation .nav-item {
        padding: min(8px, calc(8 / 1414 * 100vw)) min(16px, calc(16 / 1414 * 100vw));
        font-size: min(14px, calc(14 / 1414 * 100vw));
    }
}

@media (max-width: 480px) {
    .business-title {
        font-size: min(28px, calc(28 / 1414 * 100vw));
    }

    .business-subtitle {
        font-size: min(18px, calc(18 / 1414 * 100vw));
    }

    .matrix-title {
        font-size: min(24px, calc(24 / 1414 * 100vw));
    }

    .business-matrix-title {
        margin-bottom: min(80px, calc(80 / 1414 * 100vw));
    }

    .business-icons-ring {
        height: min(400px, calc(400 / 1414 * 100vw));
        max-width: 100%;
    }

    .business-matrix-title {
        top: 30%;
    }

    .matrix-title {
        font-size: min(20px, calc(20 / 1414 * 100vw));
    }

    .matrix-subtitle {
        font-size: min(14px, calc(14 / 1414 * 100vw));
    }

    /* 小屏幕图标位置 */
    .business-icon-item:nth-child(2) {
        left: 2%;
        top: 50%;
        transform: translateY(-50%);
    }

    .business-icon-item:nth-child(3) {
        left: 2%;
        bottom: 2%;
    }

    .business-icon-item:nth-child(4) {
        left: 38%;
        bottom: -2%;
    }

    .business-icon-item:nth-child(5) {
        right: 28%;
        top: 38%;
    }

    .business-icon-item:nth-child(6) {
        right: 2%;
        bottom: -2%;
    }

    .business-icon-item:nth-child(7) {
        right: 2%;
        top: 32%;
    }

    .showcase-navigation {
        gap: min(10px, calc(10 / 1414 * 100vw));
    }

    .showcase-navigation .nav-item {
        padding: min(6px, calc(6 / 1414 * 100vw)) min(12px, calc(12 / 1414 * 100vw));
        font-size: min(12px, calc(12 / 1414 * 100vw));
    }
}
