.memos-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 5px;
}

.layui-memos .layui-layer-title {
    font-weight: 600;
    background-color: #fff;
    border-bottom: none;
    font-size: 16px;
    height: auto;
}

.memos-form h3 {
    margin: 0 0 20px;
    font-size: 20px;
    letter-spacing: 2px;
}

.memos-form .button-submit {
    margin: 20px 0 10px 0;
    border: none;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 5px;
    height: 50px;
    cursor: pointer;
    background: color-mix(in srgb, #121212 95%, white);
    color: #ffffff;
}

.layui-memos .layui-layer-setwin {
    right: 20px;
    top: 20px;
}

.memos-form .flex-column>label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
    display: block;
}

.memos-form .inputForm {
    border-radius: 5px;
    height: 50px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    transition: 0.2s ease-in-out;
    margin-bottom: 10px;
    background: color-mix(in srgb, #121212 3%, white);
}

#comment-form textarea {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 1px;
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 2px;
    outline: none;
    margin-bottom: 10px;
    height: 120px;
    background: color-mix(in srgb, #121212 3%, white);
    color: color-mix(in srgb, #121212 95%, white);
    resize: none;
}

.memos li {
    padding: 20px 0;
}

.comment-list li {
    -webkit-animation-fill-mode: initial;
    animation-fill-mode: initial;
    border-bottom: 1px solid color-mix(in srgb, #121212 3%, white);
    transition: none;
}

.user {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user .avatar {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border: 1px solid color-mix(in srgb, #121212 10%, white);
    padding: 2px;
    border-radius: 7px;
}

.user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user .name {
    font-size: 14px;
    font-weight: bold;
    display: flex;
    margin-bottom: 3px;
    align-items: center;
}

.user .date {
    font-size: 12px;
    color: color-mix(in srgb, #121212 55%, white);
    display: flex;
    align-items: center;
}

.comment-list p {
    margin-left: 50px;
    font-size: 14px;
    margin-bottom: 0;
    line-height: 2em;
    text-align: justify;
    word-break: break-all;
    letter-spacing: 2px;
}

.commentLike {
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 0.75rem;
}

.commentLike a:hover {
    text-decoration: none;
}

.commentLike i {
    font-size: 20px;
}

.commentLike .red {
    color: #dd1111;
}

.load {
    font-size: 14px;
    clear: both;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    color: color-mix(in srgb, #121212 55%, white);
    cursor: pointer;
    line-height: 2;
    display: flex;
}

.page_thumb {
    height: 250px;
    position: relative;
}

.loaded {
    filter: blur(0px);
    opacity: 1;
    transition: .5s filter linear, .5s -webkit-filter linear;
}

.lazy-load {
    background-color: color-mix(in srgb, #121212 10%, white);
    -webkit-transition: .5s ease-in-out opacity;
    transition: .5s ease-in-out opacity;
    filter: blur(20px);
    -webkit-mask: radial-gradient(circle at center, #ffffff 100%, transparent 100%);
    mask: radial-gradient(circle at center, #ffffff 100%, transparent 100%);
}

.post_bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: color-mix(in srgb, #121212 3%, white);
    border-radius: 4px;
    background-image: url(https://oneblog.net/usr/themes/OneBlog/static/img/memos.jpg);
}

.page_thumb .page-head {
    position: absolute;
    left: 60px;
    right: 0;
    bottom: 30px;
}

.logo {
    display: flex;
    height: 40px;
    width: 150px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.logo span {
    color: #ffffff;
    font-weight: bold;
}

.memos-btn {
    position: absolute;
    right: 60px;
    bottom: 35px;
}

.memos-btn button {
    border: none;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    background: #121212;
    color: #ffffff;
    z-index: 1;
    position: relative;
}

.page_thumb .page-head {
    left: 30px;
    bottom: 20px;
}

.page_thumb h1 span {
    font-size: 14px;
    font-weight: 500;
    margin-top: 5px;
}

.page_thumb h1 {
    color: #ffffff;
    margin: 0;
    font-size: 22px;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    text-shadow: 1px 1px 1px #000;
    z-index: 1;
}

#search {
    display: none;
}

#toggle-password {
    cursor: pointer;
    color: color-mix(in srgb, #121212 55%, white);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.grid-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-item img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.memos-tool {
    display: flex;
    gap: 1em;
}

.memos-tool i {
    font-size: 25px;
}

.memos-tool i:hover {
    cursor: pointer;
}

@media (max-width: 767px) {
    .memos-btn {
        right: 10px;
        bottom: 30px;
    }
    .page_thumb .page-head {
        left: 10px;
        bottom: 20px;
    }
    .layui-memos {
        max-width: 90%;
    }
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-item .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 保持视频比例并填满容器 */
    background-color: #000;
    /* 视频加载前显示黑色背景 */
}


/* 视频播放按钮覆盖层 */

.video-overlay .icon-play {
    color: white;
    font-size: 16px;
    margin-left: 2px;
    /* 微调播放图标位置 */
}


/* 视频悬停效果 */

.grid-item:hover .video-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}


/* 懒加载视频样式 */

.grid-item video.lazyload {
    background: #f1f1f1 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ccc"><path d="M8 5v14l11-7z"/></svg>') center no-repeat;
    background-size: 40px;
}

.comment-text {
    line-height: 2rem;
    font-size: 1rem;
    text-align: justify;
}
