*{
    /* 初始化 取消页面元素的内外边距 */
    margin: 0;
    padding: 0;
    font-size: 1em;
}
body{
    /* 100%窗口高度 */
    height: 100vh;
    /* 弹性布局 水平、垂直居中 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* 渐变背景 */
    background: #575757;
}
div.copy{
    width: auto;
    /*边框*/
    border: 3px solid  #fff;
    min-height: 1em;
    padding: 0 30px;
    /*边角弧度*/
    border-radius: 10px;
    margin: 30px;
    text-align: center;
    line-height: 60px;
    color: #fff;
    font-weight: bold;
}
div.show{
    background: #575757;
    width: 240px;
    /*边框*/
    border: 3px solid  #fff;
    /*边角弧度*/
    border-radius: 10px;
    margin: 30px;
    /*text-align: center;*/
    /*line-height: 60px;*/
    color: #fff;
    font-weight: bold;
}
input{
    background: #575757;
    width: 240px;
    /*边框*/
    border: 3px solid  #fff;
    /*边角弧度*/
    border-radius: 10px;
    margin: 30px;
    text-align: center;
    line-height: 60px;
    color: #fff;
    font-weight: bold;
}
textarea{
    width: 35%;
    /*max-width: 600px;*/
    min-width: 300px; /* 最小宽度 */
    height: 150px;
    min-height: 100px;
    padding: 10px;
    background: #575757;
    /*width: 240px;*/
    /*height: 60px;*/
    /*边框*/
    border: 3px solid  #fff;
    /*边角弧度*/
    border-radius: 10px;
    margin: 30px;
    /*text-align: center;*/
    /*line-height: 60px;*/
    color: #fff;
    font-weight: bold;
}
/* 响应式设计 */
@media (max-width: 768px) {
    textarea {
        max-width: 80%;
        height: 120px;
        min-height: 50px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    textarea {
        max-width: 80%;
        height: 100px;
        min-height: 50px;
        font-size: 12px;
    }
}
button{
    background: #575757;
    width: 240px;
    /*边框*/
    border: 3px solid  #fff;
    /*边角弧度*/
    border-radius: 10px;
    margin: 30px;
    text-align: center;
    line-height: 60px;
    color: #fff;
    font-weight: bold;
}
button:focus {
  border: 3px solid  #fff;
  outline: none;
}
button:hover{
    background: #666;
}
input:focus {
  border: 3px solid  #fff;
  outline: none;
}
input.submit:hover{
    background: #666;
}
nav ul{
    list-style: none;
    margin: 0;
    padding: 0;
}
nav ul li{
    /* 自定义属性--c */
    --c:#fff;
    /* 通过var函数调用自定义属性--c */
    color: var(--c);
    width: 240px;
    height: 60px;
    border: 3px solid var(--c);
    border-radius: 10px;
    text-align: center;
    line-height: 60px;
    font-weight: bold;
    cursor: pointer;
    margin: 30px;
    /* 相对定位 */
    position: relative;
    /* 这里加个溢出隐藏 */
    overflow: hidden;
    z-index: 1;
    /* 最后在加个动画过渡 */
    transition: 0.5s;
    background: #575757;
}
nav ul li:hover{
    /* 鼠标移上改变按钮字体颜色 */
    color: #222;
}
nav ul li span{
    /* 绝对定位 */
    position: absolute;
    width: 25%;
    height: 100%;
    background-color: var(--c);
    border-radius: 50%;
    /* 先沿Y轴下移,移出按钮范围 */
    transform: translateY(150%);
    /* 通过var函数调用自定义属性--n,结合calc函数计算得出left的值 */
    left: calc((var(--n) - 1) * 25%);
    /* 加个动画过渡 */
    transition: 0.5s;
    /* 设置每一个span元素的动画延迟时间 */
    transition-delay: calc((var(--n) - 1) * 0.1s);
    z-index: -1;
}
nav ul li:hover span{
    /* 沿Y轴上移并放大 */
    transform: translateY(0) scale(2);
}
nav ul li span:nth-child(1){
    /* 自定义属性 */
    --n:1;
}
nav ul li span:nth-child(2){
    --n:2;
}
nav ul li span:nth-child(3){
    --n:3;
}
nav ul li span:nth-child(4){
    --n:4;
}
a{
	text-decoration:none;
}