* {
    margin: 0;
    padding: 0;
}

body {
    background-image: linear-gradient(to left, rgba(255, 0, 149, 0.2), rgba(0, 247, 255, 0.2)), url(../img/bg.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

#box {
    /* background-color: red; */
    width: 100%;
    height: 100px;
    margin: 0 auto;
    padding-top: 5%;
}

.meBox {
    float: left;
    width: 20rem;
    height: 25rem;
    background-color: white;
    margin-top: 100px;
    margin-left: 10%;
    border-radius: 2%;
    transition: all 0.3s;
    text-align: center;
}

.meBox:hover {
    width: 21rem;
    height: 26rem;
    margin: 95px 0 0 9.5%;
}

.headPhoto {
    width: 8rem;
    height: 8rem;
    background: url(../img/windowsiticon.png) no-repeat;
    background-size: cover;
    border-radius: 50%;
    position: relative;
    top: -15%;
    left: 50%;
    margin-left: -4rem;
    transition: all 0.3s;
}

.meBox:hover .headPhoto {
    width: 9rem;
    height: 9rem;
    margin: -0.5rem 0 0 -4.5rem;
    transform: rotate(360deg);
}

.headPhoto:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.meBox-title {
    width: auto;
    margin: 0 auto;
}

@keyframes typing {
    from {
        width: 0;
    }
}

@keyframes blink-caret {
    50% {
        border-color: transparent;
    }
}

.meBox-title p {
    font-size: 1.2rem;
    border-right: .1em solid;
    width: 12ch;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 2s steps(20, end), blink-caret .3s step-end infinite alternate;
    margin: -30px 0 0 90px;
    transition: all 0.3s;
}

.meBox:hover .meBox-title p {
    font-size: 1.3rem;
}

.meBox-title .fg {
    width: 80%;
    height: 2px;
    background-image: linear-gradient(to left, #3498db, #2980b9);
    margin: 5% 0 0 10%;
}

.meBox-text {
    width: 80%;
    height: 45%;
    overflow: hidden;
    text-align: center;
    color: rgb(70, 70, 70);
    animation-name: meBox-text;
    animation-duration: 2s;
    animation-fill-mode: forwards;
    margin: 5% 0 0 10%;
    transition: all 0.3s;
}

.meBox-text p {
    margin-top: 5px;
}

.meBox:hover .meBox-text {
    font-size: 1.05rem;
}

@keyframes meBox-text {
    0% {
        transform: translateY(50px);
        color: white;
    }
    100% {
        transform: translateY(0);
        color: rgb(70, 70, 70);
    }
}

.meBox-Button {
    width: 100%;
}

.meBox-Button a {
    display: inline-block;
    float: left;
    width: 158px;
    height: 50px;
    margin-top: 13px;
    line-height: 50px;
    text-decoration: none;
    color: gray;
    transition: all 0.3s;
}

.meBox-Button a:hover {
    color: rgb(0, 132, 255);
    font-size: 1.2rem;
}

.meBox:hover .meBox-Button a {
    width: 165px;
    margin-top: 10px;
}

#cmdBox {
    width: 710px;
    height: 550px;
    float: right;
    margin-right: 5%;
    /* background-color: green; */
}

.cmd {
    width: 600px;
    height: 400px;
    border-radius: 10px 10px 5px 5px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.9);
    transition: transform 300ms ease, box-shadow 300ms ease;
    font-size: 14px;
    color: rgb(88, 89, 92);
    position: relative;
    top: 0;
    left: 0;
    transform-origin: top left;
}

.cmd:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
    .cmd:hover {
        transform: translate(-5px, -5px) scale(1.0166667, 1.025);
    }
}

.cmd .title {
    width: 100%;
    height: 25px;
    background-image: linear-gradient(to top, rgb(184, 184, 184), white);
    font-size: 14px;
    line-height: 25px;
}

.cmd .title span {
    display: inline-block;
    width: 70%;
    text-align: center;
    /* background-color: red; */
}

.cmd .click {
    margin-left: 10px;
    float: left;
}

.cmd .click button {
    position: relative;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    margin: 4px 0 0 6px;
    padding: 0;
    float: left;
    background: transparent;
    cursor: pointer;
}

.cmd .click button::before {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    content: "";
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.cmd .click button:focus-visible {
    outline: 2px solid rgba(0, 132, 255, 0.9);
    outline-offset: 2px;
}

.cmd .click button:active::before {
    transform: scale(0.85);
}

.cmd .click .red::before {
    background-color: #ff1b22;
    box-shadow: 0 0 1px #ff1b22;
}

.cmd .click .red:hover::before {
    background-color: #ff6268;
    box-shadow: 0 0 3px #ff1b22;
}

.cmd .click .yellow::before {
    background-color: #ffaf00;
    box-shadow: 0 0 1px #ffaf00;
}

.cmd .click .yellow:hover::before {
    background-color: #ffd373;
    box-shadow: 0 0 3px #ffaf00;
}

.cmd .click .green::before {
    background-color: #00931a;
    box-shadow: 0 0 1px #00931a;
}

.cmd .click .green:hover::before {
    background-color: rgb(0, 196, 36);
    box-shadow: 0 0 3px #00931a;
}

.cmdText {
    padding-top: 10px;
    padding-left: 15px;
}

.weather-widget {
    display: inline-block;
    max-width: calc(100% - 15px);
    min-height: 24px;
    line-height: 24px;
    vertical-align: top;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cmd2 {
    position: relative;
    top: -280px;
    left: 100px;
}

.cmd2 .cmdText .ul {
    margin-left: 15px;
}

.cmd2 .cmdText .ul a {
    text-decoration: none;
    color: rgb(88, 89, 92);
}

.cmd2 .cmdText .ul a:hover {
    color: rgb(0, 132, 255);
}

#footer {
    width: 100%;
    color: white;
    float: left;
    text-align: center;
    position: fixed;
    bottom: 0;
    margin-bottom: 30px;
    /* background-color: blue; */
}

#footer a {
    text-decoration: none;
    color: white;
}

#footer a:hover {
    color: rgb(0, 81, 255);
}


/* 自适应 */

@media screen and (max-width: 1250px) {
    .meBox {
        margin-left: 3%;
    }
    .meBox:hover {
        width: 21rem;
        height: 26rem;
        margin: 95px 0 0 2.5%;
    }
    #cmdBox {
        margin-right: 3%;
    }
}

@media screen and (max-width: 1110px) {
    .meBox {
        float: none;
        margin: 100px auto 100px;
    }
    .meBox:hover {
        width: 21rem;
        height: 26rem;
        margin: 95px auto 95px;
    }
    #cmdBox {
        float: none;
        margin: 0 auto 100px;
    }
}

@media screen and (max-width: 768px) {
    #box {
        height: auto;
        min-height: calc(100vh - 60px);
        padding-bottom: 20px;
    }
    .meBox {
        width: 300px;
    }
    .meBox:hover {
        width: 300px;
        height: 25rem;
        margin: 100px auto 100px;
    }
    .meBox-Button a:hover {
        color: rgb(0, 132, 255);
    }
    .meBox:hover .meBox-Button a {
        width: 150px;
        margin-top: 0;
    }
    .meBox:hover .meBox-title p {
        font-size: 1.2rem;
    }
    .meBox:hover .headPhoto {
        width: 8rem;
        height: 8rem;
        margin: -0.5rem 0 0 -4rem;
        transform: rotate(360deg);
    }
    .meBox:hover .meBox-text {
        font-size: 1rem;
    }
    .meBox-Button a {
        width: 150px;
    }
    #cmdBox {
        width: 100%;
        height: 850px;
    }
    .cmd {
        width: 90%;
        margin: 0 auto;
    }
    .cmd2 {
        position: relative;
        top: 20px;
        left: 0;
    }
    .cmd:hover {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
        transform: none;
        z-index: 1;
    }
    .cmd iframe {
        max-width: calc(100% - 15px);
    }
    #footer {
        position: static;
        float: none;
        clear: both;
        margin-bottom: 0;
        padding: 20px 0 30px;
    }
}

.cmd.is-maximized {
    position: fixed;
    inset: clamp(12px, 4vw, 32px);
    width: auto;
    height: auto;
    margin: 0;
    z-index: 20;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.cmd.is-maximized:hover {
    width: auto;
    height: auto;
    margin: 0;
    transform: none;
}

.cmd.is-maximized .cmdText {
    box-sizing: border-box;
    height: calc(100% - 25px);
    overflow: auto;
}

.cmd.is-minimized,
.cmd.is-minimized:hover {
    position: fixed;
    top: auto;
    right: clamp(12px, 4vw, 32px);
    bottom: calc(clamp(44px, 7vh, 62px) + var(--minimized-offset, 16px));
    left: auto;
    width: min(600px, calc(100vw - 64px));
    height: 25px;
    margin: 0;
    transform: none;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cmd.is-minimized .cmdText {
    display: none;
}

body.domain-window-maximized {
    overflow: hidden;
}

body.domain-window-maximized .cmd:not(.is-maximized):not(.is-minimized) {
    visibility: hidden;
}

.cmd.is-state-changing {
    transition: transform 220ms cubic-bezier(0.77, 0, 0.175, 1);
}

#cmdBox.has-minimized-first,
#cmdBox.has-maximized-first {
    box-sizing: border-box;
    padding-top: 400px;
}

@media screen and (max-width: 768px) {
    .cmd.is-minimized,
    .cmd.is-minimized:hover {
        right: 16px;
        width: calc(100vw - 32px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cmd.is-state-changing {
        transition: none;
    }
}
