/* 基础样式 */

body {
    /* 修改字体家族，优先使用 Noto Sans SC，如果加载失败则使用无衬线字体 */
    font-family: 'Noto Sans SC', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 头部模块 */
.header {
    background-color: #0b2399;
    color: #fff;
    padding: 10px 0;
    /* 假设 top.png 也存在于相关的路径中 */
    background-image: url('https://www.sunglowsec.com/public/images/top.webp');
    background-size: cover;
    background-position: center;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
    margin-top: 10px;
}

.logo img {
    max-height: 40px;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: normal;
}

/* 主内容区 */
.hero-section {
    color: #fff;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    margin-top: -20px;
}

.hero-title {
    font-size: 40px;
    margin-bottom: 0px;
    letter-spacing: 0.2em;
}

.hero-description {
    font-size: 19.2px;
    color: #eee;
}

/* 业务优势和功能特点模块 */
.advantages-and-features-section {
    padding: 20px 0;
    margin-top: 0px;
}

.section-title {
    text-align: left;
    margin-bottom: 30px;
    color: #1A308E;
}

.text-container {
    max-width: 1100px; /* 你可以根据需要调整这个值 */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    color: #1A308E;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 130px); /* 调整列宽 */
    justify-content: center; /* 从左开始对齐 */
    gap: 40px; /* 增加间距 */
    padding: 20px 0;
    height: 250px;
    width: 100%;
    margin-top: 40px;
    overflow-x: auto;
}

.feature-card {
    width: 130px; /* 调整宽度 */
    height: 120px; /* 调整高度 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #0b2399;
    color: #fff;
    border-radius: 12px;
    padding: 4px;
    text-align: left;
    position: relative;
    margin-top: 50px;
    font-size: 11.2px;
    flex-shrink: 0;
}

.feature-icon {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #F5F5F5;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    clip-path: none;
}

.feature-icon::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #F5F5F5;
}

.feature-icon img {
    max-width: 30px;
}

.feature-heading {
    margin-top: 40px; /* 调整标题位置 */
    font-size: 11.2px;
    text-align: left;
    display: block;
    width: 100%;
    max-width: 80%;
    box-sizing: border-box;
    font-weight: bold;
}

.feature-description {
    font-size: 8px;
    line-height: 1.2;
    margin-top: 5px; /* 调整描述位置 */
    display: block;
    width: 80%;
    box-sizing: border-box;
}

/* 确保 features-section 的 container 宽度与 advantages-section 的 text-container 宽度一致 */
.advantages-and-features-section .container {
    max-width: 1100px; /* 与 text-container 的最大宽度一致 */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 响应式处理 */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* 调整列宽 */
        justify-content: start; /* 从左开始对齐 */
        gap: 20px; /* 减小间距 */
    }
}

@media (max-width: 768px) {
    .feature-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .feature-card {
        width: 100%;
    }
}

/* 页脚模块 */
.footer {
    background-color: #F5F5F5;
    color: #333;
    padding: 30px 0;
    text-align: left;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-logo img {
    max-height: 35px;
}

.footer-section {
    margin-right: 10px;
}

.section-heading {
    font-size: 16px;
    font-weight: bold;
    color: #37407A;
    margin-bottom: 15px;
    line-height: 1;
    margin-top: 0;
}

.footer-links {
    padding: 0;
    margin: 0;
}

.footer-link {
    display: block;
    color: #37407A;
    text-decoration: none;
    font-size: 14.4px;
    transition: color 0.3s ease;
    transition: color 0.3s ease;
    line-height: 1.2;
    margin: 1px 0;
}

.footer-link:hover {
    color: #0b2399;
}


/* 增加地址与电话号码之间的间距 */
.contact-address p {
    margin-bottom: 5px;
    position: relative;
    color: #37407A;
    font-size: 14.4px;
}

/* 修改 copyright 样式以实现左右布局和颜色一致 */
.copyright {
    margin-top: 60px;
    font-size: 12.8px;
    /* text-align: center;  移除此行，使用flex布局 */
    color: #B7B7CB; /* 设置父容器的颜色 */
    display: flex; /* 启用flex布局 */
    justify-content: center; /* 水平居中对齐 */
    align-items: center; /* 垂直居中对齐 */
    flex-wrap: wrap; /* 允许在小屏幕上换行 */
}

.copyright a {
    text-decoration: none; /* 移除下划线 */
    color: inherit; /* 继承父容器的颜色 */
    white-space: nowrap; /* 防止链接文本换行 */
    margin-right: 5px; /* 在a标签和p标签之间添加一点间距 */
}

.copyright p {
    margin: 0; /* 移除p标签的默认外边距 */
    color: inherit; /* 继承父容器的颜色 */
    white-space: nowrap; /* 防止p标签文本换行 */
}

/* 确保在小屏幕上链接和文本能正常显示 */
@media (max-width: 500px) {
    .copyright {
        flex-direction: column; /* 在小屏幕上垂直堆叠 */
        text-align: center; /* 垂直堆叠后，内部文本居中 */
    }
    .copyright a {
        margin-right: 0;
        margin-bottom: 5px; /* 垂直堆叠时，a标签下方留点间距 */
    }
}


.qrcode {
    margin-left: 10px;
    box-sizing: border-box;
}

.qrcode img {
    width: 80px;
}

/* New styles for footer contact info layout */
.contact-info-wrapper {
    display: flex;
    justify-content: space-between; /* or space-around if you prefer */
    align-items: flex-start; /* Align to the top */
    width: 100%;       /* Take full width available */
    max-width: 600px;   /* Adjust this value as needed */
    box-sizing: border-box;
    margin-top: 0px;
}

/* Adjust the margin of footer sections within the wrapper */
.contact-info-wrapper .footer-section {
    margin-right: 0;   /* Reset the right margin */
    width: 48%; /* Occupy almost half the width each */
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

/* Adjustments for smaller screens to stack the sections */
@media (max-width: 768px) {
    .contact-info-wrapper {
        flex-direction: column; /* Stack vertically on smaller screens */
    }
    .contact-info-wrapper .footer-section {
        width: 100%; /* Occupy full width on smaller screens */
        margin-bottom: 20px;
    }
}

/* Custom style for contact-info */
.contact-info p, .contact-info a {
    color: #37407A;
    font-size: 14.4px;
    line-height: 1.2;
}

/* 语言切换器样式 */
.language-switcher {
    background-color: transparent; /* 修改为透明背景 */
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    /* 定位到右上角 */
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1000; /* 确保在其他元素之上 */
}

.language-switcher:focus {
    outline: none;
    background-color: transparent; /* 确保聚焦时背景也透明 */
}

.language-switcher:hover,
.language-switcher:active {
    background-color: transparent; /* 确保悬停和激活时背景也透明 */
}

.language-switcher option {
    background-color: #0b2399; /* 选项背景设置为与头部背景色一致 */
    color: #fff; /* 确保选项文字颜色可见 */
}

.language-switcher option:checked {
    background-color: #0b2399; /* 选中项的背景色，与头部背景色一致 */
}
