
* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    box-sizing: border-box;
}

:root {
    --icon-size: 60px; /* 容器宽度 */
    --text-color: #dfe6e9;
    --title-color: #dfe6e9;
    --square-color: #b2bec3;
    --icon-select-color: #2d3436;
    --select-color: #81ecec;
}

body {

}

.img-background {
    width: 100vw;
    height: 120vh;

    position: absolute;
    left: 0;
    top: 0;
    z-index: -90;
}

.container {
    /*background-position: center center;*/
    padding: 60px 0;

    background: url("../img/home.jpg");
    backdrop-filter: blur(10px);
    background-size: cover;
    background-attachment: fixed;
}

.content {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    overflow: hidden;
}

.main-title {
    text-align: center;
    color: var(--title-color);
    text-transform: uppercase;
    font-size: 30px;
}

.section-bar {
    width: 160px;
    height: 2px;
    background: #74b9ff;
    margin: 40px auto;
}

.sections {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
}

.section-box {
    padding: 10px;
    text-align: center;
    color: var(--text-color);
    cursor: pointer;
    margin: 10px 0;
}

.section-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #74b9ff;
}

.section-desc {
    font-size: 16px;
}

/*图标旋转*/
.section-icon {
    display: inline-block;
    position: relative;
    margin-bottom: 15px;
    width: var(--icon-size);
    height: var(--icon-size);
}

.section-icon .square {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--icon-size); /* 方框的宽度 */
    height: var(--icon-size); /* 方框的高度 */
    border: 4px solid var(--square-color); /* 方框的边框样式 */
    transform: translate(-50%, -50%) rotate(45deg); /* 平移到中心再旋转 */
    box-sizing: border-box; /* 边框大小包含在容器内 */
}

.section-icon i {
    position: absolute;
    font-size: 30px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 将图标居中 */
}

.section-icon:hover .square {
    background: var(--select-color);
}

.section-icon:hover i {
    color: var(--icon-select-color);
}

/*弹窗*/

.pop-window {
    width: 20vw;
    height: 20vh;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: none;

}

.pop-window form {
    background: #ffeaa7;
    color: #2d3436;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.2);
    background-size: cover;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}
.pop-window form  label, .pop-window form input{
    width: 80%;
    margin: 10px auto;
}
.pop-window form input{
    height: 25px;
    line-height: 25px;
}
.pop-window form button{
    width: 50%;
    margin: 10px auto;
}



/* 背景遮罩 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}


/*显示尺寸匹配*/
@media screen and (max-width: 960px) {

}

@media screen and (max-width: 768px) {
    .pop-window{
        width: 70vw;
    }
    .sections {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 480px) {
    .pop-window{
        width: 85vw;
    }
    .sections {
        grid-template-columns: 1fr;
    }
}
