/* ========================================
   NEO·CYBER 赛博朋克个人官网样式
   配色方案：冰青 #00f0ff + 洋红 #ff0099
   ======================================== */

/* CSS 变量 - 统一霓虹色板 */
:root {
    --color-bg: #070715;
    --color-bg-light: #0f0f25;
    --color-neon-cyan: #00f0ff;
    --color-neon-magenta: #ff0099;
    --color-neon-purple: #9d00ff;
    --color-text: #e0e0ff;
    --color-text-dim: #8888aa;
    --color-glass: rgba(15, 15, 37, 0.6);
    --color-glass-border: rgba(0, 240, 255, 0.2);
    --font-primary: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Orbitron', 'Rajdhani', sans-serif;
    --shadow-neon-cyan: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 30px rgba(0, 240, 255, 0.3), 0 0 60px rgba(0, 240, 255, 0.1);
    --shadow-neon-magenta: 0 0 10px rgba(255, 0, 153, 0.5), 0 0 30px rgba(255, 0, 153, 0.3), 0 0 60px rgba(255, 0, 153, 0.1);
    --gradient-neon: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-magenta));
}

/* 重置默认样式 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    /* 自定义滚动条 */
    scrollbar-width: thin;
    scrollbar-color: var(--color-neon-cyan) var(--color-bg-light);
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}

body::-webkit-scrollbar-thumb {
    background: var(--gradient-neon);
    border-radius: 4px;
}

/* 隐藏全局默认光标 */
body,
a,
button,
input,
textarea,
* {
    cursor: none !important;
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   自定义十字星光光标（零延迟直接跟随）
   ======================================== */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--color-neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-neon-cyan), 0 0 20px var(--color-neon-cyan);
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--color-neon-cyan);
    border-radius: 50%;
    transition: width 0.15s, height 0.15s, border-color 0.15s;
    opacity: 0.6;
    z-index: 9998;
    pointer-events: none;
    will-change: transform;
}

.cursor-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
}

.cursor-crosshair::before,
.cursor-crosshair::after {
    content: '';
    position: absolute;
    background: var(--color-neon-cyan);
    box-shadow: 0 0 4px var(--color-neon-cyan);
}

.cursor-crosshair::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
}

.cursor-crosshair::after {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}

.cursor.hover .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: var(--color-neon-magenta);
    background: rgba(255, 0, 153, 0.1);
}

.cursor.hover .cursor-dot {
    background: var(--color-neon-magenta);
    box-shadow: 0 0 8px var(--color-neon-magenta), 0 0 20px var(--color-neon-magenta);
}

/* ========================================
   粒子背景画布
   ======================================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    background: rgba(7, 7, 21, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient-neon);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    box-shadow: var(--shadow-neon-cyan);
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
    box-shadow: var(--shadow-neon-magenta);
}

.logo-text {
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--color-neon-cyan);
    text-shadow: 0 0 10px var(--color-neon-cyan);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--color-text-dim);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-neon);
    transition: width 0.3s ease;
    box-shadow: var(--shadow-neon-cyan);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-neon-cyan);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 汉堡菜单（移动端） */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--color-neon-cyan);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero 首屏区域
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
}

.hero-subtitle-top {
    font-family: var(--font-display);
    color: var(--color-neon-cyan);
    font-size: 0.85rem;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* 故障艺术标题 */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: glitch 4s infinite;
    letter-spacing: 4px;
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.5));
}

.hero-title::before,
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-title::before {
    background: var(--color-neon-magenta);
    -webkit-text-fill-color: transparent;
    animation: glitch-1 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    z-index: -1;
}

.hero-title::after {
    background: var(--color-neon-cyan);
    -webkit-text-fill-color: transparent;
    animation: glitch-2 2s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    z-index: -2;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-3px, 1px); }
    94% { transform: translate(3px, -1px); }
    96% { transform: translate(-2px, 0); }
    98% { transform: translate(2px, 1px); }
}

@keyframes glitch-1 {
    0%, 90%, 100% { clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); transform: translate(0); }
    92% { clip-path: polygon(0 5%, 100% 5%, 100% 20%, 0 20%); transform: translate(-5px, 2px); }
    94% { clip-path: polygon(0 0, 100% 0, 100% 30%, 0 30%); transform: translate(3px, -1px); }
    96% { clip-path: polygon(0 10%, 100% 10%, 100% 50%, 0 50%); transform: translate(-2px, 0); }
}

@keyframes glitch-2 {
    0%, 90%, 100% { clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%); transform: translate(0); }
    92% { clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); transform: translate(5px, -2px); }
    94% { clip-path: polygon(0 70%, 100% 70%, 100% 95%, 0 95%); transform: translate(-3px, 1px); }
    96% { clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%); transform: translate(2px, 0); }
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--color-text);
    margin-top: 1rem;
    letter-spacing: 2px;
    min-height: 2.5rem;
}

.cursor-blink {
    display: inline-block;
    color: var(--color-neon-cyan);
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

/* 霓虹按钮通用样式 */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-neon);
    color: white;
    box-shadow: var(--shadow-neon-cyan);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6), 0 0 50px rgba(255, 0, 153, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-neon-cyan);
    border: 2px solid var(--color-neon-cyan);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-neon-cyan);
}

/* 滚动向下提示 */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--color-text-dim);
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin: 0 auto;
    border: 2px solid var(--color-neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scrollPulse 2s infinite;
}

.scroll-arrow i {
    font-size: 0.6rem;
    color: var(--color-neon-cyan);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scrollPulse {
    0%, 100% { box-shadow: 0 0 5px var(--color-neon-cyan); }
    50% { box-shadow: 0 0 20px var(--color-neon-cyan), 0 0 30px var(--color-neon-cyan); }
}

/* 装饰网格层 */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* ========================================
   通用板块样式
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-family: var(--font-display);
    color: var(--color-neon-cyan);
    font-size: 0.8rem;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 3px;
}

.title-accent {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    width: 80px;
    height: 3px;
    background: var(--gradient-neon);
    margin: 1rem auto 0;
    box-shadow: var(--shadow-neon-cyan);
}

/* ========================================
   关于我板块
   ======================================== */
.about {
    position: relative;
    padding: 6rem 0;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

/* 头像框 */
.about-image {
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 280px;
    height: 280px;
}

.frame-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--color-neon-cyan);
    border-radius: 12px;
    box-shadow:
        inset 0 0 20px rgba(0, 240, 255, 0.1),
        0 0 20px rgba(0, 240, 255, 0.3);
    animation: frameGlow 3s ease-in-out infinite;
}

@keyframes frameGlow {
    0%, 100% {
        box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1), 0 0 20px rgba(0, 240, 255, 0.3);
    }
    50% {
        box-shadow: inset 0 0 30px rgba(255, 0, 153, 0.15), 0 0 30px rgba(255, 0, 153, 0.4);
    }
}

.frame-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-neon);
    border-radius: 14px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(15px);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.avatar-container {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 0, 153, 0.1));
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.avatar-placeholder i {
    font-size: 6rem;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 3s ease-in-out infinite;
}

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

/* 四角装饰 */
.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--color-neon-cyan);
    border-style: solid;
}

.corner-tl {
    top: -8px;
    left: -8px;
    border-width: 2px 0 0 2px;
}

.corner-tr {
    top: -8px;
    right: -8px;
    border-width: 2px 2px 0 0;
}

.corner-bl {
    bottom: -8px;
    left: -8px;
    border-width: 0 0 2px 2px;
}

.corner-br {
    bottom: -8px;
    right: -8px;
    border-width: 0 2px 2px 0;
}

/* 关于文字 */
.about-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--color-neon-cyan);
    text-shadow: 0 0 10px var(--color-neon-cyan);
}

.about-role {
    color: var(--color-neon-magenta);
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-desc {
    color: var(--color-text-dim);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-neon-cyan);
    transition: all 0.3s;
}

.tag:hover {
    background: rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* ========================================
   作品项目板块
   ======================================== */
.projects {
    position: relative;
    padding: 6rem 0;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.project-card.featured {
    grid-column: span 1;
    border-color: var(--color-neon-magenta);
    box-shadow: 0 0 30px rgba(255, 0, 153, 0.2);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    padding: 0.3rem 0.8rem;
    background: var(--gradient-neon);
    color: white;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: var(--shadow-neon-magenta);
}

/* 流光边框动画 */
.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-neon);
    border-radius: 14px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s;
}

.project-card:hover .card-glow {
    opacity: 1;
    animation: flowBorder 2s linear infinite;
}

@keyframes flowBorder {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.project-card:hover {
    transform: translateY(-10px) rotateY(2deg) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.3);
}

/* 卡片预览图 */
.card-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--color-bg-light);
}

.preview-bg {
    width: 100%;
    height: 100%;
    position: relative;
}

.card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover .card-cover {
    transform: scale(1.05);
}

/* 粒子预览 */
.particle-preview {
    background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.15), transparent);
}

.mini-particle-canvas {
    width: 100%;
    height: 100%;
}

/* 霓虹预览 */
.neon-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(255, 0, 153, 0.2), transparent);
}

.neon-demo {
    position: relative;
    text-align: center;
}

.neon-text {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-neon-cyan);
    text-shadow:
        0 0 5px var(--color-neon-cyan),
        0 0 10px var(--color-neon-cyan),
        0 0 20px var(--color-neon-cyan),
        0 0 40px var(--color-neon-magenta);
    animation: neonFlicker 2s infinite alternate;
}

@keyframes neonFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.neon-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-image: linear-gradient(rgba(0, 240, 255, 0.3) 1px, transparent 1px);
    background-size: 100% 10px;
    transform: perspective(200px) rotateX(60deg);
    transform-origin: bottom;
}

/* 故障预览 */
.glitch-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
}

.glitch-demo {
    position: relative;
}

.glitch-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-neon-cyan);
    position: relative;
    animation: glitchDemo 2s infinite;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.glitch-title::before {
    color: var(--color-neon-magenta);
    animation: glitchLeft 1.5s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-title::after {
    color: var(--color-neon-cyan);
    animation: glitchRight 1.5s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitchDemo {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 1px); }
    94% { transform: translate(2px, -1px); }
}

@keyframes glitchLeft {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-4px, 2px); }
}

@keyframes glitchRight {
    0%, 90%, 100% { transform: translate(0); }
    94% { transform: translate(4px, -2px); }
}

/* 波形预览 */
.wave-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--color-bg-light), var(--color-bg));
}

.wave-demo {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
}

.wave-bar {
    width: 12px;
    height: var(--h, 50%);
    background: var(--gradient-neon);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    animation: waveBounce 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; }

@keyframes waveBounce {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.3); }
}

/* 卡片内容 */
.card-content {
    padding: 1.5rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.card-desc {
    color: var(--color-text-dim);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.card-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--color-neon-cyan);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-neon-cyan);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.card-link:hover {
    color: var(--color-neon-magenta);
    gap: 0.75rem;
}

.card-link i {
    transition: transform 0.3s;
}

.card-link:hover i {
    transform: translateX(3px);
}

/* ========================================
   技能板块
   ======================================== */
.skills {
    position: relative;
    padding: 6rem 0;
    z-index: 1;
}

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

.skill-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-neon-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

/* 环形进度条 */
.ring-progress {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.ring-fg {
    fill: none;
    stroke: var(--color-neon-cyan);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: 264;
    transition: stroke-dashoffset 2s ease-out;
    filter: drop-shadow(0 0 8px var(--color-neon-cyan));
}

.ring-progress[data-color="#ff0099"] .ring-fg {
    filter: drop-shadow(0 0 8px var(--color-neon-magenta));
}

.ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.ring-value {
    font-family: var(--font-display);
}

.skill-info h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--color-text);
}

.skill-info p {
    color: var(--color-text-dim);
    font-size: 0.85rem;
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* ========================================
   联系板块
   ======================================== */
.contact {
    position: relative;
    padding: 6rem 0;
    z-index: 1;
}

.contact-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--color-text-dim);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 450px;
    margin: 0 auto;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-text);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-btn:hover {
    border-color: var(--color-neon-cyan);
    background: rgba(0, 240, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.contact-btn i {
    font-size: 1.5rem;
    color: var(--color-neon-cyan);
    min-width: 40px;
    text-align: center;
}

.contact-btn div {
    text-align: left;
}

.btn-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--color-text-dim);
    margin-bottom: 0.2rem;
}

.btn-value {
    display: block;
    font-size: 1rem;
    color: var(--color-text);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    position: relative;
    padding: 3rem 0 2rem;
    background: rgba(7, 7, 21, 0.9);
    border-top: 1px solid rgba(0, 240, 255, 0.15);
    z-index: 1;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 50%;
    color: var(--color-neon-cyan);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--gradient-neon);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon-cyan);
}

.copyright {
    color: var(--color-text-dim);
    font-size: 0.9rem;
}

.copyright-sub {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ========================================
   回到顶部按钮
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-neon);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-neon-cyan);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5), 0 0 60px rgba(255, 0, 153, 0.3);
}

/* ========================================
   滚动淡入动画
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    /* 移动端显示系统光标，隐藏自定义光标 */
    .cursor,
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
    
    body,
    a,
    button,
    input,
    textarea,
    * {
        cursor: auto !important;
    }
    
    /* 导航栏 */
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: rgba(7, 7, 21, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(0, 240, 255, 0.2);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        display: block;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    /* Hero 区域 */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* 关于我 */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .image-frame {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }
    
    .about-tags {
        justify-content: center;
    }
    
    .about-role {
        justify-content: center;
    }
    
    /* 板块间距 */
    .about,
    .projects,
    .skills,
    .contact {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    /* 技能网格 */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .ring-progress {
        width: 100px;
        height: 100px;
    }
    
    /* 回到顶部按钮 */
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        letter-spacing: 2px;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* ========================================
   选中文字样式
   ======================================== */
::selection {
    background: rgba(0, 240, 255, 0.3);
    color: var(--color-neon-cyan);
}

::-moz-selection {
    background: rgba(0, 240, 255, 0.3);
    color: var(--color-neon-cyan);
}
