:root {
    /* 基础暗黑体系 */
    --bg-base: #0b0d16;
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.72);
    --text-outline-strong: -1px 0 0 rgba(0, 0, 0, 0.88), 1px 0 0 rgba(0, 0, 0, 0.88), 0 -1px 0 rgba(0, 0, 0, 0.88), 0 1px 0 rgba(0, 0, 0, 0.88), -2px 0 0 rgba(0, 0, 0, 0.48), 2px 0 0 rgba(0, 0, 0, 0.48), 0 -2px 0 rgba(0, 0, 0, 0.48), 0 2px 0 rgba(0, 0, 0, 0.48), 0 3px 12px rgba(0, 0, 0, 0.46);
    
    /* V2 极客高亮色 */
    --accent-primary: rgba(255, 255, 255, 0.96);
    --accent-secondary: rgba(255, 194, 224, 0.92);
    --accent-cyan: rgba(194, 234, 255, 0.96);
    
    /* V1 毛玻璃体系 */
    --glass-bg: rgba(255, 255, 255, 0.035);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 10px 32px 0 rgba(8, 14, 30, 0.14);
    --liquid-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06) 34%, rgba(255, 255, 255, 0.025) 70%, rgba(255, 255, 255, 0.01) 100%);
    --liquid-surface: rgba(255, 255, 255, 0.025);
    --liquid-border: rgba(255, 255, 255, 0.14);
    --liquid-highlight: rgba(255, 255, 255, 0.16);
    --liquid-shadow: 0 12px 42px rgba(11, 18, 32, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
    --liquid-glow: 0 0 0 1px rgba(255, 255, 255, 0.045);
    
    /* 网格 */
    --grid-color: rgba(255, 255, 255, 0.018);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--bg-base);
    background-image: linear-gradient(135deg, rgba(98, 54, 168, 0.3), rgba(255, 72, 128, 0.22)), linear-gradient(rgba(8, 10, 18, 0.14), rgba(12, 14, 24, 0.24)), url('../images/site-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    text-shadow: var(--text-outline-strong);
}

button,
input,
textarea,
select,
option {
    font: inherit;
    color: inherit;
    text-shadow: inherit;
}

/* V1: 环境光漫反射 (底层) */
.ambient-light {
    position: fixed; inset: 0; z-index: -3; overflow: hidden;
}
.blob {
    position: absolute; filter: blur(130px); opacity: 0.5; border-radius: 50%;
    animation: pulse 15s infinite alternate;
}
.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: rgba(112, 56, 255, 0.82); }
.blob-2 { bottom: -20%; right: -10%; width: 60vw; height: 60vw; background: rgba(255, 0, 85, 0.72); animation-delay: -5s; }

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(5%, 5%); }
}

/* V2: 动态透视网格 (中层) */
.cyber-grid {
    position: fixed; inset: 0; z-index: -2;
    background-image: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 20%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 20%, transparent 100%);
    animation: gridMove 15s linear infinite;
    opacity: 0.08;
}
@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(30px); }
}

/* 终端等宽字体通用类 */
.mono { font-family: 'Fira Code', monospace; }

/* 核心布局 */
.layout-wrapper {
    display: flex; width: 100%; max-width: 1500px;
    gap: 32px; padding: 32px 40px;
}

/* 通用毛玻璃面板 */
.glass-panel,
.liquid-glass,
.liquid-glass-card,
.metric-card,
.post-card,
.category-card,
.quick-card,
.archive-card,
.about-card,
.timeline-card,
.profile-card,
.bullet-item,
.timeline-entry,
.list-row,
.stat-item,
.mini-stat,
.category-item,
.link-item,
.check-item,
.preview-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--liquid-bg);
    background-color: var(--glass-bg);
    border: 1px solid var(--liquid-border);
    box-shadow: var(--liquid-shadow), var(--liquid-glow);
}

.glass-panel,
.liquid-glass,
.liquid-glass-card {
    border-radius: 28px;
}

.glass-panel::before,
.liquid-glass::before,
.liquid-glass-card::before,
.metric-card::before,
.post-card::before,
.category-card::before,
.quick-card::before,
.archive-card::before,
.about-card::before,
.timeline-card::before,
.profile-card::before,
.bullet-item::before,
.timeline-entry::before,
.list-row::before,
.stat-item::before,
.mini-stat::before,
.category-item::before,
.link-item::before,
.check-item::before,
.preview-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05) 22%, rgba(255, 255, 255, 0.015) 52%, rgba(255, 255, 255, 0.03));
    opacity: 0.78;
    pointer-events: none;
    z-index: -1;
}

.glass-panel::after,
.liquid-glass::after,
.liquid-glass-card::after,
.metric-card::after,
.post-card::after,
.category-card::after,
.quick-card::after,
.archive-card::after,
.about-card::after,
.timeline-card::after,
.profile-card::after,
.bullet-item::after,
.timeline-entry::after,
.list-row::after,
.stat-item::after,
.mini-stat::after,
.category-item::after,
.link-item::after,
.check-item::after,
.preview-card::after {
    content: "";
    position: absolute;
    top: -14%;
    left: 2%;
    width: 44%;
    height: 30%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 46%, rgba(255, 255, 255, 0) 78%);
    filter: blur(12px);
    opacity: 0.62;
    pointer-events: none;
    z-index: -1;
}

.glass-panel:hover,
.liquid-glass:hover,
.liquid-glass-card:hover,
.metric-card:hover,
.post-card:hover,
.category-card:hover,
.quick-card:hover,
.archive-card:hover,
.about-card:hover,
.timeline-card:hover,
.profile-card:hover,
.bullet-item:hover,
.timeline-entry:hover,
.list-row:hover,
.stat-item:hover,
.mini-stat:hover,
.category-item:hover,
.link-item:hover,
.check-item:hover,
.preview-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 34px rgba(11, 18, 32, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* 侧边栏 */
.sidebar {
    width: 280px; flex-shrink: 0;
    padding: 32px 24px; display: flex; flex-direction: column;
    height: calc(100vh - 64px); position: sticky; top: 32px;
}

.user-profile { margin-bottom: 40px; display: flex; align-items: center; gap: 16px; }

.avatar {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 900; border-radius: 18px;
    box-shadow: 0 10px 24px rgba(9, 16, 28, 0.18);
    transition: transform 0.3s ease;
}
.avatar img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 18px;
}
.avatar:hover { transform: translateY(-2px) scale(1.03); }

.user-info h1 { font-size: 20px; font-weight: 900; letter-spacing: 1px; }
.user-info p {
    font-size: 12px; color: var(--accent-primary);
    margin-top: 4px; font-weight: 600;
}

/* 导航菜单 - 融合V2的强对比反馈 */
.nav-menu { list-style: none; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }

.nav-menu li a {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    color: var(--text-dim); text-decoration: none; border-radius: 10px;
    font-size: 14px; font-weight: 600; letter-spacing: 0.5px;
    transition: all 0.2s ease; border: 1px solid transparent;
}
.nav-menu li a i { font-size: 20px; }

.nav-menu li a:hover, .nav-menu li a.active {
    background: rgba(255, 255, 255, 0.08); color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-menu li a.active {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* 主内容区 */
.main-content { flex: 1; display: flex; flex-direction: column; gap: 32px; min-width: 0; }

/* 顶部命令栏 */
.top-header {
    padding: 24px 32px; display: flex; justify-content: space-between; align-items: center;
}

.cmd-search {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255, 255, 255, 0.065); padding: 12px 20px;
    border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.1);
    width: 350px; color: var(--accent-primary);
}
.cmd-search input {
    background: transparent; border: none; outline: none;
    color: var(--text-main); font-size: 14px; width: 100%;
}
.cmd-search input::placeholder { color: var(--text-dim); }

.header-actions { display: flex; gap: 16px; color: var(--text-dim); }
.header-actions i { font-size: 24px; cursor: pointer; transition: color 0.2s; }
.header-actions i:hover { color: rgba(255, 255, 255, 0.92); }

/* 内容网格 - 融合体 */
.grid-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px;
}

.sys-card {
    padding: 32px; display: flex; flex-direction: column; position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s;
    cursor: pointer; overflow: hidden;
}

/* 悬浮交互：轻微上浮 + 荧光边框点亮 */
.sys-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.045);
}

.card-icon {
    width: 48px; height: 48px; border-radius: 16px;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--text-main); margin-bottom: 20px;
    transition: all 0.3s ease;
}
.sys-card:hover .card-icon {
    color: var(--text-main); background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.16);
}

.card-title { font-size: 20px; font-weight: 800; margin-bottom: 12px; letter-spacing: 0.5px; }
.card-desc { color: var(--text-dim); font-size: 14px; line-height: 1.6; font-weight: 400; flex-grow: 1; }

/* V2的硬核底层数据栏 */
.card-meta {
    margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--glass-border);
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: var(--text-dim);
}

.status-indicator { display: flex; align-items: center; gap: 8px; color: var(--text-main); font-weight: 600; }
.status-dot {
    display: block; width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.88); box-shadow: 0 0 8px rgba(255, 255, 255, 0.32);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 48px 32px;
    text-align: center;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.empty-state p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 1024px) {
    .layout-wrapper { flex-direction: column; padding: 24px; }
    .sidebar { width: 100%; height: auto; position: relative; top: 0; padding: 24px; }
    .nav-menu { flex-direction: row; flex-wrap: wrap; }
    .nav-menu li { flex: 1 1 150px; }
    .cmd-search { width: 100%; }
}
