@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Raleway:wght@300;400;600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #ff69b4;
    --secondary-color: #9c27b0;
    --accent-color: #06b6d4;
    --background-dark: #0a0a1a;
    --background-surface: rgba(20, 20, 35, 0.95);
    --card-bg: rgba(20, 20, 35, 0.85);
    --text-light: #f5f5f7;
    --text-secondary: rgba(245, 245, 247, 0.7);
    --text-accent: #ff69b4;
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, #ff6b9d, #a855f7, #06b6d4);
    --shadow-glow: 0 0 30px rgba(255, 105, 180, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    --background-dark: #f8fafc;
    --background-surface: rgba(255, 255, 255, 0.95);
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-light: #1f2937;
    --text-secondary: #6b7280;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Raleway', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
}

/* 自定义光标 */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    opacity: 0;
    mix-blend-mode: difference;
}

.custom-cursor.active {
    opacity: 1;
}

.custom-cursor.hover {
    transform: scale(2);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.95);
    box-shadow: var(--shadow-card);
}

.nav-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 105, 180, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--primary-color);
    transform: rotate(180deg);
}

.container {
    width: 100%;
    position: relative;
    z-index: 1;
}

/* 背景效果 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.stars, .twinkling {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.stars {
    background: #000 url('https://i.imgur.com/YKY28eT.png') repeat top center;
    z-index: -2;
}

.twinkling {
    background: transparent url('https://i.imgur.com/XYMF4ca.png') repeat top center;
    z-index: -1;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

/* 浮动几何图形 */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.shape {
    position: absolute;
    opacity: 0.3;
    animation: float-shape 15s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 20px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    transform: rotate(45deg);
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 30%, var(--accent-color) 30%, var(--accent-color) 70%, transparent 70%);
    top: 30%;
    right: 30%;
    animation-delay: 10s;
    border-radius: 15px;
}

.shape-4 {
    width: 120px;
    height: 4px;
    background: var(--gradient-primary);
    top: 80%;
    left: 20%;
    animation-delay: 2s;
    border-radius: 2px;
}

@keyframes float-shape {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg) scale(1.1);
        opacity: 0.6;
    }
}

/* 龙的SVG动画 */
.dragon-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.6;
    z-index: -1;
}

.dragon-svg {
    width: 100%;
    height: 100%;
}

.dragon-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 5s linear forwards infinite alternate;
    filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.8));
}

@keyframes dash {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.name-container {
    position: relative;
    margin-bottom: 2rem;
}

.name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.7),
                 0 0 20px rgba(255, 105, 180, 0.5),
                 0 0 30px rgba(255, 105, 180, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

.pink {
    color: var(--primary-color);
    display: inline-block;
    animation: bounce-in 1s ease-out;
}

.dragon {
    color: var(--text-light);
    display: inline-block;
    animation: bounce-in 1s ease-out 0.5s both;
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tagline {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 3px;
    opacity: 0.8;
    margin-bottom: 1rem;
    animation: fade-in-up 1s ease-out 1s both;
}

.typing-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    animation: fade-in-up 1s ease-out 1.5s both;
}

.cursor-blink {
    animation: blink 1s infinite;
}

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

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 105, 180, 0.7),
                     0 0 20px rgba(255, 105, 180, 0.5),
                     0 0 30px rgba(255, 105, 180, 0.3);
    }
    to {
        text-shadow: 0 0 15px rgba(255, 105, 180, 0.9),
                     0 0 25px rgba(255, 105, 180, 0.7),
                     0 0 35px rgba(255, 105, 180, 0.5),
                     0 0 45px rgba(255, 105, 180, 0.3);
    }
}

/* About Section */
.about-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.card-content {
    padding: 3rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
}

.avatar {
    flex-shrink: 0;
    position: relative;
}

.avatar-placeholder {
    width: 140px;
    height: 140px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 3.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.avatar-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 105, 180, 0.5), transparent);
    animation: rotate 3s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.info {
    flex-grow: 1;
}

.info h2 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1.5rem;
    color: var(--text-accent);
    font-size: 2rem;
    position: relative;
}

.info h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.info p {
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.skill-tag {
    background: rgba(255, 105, 180, 0.1);
    border: 1px solid rgba(255, 105, 180, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-tag:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--background-surface);
    color: var(--text-light);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-link[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
}

/* Projects Section */
.projects-section {
    min-height: 100vh;
    padding: 6rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: var(--text-accent);
    margin-bottom: 3rem;
    position: relative;
}

.projects-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.project-card:hover::before {
    opacity: 0.05;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.project-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.project-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.project-icon.pixelverse {
    background: linear-gradient(135deg, #FF47A3, #47D1FF);
}

.project-icon.watchtheme {
    background: linear-gradient(135deg, #007AFF, #5856D6);
}

.app-icon-img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
    z-index: 2;
    position: relative;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
    flex-shrink: 0;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #000, #333);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.app-store-btn:hover {
    background: linear-gradient(135deg, #333, #555);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.app-store-btn i {
    font-size: 1rem;
}

.project-badge {
    background: rgba(255, 105, 180, 0.2);
    border: 1px solid rgba(255, 105, 180, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.icon-inner {
    font-size: 2rem;
    color: white;
    z-index: 2;
    position: relative;
}

.icon-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: inherit;
    filter: blur(15px);
    opacity: 0.7;
    z-index: 1;
}

.project-content {
    padding: 0 2rem 2rem;
    text-align: left;
    position: relative;
    z-index: 1;
}

.project-title-row {
    margin-bottom: 0.5rem;
}

.project-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--text-light);
    margin: 0;
}

.project-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-card:hover .project-link {
    color: var(--text-light);
    transform: translateX(10px);
}

.project-card:hover .app-store-btn {
    background: var(--gradient-primary);
    color: white;
}

.project-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(20px);
    z-index: -1;
}

.project-card:hover .project-glow {
    opacity: 0.1;
}

/* 响应式设计 - 项目区域调整 */
@media (max-width: 768px) {
    .project-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .header-right {
        align-items: center;
        flex-direction: row;
        gap: 1rem;
    }
    
    .project-badge {
        order: -1;
    }
}

/* Contact Section */
.contact-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
}

.contact-container h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: var(--text-accent);
    margin-bottom: 1rem;
}

.contact-container p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-btn.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
}

.contact-btn.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.4);
}

.contact-btn.secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--border-color);
}

.contact-btn.secondary:hover {
    background: var(--card-bg);
    transform: translateY(-5px);
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-accent);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* 音乐控制 */
.music-control {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    z-index: 1000;
}

.music-control:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-section {
        padding: 1rem;
    }
    
    .name {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    
    .card-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .info h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .projects-section h2 {
        font-size: 2rem;
    }
    
    .contact-container h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .project-card {
        min-height: 350px;
    }
    
    .music-control {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }
}

/* 额外的动画效果 */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.avatar-placeholder:hover {
    animation: pulse 2s infinite;
}

/* 主题切换动画 */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card, .navbar, .music-control {
    transition: background 0.3s ease, border-color 0.3s ease;
}