/* ===== 站内通知 · 样式 =====
 * 跟官网 / 聊天界面同一套杂志编辑风：直角、细边、玫红点缀。
 */

#jc-notify {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 4px;
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ---- 铃铛 ---- */
#jc-notify .jc-nb-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    padding: 0;
    border: 1px solid transparent;
    background: transparent;
    color: #14110F;
    cursor: pointer;
    border-radius: 0;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}
#jc-notify .jc-nb-bell:hover {
    background: #fff;
    border-color: #D9D2C6;
    color: #E8346E;
}

/* 未读红点 */
#jc-notify .jc-nb-dot {
    position: absolute;
    top: 2px; right: 1px;
    min-width: 17px; height: 17px;
    padding: 0 4px;
    background: #E8346E;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    border-radius: 99px;
    letter-spacing: 0;
}

/* ---- 面板 ---- */
#jc-notify .jc-nb-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 350px;
    max-width: calc(100vw - 28px);
    max-height: 440px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #14110F;
    box-shadow: 7px 9px 0 rgba(20, 17, 15, .13);
    z-index: 10050;
    overflow: hidden;
}
#jc-notify .jc-nb-panel[hidden] { display: none; }

#jc-notify .jc-nb-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border-bottom: 1px solid #D9D2C6;
    background: #F5F2EC;
}
#jc-notify .jc-nb-head > span:first-child {
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: -0.01em;
}
#jc-notify .jc-nb-readall {
    margin-left: auto;
    border: none;
    background: none;
    padding: 0;
    color: #726C64;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: inherit;
}
#jc-notify .jc-nb-readall:hover { color: #E8346E; }
#jc-notify .jc-nb-x {
    border: none; background: none; padding: 2px;
    color: #A39B90; cursor: pointer; line-height: 0;
}
#jc-notify .jc-nb-x:hover { color: #14110F; }

#jc-notify .jc-nb-list {
    overflow-y: auto;
    flex: 1;
}

#jc-notify .jc-nb-empty {
    padding: 34px 16px;
    text-align: center;
    color: #A39B90;
    font-size: 13px;
}

/* ---- 单条通知 ---- */
#jc-notify .jc-nb-item {
    padding: 13px 15px;
    border-bottom: 1px solid #EDE8DF;
    cursor: pointer;
    transition: background .14s ease;
    position: relative;
}
#jc-notify .jc-nb-item:last-child { border-bottom: none; }
#jc-notify .jc-nb-item:hover { background: #FAF8F4; }
#jc-notify .jc-nb-item.unread { background: #FFF8FA; }
#jc-notify .jc-nb-item.unread::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: #E8346E;
}

#jc-notify .jc-nb-t {
    font-size: 13.5px;
    font-weight: 700;
    color: #14110F;
    margin-bottom: 5px;
    line-height: 1.5;
}
#jc-notify .jc-nb-b {
    font-size: 12.5px;
    color: #726C64;
    line-height: 1.75;
    margin-bottom: 8px;
    word-break: break-word;
}
#jc-notify .jc-nb-m {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: #A39B90;
}
#jc-notify .jc-nb-m a {
    color: #E8346E;
    text-decoration: none;
    font-weight: 600;
}
#jc-notify .jc-nb-m a:hover { text-decoration: underline; }
#jc-notify .jc-nb-del {
    margin-left: auto;
    border: none; background: none; padding: 2px;
    color: #C4BCAE; cursor: pointer; line-height: 0;
    opacity: 0;
    transition: opacity .14s ease, color .14s ease;
}
#jc-notify .jc-nb-item:hover .jc-nb-del { opacity: 1; }
#jc-notify .jc-nb-del:hover { color: #DC2626; }

/* 聊天室里的位置微调 */
.chat-head #jc-notify { margin-left: 8px; }

/* 窄屏：面板撑满 */
@media (max-width: 520px) {
    #jc-notify .jc-nb-panel {
        position: fixed;
        top: 64px; left: 12px; right: 12px;
        width: auto;
        max-width: none;
    }
}

/* ---- 已入社欢迎横幅 ---- */
#jc-welcome {
    position: fixed; left: 0; right: 0; top: 0; z-index: 10060;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 12px 22px;
    background: #14110F; color: #fff;
    border-bottom: 3px solid #E8346E;
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    animation: jcw-in .3s ease-out;
}
@keyframes jcw-in { from { transform: translateY(-100%); } to { transform: none; } }
#jc-welcome .t { font-weight: 700; }
#jc-welcome .d { color: rgba(255,255,255,.7); font-size: 13px; }
#jc-welcome button {
    margin-left: auto;
    border: 1px solid rgba(255,255,255,.5);
    background: transparent; color: #fff;
    padding: 5px 16px; cursor: pointer;
    font-family: inherit; font-size: 13px;
}
#jc-welcome button:hover { background: #E8346E; border-color: #E8346E; }

/* ---- 管理员后台入口 ---- */
#jc-admin-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; margin: 0 4px;
    border: 1px solid #14110F;
    color: #14110F; background: transparent;
    font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
    text-decoration: none;
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}
#jc-admin-link:hover {
    background: #E8346E;
    border-color: #E8346E;
    color: #fff;
}
#jc-admin-link.jc-admin-float {
    position: fixed; left: 18px; bottom: 22px; z-index: 9997;
    background: #fff;
    box-shadow: 4px 5px 0 rgba(20,17,15,.12);
}
@media (max-width: 900px) {
    #jc-admin-link span { display: none; }
    #jc-admin-link { padding: 8px 10px; }
}
