/* 通知中心（独立页面） v1 */
.notify-page {
    position: fixed; inset: 0; z-index: 1300;
    background: #f4f6f8;
    display: none; flex-direction: column;
    -webkit-tap-highlight-color: transparent;
}
.notify-page.show { display: flex; animation: npIn .22s ease; }
@keyframes npIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* 顶部栏 */
.np-header {
    flex-shrink: 0;
    display: flex; align-items: center; gap: 8px;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px;
    background: #fff; border-bottom: 1px solid #eef1f4;
    position: relative;
}
.np-header h3 { flex: 1; font-size: 17px; font-weight: 600; color: #1a1a1a; text-align: center; }
.np-header .icon-btn { width: 36px; height: 36px; }
.np-header .icon-btn:last-child { margin-left: 0; }

/* 更多菜单 */
.np-menu {
    position: absolute; top: calc(env(safe-area-inset-top, 0px) + 52px); right: 10px;
    background: #fff; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.14);
    padding: 6px; z-index: 10; min-width: 168px;
    animation: npMenu .16s ease;
}
@keyframes npMenu { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.np-menu-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; font-size: 14px; color: #333;
    border-radius: 8px; cursor: pointer;
}
.np-menu-item i { font-size: 17px; color: #07C160; }
.np-menu-item.danger i { color: #e74c3c; }
.np-menu-item:active { background: #f5f7f9; }

/* 滚动区 */
.np-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px; }

/* 概览横幅 */
.np-banner {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #07C160 0%, #10b981 55%, #35c48d 100%);
    border-radius: 16px; padding: 16px 18px; color: #fff;
    box-shadow: 0 6px 18px rgba(7,193,96,.22);
    margin-bottom: 14px;
}
.np-banner-text { flex: 1; min-width: 0; }
.np-banner-title { font-size: 17px; font-weight: 600; letter-spacing: .3px; }
.np-banner-sub { font-size: 12px; opacity: .85; margin-top: 4px; }
.np-banner-btn {
    flex-shrink: 0; border: none; cursor: pointer;
    background: rgba(255,255,255,.22); color: #fff;
    font-size: 12.5px; padding: 8px 14px; border-radius: 20px;
    backdrop-filter: blur(4px); transition: background .2s;
}
.np-banner-btn:active { background: rgba(255,255,255,.34); }

/* 分类 tab */
.np-tabs {
    display: flex; gap: 8px; margin-bottom: 12px;
    overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.np-tabs::-webkit-scrollbar { display: none; }
.np-tab {
    flex-shrink: 0; position: relative;
    padding: 7px 16px; border-radius: 18px;
    background: #fff; color: #666; font-size: 13.5px;
    cursor: pointer; transition: all .2s; border: 1px solid transparent;
}
.np-tab.active { background: #e8f8ee; color: #07C160; font-weight: 600; border-color: rgba(7,193,96,.25); }
.np-chip {
    display: inline-block; min-width: 16px; height: 16px; line-height: 16px;
    padding: 0 4px; margin-left: 4px; border-radius: 8px;
    background: #FA5151; color: #fff; font-size: 10px; text-align: center;
    vertical-align: 1px;
}

/* 搜索 */
.np-search {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border-radius: 10px; padding: 9px 12px;
    margin-bottom: 12px; border: 1px solid #eef1f4;
}
.np-search i { font-size: 16px; color: #b6bfc7; }
.np-search input {
    flex: 1; border: none; outline: none; background: transparent;
    font-size: 14px; color: #333;
}
.np-search input::placeholder { color: #c2c9d0; }

/* 列表 */
.np-list { display: flex; flex-direction: column; }
.np-group-title {
    font-size: 12px; color: #9aa4ad; padding: 4px 6px 8px; font-weight: 500;
}
.np-item {
    position: relative; display: flex; gap: 12px;
    background: #fff; border-radius: 14px; padding: 14px;
    margin-bottom: 10px; cursor: pointer;
    box-shadow: 0 1px 3px rgba(17,35,52,.04);
    transition: box-shadow .2s, transform .12s;
}
.np-item:active { transform: scale(.995); }
.np-item.unread { box-shadow: 0 2px 10px rgba(7,193,96,.10); }
.np-item.unread::before {
    content: ''; position: absolute; left: 0; top: 14px; bottom: 14px;
    width: 3px; border-radius: 0 3px 3px 0; background: #07C160;
}
.np-icon {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 19px;
}
.np-main { flex: 1; min-width: 0; }
.np-row { display: flex; align-items: baseline; gap: 8px; }
.np-item-title {
    flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: #222;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.np-item.unread .np-item-title { color: #111; }
.np-time { flex-shrink: 0; font-size: 11.5px; color: #aab3bb; }
.np-preview {
    font-size: 13px; color: #7c868f; line-height: 1.55; margin-top: 5px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.np-detail { display: none; margin-top: 8px; }
.np-item.expanded .np-preview { display: none; }
.np-item.expanded .np-detail { display: block; }
.np-detail-text {
    font-size: 13.5px; color: #4a545d; line-height: 1.75;
    white-space: pre-wrap; word-break: break-word;
}
.np-detail-meta {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px; padding-top: 8px; border-top: 1px dashed #eef1f4;
    font-size: 11.5px; color: #aab3bb;
}
.np-detail-actions { display: flex; gap: 14px; }
.np-detail-actions span { color: #07C160; cursor: pointer; }
.np-detail-actions .danger { color: #e74c3c; }
.np-dot {
    position: absolute; top: 14px; right: 14px;
    width: 7px; height: 7px; border-radius: 50%; background: #FA5151;
}
.np-item.expanded .np-dot { display: none; }

/* 空 / 加载 */
.np-empty { text-align: center; padding: 56px 20px 30px; color: #b6bfc7; }
.np-empty i { font-size: 46px; color: #d8dee4; }
.np-empty p { margin-top: 10px; font-size: 13.5px; }
.np-loadmore {
    text-align: center; padding: 12px; margin: 4px 0 8px;
    font-size: 13px; color: #07C160; cursor: pointer;
    background: #fff; border-radius: 10px;
}
.np-end { text-align: center; padding: 14px 0; font-size: 12px; color: #c2c9d0; }
.np-bottom-space { height: calc(env(safe-area-inset-bottom, 0px) + 12px); }

/* 桌面端：居中浮层 */
@media (min-width: 900px) {
    .notify-page {
        inset: 4vh auto; left: 50%; transform: translateX(-50%);
        width: 560px; max-height: 92vh; border-radius: 18px; overflow: hidden;
        box-shadow: 0 24px 60px rgba(0,0,0,.22);
        background: #f4f6f8; border: 1px solid rgba(0,0,0,.05);
    }
    .notify-page.show { animation: npInDesktop .2s ease; }
    @keyframes npInDesktop { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%); } }
    .np-header { padding-top: 16px; }
    .np-menu { top: 58px; }
}
