/* ==========================================================================
   CodeVerse · DevDimension (uuo.cn) 样式系统
   关于“程序与前端学习”的 3D 酷炫个人网站
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. 全局设计令牌 (CSS Custom Properties & Color Systems)
   -------------------------------------------------------------------------- */
:root {
    /* 核心色彩系统 - 默认极客霓虹 (Neon Cyan / Electric Blue) */
    --accent-primary: #00f2fe;
    --accent-secondary: #4facfe;
    --accent-glow: rgba(0, 242, 254, 0.45);
    --accent-soft: rgba(0, 242, 254, 0.12);
    --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);

    /* 深色空间背景调色板 */
    --bg-space: #07090e;
    --bg-surface: rgba(13, 18, 30, 0.72);
    --bg-surface-elevated: rgba(18, 25, 42, 0.85);
    --bg-surface-card: rgba(15, 22, 38, 0.65);
    --bg-card-border: rgba(0, 242, 254, 0.18);
    --bg-card-border-hover: rgba(0, 242, 254, 0.55);

    /* 文本色系 */
    --text-primary: #f0f6fc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #38bdf8;

    /* 辅助功能色 */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-purple: #8b5cf6;

    /* 字体族系 */
    --font-heading: 'Orbitron', 'Noto Sans SC', sans-serif;
    --font-body: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'Fira Code', monospace;

    /* 空间与半径 */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* 动画阻尼 */
    --ease-cyber: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 主题覆盖：量子紫晶 (Violet) */
[data-theme="violet"] {
    --accent-primary: #a855f7;
    --accent-secondary: #ec4899;
    --accent-glow: rgba(168, 85, 247, 0.5);
    --accent-soft: rgba(168, 85, 247, 0.15);
    --accent-gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --bg-card-border: rgba(168, 85, 247, 0.22);
    --bg-card-border-hover: rgba(236, 72, 153, 0.6);
    --text-accent: #c084fc;
}

/* 主题覆盖：黑客矩阵 (Matrix Green) */
[data-theme="green"] {
    --accent-primary: #10b981;
    --accent-secondary: #06b6d4;
    --accent-glow: rgba(16, 185, 129, 0.5);
    --accent-soft: rgba(16, 185, 129, 0.15);
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --bg-card-border: rgba(16, 185, 129, 0.22);
    --bg-card-border-hover: rgba(16, 185, 129, 0.6);
    --text-accent: #34d399;
}

/* 主题覆盖：超新星炽金 (Supernova Gold) */
[data-theme="gold"] {
    --accent-primary: #f59e0b;
    --accent-secondary: #ef4444;
    --accent-glow: rgba(245, 158, 11, 0.5);
    --accent-soft: rgba(245, 158, 11, 0.15);
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --bg-card-border: rgba(245, 158, 11, 0.22);
    --bg-card-border-hover: rgba(245, 158, 11, 0.6);
    --text-accent: #fbbf24;
}

/* --------------------------------------------------------------------------
   02. 基础重置与全局排版
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-space);
    color: var(--text-primary);
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    background-color: var(--bg-space);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 优雅暗黑自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #080b12;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: var(--radius-full);
    border: 2px solid #080b12;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* 选中文本高亮 */
::selection {
    background: var(--accent-primary);
    color: #05070c;
}

/* --------------------------------------------------------------------------
   03. 3D WebGL 画布与环境光晕层
   -------------------------------------------------------------------------- */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: auto; /* 允许与 3D 场景直接进行交互 */
    opacity: 0.95;
}

/* 环境漫射光晕与微光背景 */
.ambient-glow {
    position: fixed;
    top: -20vh;
    left: 20vw;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(140px);
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
    transition: background 0.8s ease;
}

/* 赛博网格点阵底纹 */
.cyber-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
}

/* --------------------------------------------------------------------------
   04. 顶部导航系统 (Glassmorphic Navigation Bar)
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 32px;
    transition: all 0.4s ease;
}

.site-header.scrolled {
    padding: 12px 32px;
    background: rgba(7, 10, 18, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 品牌 Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-symbol {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(18, 25, 42, 0.9);
    border: 1px solid var(--bg-card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 0 15px var(--accent-soft);
    transition: all var(--transition-normal);
}

.logo-symbol .symbol-bracket {
    color: var(--accent-primary);
}
.logo-symbol .symbol-core {
    color: #fff;
    margin: 0 1px;
}
.logo-symbol .symbol-slash {
    color: var(--accent-secondary);
}

.brand-logo:hover .logo-symbol {
    transform: rotate(6deg) scale(1.05);
    box-shadow: 0 0 25px var(--accent-glow);
    border-color: var(--accent-primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1.5px;
    color: #ffffff;
}

.brand-domain {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* 导航链接 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(14px);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-num {
    font-family: var(--font-code);
    font-size: 10px;
    opacity: 0.6;
    color: var(--accent-primary);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #fff;
    background: var(--accent-soft);
    border: 1px solid var(--accent-glow);
    box-shadow: 0 0 12px var(--accent-soft);
}

/* 顶部右侧系统控制 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hud-pill-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 20, 36, 0.8);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.hud-pill-btn:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 18px var(--accent-glow);
    transform: translateY(-1px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
    animation: radarPulse 2s infinite ease-out;
}

@keyframes radarPulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(0.9); opacity: 1; }
}

.icon-link-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.icon-link-btn:hover {
    color: #fff;
    border-color: var(--accent-primary);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   05. 页面主体包装与通用章节设计
   -------------------------------------------------------------------------- */
.page-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 统一章节标题设计 */
.section-header {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
}

.section-tag {
    font-family: var(--font-code);
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 12px;
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-soft);
    border-radius: var(--radius-full);
    border: 1px solid var(--bg-card-border);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-bottom: 14px;
}

.section-desc {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 渐变文字效果 */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* 通用按钮系统 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #040810;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    background: rgba(18, 26, 45, 0.85);
    color: var(--text-primary);
    border: 1px solid var(--bg-card-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(22, 33, 56, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
    color: #fff;
    border-color: var(--accent-primary);
    background: var(--accent-soft);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   06. 01 HERO 区域样式
   -------------------------------------------------------------------------- */
.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 60px;
}

.hero-content {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--bg-card-border);
    backdrop-filter: blur(12px);
    margin-bottom: 24px;
}

.badge-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
}

.badge-text {
    font-size: 12px;
    font-family: var(--font-code);
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.badge-code {
    font-size: 10px;
    font-family: var(--font-code);
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--accent-soft);
    color: var(--accent-primary);
    font-weight: 700;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 22px;
    color: #ffffff;
    text-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 760px;
    line-height: 1.7;
    margin-bottom: 38px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
}

/* 研习核心数据卡片 */
.hero-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 860px;
    margin-bottom: 40px;
}

.metric-card {
    background: rgba(13, 20, 36, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    transition: all var(--transition-normal);
}

.metric-card:hover {
    border-color: var(--accent-primary);
    background: rgba(18, 28, 50, 0.8);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-soft);
}

.metric-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.metric-unit {
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.metric-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 下滑指引器 */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-family: var(--font-code);
    letter-spacing: 2px;
    margin-top: 10px;
    transition: color var(--transition-fast);
}

.scroll-indicator:hover {
    color: var(--accent-primary);
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
}

.scroll-wheel {
    width: 3px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    animation: mouseScroll 1.8s infinite ease-in-out;
}

@keyframes mouseScroll {
    0% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* --------------------------------------------------------------------------
   07. 02 技能宇宙与知识矩阵 (SKILLS MATRIX)
   -------------------------------------------------------------------------- */
.section-skills {
    padding: 100px 0;
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
}

/* 3D 悬浮倾斜卡片 */
.tilt-card {
    position: relative;
    background: var(--bg-surface-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform 0.15s ease-out;
    transform-style: preserve-3d;
    overflow: hidden;
}

.tilt-card:hover {
    border-color: var(--bg-card-border-hover);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px var(--accent-soft);
}

.highlight-card {
    background: linear-gradient(135deg, rgba(20, 30, 56, 0.75), rgba(13, 20, 36, 0.75));
    border-color: var(--accent-primary);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0.6;
}

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

.card-idx {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.12);
}

.card-badge {
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    color: var(--accent-primary);
    letter-spacing: 1px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.card-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 22px;
}

/* 技术标签池 */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    font-family: var(--font-code);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tilt-card:hover .tag {
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
}

/* 熟练度可视化条 */
.mastery-bar {
    margin-top: auto;
}

.mastery-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.mastery-val {
    font-family: var(--font-code);
    color: var(--accent-primary);
    font-weight: 600;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    width: var(--val);
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px var(--accent-primary);
    transition: width 1.2s ease-out;
}

/* --------------------------------------------------------------------------
   08. 03 前端成长进化航图 (ROADMAP)
   -------------------------------------------------------------------------- */
.section-roadmap {
    padding: 100px 0;
    position: relative;
}

.roadmap-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.roadmap-tab {
    padding: 10px 22px;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.roadmap-tab:hover {
    color: #fff;
    border-color: var(--accent-primary);
    background: rgba(20, 30, 54, 0.85);
}

.roadmap-tab.active {
    color: #fff;
    background: var(--accent-soft);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-soft);
}

/* 阶段卡片 */
.stage-panel {
    display: none;
    animation: fadeInStage 0.4s ease forwards;
}

.stage-panel.active {
    display: block;
}

@keyframes fadeInStage {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.stage-overview {
    background: rgba(13, 19, 34, 0.75);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 32px;
    backdrop-filter: blur(14px);
}

.stage-badge {
    font-family: var(--font-code);
    font-size: 12px;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.stage-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.stage-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 阶段里程碑步骤 */
.stage-milestones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.milestone-item {
    background: var(--bg-surface-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 18px;
    transition: all var(--transition-normal);
}

.milestone-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.m-point {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-code);
    font-weight: 700;
}

.m-content h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.m-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.m-tips {
    font-size: 12px;
    color: var(--text-accent);
    background: rgba(56, 189, 248, 0.08);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--text-accent);
}

/* --------------------------------------------------------------------------
   09. 04 3D 实验室与前沿视觉 DEMO (LABS)
   -------------------------------------------------------------------------- */
.section-labs {
    padding: 100px 0;
    position: relative;
}

.labs-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.lab-card {
    background: var(--bg-surface-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.lab-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-soft);
}

.lab-preview-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background: #090e1a;
    overflow: hidden;
}

.lab-canvas-mini {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mini-hud-tag {
    position: absolute;
    top: 12px;
    left: 14px;
    font-family: var(--font-code);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 8px;
    border-radius: 4px;
}

.live-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    font-family: var(--font-code);
    font-size: 10px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.6);
    color: var(--color-success);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 6px var(--color-success);
}

/* 模拟实验室卡片内的动态几何与微动效 */
.lab-abstract-art {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    position: relative;
}

.art-quantum {
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 60%);
    box-shadow: 0 0 35px var(--accent-glow);
    animation: rotateArt 8s infinite linear;
}

.art-quantum::after {
    content: '';
    position: absolute;
    inset: -15px;
    border: 1px dashed var(--accent-primary);
    border-radius: 50%;
    animation: rotateArtReverse 12s infinite linear;
}

.art-crystal {
    border-radius: 18px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.8;
    transform: rotate(45deg);
    box-shadow: 0 0 30px var(--accent-glow);
    animation: pulseCrystal 4s infinite ease-in-out;
}

.art-cybergrid {
    background: repeating-linear-gradient(0deg, var(--accent-primary) 0px, var(--accent-primary) 1px, transparent 1px, transparent 14px),
                repeating-linear-gradient(90deg, var(--accent-secondary) 0px, var(--accent-secondary) 1px, transparent 1px, transparent 14px);
    opacity: 0.6;
    border-radius: 8px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
    animation: floatGrid 6s infinite ease-in-out;
}

@keyframes rotateArt {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateArtReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes pulseCrystal {
    0%, 100% { transform: rotate(45deg) scale(0.9); }
    50% { transform: rotate(225deg) scale(1.05); }
}

@keyframes floatGrid {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.lab-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lab-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.lab-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.lab-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lab-tech {
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--text-muted);
}

.lab-action-btn {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lab-action-btn:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   10. 05 深度硬核技术笔记专栏 (ARTICLES)
   -------------------------------------------------------------------------- */
.section-articles {
    padding: 100px 0;
    position: relative;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 1080px;
    margin: 0 auto;
}

.article-item {
    background: var(--bg-surface-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.article-item:hover {
    border-color: var(--accent-primary);
    background: rgba(18, 28, 50, 0.75);
    transform: translateX(8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.article-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding-right: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.d-day {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.d-month {
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--accent-primary);
    margin-top: 4px;
}

.article-content {
    flex: 1;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tag-cyan {
    background: rgba(0, 242, 254, 0.1);
    color: #00f2fe;
    border-color: rgba(0, 242, 254, 0.3);
}

.tag-purple {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.3);
}

.tag-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.tag-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.tag-reading {
    font-size: 11px;
    color: var(--text-muted);
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.article-link {
    color: #ffffff;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.article-item:hover .article-link {
    color: var(--accent-primary);
}

.article-excerpt {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.article-arrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.article-item:hover .article-arrow {
    color: var(--accent-primary);
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   11. 06 极客交互终端控制台 (TERMINAL REPL)
   -------------------------------------------------------------------------- */
.section-terminal {
    padding: 100px 0 120px;
    position: relative;
}

.terminal-box {
    max-width: 980px;
    margin: 0 auto;
    background: #090d16;
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px var(--accent-soft);
    display: flex;
    flex-direction: column;
}

.terminal-bar {
    background: #0f172a;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-code);
    font-size: 12px;
    color: var(--text-secondary);
}

.terminal-status {
    font-family: var(--font-code);
    font-size: 10px;
    color: var(--color-success);
    font-weight: 700;
}

.terminal-body {
    padding: 24px;
    min-height: 280px;
    max-height: 460px;
    overflow-y: auto;
    font-family: var(--font-code);
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.6;
}

.ascii-banner {
    color: var(--accent-primary);
    font-size: 11px;
    line-height: 1.15;
    margin-bottom: 12px;
    overflow-x: auto;
}

.term-greet {
    margin-bottom: 6px;
    color: #ffffff;
}

.term-tip {
    color: var(--text-secondary);
}

.cmd-highlight {
    color: var(--accent-primary);
    font-weight: 700;
}

.term-entry {
    margin: 8px 0;
}

.term-cmd {
    color: var(--text-primary);
    font-weight: 600;
}

.term-res {
    color: var(--text-secondary);
    margin-top: 4px;
    white-space: pre-wrap;
}

.term-res-success {
    color: var(--accent-primary);
}

/* 终端输入行 */
.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #0a0f1c;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.prompt-symbol {
    font-family: var(--font-code);
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 700;
    white-space: nowrap;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-code);
    font-size: 13px;
    color: #ffffff;
}

.terminal-input::placeholder {
    color: #475569;
}

/* 快捷操作栏 */
.quick-commands {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 24px 14px;
    background: #0a0f1c;
}

.quick-lbl {
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--text-muted);
}

.quick-btn {
    font-family: var(--font-code);
    font-size: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-btn:hover {
    color: #fff;
    border-color: var(--accent-primary);
    background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   12. 07 3D 视觉引擎中控面板 (TUNER PANEL HUD)
   -------------------------------------------------------------------------- */
.tuner-panel {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 330px;
    background: rgba(10, 15, 28, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 25px var(--accent-soft);
    z-index: 1200;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpTuner 0.35s var(--ease-cyber) forwards;
}

.tuner-panel.open {
    display: flex;
}

@keyframes slideUpTuner {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.tuner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tuner-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.tuner-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
}

.tuner-close:hover {
    color: #fff;
}

.tuner-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 监视仪表 */
.hud-monitor {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mon-lbl {
    font-size: 10px;
    color: var(--text-muted);
}

.mon-val {
    font-family: var(--font-code);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-primary);
}

.tuner-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 颜色选择色块 */
.theme-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.theme-swatch {
    padding: 6px 0;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--c1), var(--c2));
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    transition: all var(--transition-fast);
}

.theme-swatch.active {
    border-color: #ffffff;
    box-shadow: 0 0 10px #ffffff;
    transform: scale(1.05);
}

/* 核心形态切换按键 */
.core-shapes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.shape-btn {
    font-size: 11px;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.shape-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.shape-btn.active {
    color: #000;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    font-weight: 700;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* 滑动条控制 */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-val {
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--accent-primary);
}

.tuner-slider {
    width: 100%;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   13. 底部版权与状态栏 (SITE FOOTER)
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    z-index: 10;
    padding: 36px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 10, 18, 0.85);
    backdrop-filter: blur(16px);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.status-radar {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
    animation: radarPulse 1.8s infinite;
}

.status-msg {
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-copyright strong {
    color: #ffffff;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: all var(--transition-fast);
}

.back-to-top:hover {
    color: #fff;
    border-color: var(--accent-primary);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   14. 响应式适配媒体查询 (RESPONSIVE STYLES)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .article-date {
        flex-direction: row;
        gap: 12px;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 12px;
        width: 100%;
    }
    .d-day {
        font-size: 1.5rem;
    }
    .article-arrow {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 12px 18px;
    }
    .nav-menu {
        display: none; /* 移动端精简顶部显示 */
    }
    .section-hero {
        padding: 100px 18px 40px;
    }
    .hero-metrics-grid {
        grid-template-columns: 1fr;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .tuner-panel {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   15. 无障碍减弱动态效果 (A11Y PREFERS-REDUCED-MOTION)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    #webgl-canvas {
        opacity: 0.5;
    }
}
