body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #400074;
}

header {
    background-color: #400074;
    padding: 0 1rem;
    height: 40px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
    max-width: 903px;
    margin: 0 auto;
}

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: opacity 0.3s ease;
    line-height: 40px;
}

nav ul li a:hover {
    opacity: 0.8;
}

	.logo {
	    display: flex;
	    align-items: center;
	    gap: 8px;
	    font-size: 1.5rem;
	    font-weight: bold;
	    text-decoration: none;
	    color: white;
	    line-height: 40px;
	}

	.logo-img {
	    width: 32px;
	    height: 32px;
	    border-radius: 8px;
	}

	.logo-text {
	    line-height: 1;
	}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #400074;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: white;
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.hero button {
    background-color: white;
    color: #0582FD;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
    font-weight: bold;
}

.hero button:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: #0582FD;
}

.content-section {
    background-color: white;
    color: #333;
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.content-section p {
    font-size: 1.2rem;
    line-height: 1.6;
}

footer {
    background-color: black;
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.legal-content {
    max-width: 800px;
    width: 90%;
    margin: 2rem auto;
    background-color: white;
    color: #333;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 903px) {
    nav {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 1rem;
    }

    nav ul {
        flex-direction: column;
        margin-top: 1rem;
        height: auto;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }

    nav ul li a, .logo {
        line-height: normal;
    }

	.logo {
	    font-size: 1.2rem;
	}

	.logo-img {
	    width: 24px;
	    height: 24px; /* 在小屏幕上稍微缩小logo */
	}
}
