/**
 * 情侣空间（Zibll 附加插件）前台样式
 * 依赖子比主题 main.css 的工具类（flex / em* / muted-* 等），
 * 这里只补充插件专属的组件样式。
 */

.zcs-wrap {
    max-width: 760px;
    margin: 0 auto;
}

/* 已建立情侣关系后，桌面切换为更宽的双栏布局 */
.zcs-wrap[data-zcs-coupled="1"] {
    max-width: 1160px;
}

.zcs-header-box h2 {
    margin: 0;
}

/* ===================== 桌面双栏布局 ===================== */
.zcs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 20px;
    align-items: start;
}

.zcs-main,
.zcs-side {
    min-width: 0;
}

/* 情侣档案（侧栏） */
.zcs-profile-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zcs-profile-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--muted-border-color, #eef0f3);
    font-size: 14px;
}

.zcs-profile-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 平板 / 手机：回到单栏 */
@media (max-width: 991px) {
    .zcs-wrap[data-zcs-coupled="1"] {
        max-width: 760px;
    }

    .zcs-layout {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}

/* 桌面：礼物每行 4 个、侧栏吸顶 */
@media (min-width: 992px) {
    .zcs-gift-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .zcs-side {
        position: sticky;
        top: 70px;
    }
}

/* ===================== 礼物网格 ===================== */
.zcs-gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 12px;
}

.zcs-gift {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 8px;
    border: 1px solid var(--muted-border-color, #eef0f3);
    border-radius: var(--main-radius, 12px);
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.zcs-gift:hover {
    transform: translateY(-3px);
    border-color: var(--theme-color, #e8587c);
    box-shadow: 0 6px 16px rgba(232, 88, 124, .12);
}

.zcs-gift-icon {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 8px;
}

.zcs-gift .font-bold {
    margin-bottom: 4px;
}

/* ===================== 亲密度进度条 ===================== */
.zcs-progress.muted-box {
    height: 12px;
    padding: 0;
    border-radius: 999px;
    overflow: hidden;
}

.zcs-progress-bar {
    height: 100%;
    border-radius: 999px;
    transition: width .4s cubic-bezier(.22, .61, .36, 1);
}

/* ===================== 甜蜜时间线 ===================== */
.zcs-timeline {
    padding-left: 4px;
}

.zcs-tl-item {
    position: relative;
    padding-bottom: 16px;
}

.zcs-tl-item:last-child {
    padding-bottom: 0;
}

.zcs-tl-dot {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(232, 88, 124, .18);
}

.zcs-tl-item::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: var(--muted-border-color, #eef0f3);
}

.zcs-tl-item:last-child::before {
    display: none;
}

/* ===================== 响应式 ===================== */
@media (max-width: 640px) {
    .zcs-gift-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .zcs-gift {
        padding: 12px 4px;
    }

    .zcs-gift-icon {
        font-size: 26px;
    }
}

/* ===================== 浪漫氛围 ===================== */
.zcs-wrap {
    --zcs-pink: #ff6b9d;
    --zcs-pink-2: #ff9a76;
    --zcs-purple: #b06ab3;
}

/* 情侣卡片：柔和渐变 + 漂浮爱心装饰 */
.zcs-couple-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 157, .22);
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255, 107, 157, .10), transparent 46%),
        radial-gradient(120% 120% at 100% 100%, rgba(176, 106, 179, .12), transparent 46%);
}

.zcs-couple-card::before,
.zcs-couple-card::after {
    content: '\2764';
    position: absolute;
    font-size: 40px;
    line-height: 1;
    opacity: .10;
    pointer-events: none;
    animation: zcs-float 6s ease-in-out infinite;
}

.zcs-couple-card::before {
    top: 12px;
    left: 18px;
}

.zcs-couple-card::after {
    bottom: 14px;
    right: 22px;
    font-size: 26px;
    animation-delay: -3s;
}

@keyframes zcs-float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(8deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* 心跳爱心（正文里的爱心图标） */
.zcs-wrap .fa-heart,
.zcs-wrap .fa-heart-o {
    animation: zcs-beat 1.4s ease-in-out infinite;
}

@keyframes zcs-beat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.18); }
    40% { transform: scale(1.12); }
}

/* 亲密度进度条发光 */
.zcs-progress-bar {
    box-shadow: 0 0 10px rgba(255, 107, 157, .55);
}

/* 礼物卡片图标弹跳 */
.zcs-gift:hover .zcs-gift-icon {
    animation: zcs-bounce .6s ease;
}

@keyframes zcs-bounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-3px); }
}

/* 时间线圆点脉冲 */
.zcs-tl-dot {
    animation: zcs-pulse 2s ease-out infinite;
}

@keyframes zcs-pulse {
    0% { box-shadow: 0 0 0 0 rgba(232, 88, 124, .35); }
    70% { box-shadow: 0 0 0 7px rgba(232, 88, 124, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 88, 124, 0); }
}

/* 甜蜜记录 Tab 菜单 */
.zcs-records-tabs {
    flex-wrap: wrap;
}

.zcs-tab {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(128, 128, 128, .28);
    background: transparent;
    color: var(--this-muted-color, #888);
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.zcs-tab:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

.zcs-tab.active {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}

/* 甜言蜜语留言板 */
.zcs-zone-respond {
    padding: 14px;
    border: 1px solid rgba(255, 107, 157, .20);
    border-radius: var(--main-radius, 12px);
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255, 107, 157, .06), transparent 46%);
}

.zcs-zone-respond .comt-title {
    width: 52px;
}

.zcs-zone-respond .comt-avatar {
    width: 42px;
    height: 42px;
}

.zcs-zone-send {
    border: none;
    background: linear-gradient(135deg, #ff6b9d, #ff9a76);
}

.zcs-zone-wrap #postcomments .commentlist {
    margin: 0;
    padding: 0;
}

.zcs-zone-wrap .comment {
    margin-bottom: 4px;
}

.zcs-zone-wrap .comment-content {
    word-break: break-word;
}

/* 空留言时的提示 */
.zcs-zone-wrap ol.commentlist:empty::after {
    content: '还没有留言，快来说一句甜甜的话吧～';
    display: block;
    text-align: center;
    color: var(--this-muted-color, #999);
    padding: 26px 10px;
}