/* 子比·情侣空间 样式 */

.zib-love-box .colorful-make {
    pointer-events: none;
}

.zib-love-box li {
    list-style: none;
    margin: 0;
}

/* 情侣头像卡片（头像尺寸/样式与甜蜜值卡统一：60px 等大正圆、无边框） */
.zib-love-couple {
    flex-wrap: wrap;
}

.zib-love-couple .avatar-img {
    border-radius: 50%;
    overflow: hidden;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
}

.zib-love-couple img.avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50%;
    display: block;
    max-width: none;
}

/* ===== 插件各区块头像统一：等大正圆裁剪 =====
   甜蜜值卡(60px)、每日打卡(44px)等区块用 zib_get_avatar_box 渲染头像。
   头像 span 是 inline 元素，直接设 width 无效，必须 display:inline-block 才能固定尺寸，
   否则一方竖长图撑开、一方方图正常，造成"一个大一个小"。
   注意排除 UID 徽标(zibll-uid-wrapper/zibll-liang-badge)与"靓"徽标，
   它们也在 a 内但不应被拉成圆角。 */
.zlove-sweet-row a > span:not(.zibll-uid-wrapper):not(.zibll-liang-badge):not(.zibll-uid-shimmer),
.zlove-check-row a > span:not(.zibll-uid-wrapper):not(.zibll-liang-badge):not(.zibll-uid-shimmer) {
    display: inline-block !important;
    border-radius: 50% !important;
    overflow: hidden;
    flex: none;
}
.zlove-sweet-row a > span:not(.zibll-uid-wrapper):not(.zibll-liang-badge) { width: 60px !important; height: 60px !important; }
.zlove-check-row a > span:not(.zibll-uid-wrapper):not(.zibll-liang-badge) { width: 44px !important; height: 44px !important; }
.zib-love-feature img.avatar {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* 收到的告白卡片 */
.zib-love-confess-card {
    border-radius: 8px;
    background: rgba(255, 255, 255, .55);
}

.zib-love-confess-card .avatar-img {
    border-radius: 50%;
    overflow: hidden;
}

/* 搜索区域：外观沿用子比结构，逻辑由插件接管 */
.zib-love-search-wrap .form-right-icon {
    position: relative;
}

.zib-love-search-result {
    min-height: 90px;
}

.zib-love-remind.separator {
    padding-bottom: 6px;
}

/* 搜索结果里的用户卡片 */
.zib-love-search-result .user-info.pointer {
    transition: background .2s;
    border-radius: 6px;
}

.zib-love-search-result .user-info.pointer:hover {
    background: rgba(0, 0, 0, .04);
}

.zib-love-search-result .recipient-user-btn {
    opacity: .85;
}

/* 搜索空状态 */
.zib-love-search-result .f404 {
    padding: 20px 0;
    text-align: center;
    opacity: .6;
}

.zib-love-countdown {
    font-weight: bold;
}

/* 移动端 */
@media (max-width: 768px) {
    .zib-love-couple {
        flex-direction: column;
    }
    .zib-love-couple .mx20 {
        margin: 10px 0;
    }
}

/* ===== 情侣徽标（用户中心 + 个人主页） ===== */
.zib-love-couple-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
    margin: 0 4px;
    padding: 1px 10px 1px 7px;
    border-radius: 20px;
    font-size: 12px;
    line-height: 1.8;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap;
    background: linear-gradient(135deg, #ff6b9d, #ff85c0);
    box-shadow: 0 1px 4px rgba(255, 107, 157, .35);
}
.zib-love-couple-badge:hover {
    opacity: .9;
    color: #fff !important;
}
.zib-love-badge-heart {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: -2px;
}
.zib-love-uc-badge-wrap {
    margin-left: 6px;
}
@media (max-width: 560px) {
    .zib-love-couple-badge {
        font-size: 11px;
        padding: 2px 10px 2px 7px;
        gap: 3px;
    }
    /* 手机上隐藏对方昵称，徽标更紧凑，不占整行 */
    .zlove-partner {
        display: none !important;
    }
}

/* =====================================================================
 * 情侣空间扩展功能（甜蜜值/里程碑/打卡/纪念日/悄悄话/相册/排行榜）
 * ===================================================================== */
.zib-love-feature {
    background: var(--main-bg-color, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
}
.zib-love-feature-title {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid rgba(0,0,0,.05);
    color: #ff4f6d;
}
.zib-love-feature-body { padding: 14px 16px; }

/* 甜蜜值 */
.zlove-sweet-row { max-width: 360px; margin: 0 auto; }
.zlove-sweet-row img { border-radius: 50%; }
.zlove-level {
    display: inline-block; padding: 1px 8px; border-radius: 9px;
    background: linear-gradient(135deg,#ff4757,#ff6b81); color: #fff;
    font-size: 12px; font-weight: 600; vertical-align: middle;
}
.zlove-vs { color: #ff4f6d; }
.zlove-acts .but { margin: 4px; flex: 0 0 auto; }
.zlove-acts .but em { font-style: normal; opacity: .85; margin-left: 3px; }

/* 里程碑 */
.zlove-milestone { gap: 8px; }
.zlove-ms-item {
    flex: 0 0 calc(20% - 8px); text-align: center; padding: 10px 4px;
    border-radius: 10px; background: rgba(0,0,0,.03);
}
.zlove-ms-item.done { background: linear-gradient(135deg,#ff4757,#ff6b81); color: #fff; }
.zlove-ms-num { font-size: 18px; font-weight: 800; }
.zlove-ms-label { font-size: 12px; margin: 2px 0; }
.zlove-ms-state { font-size: 11px; opacity: .8; }

/* 打卡 */
.zlove-check-row { padding: 6px 0; }
.zlove-check-row img { border-radius: 50%; }
.zlove-ok { color: #2ecc71; font-weight: 700; }
.zlove-no { color: #bbb; }

/* 纪念日 */
.zlove-next-event { text-align: center; padding: 10px 0 6px; }
.zlove-next-event .font-bold { color: #ff4f6d; }
.zlove-event-row { padding: 7px 0; border-bottom: 1px dashed rgba(0,0,0,.06); }

/* 悄悄话 */
.zlove-msg { margin: 10px 0; position: relative; max-width: 85%; }
.zlove-msg.mine { margin-left: auto; text-align: right; }
.zlove-msg-bubble {
    display: inline-block; padding: 8px 12px; border-radius: 12px;
    background: rgba(0,0,0,.05); text-align: left; word-break: break-word;
}
.zlove-msg.mine .zlove-msg-bubble {
    background: linear-gradient(135deg,#ff4757,#ff6b81); color: #fff;
}
.zlove-msg-del {
    position: absolute; top: -4px; right: -4px; z-index: 2;
    width: 18px; height: 18px; line-height: 16px; text-align: center;
    border-radius: 50%; background: #bbb; color: #fff; border: 0; cursor: pointer;
}

/* 相册 */
.zlove-photos { gap: 8px; }
.zlove-photo {
    position: relative; flex: 0 0 calc(33.33% - 8px); aspect-ratio: 1;
    border-radius: 10px; overflow: hidden;
}
.zlove-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zlove-photo-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px;
    font-size: 11px; color: #fff; background: rgba(0,0,0,.55); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.zlove-photo-del {
    position: absolute; top: 4px; right: 4px; z-index: 2;
    width: 20px; height: 20px; line-height: 18px; text-align: center;
    border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: 0; cursor: pointer;
}

/* 排行榜 */
.zlove-lb-row {
    display: flex; align-items: center; padding: 8px 6px;
    border-bottom: 1px solid rgba(0,0,0,.05);
}
.zlove-lb-row.me { background: rgba(255,79,109,.08); border-radius: 8px; }
.zlove-lb-rank {
    flex: 0 0 34px; width: 26px; height: 26px; line-height: 26px; text-align: center;
    border-radius: 50%; background: rgba(0,0,0,.06); font-weight: 700;
}
.zlove-lb-row.me .zlove-lb-rank { background: linear-gradient(135deg,#ff4757,#ff6b81); color: #fff; }
.zlove-lb-names { flex: 1; padding: 0 10px; font-size: 13px; }
.zlove-lb-total { font-weight: 700; color: #ff4f6d; }

@media (max-width: 560px) {
    .zlove-ms-item { flex-basis: calc(33.33% - 8px); }
    .zlove-photo { flex-basis: calc(50% - 8px); }
    .zlove-event-date { max-width: 100%; }
    .zlove-photo-cap, .zlove-photo-del { display: none; }
}

/* UID 徽标流光动画（子比主题同款，保险起见补齐 keyframes） */
@keyframes zibll-uid-shimmer { from { transform: translateX(0); } to { transform: translateX(450%); } }
