/* ========== 小球样式 开始 ========== */
/* 圆形糖果样式 */
.falling-ball {
    position: fixed !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    z-index: 999999 !important;
    pointer-events: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(255, 100, 150, 0.3) 0%, transparent 50%),
        conic-gradient(
            from 0deg,
            #ff6b9d 0deg,
            #ff9a56 60deg,
            #ffd93d 120deg,
            #6bcb77 180deg,
            #4d96ff 240deg,
            #9b59b6 300deg,
            #ff6b9d 360deg
        ) !important;
    box-shadow: 
        0 4px 15px rgba(255, 107, 157, 0.5),
        0 2px 8px rgba(255, 154, 86, 0.3),
        inset -4px -4px 10px rgba(0, 0, 0, 0.15),
        inset 3px 3px 8px rgba(255, 255, 255, 0.4) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    transition: box-shadow 0.1s !important;
}

/* 糖果光泽 */
.falling-ball::before {
    content: '' !important;
    position: absolute !important;
    top: 4px !important;
    left: 6px !important;
    width: 12px !important;
    height: 8px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border-radius: 50% !important;
    transform: rotate(-20deg) !important;
}

/* 糖果纹理 */
.falling-ball::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    background: 
        radial-gradient(circle at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.1) 100%) !important;
    animation: candyShine 2s ease-in-out infinite !important;
}

@keyframes candyShine {
    0%, 100% {
        background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.1) 100%);
    }
    50% {
        background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(255, 255, 255, 0.15) 100%);
    }
}

/* ========== 小球样式 结束 ========== */

.slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #0a0e1a;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.85) 0%, rgba(20, 40, 80, 0.75) 50%, rgba(40, 60, 100, 0.7) 100%);
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    padding: 120px 20px 60px;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.slogan {
    font-size: 36px;
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.95;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

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

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff 0%, #7c3aed 100%);
    border-radius: 2px;
}

.works-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 40px;
}

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

.work-card {
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.4);
}

.work-image {
    width: 100%;
    min-height: 320px;
    max-height: 400px;
    background-color: rgba(15, 23, 42, 0.95);
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(15, 23, 42, 0.1) 0%, 
        rgba(15, 23, 42, 0.2) 50%, 
        rgba(15, 23, 42, 0.3) 100%);
    border-radius: 20px;
    z-index: 1;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.work-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(15px);
    border-radius: 0 0 20px 20px;
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    z-index: 2;
    transition: all 0.3s ease;
}

.work-card:hover .work-content {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
}

.work-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #00d4ff;
    position: relative;
    padding-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.work-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #7c3aed);
    border-radius: 2px;
}

.work-description {
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 15px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.5);
}

.about-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 40px 100px;
}

.about-section::before {
    content: '';
    display: block;
    height: 80px;
    margin-top: -80px;
    visibility: hidden;
}

.about-container {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.about-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.about-content {
    font-size: 18px;
    line-height: 2;
    color: #cbd5e1;
    margin-bottom: 40px;
}

.about-content p {
    margin-bottom: 15px;
}

.skills-title {
    font-size: 24px;
    color: #00d4ff;
    margin-bottom: 20px;
    font-weight: bold;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
    color: #00d4ff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.social-title {
    font-size: 24px;
    color: #00d4ff;
    margin-bottom: 20px;
    font-weight: bold;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.social-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: inherit;
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.zhihu {
    background: linear-gradient(135deg, #0084ff 0%, #0066cc 100%);
}

.cnblogs {
    background: linear-gradient(135deg, #2a579a 0%, #1e3d6f 100%);
}

.wangyi {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
}

.bilibili {
    background: linear-gradient(135deg, #fb7299 0%, #ff6699 100%);
}

.yidian {
    background: linear-gradient(135deg, #ff6b35 0%, #e55100 100%);
}

.wechat {
    background: linear-gradient(135deg, #07c160 0%, #059645 100%);
}

.social-info {
    flex: 1;
}

.social-name {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 3px;
}

.social-desc {
    font-size: 13px;
    color: #94a3b8;
}

.footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.footer-text {
    margin-bottom: 10px;
    opacity: 0.9;
}

.banquan {
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.banquan:hover {
    opacity: 1;
    text-decoration: underline;
}

.slide-indicators {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .slogan {
        font-size: 26px;
    }

    .section-title {
        font-size: 32px;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .work-card {
        margin: 0 10px;
    }

    .work-title {
        font-size: 18px;
    }

    .work-description {
        font-size: 13px;
    }

    .work-image {
        min-height: 280px;
        max-height: 350px;
        padding: 20px;
    }

    .work-content {
        padding: 15px;
    }

    .work-title {
        font-size: 16px;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .work-description {
        font-size: 12px;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .about-section {
        padding: 40px 15px 80px;
    }

    .about-container {
        padding: 25px;
    }

    .about-title {
        font-size: 28px;
    }

    .about-content {
        font-size: 16px;
    }

    .social-links {
        grid-template-columns: 1fr;
    }
}

#animalCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
