/* 互动三件套 v1.0.0 —— 与 MIPCMS 默认模板风格一致，主色 #00AAEE */

.interact-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 18px 0 6px;
    padding: 14px 0;
    border-top: 1px dashed #e6e9ee;
    border-bottom: 1px dashed #e6e9ee;
}

.ic-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border: 1px solid #e6e9ee;
    border-radius: 999px;
    background: #fff;
    color: #5a6472;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: color .15s, border-color .15s, background-color .15s;
    cursor: pointer;
}

.ic-btn:hover,
.ic-btn:focus {
    border-color: #00AAEE;
    color: #00AAEE;
    text-decoration: none;
}

.ic-btn.is-active {
    border-color: #00AAEE;
    background: rgba(0, 170, 238, .07);
    color: #00AAEE;
}

.ic-ico {
    flex: 0 0 16px;
    display: block;
}

.ic-num {
    font-style: normal;
    font-size: 12px;
    color: #9aa3b0;
}

.ic-btn.is-active .ic-num {
    color: #00AAEE;
}

/* ---------- 相关推荐 ---------- */

.interact-related {
    margin-top: 18px;
}

.ic-rel {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ic-rel li {
    padding: 13px 0;
    border-bottom: 1px dashed #eef1f5;
}

.ic-rel li:first-child {
    padding-top: 2px;
}

.ic-rel li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ic-rel a {
    display: block;
    color: #23282f;
    font-size: 15px;
    line-height: 1.55;
    text-decoration: none;
}

.ic-rel a:hover {
    color: #00AAEE;
}

.ic-rel-desc {
    margin: 5px 0 0;
    color: #8a929e;
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ic-rel-meta {
    margin-top: 6px;
    color: #a8b0bb;
    font-size: 12px;
}

.ic-dot {
    margin: 0 6px;
}

/* ---------- 评论区 ---------- */

.interact-comments {
    margin-top: 18px;
}

.ic-total {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #9aa3b0;
}

.ic-notice {
    margin-bottom: 12px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
}

.ic-notice.is-ok {
    background: #f1faf5;
    border: 1px solid #cdeade;
    color: #1f7a52;
}

.ic-notice.is-err {
    background: #fdf4f4;
    border: 1px solid #f4d4d4;
    color: #a63a3a;
}

.interact-form {
    position: relative;
    padding: 12px;
    border: 1px dashed #e2e7ee;
    border-radius: 8px;
    background: #fafbfc;
}

.if-row {
    margin-bottom: 8px;
}

.if-nick,
.if-content {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e7ee;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-family: inherit;
}

.if-nick {
    max-width: 240px;
    height: 36px;
    padding: 0 12px;
}

.if-content {
    min-height: 96px;
    padding: 10px 12px;
    line-height: 1.7;
    resize: vertical;
}

.if-nick:focus,
.if-content:focus {
    outline: none;
    border-color: #00AAEE;
}

.if-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.if-tip {
    color: #a8b0bb;
    font-size: 12px;
}

.if-submit {
    padding: 8px 20px;
    border: 0;
    border-radius: 6px;
    background: #00AAEE;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.if-submit:hover {
    background: #0095d3;
}

.if-submit[disabled] {
    opacity: .6;
    cursor: default;
}

.if-hp {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ic-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.ic-item {
    display: flex;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px dashed #eef1f5;
}

.ic-item:last-child {
    border-bottom: 0;
}

.ic-avatar {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
    line-height: 34px;
    text-align: center;
    user-select: none;
}

.ic-main {
    flex: 1 1 auto;
    min-width: 0;
}

.ic-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.ic-name {
    color: #333a44;
    font-size: 14px;
    font-weight: 600;
}

.ic-time {
    color: #a8b0bb;
    font-size: 12px;
}

.ic-body {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.78;
    word-break: break-word;
    overflow-wrap: break-word;
}

.ic-empty {
    margin: 18px 0 6px;
    color: #a8b0bb;
    font-size: 13px;
    text-align: center;
}

.ic-more-wrap {
    text-align: center;
}

.ic-more {
    margin: 16px auto 4px;
    padding: 8px 22px;
    border: 1px solid #e2e7ee;
    border-radius: 999px;
    background: #fff;
    color: #6b7480;
    font-size: 13px;
    cursor: pointer;
}

.ic-more:hover {
    border-color: #00AAEE;
    color: #00AAEE;
}

/* ---------- 轻提示 ---------- */

.ic-toast {
    position: fixed;
    left: 50%;
    bottom: 60px;
    z-index: 9999;
    transform: translateX(-50%);
    max-width: 80%;
    padding: 9px 16px;
    border-radius: 6px;
    background: rgba(32, 38, 46, .92);
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 640px) {
    .interact-bar {
        gap: 6px;
        padding: 12px 0;
    }

    .ic-btn {
        padding: 7px 11px;
        font-size: 13px;
    }

    .ic-nick {
        max-width: 100%;
    }

    .if-foot {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .if-submit {
        width: 100%;
        padding: 10px 0;
    }

    .ic-avatar {
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 14px;
    }
}
