/* 全局样式 - 移动端优化 */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 16px; /* 移动端基础字体放大 */
    line-height: 1.6; /* 增加行高，提升可读性 */
}

/* 头部样式 - 上下布局 */
header {
    background-color: #fff;
    display: flex !important;
    flex-direction: column !important; /* 垂直排列 */
    padding: 15px 10px;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 50px; /* 避开固定的汉堡按钮 */
}

/* Logo样式 */
.header-logo {
    width: 80px;
    height: auto;
    max-width: 100px;
    min-width: 60px;
    object-fit: contain;
    align-self: flex-start;
}

/* 头部文字区域 */
.header-text {
    width: 100%;
    padding: 0 10px;
}

.header-first-line {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.header-second-line {
    text-align: center;
    font-size: 16px;
}

.header-bg {
    display: none; /* 未使用的背景图隐藏 */
}

/* 导航栏核心样式 - 固定汉堡按钮 */
nav.fixed-hamburger {
    position: fixed; /* 固定在顶部，随滚动可见 */
    top: 15px;
    right: 15px;
    z-index: 999; /* 最高层级，避免被遮挡 */
    background: transparent; /* 导航栏整体透明 */
    padding: 0; /* 取消默认内边距 */
}

/* 汉堡按钮样式 */
.hamburger {
    background-color: #003a70; /* 仅按钮有背景 */
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px; /* 包裹三道线的背景大小 */
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000; /* 确保在菜单上方 */
}

.hamburger .line {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 导航菜单 - 默认隐藏 */
nav.fixed-hamburger ul {
    list-style-type: none;
    margin: 0;
    padding: 20px 15px;
    position: absolute;
    top: calc(100% + 5px); /* 按钮正下方 */
    right: 0; /* 靠右对齐 */
    width: 200px; /* 固定宽度 */
    background-color: #003a70;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none; /* 不可点击 */
    transition: all 0.3s ease;
    box-sizing: border-box;
    z-index: 998; /* 低于按钮，高于页面内容 */
    border-radius: 4px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* 菜单展开状态 */
nav.fixed-hamburger ul.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto; /* 可点击 */
}

/* 导航链接样式 */
nav.fixed-hamburger ul li a {
    color: white !important;
    font-size: 16px;
    text-decoration: none;
    display: block; /* 扩大点击区域 */
}

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

/* 标题样式 */
.page-title, .page-subtitle {
    position: static;
    color: #003a70;
    margin: 0 0 20px 0;
    padding: 0 10px;
}

.page-title {
    font-size: 22px;
    font-weight: bold; /* 增强标题感 */
    line-height: 1.5; /* 长标题换行更舒适 */
}

.page-subtitle {
    font-size: 18px;
}

/* 优化切换版本链接 */
.switch-to-pc {
    display: inline-block;
    margin: 25px auto 15px;
    padding: 6px 14px;
    background-color: #f5f7fa; /* 浅灰背景 */
    color: #003a70; /* 品牌色，更醒目 */
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 3px;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
}

.product-item {
    padding: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px; /* 图片加轻微圆角，更柔和 */
    margin-bottom: 12px; /* 图片和标题间距 */
}

.product-item h3 {
    color: #003a70; /* 标题用品牌色，更醒目 */
    margin-bottom: 8px;
}

/* 产品描述 */
.product-description {
    margin-top: 20px;
    padding: 0 10px;
}

.product-description h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

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

.product-images img {
    max-width: 100%;
    margin-bottom: 0;
}

/* 图片间箭头 */
.arrow-between-images {
    font-size: 30px;
    margin: 5px 0;
    transform: rotate(90deg);
}

.new-text {
    margin: 15px 0;
    padding: 0 10px;
}

/* 公司图片区域 */
.company-image {
    margin: 20px 0;
    padding: 0 10px;
    position: relative;
    overflow: hidden;
}

.company-image img {
    width: 100%;
    height: auto;
    object-fit: cover; /* 确保图片不变形 */
}

.company-image figcaption {
    font-size: 16px;
}

/* 相关产品 */
.related-products {
    margin-top: 30px;
    padding: 0 10px;
}

.related-products h3 {
    font-size: 18px;
}

/* 表格样式 - 优化移动端显示，解决超出屏幕问题 */
.table-container {
    margin: 20px 0;
    padding: 0 5px;
    width: 100%; /* 容器占满宽度 */
    overflow-x: auto; /* 核心：移动端横向滚动，避免表格超出 */
    -webkit-overflow-scrolling: touch; /* 移动端顺滑滚动 */
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* 轻微阴影，提升质感 */
}

/* 表格基础样式 */
.table-container table {
    width: 100%; /* 表格适应容器 */
    min-width: 600px; /* PC端表格最小宽度，避免压缩变形 */
    border-collapse: collapse; /* 合并边框 */
    margin: 0 auto; /* 表格在容器内居中 */
}

th, td {
    padding: 8px 10px; /* 微调内边距，节省空间 */
    font-size: 14px;
    text-align: center; /* 内容居中 */
    border-bottom: 1px solid #e5e5e5; /* 浅边框，更清爽 */
}

/* 表头样式优化 */
th {
    background-color: #f8f9fa; /* 浅灰背景，区分表头 */
    color: #003a70; /* 品牌色，突出表头 */
    font-weight: 600;
    white-space: normal; /* 允许表头文字换行，避免列宽过宽 */
}

/* 页脚样式 */
footer {
    background-color: #003a70;
    color: white;
    text-align: center;
    padding: 20px 15px;
    padding-bottom: 30px; /* 额外增加底部空间 */
}

.advertisement {
    font-size: 16px;
    font-weight: bold;
}

.contact-icon {
    display: inline-block;
    margin: 10px 0; /* 增加上下间距 */
}

.contact-icon img {
    background-color: #FF9900;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer; /* 显示手型光标，提示可点击 */
}

/* 页面底部导航按钮 */
.page-nav-buttons {
    display: flex; /* 关键：确保按钮横向排列 */
    justify-content: center; /* 居中对齐 */
    align-items: center;
    padding: 15px 0;
    gap: 15px;
    margin: 20px 0; /* 增加上下间距，避免贴紧内容 */
}

.arrow-btn {
    width: 50px;
    height: 50px;
    background-color: #003a70;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.arrow-svg {
    width: 30px;
    height: 30px;
    fill: white; /* 箭头颜色为白色 */
}

.back-to-top {
    padding: 12px 25px;
    background-color: #003a70;
    color: white;
    border-radius: 4px;
    font-size: 16px;
    text-decoration: none; /* 去除链接下划线 */
}