* {
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    height: 100%;
}

/* 导航栏样式 */
.nav {
    background-color: #333;
    overflow: hidden;
    line-height: 35px;
}

/* 导航栏链接 */
.nav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 14px;
    text-decoration: none;
    margin-left: 5%;
}

/* 链接变色 */
.nav a:hover {
    background-color: #ddd;
    color: black;
}

/*搜索栏*/
.search {
    display: flex;
    align-items: center;
    width: 290px;
    border: 1px solid #ccc;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 14px;
    float: right;
    margin-right: 5%;
}

#search-input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    font-size: 16px;
}

button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 0 25px 25px 0;
}

button:hover {
    background-color: #45a049;
}

.line {
    height: 40px;
    width: 2px;
    background-color: #666;
    line-height: 70px;
}

.introduction {
    width: 100%;
    display: inline-block;
    margin-top: 15px;
    height: 460px;
}

.introduction h2 {
    font-family: "华文行楷";
    font-size: 40px;
    font-weight: bold;
    color: rgb(0, 0, 0);
    background-color: #ffffff;
    height: 100px;
    line-height: 100px;
    text-align: center;
}

.introduction p {
    float: left;
    width: 53%;
    font-size: 20px;
    font-family: "隶书";
    text-indent: 2em;
    margin-left: 80px;
}

.introduction .container {
    float: right;
    width: 30%;
    height: 300px;
    border-radius: 10px;
}

.view h2 {
    font-family: "华文行楷";
    font-size: 40px;
    font-weight: bold;
    color: rgb(0, 0, 0);
    background-color: #ffffff;
    height: 100px;
    line-height: 100px;
    text-align: center;
    margin-bottom: 15px;
}

.view {
    width: 100%;
    height: 100%;
    display: inline-block;
}

.view ul {
    display: flex;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    flex-wrap: wrap; /*图片超过一行，换行显示*/
    margin-right: 20px;
    margin-left: 73px;
}

.view li {
    margin-right: 40px;
    width: 30%;
    margin-bottom: 20px;
    text-align: center;
}

.view img {
    width: 100%;
    height: 100%;
    display: flex;
    border-radius: 10px;
}

.view img:hover {
    transform: scale(1.1);
}

.view img {
    cursor: pointer; /*鼠标放在图片上获得反馈*/
    transition: all 0.5s;
}

.container {
    width: 100%;
    height: 100%;
    /*background-color: #f0f0f0;*/
    text-align: center;
}

.parent {
    width: 300px;
    height: 300px;

    /*margin: 150px auto;*/
    /*transform-style:表示该元素中的子元素是否保留3D效果
    值: flat 表示子元素不保留3D效果
        preserve-3d 表示子元素保留3D效果
    */
    transform-style: preserve-3d;
    position: relative;
    /*设置2d旋转过度属性 在2秒内完成*/
    transition: all 2s;
}

.parent:hover {
    transform: rotateX(145deg) rotateY(45deg);
}

.parent div {
    width: 300px;
    height: 300px;
    position: absolute;
    cursor: pointer;
}

div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.parent .box1 {
    width: 300px;
    height: 300px;
    /*transform:表示2D或者3D变形属性
    【z轴表示穿过元素中心点的那一条线】
    3D转换方法:
    1、表示元素在x，y，z三个轴上的平移位置
    translate3d(x,y,z)、translatex( )、translateY( ).translateZ()
    2、表示元素沿x、y、z三个轴旋转的角度
    rotate3d(x, y,z, ndeg)x, y,z的值为0或者1,0表示不沿着该轴旋转，1表示围绕该轴旋转
    rotatex( )、rotateY()、rotateZ( )表示元素沿三个轴旋转给定角度
    3、表示元素的缩放
    scale3d（x，y，z，）表示x，y，z轴上的缩放倍数
    scaleX（）、scaleY（）、scaleZ（）*/
    transform: rotatex(90deg) translatez(150px);
}

.parent .box2 {
    transform: rotatex(90deg) translateZ(-150px);
}

.parent .box3 {
    transform: rotateY(90deg) translatez(150px);
}

.parent .box4 {
    transform: rotateY(90deg) translateZ(-150px);
}

.parent .box5 {
    transform: translatez(-150px);
}

.parent .box6 {
    transform: translatez(150px);
}

.copyright, .copyright a {
    color: white;
}

.copyright {
    text-align: center;
    line-height: 35px;
    background-color: #333;
    padding: 15px;
}
