<template>
    <div class="productcenter">
        <div class="railling-bgc">
            <div class="railling-banner">
                <div class="banner-left" v-if="productmessage.banner1">
                    <img :src="productmessage.banner1.detail" :alt="productmessage.banner1.name">
                    <span class="banner-title">{{ productmessage.banner1.title }}</span>
                </div>
                <div class="banner-right">
                    <div class="icon-img" v-if="productmessage.banner2">
                        <img :src="productmessage.banner2.detail" :alt="productmessage.banner2.name">
                        <div class="banner-icon" v-if="productmessage.tips && productmessage.tips.length != 0">
                            <span class="icon" :class="router.currentRoute.value.params.name == '5' ? 'kiticon' : ''"
                                v-for="item, index in productmessage.tips" :key="index">
                                <img :src="item.detail" :alt="item.name">
                                <span>{{ item.title }}</span>
                            </span>
                        </div>
                        <div class="banner-icons" v-if="productmessage.icons && productmessage.icons.length != 0">
                            <img :src="item.detail" :alt="item.name" v-for="item, index in productmessage.icons"
                                :key="index">
                        </div>
                    </div>
                </div>
                <div class="banner" v-if="productmessage.banner3">
                    <img :src="productmessage.banner3.detail" :alt="productmessage.banner3.name">
                </div>
            </div>
            <div class="pic">
                <!-- 有标签页 -->
                <el-tabs v-model="activeName2" class="demo-tabs" @tab-click="handleClick1"
                    v-if="productmessage.children && productmessage.children.length != 0">
                    <el-tab-pane :label="item.name" :name="item.name" v-for="item, index in productmessage.children"
                        :key="index">
                        <div class="children-pic" v-if="router.currentRoute.value.params.name == 'Railings&stairs'">
                            <div class="children-header">
                                <div class="header-left">
                                    <h1>{{ item.message.title }}</h1>
                                    <h2><strong>{{ item.message.mintitle }}</strong></h2>
                                    <span class="left-ietm" v-if="item.message.Application">{{ item.message.Application
                                    }}</span>
                                    <span class="left-ietm" v-if="item.message.patiosMaterials">{{
                                        item.message.patiosMaterials }}</span>
                                    <span class="left-ietm" v-if="item.message.Styles">{{ item.message.Styles }}</span>
                                </div>
                                <div class="header-right">
                                    <img :src="item.banner.detail" :alt="item.banner.name">
                                    <div class="mask"></div>
                                </div>
                            </div>
                            <div class="children-allpic">
                                <div class="children-item" v-for="item2, index2 in item.others" :key="index2"
                                    v-if="item.others && item.others.length != 0">
                                    <img :src="item2.detail" :alt="item2.name">
                                    <span class="img-title" v-if="item2.title">{{ item2.title }}</span>
                                </div>
                            </div>
                        </div>
                        <div class="children-pic1" v-else-if="router.currentRoute.value.params.name == 'Sanitary Ware'">
                            <div class="allpic1" v-if="activeName2 == 'LED Mirror'">
                                <div class="pic1-item" v-for="item2, index2 in item.others"
                                    v-if="item.others && item.others.length != 0" :key="index2">
                                    <div class="pic1-img">
                                        <img :src="item2.detail" :alt="item2.name">
                                    </div>
                                    <div class="pic1-title" v-if="item.banner">
                                        <img :src="item.banner.detail" :alt="item.banner.name">
                                        <span>{{ item2.title }}</span>
                                    </div>
                                </div>
                                <div class="pic1-item" v-if="item.others1">
                                    <div class="pic1-title">
                                        <img :src="item.banner.detail" :alt="item.banner.name">
                                        <span>{{ item.others1.title }}</span>
                                    </div>
                                    <div class="pic1-img">
                                        <img :src="item.others1.detail" :alt="item.others1.name">
                                    </div>
                                </div>
                                <div class="pic1-item1" v-if="item.others2">
                                    <div class="pic1-title">
                                        <img :src="item.banner.detail" :alt="item.banner.name">
                                        <span>{{ item.others2.title }}</span>
                                    </div>
                                    <div class="pic1-img">
                                        <img :src="item.others2.detail" :alt="item.others2.name">
                                    </div>
                                </div>
                            </div>
                            <div v-else-if="activeName2 == 'Wooden Frame Mirror'">
                                <div class="wooden">
                                    <div class="wooden-header" v-if="item.others && item.others.length != 0">
                                        <div class="wooden-item" v-for="item2, index2 in item.others" :key="index2">
                                            <img :src="item2.detail" :alt="item2.name">
                                            <span>{{ item2.title }}</span>
                                        </div>
                                    </div>
                                    <div class="wooden-bootom">
                                        <div class="wooden-left" v-if="item.banner">
                                            <img :src="item.banner.detail" :alt="item.banner.name">
                                            <span>{{ item.banner.title }}</span>
                                        </div>
                                        <div class="wooden-right" v-if="item.banner2">
                                            <img :src="item.banner2.detail" :alt="item.banner2.name">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div v-else-if="activeName2 == 'Faucets'">
                                <div class="faucets">
                                    <div class="faucets-header">
                                        <div class="header-left">
                                            <div class="left1" v-if="item.banner1">
                                                <img :src="item.banner1.detail" :alt="item.banner1.name">
                                            </div>
                                            <div class="left2" v-if="item.banner2">
                                                <img :src="item.banner2.detail" :alt="item.banner2.name">
                                            </div>
                                        </div>
                                        <div class="header-right" v-if="item.others && item.others.length != 0">
                                            <div class="right-item" v-for="item2, index2 in item.others" :key="index2">
                                                <img :src="item2.detail" :alt="item2.name">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="faucets-bottom">
                                        <h1 v-if="item.others2"><strong>{{ item.others2.title }}</strong></h1>
                                        <span v-if="item.others2">{{ item.others2.mintitle }}</span>
                                        <div class="color-pic"
                                            v-if="item.others2 && item.others2.children && item.others2.children.length != 0">
                                            <img :src="item2.detail" :alt="item2.name"
                                                v-for="item2, index2 in item.others2.children" :key="index2">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div v-else-if="activeName2 == 'Basins'">
                                <div class="basins">
                                    <div class="basins-header" v-if="item.others && item.others.length != 0">
                                        <div class="header-item" v-for="item2, index2 in item.others" :key="index2">
                                            <img :src="item2.detail" :alt="item2.name">
                                        </div>
                                    </div>
                                    <div class="basins-bottom">
                                        <h1 v-if="item.others2"><strong>{{ item.others2.title }}</strong></h1>
                                        <span v-if="item.others2"><strong>{{ item.others2.mintitle }}</strong></span>
                                        <div class="styles">
                                            <div class="basins-styles"
                                                v-if="item.others2 && item.others2.children && item.others2.children.length != 0">
                                                <div class="styles-item" v-for="item2, index2 in item.others2.children"
                                                    :key="index2">
                                                    <img :src="item2.detail" :alt="item2.name">
                                                </div>
                                            </div>
                                            <div class="basins-quality">
                                                <h2 v-if="item.icons"><strong>{{ item.icons.title }}</strong></h2>
                                                <div class="icons"
                                                    v-if="item.icons && item.icons.children && item.icons.children.length != 0">
                                                    <img :src="item2.detail" :alt="item2.name"
                                                        v-for="item2, index2 in item.icons.children" :key="index2">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div v-else-if="activeName2 == 'Toilets'">
                                <div class="toilet">
                                    <div class="toilet-banner" v-if="item.banner">
                                        <img :src="item.banner.detail" :alt="item.banner.name">
                                    </div>
                                    <div class="other-toilet" v-if="item.others && item.others.length != 0">
                                        <img :src="item2.detail" :alt="item2.name" v-for="item2, index2 in item.others"
                                            :key="index2">
                                    </div>
                                    <div class="toilet-style">
                                        <h1 v-if="item.styles"><strong>{{ item.styles.title }}</strong></h1>
                                        <span v-if="item.styles"><strong>{{ item.styles.mintitle }}</strong></span>
                                        <div class="styles"
                                            v-if="item.styles && item.styles.children && item.styles.children.length != 0">
                                            <div class="styles-item" v-for="item2, index2 in item.styles.children"
                                                :key="index2">
                                                <img :src="item2.detail" :alt="item2.name">
                                                <span><strong>{{ item2.title }}</strong></span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div v-else-if="activeName2 == 'Tubs'">
                                <div class="tubs">
                                    <div class="tubs-header" v-if="item.others && item.others.length != 0">
                                        <div class="header-item" v-for="item2, index2 in item.others" :key="index2">
                                            <div class="item-left">
                                                <img :src="item2.detail" :alt="item2.name">
                                            </div>
                                            <div class="item-right">
                                                <span>{{ item2.title }}</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="tubs-bottom">
                                        <div class="bottom-left" v-if="item.others2">
                                            <h1><strong>{{ item.others2.title }}</strong></h1>
                                            <div class="one"></div>
                                            <h2><strong>{{ item.others2.mintitle }}</strong></h2>
                                            <div class="bottom-tubs"
                                                v-if="item.others2 && item.others2.children && item.others2.children.length != 0">
                                                <div class="bottom-item" v-for="item2, index2 in item.others2.children"
                                                    :key="index2">
                                                    <img :src="item2.detail" :alt="item2.name">
                                                    <span>{{ item2.title }}</span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="bottom-right">
                                            <h2 v-if="item.icons"><strong>{{ item.icons.title }}</strong></h2>
                                            <div class="icons"
                                                v-if="item.icons && item.icons.children && item.icons.children.length != 0">
                                                <img :src="item2.detail" :alt="item2.name"
                                                    v-for="item2, index2 in item.icons.children" :key="index2">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div v-else-if="activeName2 == 'Shower Rooms'">
                                <div class="shower">
                                    <div class="shower-header">
                                        <div class="header-left" v-if="item.others && item.others.banner">
                                            <img :src="item.others.banner.detail" :alt="item.others.banner.name">
                                        </div>
                                        <div class="header-right" v-if="item.others">
                                            <h1><strong>{{ item.others.title }}</strong></h1>
                                            <div class="right-color">
                                                <h2><strong>{{ item.others.title2 }}</strong></h2>
                                                <h4>{{ item.others.mintitle }}</h4>
                                                <div class="color-list"
                                                    v-if="item.others.colors && item.others.colors.length != 0">
                                                    <div class="color-item" v-for="item2, index2 in item.others.colors"
                                                        :key="index2">
                                                        <img :src="item2.detail" :alt="item2.name">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="right-icon">
                                                <h2 v-if="item.others"><strong>{{ item.others.icontitle }}</strong></h2>
                                                <div class="icon-list"
                                                    v-if="item.others.icons && item.others.icons.length != 0">
                                                    <div class="icon-item" v-for="item2, index2 in item.others.icons"
                                                        :key="index2">
                                                        <img :src="item2.detail" :alt="item2.name">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="shower-bottom"
                                        v-if="item.others && item.others.children && item.others.children.length != 0">
                                        <div class="bottom-item" v-for="item2, index2 in item.others.children"
                                            :key="index2">
                                            <img :src="item2.detail" :alt="item2.name">
                                            <span>{{ item2.title }}</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div v-else-if="activeName2 == 'Shower Columns/Panel'">
                                <div class="panel">
                                    <div class="panel-list" v-if="item.children && item.children.length != 0">
                                        <div class="list-item" v-for="item2, index2 in item.children" :key="index2">
                                            <img :src="item2.detail" :alt="item2.name">
                                            <span>{{ item2.title }}</span>
                                        </div>
                                        <div class="panel-item" v-if="item.others">
                                            <h1><strong>{{ item.others.title }}</strong></h1>
                                            <div class="right-color">
                                                <h2><strong>{{ item.others.title2 }}</strong></h2>
                                                <h4>{{ item.others.mintitle }}</h4>
                                                <div class="color-list"
                                                    v-if="item.others.colors && item.others.colors.length != 0">
                                                    <div class="color-item" v-for="item2, index2 in item.others.colors"
                                                        :key="index2">
                                                        <img :src="item2.detail" :alt="item2.name">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="right-icon">
                                                <h2 v-if="item.others"><strong>{{ item.others.icontitle }}</strong></h2>
                                                <div class="icon-list"
                                                    v-if="item.others.icons && item.others.icons.length != 0">
                                                    <div class="icon-item" v-for="item2, index2 in item.others.icons"
                                                        :key="index2">
                                                        <img :src="item2.detail" :alt="item2.name">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div v-else-if="activeName2 == 'Bathroom Cabinet'">
                                <div class="cabinet">
                                    <div class="cabinet-header">
                                        <img :src="item.banner.detail" :alt="item.banner.name" v-if="item.banner">
                                        <div class="header-right" v-if="item.others">
                                            <h1><strong>{{ item.others.title }}</strong></h1>
                                            <span class="font-size-20">{{ item.others.desc }}</span>
                                            <div class="right-options" v-if="item.others && item.others.options">
                                                <h5><strong>{{ item.others.options.title }}</strong></h5>
                                                <div class="options-list"
                                                    v-if="item.others.options.children && item.others.options.children.length != 0">
                                                    <div class="options-item"
                                                        v-for="item2, index2 in item.others.options.children" :key="index2">
                                                        <img :src="item2.detail" :alt="item2.name">
                                                        <span class="font-size-18">{{ item2.title }}</span>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="right-options" v-if="item.others && item.others.options">
                                                <h5><strong>{{ item.others.finishes.title }}</strong></h5>
                                                <div class="options-list"
                                                    v-if="item.others.finishes.children && item.others.finishes.children.length != 0">
                                                    <div class="options-item"
                                                        v-for="item2, index2 in item.others.finishes.children"
                                                        :key="index2">
                                                        <img :src="item2.detail" :alt="item2.name">
                                                        <span class="font-size-18 finishesspan">{{ item2.title }}</span>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tips" v-if="item.tips">
                                                {{ item.tips }}
                                            </div>
                                            <div class="quality" v-if="item.others.icons">
                                                <h5><strong>{{ item.others.icons.title }}</strong></h5>
                                                <div class="icons-list"
                                                    v-if="item.others.icons.children && item.others.icons.children.length != 0">
                                                    <div class="icons-item"
                                                        v-for="item2, index2 in item.others.icons.children" :key="index2">
                                                        <img :src="item2.detail" :alt="item2.name">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="cabinet-bottom" v-if="item.children && item.children.length != 0">
                                        <img :src="item2.detail" :alt="item2.name" v-for="item2, index2 in item.children"
                                            :key="index2">
                                    </div>
                                </div>
                            </div>
                            <div v-else-if="activeName2 == 'Bathroom Accessories'">
                                <div class="accessories">
                                    <div class="accessories-left" v-if="item.banner">
                                        <img :src="item.banner.detail" :alt="item.banner.name">
                                        <span>{{ item.banner.title }}</span>
                                    </div>
                                    <div class="accessories-right" v-if="item.banner2">
                                        <div class="right-header">
                                            <h1><strong>{{ item.banner2.title }}</strong></h1>
                                            <img :src="item.banner2.detail" :alt="item.banner2.name">
                                        </div>
                                        <div class="right-bottom" v-if="item.others">
                                            <h3><strong>{{ item.others.title }}</strong></h3>
                                            <h5>{{ item.others.mintitle }}</h5>
                                            <div class="bottom-colors"
                                                v-if="item.others.children && item.others.children.length != 0">
                                                <img :src="item2.detail" :alt="item2.name"
                                                    v-for="item2, index2 in item.others.children" :key="index">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="children-pic" v-else-if="router.currentRoute.value.params.name == 'Building Materials'">
                            <div v-if="activeName2 == 'LVT/SPC Flooring'">
                                <div class="flooring">
                                    <div class="flooring-header">
                                        <img :src="item.banner.detail" :alt="item.banner.name" v-if="item.banner"
                                            class="img1">
                                        <span v-if="item.banner" class="span1">{{ item.banner.title }}</span>
                                        <div class="flooring-footer">
                                            <div class="footer-left" v-if="item.product">
                                                <h3 v-if="item.product.title"><strong>{{ item.product.title }}</strong></h3>
                                                <h5 v-if="item.product.mintitle">{{ item.product.mintitle }}</h5>
                                                <div class="footer-product"
                                                    v-if="item.product.children && item.product.children.length">
                                                    <div class="product-item" v-for="item2, index2 in item.product.children"
                                                        :key="index2">
                                                        <img :src="item2.detail" :alt="item2.name">
                                                        <span>{{ item2.title }}</span>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="footer-right" v-if="item.icons">
                                                <div class="icons-list" v-if="item.icons && item.icons.length">
                                                    <div class="icons-item" v-for="item2, index2 in item.icons"
                                                        :key="index2">
                                                        <img :src="item2.detail" :alt="item2.name">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="flooring-bottom">
                                        <div class="bottom-header" v-if="item.floor && item.floor.length != 0">
                                            <div class="item" v-for="item2, index2 in item.floor" :key="index2">
                                                <div class="item-left">
                                                    <img :src="item2.leftimg.detail" :alt="item2.leftimg.name"
                                                        class="img1" />
                                                    <img :src="item2.rightimg.detail" :alt="item2.rightimg.name"
                                                        class="img2" />
                                                    <div class="mask"></div>
                                                </div>
                                                <div class="item-right">
                                                    <span class="font-size-22"><strong>{{ item2.title }}</strong></span>
                                                    <span>Thickness：{{ item2.Thickness }}</span>
                                                    <span>Wear layer：{{ item2.Wearlayer }}</span>
                                                    <span>Pattern：{{ item2.Pattern }}</span>
                                                    <span>Finish：{{ item2.Finish }}</span>
                                                    <span>Feature：{{ item2.Feature }}</span>
                                                    <span>Advantage：{{ item2.Advantage }}</span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="bottom-size">
                                            <img :src="item.banner1.detail" :alt="item.banner1.name" v-if="item.banner1">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div v-else-if="activeName2 == 'WPC Series'">
                                <div class="series">
                                    <h1 v-if="item.title"><strong>{{ item.title }}</strong></h1>
                                    <div class="series-list" v-if="item.children && item.children.length != 0">
                                        <div class="series-item" v-for="item2, index2 in item.children" :key="index2">
                                            <img :src="item2.detail" :alt="item2.name">
                                            <span>{{ item2.title }}</span>
                                        </div>
                                    </div>
                                    <div class="series-features">
                                        <img :src="item.banner.detail" :alt="item.banner.name" v-if="item.banner">
                                        <h1><strong>Product Features</strong></h1>
                                        <div class="features" v-if="item.features && item.features.length != 0">
                                            <div class="features-item" v-for="item2, index2 in item.features" :key="index2">
                                                <h4>{{ item2.position }}&nbsp;{{ item2.content }}</h4>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="series-others" v-if="item.others && item.others.length != 0">
                                        <div class="others-item" v-for="item2, index2 in item.others" :key="index2">
                                            <img :src="item2.detail" :alt="item2.name">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div v-else-if="activeName2 == 'FCP Series'">
                                <div class="fcpseries">
                                    <div class="fcplist" v-if="item.others && item.others.length != 0">
                                        <div class="fcpitem" v-for="item2, index2 in item.others" :key="index2">
                                            <img :src="item2.detail" :alt="item2.name">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div v-else-if="activeName2 == 'Stone Series'">
                                <div class="stone">
                                    <div class="stone-list" v-if="item.children && item.children.length != 0">
                                        <div class="stone-item" v-for="item2, index2 in item.children" :key="index2">
                                            <div class="item-left">
                                                <img :src="item2.detail" :alt="item2.name">
                                            </div>
                                            <div class="item-right">
                                                <img :src="item.banner.detail" :alt="item.banner.name" v-if="item.banner">
                                                <span>{{ item2.title }}</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="children-pic"
                            v-else-if="router.currentRoute.value.params.name == 'Kitchen Faucets Sinks Cabinets'">
                            <div v-if="activeName2 == 'Kitchen Cabinet'">
                                <div class="kitcabinet">
                                    <img :src="item.banner.detail" :alt="item.banner.name" v-if="item.banner">
                                    <div class="kitcabinet-list">
                                        <div class="list-left" v-if="item.banner2">
                                            <img :src="item.banner2.detail" :alt="item.name">
                                        </div>
                                        <div class="list-right" v-if="item.others && item.others.length != 0">
                                            <div class="right-item" v-for="item2, index2 in item.others" :key="index2">
                                                <img :src="item2.detail" :alt="item2.name">
                                            </div>
                                        </div>
                                    </div>
                                    <img :src="item.banner1.detail" :alt="item.banner1.name" v-if="item.banner1">
                                </div>
                            </div>
                            <div v-else-if="activeName2 == 'Kitchen Sinks/Faucets'">
                                <div class="sinks">
                                    <img :src="item.banner1.detail" :alt="item.banner1.name" v-if="item.banner1">
                                </div>
                            </div>
                        </div>
                        <div class="children-pic" v-else-if="router.currentRoute.value.params.name == 'Doors'">
                            <div class="Doors">
                                <div class="Doors-header" v-if="item.banner1">
                                    <img :src="item.banner1.detail" :alt="item.banner1.name">
                                </div>
                                <div class="Doors-bottom">
                                    <div class="bottom-left" v-if="item.leftimg">
                                        <img :src="item.leftimg.detail" :alt="item.leftimg.name">
                                    </div>
                                    <div class="bottom-right" v-if="item.rightimg && item.rightimg.length != 0">
                                        <div class="rightitem" v-for="item2, index2 in item.rightimg" :key="index2">
                                            <img :src="item2.detail" :alt="item2.name">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="btn position-relative font-size-24" @click="goPage">Back</div>
                    </el-tab-pane>
                </el-tabs>
                <!-- 无标签页 -->
                <div v-else>
                    <div v-if="router.currentRoute.value.params.name == 'Windows'">
                        <div class="window-pic" v-if="productmessage.others && productmessage.others.length != 0">
                            <div class="window-item" v-for="item, index in productmessage.others" :key="index">
                                <img :src="item.detail" :alt="item.name">
                                <span>{{ item.title }}</span>
                            </div>
                        </div>
                    </div>
                    <div v-else-if="router.currentRoute.value.params.name == 'Hotel FFE'">
                        <div class="FFE">
                            <div class="FFElist" v-if="productmessage.others && productmessage.others.length != 0">
                                <div class="FFEitem" v-for="item2, index2 in productmessage.others" :key="index2">
                                    <img :src="item2.detail" :alt="item2.name">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="btn position-relative font-size-24" @click="goPage">Back</div>
                </div>
            </div>
        </div>
    </div>
</template>

<script setup lang="ts">
import router from '../router';
import { ref, watch, onMounted } from 'vue'
import { TabsPaneContext, formContextKey } from 'element-plus/lib';
import useHomeStore from '../store/modules/homepage'

let Home = useHomeStore()

let productmessage = ref<any>({})  // 产品内页大图
let activeName2 = ref<any>('')
let mobileShow = ref<any>(false)

const handleClick1 = (tab: TabsPaneContext, event: Event) => {
    activeName2.value = tab.props.name
}
const goPage = () => {
    localStorage.setItem('scrollPosition', 'productCenter')
    router.push({
        path: '/'
    })
}

watch(() => router.currentRoute.value.params.name, (newValue: any) => {
    Home.$state.Products.map((li: any) => {
        if (newValue == li.name) {
            productmessage.value = li
            if (li.children && li.children.length != 0) {
                activeName2.value = li.children[0].name
            }
        }
    })
}, { immediate: true, deep: true })

onMounted(() => {
    if (document.body.offsetWidth < 960) {
        mobileShow.value = true
    } else {
        mobileShow.value = false
    }
    window.addEventListener('resize', function () {
        if (document.body.offsetWidth < 960) {
            mobileShow.value = true
        } else {
            mobileShow.value = false
        }
    })
})


</script>

<style scoped lang="less">
// FFE
.FFE {
    width: 100%;

    .FFElist {
        width: 100%;
        display: flex;
        justify-content: space-between;

        .FFEitem {
            width: 49%;
            height: 30vw;

            img {
                width: 100%;
                height: 100%;
            }
        }
    }
}

// Doors
.Doors {
    width: 100%;
    box-sizing: border-box;

    .Doors-header {
        width: 100%;

        img {
            width: 100%;
            border: 1px solid #333;
            background-color: #ffffff;
        }
    }

    .Doors-bottom {
        margin-top: 2rem;
        text-align: center;
        display: flex;
        width: 100%;
        height: 45vw;
        justify-content: space-between;

        .bottom-left {
            width: 70%;
            height: 100%;

            img {
                width: 100%;
                height: 100%
            }
        }

        .bottom-right {
            width: 28%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;

            .rightitem {
                width: 100%;
                height: 49%;

                img {
                    width: 100%;
                    height: 100%;
                }
            }
        }
    }
}

// kitchen
.sinks {
    width: 100%;
    box-sizing: border-box;
}

.kitcabinet {
    width: 100%;
    text-align: center;

    img {
        width: 100%;
        margin-top: 2rem;
    }

    .kitcabinet-list {
        margin-top: 2rem;
        margin-bottom: 2rem;
        width: 100%;
        display: flex;
        justify-content: space-between;

        .list-left {
            width: 55%;

            img {
                width: 100%;
                height: 100%;
            }
        }

        .list-right {
            width: 43%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;

            .right-item {
                width: 100%;
                height: 49%;

                img {
                    width: 100%;
                    height: 100%;
                }
            }
        }
    }
}

// building
.fcpseries {
    width: 100%;
    box-sizing: border-box;

    .fcplist {
        width: 100%;
        display: flex;
        flex-direction: column;

        .fcpitem {
            text-align: center;
        }
    }
}

.stone {
    width: 100%;
    box-sizing: border-box;

    .stone-list {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;

        .stone-item {
            display: flex;
            width: 48%;
            margin-bottom: 2rem;

            .item-left {
                width: 50%;

                img {
                    width: 100%;
                    height: 100%;
                }
            }

            .item-right {
                width: 50%;
                position: relative;

                img {
                    width: 100%;
                    height: 100%;
                }

                span {
                    position: absolute;
                    font-weight: bold;
                    top: 50%;
                    left: 0;
                    transform: translateY(-50%);
                    width: 100%;
                    text-align: center;
                }
            }
        }
    }
}

.series {
    width: 100%;

    h1 {
        width: 100%;
        text-align: center;
    }

    .series-list {
        margin-top: 2rem;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;

        .series-item {
            width: 24%;
            margin-bottom: 1rem;
            position: relative;

            img {
                width: 100%;
                height: 20vw;
            }

            span {
                position: absolute;
                width: 100%;
                background: url('../assets/img/building/series/bgc.jpg') no-repeat;
                background-size: cover;
                left: 0;
                bottom: 0;
                box-sizing: border-box;
                padding: 0.5rem 1rem;
                text-align: center;
                color: #ffffff;
            }
        }
    }

    .series-features {
        margin-top: 2rem;
        width: 100%;
        position: relative;

        img {
            width: 100%;
        }

        h1 {
            position: absolute;
            top: 2%;
            width: 100%;
            background: rgba(0, 0, 0, 0.1);
            left: 0;
            text-align: left;
            padding: 1rem;
            box-sizing: border-box;
            color: #ffffff;
        }

        .features {
            width: 60%;
            position: absolute;
            left: 2%;
            top: 15%;
            color: #ffffff;

            .features-item {
                width: 100%;
                margin-bottom: 1.5rem;

                h4 {
                    font-weight: 600;
                }
            }
        }
    }

    .series-others {
        width: 100%;
        margin-top: 2rem;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;

        .others-item {
            width: 48%;
            margin-bottom: 2rem;

            img {
                width: 100%;
                height: 100%;
            }
        }
    }
}

.flooring {
    width: 100%;
    box-sizing: border-box;

    .flooring-header {
        width: 100%;
        position: relative;

        .img1 {
            width: 100%;
        }

        .span1 {
            position: absolute;
            top: 1%;
            left: 0;
            width: 100%;
            box-sizing: border-box;
            padding: 0.5rem 1rem;
            color: #ffffff;
            background: rgba(0, 0, 0, 0.2);
        }

        .flooring-footer {
            position: absolute;
            left: 0;
            bottom: 1%;
            width: 100%;
            box-sizing: border-box;
            padding: 0 1rem;
            display: flex;
            justify-content: space-between;
            align-items: end;

            .footer-left {
                width: 48%;

                h3,
                h5 {
                    margin-left: 2rem;
                    margin-bottom: 2rem;
                    color: #ffffff;
                }

                .footer-product {
                    width: 100%;
                    display: flex;
                    flex-wrap: wrap;
                    justify-content: space-between;

                    .product-item {
                        box-sizing: border-box;
                        width: 32%;
                        border: 5px solid #ffffff;
                        margin-bottom: 1rem;
                        position: relative;

                        img {
                            width: 100%;
                            height: 100%;
                        }

                        span {
                            position: absolute;
                            width: 100%;
                            bottom: 0;
                            left: 0;
                            text-align: center;
                            color: #ffffff;
                            background: rgba(0, 0, 0, 0.2);
                            font-weight: 600;
                            box-sizing: border-box;
                            padding: 0.5rem 1rem;
                        }
                    }
                }
            }

            .footer-right {
                width: 48%;

                .icons-list {
                    width: 100%;
                    display: flex;
                    justify-content: right;

                    .icons-item {
                        width: 20%;
                        margin-right: 1rem;

                        img {
                            width: 100%;
                        }
                    }
                }
            }
        }
    }

    .flooring-bottom {
        margin-top: 2rem;
        width: 100%;
        box-sizing: border-box;

        .bottom-header {
            width: 100%;
            display: flex;
            flex-direction: column;

            .item {
                width: 100%;
                margin-top: 1rem;
                border: 1px solid #333333;
                display: flex;
                font-size: 18px;

                .item-left {
                    width: 65%;
                    display: flex;
                    position: relative;
                    box-sizing: border-box;

                    .mask {
                        width: 100%;
                        position: absolute;
                        background: linear-gradient(to right, transparent 25%, #ffffff 40%, transparent 55%);
                        z-index: 99;
                    }

                    .img1 {
                        width: 40%;
                    }

                    .img2 {
                        width: 60%;
                    }
                }

                .item-right {
                    width: 35%;
                    display: flex;
                    flex-direction: column;
                    box-sizing: border-box;
                    padding: 1rem;
                    background: url('../assets/img/building/flooring/floor/bgc.jpg');

                    span {
                        margin-bottom: 0.5rem;
                    }
                }
            }

            .item:nth-child(2n) {
                .item-left {
                    transform: translateX(53.8%);
                }

                .item-right {
                    transform: translateX(-185.8%);
                }
            }
        }

        .bottom-size {
            width: 100%;

            img {
                width: 100%;
            }
        }
    }
}

// window
.window-pic {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

    .window-item {
        width: 32%;
        height: 25vw;
        margin-bottom: 2rem;
        position: relative;
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
            transition: 1s linear;
        }

        img:hover {
            scale: 1.2;
        }

        span {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background: rgba(0, 0, 0, 0.2);
            text-align: center;
            color: #ffffff;
            padding: 1rem 0;
            font-weight: bold;
            box-sizing: border-box;
        }
    }
}

// 产品的大图展示
.accessories {
    width: 100%;
    box-sizing: border-box;
    display: flex;

    .accessories-left {
        width: 50%;
        position: relative;

        img {
            width: 100%;
            height: 100%;
        }

        span {
            width: 100%;
            position: absolute;
            left: 0%;
            bottom: 2%;
            text-align: center;
            font-weight: bold;
            background: rgba(0, 0, 0, 0.15);
            color: #fff;
            padding: 1rem 0;
            box-sizing: border-box;
        }
    }

    .accessories-right {
        width: 50%;
        background: url('../assets/img/sanitary/mirror/bgc.jpg') no-repeat;
        background-size: cover;
        box-sizing: border-box;
        height: 100%;

        .right-header {
            width: 100%;
            text-align: center;
            padding: 1rem;

            img {
                width: 80%;
            }
        }

        .right-bottom {

            h3,
            h5 {
                width: 100%;
                text-align: left;
                margin-left: 2rem;
                margin-top: 1rem;
            }

            h3 {
                color: #012D86;
            }

            .bottom-colors {
                box-sizing: border-box;
                margin-top: 1rem;
                width: 100%;
                padding: 0 1rem;
                display: flex;
                justify-content: space-between;
                margin-bottom: 2rem;

                img {
                    width: 15%;
                }
            }
        }
    }
}

.cabinet {
    width: 100%;
    box-sizing: border-box;

    .cabinet-header {
        width: 100%;
        display: flex;

        img {
            width: 50%;
            height: 60vw;
        }

        .header-right {
            width: 50%;
            height: 60vw;
            background: url('../assets/img/sanitary/mirror/bgc.jpg') no-repeat;
            background-size: cover;
            text-align: center;
            padding: 1rem;
            box-sizing: border-box;

            h1 {
                margin-top: 1rem;
                margin-bottom: 1rem;
            }

            .right-options {
                box-sizing: border-box;
                width: 100%;
                margin-top: 2rem;
                text-align: left;
                padding: 0 1rem;

                .options-list {
                    margin-top: 1rem;
                    display: flex;
                    justify-content: space-between;

                    .options-item {
                        box-sizing: border-box;
                        width: 30%;
                        height: 10vw;
                        position: relative;
                        border: 4px solid #fff;

                        img {
                            width: 100%;
                            height: 100%;
                        }

                        span {
                            background: rgba(0, 0, 0, 0.35);
                            width: 100%;
                            position: absolute;
                            bottom: 0;
                            left: 0;
                            text-align: center;
                            color: #fff;
                            box-sizing: border-box;
                            padding: 1rem;
                            font-weight: bold;
                        }

                        .finishesspan {
                            background: rgba(0, 0, 0, 0.35);
                            height: 2rem;
                            width: 100%;
                            position: absolute;
                            padding: 0;
                            top: 50%;
                            transform: translateY(-50%);
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            box-sizing: border-box;
                            color: #fff;
                            font-weight: bold;
                        }
                    }
                }
            }

            .tips {
                display: inline-block;
                margin-top: 2rem;
                padding: 1rem;
                background: rgb(175, 175, 175);
                color: #ffffff;
                font-weight: bold;
                box-shadow: 1px 5px 20px #333;
            }

            .quality {
                margin-top: 2rem;
                box-sizing: border-box;
                width: 100%;
                padding: 0 1rem;

                h5 {
                    width: 100%;
                    text-align: left;
                }

                .icons-list {
                    margin-top: 2rem;
                    display: flex;
                    justify-content: space-between;

                    .icons-item {
                        width: 15%;

                        img {
                            width: 100%;
                            height: 100%;
                        }
                    }
                }
            }
        }
    }

    .cabinet-bottom {
        margin-top: 2rem;
        display: flex;
        justify-content: space-between;

        img {
            width: 49%;
        }
    }
}

.panel {
    box-sizing: border-box;
    width: 100%;

    .panel-list {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;

        .panel-item {
            width: 48%;
            height: 45vw;
            background: url('../assets/img/sanitary/mirror/bgc.jpg') no-repeat;
            background-size: cover;
            padding: 1rem;
            box-sizing: border-box;

            h1 {
                margin: 2rem 0;
                text-align: center;
            }

            .right-color {
                box-sizing: border-box;
                width: 100%;
                padding: 1rem;
                display: flex;
                flex-direction: column;
                justify-content: left;
                margin-top: 2rem;

                h2 {
                    color: rgb(8, 43, 125);
                }

                h2,
                h4 {
                    float: left;
                    margin-left: 2rem;
                }

                .color-list {
                    width: 100%;
                    margin-top: 4rem;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;

                    .color-item {
                        width: 15%;

                        img {
                            width: 100%;
                            height: 100%;
                        }
                    }
                }
            }

            .right-icon {
                box-sizing: border-box;
                width: 100%;
                margin-top: 3rem;

                h2 {
                    color: rgb(8, 43, 125);
                    margin-left: 3rem;
                }

                .icon-list {
                    margin-top: 1rem;
                    width: 100%;
                    box-sizing: border-box;
                    padding: 0 1rem;
                    display: flex;

                    .icon-item {
                        width: 15%;
                        height: 100%;
                        margin-right: 1rem;

                        img {
                            width: 100%;
                            height: 100%;
                        }
                    }
                }
            }
        }

        .list-item {
            width: 48%;
            height: 45vw;
            position: relative;
            margin-bottom: 2rem;

            img {
                width: 100%;
                height: 100%;
            }

            span {
                position: absolute;
                width: 100%;
                padding: 1rem;
                box-sizing: border-box;
                bottom: 2%;
                left: 0;
                background: rgba(0, 0, 0, 0.2);
                color: #fff;
                text-align: center;
                font-weight: bold;
            }
        }
    }
}

.shower {
    box-sizing: border-box;
    width: 100%;

    .shower-header {
        width: 100%;
        display: flex;

        .header-left {
            width: 50%;
            height: 100%;

            img {
                width: 100%;
                height: 100%;
            }
        }

        .header-right {
            width: 50%;
            height: 100%;
            background: url('../assets/img/sanitary/mirror/bgc.jpg') no-repeat;
            background-size: cover;
            padding: 1rem;

            h1 {
                text-align: center;
            }

            .right-color {
                box-sizing: border-box;
                width: 100%;
                padding: 1rem;
                display: flex;
                flex-direction: column;
                justify-content: left;

                h2 {
                    color: rgb(8, 43, 125);
                }

                h2,
                h4 {
                    float: left;
                    margin-left: 2rem;
                }

                .color-list {
                    width: 100%;
                    margin-top: 2rem;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;

                    .color-item {
                        width: 15%;

                        img {
                            width: 100%;
                            height: 100%;
                        }
                    }
                }
            }

            .right-icon {
                width: 100%;

                h2 {
                    color: rgb(8, 43, 125);
                    margin-left: 3rem;
                }

                .icon-list {
                    margin-top: 1rem;
                    width: 100%;
                    box-sizing: border-box;
                    padding: 0 1rem;
                    display: flex;

                    .icon-item {
                        width: 15%;
                        height: 100%;
                        margin-right: 1rem;

                        img {
                            width: 100%;
                            height: 100%;
                        }
                    }
                }
            }
        }
    }

    .shower-bottom {
        margin-top: 1rem;
        width: 100%;
        display: flex;
        justify-content: space-between;

        .bottom-item {
            position: relative;
            width: 32%;

            img {
                width: 100%;
                height: 100%;
            }

            span {
                box-sizing: border-box;
                width: 100%;
                padding: 1rem;
                position: absolute;
                bottom: 2%;
                left: 0;
                background: rgba(0, 0, 0, 0.2);
                color: #fff;
                text-align: center;
                font-weight: bold;
                font-size: 23px;
            }
        }
    }
}

.tubs {
    box-sizing: border-box;
    width: 100%;
    padding: 1rem;

    .tubs-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;

        .header-item {
            width: 48%;
            display: flex;
            margin-bottom: 2rem;

            .item-left {
                width: 50%;

                img {
                    width: 100%;
                    height: 100%;
                }
            }

            .item-right {
                width: 50%;
                background: url('../assets/img/sanitary/mirror/bgc.jpg') no-repeat;
                background-size: cover;
                position: relative;

                span {
                    box-sizing: border-box;
                    width: 100%;
                    text-align: center;
                    color: #fff;
                    padding: 0 1rem;
                    position: absolute;
                    left: 50%;
                    top: 50%;
                    font-weight: 700;
                    transform: translate(-50%, -50%);
                }
            }
        }

        .header-item:nth-child(3),
        .header-item:nth-child(4) {
            .item-left {
                position: relative;
                left: 50%;
                // transform: translateX(-50%);
            }

            .item-right {
                position: relative;
                left: -50%;
            }
        }
    }

    .tubs-bottom {
        margin-top: 2rem;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;

        .bottom-left {
            width: 74%;
            text-align: center;
            background-color: rgba(0, 0, 0, 0.05);
            border-radius: 10px;

            .one {
                position: relative;
                left: 50%;
                transform: translateX(-50%);
                height: 1rem;
                background-color: rgba(0, 0, 0, 0.3);
                width: 20%;
                margin: 2rem 0;
            }

            .bottom-tubs {
                margin-top: 2rem;
                width: 100%;
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;

                .bottom-item {
                    width: 24%;
                    display: flex;
                    flex-direction: column;

                    img {
                        width: 100%;
                        height: 100%;
                    }

                    span {
                        margin: 1rem 0;
                        font-weight: bold;
                    }
                }
            }
        }

        .bottom-right {
            width: 24%;
            // height: 100%;
            background: url('../assets/img/sanitary/Basins/bgc.jpg') no-repeat;
            background-size: cover;
            border-radius: 10px;
            text-align: center;

            h2 {
                text-align: center;
                position: relative;
                top: 15%;
            }

            .icons {
                position: relative;
                top: 50%;
                transform: translateY(-50%);
                display: flex;
                justify-content: space-around;
                align-items: center;
                flex-wrap: wrap;

                img {
                    width: 40%;
                    height: 100%;
                    margin-bottom: 1rem;
                    margin-top: 1rem;
                }
            }
        }
    }
}

.toilet {
    box-sizing: border-box;
    padding: 1rem;
    width: 100%;

    .toilet-banner {
        width: 100%;

        img {
            width: 100%;
            height: 100%;
        }
    }

    .other-toilet {
        margin-top: 2rem;
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;

        img {
            width: 24%;
            height: 20vw;
            border-radius: 10px;
        }
    }

    .toilet-style {
        margin-top: 2rem;
        width: 100%;
        padding: 1rem;
        background: url('../assets/img/sanitary/mirror/bgc.jpg') no-repeat;
        background-size: cover;
        border-radius: 10px;

        h1,
        span {
            margin-left: 2%;
        }

        .styles {
            box-sizing: border-box;
            margin-top: 2rem;
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            justify-content: space-between;

            .styles-item {
                width: 32%;
                display: flex;
                flex-direction: column;
                align-items: center;
                color: #ffffff;

                img {
                    width: 80%;
                    height: 80%;
                }
            }
        }
    }
}

.basins {
    padding: 1rem;

    .basins-header {
        padding: 0 1rem;

        .header-item {
            margin-top: 1rem;
            width: 100%;

            img {
                width: 100%;
                height: 100%;
            }
        }
    }

    .basins-bottom {
        box-sizing: border-box;
        margin-top: 1rem;
        background: url('../assets/img/sanitary/mirror/bgc.jpg') no-repeat;
        background-size: cover;
        width: 100%;
        padding: 1rem;

        h1,
        span {
            margin-left: 2%;
        }

        .styles {
            box-sizing: border-box;
            margin: 1rem;
            padding: 0 1rem;
            display: flex;
            justify-content: space-between;

            .basins-styles {
                width: 80%;
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;

                .styles-item {
                    width: 24%;
                    margin-bottom: 1%;

                    img {
                        width: 100%;
                        height: 100%;
                        border-radius: 10px;
                    }
                }
            }

            .basins-quality {
                width: 19%;
                background: url('../assets/img/sanitary/Basins/bgc.jpg') no-repeat;
                background-size: cover;
                border-radius: 10px;

                h2 {
                    text-align: center;
                    position: relative;
                    top: 15%;
                }

                .icons {
                    position: relative;
                    top: 50%;
                    transform: translateY(-50%);
                    display: flex;
                    justify-content: space-around;
                    align-items: center;
                    flex-wrap: wrap;

                    img {
                        width: 40%;
                        height: 100%;
                        margin-bottom: 1rem;
                        margin-top: 1rem;
                    }
                }
            }
        }
    }
}

.faucets {
    width: 100%;

    .faucets-header {
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        padding: 1rem;
        background-color: #333333;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;

        .header-left {
            width: 24%;
            height: 100%;

            .left1,
            .left2 {
                width: 100%;
                height: 66%;

                img {
                    width: 100%;
                    height: 100%;
                    border-radius: 10px;
                }
            }

            .left2 {
                height: 33%;
                margin-top: 1rem;
            }
        }

        .header-right {
            width: 75%;
            height: 100%;
            display: flex;
            flex-wrap: wrap;

            .right-item {
                width: 32%;
                height: 33%;
                margin-right: 1rem;
                margin-bottom: 1rem;

                img {
                    width: 100%;
                    height: 100%;
                    border-radius: 10px;
                }
            }
        }
    }

    .faucets-bottom {
        box-sizing: border-box;
        background: url('../assets/img/sanitary/mirror/bgc.jpg') no-repeat;
        background-size: cover;
        margin-top: 2rem;
        width: 100%;
        padding: 1rem;

        h1,
        span {
            margin-left: 2%;
        }

        .color-pic {
            margin-top: 2rem;
            width: 100%;
            display: flex;
            justify-content: space-between;

            img {
                width: 49%;
                border-radius: 20px;
            }
        }
    }
}

.wooden {
    width: 100%;

    .wooden-header {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        margin-bottom: 2rem;
        justify-content: space-between;

        .wooden-item {
            width: 32%;
            position: relative;
            overflow: hidden;

            img {
                width: 100%;
                height: 100%;
                transition: 0.5s linear;
            }

            img:hover {
                scale: 1.2;
            }

            img:hover+span {
                background-color: #fa8106;
            }

            span {
                box-sizing: border-box;
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                background: rgba(0, 0, 0, 0.2);
                padding: 1rem;
                color: #fff;
                text-align: center;
            }
        }
    }

    .wooden-bootom {
        width: 100%;
        display: flex;
        justify-content: space-between;

        .wooden-left {
            width: 20%;
            position: relative;

            img {
                width: 100%;
                height: 80%;
            }

            span {
                position: absolute;
                top: 40%;
                left: 50%;
                width: 90%;
                transform: translate(-50%, -50%);
                color: #ffffff;
                font-weight: bold;
            }
        }

        .wooden-right {
            width: 78%;

            img {
                width: 100%;
                height: 80%;
            }
        }
    }
}

.children-pic {
    width: 100%;
    color: #333;
    font-weight: normal;

    .children-header {
        display: flex;
        justify-content: space-between;
        padding: 1rem;
        border: 1px solid #eee;

        .header-left {
            width: 50%;
            display: flex;
            flex-direction: column;

            h1 {
                background: linear-gradient(to right, rgba(204, 151, 79), rgba(238, 201, 136));
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                font-weight: bold;
                margin-bottom: 3.5rem;
            }

            .left-ietm {
                margin-top: 0.5rem;
                font-size: 24px;
            }
        }

        .header-right {
            width: 50%;
            height: 22vw;
            position: relative;

            img {
                width: 100%;
                height: 100%;
            }

            .mask {
                width: 100%;
                height: 100%;
                background: linear-gradient(to right, #ffffff 0.5%, transparent);
                position: absolute;
                left: 0;
                top: 0;
                z-index: 2;
            }
        }
    }

    .children-allpic {
        margin-top: 2rem;
        display: flex;
        flex-wrap: wrap;

        .children-item {
            position: relative;
            width: 32%;
            height: 32vw;
            margin-right: 1%;
            margin-top: 2%;
            overflow: hidden;

            img {
                width: 100%;
                height: 100%;
                transition: 0.5s linear;
            }

            img:hover {
                scale: 1.2;
            }

            img:hover+.img-title {
                background-color: #fa8106;
            }

            .img-title {
                box-sizing: border-box;
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                background: rgba(0, 0, 0, 0.2);
                padding: 1rem;
                color: #fff;
                text-align: center;
            }
        }
    }

    .btn {
        cursor: pointer;
        left: 50%;
        transform: translateX(-50%);
        margin: 2rem 0 2rem;
        float: left;
        font-weight: bold;
        padding: 1rem 2.5rem;
        border: 1px solid #333;
    }
}

.children-pic1 {
    width: 100%;
    color: #333;
    font-weight: normal;

    .allpic1 {
        display: flex;
        flex-wrap: wrap;

        .pic1-item {
            width: 48%;
            height: 26vw;
            margin-right: 1%;
            margin-bottom: 2%;
            display: flex;

            .pic1-img,
            .pic1-title {
                width: 50%;

                img {
                    width: 100%;
                    height: 100%;
                }
            }

            .pic1-title {
                position: relative;

                span {
                    position: absolute;
                    left: 50%;
                    top: 50%;
                    width: 100%;
                    transform: translate(-50%, -50%);
                    color: #fff;
                    font-weight: bold;
                    line-height: 4rem;
                }
            }
        }

        .pic1-item1 {
            width: 48%;
            height: 25vw;
            margin-right: 1%;
            margin-bottom: 2%;
            display: flex;
            flex-direction: column;

            .pic1-title {
                width: 100%;
                height: 25%;
                position: relative;

                img {
                    width: 100%;
                    height: 100%;
                }

                span {
                    position: absolute;
                    width: 100%;
                    left: 50%;
                    top: 50%;
                    transform: translate(-50%, -50%);
                    color: #fff;
                    font-weight: bold;
                }
            }

            .pic1-img {
                width: 100%;
                height: 75%;

                img {
                    width: 100%;
                    height: 100%;
                }
            }
        }
    }
}

.productcenter {
    .railling-bgc {
        box-sizing: border-box;
        width: 100%;
        margin-bottom: 2rem;

        .railling-banner {
            box-sizing: border-box;
            width: 100%;
            position: relative;
            display: flex;
            justify-content: space-between;

            .banner-left {
                width: 77%;
                // height: 100%;
                position: relative;

                img {
                    width: 100%;
                    height: 100%;
                }

                .banner-title {
                    box-sizing: border-box;
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    font-size: 45px;
                    text-align: center;
                    padding: 1rem;
                    color: #ffffff;
                    background: rgba(0, 0, 0, 0.2);
                    font-weight: bold;
                }
            }

            .banner-right {
                width: 22%;

                .icon-img {
                    width: 100%;
                    position: relative;

                    img {
                        width: 100%;
                    }

                    .banner-icon {
                        display: flex;
                        flex-direction: column;
                        position: absolute;
                        bottom: 5%;
                        left: 50%;
                        transform: translateX(-50%);

                        .icon {
                            display: flex;
                            align-items: center;
                            color: #ffffff;
                            font-weight: bold;
                            font-size: 22px;
                            margin-top: 2rem;

                            img {
                                width: 4rem;
                                height: 4rem;
                                margin-right: 1rem;
                            }
                        }

                        .kiticon {
                            margin-top: 0.8rem;
                        }
                    }

                    .banner-icons {
                        display: flex;
                        justify-content: space-between;
                        width: 100%;
                        flex-wrap: wrap;
                        position: absolute;
                        bottom: 2%;
                        left: 50%;
                        transform: translateX(-50%);
                        padding: 0 1rem;
                        box-sizing: border-box;

                        img {
                            width: 30%;
                            height: 100%;
                            margin-bottom: 1rem;
                        }
                    }
                }
            }

            .banner {
                width: 23vw;
                height: 23vw;
                border-radius: 50%;
                position: absolute;
                left: 80%;
                transform: translateX(-50%);
                top: 1%;
                overflow: hidden;
                background-color: #fff;

                img {
                    width: 93%;
                    height: 93%;
                    position: relative;
                    left: 50%;
                    top: 50%;
                    transform: translate(-50%, -50%);
                    border-radius: 50%;
                }
            }
        }

        .pic {
            box-sizing: border-box;
            width: 100%;
            margin-top: 2rem;
            padding: 0 2rem;
        }
    }
}

:deep(.el-tabs__item) {
    font-size: 26px !important;
    padding-bottom: 1rem;

    &:hover {
        color: #fa8106;
    }
}

:deep(.is-active) {
    color: #fa8106;
}

:deep(.el-tabs__active-bar) {
    background-color: #fa8106 !important;
}

.btn {
    display: inline-block;
    border: 1px solid #333;
    cursor: pointer;
    padding: 0.5rem 2rem;
    margin: 2rem 0;
    left: 50%;
    transform: translateX(-50%);
}

.btn:hover {
    border: 1px solid #fa8106;
    color: #fa8106;
}

.allpic {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;

    :deep(.el-divider__text) {
        font-size: 22px;
        font-weight: bold;
    }

    .pic {
        width: 100%;
        font-size: 26px;

        .all-pic {
            width: 95%;
            display: flex;
            flex-direction: column;
            margin-top: 2rem;
            align-items: center;

            .pic1 {
                width: 70%;
                // height: 20rem;
                margin: 0 3rem 3rem 0;
                overflow: hidden;

                img {
                    width: 100%;
                    height: 100%;
                    transition: 0.5s linear;
                }

                img:hover {
                    scale: 1.2;
                }
            }
        }
    }
}

.allpic1 {
    width: 100%;
    text-align: center;
}


@media screen and (max-width: 960px) {
    .shower{
        .shower-header{
            flex-direction: column;
            .header-left{
                width: 100%;
            }
            .header-right{
                width: 100%;
                padding: 5px;
                .right-color{
                    padding: 5px;
                    .color-list{
                        margin-top: 10px;
                    }
                }
                .right-icon{
                    .icon-list{
                        margin-top: 5px;
                    }
                }
            }
        }
        .shower-bottom{
            flex-wrap: wrap;
            .bottom-item{
                width: 100%;
                margin-bottom: 10px;
                span{
                    font-size: 12px;
                }
            }
        }
    }
    .tubs{
        .tubs-header{
            flex-direction: column;
            .header-item{
                width: 100%;
                .item-right{
                    span{
                        font-size: 14px;
                    }
                }
            }
        }
        .tubs-bottom{
            .bottom-left{
                padding: 3px 0;
                .one{
                    margin: 10px 0;
                }
                .bottom-tubs{
                    margin-top: 10px;
                    .bottom-item{
                        width: 45%;
                        span{
                            font-size: 12px;
                        }
                    }
                }
            }
            .bottom-right{
                .icons{
                    flex-direction: column;
                    img{
                        width: 80%;
                    }
                }
            }
        }
    }
    .toilet{
        .toilet-style{
            span{
                font-size: 12px;
                text-align: center;
            }
            .styles{
                margin-top: 20px;
            }
        }
    }
    .basins{
        padding: 0;
        .basins-header{
            padding: 0;
            .header-item{
                margin-top: 10px;
            }
        }
        .basins-bottom{
            padding: 5px;
            span{
                font-size: 12px;
            }
            .styles{
                padding: 0;
                margin: 5px;
                .basins-styles{
                    .styles-item{
                        img{
                            border-radius: 5px;
                        }
                    }
                }
                .basins-quality{
                    padding: 10px 5px;
                    h2{
                        top: 5%;
                    }
                    .icons{
                        top: 43%;
                        img{
                            width: 45%;
                            margin-bottom: 5px;
                            margin-top: 0;
                        }
                    }
                }
            }
        }
    }
    .faucets{
        .faucets-header{
            .header-left{
                .left2{
                    margin-top: 2px;
                }
            }
            .header-right{
                .right-item{
                    width: 30%;
                    margin-right: 5px !important;
                    margin-bottom: 5px !important;
                }
            }
        }
        .faucets-bottom{
            padding: 10px;
            span{
                font-size: 12px;
                margin-top: 5px;
            }
            .color-pic{
                margin-top: 10px;
                display: flex;
                flex-direction: column;
                img{
                    width: 100%;
                    margin-bottom: 10px;
                }
            }
        }
    }
    .wooden{
        .wooden-header{
            .wooden-item{
                span{
                    padding: 5px;
                    font-size: 14px;
                }
            }
        }
        .wooden-bootom{
            display: flex;
            flex-direction: column;
            .wooden-left{
                width: 100%;
                height: 15vw;
                span{
                    font-size: 16px;
                }
            }
            .wooden-right{
                width: 100%;
            }
        }
    }
    .allpic1{
        .pic1-item{
            width: 100% !important;
            height: 100% !important;
            .pic1-title{
                font-size: 14px;
            }
        }
        .pic1-item1{
            width: 100% !important;
            display: flex;
            flex-direction: column;
            .pic1-title{
                width: 100% !important;
                height: 30% !important;
                font-size: 14px !important;
            }
            .pic1-img{
                height: 100% !important;
            }
        }
    }
    .stone{
        .stone-list{
            .stone-item{
                width: 100%;
                .item-right{
                    span{
                        font-size: 14px;
                    }
                }
            }
        }
    }
    .fcpseries{
        .fcplist{
            .fcpitem{
                width: 100% !important;
                img{
                    width: 100%;
                }
            }
        }
    }
    .series{
        .series-list{
            margin-bottom: 10px !important;
            .series-item{
                width: 49%;
                img{
                    width: 100%;
                }
                span{
                    font-size: 12px !important;
                }
            }
        }
        .series-features{
            img{
                height: 20rem;
            }
            h1{
                font-size: 14px !important;
                padding: 3px 5px !important;
            }
            .features{
                width: 100% !important;
                margin-top: 5px !important;
                .features-item{
                    margin-bottom: 5px;
                    h4{
                        width: 90% !important;
                        padding: 3px !important;
                        font-weight: 400;
                    }
                }
            }
        }
    }
    .item {
        // height: 35vw;
        display: flex;
        flex-direction: column;

        .item-left {
            width: 100% !important;
        }

        .item-right {
            width: 100% !important;
            padding: 2px !important;

            span {
                font-size: 12px !important;
                margin-bottom: 2px !important;
            }
        }
    }

    .item:nth-child(2n) {
        .item-left {
            transform: translateX(0) !important;
        }

        .item-right {
            transform: translateX(0) !important;
        }
    }

    .sinks {
        img {
            width: 100%;
        }
    }

    h1 {
        font-size: 14px !important;
    }

    h2,
    h3,
    h4,
    h5 {
        font-size: 12px !important;
    }

    // building
    .flooring-header {
        .span1 {
            font-size: 12px;
            padding: 5px !important;
        }

        .flooring-footer {
            .footer-left {

                h3,
                h5 {
                    margin: 2px !important;
                }

                .footer-product {
                    .product-item {
                        border: 1px solid #ffffff !important;
                        margin-bottom: 8px !important;

                        span {
                            display: none;
                        }
                    }
                }
            }

            .footer-right {
                .icons-list {
                    .icons-item {
                        width: 24% !important;
                        margin-right: 5px !important;
                    }
                }
            }
        }
    }

    .flooring-bottom {
        .bottom-header {
            .item {

                box-sizing: border-box;

                .item-left {}
            }
        }
    }

    .children-allpic {
        justify-content: space-between;

        .children-item {
            width: 48% !important;

            .img-title {
                font-size: 12px;
                padding: 5px !important;
            }
        }
    }

    .children-header {
        align-items: center;

        .header-left {
            width: 60% !important;

            h1 {
                font-size: 14px;
                margin-bottom: 10px !important;
            }

            h2,
            .left-ietm {
                font-size: 12px !important;
            }
        }

        .header-right {
            width: 38% !important;
        }
    }

    .banner-icon {
        // box-sizing: border-box !important;
        width: 100%;

        .icon {
            width: 100%;
            margin-top: 5px !important;
            font-size: 12px !important;
            font-weight: 500 !important;

            img {
                width: 1rem !important;
                height: 1rem !important;
            }

            span {
                display: none;
            }
        }
    }

    .window-item {
        width: 48% !important;

        span {
            padding: 5px !important;
            font-size: 12px;
        }
    }

    .banner-left {
        .banner-title {
            font-size: 16px !important;
        }
    }

    .banner-icons {
        width: 100%;
        padding: 0 5px !important;

        img {
            width: 32%;
        }
    }

    :deep(.el-tabs__item) {
        font-size: 14px !important;
    }

    .productcenter {
        .allpic {
            width: 100%;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            flex-wrap: wrap;
            margin-top: -2rem;

            :deep(.el-divider__text) {
                font-size: 10px;
                font-weight: bold;
            }

            .pic {
                width: 100%;
                font-size: 26px;

                .all-pic {
                    width: 95%;
                    display: flex;
                    flex-wrap: wrap;
                    margin: auto;
                    margin-top: 1rem;

                    .pic1 {
                        width: 28%;
                        height: 5rem;
                        margin: 0 1rem 1rem 0;
                        overflow: hidden;

                        img {
                            width: 100%;
                            height: 100%;
                            transition: 0.5s linear;
                        }

                        img:hover {
                            scale: 1.2;
                        }
                    }
                }
            }
        }

        .door-bgc {
            width: 100%;
            height: 35%;

            img {
                width: 100%;
                height: 100%;
            }
        }

        .box {
            width: 90%;
            margin: 1rem auto 0;
        }
    }
}</style>

<style>.demo-tabs>.el-tabs__content {
    padding: 10px;
    color: #6b778c;
    font-size: 32px;
    font-weight: 600;
}</style>