.news-bell-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-right: 0;
}

.news-bell-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.news-bell-btn:hover {
    opacity: 0.82;
    transform: translateX(2px);
}

.news-bell-btn img {
    width: 20px;
    height: 20px;
}

.news-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #17a2b8;
    color: white;
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    box-sizing: border-box;
    flex: 0 0 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 9998;
    display: none;
    pointer-events: none;
}

.news-modal-overlay.open {
    display: block;
}

.news-modal {
    position: fixed;
    top: 0;
    left: 60px;
    right: auto;
    bottom: 0;
    width: 400px;
    max-width: calc(100vw - 60px);
    height: 100vh;
    max-height: none;
    background: white;
    border-radius: 0 14px 14px 0;
    box-shadow: 12px 0 34px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    display: none;
    flex-direction: column;
    border-left: 1px solid #ececec;
}

.news-modal.open {
    display: flex;
}

.news-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 8px;
    border-bottom: 1px solid #f0f0f0;
}

.news-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.news-modal-actions {
    display: flex;
    gap: 8px;
}

.news-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    position: relative;
}

.news-action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.news-action-btn img {
    width: 18px;
    height: 18px;
}

.news-action-btn .tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    margin-top: 6px;
}

.news-action-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.news-modal-content {
    overflow-y: auto;
    flex: 1;
    padding: 8px 0 0;
}

.news-item {
    padding: 16px 20px 8px;
    border-bottom: 1px solid #e5e5e5;
    cursor: pointer;
    transition: background 0.2s ease;
}

.news-item:hover {
    background: #fafafa;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.news-item-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.news-unread-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    flex-shrink: 0;
}

.news-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.news-item.read .news-item-title {
    color: #999;
}

.news-item-time {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

.news-item-content {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    padding-left: 0;
}

.news-item.read .news-item-content {
    color: #aaa;
}

.news-item-content a {
    color: #3b82f6;
    text-decoration: none;
}

.news-item-content a:hover {
    text-decoration: underline;
}

.news-item.read .news-item-content a {
    color: #93c5fd;
}

.news-item.read .news-item-content a:hover {
    color: #60a5fa;
}

.news-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

@media (max-width: 768px) {
    .news-modal {
        left: 52px;
        width: min(340px, calc(100vw - 52px));
        max-width: calc(100vw - 52px);
        border-radius: 0 12px 12px 0;
    }
}
