@charset "utf-8";
/*css 初始化 */
body{
background-color:#f4f4f4;
}
html,
body,
ul,
li,
ol,
dl,
dd,
dt,
p,
h1,
h2,
h3,
h4,
h5,
h6,
form,
fieldset,
legend,
img {
    margin: 0;
    padding: 0;
}

fieldset,
img,
input,
button {
    /*fieldset组合表单中的相关元素*/
    border: none;
    padding: 0;
    margin: 0;
    outline-style: none;
    /*轮廓线、边框线*/
}

ul,
ol {
    list-style: none;
    /*清除列表风格*/
}

input {
    padding-top: 0;
    padding-bottom: 0;
    font-family: "SimSun", "宋体";
}

select,
input {
    vertical-align: middle;
    /*垂直居中*/
}

select,
input,
textarea {
    font-size: 18px;
    margin: 0;
}

/*防止多行文本框拖动*/
textarea {
    resize: none;
    /*禁止拖拽*/
}

/*去掉图片低测默认的3像素空白缝隙*/
img {
    border: 0;
}

table {
    border-collapse: collapse;
    /*合并外边线*/
}

body {
    font: 12px/150% Arial, Verdana, "微软雅黑";
    /*微软雅黑，Unicode，统一码*/
    color: #666;
    min-width: 1200px;
}

.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
    /*IE/7/6*/
}

.fr {
    float: right;
}

.fl {
    float: left;
}

a {
    color: #333;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-decoration: none;
    font-weight: normal;
    font-size: 100%;
}

s,
i,
em {
    font-style: normal;
    text-decoration: none;
}

/*版心设置*/
.w {
    width: 1200px;
    margin: 0 auto;
}

/* 搜索 */
.iptt {
    width: 90px;
    box-sizing: border-box;
    border: 1px solid #fff;
    border-radius: 16px;
    font-size: 16px;
    color: #fff;
    background-color: #ffffff00;
    background-image: url(searchicon.png);
    background-position: 10px 10px;
    background-repeat: no-repeat;
    padding: 0px 10px 0px 10px;
    -webkit-transition: width 0.4s ease-in-out;
    transition: width 0.4s ease-in-out;
}

.iptt:focus {
    width: 200px;
    padding: 5px 10px 5px 10px;
}

/* 搜索框 */

@import url("https://fonts.googleapis.com/css?family=Inconsolata:700");

.for {
    width: 175px;
    height: 100px;
    margin-top: 23px;
}

.for .search {
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: url('../images/tmtm.png');
    border-radius: 50%;
    transition: all 1s;
    z-index: 4;
}

.for .search:hover {
    cursor: pointer;
}

.for .search::before {
    content: "";
    position: absolute;
    margin: auto;
    top: 15px;
    right: 0;
    bottom: 0;
    left: 15px;
    width: 12px;
    height: 2px;
    background: white;
    transform: rotate(45deg);
    transition: all .5s;
}

.for .search::after {
    content: "";
    position: absolute;
    margin: auto;
    top: -5px;
    right: 0;
    bottom: 0;
    left: -5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid white;
    transition: all .5s;
}

.for input {
    font-family: 'Inconsolata', monospace;
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 30px;
    outline: none;
    border: 1px solid #fff;
    background: url('../images/tmtm.png');
    color: white;
    text-shadow: 0 0 10px #fff;
    padding: 0 50px 0 20px;
    border-radius: 30px;
    transition: all 1s;
    opacity: 0;
    z-index: 5;
    font-weight: bolder;
    letter-spacing: 0.1em;
}

.for input:hover {
    cursor: pointer;
}

.for input:focus {
    width: 180px;
    opacity: 1;
    cursor: text;
}

.for input:focus~.search {
    right: -135px;
    background: rgba(0, 0, 0, 0);
    z-index: 6;
}

.for input:focus~.search::before {
    top: 0;
    left: 0;
    width: 25px;
}

.for input:focus~.search::after {
    top: 0;
    left: 0;
    width: 25px;
    height: 2px;
    border: none;
    background: white;
    border-radius: 0%;
    transform: rotate(-45deg);
}

.for input::placeholder {
    color: white;
    opacity: 0.5;
    font-weight: bolder;
}