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

body {
    font-family: 'Poppins', sans-serif;
    color: #f5f5f5;
    background-color: #0c113d;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64c0ff;
}

.navbar.scrolled {
    background: rgba(12, 17, 61, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: #f5f5f5;
    margin-left: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #64c0ff;
}

/* Hero section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/hero-bg.png') center/cover no-repeat;
    z-index: -3;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 10%, rgba(36, 51, 115, 0.5) 90%);
    z-index: -2;
}

#network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #d0d7ff;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    background: linear-gradient(45deg, #5f67f0, #64c0ff);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
    padding: 100px 80px;
    background-color: #0c113d;
}

.section:nth-of-type(even) {
    background-color: #0f1646;
}

.section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #64c0ff;
}

.section p {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    /* 更亮的文字颜色，提升暗色背景的可读性 */
    color: #e5e7ff;
    line-height: 1.8;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature {
    background-color: #1a2365;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.feature .icon {
    font-size: 50px;
    color: #64c0ff;
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #5f67f0;
}

.feature p {
    /* 更亮的特性描述文本颜色 */
    color: #ecedff;
    font-size: 0.95rem;
}

/* Cases */
.cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.case-card {
    background: radial-gradient(circle at top left, #5f67f0, #343a79);
    padding: 30px;
    border-radius: 12px;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-6px);
}

.case-card h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.case-card p {
    font-size: 0.9rem;
    color: #dde2ff;
}

.case-card .metrics {
    display: flex;
    justify-content: space-around;
    margin-top: 25px;
}

.metric {
    text-align: center;
}

.metric h4 {
    font-size: 1.8rem;
    color: #64c0ff;
    margin-bottom: 5px;
}

.metric span {
    font-size: 0.8rem;
    color: #d0d7ff;
}

/* Team */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.team-member {
    background-color: #151c4a;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    width: 280px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-6px);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #5f67f0;
}

.team-member h4 {
    margin-bottom: 5px;
    font-size: 1.3rem;
    color: #64c0ff;
}

.team-member span {
    font-size: 0.9rem;
    color: #c6cef9;
}

/* Contact */
.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #64c0ff;
}

.contact-info p {
    margin-bottom: 5px;
    color: #d0d7ff;
}

.form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.form input,
.form textarea {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    background-color: #0f1646;
    color: #f5f5f5;
    resize: vertical;
    font-size: 0.95rem;
}

.form input::placeholder,
.form textarea::placeholder {
    color: #6e7ac3;
}

.form button {
    padding: 12px 40px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(45deg, #5f67f0, #64c0ff);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    .nav-links li a {
        margin-left: 15px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .section {
        padding: 80px 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .btn {
        padding: 10px 25px;
    }
    .nav-links li a {
        margin-left: 10px;
    }
}