/* ============================================================
   个性化深色主题覆盖层(2026-08-06)
   深空蓝紫渐变 + 星空点缀 + 玻璃拟态 + 霓虹蓝紫主色
   引用于 index.html,删除 link 即可还原原主题
   ============================================================ */

/* 页面背景:深空蓝紫渐变 + 星空 + 光晕(全部并入 body,无独立覆盖层) */
body {
    color: #e2e8f0;
    background-image:
        radial-gradient(1px 1px at 30px 40px, rgba(255,255,255,0.55) 50%, transparent 50%),
        radial-gradient(1px 1px at 140px 90px, rgba(255,255,255,0.4) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 260px 45px, rgba(186,230,253,0.5) 50%, transparent 50%),
        radial-gradient(1px 1px at 390px 150px, rgba(255,255,255,0.3) 50%, transparent 50%),
        radial-gradient(1px 1px at 520px 75px, rgba(196,181,253,0.5) 50%, transparent 50%),
        radial-gradient(1px 1px at 90px 220px, rgba(255,255,255,0.35) 50%, transparent 50%),
        radial-gradient(1px 1px at 630px 190px, rgba(255,255,255,0.45) 50%, transparent 50%),
        radial-gradient(1px 1px at 720px 270px, rgba(125,211,252,0.4) 50%, transparent 50%),
        radial-gradient(ellipse at 15% 0%, rgba(56, 189, 248, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 15%, rgba(139, 92, 246, 0.20) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 110%, rgba(14, 165, 233, 0.12) 0%, transparent 60%),
        linear-gradient(160deg, #0b1120 0%, #141b31 45%, #1c1038 100%);
    background-attachment: fixed;
}

/* 玻璃拟态:所有面板统一深色玻璃 */
.nav-sidebar, .header, .search-bar, .group, .link-card, .modal-content {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* 侧边栏 */
.nav-title { color: #f1f5f9; border-bottom-color: rgba(255,255,255,0.15); }
.nav-item { color: #a5b4fc; }
.nav-item:hover { background: rgba(255,255,255,0.10); color: #e0e7ff; }
.nav-item.active { background: rgba(56,189,248,0.18); color: #7dd3fc; }

/* 头部与搜索 */
.header h1, .header h2, .header h3, .header p, .header span, .header strong { color: #f1f5f9; }
.search-icon { color: #94a3b8; }
.search-bar:focus-within .search-icon { color: #38bdf8; }
.search-bar input, .search-bar select {
    background: rgba(255,255,255,0.05);
    color: #e2e8f0;
    border-color: rgba(255,255,255,0.15);
}
.search-bar input::placeholder { color: #64748b; }
.search-bar input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56,189,248,0.25);
}
.search-bar select { background-color: rgba(255,255,255,0.05); color: #e2e8f0; }
.search-bar select option { background: #1e293b; color: #e2e8f0; }
.search-bar::after { color: #94a3b8; }

/* 分组 */
.group-title { border-bottom-color: rgba(255,255,255,0.12); }
.group-title-left { color: #f1f5f9; }
.group-title::after { background: linear-gradient(90deg, #38bdf8, #8b5cf6); }
.group-privacy-icon { color: #94a3b8; }
.group::before {
    background: linear-gradient(135deg, rgba(56,189,248,0.14) 0%, rgba(139,92,246,0.07) 100%);
}

/* 链接卡片 */
.link-title { color: #f1f5f9; }
.link-description { color: #94a3b8; }
.link-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56,189,248,0.45);
    box-shadow: 0 14px 36px rgba(0,0,0,0.5), 0 0 24px rgba(56,189,248,0.10);
}
.link-icon { background: rgba(255,255,255,0.10); }
.link-url-tooltip { background: rgba(2, 6, 23, 0.9); color: #e2e8f0; }

/* 操作按钮 */
.link-actions button { background: rgba(255,255,255,0.12); color: #cbd5e1; }
.link-actions button:hover { background: rgba(56,189,248,0.28); color: #ffffff; }
.group-actions button { background: rgba(255,255,255,0.10); color: #cbd5e1; }
.group-actions button:hover { background: rgba(255,255,255,0.18); color: #f8fafc; }
.group-title button { background: rgba(56,189,248,0.85); color: #0b1120; }
.group-title button:hover { background: #38bdf8; }

/* 模态框 */
.modal { background-color: rgba(2, 6, 23, 0.78); }
.modal-content { background: rgba(15, 23, 42, 0.94); }
.modal-content h2 { color: #f1f5f9; border-bottom-color: rgba(255,255,255,0.15); }
.modal-content h2::after { background: linear-gradient(90deg, #38bdf8, #8b5cf6); }
.modal input, .modal textarea, .modal select {
    background: rgba(255,255,255,0.07);
    color: #e2e8f0;
    border-color: rgba(255,255,255,0.20);
}
.modal input:focus, .modal textarea:focus, .modal select:focus {
    border-color: #38bdf8;
    background: rgba(255,255,255,0.10);
    box-shadow: 0 0 0 3px rgba(56,189,248,0.20);
}
.modal label { color: #a5b4fc; }
.modal button[type="submit"] { background: linear-gradient(135deg, #38bdf8, #8b5cf6); }
.modal button[type="submit"]:hover { box-shadow: 0 4px 18px rgba(56,189,248,0.35); }

/* 关闭按钮 */
.close { background: linear-gradient(135deg, #38bdf8, #8b5cf6); }
.close:hover { background: linear-gradient(135deg, #22d3ee, #7c3aed); }

/* 管理员按钮 */
.admin-button, .admin-controls button { background: linear-gradient(135deg, #38bdf8, #8b5cf6); }
.admin-button[onclick*="handleLogout"] { background: #e53e3e; }
.admin-button[onclick*="handleLogout"]:hover { background: #c53030; }
.admin-button[onclick*="exitEditMode"] { background: #64748b; }
.admin-button[onclick*="exitEditMode"]:hover { background: #475569; }
.admin-button:hover, .admin-controls button:hover { box-shadow: 0 4px 16px rgba(56,189,248,0.3); }

/* 加载动画 */
.loading { color: #94a3b8; }
.loading-wave div { border-color: #38bdf8; }
.nav-loading-dot { background: #38bdf8; }
@keyframes navLoadingBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); background: #8b5cf6; }
}

/* GitHub 链接 */
.github-link { color: #94a3b8; }
.github-link:hover { color: #f1f5f9; background: rgba(255,255,255,0.10); }

/* 滚动条适配深色 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(56,189,248,0.6); }
