﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿/* ============================================
   XIAO MING  ?赛博朋克个人博客 样式?
   主题：暗黑赛博朋?· 霓虹色调
   ============================================ */

/* ---- CSS 变量 ---- */
:root {
    --neon-cyan: #00fff7;
    --neon-cyan-bright: #66ffff;
    --neon-pink: #ff00ff;
    --neon-pink-bright: #ff66ff;
    --neon-purple: #b300ff;
    --neon-blue: #0066ff;
    --neon-yellow: #ffff00;
    --bg-dark: #0a0a1a;
    --bg-card: rgba(18, 18, 42, 0.3);
    --bg-card-hover: rgba(18, 18, 42, 0.55);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-light: rgba(255, 255, 255, 0.12);
    --glass-border-cyan: rgba(0, 255, 247, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --glass-blur: blur(24px) saturate(180%);

    --text-primary: #f0f0ff;
    --text-primary-glare: #ffffff;
    --text-secondary: #b0aad0;
    --text-muted: #7a7a9a;
    --border-color: rgba(0, 255, 247, 0.2);
    --glow-cyan: 0 0 8px rgba(0, 255, 247, 0.6), 0 0 20px rgba(0, 255, 247, 0.4), 0 0 40px rgba(0, 255, 247, 0.15);
    --glow-cyan-strong: 0 0 12px rgba(0, 255, 247, 0.8), 0 0 30px rgba(0, 255, 247, 0.5), 0 0 60px rgba(0, 255, 247, 0.2);
    --glow-pink: 0 0 8px rgba(255, 0, 255, 0.6), 0 0 20px rgba(255, 0, 255, 0.4), 0 0 40px rgba(255, 0, 255, 0.15);
    --font-display: 'Orbitron', monospace, sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --color-1: #00fff7;
    --color-2: #ff00ff;
    --color-3: #b300ff;
    --color-4: #66ffff;
    --linear-ease: linear(0, 0.068, 0.19 2.7%, 0.804 8.1%, 1.037, 1.199 13.2%, 1.245, 1.27 15.8%, 1.274, 1.272 17.4%, 1.249 19.1%, 0.996 28%, 0.949, 0.928 33.3%, 0.926, 0.933 36.8%, 1.001 45.6%, 1.013, 1.019 50.8%, 1.018 54.4%, 1 63.1%, 0.995 68%, 1.001 85%, 1);
}

/* ---- 基础重置 ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 5, 16, 0.65);
    pointer-events: none;
    z-index: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    background-image: url("https://api.yppp.net/api.php");
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}
a:hover {
    color: var(--neon-cyan-bright);
    text-shadow: var(--glow-cyan);
}

img {
    max-width: 100%;
    height: auto;
}
/* Main content wrapper  ?启动动画期间隐藏 */
.main-content {
    opacity: 0;
    transition: opacity 0.8s ease;
    position: relative;
    z-index: 2;
}
.main-content.visible {
    opacity: 1;
}

/* ---- 背景装饰 ---- */
.cyber-grid {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(0, 255, 247, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 247, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.scanlines {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    pointer-events: none;
    z-index: 1;
    animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

/* ============================================
   赛博启动动画 (Boot Screen)
   ============================================ */
#cyber-boot {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url("https://api.yppp.net/api.php");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
    font-family: var(--font-display);
}
#cyber-boot::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 5, 16, 0.75);
    pointer-events: none;
    z-index: -1;
}
#cyber-boot.fade-out {
    opacity: 0;
    pointer-events: none;
}
#cyber-boot.hidden {
    display: none;
}

.boot-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Spinning ring - like desktop reference */
.boot-ring {
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(0, 255, 247, 0.06);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: bootSpin 0.7s linear infinite;
    margin-bottom: 0.5rem;
}
@keyframes bootSpin {
    to { transform: rotate(360deg); }
}

/* Title - Chinese text */
.boot-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-cyan-bright);
    letter-spacing: 6px;
    text-shadow: 0 0 12px rgba(0, 255, 247, 0.3);
    animation: bootPulse 2s ease-in-out infinite;
}

@keyframes bootPulse {
    0%, 100% { opacity: 0.7; text-shadow: 0 0 8px rgba(0, 255, 247, 0.2); }
    50% { opacity: 1; text-shadow: 0 0 16px rgba(0, 255, 247, 0.4); }
}

/* Dots */
.boot-dots {
    display: flex;
    gap: 6px;
    font-size: 6px;
    color: var(--neon-cyan);
    opacity: 0.4;
}
.boot-dots span {
    animation: bootDot 1.2s ease-in-out infinite;
}
.boot-dots span:nth-child(2) { animation-delay: 0.3s; }
.boot-dots span:nth-child(3) { animation-delay: 0.6s; }
@keyframes bootDot {
    0%, 100% { opacity: 0.15; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Log lines */
.boot-log {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 0.3rem;
}
.bl-line {
    font-family: monospace;
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    color: rgba(0, 255, 247, 0.3);
    opacity: 0;
    animation: bootType 0.5s ease forwards;
}
.bl-line:nth-child(1) { animation-delay: 0.3s; }
.bl-line:nth-child(2) { animation-delay: 0.8s; }
.bl-line:nth-child(3) { animation-delay: 1.3s; }
@keyframes bootType {
    to { opacity: 1; }
}

/* Progress bar */

.boot-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--neon-cyan);
    box-shadow: 0 0 6px rgba(0, 255, 247, 0.3);
    border-radius: 2px;
    animation: bootFill 1.8s ease-in-out forwards;
}
@keyframes bootFill {
    0% { width: 0%; }
    30% { width: 45%; }
    60% { width: 75%; }
    85% { width: 90%; }
    100% { width: 100%; }
}

/* Boot glitch flash */
#cyber-boot.boot-glitch-flash::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: white;
    opacity: 0.08;
    animation: bootFlash 0.3s ease;
    pointer-events: none;
}
@keyframes bootFlash {
    0% { opacity: 0; }
    30% { opacity: 0.12; }
    100% { opacity: 0; }
}
/* 启动框顶部装饰条 */
.boot-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-pink), transparent);
}
.boot-header h1 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--neon-cyan);
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: var(--glow-cyan);
}
.boot-line.prompt::before {
    content: '> ';
    color: var(--neon-cyan);
    font-weight: 700;
}
.boot-line.error {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

/* 进度?*/

.boot-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    border-radius: 2px;
    transition: width 0.4s ease;
    box-shadow: 0 0 12px rgba(0, 255, 247, 0.4);
}

/* 光标闪烁 */

@keyframes bootBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 启动结束闪烁过渡 */
.boot-glitch-flash {
    animation: bootFlash 0.15s ease-in-out 3;
}
@keyframes bootFlash {
    0%, 100% { background: #050510; }
    50% { background: #1a0a2e; }
}

/* ---- 粒子网络 Canvas ---- */
#particleCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
/* ---- Global Spotlight ---- */
.global-spotlight {
    mix-blend-mode: screen;
    will-change: transform, opacity;
    z-index: 200 !important;
    pointer-events: none;
}

/* ---- 滚动进度?---- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink), var(--neon-purple));
    width: 0%;
    z-index: 1001;
    transition: width 0.1s linear;
    box-shadow: var(--glow-cyan);
}

/* ---- 返回顶部按钮 ---- */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-cyan);
    color: var(--neon-cyan-bright);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: 0 0 10px rgba(0, 255, 247, 0.2);
    border-radius: 12px;
}
.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-top:hover {
    box-shadow: var(--glow-cyan-strong);
    background: var(--bg-elevated);
}
.scroll-top:focus-visible {
    outline: 2px solid var(--neon-pink);
    outline-offset: 2px;
}

/* ---- 玻璃导航 ---- */
.glass-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.02);
    transition: background 0.3s ease;
}
.glass-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.2rem;
    display: flex;
    align-items: center;
    height: 52px;
    gap: 0.5rem;
}
.glass-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 1.5rem;
    line-height: 1.1;
}
.glass-logo-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--neon-cyan-bright);
    text-shadow: var(--glow-cyan-strong);
    letter-spacing: 2px;
}
.glass-logo-sub {
    font-size: 0.55rem;
    color: var(--neon-cyan);
    letter-spacing: 1.5px;
    margin-top: -1px;
}
.glass-menu {
    flex: 1;
    display: flex;
    position: relative;
    align-items: center;
}
.goo-svg {
    position: absolute;
    width: 0; height: 0;
    pointer-events: none;
}
.glass-links {
    display: flex;
    list-style: none;
    margin: 0; padding: 0;
    gap: 0;
    position: relative;
    z-index: 3;
    color: #fff;
    text-shadow: 0 1px 1px hsl(205deg 30% 10% / 0.2);
}
.glass-links li {
    margin: 0; padding: 0;
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0.5px 1.5px transparent;
}
.glass-links li a {
    display: inline-block;
    padding: 0.6em 1em;
    font-family: var(--font-display);
    font-size: 0.78rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    outline: none;
    white-space: nowrap;
    position: relative;
}
.glass-links li.active {
    color: #000;
    text-shadow: none;
}
.glass-links li.active a {
    color: #000 !important;
}
.glass-links li::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: #fff;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: -1;
}
.glass-links li.active::after {
    opacity: 1;
    transform: scale(1);
}
.glass-links li.nav-link-external a {
    opacity: 0.65;
    font-size: 0.7rem;
}
.glass-links li.nav-link-external a:hover { opacity: 1; }

.effect {
    position: absolute;
    opacity: 1;
    pointer-events: none;
    display: grid;
    place-items: center;
    z-index: 1;
}
.effect.text {
    color: #fff;
    transition: color 0.3s ease;
}
.effect.text.active {
    color: #000;
}
.effect.filter {
    filter: url(#goo);
}
.effect.filter::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    border-radius: 9999px;
    transform: scale(0);
    opacity: 0;
    z-index: 1;
}
.effect.filter.active::after {
    animation: pill 0.3s ease both;
}

@keyframes pill {
    to { transform: scale(1); opacity: 1; }
}

.particle, .point {
    display: block;
    opacity: 0;
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    transform-origin: center;
}
.particle {
    --time: 5s;
    position: absolute;
    top: calc(50% - 8px);
    left: calc(50% - 8px);
    animation: particle calc(var(--time)) ease 1 -350ms;
}
.point {
    background: var(--color);
    opacity: 1;
    animation: point calc(var(--time)) ease 1 -350ms;
}

@keyframes particle {
    0% { transform: rotate(0deg) translate(calc(var(--start-x)), calc(var(--start-y))); opacity: 1; animation-timing-function: cubic-bezier(0.55,0,1,0.45); }
    70% { transform: rotate(calc(var(--rotate)*0.5)) translate(calc(var(--end-x)*1.2), calc(var(--end-y)*1.2)); opacity: 1; animation-timing-function: ease; }
    85% { transform: rotate(calc(var(--rotate)*0.66)) translate(calc(var(--end-x)), calc(var(--end-y))); opacity: 1; }
    100% { transform: rotate(calc(var(--rotate)*1.2)) translate(calc(var(--end-x)*0.5), calc(var(--end-y)*0.5)); opacity: 1; }
}
@keyframes point {
    0% { transform: scale(0); opacity: 0; animation-timing-function: cubic-bezier(0.55,0,1,0.45); }
    25% { transform: scale(calc(var(--scale)*0.25)); }
    38% { opacity: 1; }
    65% { transform: scale(var(--scale)); opacity: 1; animation-timing-function: ease; }
    85% { transform: scale(var(--scale)); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

.glass-aside {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}
.nav-player {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}
.glass-time {
    font-family: var(--font-display);
    font-size: 0.72rem;
    color: var(--neon-cyan-bright);
    letter-spacing: 1px;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: var(--glow-cyan);
}
.glass-player-btn {
    background: rgba(18,18,42,0.5);
    border: 1px solid rgba(255,0,247,0.25);
    color: #ff00f7;
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: grid; place-items: center;
    transition: all 0.3s ease;
}
.glass-player-btn:hover {
    background: rgba(255,0,247,0.15);
    border-color: #ff00f7;
    box-shadow: 0 0 10px rgba(255,0,247,0.2);
}
.glass-player-btn.playing {
    border-color: #00ff7f; color: #00ff7f;
    box-shadow: 0 0 10px rgba(0,255,127,0.2);
}
.glass-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px; height: 32px;
    background: transparent;
    border: 1px solid rgba(0,255,247,0.25);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    position: relative;
    flex-shrink: 0;
}
.glass-hamburger span,
.glass-hamburger span::before,
.glass-hamburger span::after {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--neon-cyan-bright);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
}
.glass-hamburger span { position: relative; }
.glass-hamburger span::before,
.glass-hamburger span::after {
    content: "";
    position: absolute;
    left: 0;
}
.glass-hamburger span::before { top: -5px; }
.glass-hamburger span::after { top: 5px; }
.glass-hamburger.open span { background: transparent; }
.glass-hamburger.open span::before { top: 0; transform: rotate(45deg); }
.glass-hamburger.open span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
    .glass-hamburger { display: flex; }
    .glass-menu { display: none; }
    .glass-aside { display: none; }
    .glass-menu.open {
        display: flex;
        position: fixed;
        top: 52px; left: 0; right: 0;
        background: rgba(5,5,20,0.98);
        backdrop-filter: blur(16px);
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .glass-menu.open .effect { display: none; }
    .glass-menu.open .glass-links {
        flex-direction: column;
        width: 100%;
    }
    .glass-menu.open .glass-links li { border-radius: 8px; }
    .glass-menu.open .glass-links li a {
        display: block;
        padding: 0.8rem 1rem;
        width: 100%;
    }
}
@media (max-width: 480px) {
    .glass-links li a { padding: 0.6rem 1rem; font-size: 0.8rem; }
    .glass-aside { gap: 0.3rem; }
    .glass-time { font-size: 0.65rem; }
}

/* ---- 按钮 ---- */
.cyber-btn {
    position: relative;
    padding: 0.6rem 1.5rem;
    background: rgba(18, 18, 42, 0.3);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-normal);
    font-weight: 600;
    border-radius: 8px;
}
.cyber-btn:hover {
    background: rgba(0, 255, 247, 0.1);
    box-shadow: var(--glow-cyan);
}
.cyber-btn:focus-visible {
    outline: 2px solid var(--neon-pink);
    outline-offset: 2px;
}

.cyber-btn.primary {
    background: rgba(0, 255, 247, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan-bright);
    text-shadow: var(--glow-cyan);
}
.cyber-btn.primary:hover {
    background: rgba(0, 255, 247, 0.2);
}

.cyber-btn.secondary {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}
.cyber-btn.secondary:hover {
    background: rgba(255, 0, 255, 0.1);
    box-shadow: var(--glow-pink);
}

.btn-glitch {
    display: none;
}

/* ---- 英雄区域 ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 255, 247, 0.05) 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.4rem;
    border: 1px solid rgba(0, 255, 247, 0.3);
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--neon-cyan-bright);
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    text-shadow: var(--glow-cyan);
    font-weight: 600;
}

.blink {
    animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 900;
    color: var(--text-primary-glare);
    margin-bottom: 1rem;
    letter-spacing: 5px;
    text-shadow:
        0 0 10px rgba(0, 255, 247, 0.4),
        0 0 25px rgba(0, 255, 247, 0.2),
        0 0 50px rgba(255, 0, 255, 0.15);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--neon-cyan-bright);
    margin-bottom: 2rem;
    letter-spacing: 3px;
    font-weight: 500;
    text-shadow:
        0 0 8px rgba(0, 255, 247, 0.4),
        0 0 20px rgba(0, 255, 247, 0.2);
}

/* 英雄统计 */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
}
.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--neon-cyan-bright);
    text-shadow: var(--glow-cyan-strong);
    position: relative;
    z-index: 1;
}
/* Gradient overlays - depth effect (from Counter component) */
.ct-overlay-top,
.ct-overlay-bot {
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    pointer-events: none;
    z-index: 2;
}
.ct-overlay-top {
    top: 0;
    background: linear-gradient(to bottom, #0a0510, transparent);
}
.ct-overlay-bot {
    bottom: 0;
    background: linear-gradient(to top, #0a0510, transparent);
}
.ct-overlay-bot {
    bottom: 0;
    background: linear-gradient(to top, #0a0510, transparent);
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 0.25rem;
    position: relative;
    z-index: 1;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* 英雄装饰圆环 */
.hero-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}
.cyber-circle {
    position: absolute;
    border: 1px solid rgba(0, 255, 247, 0.1);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}
.cyber-circle {
    width: 300px;
    height: 300px;
}
.cyber-circle.delay-1 {
    width: 500px;
    height: 500px;
    animation-delay: 1s;
}
.cyber-circle.delay-2 {
    width: 700px;
    height: 700px;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

/* ---- Glitch 效果 ---- */
.glitch {
    position: relative;
}
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
.glitch::before {
    animation: glitch-shift 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    color: var(--neon-pink);
}
.glitch::after {
    animation: glitch-shift 3s infinite reverse;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    color: var(--neon-cyan);
}

@keyframes glitch-shift {
    0%, 90%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    92% {
        transform: translate(-3px, 2px);
        opacity: 1;
    }
    94% {
        transform: translate(3px, -2px);
        opacity: 1;
    }
    96% {
        transform: translate(-2px, 1px);
        opacity: 1;
    }
    98% {
        transform: translate(2px, -1px);
        opacity: 1;
    }
}

/* ---- 通用 Section 样式 ---- */
section {
    padding: 5rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 900;
    color: var(--neon-cyan-bright);
    letter-spacing: 4px;
    text-shadow:
        0 0 10px rgba(0, 255, 247, 0.5),
        0 0 30px rgba(0, 255, 247, 0.2),
        0 0 60px rgba(255, 0, 255, 0.1);
}

.title-prefix,
.title-suffix {
    color: var(--neon-cyan);
    opacity: 0.6;
}

.title-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    margin: 0.75rem auto 0;
    box-shadow: var(--glow-cyan);
}

/* ---- 文章卡片网格 ---- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.article-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.article-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: 16px 16px 0 0;
}




.card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 26, 0.8));
}

.card-content {
    padding: 1rem 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.card-category {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--neon-cyan-bright);
    letter-spacing: 2px;
    padding: 0.2rem 0.6rem;
    background: rgba(0, 255, 247, 0.08);
    border: 1px solid rgba(0, 255, 247, 0.2);
    font-weight: 600;
    border-radius: 4px;
}
.card-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-excerpt {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neon-cyan);
    transition: gap 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
    margin-top: auto;
}
.read-more:hover {
    gap: 0.75rem;
    color: var(--neon-pink);
    text-shadow: var(--glow-pink);
}
.read-more .arrow {
    transition: transform var(--transition-fast);
}
.read-more:hover .arrow {
    transform: translateX(3px);
}}

/* --- 文章卡片图片与标签 --- */
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card:hover .card-img {
    transform: scale(1.08);
}
.card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(5,5,16,0.6) 100%);
    pointer-events: none;
}
.card-category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: 1px;
    background: rgba(0, 255, 247, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 255, 247, 0.3);
    border-radius: 4px;
    color: var(--neon-cyan-bright);
    text-shadow: 0 0 6px rgba(0,255,247,0.3);
}


.read-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* 更多按钮 */
.section-footer {
    text-align: center;
    margin-top: 2.5rem;
}

/* ---- 项目网格 ---- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border-light);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 1.5rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.project-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 16px 16px 0 0;
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow), 0 0 30px rgba(179, 0, 255, 0.1);
    border-color: rgba(179, 0, 255, 0.3);
    background: var(--bg-card-hover);
}
.project-card:focus-visible {
    outline: 2px solid var(--neon-pink);
    outline-offset: 2px;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.project-icon {
    font-size: 2rem;
}
.project-links {
    display: flex;
    gap: 0.5rem;
}
.project-links a {
    font-size: 1.2rem;
    transition: color var(--transition-fast);
}
.project-links a:hover {
    color: var(--neon-pink);
}

.project-title {
    font-family: var(--font-display);
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-cyan-bright);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 8px rgba(0, 255, 247, 0.3), 0 0 20px rgba(0, 255, 247, 0.1);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}
.project-tag {
    font-family: var(--font-display);
    font-size: 0.65rem;
    color: var(--neon-purple);
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    background: rgba(179, 0, 255, 0.08);
    border: 1px solid rgba(179, 0, 255, 0.2);
    letter-spacing: 2px;
    border-radius: 4px;
}

/* ---- 关于区域 ---- */
.about-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: start;
}

.about-avatar {
    text-align: center;
}

.avatar-frame {
    width: 180px;
    height: 180px;
    border: 2px solid var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: var(--glow-cyan-strong);
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
.avatar-placeholder {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--neon-cyan-bright);
    letter-spacing: 4px;
}
.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.avatar-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
}
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--neon-cyan);
    border-radius: 50%;
    animation: blink 1.2s ease-in-out infinite;
}

.about-content .section-header {
    margin-bottom: 1.5rem;
    text-align: left;
}
.about-content .title-line {
    margin: 0.75rem 0 0;
}

.about-text {
    font-size: 1.05rem;
    color: rgba(200, 230, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-weight: 500;
    text-shadow: 0 0 6px rgba(0, 255, 247, 0.15);
}

.about-skills {
    margin: 1.5rem 0;
}

.skill-item {
    margin-bottom: 1rem;
}
.skill-name {
    display: block;
    font-size: 0.9rem;
    color: var(--neon-cyan-bright);
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0, 255, 247, 0.3);
}
.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}
.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 4px;
    transition: width 1s ease;
    box-shadow: 0 0 8px rgba(0, 255, 247, 0.3);
}

.about-social {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}
.social-link {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 0.4rem 1rem;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    transition: border-color var(--transition-fast), color var(--transition-fast);
    font-weight: 600;
    border-radius: 8px;
}
.social-link:hover {
    border-color: var(--neon-cyan);
}

/* ---- 联系区域 ---- */
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(18, 18, 42, 0.3);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border-light);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    border-radius: 10px;
}
.form-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 247, 0.15);
}
.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}
.form-input.error {
    border-color: #ff3366;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    font-size: 0.8rem;
    color: #ff3366;
    margin-top: 0.3rem;
    min-height: 1em;
    font-weight: 500;
}

.submit-btn {
    align-self: flex-start;
}

/* 表单反馈消息 */
.form-feedback {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border: 1px solid transparent;
    min-height: 0;
    opacity: 0;
    transition: opacity var(--transition-normal), min-height var(--transition-normal), padding var(--transition-normal);
    font-weight: 500;
}
.form-feedback.success {
    opacity: 1;
    border-color: var(--neon-cyan);
    color: var(--neon-cyan-bright);
    background: rgba(0, 255, 247, 0.05);
}
.form-feedback.error {
    opacity: 1;
    border-color: #ff3366;
    color: #ff3366;
    background: rgba(255, 51, 102, 0.05);
}
.form-feedback.loading {
    opacity: 1;
    border-color: var(--neon-yellow);
    color: var(--neon-yellow);
    background: rgba(255, 255, 0, 0.05);
}

/* 联系信息卡片 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border-light);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 1.2rem;
    transition: border-color var(--transition-fast), transform var(--transition-normal);
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 16px 16px 0 0;
}
.contact-card:hover {
    border-color: var(--glass-border-cyan);
    transform: translateX(4px);
}
.contact-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.contact-card h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-cyan-bright);
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 8px rgba(0, 255, 247, 0.3);
}
.contact-card p {
    font-size: 0.9rem;
    color: #b388ff;
    font-weight: 500;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 6px rgba(179, 136, 255, 0.3);
}

/* ---- 页脚 ---- */
.cyber-footer {
    border-top: 1px solid var(--glass-border);
    padding: 2rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.footer-links a {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0, 255, 247, 0.2);
}
.footer-links a:hover {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.footer-info {
    font-size: 0.85rem;
    color: var(--neon-cyan);
    font-weight: 500;
    text-shadow: 0 0 6px rgba(0, 255, 247, 0.2);
}
.footer-tech {
    font-size: 0.7rem;
    color: #b388ff;
    opacity: 0.6;
    margin-top: 0.25rem;
    text-shadow: 0 0 4px rgba(179, 136, 255, 0.3);
}
/* ============================================
   BorderGlow - 鼠标跟随边框发光 (参? vue BorderGlow)
   锥形遮罩 + 渐变色带 = 发光边框
   ============================================ */
.glow-layer {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.glow-layer.active { opacity: 1; }

/* 单层渐变边框发光  ?兼容所有现代浏览器 */
.glow-layer .glow-mask {
    position: absolute;
    inset: -1.5px;
    border-radius: inherit;
    border: 1.5px solid transparent;
    background: radial-gradient(at 80% 55%, var(--gc1, #c084fc) 0px, transparent 50%),
                radial-gradient(at 69% 34%, var(--gc2, #f472b6) 0px, transparent 50%),
                radial-gradient(at 8% 6%, var(--gc3, #38bdf8) 0px, transparent 50%),
                radial-gradient(at 41% 38%, var(--gc1, #c084fc) 0px, transparent 50%),
                radial-gradient(at 86% 85%, var(--gc2, #f472b6) 0px, transparent 50%),
                radial-gradient(at 82% 18%, var(--gc3, #38bdf8) 0px, transparent 50%),
                radial-gradient(at 51% 4%, var(--gc2, #f472b6) 0px, transparent 50%)
                border-box;
    background-color: var(--bg-dark, #0a0a1a);
    background-clip: padding-box, border-box, border-box, border-box, border-box, border-box, border-box, border-box;
    -webkit-mask: conic-gradient(from var(--ga, 0deg) at center,
                    black 0deg, black 28deg,
                    transparent 38deg,
                    transparent 322deg,
                    black 332deg, black 360deg);
    mask: conic-gradient(from var(--ga, 0deg) at center,
                    black 0deg, black 28deg,
                    transparent 38deg,
                    transparent 322deg,
                    black 332deg, black 360deg);
}

/* 卡片相对定位 */
.article-card, .project-card, .contact-card, .stat-card { position: relative; }
.article-card > .card-content, .article-card > .card-image,
.project-card > *, .contact-card > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
    
}

/* ============================================
   ProfileCard — Holographic Design
   全息渐变 · 3D tilt · 毛玻璃浮层
   ============================================ */
@property --bgrotate {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.pc-card {
    --card-radius: 28px;
    --ui-inset: 18px;
    --ui-radius-bias: -16px;
    position: relative;
    width: 260px;
    height: 400px;
    max-height: 85svh;
    flex-shrink: 0;
    perspective: 600px;
    border-radius: var(--card-radius);
    background: transparent;
    transition: transform 0.1s ease;
    will-change: transform;
    transform: perspective(600px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
    transform-style: preserve-3d;
}

.pc-card::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: calc(var(--behind-glow-size, 50%) * -0.7);
    background: conic-gradient(from var(--bgrotate, 0deg) at 50% 50%, var(--behind-glow-color, rgba(125,190,255,0.67)) 0%, transparent 15%, transparent 85%, var(--behind-glow-color, rgba(125,190,255,0.67)) 100%);
    filter: blur(45px);
    border-radius: inherit;
    animation: glow-bg 6s linear infinite;
}

.pc-inside {
    --bgrotate: 0deg;
    display: grid;
    grid-template: 1fr / 1fr;
    place-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--card-radius);
    background: var(--inner-gradient, linear-gradient(145deg, #60496e8c 0%, #71C4FF44 100%));
    background-blend-mode: overlay;
    background:
        radial-gradient(100% 100% at calc(var(--background-x, 50%) + 10%) calc(var(--background-y, 50%) - 20%), rgba(255,255,255,0.15) 0%, transparent 60%),
        radial-gradient(farthest-side at calc(100% - var(--background-x, 50%)) var(--background-y, 50%), #ff7ee044 0%, transparent 50%),
        radial-gradient(farthest-side at calc(var(--background-x, 50%)) calc(100% - var(--background-y, 50%)), #7eb5ff44 0%, transparent 50%),
        var(--inner-gradient, linear-gradient(145deg, #60496e8c 0%, #71C4FF44 100%));
    background-size:
        200% 200%,
        200% 200%,
        200% 200%,
        100% 100%;
    animation: holo-bg 8s ease-in-out infinite alternate;
    z-index: 1;
}

.pc-shine {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: var(--card-radius);
    background-image: var(--grain, none);
    background-size: 256px 256px;
    mix-blend-mode: overlay;
    opacity: 0.15;
}

.pc-glare {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    border-radius: var(--card-radius);
    background: radial-gradient(farthest-side circle at var(--pointer-x, 50%) var(--pointer-y, 50%), hsla(0,0%,100%,0.12) 0%, hsla(0,0%,100%,0) 80%);
}

/* Avatar content area — fills the grid */
.pc-content.pc-avatar-content {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: var(--card-radius);
}

.pc-avatar-content img.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* User info overlay (bottom) */
.pc-user-info {
    --ui-inset: 18px;
    position: absolute;
    bottom: calc(12px + var(--ui-inset, 18px));
    left: var(--ui-inset, 18px);
    right: var(--ui-inset, 18px);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: calc(max(0px, var(--card-radius) - var(--ui-inset) + var(--ui-radius-bias, -16px)));
    padding: 12px 14px;
    pointer-events: auto;
}

.pc-user-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-mini-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.pc-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.pc-user-text {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
}

.pc-handle {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
    text-shadow: 0 0 6px rgba(255,255,255,0.2);
}

.pc-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
}

.pc-contact-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: transparent;
    font-family: var(--font-display);
    white-space: nowrap;
}

.pc-contact-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Details content (name + title) */
.pc-content:not(.pc-avatar-content) {
    grid-row: 1;
    grid-column: 1;
    max-height: 100%;
    overflow: hidden;
    text-align: center;
    position: relative;
    transform: translate3d(
        calc(var(--pointer-from-left, 0.5) * -6px + 3px),
        calc(var(--pointer-from-top, 0.5) * -6px + 3px),
        0.1px
    );
    z-index: 5;
    mix-blend-mode: luminosity;
}

.pc-details {
    width: 100%;
    position: absolute;
    top: 3em;
    display: flex;
    flex-direction: column;
}

.pc-details h3 {
    font-weight: 600;
    margin: 0;
    font-size: min(5svh, 2.2em);
    background-image: linear-gradient(to bottom, #fff, #6f6fbe);
    background-size: 1em 1.5em;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    font-family: var(--font-display);
}

.pc-details p {
    font-weight: 600;
    position: relative;
    top: -8px;
    white-space: nowrap;
    font-size: 15px;
    margin: 0 auto;
    width: min-content;
    background-image: linear-gradient(to bottom, #fff, #4a4ac0);
    background-size: 1em 1.5em;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    font-family: var(--font-display);
}

@keyframes glow-bg {
    0% { --bgrotate: 0deg; }
    100% { --bgrotate: 360deg; }
}

@keyframes holo-bg {
    0% {
        background-position: 0 var(--background-y, 50%), 0 0, center;
    }
    100% {
        background-position: 0 var(--background-y, 50%), 90% 90%, center;
    }
}

/* Holographic card responsive */
@media (max-width: 900px) {
    .pc-card {
        width: 220px;
        height: 340px;
    }
    .pc-details { top: 2em; }
    .pc-details h3 { font-size: 1.5em; }
    .pc-details p { font-size: 13px; top: -6px; }
    .pc-user-info { --ui-inset: 15px; padding: 10px 12px; }
    .pc-mini-avatar { width: 36px; height: 36px; }
    .pc-user-details { gap: 10px; }
    .pc-handle { font-size: 13px; }
    .pc-status { font-size: 12px; }
    .pc-contact-btn { padding: 8px 12px; font-size: 11px; }
}

@media (max-width: 480px) {
    .pc-card {
        width: 180px;
        height: 300px;
        max-height: 380px;
        --card-radius: 20px;
    }
    .pc-details { top: 1.5em; }
    .pc-details h3 { font-size: 1.3em; }
    .pc-details p { font-size: 11px; top: -4px; }
    .pc-user-info { --ui-inset: 12px; padding: 8px 10px; }
    .pc-mini-avatar { width: 28px; height: 28px; }
    .pc-user-details { gap: 8px; }
    .pc-handle { font-size: 12px; }
    .pc-status { font-size: 10px; }
    .pc-contact-btn { padding: 5px 10px; font-size: 10px; border-radius: 50px; }
}

@media (max-width: 320px) {
    .pc-card {
        width: 160px;
        height: 260px;
        max-height: 320px;
    }
    .pc-details h3 { font-size: 1.1em; }
    .pc-details p { font-size: 10px; }
    .pc-user-info { padding: 6px 8px; }
    .pc-mini-avatar { width: 22px; height: 22px; }
    .pc-user-details { gap: 6px; }
    .pc-handle { font-size: 11px; }
    .pc-status { font-size: 8px; }
    .pc-contact-btn { padding: 4px 8px; font-size: 9px; border-radius: 50px; }
}

/* Make about-avatar column center the card */
.about-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
}
    }
    .pc-user-details {
        gap: 10px;
    }
    .pc-handle {
        font-size: 13px;
    }
    .pc-status {
        font-size: 10px;
    }
    .pc-contact-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    .hero {
        padding: 5rem 1rem 3rem;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    section {
        padding: 3rem 1rem;
    }

    .articles-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    /* Touch targets */
        font-size: 1rem;
    }
    .cyber-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
    .social-link {
        padding: 0.5rem 1rem;
    }
    .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neon-cyan);
    transition: gap 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
    margin-top: auto;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
        letter-spacing: 3px;
    }
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.3rem 1rem;
    }
    .hero-stats {
        gap: 0.6rem;
    }
    .stat-card {
        padding: 0.6rem 0.8rem;
        min-width: 70px;
    }
    .stat-number {
        font-size: 1.2rem;
    }
    .stat-label {
        font-size: 0.6rem;
    }
    .hero-cta {
        gap: 0.6rem;
    }
    .cyber-btn {
        width: 100%;
        max-width: 280px;
    }
    section {
        padding: 2rem 0.8rem;
    }
    .section-title {
        font-size: 1.2rem;
    }
    .card-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

/* 大屏优化 */
@media (min-width: 1200px) {
    .articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-width: 1000px;
    margin: 0 auto;
}
    
    html {
        scroll-behavior: auto;
    }
}
/* ============================================
   
/* ============================================
   赛博文字增强 - 闪烁 / 抖动
  ============================================ */
.cyber-flicker {
    animation: cyberFlicker 4s ease-in-out infinite;
}
@keyframes cyberFlicker {
    0%, 93%, 100% { opacity: 1; }
    94% { opacity: 0.4; }
    95% { opacity: 0.8; }
    96% { opacity: 0.2; }
    97% { opacity: 0.9; }
}

.cyber-jitter:hover {
    animation: cyberJitter 0.3s ease-in-out 3;
}
@keyframes cyberJitter {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px) skewX(-2deg); }
    50% { transform: translateX(3px) skewX(2deg); }
    75% { transform: translateX(-1px) skewX(-1deg); }
    100% { transform: translateX(0); }
}

ShinyText - 赛博流光文字效果
   参考: 参考.txt (ShinyText Svelte component)
   增强: 多色霓虹渐变 + 数字扫光 + 默认发光
  ============================================ */
.shiny-text {
    display: inline-block;
    /* Fallback color */
    color: var(--text-color, #00fff7);
    background-image: linear-gradient(
        105deg,
        var(--text-color, #00fff7) 0%,
        var(--text-color, #00fff7) 25%,
        #ff00ff 38%,
        #ffffff 48%,
        #00fff7 55%,
        var(--text-color, #00fff7) 70%,
        var(--text-color, #00fff7) 100%
    );
    background-size: 250% auto;
    background-position: 100% center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 6px var(--text-color, #00fff7)) drop-shadow(0 0 12px var(--text-color, #00fff7));
    animation: cyber-sweep 2.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
    .shiny-text {
        -webkit-text-fill-color: unset;
        -webkit-background-clip: unset;
        background-clip: unset;
        background-image: none;
        filter: none;
    }
}

/* ShinyText color variants */
.shiny-text.shiny-cyan { --text-color: #00fff7; }
.shiny-text.shiny-gold { --text-color: #ffd700; }
.shiny-text.shiny-purple { --text-color: #b388ff; }
.shiny-text.shiny-white { --text-color: #e0e0e0; }
.shiny-text.shiny-pink { --text-color: #ff44ff; }

/* Extra glow variants */
.shiny-text.shiny-glow {
    filter: drop-shadow(0 0 8px var(--text-color, #00fff7)) drop-shadow(0 0 20px var(--text-color, #00fff7)) drop-shadow(0 0 40px var(--text-color, #00fff7));
}
.shiny-text.shiny-glow-strong {
    filter: drop-shadow(0 0 10px var(--text-color, #00fff7)) drop-shadow(0 0 25px var(--text-color, #00fff7)) drop-shadow(0 0 50px var(--text-color, #00fff7)) drop-shadow(0 0 80px var(--text-color, #00fff7));
}
/* Pink glow variant */
.shiny-text.shiny-glow-pink {
    filter: drop-shadow(0 0 8px #ff00ff) drop-shadow(0 0 20px #ff00ff) drop-shadow(0 0 40px #ff00ff);
}

@keyframes cyber-sweep {
    0%   { background-position: 100% center; }
    100% { background-position: -100% center; }
}
.shiny-text.shiny-cyan { --text-color: #00fff7; --shine-color: #ffffff; }
.shiny-text.shiny-gold { --text-color: #ffd700; --shine-color: #fff8dc; }
.shiny-text.shiny-purple { --text-color: #b388ff; --shine-color: #ffffff; }
.shiny-text.shiny-white { --text-color: #e0e0e0; --shine-color: #ffffff; }
/* ============================================
   移动端适配 - 手机 / 平板
  ============================================ */

/* 大平板 / 小笔记本 */
@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-avatar {
        justify-content: center;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-title {
        font-size: clamp(1.8rem, 4vw, 2.8rem);
    }
}

/* 平板 */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1rem 2.5rem;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        letter-spacing: 3px;
    }
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        letter-spacing: 2px;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    section {
        padding: 2.5rem 1rem;
    }
    .section-title {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .about-avatar {
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    }
        font-size: 0.9rem;
    }

    .footer-links {
        gap: 1rem;
    }
    .footer-info {
        font-size: 0.75rem;
    }

    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    /* Touch targets */
    .cyber-btn { padding: 0.7rem 1.3rem; font-size: 0.8rem; }
    .social-link { padding: 0.45rem 0.9rem; font-size: 0.75rem; }

    .card-content {
    padding: 1rem 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* 手机 */
@media (max-width: 480px) {
    .hero {
        padding: 3rem 0.8rem 2rem;
    }
    .hero-title {
        font-size: clamp(1.2rem, 6vw, 1.6rem);
        letter-spacing: 2px;
    }
    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    .hero-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
    }

    section {
        padding: 2rem 0.8rem;
    }
    .section-title {
        font-size: clamp(1rem, 5vw, 1.4rem);
    }
    }
    }
    }

    /* Article/project cards */
    .card-content {
    padding: 1rem 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* 超小屏 */
/* Small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.1rem;
    }
}
    .pc-mini-avatar {
        width: 20px;
        height: 20px;
    }
    .pc-user-details {
        gap: 6px;
    }
    .pc-handle {
        font-size: 11px;
    }
    .pc-status {
        font-size: 8px;
    }
    .pc-contact-btn {
        padding: 4px 8px;
        font-size: 9px;
        border-radius: 50px;
    }
}

}

/* === Holo-Chip Music Player === */
.holo-chip {
    display: flex; align-items: center; gap: 5px; height: 100%;
    padding: 0 8px 0 10px; position: relative; cursor: default;
}
.holo-chip::before {
    content: ""; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%); width: 1px; height: 22px;
    background: linear-gradient(transparent,rgba(0,255,247,0.3),transparent);
}
.chip-btn {
    width: 22px;
    height: 22px;
    width: 22px; height: 22px; border-radius: 6px;
    border: 1px solid rgba(0,255,247,0.3);
    background: rgba(0,255,247,0.05); color: #00fff7;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; padding: 0;
    transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
    position: relative; overflow: hidden;
}
.chip-btn::after {
    content: ""; position: absolute; inset: 2px;
    border-radius: 4px; border: 1px solid rgba(0,255,247,0.1);
    transition: opacity 0.3s;
}
.chip-btn:hover::after { opacity: 1; }
.chip-btn:hover {
    transform: scale(1.1);
    border-color: #00fff7; background: rgba(0,255,247,0.12);
    box-shadow: 0 0 14px rgba(0,255,247,0.2),
                inset 0 0 14px rgba(0,255,247,0.05);
    transform: scale(1.05);
}
.chip-btn.playing {
    border-color: #ff00ff; color: #ff00ff;
    background: rgba(255,0,255,0.08);
    box-shadow: 0 0 14px rgba(255,0,255,0.2),
                inset 0 0 14px rgba(255,0,255,0.05);
    animation: chip-pulse 1.5s ease-in-out infinite;
}
.chip-btn.playing:hover {
    border-color: #ff00ff; background: rgba(255,0,255,0.15);
    box-shadow: 0 0 24px rgba(255,0,255,0.35);
}
.chip-btn svg { display: block; }
.chip-body { display: flex; flex-direction: column; gap: 2px; min-width: 65px; }
.chip-info { display: flex; align-items: center; gap: 4px; }
.chip-label {
    font-size: 0.6rem; font-weight: 700; color: #00fff7;
    letter-spacing: 0.8px; text-transform: uppercase;
    text-shadow: 0 0 6px rgba(0,255,247,0.4);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 50px; font-family: Courier New, monospace;
}
.playing .chip-label {
    color: #ff00ff; text-shadow: 0 0 8px rgba(255,0,255,0.5);
    animation: chip-scroll 4s linear infinite;
}
@keyframes chip-scroll {
    0%, 20% { text-indent: 0; }
    80%, 100% { text-indent: -100%; }
}
.chip-badge {
    font-size: 0.45rem; font-weight: 600;
    color: rgba(0,255,247,0.5); border: 1px solid rgba(0,255,247,0.15);
    border-radius: 2px; padding: 0 3px; line-height: 1.2;
}
.chip-track {
    width: 100%; height: 3px; background: rgba(0,255,247,0.08);
    border-radius: 2px; position: relative; cursor: pointer;
    transition: height 0.2s; overflow: visible;
}
.chip-track:hover { height: 5px; background: rgba(0,255,247,0.15); }
.chip-fill {
    height: 100%; width: 0%; border-radius: 2px;
    background: linear-gradient(90deg, #00fff7, #ff00ff);
    transition: width 0.15s linear;
}
.chip-dot {
    position: absolute; top: 50%; left: 0%; width: 7px; height: 7px;
    border-radius: 50%; background: #fff;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s, left 0.15s linear;
    box-shadow: 0 0 8px rgba(0,255,247,0.8);
}
.chip-track:hover .chip-dot { transform: translate(-50%, -50%) scale(1); }

/* Visualizer bars */
.chip-viz {
    display: flex; align-items: center; gap: 2px; height: 16px;
    flex-shrink: 0; opacity: 0.25; transition: opacity 0.3s;
}
.playing .chip-viz { opacity: 1; }
.chip-viz span {
    display: block; width: 2px; background: #ff00ff;
    border-radius: 1px; height: 4px;
    animation: viz 0.6s ease-in-out infinite alternate;
}
.chip-viz span:nth-child(1) { animation-delay: 0s; height: 6px; }
.chip-viz span:nth-child(2) { animation-delay: 0.15s; height: 10px; }
.chip-viz span:nth-child(3) { animation-delay: 0.3s; height: 4px; }
@keyframes viz {
    0% { height: 2px; background: #00fff7; }
    100% { height: 13px; background: #ff00ff; }
}
.chip-viz.paused span { animation: none; height: 2px; background: rgba(0,255,247,0.12); }

/* Pulse animation */
@keyframes chip-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(255,0,255,0.3); }
    50% { box-shadow: 0 0 18px rgba(255,0,255,0.6); }
}
/* Scanline overlay */
.holo-chip::after {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg,transparent,transparent 1px,rgba(0,255,247,0.015) 1px,rgba(0,255,247,0.015) 2px);
    pointer-events: none; opacity: 0; transition: opacity 0.3s;
}
.holo-chip:hover::after { opacity: 1; }
/* Mobile */
@media (max-width: 900px) {
    .holo-chip { padding: 0 3px; gap: 2px; }
    .chip-label { max-width: 30px; font-size: 0.5rem; }
    .chip-badge, .chip-viz { display: none; }
    .chip-btn {
    width: 22px;
    height: 22px; width: 22px; height: 22px; }
    .chip-btn svg { width: 14px; height: 14px; }
}
