* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ffff;
    --secondary-color: #ff00ff;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --bg-dark: #000000;
    --bg-card: rgba(20, 20, 30, 0.8);
    --border-color: rgba(0, 255, 255, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 255, 255, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.6;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
}

.container {
    max-width: 1200px;
    width: 100%;
}

.hero-section {
    flex-direction: column;
    text-align: center;
}

.hero-title {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards, glow 2s ease-in-out infinite;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease forwards, gradientShift 3s ease infinite;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: -0.015em;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: 18px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
}

.about-card:hover::before {
    left: 100%;
}

.about-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.about-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.work-section {
    background: transparent;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.work-item {
    background: var(--bg-card);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.work-item:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 255, 255, 0.4);
    border-color: var(--primary-color);
}

.work-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.work-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.work-item:hover .work-image::after {
    left: 100%;
}

.work-item:nth-child(2) .work-image {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.work-item:nth-child(3) .work-image {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.work-item:nth-child(4) .work-image {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.work-info {
    padding: 24px;
}

.work-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.work-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-section {
    text-align: center;
}

.contact-text {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.contact-btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 980px;
    transition: all 0.3s;
    display: inline-block;
}

.contact-btn:not(.secondary) {
    background: var(--primary-color);
    color: white;
}

.contact-btn:not(.secondary):hover {
    background: #0051d5;
    transform: scale(1.05);
}

.contact-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.contact-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
}

.footer {
    background: var(--bg-white);
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    font-size: 14px;
    color: var(--text-secondary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .nav-content {
        padding: 16px 20px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .section {
        padding: 80px 20px;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.contact-btn:not(.secondary):hover {
    background: #00cccc;
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.5);
}

.contact-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.contact-btn.secondary:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.5);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 40px rgba(0, 255, 255, 0.8), 0 0 60px rgba(255, 0, 255, 0.5);
    }
}

/* Hero 按钮样式 */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.hero-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;
}

.hero-btn:hover::before {
    left: 100%;
}

.blog-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.blog-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.github-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.github-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.4);
}

.btn-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.hero-btn:hover .btn-icon {
    transform: scale(1.2) rotate(5deg);
}

.btn-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* GitHub SVG 图标样式 */
.github-btn svg {
    transition: transform 0.3s;
}

.github-btn:hover svg {
    transform: rotate(360deg);
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 按钮脉冲动画 */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.6);
    }
    100% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }
}

.blog-btn {
    animation: buttonPulse 2s ease-in-out infinite;
}

/* 按钮点击效果 */
.hero-btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* 区域介绍文字 */
.section-intro {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 卡片统计 */
.card-stats {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-item strong {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-item span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 技能部分 */
.skills-section {
    margin-top: 60px;
}

.skills-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-primary);
}

.skills-bars {
    max-width: 800px;
    margin: 0 auto;
}

.skill-bar {
    margin-bottom: 25px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.skill-bar.revealed {
    opacity: 1;
    transform: translateX(0);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

.skill-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 滚动显示动画 */
[data-scroll-reveal] {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-scroll-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 视差效果 */
.parallax-layer {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 数字计数动画 */
.stat-item strong {
    display: inline-block;
}

.counting {
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 区域过渡效果 */
.section {
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .section-intro {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .skills-bars {
        padding: 0 20px;
    }
}

/* 项目标签 */
.work-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.tag {
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    color: var(--primary-color);
    transition: all 0.3s;
}

.tag:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 3D 卡片效果 */
.about-card, .work-item {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.about-card:hover, .work-item:hover {
    transform: translateZ(20px);
}
