* { padding: 0; margin: 0 } body { text-align: center; /* background-color: #ffffff; */ background-image: url("./img/bg.png"); background-position: center; background-size: cover; background-repeat: no-repeat; /* opacity:0.2; */ } img.smaller { width: 540; height: 195; /* max-width: 300px; */ animation: flipInX 2s; -webkit-animation: flipInX 2s } .logo { font-size: 32px; white-space: normal; word-wrap: break-word; text-decoration: none; color: #232323; padding-bottom: 15px; } #search_input { width: 90%; height: 60px; background-color: transparent; border: none; outline: 0; font-size: 18px; padding: 0 20px; border-radius: 50px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } #search_keyword { padding-right: 50px; height: 60px; background-color: transparent; border: none; outline: 0; font-size: 18px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .search_part { /*margin-bottom: 50px;*/ margin-top: 20px } span { display: block; overflow: hidden; padding-left: 5px; /* vertical-align: middle */ } .search-section { box-shadow: 0 0 18px rgba(70,70,40,.255); -webkit-animation: fadeIn 1s; animation: fadeIn 1s; background-color: rgba(255,255,255,.100); border-radius: 40px; display: table; vertical-align: middle; width: 80%; height: 60px; max-width: 800px; margin: 10px auto } #search_submit { outline: 0; height: 40px; float: right; color: #eee; font-size: 16px; font-weight: 700; border: none; background-color: transparent; padding: 0 13px 0 13px } #content { width: 100%; text-align: center; padding-top: 15px; top: 50%; height: 100px; margin-top: 180px } @media screen and (max-width: 1500px){#content{margin-top: 80px;}} .search-section { z-index:10; } .boxs { margin: 50px auto; z-index:-1; max-width: 900px; } @media screen and (max-width: 900px){.boxs{max-width: 390px;}} .box { position: relative; display: inline-block; width: 100px; border: 0; animation: fadeInDown 1s; -webkit-animation: fadeInDown 1s; } @media screen and (max-width: 900px){.box{width: 90px;}} .box a { width: 100%; height: 100%; position: absolute; left: 0; top: 0 } .url { color: #000000; height: 32px; line-height: 32px; width: 72px; font-size: 14px; white-space: nowrap; overflow: hidden; margin: auto; border-top-right-radius: 15px; border-bottom-right-radius: 15px; -webkit-border-top-right-radius: 15px; -webkit-border-bottom-right-radius: 15px; text-overflow: ellipsis; -o-text-overflow: ellipsis; -ms-text-overflow: ellipsis; padding-top: 3px; padding-bottom: 8px } .icon { width: 64px; height: 64px; max-width: 72px } @-webkit-keyframes flipInX { 0% { -webkit-transform: perspective(400px) rotateX(90deg); transform: perspective(400px) rotateX(90deg); opacity: 0 } 40% { -webkit-transform: perspective(400px) rotateX(-10deg); transform: perspective(400px) rotateX(-10deg) } 70% { -webkit-transform: perspective(400px) rotateX(10deg); transform: perspective(400px) rotateX(10deg) } 100% { -webkit-transform: perspective(400px) rotateX(0); transform: perspective(400px) rotateX(0); opacity: 1 } } @keyframes flipInX { 0% { -webkit-transform: perspective(400px) rotateX(90deg); -ms-transform: perspective(400px) rotateX(90deg); transform: perspective(400px) rotateX(90deg); opacity: 0 } 40% { -webkit-transform: perspective(400px) rotateX(-10deg); -ms-transform: perspective(400px) rotateX(-10deg); transform: perspective(400px) rotateX(-10deg) } 70% { -webkit-transform: perspective(400px) rotateX(10deg); -ms-transform: perspective(400px) rotateX(10deg); transform: perspective(400px) rotateX(10deg) } 100% { -webkit-transform: perspective(400px) rotateX(0); -ms-transform: perspective(400px) rotateX(0); transform: perspective(400px) rotateX(0); opacity: 1 } } @-webkit-keyframes fadeIn { 0% { opacity: 0 } 100% { opacity: 1 } } @keyframes fadeIn { 0% { opacity: 0 } 100% { opacity: 1 } } @-webkit-keyframes fadeInDown { 0% { opacity: 0; -webkit-transform: translateY(-20px); transform: translateY(-20px) } 100% { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0) } } @keyframes fadeInDown { 0% { opacity: 0; -webkit-transform: translateY(-20px); -ms-transform: translateY(-20px); transform: translateY(-20px) } 100% { opacity: 1; -webkit-transform: translateY(0); -ms-transform: translateY(0); transform: translateY(0) } } * { padding: 0; margin: 0 } li { list-style: none; } li a{ border-radius: 16px; background: #d5d5d5; padding: 0px 15px; } li a:hover{ background: #e9e9e9; } #btn { width: 560px; padding: 10px 10px; border: 1px solid rgb(45,129,240) } a { display: inline-block; text-decoration: none; color: rgba(0,0,0,0.8); outline: none; line-height: 35px } .search-section { margin-top: 14px; margin-bottom: 40px; } .search-section { position: relative; display: flex; } .search-left { display: flex; width: 100%; } .search-logo { padding-left: 80px; align-items: center; justify-content: center; background: url("./img/scgoogle.png") center center no-repeat; filter: grayscale(0%); -webkit-filter: grayscale(0%); -moz-filter: grayscale(0%); -o-filter: grayscale(0%); filter: alpha(opacity=100); -moz-opacity: 1; -khtml-opacity: 1; opacity: 1; cursor: pointer; transition-duration: 100ms; } .search-logo:hover { filter: grayscale(100%); -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -o-filter: grayscale(100%); filter: alpha(opacity=20); -moz-opacity: 0.2; -khtml-opacity: 0.2; opacity: 0.2; transition-duration: 100ms; } .search-methods { display: none; position: absolute; border-style: none; top: -32px; left: -1px; width: 80px; border-radius: 40px; border: 1px solid rgba(217, 217, 217, 0.96); background-color: #fff; box-shadow: 0 0 18px rgb(70 70 40 / 26%); } .search-methods:hover { filter: grayscale(0%); -webkit-filter: grayscale(0%); -moz-filter: grayscale(0%); -o-filter: grayscale(0%); filter: alpha(opacity=100); -moz-opacity: 1; -khtml-opacity: 1; opacity: 1; } .search-methods li { margin: 0 20px; background: url("./img/scgoogle.png") 10px no-repeat; overflow: hidden; color: #545454; cursor: pointer; border-style: none; height: 40px; filter: grayscale(100%); -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -o-filter: grayscale(100%); filter: alpha(opacity=20); -moz-opacity: 0.2; -khtml-opacity: 0.2; opacity: 0.2; } .search-logo.baidu, li.baidu { background-image: url("./img/scbaidu.png"); } .search-logo.bing, li.bing { background-image: url("./img/scbing.png"); } .search-methods li:hover { filter: grayscale(0%); -webkit-filter: grayscale(0%); -moz-filter: grayscale(0%); -o-filter: grayscale(0%); filter: alpha(opacity=100); -moz-opacity: 1; -khtml-opacity: 1; opacity: 1; } .search-result { display: none; position: absolute; width: 80%; top: 65px; left: 10%; border: 1px solid rgba(187, 187, 187, 1); background-color: #fff; white-space: nowrap; overflow: hidden; } .result-item { height: 34px; line-height: 34px; } .result-item.active { background: #F0F0F0; } .result-item:hover { background-color: #eee; cursor: pointer; } .input-wrap { position: relative; width: 100%; margin-left: -5px; } .input-wrap .search-input { width: 100%; } .input-wrap .clear-keyword { display: none; position: absolute; top: 47%; right: 25px; transform: translateY(-50%); cursor: pointer; color: #d2d2d2; font-size: 34px; } @media screen and (max-width: 900px){.input-wrap .clear-keyword{top: 50%;}} .search-item { padding: 0 0 0 5px; }