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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a192f;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.container {
    max-width: 1200px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

.glowing-text {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #64ffda;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(100, 255, 218, 0.8),
                     0 0 30px rgba(100, 255, 218, 0.6);
    }
}

.typing-text {
    font-size: 1.2rem;
    color: #8892b0;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #64ffda;
    animation: typing 3.5s steps(30, end),
               blink-caret 0.75s step-end infinite;
    margin: 0 auto;
    max-width: fit-content;
    height: 1.5rem; /* 设置固定高度 */
    display: inline-block; /* 确保元素保持在同一行 */
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #64ffda }
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 改为固定的3列 */
    gap: 2rem;
    padding: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 为了确保在小屏幕上的响应式布局，添加媒体查询 */
@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr); /* 平板上显示2列 */
    }
}

@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr; /* 手机上显示1列 */
    }
}

/* 调整卡片最小宽度 */
.card {
    min-width: 250px; /* 设置最小宽度 */
    background: rgba(17, 34, 64, 0.8);
    border-radius: 15px;
    padding: 2rem;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(100, 255, 218, 0.4);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
}

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

.icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #64ffda;
}

.card-content p {
    color: #8892b0;
}

.card-hover-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.card:hover .card-hover-effect {
    width: 200%;
    height: 200%;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .glowing-text {
        font-size: 2rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
}
