/* 基本样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fff;
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s;
}

nav .logo img {
    height: 50px;
}

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

nav ul.nav-links li {
    margin: 0 15px;
}

nav ul.nav-auth {
    margin-left: auto; /* 登录和注册按钮靠右 */
    display: flex;
    gap: 20px; /* 登录和注册按钮之间的间隔 */
    padding-right: 30px; /* 增加左侧间距，避免注册按钮超出屏幕 */
}

nav ul li a {
    color: black;
    text-decoration: none;
    padding: 8px 16px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #0f90f6;
}

/* 登录和注册按钮样式 */
nav ul.nav-auth .login-btn, nav ul.nav-auth .register-btn {
    background-color: #0f90f6;
    color: white;
    border-radius: 5px;
    padding: 8px 16px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul.nav-auth .login-btn:hover, nav ul.nav-auth .register-btn:hover {
    background-color: #0a6ebd;
}

/* 登录和注册按钮样式 */
nav ul.nav-auth .login-btn, nav ul.nav-auth .register-btn {
    background-color: #0f90f6;
    color: white;
    border-radius: 5px;
    padding: 8px 16px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul.nav-auth .login-btn:hover, nav ul.nav-auth .register-btn:hover {
    background-color: #0a6ebd;
}

/* 移动端菜单图标 */
.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 内容部分 */
section {
    padding: 80px 20px 20px; /* 调整顶部间距以适应固定导航栏 */
    text-align: center;
}

.section-home {
    background-color: #f9f9f9;
}

.section-services {
    background-color: #e6f7ff;
}

.section-media {
    background-color: #fff3e6;
}

.section-public-opinion {
    background-color: #f0f8ff;
}

.section-encyclopedia {
    background-color: #f5f5f5;
}

.section-reputation {
    background-color: #f9f9f9;
}


.banner {
    width: 100%;
    max-width: 2000px;
    height: auto;
}

.service-list, .process, .media-logos, .platforms, .encyclopedia-list, .reputation-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.service-item, .process-item, .reputation-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 200px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover, .process-item:hover, .reputation-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.service-item h3, .process-item h3, .reputation-item h3 {
    color: #0f90f6;
    margin-bottom: 10px;
}

.service-item p, .process-item p, .reputation-item p {
    color: #666;
}

.icon {
    font-size: 40px;
    margin-bottom: 10px;
    color: #0f90f6;
}

.media-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.media-item {
    text-align: center;
}

.media-item img {
    width: 100%;
    max-width: 100px;
    height: auto;
    transition: transform 0.3s;
}

.media-item img:hover {
    transform: scale(1.1);
}

.platforms, .encyclopedia-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.platform-item, .encyclopedia-item {
    text-align: center;
    width: 150px;
}

.platform-item img, .encyclopedia-item img {
    width: 100%;
    max-width: 100px;
    height: auto;
    transition: transform 0.3s;
}

.platform-item img:hover, .encyclopedia-item img:hover {
    transform: scale(1.1);
}

/* 尾部样式 */
footer {
    background-color: #0f90f6;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

footer .footer-content {
    max-width: 800px;
    margin: 0 auto;
}

footer a {
    color: white;
    text-decoration: none; /* 添加下划线 */
    transition: color 0.3s;
}

footer a:hover {
    color: #0a6ebd; /* 鼠标悬停时改变颜色 */
}

footer .qrcode img {
    width: 100px;
    height: auto;
    margin-top: 10px;
}

/* 右侧浮动微信二维码 */
.floating-qrcode {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.floating-qrcode img {
    width: 100px;
    height: auto;
    margin-top: 10px;
}

.floating-qrcode .close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 导航栏调整 */
    nav ul.nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 60px;
        left: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

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

    nav ul.nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    nav ul.nav-auth {
        margin-left: auto;
	padding-right: 21px; /* 移动端减少左侧间距 */
        gap: 5px; /* 移动端减少按钮间隔 */
    }

    .menu-icon {
        display: block;
    }

    /* 内容部分调整 */
    section {
        padding: 60px 10px 10px;
    }

    .service-list, .process, .reputation-list {
        flex-direction: column;
        align-items: center;
    }

    .service-item, .process-item, .reputation-item {
        width: 100%;
        max-width: 300px;
    }

    .media-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .media-item img {
        max-width: 80px;
    }

    .platforms {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .platform-item, .encyclopedia-item {
        width: 100%;
        max-width: 150px;
    }

    .encyclopedia-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .encyclopedia-item {
        width: 45%;
    }

    /* 尾部调整 */
    footer {
        padding: 15px;
    }

    footer .footer-content {
        flex-direction: column;
        align-items: center;
    }

    footer .qrcode {
        margin-top: 10px;
    }

    /* 右侧浮动二维码调整 */
    .floating-qrcode {
        right: 10px;
        bottom: 10px;
        padding: 15px;
    }

    .floating-qrcode img {
        width: 80px;
    }
}

@media (max-width: 480px) {
    /* 进一步调整小屏幕样式 */
    .media-logos {
        grid-template-columns: repeat(5, 1fr);
    }

    .platforms {
        grid-template-columns: repeat(5, 1fr);
    }

    .encyclopedia-item {
        width: 100%;
    }

    footer p {
        font-size: 14px;
    }
}

    /* 关于我们页面 */
.about-section {
    padding: 100px 20px 20px;
    background-color: #f9f9f9;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro, .business-scope, .contact {
    margin-bottom: 40px;
}

.about-intro h1 {
    font-size: 36px;
    color: #0f90f6;
    margin-bottom: 20px;
}

.about-intro p {
    font-size: 18px;
    line-height: 1.6;
}

/* 业务范围样式 */
.business-scope h2 {
    font-size: 28px;
    color: #0f90f6;
    margin-bottom: 20px;
    text-align: center;
}

.scope-list {
    display: flex;
    justify-content: space-between; /* 电脑端显示在一行 */
    flex-wrap: nowrap; /* 禁止换行 */
    gap: 20px; /* 项目之间的间隔 */
}

.scope-item {
    text-align: center;
    width: 23%; /* 每个项目占 23% 的宽度，确保四个项目能在一行显示 */
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.scope-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.scope-item .icon {
    font-size: 40px;
    color: #0f90f6;
    margin-bottom: 10px;
}

.scope-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.scope-item p {
    font-size: 16px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .scope-list {
        flex-wrap: wrap; /* 移动端允许换行 */
        justify-content: center; /* 移动端内容居中 */
    }

    .scope-item {
        width: 100%; /* 移动端每个项目占满一行 */
        max-width: 300px; /* 限制最大宽度 */
        margin-bottom: 20px; /* 项目之间的间隔 */
    }
}
