body, button, input, select, textarea { font: 12px/1.5 tahoma, arial, 'Hiragino Sans GB', '\5b8b\4f53', sans-serif; } a{ text-decoration: none; } /* 设置顶部容器样式 */ .top-bar { width: 100%; height: 35px; background-color: #f5f5f5; } /* 去除超链接的默认样式 */ .top-bar a { color: #6C6C6C; } /* 设置顶部内部容器样式 */ .top-bar .top-bar-wrapper { width: 1190px; height: 35px; line-height: 35px; margin: 0 auto; /* background-color: #bfa; */ display: flex; justify-content: space-between; } /* 设置顶部左侧区域样式 */ .top-bar-left, .top-bar-right { display: flex; } .top-bar-left li, .top-bar-right li { padding: 0 6px; } /* 设置地区列表样式 */ .region-item-list { display: none; width: 315px; height: 360px; overflow-y: scroll; position: absolute; box-shadow: 0 2px 2px rgba(0, 0, 0, .2); } /* 设置地区字体颜色 */ .region-list { color: #3c3c3c; position: relative; } /* 地区列表鼠标移入效果 */ .region-list:hover .region-item-list { display: block; } .region-list:hover { background-color: #fff; } .region-list .region-item-list .region-detail:hover { background-color: #f4f4f4; } .region-detail { /* width: 249px; */ height: 29px; line-height: 29px; padding-left: 8px; } /* 设置高亮显示 */ .icon_hightlight, .font_hightlight { color: #f22e00; } /* 设置移入效果 */ .mytaobao-detail, .collect-detail, .seller-list, .service-list { display: none; position: absolute; box-shadow: 0 2px 2px rgba(0, 0, 0, .2); } .mytaobao:hover .mytaobao-detail, .collect:hover .collect-detail, .seller:hover .seller-list, .service:hover .service-list { display: block; } .mytaobao:hover, .collect:hover, .seller:hover, .service:hover { background-color: #fff; } /* 设置头部区域 */ .head-bar { width: 100%; height: 97px; padding-top: 24px; /* background-color: #bfa; */ } .head-bar-wrapper { width: 1190px; height: 88px; margin: 0 auto; /* background-color: yellow; */ position: relative; } /* 设置左侧logo */ .logo { width: 190px; height: 80px; float: left; margin-top: 8px; /* background-color: gray; */ } h1 { font-size: 100%; } .logo .logo-bd { display: block; margin-left: 22px; padding-top: 58px; width: 142px; line-height: 88px; /* overflow: hidden; */ text-indent: -9999px; background: url('../img/taobao_logo.png') 0 0 no-repeat; } /* 设置搜索框样式 */ .search { float: left; width: 738px; height: 38px; line-height: 38px; left: 42px; margin-top: 12px; border-radius: 19px; background-clip: padding-box; position: relative; border: 2px solid #ff5000; font-size: 14px; display: flex; } .search-suggest-tabs { height: 38px; line-height: 38px; text-align: center; position: relative; width: 65px; background-color: #fff; border-top-left-radius: 17px; border-bottom-left-radius: 17px; z-index: 9999; } .search .search-suggest-tabs-tab{ display: none; height: 38px; color: #333; line-height: 38px; text-align: center; } .search .search-suggest-tabs-tab a{ color: #333; } /* 设置搜索框左侧鼠标移入效果 */ .search-suggest-tabs:hover .search-suggest-tabs-tab{ display: block; background-color: #fff; } .search-suggest-tabs:hover{ border-bottom-left-radius: 0; } .search-suggest-tabs-tab a:hover { color: #f40; } /* 设置分割线 */ .search .search-split{ font-size: 24px; position: absolute; height: 38px; line-height: 38px; left: 61px; width: 1px; color: #f3f0f0; top: -2px; } /* 设置搜索按钮 */ .search .search-btn{ position: absolute; width: 72px; height: 34px; background: #ff5000; color: #fff; font-size: 18px; font-weight: 700; border: none; border-radius: 17px; float: right; top: 2px; right: 2px; } /* 设置搜索框 */ .search .search-inp{ position: absolute; width: 598px; height: 38px; /* top: 8px; */ left: 67px; padding: 0 10px; font-size: 14px; border: none; box-sizing: border-box; } /* 设置下载淘宝二维码 */ .down-tb img{ width: 62px; } .down-tb span{ display: block; } .down-tb{ /* display: block; */ position: absolute; border: 1px solid #eee; right: 74px; top: -10px; } /* 搜索框下部区域 */ .search-list{ position: absolute; width: 633px; /* background-color: gray; */ top: 40px; left: 10px; } .search-list-detail{ display: flex; width: 592px; height: 28px; line-height: 28px; /* background-color: #bfa; */ } .search-list-detail a{ white-space: nowrap; margin-right: 8px; color: #666; } .search-list-detail a:hover{ color: #f40; } /* 中部轮播区域 */ .middle{ width: 1190px; height: 423px; margin: 0 auto; position: relative; /* background-color: #bfa; */ } /* 设置中部左侧导航栏 */ .middle-left-wrapper{ position: absolute; width: 270px; height: 368px; margin-top: 24px; margin-left: 24px; font-size: 14px; border-radius: 12px; background-color:#f7f9fa; } .middle-left-wrapper h2{ padding: 16px 0 0 20px; font-size: 18px; line-height: 24px; color: #111; font-weight: bold; } .middle-left-list{ padding: 16px 0 8px 20px; font-size: 14px; } .middle-left-list li{ overflow: hidden; height: 20px; line-height: 20px; font-size: 14px; margin-bottom: 18px; width: 212px; color: #666; } .middle-left-list a{ color: #666; } .middle-left-list li:hover a{ color: #f40; } .middle-left-list li:hover{ color: #f40; } .middle-left-list a:hover{ text-decoration: underline #f40; } .middle-left-list span{ width: 7px; height: 20px; overflow: hidden; padding: 0 8px; } .middle-left-list .iconfont{ margin-right: 12px; font-weight: bold; } /* 设置中间轮播图及右侧登录区域 */ .middle-right-wrapper{ width: 882px; height: 423px; float: right; /* background-color: yellow; */ } /* 设置轮播图上方导航栏 */ .middle-right-wrapper-shang{ width: 856px; height: 42px; border-radius: 12px; margin: 24px 26px 0 0; display: flex; position: relative; background-color: #f7f9fa; justify-content: center; align-items: center; font-size: 16px; line-height: 16px; } .middle-right-wrapper-shang .shang1, .middle-right-wrapper-shang .shang2{ display: flex; } .middle-right-wrapper-shang .shang1 a, .middle-right-wrapper-shang .shang2 a{ float: left; padding: 0 20px; } .middle-right-wrapper-shang .shang1 li.pipe, .middle-right-wrapper-shang .shang2 li.pipe{ color: #e0e0e0; } .middle-right-wrapper-shang li a{ color: inherit; } .middle-right-wrapper-shang .shang1 a{ font-weight: bold; } .middle-right-wrapper-shang li a:hover{ color: #fe5000; } /* 设置轮播图区域 */ .middle-right-xia{ display: flex; } .middle-right-img{ width: 564px; height: 315px; border-radius: 12px; margin-top: 12px; margin-right: 3px; background-color: #fff; position: relative; } /* 轮播图 */ .middle-right-img .imgList li{ position: absolute; } .middle-right-img .imgList img{ border-radius: 12px; width: 100%; vertical-align: none; } /* 设置小圆点 */ .pointer{ position: absolute; border-radius: 10px; bottom: 16px; height: 13px; /* width: 100px; */ text-align: center; left: 50%; background-color: rgba(255,255,255,.3); } .pointer a{ display: block; float: left; width: 8px; height: 8px; border-radius: 50%; margin: 3px; background-color: #fff; } .pointer a::selection, .pointer a.active{ background-color: #ff5000; } /* 设置登录区域 */ .middle-right-login{ width: 316px; height: 357px; padding-right: 0; margin-right: 0; background-color: #fff; /* position: relative; */ } .middle-right-login .avatar{ width: 100%; height: 165px; padding-top: 20px; /* background-color: yellow; */ /* position: absolute; */ display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; } .avatar img{ width: 60px; height: 60px; border-radius: 50%; } .avatar .nick-info{ font-size: 16px; } /* 设置三个按钮区域 */ .login-list{ display: flex; width: 100%; height: 42px; /* background-color: yellow; */ font-size: 16px; font-weight: bold; } .login-list a{ display: block; width: 80px; height: 42px; line-height: 42px; /* border: 1px solid red; */ border-radius: 21px; text-align: center; } .login-list .btn-login{ margin: 0 10px 0 30px ; background-color: #ff5d00; color: #fff; } .login-list .btn-register{ margin: 0 10px 0 0; background-color: #ff7600; color: #fff; } .login-list .btn-open{ outline: 1px solid #ff915e; color: #ff5000; } /* 设置登录下方区域 */ .mytao{ width: 286px; height: 82px; /* background-color: yellow; */ margin: 24px 0 0 30px; } .mytao .mytao-down{ display: flex; flex-wrap: wrap; } .mytao a{ display: block; height: 41px; color: #3c3c3c; font-size: 14px; text-align: center; margin-right: 22px; } .mytao .mytao-down i{ display: block; font-size: 24px; line-height: 20px; } /* 设置推荐区域样式 */ .recommend{ width: 1190px; position: relative; /* height: 1000px; */ margin: 0 auto; /* background-color: yellow; */ } .recommend-wrapper{ width: 1190px; height: 800px; padding: 0 19px; box-sizing: border-box; } /* 设置标题 */ .recommend-header{ height: 24px; margin-bottom: 20px; margin-left: 6px; /* background-color: gray; */ } .recommend-header .rw-title{ font-size: 24px; line-height: 24px; font-weight: bold; color: #111; } .recommend-header .rw-logo{ height: 20px; margin: 4px 0 0 6p; } /* 设置推荐列表区域 */ .recommend-wrapper .recommend-bd{ /* position: relative; */ display: flex; flex-wrap: wrap; width: 1170px; margin-left: -18px; } .recommend-wrapper .recommend-bd .rbd-list{ float: left; width: 370px; height: 172px; margin: 0 0 18px 18px; background-color: #f7f9fa; border: 1px solid #f7f9fa; border-radius: 12px; } .recommend-bd .rbd-list .item-link{ display: inline-block; width: 348px; height: 150px; margin: 11px; /* background-color: #bfa; */ /* display: flex; */ } /* 设置图片 */ .item-link .img-wrapper{ position: absolute; width: 150px; height: 150px; border-radius: 10px; } .item-link .img-wrapper img{ width: 100%; border-radius: 10px; } /* 设置文字 */ .item-link .describe{ display: inline-block; width: 186px; height: 116px; margin-left: 162px; overflow: hidden; /* background-color: gray; */ } .item-link .describe .d-title{ display: inline-block; max-height: 46px; font-size: 15px; margin: 6px 0 2px 0; overflow: hidden; line-height: 23px; color: #333; } .item-link .describe .d-title img{ height: 16px; margin-top: 3px; margin-right: 6px; vertical-align: top; } .item-link .describe .tag-list{ height: 22px; overflow: hidden; } .item-link .describe .tag-list .tag-item{ display: inline-block; height: 20px; padding: 0 4px; font-size: 12px; line-height: 18px; vertical-align: top; border: 1px solid #ff5000; border-radius: 3px; } /* 设置价格 */ .item-link .price{ display: inline-block; margin-left: 162px; font-size: 22px; color: #ff5000; } .item-link .price em{ font-size: 14px; font-family: "Microsoft Yahei"; } /* 设置右侧固定工具栏 */ .toolbar{ position: fixed; right: 0; bottom: 50%; width: 60px; height: 348px; background-color: #f7f9fa; border-radius: 18px 0 0 18px; transform: translateY(50%); overflow: hidden; } .toolbar-list{ width: 60px; height: 296px; padding: 26px 0; display: flex; flex-direction: column; /* background-color: yellow; */ } .toolbar-list .message{ width: 60px; height: 47px; margin-top: -10px; } .toolbar-list a{ display: flex; flex-direction: column; justify-content: center; text-align: center; color: #333; } .toolbar-list i{ font-size: 22px; } .toolbar-list .toolbar-item{ height: 47px; margin-top: 36px; } .toolbar-list .toolbar-back{ height: 47px; padding: 30px 0 26px 0; } @media(min-height:700px){ .toolbar{ position: fixed; right: 0; bottom: 50%; width: 60px; height: 421px; background-color: #f7f9fa; border-radius: 18px 0 0 18px; transform: translateY(50%); /* overflow: hidden; */ } }