/* ============================================
   AIGC Portfolio - Modern Resume Website
   ============================================ */

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loading-logo {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: loadingSpin 1s linear infinite;
}

.loading-ring::before,
.loading-ring::after {
    content: '';
    position: absolute;
    border: 3px solid transparent;
    border-radius: 50%;
}

.loading-ring::before {
    inset: 8px;
    border-top-color: var(--accent);
    animation: loadingSpin 1.5s linear infinite reverse;
}

.loading-ring::after {
    inset: 16px;
    border-top-color: var(--secondary);
    animation: loadingSpin 2s linear infinite;
}

@keyframes loadingSpin {
    to { transform: rotate(360deg); }
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 20px;
}

.loading-progress {
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: loadingProgress 2s ease-out forwards;
}

@keyframes loadingProgress {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.loading-message {
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* CSS Variables */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #0ea5e9;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: rgba(15, 15, 25, 0.8);
    --bg-card-hover: rgba(25, 25, 40, 0.9);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #0ea5e9 100%);
    --gradient-card: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    --gradient-text: linear-gradient(90deg, #6366f1, #8b5cf6, #0ea5e9);
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    
    /* Typography */
    --font-primary: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Orbitron', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-glow-strong: 0 0 60px rgba(99, 102, 241, 0.5);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ============================================
   Particle Canvas Background
   ============================================ */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ============================================
   Custom Cursor
   ============================================ */
.cursor-dot, .cursor-ring {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

body:hover .cursor-ring {
    opacity: 1;
}

.cursor-hover .cursor-ring {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring {
        display: none;
    }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.logo-text-secondary {
    color: var(--text-secondary);
    font-size: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

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

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

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

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        padding: 30px;
        gap: 20px;
        transform: translateY(-150%);
        opacity: 0;
        transition: all var(--transition-base);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 40px 80px;
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.title-sub {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 10px;
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: wordReveal 0.6s ease-out forwards;
}

.title-word.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    position: relative;
    overflow: hidden;
}

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

.btn-primary::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 var(--transition-slow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-strong);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border-color);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.visual-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.visual-ring {
    position: absolute;
    border: 1px solid;
    border-radius: 50%;
    animation: ringRotate 20s linear infinite;
}

.ring-1 {
    inset: 0;
    border-color: rgba(99, 102, 241, 0.3);
}

.ring-2 {
    inset: 30px;
    border-color: rgba(139, 92, 246, 0.3);
    animation-direction: reverse;
    animation-duration: 15s;
}

.ring-3 {
    inset: 60px;
    border-color: rgba(14, 165, 233, 0.3);
    animation-duration: 25s;
}

.visual-core {
    position: absolute;
    inset: 100px;
    background: var(--gradient-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    animation: corePulse 3s ease-in-out infinite;
}

.core-text {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.visual-orbit {
    position: absolute;
    inset: 0;
    animation: ringRotate 10s linear infinite;
}

.orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
}

.dot-1 { top: 0; left: 50%; transform: translateX(-50%); }
.dot-2 { bottom: 0; left: 50%; transform: translateX(-50%); background: var(--accent); box-shadow: 0 0 20px var(--accent); }
.dot-3 { left: 0; top: 50%; transform: translateY(-50%); background: var(--secondary); box-shadow: 0 0 20px var(--secondary); }
.dot-4 { right: 0; top: 50%; transform: translateY(-50%); }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

.scroll-arrow svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

/* Floating Decorations */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 60%;
    right: -3%;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    bottom: 20%;
    left: 10%;
    animation-delay: -10s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(0, -50px) rotate(0deg); }
    75% { transform: translate(-30px, -30px) rotate(-5deg); }
}

/* Glass Morphism Enhancement */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glow Effect on Hover */
.glow-hover {
    transition: all var(--transition-base);
}

.glow-hover:hover {
    box-shadow: 
        0 0 20px rgba(99, 102, 241, 0.3),
        0 0 40px rgba(99, 102, 241, 0.2),
        0 0 60px rgba(99, 102, 241, 0.1);
}

/* Magnetic Button Effect */
.magnetic-btn {
    position: relative;
    transition: transform var(--transition-fast);
}

/* Text Gradient Animation */
.gradient-text-animate {
    background: linear-gradient(
        90deg,
        var(--primary) 0%,
        var(--accent) 50%,
        var(--secondary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* Tilt Card Effect */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 60px;
    }
    
    .visual-container {
        width: 280px;
        height: 280px;
    }
    
    .visual-core {
        inset: 80px;
    }
    
    .core-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        width: 50px;
        height: 1px;
    }
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: var(--section-padding) 40px;
    position: relative;
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .section {
        padding: 80px 20px;
    }
}

/* ============================================
   About Section
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.about-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-card strong {
    color: var(--text-primary);
}

/* Profile Card */
.about-visual {
    position: sticky;
    top: 120px;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent 30%);
    animation: borderRotate 4s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.profile-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-card);
    border-radius: calc(var(--radius-lg) - 2px);
    z-index: 1;
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card > * {
    position: relative;
    z-index: 2;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: var(--gradient-primary);
    padding: 3px;
    position: relative;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder svg {
    width: 50px;
    height: 50px;
    stroke: var(--text-muted);
}

.profile-name {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.profile-role {
    color: var(--primary-light);
    font-size: 1rem;
    margin-bottom: 20px;
}

.profile-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    color: var(--primary-light);
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        position: static;
        order: -1;
    }
    
    .profile-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ============================================
   Skills Section
   ============================================ */
.skills {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 50%, var(--bg-dark) 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card > * {
    position: relative;
    z-index: 1;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.skill-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    opacity: 0.15;
}

.skill-icon svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

.aigc-icon::before { background: #6366f1; }
.aigc-icon svg { stroke: #6366f1; }

.management-icon::before { background: #10b981; }
.management-icon svg { stroke: #10b981; }

.data-icon::before { background: #0ea5e9; }
.data-icon svg { stroke: #0ea5e9; }

.learning-icon::before { background: #f59e0b; }
.learning-icon svg { stroke: #f59e0b; }

.communication-icon::before { background: #ec4899; }
.communication-icon svg { stroke: #ec4899; }

.content-icon::before { background: #8b5cf6; }
.content-icon svg { stroke: #8b5cf6; }

.skill-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.skill-tag {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.skill-card:hover .skill-tag {
    border-color: var(--primary);
    color: var(--primary-light);
}

.skill-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Experience Section
   ============================================ */
.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent), var(--secondary));
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: -50px;
    top: 5px;
    display: flex;
    align-items: center;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: all var(--transition-base);
}

.timeline-item:hover .marker-dot {
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
}

.marker-line {
    display: none;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all var(--transition-base);
}

.timeline-content:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-date {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--primary-light);
    letter-spacing: 1px;
}

.timeline-company {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.timeline-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.timeline-location svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
}

.timeline-details {
    list-style: none;
    margin-bottom: 20px;
}

.timeline-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-skills span {
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    color: var(--primary-light);
}

/* Education */
.education-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.education-title {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.education-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px 30px;
    max-width: 500px;
    transition: all var(--transition-base);
}

.education-card:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.education-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.education-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

.education-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.education-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 30px;
    }
    
    .timeline-line {
        left: 8px;
    }
    
    .timeline-marker {
        left: -30px;
    }
    
    .marker-dot {
        width: 12px;
        height: 12px;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   Projects Section
   ============================================ */
.projects {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 50%, var(--bg-dark) 100%);
}

.projects-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.project-card.hidden {
    display: none;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.ai-art { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
.ai-content { background: linear-gradient(135deg, #1a2a1a 0%, #0f2027 100%); }
.project-mgmt { background: linear-gradient(135deg, #2d1a2e 0%, #1a1a2e 100%); }
.ai-video { background: linear-gradient(135deg, #1a1a3e 0%, #16213e 100%); }
.data-analysis { background: linear-gradient(135deg, #1a2a3e 0%, #0f2027 100%); }
.prompt-eng { background: linear-gradient(135deg, #2e1a1a 0%, #1a1a2e 100%); }

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
}

.placeholder-content svg {
    width: 50px;
    height: 50px;
    opacity: 0.5;
}

.placeholder-content span {
    font-size: 0.9rem;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-btn {
    padding: 12px 25px;
    background: white;
    color: var(--primary);
    border-radius: var(--radius-md);
    font-weight: 500;
    transform: translateY(20px);
    transition: transform var(--transition-base);
}

.project-card:hover .view-btn {
    transform: translateY(0);
}

.project-info {
    padding: 25px;
}

.project-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Contact Section
   ============================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary);
}

.method-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.method-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.method-value {
    font-size: 1rem;
    color: var(--text-primary);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.form-group input:focus ~ .input-focus-border,
.form-group textarea:focus ~ .input-focus-border {
    width: 100%;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
}

@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 60px 40px 30px;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-note {
    margin-top: 8px;
    color: var(--primary-light) !important;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 25px;
    }
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-glow);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-strong);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

/* ============================================
   Animations
   ============================================ */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

@keyframes corePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Delay classes */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Social Links
   ============================================ */
.social-links {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.social-links h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 400;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-link:hover .social-icon {
    color: var(--primary);
}

.social-icon.bilibili:hover {
    color: #00a1d6;
}

.social-icon.github:hover {
    color: #fff;
}

.social-link span:nth-child(2) {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.social-stat {
    font-size: 0.7rem;
    color: var(--primary-light);
}

.method-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.method-icon.wechat {
    background: rgba(7, 193, 96, 0.1);
}

.method-icon.wechat svg {
    stroke: #07c160;
}

.method-icon.phone {
    background: rgba(59, 130, 246, 0.1);
}

.method-icon.phone svg {
    stroke: #3b82f6;
}

.method-icon.qq {
    background: rgba(0, 170, 238, 0.1);
}

.method-icon.qq svg {
    stroke: #00aaee;
}

/* No-link style for social links */
.social-link.no-link {
    cursor: default;
}

.social-link.no-link:hover {
    transform: none;
}

/* ============================================
   Project Modal
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-base);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-image {
    min-height: 300px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-info {
    padding: 40px;
}

.modal-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.modal-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    gap: 10px;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    min-width: 70px;
}

.detail-value {
    color: var(--text-primary);
    font-size: 0.85rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.modal-tags span {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.modal-actions {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        min-height: 200px;
    }
    
    .modal-info {
        padding: 25px;
        max-height: 50vh;
        overflow-y: auto;
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-desc {
        word-break: break-word;
    }
    
    .detail-value {
        word-break: break-word;
    }
}

/* ============================================
   WeChat Modal
   ============================================ */
.wechat-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.wechat-modal.active {
    opacity: 1;
    visibility: visible;
}

.wechat-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.wechat-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.wechat-modal.active .wechat-content {
    transform: scale(1);
}

.wechat-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.wechat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.wechat-close svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-primary);
}

.wechat-qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-placeholder {
    text-align: center;
    padding: 20px;
}

.qrcode-placeholder svg {
    width: 80px;
    height: 80px;
    stroke: var(--text-muted);
    margin-bottom: 15px;
}

.qrcode-placeholder p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.qrcode-placeholder .wechat-id {
    color: #07c160;
    font-weight: 500;
    margin-top: 5px;
}

.wechat-tip {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   Enhanced Skill Cards
   ============================================ */
.skill-experience {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.exp-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.exp-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-light);
}

.exp-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============================================
   Achievement Badges
   ============================================ */
.achievement-badges {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.achievement-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    color: #10b981;
}

.achievement-badge svg {
    width: 14px;
    height: 14px;
}

.achievement-badge.highlight {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

/* ============================================
   Online Status
   ============================================ */
.online-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-xl);
    margin-top: 15px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.online-status span {
    font-size: 0.85rem;
    color: #10b981;
}

/* ============================================
   Mobile Enhanced Styles
   ============================================ */

/* 小屏幕手机 (< 375px) */
@media (max-width: 374px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .title-sub {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .profile-card {
        padding: 25px 20px;
    }
    
    .profile-avatar {
        width: 90px;
        height: 90px;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .method-info {
        align-items: center;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 标准手机 (375px - 480px) */
@media (max-width: 480px) {
    /* Hero 移动端优化 */
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .hero-description {
        font-size: 1rem;
        text-align: left;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 30px;
    }
    
    .visual-container {
        width: 220px;
        height: 220px;
    }
    
    .visual-core {
        inset: 60px;
    }
    
    .core-text {
        font-size: 2rem;
    }
    
    .visual-ring {
        display: none;
    }
    
    .orbit-dot {
        width: 8px;
        height: 8px;
    }
    
    /* 滚动指示器 */
    .scroll-indicator {
        display: none;
    }
    
    /* Section 优化 */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-tag {
        font-size: 0.75rem;
    }
    
    /* About 卡片 */
    .about-card {
        padding: 20px;
    }
    
    .about-card h3 {
        font-size: 1.1rem;
    }
    
    .about-card p {
        font-size: 0.9rem;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 15px;
    }
    
    .card-icon svg {
        width: 20px;
        height: 20px;
    }
    
    /* Profile Card */
    .profile-card {
        padding: 30px 20px;
    }
    
    .profile-name {
        font-size: 1.3rem;
    }
    
    .profile-tags {
        gap: 8px;
    }
    
    .tag {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    .achievement-badges {
        justify-content: center;
    }
    
    .online-status {
        justify-content: center;
    }
    
    /* Skills */
    .skill-card {
        padding: 25px 20px;
    }
    
    .skill-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .skill-title {
        font-size: 1.1rem;
    }
    
    .skill-description {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .skill-tags {
        justify-content: center;
    }
    
    .skill-experience {
        justify-content: space-around;
    }
    
    .exp-number {
        font-size: 1rem;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 25px;
    }
    
    .timeline-line {
        left: 6px;
    }
    
    .timeline-marker {
        left: -25px;
    }
    
    .marker-dot {
        width: 10px;
        height: 10px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-title {
        font-size: 1.1rem;
    }
    
    .timeline-details li {
        font-size: 0.9rem;
    }
    
    .timeline-skills {
        justify-content: flex-start;
    }
    
    /* Education */
    .education-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    /* Projects */
    .projects-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .project-card {
        border-radius: var(--radius-md);
    }
    
    .project-image {
        height: 160px;
    }
    
    .project-info {
        padding: 20px;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-desc {
        font-size: 0.85rem;
    }
    
    /* Contact */
    .contact-methods {
        gap: 20px;
    }
    
    .contact-method {
        padding: 15px;
        background: rgba(255, 255, 255, 0.02);
        border-radius: var(--radius-md);
    }
    
    .method-icon {
        width: 45px;
        height: 45px;
    }
    
    .method-value {
        font-size: 0.95rem;
    }
    
    .method-hint {
        font-size: 0.7rem;
    }
    
    .social-links h4 {
        text-align: center;
    }
    
    .social-link {
        padding: 12px 8px;
    }
    
    .social-icon svg {
        width: 20px;
        height: 20px;
    }
    
    /* Form */
    .contact-form-wrapper {
        padding: 25px 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 16px; /* 防止iOS自动缩放 */
    }
    
    /* Footer */
    .footer {
        padding: 30px 20px 20px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-info {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-desc {
        font-size: 0.9rem;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
    
    /* WeChat Modal */
    .wechat-content {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .wechat-qrcode {
        width: 180px;
        height: 180px;
    }
    
    .qrcode-placeholder svg {
        width: 60px;
        height: 60px;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* 平板手机 (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 30px 60px;
    }
    
    .hero-description {
        text-align: center;
    }
    
    .visual-container {
        width: 280px;
        height: 280px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        gap: 40px;
    }
    
    .profile-card {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* 横屏手机 */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 30px 40px;
        flex-direction: row;
        text-align: left;
    }
    
    .hero-content {
        flex: 1;
    }
    
    .hero-visual {
        flex: 0 0 250px;
        order: 1;
    }
    
    .visual-container {
        width: 200px;
        height: 200px;
    }
    
    .visual-core {
        inset: 50px;
    }
    
    .core-text {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: row;
        width: auto;
    }
    
    .btn {
        width: auto;
    }
    
    .hero-stats {
        flex-direction: row;
    }
    
    .stat-divider {
        display: block;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 增大触摸目标 */
    .nav-link {
        padding: 12px 8px;
    }
    
    .filter-btn {
        min-height: 44px;
    }
    
    .btn {
        min-height: 48px;
    }
    
    .social-link {
        min-height: 80px;
    }
    
    /* 移除hover效果 */
    .project-card:hover {
        transform: none;
    }
    
    .skill-card:hover {
        transform: none;
    }
    
    .about-card:hover {
        transform: none;
    }
    
    /* 点击反馈 */
    .btn:active {
        transform: scale(0.98);
    }
    
    .project-card:active,
    .skill-card:active {
        transform: scale(0.99);
    }
    
    .social-link:active {
        background: rgba(99, 102, 241, 0.15);
    }
    
    /* 隐藏自定义鼠标 */
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* 高对比度/辅助功能 */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255, 255, 255, 0.3);
        --text-secondary: #c0c0c0;
    }
    
    .btn-primary {
        border: 2px solid white;
    }
}

/* 暗色模式偏好 */
@media (prefers-color-scheme: dark) {
    /* 已默认深色主题，无需额外样式 */
}

/* 打印样式 */
@media print {
    .navbar,
    .hero-visual,
    .particles-canvas,
    .floating-shapes,
    .noise-overlay,
    .back-to-top,
    .cursor-dot,
    .cursor-ring,
    .scroll-indicator,
    .modal,
    .wechat-modal,
    .loading-screen {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        padding: 30px 20px;
        page-break-inside: avoid;
    }
    
    .skill-card,
    .about-card,
    .timeline-content,
    .project-card {
        border: 1px solid #ccc;
        background: white;
    }
}

/* 安全区域适配 (iPhone X 等) */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
    
    .back-to-top {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }
    
    .nav-links {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
