



.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.search-modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

.search-filters {
    margin: 20px 0;
    display: flex;
    gap: 20px;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-input-group input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-input-group button {
    padding: 8px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* ── 通知铃铛 ── */
.notif-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notif-bell-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    position: relative;
    transition: color 0.2s;
}
.notif-bell-btn:hover { color: #0056b3; }

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    text-align: center;
    line-height: 16px;
    padding: 0 3px;
}

.notif-panel {
    position: fixed;
    left: 0;
    top: 56px;
    width: 300px !important;
    max-width: calc(100vw - 16px) !important;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    z-index: 2000;
    overflow: hidden;
}

.notif-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    font-size: 14px;
}

.notif-read-all {
    background: none;
    border: none;
    color: #0056b3;
    font-size: 12px;
    cursor: pointer;
    width: 80%;
    padding: 0;
}
.notif-read-all:hover { text-decoration: underline; }

.notif-list {
    max-height: 360px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}
.notif-item:hover { background: #f8f9fa; }
.notif-item.unread { background: #f0f7ff; }
.notif-item.unread:hover { background: #e4f0fb; }

.notif-item-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #222;
}
.notif-item-content {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 4px;
}
.notif-item-time {
    font-size: 11px;
    color: #aaa;
}

.notif-empty {
    text-align: center;
    color: #aaa;
    font-size: 13px;
    padding: 32px 0;
}

.notif-panel-footer {
    text-align: center;
    padding: 10px;
    border-top: 1px solid #f0f0f0;
}
.notif-panel-footer a {
    font-size: 12px;
    color: #0056b3;
    text-decoration: none;
}
.notif-panel-footer a:hover { text-decoration: underline; }
