/* 本地字体定义 */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: local('Inter Bold'), local('Inter-Bold'),
         url('./fonts/Inter-Bold.woff2') format('woff2'),
         url('./fonts/Inter-Bold.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: local('Roboto Light'), local('Roboto-Light'),
         url('./fonts/Roboto-Light.woff2') format('woff2'),
         url('./fonts/Roboto-Light.woff') format('woff');
    font-display: swap;
}

/* 基础样式 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #F5F5F5;
    color: #2C3E50;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* 站点标题样式 */
.site-title {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    color: #2C3E50;
    margin-bottom: 60px;
    text-align: center;
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .site-title {
        margin-bottom: 100px;
    }
}

/* 导航栏样式 */
.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: row;
    gap: 50px;
    padding: 20px;
    flex-wrap: wrap;
}

.nav-item {
    margin: 10px;
    text-decoration: none;
    color: #2C3E50;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    min-width: 60px;
}

.nav-item i {
    font-size: 24px;
    margin-bottom: 5px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-item span {
    font-size: 14px;
}

.nav-item:hover i {
    transform: scale(1.15);
    color: #E74C3C;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .site-title {
        top: 15%;
        font-size: 2rem;
    }

    .nav-container {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        padding: 140px 20px;
        justify-content: space-between;
    }

    .nav-item {
        min-width: 45%;
        margin: 10px;
    }

    .nav-item i {
        font-size: 20px;
    }

    .nav-item span {
        font-size: 12px;
    }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .site-title {
        top: 12%;
        font-size: 1.5rem;
    }

    .nav-container {
        gap: 10px;
    }

    .nav-item {
        min-width: 45%;
        margin: 5px;
    }

    .nav-item i {
        font-size: 18px;
    }

    .nav-item span {
        font-size: 11px;
    }
}

/* 动画定义 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 粒子画布样式 */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Footer样式 */
.site-footer {
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    color: #666;
}

.site-footer p {
    margin: 5px 0;
}
