/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 引入思源雅黑字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

body {
    font-family: 'Noto Sans SC', 'Source Han Sans SC', '思源黑体', '思源雅黑', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航条样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 1rem 5%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.logo img {
    margin-right: 0.5rem;
}

.nav-links ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 4rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.6rem;
}

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

.empty {
    width: 10%;
}

/* 16:9比例的图片容器 */
.hero-image {
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.image-container {
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* 16:9比例 (9/16 = 0.5625 = 56.25%) */
    overflow: hidden;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 内容区域样式 */
.content-section {
    padding: 3rem 5%;
}

.content-section h2 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

/* 联系我们部分样式 */
.contact-section {
    background-color: #002fa7;
    color: white;
}

.contact-section h2 {
    color: white;
}

.contact-widgets {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    /* margin-top: 2rem; */
}

.contact-widget {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* margin: 1rem;
    padding: 0.5rem; */
    /* background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px; */
    width: 30rem;
    transition: transform 0.3s ease;
}

.contact-widget:hover {
    transform: translateY(-5px);
}

.contact-icon {
    margin-bottom: -0.45rem;
}

.contact-icon img {
    width: 20px;
    height: 20px;
    color: white;
    margin-right: 0.5rem;
}

/* 导航栏激活状态 */
.nav-links ul li a.active {
    color: #002fa7;
    font-weight: 600;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
}

/* 移动菜单按钮样式 */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    margin-left: auto;
}

.mobile-menu-btn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.mobile-menu-btn span:nth-child(1) {
    top: 0px;
}

.mobile-menu-btn span:nth-child(2) {
    top: 8px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 16px;
}

.mobile-menu-btn.active span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-btn.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 1rem;
        position: relative;
        justify-content: space-between;
    }

    .nav-links {
        flex-basis: 100%;
        margin-top: 1rem;
        width: 100%;
        display: none;
    }

    .nav-links.mobile-nav {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .nav-links li:last-child {
        position: static;
    }

    .nav-links a {
        font-size: 1.4rem;
    }
}