/* 全局样式 */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 头部样式 */
header {
    background-color: #fff;
    display: flex !important; /* 横向排列Logo和文字 */
    align-items: center !important; /* 垂直居中对齐 */
    padding: 15px 20px; /* 微调内边距，避免拥挤 */
    gap: 20px; /* Logo与文字的间距 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Logo样式 */
.header-logo {
    width: 99px; /* Logo宽度（可按需调整） */
    height: auto; /* 高度自动，保持比例 */
    max-width: 120px;
    min-width: 60px;
    object-fit: contain; /* 确保图片完整显示，不拉伸 */
        }

/* 文字区域样式调整 */
.header-text {
    flex: 1; /* 文字区域占剩余空间，实现Logo居左、文字自适应 */
        }

.header-first-line {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.header-second-line {
    text-align: right;
    font-size: 18px;
}

.header-bg {
    display: none;
}

/* 导航栏样式 */
nav {
    background-color: #003a70;
    color: white;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff9900;
}

/* 主要内容区域 */
.main-content {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    position: relative;
}

.page-title {
    position: absolute;
    top: 40px;
    left: 40px;
    color: #003a70;
    font-size: 24px;
    font-weight: bold;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.product-item {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-item h3 {
    font-size: 18px;
    margin: 0;
}

/* 原页面底部的第1页 第2页 第3页等按钮，改版后暂未使用 */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    color: #007BFF;
    padding: 8px 16px;
    text-decoration: none;
    transition: background - color 0.3s;
    border: 1px solid #ddd;
    margin: 0 4px;
}

.pagination a.active {
    background-color: #007BFF;
    color: white;
    border: 1px solid #007BFF;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

.page-subtitle {
    position: absolute;
    top: 40px;
    left: 40px;
    color: #003a70;
    font-size: 20px;
    font-weight: bold;
}

.product-description {
    margin-top: 40px;
    line-height: 1.6;
}

.product-description h2 {
    color: #003a70;
    margin-bottom: 15px;
}
 
.product-description p {
    margin-bottom: 20px;
}

/* 产品图片区域 */
.product-images {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-images img {
    max-width: 48%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 4px;
}

.arrow-between-images {
    font-size: 40px;
    margin: 0 10px;
}

.new-text {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* 新增图片样式，海水淡化页面 */
.company-image {
    margin: 25px 0;
    text-align: center;
}

.company-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.company-image figcaption {
    margin-top: 10px;
    color: #666;
    font-size: 18px;
}

/* 相关产品区域 */
.related-products {
    margin-top: 40px;
}

.related-products h3 {
    color: #003a70;
    margin-bottom: 15px;
}

.related-products ul {
    list-style-type: none;
    padding: 0;
}

.related-products li {
    margin-bottom: 10px;
}

.related-products li a {
    color: #007BFF;
    text-decoration: none;
}

.related-products li a:hover {
    text-decoration: underline;
}

/* 表格样式优化 */
.table-container {
    width: 100%;
    text-align: center;
    overflow-x: auto; /* 小屏幕时允许横向滚动 */
    margin: 30px auto; /* 上下边距，左右自动居中 */
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

table {
    border-collapse: collapse;
    margin: 0 auto; /* 表格在容器内居中 */
}

th, td {
    padding: 6px 12px;
    font-size: 16px;
    border-bottom: 1px solid #e5e5e5;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #003a70;
}

tr:hover {
    background-color: #f1f8fe;
}

/* 单元格宽度自动调整 */
th, td {
    white-space: nowrap;
}

/* 页脚样式 */
footer {
    background-color: #003a70;
    color: white;
    text-align: center;
    padding: 40px;
}

.advertisement {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
}

footer.copyright {
    margin-top: 20px;
}

/* 悬浮联系图标 */
.floating-contacts {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #003a70;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.contact-icon.whatsapp {
    background-color: #25D366;
}

.contact-icon.email {
    background-color: #FF9900;
}

.contact-icon:hover {
    transform: scale(1.1);
}

.contact-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* 悬浮信息框 */
.contact-info-box {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 15px;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.contact-icon:hover .contact-info-box {
    opacity: 1;
    visibility: visible;
}

.email-info {
    color: #333;
    font-weight: 500;
    padding: 5px 10px;
}

/* 页面底部导航按钮 */
.page-nav-buttons {
    text-align: center;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.arrow-btn {
    width: 50px;
    height: 50px;
    background-color: #003a70;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.back-to-top {
    padding: 12px 20px;
    background-color: #003a70;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    box-sizing: border-box;
}

.arrow-btn:hover,.back-to-top:hover {
    background-color: #ff9900;
    transform: scale(1.1);
}