* {
    transition: all 0.3s ease !important;
}

section {
    min-height: 60vh;
}

/* 过渡层的样式 */
.transition {
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    pointer-events: none;
}

.transition-row {
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
}

.transition-row.row-1 .blockt {
    margin: 0;
    padding: 0;
    transform-origin: top;
}

.transition-row.row-2 .blockt {
    margin: 0;
    padding: 0;
    transform-origin: bottom;
}

.blockt {
    margin: 0;
    padding: 0;
    flex: 1 0 20%;
    background-color: rgb(166, 84, 241);
    backface-visibility: hidden;
    transform: scaleY(1);
    /* will-change: transform; */
}

/* 代码块样式 */
.content pre {
    padding: 0;
    border-radius: .5em;
    position: relative;
}

pre code {
    font-family: 'Fira Code', monospace;
    font-size: 110%;
}

/* 增加透明度，避免选中后背景颜色覆盖代码 */
.hljs::selection,
.hljs ::selection {
    background-color: rgba(166, 84, 241, 0.45) !important;
}

/* 块引用样式 */
.content blockquote {
    border-left: 4px solid #a654f1;
}

/* 复制按钮样式优化 */
.copy-button {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #fff;
    padding: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
}

.copy-button:hover {
    transform: scale(1.05);
}

.copy-button:active {
    transform: scale(1);
}

/* 字体样式 */
.btitle {
    font-size: 40px;
}

.strong {
    color: rgb(166, 84, 241);
    font-weight: 700;
}

.sa {
    text-decoration: underline;
}

/* 深浅转换 */
[data-theme=light],
.theme-light {
    .icon-name {
        color: #202020;
    }

    .s1 {
        color: #202020;
    }

    .is-risecolor {
        background-color: #f5f5f5;
    }

    .theme-switch {
        background-color: #f5f5f5;
    }

    .theme-switch:hover {
        background-color: #7c7c7c46;
    }

    .navbar {
        background-color: transparent;
    }

    .navbar-item {
        background-color: transparent;
    }

    .footerlink-button {
        background-color: rgb(191, 124, 253);
    }

    .ga {
        color: #6e6e6e;
        font-weight: 500;
    }

    .ga:hover {
        color: rgb(144, 35, 247);
        font-weight: 700;
    }

}

/* 深色模式 */
[data-theme=dark],
.theme-dark {
    .icon-name {
        color: aliceblue;
    }

    .s1 {
        color: aliceblue;
    }

    .is-risecolor {
        background-color: #202020;
    }

    .theme-switch {
        background-color: #202020;
    }

    .theme-switch:hover {
        background-color: #7c7c7c46;
    }

    .navbar {
        background-color: transparent;
    }

    .navbar-item {
        background-color: transparent;
    }

    .footerlink-button {
        background-color: rgb(166, 84, 241);
    }

    .ga {
        color: #aaaaaa;
        font-weight: 500;
    }

    .ga:hover {
        color: rgb(166, 84, 241);
        font-weight: 700;
    }
}