/* ============ 通知中心 - 与控制中心完全一致 ============ */

.notification-center {
    position: fixed;
    /* 不设置默认bottom，由JS动态计算 */
    width: 380px;
    height: 400px;
    top: auto !important; /* 覆盖 main.css 的 top:0，启用 bottom 定位 */
    right: auto; /* 由 JS 计算 left 居中，无需 right 固定 */
    background: var(--bg-secondary);
    backdrop-filter: blur(var(--blur-lg)) saturate(150%);
    border-radius: var(--radius-xl);
    padding: 0px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    z-index: 10200;
}

/* ============ 通知容器 ============ */
.notification-tile {
    background: rgba(255, 255, 255, 0.20);
    border-radius: var(--radius-xl);
    padding: 16px;
    cursor: default;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.dark-mode .notification-tile {
    background: rgba(32, 32, 32, 0.10);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.notification-clear {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: all var(--transition-fast);
}

.notification-clear:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

.dark-mode .notification-clear:hover {
    background: rgba(255, 255, 255, 0.12);
}

.notification-list {
    height: 400px;
    overflow-y: auto;
}

.notification-item {
    background: rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 8px;
    transition: all var(--transition-fast);
}

.dark-mode .notification-item {
    background: rgba(255, 255, 255, 0.06);
}

.notification-item:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: scale(1.01);
}

.dark-mode .notification-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.notification-item:last-child {
    margin-bottom: 0;
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.notification-item-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.notification-item-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.notification-item-content {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification-item-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    opacity: 0.6;
    transition: all var(--transition-fast);
}

.notification-item-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
}

.dark-mode .notification-item-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.notification-item-close img {
    width: 14px;
    height: 14px;
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.notification-empty img {
    width: 48px;
    height: 48px;
    opacity: 0.4;
    margin-bottom: 12px;
}

.notification-empty p {
    font-size: 13px;
    margin: 0;
}

/* ============ 隐藏日历 ============ */
.calendar-tile {
    display: none !important;
}

/* ============ 模糊禁用 ============ */
.blur-disabled .notification-center {
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.95);
}

.dark-mode.blur-disabled .notification-center {
    background: rgba(32, 32, 32, 0.95);
}

/* ============ 动画 - 与控制中心完全一致 ============ */
body.animations-enabled .notification-center:not(.hidden) {
    animation: controlCenterOpen 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

body.animations-enabled .notification-center.closing {
    animation: controlCenterClose 0.2s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* ============ 模糊禁用状态 - 与控制中心一致 ============ */
.blur-disabled .notification-center {
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.95);
}

.dark-mode.blur-disabled .notification-center {
    background: rgba(32, 32, 32, 0.95);
}

/* ============ 滚动条 ============ */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
    background: var(--text-tertiary);
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}