:root {
    --main-bg-color: #0c2340; /* 深蓝色背景 */
    --accent-color: #5a9cf8; /* 主题色 - 您指定的蓝色 */
    --accent-hover: #7badfa; /* 主题色悬停效果 - 稍亮版本 */
    --text-color: #ffffff;
    --card-bg: rgba(16, 45, 80, 0.6); /* 半透明卡片背景 */
    --gradient-start: #5a9cf8; /* 渐变开始 - 主题色 */
    --gradient-end: #3988f7; /* 渐变结束 - 深一点的主题色 */
    --light-accent: #8cbbfa; /* 更亮的主题色变体 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--main-bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(10px) translateX(-15px);
    }
    75% {
        transform: translateY(-15px) translateX(-5px);
    }
}

.header {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(
        circle at center,
        rgba(90, 156, 248, 0.1) 0%,
        rgba(12, 35, 64, 0.8) 60%
    );
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    color: var(--accent-color);
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0) translateX(-50%);
    }
    50% {
        transform: translateY(-20px) translateX(-50%);
    }
}

.works-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    color: var(--accent-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
}

.work-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.card {
    width: 100%;
    max-width: 450px;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(90, 156, 248, 0.2);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(90, 156, 248, 0.4);
    border: 1px solid rgba(90, 156, 248, 0.5);
}

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

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, var(--card-bg), transparent);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.card-description {
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

.card-link {
    display: inline-block;
    background: var(--accent-color);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-link:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(90, 156, 248, 0.5);
}

footer {
    text-align: center;
    padding: 50px 20px;
    background: rgba(12, 35, 64, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(90, 156, 248, 0.2);
}

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

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(90, 156, 248, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(90, 156, 248, 0.2);
}

.social-icon:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.social-icon i {
    color: white;
    font-size: 20px;
}

.copyright {
    opacity: 0.7;
    color: #d1e3ff;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .works-section {
        padding: 50px 20px;
    }

    .section-title {
        font-size: 2rem;
    }
}
