/* 个人博客样式 - 苹果官网风格 */

:root {
    --primary: #0071e3;
    --primary-dark: #0056b3;
    --bg: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #fafafa;
    --text: #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #a1a1a6;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
}

/* 背景装饰 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-decoration::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0,113,227,0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.bg-decoration::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(102,126,234,0.06) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

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

/* 导航 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: var(--shadow-sm);
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--bg-secondary);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
}

.hero-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: white;
    font-weight: 700;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
    animation: avatarFloat 3s ease-in-out infinite;
    overflow: hidden;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.hero h1 {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .title {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.hero .subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-contact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,113,227,0.3);
}

.contact-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text);
}

.contact-btn.secondary:hover {
    background: #e8e8ed;
}

/* Sections */
section {
    padding: 100px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

section.dark {
    background: var(--bg-secondary);
    max-width: 100%;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* 关于我 */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.about-card {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.about-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.about-card .icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* 技能 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

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

.skill-icon {
    font-size: 36px;
    margin-bottom: 16px;
    display: block;
}

.skill-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.skill-bar {
    background: var(--bg-secondary);
    height: 6px;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1s cubic-bezier(0.1, 0.45, 0.45, 0.94);
}

/* 项目 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.project-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(245,245,247,0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.5);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
    background-size: 300% 100%;
    animation: gradientBorder 3s linear infinite;
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

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

.project-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(79, 172, 254, 0.2) 0%, transparent 40%);
    z-index: 1;
}

.project-img .gradient-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    z-index: 0;
}

.project-img .gradient-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.project-img .gradient-bg.g1 { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
}
.project-img .gradient-bg.g2 { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); 
}
.project-img .gradient-bg.g3 { 
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); 
}
.project-img .gradient-bg.g4 { 
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); 
}

.project-content {
    padding: 28px;
}

.project-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: gap 0.2s ease;
}

.project-link:hover {
    gap: 10px;
}

/* 工作经验 */
.experience-list {
    max-width: 800px;
    margin: 0 auto;
}

.exp-card {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.exp-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.exp-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.exp-period {
    background: var(--bg-secondary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
}

.exp-position {
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
}

.exp-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* 证书 */
.cert-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.cert-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #1a1a1a;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.cert-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* 联系表单 */
.contact-form {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-tertiary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg);
    box-shadow: 0 0 0 4px rgba(0,113,227,0.1);
}

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

.contact-form button {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 17px;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,113,227,0.3);
}

.success {
    display: none;
    text-align: center;
    padding: 20px;
    color: #34c759;
    font-weight: 600;
}

/* 联系信息 */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.contact-info-item {
    text-align: center;
}

.contact-info-item .label {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-info-item .value {
    font-size: 16px;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 60px 24px;
    text-align: center;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-links a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

footer p {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-avatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    section {
        padding: 60px 20px;
    }
    
    .contact-form {
        padding: 32px 24px;
    }
    
    .about-content,
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 社交图标卡片 */
.social-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.social-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px 32px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.social-card::after {
    content: attr(data-value);
    position: absolute;
    bottom: 10px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--primary);
    font-weight: 600;
    text-align: center;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-card:hover::after,
.social-card:active::after {
    opacity: 1;
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-tertiary);
}

.social-card:active {
    background: var(--primary);
    color: white;
}

.social-card:active::after {
    color: white;
}

.social-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.social-label {
    font-size: 14px;
    opacity: 0.7;
}

/* 复制提示 */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--text);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    z-index: 1000;
    animation: fadeInOut 2s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    85% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

/* AI 署名 */
.ai-credit {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    opacity: 0.7;
}

/* ==================== 酷炫增强效果 ==================== */

/* 动态渐变背景 */
.gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(240, 147, 251, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 60%, rgba(79, 172, 254, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
    animation: meshMove 20s ease-in-out infinite;
}

@keyframes meshMove {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(3deg); }
}

/* 浮动光球 */
.floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 15s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* 卡片悬停发光效果 */
.skill-card, .project-card, .exp-card, .about-card, .social-card {
    position: relative;
    overflow: hidden;
}

.skill-card::before,
.project-card::before,
.exp-card::before,
.about-card::before,
.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.skill-card:hover::before,
.project-card:hover::before,
.exp-card:hover::before,
.about-card:hover::before,
.social-card:hover::before {
    left: 100%;
}

/* 发光边框 */
.glow-border {
    position: relative;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #667eea, #f093fb, #4facfe, #667eea);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: borderGlow 2s linear infinite;
}

.glow-border:hover::after {
    opacity: 1;
}

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

/* 文字渐变 */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 扫描线效果 */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.01) 2px,
        rgba(0, 0, 0, 0.01) 4px
    );
}

/* 科技感装饰线 */
.tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    height: 1px;
    width: 100px;
    opacity: 0.3;
}

.tech-line::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: techPulse 2s infinite;
}

@keyframes techPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.5); }
}

/* 头像光晕 */
.hero-avatar::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* 按钮悬停效果 */
.contact-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-btn::before {
    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 ease;
}

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

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.3);
}

/* 数字跳动动画 */
.counter {
    display: inline-block;
    animation: counterPulse 0.3s ease;
}

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

/* 页面进入动画 */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

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

/* 交错动画延迟 */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* 徽章悬停效果 */
.cert-badge {
    transition: all 0.3s ease;
    position: relative;
}

.cert-badge:hover {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 5px 20px rgba(0, 113, 227, 0.3);
}

/* 技能条炫酷效果 */
.skill-fill {
    position: relative;
    overflow: hidden;
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: skillShine 2s infinite;
}

@keyframes skillShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 导航栏科技感 */
nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 113, 227, 0.3), transparent);
}

/* Section 标题装饰 */
.section-container h2 {
    position: relative;
    display: inline-block;
}

.section-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #f093fb);
    border-radius: 2px;
}

/* 鼠标跟随光点 */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* ==================== 悬浮技能泡 ==================== */
.skills-bubbles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
    min-height: 400px;
    position: relative;
}

.skill-bubble {
    width: var(--size, 120px);
    height: var(--size, 120px);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    animation: floatBubble 6s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    transition: transform 0.3s ease;
}

.skill-bubble:hover {
    transform: scale(1.15) !important;
    z-index: 100;
}

@keyframes floatBubble {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-15px) rotate(3deg); 
    }
    50% { 
        transform: translateY(0) rotate(0deg); 
    }
    75% { 
        transform: translateY(10px) rotate(-3deg); 
    }
}

.bubble-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.9) 0%, 
        rgba(245,245,247,0.8) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.1),
        inset 0 2px 10px rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.skill-bubble:hover .bubble-inner {
    border-color: var(--color);
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.15),
        0 0 30px color-mix(in srgb, var(--color) 30%, transparent),
        inset 0 2px 10px rgba(255,255,255,0.5);
}

.bubble-icon {
    font-size: calc(var(--size, 120px) * 0.3);
    margin-bottom: 5px;
}

.bubble-name {
    font-size: calc(var(--size, 120px) * 0.12);
    font-weight: 600;
    color: var(--text);
    text-align: center;
    line-height: 1.2;
}

.bubble-level {
    font-size: calc(var(--size, 120px) * 0.1);
    color: var(--color);
    font-weight: 700;
    margin-top: 2px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.skill-bubble:hover .bubble-level {
    opacity: 1;
    transform: translateY(0);
}

/* 气泡光晕 */
.bubble-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: var(--color);
    filter: blur(20px);
    opacity: 0.3;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.3; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.5; 
    }
}

/* 气泡背景装饰 */
.skills-bubbles::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102,126,234,0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .skills-bubbles {
        gap: 20px;
    }
    
    .skill-bubble {
        width: 100px !important;
        height: 100px !important;
    }
    
    .bubble-icon {
        font-size: 30px;
    }
    
    .bubble-name {
        font-size: 12px;
    }
}
