/*
 * Like Girl 5.2.0 前台编辑样式 v5.2.9（按钮 / 悬浮新增 / 弹窗表单）
 * 跟随站点原有设计语言：白色圆角卡片 + Noto Serif SC 字体 + 黑色胶囊按钮
 */

/* ---------- 每条内容上的小按钮 ---------- */

.fe-item-btns {
    margin-top: .6rem;
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}

.fe-btn {
    display: inline-flex;
    align-items: center;
    padding: .3rem 1rem;
    font-size: 15px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 400;
    color: #666;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 2rem;
    cursor: pointer;
    transition: all .2s linear;
    line-height: 1.5;
}

.fe-btn:hover {
    color: #fff;
    background: #000;
    border-color: #000;
    opacity: .85;
}

.fe-btn-del {
    color: #e05656;
    border-color: #f0c1c1;
}

.fe-btn-del:hover {
    color: #fff;
    background: #e05656;
    border-color: #e05656;
}

/* ---------- 右下角悬浮新增按钮 ---------- */

.fe-fab {
    position: fixed;
    right: 1.4rem;
    bottom: 1.6rem;
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    padding: .7rem 1.5rem;
    font-size: 16px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    color: #fff;
    background: #000;
    border: none;
    border-radius: 2rem;
    box-shadow: 0 4px 14px 0 rgba(92, 92, 92, .44);
    cursor: pointer;
    transition: all .2s linear;
}

.fe-fab:hover {
    opacity: .8;
    color: #fff;
}

/* ---------- 弹窗 ---------- */

.fe-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
    padding: 1rem;
    animation: feFadeIn .2s ease both;
}

.fe-modal {
    width: 100%;
    max-width: 540px;
    max-height: 88vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(208, 206, 206, .6);
    border-radius: 1rem;
    box-shadow: 0 8px 12px #ebedf0;
    padding: 1.4rem 1.6rem 1.6rem;
    font-family: 'Noto Serif SC', serif;
    -webkit-overflow-scrolling: touch;
}

.fe-title {
    margin: 0 0 1rem;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.fe-field {
    margin-bottom: 1rem;
}

.fe-field > label {
    display: block;
    margin-bottom: .45rem;
    font-size: 15px;
    color: #666;
}

.fe-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: .55rem .8rem;
    font-size: 16px;
    font-family: 'Noto Serif SC', serif;
    color: #333;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: .5rem;
    outline: none;
    transition: border .2s linear;
}

.fe-input:focus {
    border-color: #999;
}

.fe-textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.8;
}

.fe-toolrow {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .5rem;
    flex-wrap: wrap;
}

.fe-mini {
    padding: .35rem 1rem;
    font-size: 14px;
    font-family: 'Noto Serif SC', serif;
    color: #666;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 2rem;
    cursor: pointer;
    transition: all .2s linear;
    white-space: nowrap;
}

.fe-mini:hover {
    color: #fff;
    background: #000;
    border-color: #000;
}

.fe-hint {
    font-size: 13px;
    color: #b5b5b5;
    word-break: break-all;
}

.fe-preview {
    margin-top: .6rem;
    border: 1px solid #eee;
    border-radius: .5rem;
    overflow: hidden;
    background: #fafafa;
}

.fe-preview img {
    display: block;
    max-width: 100%;
    max-height: 220px;
    margin: 0 auto;
}

.fe-checkfield {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.fe-check {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: 15px;
    color: #666;
    cursor: pointer;
}

.fe-check input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.fe-btnrow {
    display: flex;
    justify-content: flex-end;
    gap: .9rem;
    margin-top: 1.2rem;
}

.fe-btn-pri,
.fe-btn-cancel,
.fe-btn-danger {
    padding: .55rem 1.6rem;
    font-size: 15px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    transition: all .2s linear;
}

.fe-btn-pri {
    color: #fff;
    background: #000;
    box-shadow: 0 2px 10px 0 rgba(92, 92, 92, .44);
}

.fe-btn-pri:hover {
    opacity: .8;
    color: #fff;
}

.fe-btn-cancel {
    color: #666;
    background: #f2f2f2;
}

.fe-btn-cancel:hover {
    background: #e6e6e6;
}

.fe-btn-danger {
    color: #fff;
    background: #e05656;
}

.fe-btn-danger:hover {
    opacity: .85;
    color: #fff;
}

.fe-confirmbox {
    text-align: center;
}

.fe-confirmtext {
    margin: .4rem 0 0;
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

.fe-confirmbox .fe-btnrow {
    justify-content: center;
}

/* ---------- 相册卡片上的角标按钮 ---------- */

.love_img {
    position: relative;
}

.fe-img-btns {
    position: absolute;
    top: .6rem;
    right: .6rem;
    z-index: 5;
    display: flex;
    gap: .4rem;
}

.fe-img-btns .fe-btn {
    padding: .2rem .8rem;
    font-size: 13px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

/* ---------- 约定清单里的按钮 ---------- */

.fe-list-btns {
    display: inline-flex;
    gap: .4rem;
    margin-left: .8rem;
    vertical-align: middle;
}

.fe-list-btns .fe-btn {
    padding: .15rem .8rem;
    font-size: 13px;
}

/* ---------- 文章编辑器（图片直接显示） ---------- */

.fe-editor {
    box-sizing: border-box;
    min-height: 200px;
    max-height: 420px;
    overflow-y: auto;
    padding: .55rem .8rem;
    font-size: 16px;
    line-height: 1.9;
    color: #333;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: .5rem;
    outline: none;
    word-break: break-word;
    -webkit-overflow-scrolling: touch;
    transition: border .2s linear;
}

.fe-editor:focus {
    border-color: #999;
}

.fe-editor:not(.fe-has-content)::before {
    content: attr(data-placeholder);
    color: #b5b5b5;
    pointer-events: none;
}

.fe-editor img.fe-edit-img {
    display: block;
    max-width: 100%;
    max-height: 260px;
    margin: .5rem auto;
    border-radius: .5rem;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.fe-editor img.fe-edit-img.fe-img-selected {
    outline: 3px solid #000;
    outline-offset: 2px;
    opacity: .85;
}

/* ---------- 手机相册式分类 ---------- */

.fe-album-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto 1rem;
    flex-wrap: wrap;
}

.fe-back {
    display: inline-flex;
    align-items: center;
    padding: .35rem 1.1rem;
    font-size: 15px;
    font-family: 'Noto Serif SC', serif;
    color: #666;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 2rem;
    box-shadow: 0 2px 8px #ebedf0;
    transition: all .2s linear;
}

.fe-back:hover {
    color: #fff;
    background: #000;
    border-color: #000;
}

.fe-now-title {
    font-size: 17px;
    font-weight: 700;
    color: #555;
}

.fe-album-grid {
    max-width: 900px;
}

.fe-album-card {
    display: block;
    background: #fff;
    border: 1px solid rgba(208, 206, 206, 0.6);
    border-radius: 1rem;
    box-shadow: 0 8px 12px #ebedf0;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: all .2s linear;
    width: 100%;
    cursor: pointer;
    font-family: 'Noto Serif SC', serif;
}

.fe-album-card:hover {
    opacity: .88;
    color: #333;
}

.fe-album-cover {
    position: relative;
    width: 100%;
    padding-top: 66%;
    overflow: hidden;
    background: #fafafa;
}

.fe-album-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fe-album-cover img.fe-album-empty {
    object-fit: contain;
    padding: 18%;
    opacity: .55;
}

.fe-album-card.fe-album-new {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-style: dashed;
    border-color: #c9c9c9;
    box-shadow: none;
    background: #fdfdfd;
}

.fe-album-new .fe-newcover {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    padding: 0;
}

.fe-album-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem .9rem;
    font-size: 15px;
    font-weight: 700;
    color: #444;
}

.fe-album-name span {
    font-size: 13px;
    font-weight: 400;
    color: #a1a1a1;
}

.fe-album-ops {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin: .5rem 0 .8rem;
}

.fe-album-ops .fe-btn {
    padding: .18rem .9rem;
    font-size: 13px;
}

.fe-empty {
    text-align: center;
    color: #a1a1a1;
    font-size: 15px;
    padding: 2.5rem 0 3.5rem;
}

.fe-empty p {
    margin: .3rem 0;
}

@keyframes feFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ---------- 手机适配 ---------- */

@media (max-width: 600px) {
    .fe-modal {
        padding: 1.1rem 1.2rem 1.3rem;
    }

    .fe-fab {
        right: 1rem;
        bottom: 1.2rem;
        padding: .65rem 1.3rem;
        font-size: 15px;
    }

    .fe-btnrow {
        gap: .6rem;
    }

    .fe-btn-pri,
    .fe-btn-cancel,
    .fe-btn-danger {
        flex: 1;
        text-align: center;
    }
}
