.notice-list-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: none;
    opacity: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
    backdrop-filter: blur(1px);
}

.notice-list-overlay.show {
    opacity: 1;
}

.notice-list-panel {
    position: fixed;
    top: 70px; /* 在用户名下方 */
    right: 16px; /* 与右边界距离 */
    width: 350px;
    height: calc(100vh - 95px); /* 固定高度，占用大部分屏幕 */
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 0px;
}

.notice-list-overlay.show .notice-list-panel {
    transform: translateX(0);
}

[data-theme="dark"] .notice-list-panel {
    background: #2a2a2a;
    border-color: #444;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.notice-list-panel {
    display: flex;
    flex-direction: column;
}

.notice-list-header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.notice-list-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-list-close-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.notice-list-close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.notice-list-close-btn svg {
    width: 16px;
    height: 16px;
}

[data-theme="dark"] .notice-list-close-btn {
    color: #ccc;
}

[data-theme="dark"] .notice-list-close-btn:hover {
    background: #444;
    color: #fff;
}

[data-theme="dark"] .notice-list-header {
    border-bottom-color: #444;
}

.notice-list-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

[data-theme="dark"] .notice-list-title {
    color: #fff;
}

.notice-list-mark-all {
    color: #666;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.notice-list-mark-all:hover {
    color: #2b0dd7;
    text-decoration: none;
}

[data-theme="dark"] .notice-list-mark-all {
    color: #ccc;
}

[data-theme="dark"] .notice-list-mark-all:hover {
    color: #8B5CF6;
}

.notice-list-content {
    height: calc(100vh - 200px);
    overflow-y: auto;
    flex: 1;
    padding: 0px 16px;
}



.notice-item {
    padding: 12px;
    border-bottom: 1px solid #f8f8f8;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
}

.notice-item:hover {
    background: #f0f2f5;
}

.notice-item:last-child {
    border-bottom: none;
}

[data-theme="dark"] .notice-item {
    border-bottom-color: #333;
}

[data-theme="dark"] .notice-item:hover {
    background: #333;
}

.notice-item-icon {
    width: 40px;
    height: 40px;
    background: #ff4757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.notice-item-icon svg {
    width: 20px;
    height: 20px;
}

.notice-item-dot {
    width: 6px;
    height: 6px;
    background: #ff4757;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 4px;
}

.notice-item-dot.read {
    display: none;
}

.notice-item-content {
    flex: 1;
    min-width: 0;
}

.notice-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

[data-theme="dark"] .notice-item-title {
    color: #fff;
}

[data-theme="dark"] .notice-item-icon {
    background: #ff4757;
    color: white;
}

.notice-item-text {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 4px;
    word-wrap: break-word;
    flex: 1;
    min-width: 0;
}

.notice-text-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notice-item-text.collapsed {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.notice-expand-btn {
    color: #666;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease;
    font-weight: normal;
    flex-shrink: 0;
    white-space: nowrap;
}

.notice-expand-btn:hover {
    color: #333;
    text-decoration: none;
}

[data-theme="dark"] .notice-item-text {
    color: #e5e5e5;
}

[data-theme="dark"] .notice-expand-btn {
    color: #ccc;
}

[data-theme="dark"] .notice-expand-btn:hover {
    color: #fff;
}

.notice-item-time {
    font-size: 12px;
    color: #999;
}

[data-theme="dark"] .notice-item-time {
    color: #666;
}

.notice-list-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

[data-theme="dark"] .notice-list-empty {
    color: #666;
}

.notice-no-more {
    padding: 20px 0;
    text-align: center;
}

.notice-list-no-more {
    color: #aaa;
    font-size: 12px;
    font-weight: normal;
}

[data-theme="dark"] .notice-list-no-more {
    color: #666;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .notice-list-panel {
        top: 50px;
        right: 12px;
        width: min(320px, calc(100vw - 24px));
        height: calc(100vh - 70px);
        border-radius: 4px;
        padding: 0px;
    }
    
    .notice-list-content {
        height: calc(100vh - 150px);
        padding: 0px 12px;
    }
    
    .notice-list-header {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .notice-item {
        padding: 12px 0;
    }
    
    .notice-item-text.collapsed {
        max-width: 200px;
    }
    
    .notice-item-title {
        font-size: 14px;
    }
    
    .notice-item-icon {
        width: 36px;
        height: 36px;
    }
    
    .notice-item-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .notice-list-panel {
        top: 40px;
        right: 8px;
        width: calc(100vw - 16px);
        height: calc(100vh - 50px);
        padding: 0px;
    }
    
    .notice-list-content {
        height: calc(100vh - 130px);
        padding: 0px 10px;
    }
    
    .notice-list-header {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .notice-item {
        padding: 10px 0;
    }
    
    .notice-list-title {
        font-size: 15px;
    }
    
    .notice-item-text {
        font-size: 13px;
    }
    
    .notice-item-text.collapsed {
        max-width: 180px;
    }
    
    .notice-item-time {
        font-size: 11px;
    }
    
    .notice-list-no-more {
        font-size: 11px;
    }
    
    .notice-expand-btn {
        font-size: 11px;
    }
    
    .notice-item-title {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .notice-item-icon {
        width: 32px;
        height: 32px;
    }
    
    .notice-item-icon svg {
        width: 16px;
        height: 16px;
    }
} 