:root {
    /* 主要颜色 */
    --primary: #2563eb;
    /* 主要颜色-深色 */
    --primary-deep: #1e40af;
    /* 主要颜色-浅色 */
    --primary-less: #60a5fa;

    /* 文字颜色 */
    --text-color: white;

    /* 次要的 不透明度 */
    --op-second: 0.8;
    /* 非常次要的 不透明度 */
    --op-tertiary: 0.6;

    /* 过渡持续时间 */
    --transition-duration: 0.3s;

    /* 圆角值 */
    --round: 0.15em;

    /* 背景颜色 */
    --background: #10445A;

    
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    font-size: 1em;
}

.azt {
    font-size: 1.2em;
}

a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1em;
}

input,
button {
    font-size: 1em;
    border: none;
    outline: none;
    color: var(--text-color);
}

.icon {
    width: 0.85em;
    height: 0.85em;
    display: inline-block;
    color: white;
}

:is(#team, #work, #contact) {
    /* width: 100%; */
    height: 6em;
}

header,main,footer {
    color: var(--text-color);
    font-size: 16px;
}

header {
    top: 0;
    position: sticky;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    background-color: var(--background);
    padding: 1em 0;
    z-index: 10;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 1em;
    margin: 0.5em 0;
}

header .logo span {
    font-size: 2em;
    font-weight: 900;
    letter-spacing: 0.1em;
}

header .logo img {
    height: 2.5em;
}

header .right {
    display: flex;
    align-items: center;
    gap: 2em;
    padding: 0 1em;
}

header .right nav {
    display: flex;
    align-items: center;
    /* gap: 0.25em; */
}

header .right nav > * {
    padding: 0.5em 1em;
    border-radius: var(--round);
    transition: var(--transition-duration);
    cursor: pointer;
}

header .right nav > *:hover {
    background-color: var(--primary);
}

header .right nav > div {
    position: relative;
}

.content-page img {
    pointer-events: none;
}

.sub-links {
    position: absolute;
    left: 0;
    top: 100%;
    width: fit-content;
    text-wrap: nowrap;
    display: none;
    flex-direction: column;
    gap: 0.25em;
    border-top: 1em solid transparent;
    background-color: rgba(0, 0, 0, 0.8);
    background-clip: content-box;
    border-radius: var(--round);
    z-index: 5;
}

.sub-links > a , .sub-links > .sub-sub-links > a  ,.sub-sub-links-links > a{
    padding: 0.25em 0.5em;
    flex-shrink: 0;
    border-radius: var(--round);
    transition: var(--transition-duration);
    cursor: pointer;
}

.sub-links > a:hover , .sub-links > .sub-sub-links > a:hover , .sub-sub-links-links > a:hover{
    background-color: #666;
}

.sub-sub-links {
    display: flex;
    flex-direction: column;
    position: relative;
}

.sub-sub-links-links {
    display: none;
    position: absolute;
    left: 100%;
    width: fit-content;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.8);
    background-clip: content-box;
}

.sub-sub-links:hover > .sub-sub-links-links {
    display: flex;
}

.user {
    position: relative;
}

.user:hover .sub-links {
    display: flex;
}

header .right nav > div:hover .sub-links {
    display: flex;
}

@keyframes in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

header .menu-btn {
    display: none;
    position: absolute;
    right: 1em;
    background-color: transparent;
    font-size: 2em;
}

.menu-mask {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.menu-mask.show {
    display: block;
    animation: in 0.3s;
}

.lang {
    position: relative;
    display: flex;
    gap: 0.5em;
    user-select: none;
}

.lang > a[href] {
    opacity: var(--op-tertiary);
}

.login {
    border-radius: var(--round);
    padding: 0.5em 1.5em;
    font-size: 0.9em;
    border: 1px solid var(--text-color);
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition-duration);
}

.login:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.shape {
    transform: translateY(-1px);
    color: var(--background);
    width: 100%;
    aspect-ratio: 6/1;
}

main {
    display: flex;
    flex-direction: column;
}

main > .title {
    color: #333;
    font-size: 2em;
    text-align: center;
    border-bottom: 1px solid #ccc;
    width: fit-content;
    align-self: center;
    padding: 0.5em 1em;
}

.part1 {
    display: flex;
    flex-direction: column;
    padding: 4em 0;
    gap: 1em;
    width: 100%;
    background-color: var(--background);
}

.headline {
    font-size: 2.5em;
    letter-spacing: 0.15em;
    align-self: center;
    padding: 0 2em;
    text-align: center;
}

.headline > .strong {
    font-weight: 900;
}

.second {
    font-size: 1.5em;
    margin-bottom: 2em;
    letter-spacing: 0.15em;
    align-self: center;
    font-family: '楷体';
}

#search {
    position: relative;
    display: flex;
    align-self: center;
    width: 45%;
    font-size: 1.25em;
    border-radius: 0.2em;
}

#search:has(input:focus) {
    outline: 4px double var(--primary);
}

#search #searchInput {
    flex-grow: 1;
    padding: 0.4em 0.4em;
    color: #333;
    border-top-left-radius: 0.2em;
    border-bottom-left-radius: 0.2em;
}

#search button[type="submit"] {
    flex-shrink: 0;
    padding-left: 2em;
    padding-right: 2em;
    background-color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1em;
    transition: var(--transition-duration);
    border-top-right-radius: 0.2em;
    border-bottom-right-radius: 0.2em;
}

#search button[type="submit"]:hover {
    background-color: var(--primary-deep);
}

#search > .quick {
    display: none;
    position: absolute;
    flex-direction: column;
    /*gap: 1em;*/
    top: 115%;
    z-index: 5;
    border-radius: 0.2em;
    /*padding: 0.5em;*/
    background-color: #f9f9f9;
    color: gray;
    overflow: hidden;
}

#search > .quick.show {
    display: flex;
}

/*#search > .quick:has(~input:focus) {*/
/*    display: flex;*/
/*}*/


#search > .quick > div {
    cursor: pointer;
    padding: 0.25em 0.5em;
    border-radius: 0.2em;
    font-size: 0.85em;
}

#search > .quick > div:hover {
    background-color: #eee;
}

.tertiary {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1em;
    padding: 0 10%;
}

.tertiary > a {
    padding: 1em 1em;
    background-color: #3d618b;
    border-radius: var(--round);
    transition: var(--transition-duration);
}

.tertiary > a:hover {
    background-color: #335276;
}

.links {
    display: flex;
    gap: 2em;
    justify-content: center;
    background-color: var(--background);
}

.links a {
    color: rgba(255, 255, 255, 0.8);
}

.part2 {
    display: flex;
    align-items: center;
    gap: 4em;
    width: 80%;
    margin: 8em auto;
    color: #333;
}

.part2 > img {
    width: 50%;
}

.introduce {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.introduce > :nth-child(1) {
    font-size: 2em;
    letter-spacing: 1px;
}

.introduce > :nth-child(2) {
    color: #666;
    letter-spacing: 1px;
    line-height: 1.5;
    word-break: break-all;
    white-space: pre-line;
}

.part3 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2em;
    width: 80%;
    margin: 8em auto;
    margin-top: 2em;
    color: #333;
}

.member {
    display: flex;
    flex-direction: column;
    gap: 1em;
    width: 16em;
    align-items: center;
    margin: 2em 0;
    padding: 0em 1em;
    transition: var(--transition-duration);
    background-color: white;
}

.member > .head {
    width: 12em;
    height: 12em;
    object-fit: cover;
    /* border-radius: 100%; */
}

.member > .name {
    font-weight: 500;
    font-size: 1.25em;
    letter-spacing: 1px;
}

.member > .desc {
    color: #666;
    letter-spacing: 1px;
    line-height: 1.5;
    flex-grow: 1;
    position: relative;
    width: 100%;
}

.member:hover {
    position: relative;
    z-index: 2;
}

.member:not(:hover) > .desc {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* .member > .desc:has(div:hover) {
    overflow: auto;
    display: flex;
} */

.member:hover > .desc > div {
    position: absolute;
    height: fit-content;
    background-color: white;
    width: 100%;
    /* box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); */
}

.news {
    display: grid;
    gap: 2em;
    grid-template-columns: repeat(4, 1fr);
    padding: 4em 10%;
    background-color: rgb(231 235 233);
    margin: 4em 0;
}

.news-item {
    display: flex;
    flex-direction: column;
    margin: 1em 0;
    gap: 1em;
}

.news-pic {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
}

.news-title {
    color: var(--primary-deep);
    font-weight: 900;
    height:3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-bulabula {
    height: 0.5em;
    width: 4em;
    background-color: burlywood;
}

.part4 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2em;
    width: 80%;
    margin: 8em auto;
    margin-top: 2em;
    color: #333;
}

.work {
    display: flex;
    flex-direction: column;
    gap: 1em;
    width: 26em;
    margin: 2em 0;
    padding: 2em 1em;
    color: #333;
    background-color: #f9fafb;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.work > .name {
    font-weight: 500;
    font-size: 1.25em;
    letter-spacing: 1px;
}

.work > .desc {
    color: #666;
    letter-spacing: 1px;
    line-height: 1.5;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.work > .apply {
    width: fit-content;
    font-size: 0.9em;
    padding: 0.5em 0.5em;
    transition: var(--transition-duration);
    border-bottom: 2px solid var(--primary-less);
    color: var(--primary-less);
    align-self: flex-end;
}

.work > .apply > .icon {
    fill: var(--primary-less);
    transition: var(--transition-duration);
}

.work > .apply:hover {
    color: var(--primary-deep);
    border-bottom: 2px solid var(--primary-deep);
}

.work > .apply:hover > .icon {
    fill: var(--primary-deep);
}

.part5 {
    display: flex;
    flex-direction: column;
    gap: 2em;
    color: #333;
    width: 80%;
    max-width: 42em;
    margin: 8em auto;
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.form-item label {
    font-weight: bold;
    font-size: 1.25em;
}

.form-item :is(input, textarea) {
    outline: none;
    border: 1px solid #eee;
    padding: 0.75em 1em;
    color: #333;
    resize: none;
    border-radius: var(--round);
    box-shadow: 0px 2px 2px #dfe6e9;
    transition: var(--transition-duration);
    font-size: 1em;
}

.form-item :is(input, textarea):hover {
    border: 1px solid #ccc;
}

.form-item :is(input, textarea):focus {
    border: 1px solid var(--primary);
}

.part5 button[type="submit"] {
    background-color: var(--primary);
    padding: 1em 0;
    cursor: pointer;
    transition: var(--transition-duration);
    border-radius: var(--round);
    font-weight: bold;
    font-size: 1.25em;
}

footer {
    background-color: rgb(242, 242, 242);
    display: flex;
    flex-direction: column;
    padding: 5em 15%;
    min-height: 60vh;
    justify-content: end;
    gap: 4em;
    font-size: 1.25em;
}

.footer-info {
        flex-direction: column;
        gap: 6em;
}

.join-us {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2em;
    max-width: 18em;
    padding: 1em 0;
}

.join-title {
    font-size: 1.25em;
    color: #333;
    font-weight: 900;
}

.join-btn {
    background-color: rgb(238, 0, 0);
    width: fit-content;
    font-size: 0.9em;
    padding: 0.5em 2em;
    border-radius: 2em;
    transition: var(--transition-duration);
}

.join-btn:hover {
    background-color: black;
}

footer nav {
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
}

footer nav > div {
    padding: 1em;
    flex-grow: 1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

footer nav > div > * {
    color: #666;
}

footer nav > div > *:hover {
    color: var(--primary);
}

footer nav > div > .label {
    font-weight: 900;
    padding: 0.5em 0;
    color: #333;
}

.brand {
    color: #666;
    text-align: center;
}

.brand > a {
    color: #666;
}

.image1::after {
    content: "这是要显示的文字";
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 5px;
    background-color: #000;
    color: #fff;
}

@media (max-width: 1300px) {
    /* .headline {
        font-size: 1.95em;
    }

    .second {
        font-size: 1.25em;
    } */
    .news {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-info {
        flex-direction: column;
        gap: 6em;
    }

    #search {
        width: 50%;
    }

    .part3,
    .part4 {
        width: 90%;
    }
}

@media (max-width: 1000px) {
    :root {
        font-size: 14px;
    }

    #search {
        width: 60%;
    }
}

@media (max-width: 860px) {
    :root {
        font-size: 12px;
    }

    #search {
        width: 60%;
    }
}

@media (max-width: 740px) {
    .headline {
        padding: 0 1em;
        /* font-size: 2em; */
    }

    .news {
        grid-template-columns: repeat(2, 1fr);
    }

    header .menu-btn {
        display: flex;
        cursor: pointer;
    }

    header .right {
        display: none;
        position: fixed;
        right: 0;
        top: 5.5em;
        height: calc(100% - 5.5em);
        flex-direction: column;
        padding: 2em;
        min-width: 14em;
        background-color: var(--background);
    }

    header .right.show {
        display: flex;
        animation: in 0.3s;
        overflow-y: auto;
    }
    
    header .right.show::-webkit-scrollbar {
        display: none;
    }

    header .right > :nth-child(1) {
        order: 3;
        flex-direction: column;
        gap: 1em;
        width: 100%;
    }

    header .right > :nth-child(1) > * {
        width: 100%;
    }

    header .right > :nth-child(1) > div:hover {
        background-color: transparent;
    }

    header .right > :nth-child(2) {
        order: 2;
    }

    header .right > :nth-child(3) {
        order: 1;
    }

    .sub-links {
        display: flex;
        position: static;
        background-color: transparent;
    }
    
    .sub-sub-links-links {
        display: flex;
        position: static;
        background-color: transparent;
        padding-left: 0.5em;
    }
    
    .sub-sub-links-links > a {
        /*padding: 0.25em 0.5em;*/
    }

    /*.sub-links > *:hover {*/
    /*    background-color: var(--primary);*/
    /*}*/

    #search {
        width: 60%;
    }

    .part2 {
        flex-direction: column;
    }

    .part2 > img {
        width: 100%;
    }

    .work {
        width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 550px) {
    .news {
        grid-template-columns: repeat(1, 1fr);
    }
    .headline {
        font-size: 1.6em;
    }

    .second {
        font-size: 0.9em;
    }

    .tertiary {
        font-size: 0.7em;
    }

    #search {
        font-size: 0.8em;
        width: 70%;
    }

    #search button[type="submit"] {
        padding-left: 1em;
        padding-right: 1em;
        gap: 0.5em;
    }
    .part3 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .member {
        font-size: 0.8em;
    }
}
