
* {box-sizing: border-box;}
html, body {
    font-family: Source Han Sans, Geneva, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 12px;
}
button, input[type="submit"] {
    padding: 5px;
    background-color: orangered;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.header-container, .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center; 
    width: 100%; 
    background-color: #f9f9f9; 
    padding: 20px 0; 
}
.header-row, .footer-row {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px;
}
.mainbody {
    align-items: center; 
    width: 100%; 
    margin: 0 auto; 
}
.bizmail_panel {
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bizmail_panel input[type="text"], input[type="password"]{
    font-size: 12px;
    width: 100px;
}
.footer-left {
    text-align: left; 
}
.contact-info {
    color: #aaaaaa;
    font-size: 14px;
    margin-bottom: 10px;
}
.footer-right {
    text-align: right; 
}
.footer-center {
    margin-top: 10px; 
    color: rgb(152, 152, 152);
    font-size: 12px;
}
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}
nav ul li {
    margin: 0 15px;
}
nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}
nav ul li a:hover {
    color: #FF4500;
    text-decoration: underline;
}
.product-section {
    display: flex; /* 使用 Flexbox 实现水平排列 */
    flex-wrap: wrap; /* 允许换行 */
}

.product-item {
    position: relative; /* 设置为相对定位，用于居中文本 */
    flex: 1; /* 每个图片容器占据相等的空间 */
    max-width: 50%; /* 确保每个图片容器不超过 50% 宽度 */
}
.product-item img {
    width: 100%; /* 图片宽度占满容器 */
    height: auto; /* 保持图片比例 */
    display: block; /* 去除图片底部空白 */
}
.product-section2 {
    display: flex; /* 使用 Flexbox 实现水平排列 */
    flex-wrap: wrap; /* 允许换行 */
}
.product-item2 {
    width: calc(33.33%); /* 每行 3 张图片，减去间距 */
    height: 300px; /* 统一高度 */
    overflow: hidden; /* 超出部分隐藏 */
    border-radius: 5px; /* 圆角效果 */
}
.product-item2 img {
    width: 100%; /* 图片宽度占满容器 */
    height: 100%; /* 图片高度占满容器 */
    object-fit: cover; /* 保持图片比例并裁剪 */
    display: block; /* 去除图片底部空白 */
}
.image-text { /* home,track */
    position: absolute; /* 绝对定位 */
    top: 50%; /* 垂直居中 */
    left: 50%; /* 水平居中 */
    transform: translate(-50%, -50%); /* 精确居中 */
    color: white; /* 字体颜色为白色 */
    font-size: 24px; /* 字体大小 */
    font-weight: bold; /* 加粗字体 */
    z-index: 1; /* 确保文字在图片之上 */
    text-align: center;
}
/* Flexbox 布局使 h3 内容水平排列 */
.image-text h3 {
    display: flex; /* 启用 Flexbox 布局 */
    align-items: center; /* 垂直对齐内容 */
    justify-content: space-between; /* 左右对齐子元素 */
    gap: 10px; /* 设置图片和文字之间的间距 */
}

/* 调整左侧图片样式 */
.icon-left {
    margin-right: 10px; /* 右侧增加间距 */
}

/* 调整右侧图片样式 */
.icon-right {
    margin-left: 10px; /* 左侧增加间距 */
}

/*service, rates, news*/
.headerimg {
    margin: 0 auto;
    width: 100%; /* 占据全部宽度 */
    height: 150px; /* 固定高度 */
    background-image: url('img/585387.jpg'); /* 背景图片路径 */
    background-repeat: no-repeat; /* 禁止重复 */
    background-size: cover; /* 背景图片按比例缩放并覆盖整个容器 */
    background-position: center; /* 背景图片居中对齐 */
    position: relative;
    display: flex; /* 使用 Flexbox 布局 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}
.headerimg h1 {font-size: 36px; }
.headerimg span{ font-size: 24px; }
.headerimg h1, .headerimg span {
    color: white;
    text-align: center;
}
.sub_container {
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
    margin: 0 auto; /* 让容器在水平方向居中 */
}
.sub_container iframe {
    width: 100%;
    border: none;
    min-height: 600px;
}
/* 宽屏幕下隐藏菜单按钮 */
@media (min-width: 769px) {
    .menu-toggle {
        display: none; /* 隐藏菜单按钮 */
    }
    nav ul {
        display: flex; /* 导航栏默认可见 */
    }
}
/* 手机端导航栏样式 */
@media (max-width: 768px) {
    .image-text {font-size: 16px;}
    .product-section {
        flex-direction: column; /* 垂直堆叠 */
    }
    .product-item {
        max-width: 100%; /* 每张图片占据整行宽度 */
    }
    .product-item2 {
        width: calc(50%); /* 每行 2 张图片，减去间距 */
        height: 250px; /* 统一高度 */
        overflow: hidden; /* 超出部分隐藏 */
        border-radius: 5px; /* 圆角效果 */
    }
    .headerimg {height: 100px;}
    .header-row {
        flex-wrap: wrap; /* 允许子元素换行 */
    }
    /* 让登录面板容器换行 */
    .header-row > div:last-child {
        flex-basis: 100%;
        order: 1; /* 调整显示顺序 */
        margin-top: 10px;
    }
    #logo {
        width: 90px;
    }
    nav ul {
        display: none; /* 默认隐藏菜单 */
        flex-direction: column; /* 垂直排列菜单项 */
        position: absolute;
        top: 60px; /* 菜单距离顶部的距离 */
        right: 0;
        text-align: left;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
        z-index: 100;
        background: linear-gradient(135deg, rgba(192, 192, 192, 0.8), rgba(192, 192, 192, 0.8));
        color: white; /* 文字颜色 */
        border-radius: 5px; /* 圆角 */
    }
    
    nav ul li {
        margin: 10px 0;
        padding: 10px 15px;
        background-color: rgba(255, 255, 255, 0.1); /* 半透明背景 */
        border-radius: 3px; /* 圆角 */
        transition: background-color 0.3s; /* 平滑过渡效果 */
    }
    
    nav ul li:hover {
        background-color: rgba(255, 255, 255, 0.3); /* 悬停时的背景颜色 */
    }
    
    nav ul li a {
        text-decoration: none;
        color: white; /* 链接文字颜色 */
        font-size: 16px;
        font-weight: bold;
    }
    
    nav ul li a:hover {
        color: #FFD700; /* 悬停时的链接颜色 */
    }
    .menu-toggle {
        display: block; /* 显示菜单按钮 */
        cursor: pointer;
        font-size: 24px;
        color: #333;
        margin-left: auto; /* 推到右侧 */
        padding: 5px 10px;
        background-color: #f9f9f9; /* 背景颜色 */
        border: 1px solid #ddd; /* 边框 */
        border-radius: 5px; /* 圆角 */
        transition: background-color 0.3s, color 0.3s; /* 平滑过渡效果 */
    }
    
    .menu-toggle:hover {
        background-color: #FF4500; /* 悬停时的背景颜色 */
        color: white; /* 悬停时的文字颜色 */
    }
    .bizmail_panel {
        width: 100%; /* 占据整行 */
        justify-content: center; /* 居中对齐 */
    }
    .bizmail_panel input[type="text"], input[type="password"]{
        font-size: 10px;
        width: 85px;
    }
}