@charset "utf-8";

html, body, 
div, section, header, footer,
button, input, textarea,
p, ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Microsoft Yahei, "微软雅黑", "Helvetica Neue", Helvetica, Hiragino Sans GB, WenQuanYi Micro Hei, sans-serif;
} 

img {
    outline: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    text-shadow: #2b2b2b 0px -.5px .2px;
}

/* 页面背景 */
body {
    background-image: url(https://gptapp.wujiyan.cc/bingbg.php);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* 页面主体 */
#main {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* 搜索框 */
#search {
    position: relative;
    height: 40%;
    min-height: 314px;
    max-height: 510px;
    margin: 0 auto;
    text-align: center;
}

#search-form {
    position: absolute;
    width: 100%;
    bottom: 0;
}

.search-form-group {
    position: relative;
    max-width: 655px;
    margin: 0 auto;
}

.search-form-input {
    position: absolute;
    left: 0;
    right: 52px;
    vertical-align: top;
    overflow: hidden;
}

.search-form-input input {
    width: 100%;
    height: 44px;
    padding: 12px 16px;
    font-size: 16px;
    outline: 0;
    box-shadow: none;
    border-radius: 24px 0 0 24px;
    border: 2px solid #fefefe;
    border-right: none;
    background: #fff;
    color: #222;
}

.search-form-input input::placeholder {
    color: #9195a3;
}

.search-form-group button {
    cursor: pointer;
    width: 52px;
    height: 44px;
    line-height: 45px;
    padding: 0;
    border: 2px solid #fefefe;
    background: #fff;
    border-radius: 0 24px 24px 0;
    font-size: 17px;
    color: #fff;
    box-shadow: none;
    font-weight: 400;
    border: none;
    outline: 0;
    float: right;
    z-index: 1;
}
.search-form-group button svg {
    height: 28px;
    width: auto;
    padding: 8px 10px 8px 8px;
}

.search-header {
    position: absolute;
    bottom: 60px;
    width: 100%;
}

.search-header h2 {
    font-size: 24px;
    font-weight: 900;
}

.search-header h2 span {
    color: #2d2d2d;
}

.search-header img {
    display: inline-block;
    height: 50px;
    position: relative;
    bottom: -15px;
}

/* 功能区 */
#function {
    position: absolute;
    width: 100%;
    min-height: 220px;
    text-align: center;
    margin-top: 80px;
}

#tips {
    color: #777a85;
    font-size: 16px;
    text-shadow: #f1f1f1 0px 1px 1px;
}

#stop {
    display: none;
    border: none;
    padding: 8px 15px;
    border-radius: 100px;
    color: #7c7c7c;
    background: #f5f5f5;
    outline: none;
    cursor: pointer;
    margin-top: 50px;
    transition: all .2s;
}

#stop:hover {
    color: #383838;
    background: #f1f1f1;
}

#output {
    display: none;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

#output textarea {
    width: 100%;
    padding: 5px 8px;
    border-radius: 16px;
    border: 1px solid #c8c8c8;
    opacity: 0.9;
    outline: none;
    transition: all .2s;
}
#output textarea:focus {
    opacity: 1;
    border-color: #c1c1c1;
    box-shadow: 0 0 2px #383838;
}

#output .tool-btns {
    text-align: right;
    margin-top: 8px;
}

#output button {
    outline: none;
    cursor: pointer;
    color: #7c7c7c;
    background: #f5f5f5;
    border: none;
    margin-left: 8px;
    padding: 6px 14px;
    border-radius: 16px;
    opacity: 0.9;
    transition: all .2s;
}
#output button:hover {
    opacity: 1;
    background: #f1f1f1;
    color: #383838;
}
#output button:focus {
    opacity: 1;
    background: #fff;
    color: #383839;
}


/* 页脚 */
#footer {
    width: 100%;
    position: fixed;
    z-index: 100;
    bottom: 0;
    left: 0;
    height: 40px;
    line-height: 40px;
    font-size: 12px;
    overflow: hidden;
    background-color: #fdfdfd;
    padding: 0 20px;
    opacity: 0.5;
}

#footer li {
    list-style: none;
    display: inline-block;
    float: left;
    padding: 0 10px;
}

.footer-left, .footer-left a {
    color: #747883;
    text-decoration: none;
}

.footer-right {
    float: right;
}
.footer-right, .footer-right a {
    color: #919191;
}


/* 鼠标指示箭头 */
#arrow {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    z-index: 999;
    background: url(../img/arrow.png) no-repeat;
}

#arrow::after {
    content: '';
    position: absolute;
    top: -13px;
    left: -15px;
    z-index: -1;
    border-radius: 9em;
    box-shadow: 0 0 0 7px rgba(0,0,0,.4);
    width: 30px;
    height: 30px;
    opacity: 0;
}

#arrow.active::after {
    -webkit-animation: bubble-scale 1s ease;
            animation: bubble-scale 1s ease;
}

@-webkit-keyframes bubble-scale {
    from {
        transform: scale(0);
        opacity: 1
    }
    to {
        transform:scale(2);
        opacity: 0
    }
}

@keyframes bubble-scale {
    from {
        transform: scale(0);
        opacity: 1
    }
    to {
        transform: scale(2);
        opacity: 0
    }
}



/* 响应式优化 */
@media screen and (max-width: 650px) {  
    #search {
        margin: 0 10px;
        height: auto;
        min-height: 200px;
    }
    
    #search-form {
        bottom: 10px;
    }
    
    .search-form-input {
        right: 81px;
    }
    
    .search-form-input input {
        border: none;
        padding: 12px;
    }
    
    .search-form-group button {
        width: 81px;
        height: 44px;
        padding: 0 10px;
        border: none;
        border-left: 1px solid #e8e8e8;
        font-size: 16px;
        font-weight: 700;
        line-height: 46px;
        white-space: nowrap;
        letter-spacing: -1px;
        color: #38f;
        background: #fff;
    }
    
    .search-form-group button:active {
        background-color: #fdfafa;
    }
    .search-form-group button:hover {
        background-color: #fdfafa;
    }
    
    #function {
        position: relative;
        top: 0;
        margin-top: 50px;
        padding: 0 10px;
    }
    
    #stop {
        margin-top: 30px;
    }
    
    #footer {
        padding: 0;
    }
    
    #arrow {
        background: url(../img/hand.png) no-repeat;
    }
}