/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: url('your-background-image.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #1d1d1f;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.fade-in {
    opacity: 1;
}

body.fade-out {
    opacity: 0;
}

/* Header Styles */
header {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    padding: 2em 0;
    margin-bottom: 1.5em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

/* Navigation Styles */
nav {
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2em;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 1em 2em;
    display: block;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    color: #1e8af2;
    border-bottom: 2px solid #1e8af2;
}

/* Main Content Styles */
main {
    padding: 2em 1em;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

main h2 {
    font-size: 2em;
    font-weight: 700;
    color: #1d1d1f;
    margin-top: 0;
    margin-bottom: 0.5em;
}

main p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
    word-wrap: break-word; /* 强制长单词换行 */
    word-break: break-word; /* 适应更多浏览器 */
    hyphens: auto; /* 自动断字 */
}

/* Video Styles */
video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1.5em;
}

/* Card Styles */
.card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 1.5em;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: auto;
}

.card-content {
    padding: 1.5em;
}

.card-content h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
    color: #1e8af2;
    font-size: 1.5em;
}

.card-content p {
    margin: 0;
    font-size: 1em;
    color: #333;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Button Styles */
.button {
    display: inline-block;
    padding: 0.75em 1.5em;
    background-color: #1e8af2;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0a74da;
}

/* Responsive Image Styles */
img.responsive {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 2em 0;
    background-color: rgba(255, 255, 255, 0.8);
    color: #6e6e73;
    margin-top: 2em;
    border-top: 1px solid #d2d2d7;
}

footer p {
    margin: 0;
    font-size: 0.9em;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li a {
        padding: 0.8em 1.5em;
    }

    main h2 {
        font-size: 1.75em;
    }

    main p {
        font-size: 1.1em;
    }

    footer p {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5em 0;
    }

    nav ul li a {
        padding: 0.7em 1em;
    }

    main {
        padding: 1.5em 1em;
    }

    main h2 {
        font-size: 1.5em;
    }

    main p {
        font-size: 1em;
    }

    footer {
        padding: 1.5em 0;
    }

    footer p {
        font-size: 0.75em;
    }
}

/* Adjusted Button Styles */
.button {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    color: white;
    background-color: #007BFF; /* Adjust color to match your background */
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3; /* Adjust hover color */
}
