        :root {
            --bg-primary: #0a0a0f;
            --bg-terminal: #050508;
            --neon-green: #00ff41;
            --neon-cyan: #00e5ff;
            --neon-purple: #b026ff;
            --neon-red: #ff0040;
            --neon-yellow: #ffcc00;
            --text-primary: #e0e0e0;
            --text-secondary: #888888;
            --text-dim: #444444;
            --border-glow: rgba(0, 255, 65, 0.3);
            --border-glow-cyan: rgba(0, 229, 255, 0.3);
            --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
            --font-display: 'Orbitron', 'JetBrains Mono', sans-serif;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        html {
            scroll-behavior: smooth;
            scrollbar-width: thin;
            scrollbar-color: var(--neon-green) var(--bg-primary);
        }
        body {
            font-family: var(--font-mono);
            background-color: var(--bg-primary);
            color: var(--text-primary);
            overflow-x: hidden;
            min-height: 100vh;
            cursor: default;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: var(--bg-primary);
        }
        ::-webkit-scrollbar-thumb {
            background: var(--neon-green);
            border-radius: 3px;
            box-shadow: 0 0 10px var(--neon-green);
        }
        #matrix-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
            opacity: 0.55;
        }
        #particle-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            pointer-events: none;
            opacity: 0.7;
        }
        .scanlines-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2;
            pointer-events: none;
            background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.15) 2px, rgba(0, 0, 0, 0.15) 4px);
            opacity: 0.06;
        }
        .crt-flicker {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2;
            pointer-events: none;
            background: rgba(0, 255, 65, 0.02);
            animation: crtFlicker 0.15s infinite alternate;
        }
        @keyframes crtFlicker {
            0% {
                opacity: 0.5;
            }
            50% {
                opacity: 1;
            }
            100% {
                opacity: 0.7;
            }
        }
        #boot-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1000;
            background: var(--bg-terminal);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: opacity 0.6s ease, visibility 0.6s ease;
        }
        #boot-screen.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        .boot-logo {
            font-family: var(--font-display);
            font-size: clamp(1.2rem, 4vw, 2.2rem);
            color: var(--neon-green);
            text-shadow: 0 0 20px var(--neon-green), 0 0 40px var(--neon-green);
            animation: bootPulse 1s ease-in-out infinite;
            letter-spacing: 6px;
            margin-bottom: 15px;
            text-align: center;
            padding: 0 10px;
        }
        @keyframes bootPulse {
            0%,
            100% {
                text-shadow: 0 0 20px var(--neon-green), 0 0 40px var(--neon-green);
            }
            50% {
                text-shadow: 0 0 40px var(--neon-green), 0 0 80px var(--neon-green), 0 0 120px var(--neon-green);
            }
        }
        .boot-log {
            font-size: 0.65rem;
            color: var(--neon-cyan);
            text-align: left;
            width: 85%;
            max-width: 480px;
            min-height: 60px;
            max-height: 140px;
            line-height: 1.6;
            overflow-y: auto;
            padding: 0 8px;
        }
        .boot-log .log-line {
            opacity: 0;
            animation: logAppear 0.03s forwards;
        }
        .boot-log .log-line.success {
            color: var(--neon-green);
        }
        .boot-log .log-line.highlight {
            color: var(--neon-purple);
            font-weight: bold;
        }
        @keyframes logAppear {
            to {
                opacity: 1;
            }
        }
        .boot-progress {
            width: 80%;
            max-width: 480px;
            height: 4px;
            background: #1a1a2a;
            border-radius: 2px;
            margin-top: 12px;
            overflow: hidden;
        }
        .boot-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
            box-shadow: 0 0 15px var(--neon-green);
            border-radius: 2px;
            transition: width 0.3s ease;
            width: 0%;
        }
        .main-content {
            position: relative;
            z-index: 3;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        .navbar {
            position: sticky;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            background: rgba(10, 10, 15, 0.9);
            border-bottom: 1px solid var(--border-glow);
            padding: 0 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 55px;
            box-shadow: 0 0 30px rgba(0, 255, 65, 0.05);
        }
        .navbar-logo {
            font-family: var(--font-display);
            font-size: 1rem;
            color: var(--neon-green);
            text-shadow: 0 0 15px var(--neon-green);
            letter-spacing: 2px;
            user-select: none;
        }
        .navbar-logo .cursor {
            display: inline-block;
            width: 6px;
            height: 14px;
            background: var(--neon-green);
            animation: blink 1s step-end infinite;
            vertical-align: middle;
            margin-left: 3px;
        }
        @keyframes blink {
            0%,
            100% {
                opacity: 1;
            }
            50% {
                opacity: 0;
            }
        }
        .navbar-links {
            display: flex;
            gap: 4px;
            list-style: none;
            flex-wrap: wrap;
        }
        .navbar-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.7rem;
            padding: 5px 8px;
            border: 1px solid transparent;
            border-radius: 4px;
            transition: all 0.3s ease;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }
        .navbar-links a:hover,
        .navbar-links a.active {
            color: var(--neon-green);
            border-color: var(--border-glow);
            text-shadow: 0 0 10px var(--neon-green);
        }
        .navbar-hamburger {
            display: none;
            flex-direction: column;
            gap: 4px;
            cursor: pointer;
            padding: 5px;
            background: none;
            border: none;
        }
        .navbar-hamburger span {
            display: block;
            width: 22px;
            height: 2px;
            background: var(--neon-green);
            box-shadow: 0 0 8px var(--neon-green);
            border-radius: 1px;
        }
        .section {
            padding: 50px 0;
            position: relative;
        }
        .section-title {
            font-family: var(--font-display);
            font-size: clamp(1.2rem, 4vw, 2rem);
            color: var(--neon-green);
            text-shadow: 0 0 20px var(--neon-green), 0 0 40px rgba(0, 255, 65, 0.4);
            letter-spacing: 3px;
            margin-bottom: 8px;
            position: relative;
            display: inline-block;
        }
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, var(--neon-green), transparent);
            box-shadow: 0 0 15px var(--neon-green);
        }
        .section-subtitle {
            color: var(--text-secondary);
            font-size: 0.75rem;
            margin-bottom: 30px;
            letter-spacing: 1px;
            margin-top: 8px;
        }
        #hero {
            min-height: calc(100vh - 55px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
            padding-top: 20px;
        }
        .hero-title {
            font-family: var(--font-display);
            font-size: clamp(1.8rem, 7vw, 4rem);
            font-weight: 900;
            color: #fff;
            letter-spacing: 4px;
            text-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
            margin-bottom: 10px;
            user-select: none;
        }
        .hero-title .glitch-text {
            position: relative;
            display: inline-block;
            animation: glitchMain 4s infinite;
        }
        .hero-title .glitch-text::before,
        .hero-title .glitch-text::after {
            content: attr(data-text);
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }
        .hero-title .glitch-text::before {
            color: var(--neon-cyan);
            animation: glitchBefore 4s infinite;
            clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
        }
        .hero-title .glitch-text::after {
            color: var(--neon-red);
            animation: glitchAfter 4s infinite;
            clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
        }
        @keyframes glitchMain {
            0%,
            88%,
            100% {
                transform: translate(0, 0);
            }
            89% {
                transform: translate(-2px, 1px);
            }
            90% {
                transform: translate(2px, -1px);
            }
            92% {
                transform: translate(-1px, 2px);
            }
            93% {
                transform: translate(0, 0);
            }
        }
        @keyframes glitchBefore {
            0%,
            88%,
            100% {
                transform: translate(0, 0);
                opacity: 0.7;
            }
            89% {
                transform: translate(-4px, 0);
                opacity: 1;
            }
            91% {
                transform: translate(-2px, 1px);
                opacity: 1;
            }
            93% {
                transform: translate(0, 0);
                opacity: 0.7;
            }
        }
        @keyframes glitchAfter {
            0%,
            88%,
            100% {
                transform: translate(0, 0);
                opacity: 0.7;
            }
            90% {
                transform: translate(4px, 0);
                opacity: 1;
            }
            92% {
                transform: translate(2px, -1px);
                opacity: 1;
            }
            94% {
                transform: translate(0, 0);
                opacity: 0.7;
            }
        }
        .hero-subtitle {
            font-size: clamp(0.7rem, 2.5vw, 1rem);
            color: var(--neon-cyan);
            letter-spacing: 1px;
            margin-bottom: 15px;
            min-height: 2em;
            text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
        }
        .hero-stats {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
            margin-top: 10px;
        }
        .hero-stat {
            text-align: center;
            padding: 10px 14px;
            border: 1px solid var(--border-glow);
            border-radius: 8px;
            background: rgba(0, 255, 65, 0.03);
            box-shadow: 0 0 20px rgba(0, 255, 65, 0.08);
            min-width: 70px;
        }
        .hero-stat-value {
            font-family: var(--font-display);
            font-size: 1rem;
            color: var(--neon-green);
            text-shadow: 0 0 15px var(--neon-green);
            display: block;
        }
        .hero-stat-label {
            font-size: 0.55rem;
            color: var(--text-secondary);
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-top: 3px;
        }

        /* ============ 网络地图 - SVG图标大按钮版 ============ */
        .network-container {
            position: relative;
            width: 100%;
            max-width: 900px;
            height: 330px;
            margin: 0 auto;
            user-select: none;
            overflow: visible;
        }
        .network-svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            overflow: visible;
        }
        .network-svg path {
            fill: none;
            stroke: var(--neon-green);
            stroke-width: 1.5;
            stroke-dasharray: 8 4;
            animation: dashFlow 2.5s linear infinite;
            opacity: 0.5;
        }
        @keyframes dashFlow {
            to {
                stroke-dashoffset: -24;
            }
        }
        .network-node {
            position: absolute;
            transform: translate(-50%, -50%);
            z-index: 2;
            text-align: center;
            text-decoration: none;
            color: var(--text-primary);
            transition: all 0.25s ease;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.75);
            border: 2px solid var(--border-glow);
            box-shadow: 0 0 20px rgba(0, 255, 65, 0.15), inset 0 0 15px rgba(0, 255, 65, 0.05);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            padding: 8px;
        }
        .network-node:hover,
        .network-node:active {
            transform: translate(-50%, -50%) scale(1.12);
            border-color: var(--neon-green);
            box-shadow: 0 0 35px rgba(0, 255, 65, 0.4), inset 0 0 20px rgba(0, 255, 65, 0.15);
            z-index: 5;
        }
        .network-node .node-icon-svg {
            width: 36px;
            height: 36px;
            display: block;
            margin-bottom: 4px;
            flex-shrink: 0;
        }
        .network-node .node-icon-svg svg {
            width: 100%;
            height: 100%;
            fill: none;
            stroke: var(--neon-green);
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
            filter: drop-shadow(0 0 6px rgba(0, 255, 65, 0.5));
        }
        .network-node .node-name {
            font-family: var(--font-display);
            font-size: 0.7rem;
            letter-spacing: 0.5px;
            color: var(--neon-green);
            text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
            white-space: nowrap;
            background: rgba(0, 0, 0, 0.7);
            padding: 2px 8px;
            border-radius: 10px;
            border: 1px solid var(--border-glow);
            line-height: 1.2;
        }
        .network-node.center {
            border-color: var(--neon-green);
            border-width: 3px;
            box-shadow: 0 0 40px rgba(0, 255, 65, 0.35), inset 0 0 25px rgba(0, 255, 65, 0.1);
            background: rgba(0, 255, 65, 0.08);
            z-index: 3;
        }
        .network-node.center .node-icon-svg {
            width: 44px;
            height: 44px;
        }
        .network-node.center .node-name {
            font-size: 0.8rem;
            background: rgba(0, 255, 65, 0.2);
            border-color: var(--neon-green);
            box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
        }
        .network-node::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100%;
            height: 100%;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            border: 2px solid var(--neon-green);
            opacity: 0;
            animation: nodePulse 2.5s infinite;
            pointer-events: none;
            z-index: -1;
        }
        @keyframes nodePulse {
            0% {
                transform: translate(-50%, -50%) scale(0.85);
                opacity: 0.5;
            }
            100% {
                transform: translate(-50%, -50%) scale(1.8);
                opacity: 0;
            }
        }

        /* ============ 技能区域 - 进度条动画修复 ============ */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }
        .skill-card {
            background: rgba(13, 13, 20, 0.9);
            border: 1px solid var(--border-glow);
            border-radius: 8px;
            padding: 20px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        .skill-card:hover {
            box-shadow: 0 0 30px rgba(0, 255, 65, 0.15);
            border-color: var(--neon-green);
            transform: translateY(-3px);
        }
        .skill-card-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }
        .skill-name {
            font-family: var(--font-display);
            font-size: 0.9rem;
            color: var(--neon-green);
            text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
            letter-spacing: 1px;
        }
        .skill-bar-container {
            margin-bottom: 12px;
        }
        .skill-bar-label {
            display: flex;
            justify-content: space-between;
            font-size: 0.7rem;
            color: var(--text-secondary);
            margin-bottom: 5px;
            letter-spacing: 0.5px;
        }
        .skill-bar-label .percent {
            color: var(--neon-cyan);
            font-weight: bold;
        }
        .skill-bar {
            height: 8px;
            background: #1a1a2a;
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }
        .skill-bar-fill {
            height: 100%;
            border-radius: 4px;
            background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
            box-shadow: 0 0 15px var(--neon-green);
            width: 0%;
            transition: width 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
        }
        /* 进度条闪光效果 */
        .skill-bar-fill::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 30px;
            height: 100%;
            background: rgba(255, 255, 255, 0.5);
            animation: barShine 1.2s ease-in-out infinite;
        }
        @keyframes barShine {
            0% {
                right: 100%;
                opacity: 0;
            }
            50% {
                opacity: 1;
            }
            100% {
                right: -30px;
                opacity: 0;
            }
        }
        /* 进度条填充动画触发类 */
        .skill-bar-fill.animate {
            animation: fillBar 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        }
        @keyframes fillBar {
            from {
                width: 0%;
            }
            to {
                width: var(--target-width);
            }
        }

        /* 终端 */
        .terminal-section {
            background: var(--bg-terminal);
            border: 1px solid var(--border-glow);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 0 40px rgba(0, 255, 65, 0.08);
            margin: 0 auto;
            max-width: 850px;
        }
        .terminal-header {
            background: #111122;
            padding: 8px 12px;
            display: flex;
            align-items: center;
            gap: 6px;
            border-bottom: 1px solid rgba(0, 255, 65, 0.15);
            user-select: none;
        }
        .terminal-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }
        .terminal-dot.red {
            background: #ff5f57;
        }
        .terminal-dot.yellow {
            background: #febc2e;
        }
        .terminal-dot.green {
            background: #28c840;
        }
        .terminal-title {
            margin-left: 6px;
            font-size: 0.65rem;
            color: var(--text-dim);
            letter-spacing: 1px;
        }
        .terminal-body {
            padding: 15px;
            min-height: 200px;
            max-height: 320px;
            overflow-y: auto;
            font-size: 0.75rem;
            line-height: 1.6;
            background: rgba(5, 5, 8, 0.95);
            cursor: text;
            -webkit-overflow-scrolling: touch;
        }
        .terminal-output {
            color: var(--neon-green);
            white-space: pre-wrap;
            word-break: break-all;
        }
        .terminal-output .info {
            color: var(--neon-cyan);
        }
        .terminal-output .success {
            color: var(--neon-green);
        }
        .terminal-output .error {
            color: var(--neon-red);
        }
        .terminal-output .dim {
            color: var(--text-dim);
        }
        .terminal-output .highlight {
            color: var(--neon-purple);
            font-weight: bold;
        }
        .terminal-output .ascii-art {
            color: var(--neon-green);
            font-size: 0.6rem;
            line-height: 1.2;
        }
        .terminal-input-line {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 8px;
            flex-wrap: wrap;
        }
        .terminal-prompt {
            color: var(--neon-green);
            font-weight: bold;
            font-size: 0.75rem;
            white-space: nowrap;
        }
        .terminal-prompt .prompt-host {
            color: var(--neon-cyan);
        }
        .terminal-input {
            flex: 1;
            background: transparent;
            border: none;
            outline: none;
            color: #fff;
            font-family: var(--font-mono);
            font-size: 0.75rem;
            caret-color: var(--neon-green);
            min-width: 60px;
        }
        .terminal-cursor-ghost {
            display: inline-block;
            width: 6px;
            height: 14px;
            background: var(--neon-green);
            animation: blink 0.8s step-end infinite;
            vertical-align: middle;
            flex-shrink: 0;
        }
        .quick-commands {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin: 10px 0 0;
            justify-content: center;
            padding: 0 10px 10px;
        }
        .quick-cmd-btn {
            background: rgba(0, 255, 65, 0.05);
            border: 1px solid var(--border-glow);
            color: var(--neon-green);
            padding: 6px 12px;
            border-radius: 4px;
            font-family: var(--font-mono);
            font-size: 0.7rem;
            cursor: pointer;
            transition: all 0.3s ease;
            -webkit-tap-highlight-color: transparent;
            min-height: 32px;
        }
        .quick-cmd-btn:active {
            background: rgba(0, 255, 65, 0.2);
        }

        /* 项目/友链/联系卡片 */
        .projects-grid,
        .friends-grid,
        .contact-grid {
            display: grid;
            gap: 14px;
        }
        .projects-grid {
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        }
        .friends-grid {
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        }
        .contact-grid {
            grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        }
        .project-card,
        .friend-card,
        .contact-card {
            background: rgba(13, 13, 20, 0.9);
            border: 1px solid var(--border-glow);
            border-radius: 8px;
            padding: 16px;
            text-align: center;
            text-decoration: none;
            color: var(--text-primary);
            display: block;
            -webkit-tap-highlight-color: transparent;
            transition: all 0.3s ease;
        }
        .project-card {
            border-color: var(--border-glow-cyan);
            text-align: left;
        }
        .project-card .project-name,
        .friend-card .friend-name,
        .contact-card .contact-name {
            font-family: var(--font-display);
            font-size: 0.8rem;
            color: var(--neon-green);
            letter-spacing: 0.5px;
            margin-bottom: 3px;
        }
        .project-card .project-desc,
        .friend-card .friend-desc,
        .contact-card .contact-value {
            font-size: 0.65rem;
            color: var(--text-secondary);
            line-height: 1.4;
        }
        .footer {
            text-align: center;
            padding: 30px 0;
            border-top: 1px solid var(--border-glow);
            margin-top: 40px;
            font-size: 0.65rem;
            color: var(--text-dim);
            letter-spacing: 1px;
        }

        @media (max-width: 768px) {
            #hero {
                min-height: calc(100vh - 40px);
            }
            .navbar {
                flex-wrap: wrap;
                height: auto;
                padding: 8px 12px;
            }
            .navbar-links {
                display: none;
                width: 100%;
                flex-direction: column;
                padding-top: 8px;
            }
            .navbar-links.open {
                display: flex;
            }
            .navbar-links a {
                padding: 10px 12px;
                text-align: center;
                font-size: 0.75rem;
                border-bottom: 1px solid rgba(0, 255, 65, 0.05);
            }
            .navbar-hamburger {
                display: flex;
            }
            .network-container {
                height: 280px;
                padding: 5px 0;
            }
            .network-node {
                padding: 6px;
            }
            .network-node .node-icon-svg {
                width: 28px;
                height: 28px;
            }
            .network-node.center .node-icon-svg {
                width: 34px;
                height: 34px;
            }
            .network-node .node-name {
                font-size: 0.6rem;
                padding: 1px 5px;
            }
            .section {
                padding: 35px 0;
            }
            .terminal-body {
                min-height: 160px;
                max-height: 260px;
                font-size: 0.7rem;
                padding: 10px;
            }
        }
        @media (max-width: 400px) {
            .network-container {
                height: 230px;
            }
            .network-node .node-icon-svg {
                width: 22px;
                height: 22px;
            }
            .network-node.center .node-icon-svg {
                width: 26px;
                height: 26px;
            }
            .network-node .node-name {
                font-size: 0.55rem;
            }
        }

/* ============ PHP 版新增样式 ============ */
a.skill-row {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a.skill-row:hover .skill-bar-label > span:first-child {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}
.project-card {
    text-decoration: none;
}
a.project-card:hover,
a.project-card:focus-visible {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
    transform: translateY(-3px);
}
.project-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    min-height: 18px;
}
.status-pill {
    font-size: 0.58rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid currentColor;
    background: rgba(0, 255, 65, 0.06);
}
.status-pill[data-status="online"] { color: var(--neon-green); }
.status-pill[data-status="offline"] { color: var(--neon-red); }
.status-pill[data-status="wip"] { color: var(--neon-yellow); }
.status-pill[data-status="archived"] { color: var(--text-secondary); }
.status-pill[data-status="online"] { box-shadow: 0 0 10px rgba(0, 255, 65, 0.25); }
.gh-stat {
    font-size: 0.6rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
}
.gh-stat.gh-lang {
    color: var(--neon-cyan);
    border-color: rgba(0, 229, 255, 0.25);
}
.gh-lang-card .skill-card-header {
    justify-content: space-between;
}
.custom-body {
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-primary);
    word-break: break-word;
}
.custom-body a {
    color: var(--neon-cyan);
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 229, 255, 0.4);
}
.custom-body a:hover { text-shadow: 0 0 10px rgba(0, 229, 255, 0.6); }
.custom-body img { max-width: 100%; border: 1px solid var(--border-glow); border-radius: 6px; }
.custom-body h1, .custom-body h2, .custom-body h3,
.custom-body h4, .custom-body h5, .custom-body h6 {
    font-family: var(--font-display);
    color: var(--neon-green);
    letter-spacing: 1px;
    margin: 14px 0 8px;
}
.custom-body pre, .custom-body code {
    font-family: var(--font-mono);
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.75em;
}
.custom-body pre { padding: 10px; overflow-x: auto; line-height: 1.5; }
.custom-body blockquote {
    border-left: 3px solid var(--neon-green);
    padding: 4px 12px;
    margin: 10px 0;
    color: var(--text-secondary);
    background: rgba(0, 255, 65, 0.03);
}
.custom-body table { border-collapse: collapse; margin: 10px 0; }
.custom-body th, .custom-body td { border: 1px solid rgba(0, 255, 65, 0.2); padding: 6px 10px; }

/* ============ 章节标题 glitch 抖动特效(后台可按章节开关) ============ */
.section-title.glitch-title {
    animation: titleGlitchJitter 6.5s linear infinite;
}
.section-title.glitch-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    color: var(--neon-cyan);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    animation: titleGlitchGhost 6.5s linear infinite;
    text-shadow: 0 0 12px var(--neon-cyan);
}
@keyframes titleGlitchJitter {
    0%, 86%, 93.5%, 100% {
        transform: none;
        filter: none;
    }
    87.5% {
        transform: translate(-2px, 1px);
        filter: blur(1.6px);
        text-shadow: 0 0 4px var(--neon-green), 0 0 22px var(--neon-cyan), 0 0 40px var(--neon-purple);
    }
    89% {
        transform: translate(2px, -1px);
        filter: blur(0.5px);
    }
    90.5% {
        transform: none;
        filter: blur(0.35px);
    }
    92% {
        transform: translate(-1px, -1px);
        filter: blur(1.2px);
        text-shadow: 0 0 10px #fff, 0 0 18px var(--neon-green);
    }
}
@keyframes titleGlitchGhost {
    0%, 86%, 94%, 100% {
        opacity: 0;
        transform: none;
    }
    87.5% {
        opacity: 0.85;
        transform: translate(-5px, 1px);
        filter: blur(2px);
    }
    89% {
        opacity: 0.5;
        transform: translate(4px, -1px);
        filter: blur(0.8px);
    }
    91% {
        opacity: 0.3;
        transform: translate(-3px, 0);
        filter: blur(1.5px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .section-title.glitch-title,
    .section-title.glitch-title::before {
        animation: none;
    }
}

/* ============ LIVE LOG · 实时监控日志流(替代终端) ============ */
.logfeed-shell .terminal-header {
    gap: 8px;
}
.logfeed-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.58rem;
    letter-spacing: 2px;
    color: var(--neon-red);
    font-weight: bold;
    user-select: none;
    text-shadow: 0 0 8px rgba(255, 0, 64, 0.6);
}
.logfeed-badge i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-red);
    box-shadow: 0 0 10px var(--neon-red);
    animation: logPulse 1.1s ease-in-out infinite;
}
@keyframes logPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}
#logfeed-output {
    padding-bottom: 4px;
}
.logfeed-line {
    margin: 0;
    padding: 1px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.72rem;
    line-height: 1.6;
    animation: logIn 0.22s ease-out;
}
@keyframes logIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: none; }
}
.logfeed-line .lt {
    color: var(--text-dim);
    margin-right: 8px;
    letter-spacing: 0.5px;
}
.logfeed-cursor {
    display: inline-block;
    width: 7px;
    height: 13px;
    margin-top: 3px;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    animation: blink 0.8s step-end infinite;
    vertical-align: middle;
}
@media (max-width: 768px) {
    .logfeed-line { font-size: 0.66rem; }
}
@media (prefers-reduced-motion: reduce) {
    .logfeed-line { animation: none; }
    .logfeed-badge i { animation: none; }
}
