/* styles.css */
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

a {
    text-decoration: none;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 18%;
    display: flex;
    justify-content: space-between;
    /* 修改为居中 */
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo {
    width: 180px;
    height: 50px;
    background: url('/media/logo.png') no-repeat center/contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    /* 可选，确保链接居中，如果.navbar已经居中则不需要 */
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.2rem;
    position: relative;
    transition: color 0.3s ease;
    /* 增加字体大小 */
}

/* 导航栏活动状态样式 */
.nav-links a.active {
    color: #007BFF;
    /* 主色调 */
    font-weight: 600;
    /* 加粗 */
    /* border-bottom: 2px solid #007BFF; */
    /* 下划线 */
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: #007BFF;
    animation: underline 0.3s ease;
}

@keyframes underline {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* 媒体查询以适应不同屏幕尺寸 */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 2%;
        /* 调整内边距以适应小屏幕 */
    }

    .logo {
        width: 150px;
        /* 可选，调整Logo大小以适应小屏幕 */
        height: auto;
        /* 保持Logo比例 */
    }

    .nav-links a {
        font-size: 1rem;
        /* 在小屏幕上稍微减小字体大小 */
    }

    .nav-links {
        gap: 1rem;
        /* 在小屏幕上减小链接间的间距 */
    }
}

/* 页脚样式 */
footer {
    background: #292e33;
    color: white;
    /* padding: 3rem 5%; */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-info p {
    margin: 0.5rem 0;
}

.quick-links a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 0.5rem 0;
}

.footerdown {
    background: #292e33;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    overflow: hidden;
    color: #b5bbc0 !important;
    min-width: 1220px;
}

.footerdown a {
    color: #b5bbc0 !important;
}

.footerdown p {
    line-height: 24px;
    font-size: 12px;
}

.footertop {
    height: 160px;
    background: url(/media/products-banner.jpg) center no-repeat;
    overflow: hidden;
    min-width: 1220px;
}

.footertop .footer-title {
    font-size: 24px;
    font-weight: normal;
    font-stretch: normal;
    letter-spacing: 0px;
    margin-top: 30px;
    text-align: center;
    color: #ffffff;
}

.footertop .footer-reg {
    float: none;
    display: block;
    margin: 30px auto 0;
    width: 120px;
    height: 36px;
    line-height: 36px;
    background-color: #ffffff;
    border-radius: 2px;
    border: solid 1px #ffffff;
    font-size: 20px;
    font-weight: normal;
    font-stretch: normal;
    letter-spacing: 0px;
    color: #188ae0;
    text-align: center;
}

/* banner样式 */
.banner-content h1 {
    font-size: 40px;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 32px;
}