:root {
    --michigan-blue: #00274C;
    --michigan-maize: #FFCB05;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #001f3f;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand .name {
    color: #FFCB05;
    font-size: 2.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #FFCB05;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a.active {
    color: #fff;
    font-weight: bold;
}

.nav-toggle {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 主要内容区域 */
main {
    padding-top: 80px; /* 为固定导航栏留出空间 */
    min-height: calc(100vh - 80px);
    overflow-x: hidden;
}

.hero {
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--michigan-blue) 0%, #003366 100%);
    padding: 0 2rem;
}

.hero-content {
    color: var(--text-light);
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

/* 按钮样式 */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-button {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
    background-color: var(--michigan-maize);
    color: var(--michigan-blue);
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--michigan-maize);
    color: var(--michigan-maize);
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 0.8rem 1rem;
    background-color: #001f3f;
    color: #FFCB05;
    font-size: 0.9rem;
    position: relative;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.social-links {
    margin-bottom: 0.3rem;
}

.social-links a {
    margin: 0 6px;
    color: #FFCB05;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #fff;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        padding-top: 60px; /* 为固定导航栏留出空间 */
    }

    main {
        padding-top: 60px;
    }

    .navbar {
        padding: 0.8rem 1rem;
        height: 50px;
    }

    .nav-brand .name {
        font-size: 1.8rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        background-color: #001f3f;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.8rem 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        height: calc(100vh - 60px);
        padding: 1rem;
    }

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

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .container {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .section {
        padding: 1.5rem 1rem;
    }

    .card {
        margin: 1rem 0;
        width: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .image-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        width: 100%;
        height: 250px;
    }

    footer {
        padding: 0.5rem 0.8rem;
        height: 50px;
    }

    .social-links {
        margin-bottom: 0.2rem;
    }

    .social-links a {
        font-size: 1.2rem;
        margin: 0 4px;
    }
}

/* 确保所有元素不会溢出 */
* {
    box-sizing: border-box;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
} 