/* =========================================================================
   ShengYao AI Premium Dash - Global Stylesheet
   ========================================================================= */

:root {
    /* 核心色彩：基于深渊与光晕的高级暗黑设计 */
    --bg-base: #0B0F19;         /* 极暗蓝底 */
    --surface-glass: rgba(17, 24, 39, 0.65); /* 玻璃化表层 */
    --surface-border: rgba(255, 255, 255, 0.08);

    --primary-color: #3B82F6;   /* 跃动的主视觉蓝 */
    --primary-glow: rgba(59, 130, 246, 0.4);
    
    --accent-color: #10B981;    /* 翡翠绿 (安全/成功) */
    --accent-glow: rgba(16, 185, 129, 0.4);
    
    --danger-color: #EF4444;    /* 朱砂红 (警示/失败) */
    
    --text-main: #F8FAFC;       /* 亮白正文 */
    --text-muted: #94A3B8;      /* 暗灰辅文 */
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 亮色主题变量覆盖 */
[data-theme="light"] {
    --bg-base: #F1F5F9;
    --surface-glass: rgba(255, 255, 255, 0.8);
    --surface-border: rgba(0, 0, 0, 0.08);
    --primary-glow: rgba(59, 130, 246, 0.2);
    --accent-glow: rgba(16, 185, 129, 0.2);
    --text-main: #1E293B;
    --text-muted: #64748B;
}
[data-theme="light"] body { font-weight: 400; }
[data-theme="light"] .ambient-bg {
    background:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.04) 0%, transparent 40%);
}
[data-theme="light"] .glass-panel {
    background: var(--surface-glass);
    border-color: var(--surface-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .nav-item.active { color: var(--primary-color); background: rgba(59, 130, 246, 0.08); }
[data-theme="light"] .nav-item { color: var(--text-muted); }
[data-theme="light"] .nav-item:hover { color: var(--text-main); background: rgba(0, 0, 0, 0.04); }
[data-theme="light"] .issue-card { background: rgba(0, 0, 0, 0.03); }
[data-theme="light"] .project-card:hover { border-color: rgba(0, 0, 0, 0.12); }
[data-theme="light"] select option { background-color: #fff; color: var(--text-main); }
[data-theme="light"] .skeleton { background: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent); }
[data-theme="light"] .toast {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--surface-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: var(--text-main);
}
[data-theme="light"] input[type="text"],
[data-theme="light"] .custom-select { background: rgba(0,0,0,0.04); border-color: var(--surface-border); color: var(--text-main); }
[data-theme="light"] .modal-backdrop { background: rgba(0,0,0,0.3); }
[data-theme="light"] .upload-area { border-color: rgba(0,0,0,0.2); }
[data-theme="light"] .upload-area:hover { background: rgba(59, 130, 246, 0.04); }
[data-theme="light"] .mobile-overlay { background: rgba(0,0,0,0.3); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); }
[data-theme="light"] .sidebar { border-right-color: var(--surface-border); }

/* 主题切换按钮 */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--surface-border);
    color: var(--text-muted);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1rem;
    transition: var(--transition-fast);
}
.theme-toggle-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-main); }
[data-theme="light"] .theme-toggle-btn:hover { background: rgba(0,0,0,0.06); }

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow: hidden; /* 防止全局滚动，仅内部滚动 */
    font-weight: 300;
}

/* =========================================================================
   后台氛围光效
   ========================================================================= */
.ambient-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 50%, rgba(30, 58, 138, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(13, 148, 136, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* =========================================================================
   通用玻璃面板样式（极度高端）
   ========================================================================= */
.glass-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* =========================================================================
   整体结构网格
   ========================================================================= */
.app-container {
    display: flex;
    height: 100vh;
}

/* 侧边导航 */
.sidebar {
    width: 260px;
    min-width: 260px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    border-right: 1px solid var(--surface-border);
    transition: width var(--transition-smooth), min-width var(--transition-smooth), padding var(--transition-smooth);
    overflow: hidden;
    position: relative;
}

/* 折叠状态 */
.sidebar.collapsed {
    width: 64px;
    min-width: 64px;
    padding: 1.5rem 0.5rem;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .sidebar-footer span,
.sidebar.collapsed .system-status span {
    display: none;
}

.sidebar.collapsed .logo-area {
    justify-content: center;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.875rem;
}

.sidebar.collapsed .nav-item i {
    margin: 0;
    font-size: 1.2rem;
}

/* 侧边栏折叠按钮 */
.sidebar-toggle {
    position: absolute;
    top: 50%;
    right: -14px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    color: var(--text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    z-index: 10;
    transition: var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.sidebar-toggle:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--surface-border);
    overflow: visible;
}

#logo-dropdown {
    animation: fadeIn 0.15s ease-out;
}

.logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #2dd4bf);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--primary-glow);
}

.logo-text {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}
.logo-text span {
    color: var(--primary-color);
}

.nav-menu {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.15);
    box-shadow: inset 3px 0 0 var(--primary-color);
}

.sidebar-footer {
    padding-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
}
.status-dot {
    width: 8px; height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse 2s infinite;
}

/* 主区域 */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.top-header {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    border-bottom: 1px solid var(--surface-border);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-profile img {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    border: 2px solid var(--surface-border);
}

.view-container {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* =========================================================================
   组件系统
   ========================================================================= */

/* 按钮 */
.btn {
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-accent {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-success { background: #059669; color: white; }
.btn-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-icon {
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 0.5rem;
}

/* 输入框 */
input[type="text"], .custom-select {
    width: 100%;
    background: rgba(255,255,255,0.2);
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-family: inherit;
    outline: none;
    transition: var(--transition-fast);
}
input[type="text"]:focus, .custom-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }

/* =========================================================================
   各具体视图样式
   ========================================================================= */

/* Action Bar 通用 */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    border-radius: 8px;
    width: 400px;
}
.search-box input {
    border: none; background: transparent; box-shadow: none;
    padding: 0.75rem 0;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    padding: 1.5rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}
.project-title { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.5rem;}
.project-meta { font-size: 0.85rem; color: var(--text-muted); display: flex; justify-content: space-between;}
.project-status { margin-top: 1rem; display: inline-block; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; background: rgba(255,255,255,0.1); }

/* Materials View */
.stat-card {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    min-width: 200px;
}
.stat-num { font-size: 2rem; font-weight: 600; color: var(--primary-color); }

.upload-area {
    padding: 1.5rem 3rem;
    border-radius: 8px;
    border: 1px dashed var(--text-muted);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-grow: 1;
}
.upload-area:hover { border-color: var(--primary-color); background: rgba(59, 130, 246, 0.05); }
.upload-area i { font-size: 2rem; color: var(--primary-color); margin-bottom: 0.5rem;}

.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--surface-border);
}
.data-table th { font-weight: 500; color: var(--text-muted); font-size: 0.875rem;}

/* Compliance View */
.config-panel { padding: 1.5rem; border-radius: 12px; margin-bottom: 2rem; display: flex; gap: 2rem; align-items: flex-end;}
.config-panel .form-group { flex-grow: 1; display: flex; flex-direction: column; gap: 0.5rem; }

.audit-workspace {
    min-height: 400px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-muted);
    opacity: 0.7;
}
.empty-state .icon-ring {
    width: 80px; height: 80px; border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.2);
    display: grid; place-items: center; font-size: 2rem; margin-bottom: 1rem;
}

.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem;}

.issue-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--surface-border);
    border-left: 4px solid var(--danger-color);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}
.issue-card.compliant { border-left-color: var(--accent-color); }

/* =========================================================================
   实用工具与动画
   ========================================================================= */
.hidden { display: none !important; }

/* =========================================================================
   NProgress 自定义主题（适配暗色系）
   ========================================================================= */
#nprogress .bar {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    height: 3px;
    box-shadow: 0 0 10px var(--primary-glow);
}
#nprogress .peg {
    box-shadow: 0 0 14px var(--primary-color), 0 0 6px var(--accent-color);
}
#nprogress .spinner-icon {
    border-top-color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* =========================================================================
   骨架屏（Skeleton Loading）
   ========================================================================= */
.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: transparent !important;
}
.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: skeleton-shimmer 1.5s infinite;
}
.skeleton-text { height: 1em; margin-bottom: 0.5em; border-radius: 4px; }
.skeleton-text.w-80 { width: 80%; }
.skeleton-text.w-60 { width: 60%; }
.skeleton-text.w-40 { width: 40%; }
.skeleton-card {
    height: 120px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}
.skeleton-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
}
@keyframes skeleton-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn var(--transition-smooth) forwards; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* =========================================================================
   Modal & Toast
   ========================================================================= */
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; display: grid; place-items: center;}
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
.modal-content { position: relative; width: 450px; max-width: 90%; padding: 2rem; border-radius: 12px;}
.modal-content h3 { margin-bottom: 1.5rem; }
.modal-footer { margin-top: 2rem; display: flex; justify-content: flex-end; gap: 1rem; }

/* LLM 配置弹窗 footer：左侧验证按钮 + 右侧操作按钮，防重叠 */
.llm-config-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.llm-config-footer .btn-test-fetch-models {
    white-space: nowrap;
    flex-shrink: 0;
}
.llm-config-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 200; display: flex; flex-direction: column; gap: 0.5rem;}
.toast { background: var(--surface-glass); backdrop-filter: blur(12px); border: 1px solid var(--surface-border); padding: 1rem 1.5rem; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 0.75rem; transform: translateX(120%); transition: var(--transition-smooth); }
.toast.show { transform: translateX(0); }
.toast i { font-size: 1.25rem; }
.toast.success i { color: var(--accent-color); }
.toast.error i { color: var(--danger-color); }

.project-file-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--surface-border);
}

.file-info {
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-parsing-status {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: breathing 2s ease-in-out infinite;
}

@keyframes breathing {
    0% { opacity: 0.6; }
    50% { opacity: 1; text-shadow: 0 0 8px var(--primary-glow); }
    100% { opacity: 0.6; }
}


/* Fix native option styling in dark mode */
select option {
    background-color: var(--bg-base);
    color: var(--text-main);
    padding: 0.5rem;
}

/* =========================================================================
   响应式适配
   ========================================================================= */

/* 平板及小屏幕：自动折叠侧边栏 */
@media (max-width: 1024px) {
    .sidebar {
        width: 64px;
        min-width: 64px;
        padding: 1.5rem 0.5rem;
    }
    .sidebar .logo-text,
    .sidebar .nav-item span,
    .sidebar .sidebar-footer span,
    .sidebar .system-status span {
        display: none;
    }
    .sidebar .logo-area {
        justify-content: center;
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
    }
    .sidebar .nav-item {
        justify-content: center;
        padding: 0.875rem;
    }
    .sidebar .nav-item i {
        margin: 0;
        font-size: 1.2rem;
    }
    .sidebar-toggle {
        display: none;
    }
    .top-header {
        padding: 0 1rem;
    }
    .view-container {
        padding: 1rem;
    }
    .search-box {
        width: 240px;
    }
}

/* 手机屏幕：侧边栏变为覆盖层 */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 50;
        width: 260px;
        min-width: 260px;
        padding: 1.5rem 1rem;
        transform: translateX(-100%);
        transition: transform var(--transition-smooth);
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .sidebar .logo-text,
    .sidebar .nav-item span,
    .sidebar .sidebar-footer span,
    .sidebar .system-status span {
        display: inline;
    }
    .sidebar .logo-area {
        justify-content: flex-start;
        padding-bottom: 2rem;
        margin-bottom: 1rem;
    }
    .sidebar .nav-item {
        justify-content: flex-start;
        padding: 0.875rem 1rem;
    }
    .sidebar-toggle {
        display: none;
    }
    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 49;
    }
    .mobile-overlay.active {
        display: block;
    }
    .mobile-menu-btn {
        display: flex !important;
    }
    .top-header {
        padding: 0 0.8rem;
        height: 56px;
    }
    .view-container {
        padding: 0.8rem;
    }
    .search-box {
        width: 100%;
        max-width: 200px;
    }
    .llm-selector-group {
        display: none !important;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .qa-setup-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 移动端汉堡菜单按钮（默认隐藏，768px 以下显示） */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 6px;
}
.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* =========================================================================
   通知面板
   ========================================================================= */
/* ── 通知中心下拉面板 ── */
#notification-dropdown {
    box-shadow: 0 8px 30px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.15) !important;
}

#notification-list {
    display: flex;
    flex-direction: column;
}

/* ── 单条通知项 ── */
.notification-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem 0.65rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: default;
    transition: all 0.18s ease;
    gap: 2px;
}
.notification-item:hover {
    background: rgba(56,189,248,0.06);
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item .notif-title {
    font-size: 0.84rem;
    color: #e2e8f0;
    font-weight: 500;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.notification-item .notif-msg {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.42;
    padding-left: 1.25rem; /* 缩进与图标对齐 */
    word-break: break-word;
}
.notification-item .notif-time {
    font-size: 0.7rem;
    color: rgba(148,163,184,0.55);
    padding-left: 1.25rem;
    margin-top: 2px;
}

/* 未读状态：左侧蓝色竖条 + 加粗标题 */
.notification-item.unread {
    position: relative;
    background: rgba(56,189,248,0.04);
    border-left: 3px solid var(--primary-color);
    padding-left: calc(1rem - 3px); /* 抵消左边框宽度 */
}
.notification-item.unread::before {
    content: '';
    position: absolute;
    top: 0.72rem;
    right: 0.9rem;
    width: 7px;
    height: 7px;
    background: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}
.notification-item.unread .notif-title {
    color: #fff;
    font-weight: 600;
}

/* ── 通知面板响应式 ── */
@media (max-width: 768px) {
    #notification-dropdown {
        min-width: 280px !important;
        max-width: 320px !important;
        right: -0.3rem !important;
    }
    .notification-item .notif-msg,
    .notification-item .notif-time {
        padding-left: 1.1rem;
    }
}
@media (max-width: 480px) {
    #notification-dropdown {
        min-width: 260px !important;
        max-width: calc(100vw - 1.2rem) !important;
        right: -0.8rem !important;
    }
}
