// Header 头部
@import "../../base/variables";

.header {
    display: flex;

    // 站点标题
    >.title {
        >a {
            font-size: 2.2rem;
            letter-spacing: 0.2rem;
            line-height: 2.4rem;

            >span {
                color: #262626;

                &:hover {
                    color: #26262680;
                }
            }
        }
    }

    // 二级标题
    >.description {
        font-size: 0.9rem;
        color: #8c8c8c;

        >.socials {
            display: flex;
            justify-content: flex-end;

            >a {
                font-size: 1rem;
                margin-left: 0.5rem;
                cursor: pointer;

                color: #8c8c8c;

                &:hover {
                    color: #8c8c8c80;
                }
            }
        }
    }

    // 深色
    @include darkmode {
        >.title {
            >a {
                >span {
                    color: #dbdbdb;

                    &:hover {
                        color: #dbdbdb80;
                    }
                }
            }
        }

        >.description {
            color: #7d7d7d;

            >.socials {
                >a {
                    color: #7d7d7d;

                    &:hover {
                        color: #7d7d7d80;
                    }
                }
            }
        }

    }

    // 320px 设备
    @media (max-width: 320px) {
        flex-direction: column;
        align-items: center;
        width: 90%;
        padding: 17% 5% 5% 5%;

        >.description {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
    }

    // 768px 设备
    @media (min-width: 320px) and (max-width: 768px) {
        flex-direction: column;
        align-items: center;
        width: 90%;
        padding: 17% 5% 5% 5%;

        >.description {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
    }

    // 2048px 设备
    @media (min-width: 768px) and (max-width: 2048px) {
        width: 45rem;
        padding: 7rem 0 3rem 0;
        justify-content: space-between;

        >.title {
            width: 6rem;
        }

        >.description {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }
    }

}