.electronic-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
    .electronic-table-wrapper {
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .electronic-table {
        min-width: 650px;
    }

    .electronic-table .td1{
        width:15%;
    }
    .electronic-table .td2{
        width:32%;
    }
            
    .electronic-table .td3{
        width:32%;
    }
   
}
/* 电子产品表格样式 */
.electronic-category {
    margin-top: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 32px 24px 24px 24px;
}
.electronic-category h3 {
    font-size: 1.6em;
    color: #bfa14a;
    margin-bottom: 18px;
    letter-spacing: 2px;
    font-weight: 600;
}
.electronic-table-wrapper {
    overflow-x: auto;
}
.electronic-table {
    width: 100%;
    border-collapse: collapse;
    /* background: #faf8f3; */
    font-size: 1em;
    margin: 0 auto;
    box-shadow: 0 1px 6px rgba(191,161,74,0.08);
    border-radius: 8px;
    overflow: hidden;
}
.electronic-table th, .electronic-table td {
    border: 1px solid #e5e1d8;
    padding: 12px 10px;
    text-align: center;
    vertical-align: middle;
}
.electronic-table th {
    background: #f5e9c8;
    color: #7c6a2c;
    font-weight: 700;
    font-size: 1.08em;
}
.electronic-table tr:nth-child(even) td {
    /* background: #f9f7f2; */
}

.electronic-table td {
    color: #3d3d3d;
    font-size: 0.98em;
    line-height: 1.6;
}
@media (max-width: 700px) {
    .electronic-category {
        padding: 18px 4px 12px 4px;
    }
    .electronic-table th, .electronic-table td {
        padding: 7px 3px;
        font-size: 0.92em;
    }
    .electronic-table {
        font-size: 0.92em;
    }
}
body {
    margin: 0;
    font-family:  PMingLiU,Arial, sans-serif;
    line-height: 1.6;
    background-color: white; /* 柔和的金色背景，符合黄金主题 */
    color: #4A4A4A; /* 深灰色文字，增强可读性 */
}

header {
    background: #FFFFFF; /* 白色导航栏背景 */
    color: #002855; /* 深蓝色文字 */
    padding: 1rem 0; /* 增加内边距 */
    padding-bottom: 0rem;
    position: fixed; /* 固定导航栏 */
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}

/* 调整 logo 的样式，确保其位置不被菜单按钮覆盖 */
.logo {
    background-image: url('../img/logo.png'); /* 替换为实际的logo路径 */
    background-size: contain;
    background-repeat: no-repeat;
    width: 150px; /* 根据实际 logo 的大小调整 */
    height: 71px;
    margin-left: 1rem; /* 增加左侧间距 */
    display: inline-block;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* 调整内边距 */
}

/* 隐藏导航栏并设置滑入效果 */
.nav-links {
    position: fixed;
    top: 64px;
    left: -100%; /* 初始隐藏在屏幕左侧 */
    height: 100%;
    width: 180px;
    background-color: #FFFFFF;
    box-shadow: 2px 0 5px rgb(255 255 255);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1rem;
    transition: left 0.3s ease; /* 添加滑入动画 */
    list-style: none;
    z-index: 1000;
}

.nav-links a {
    color: black;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    font-weight: bold;
}

.nav-links a:hover {
    color: #002855; /* 悬停时变为金色 */
    font-weight: bold;
}

.nav-links.active {
    left: 0; /* 显示导航栏 */
}

/* 菜单按钮样式 */
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #002855;
    cursor: pointer;
    position: absolute;
    top: 1rem; /* 调整顶部位置 */
    right: 1rem; /* 调整右侧位置 */
    z-index: 1100;
}



#hero {
    background: url('../img/banner-bg.png') no-repeat center center/cover, #FAF3E0; /* 柔和金色背景作为备用 */
    color: #FFFFFF; /* 白色文字 */
    text-align: center;
    padding: 8rem 1rem; /* 增加顶部和底部间距 */
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden; /* 隐藏超出部分 */
    
    max-width: 100%;
}

#hero h1 {
    font-size: 3rem; /* 增大标题字体 */
    font-weight: bold;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.5rem; /* 增大副标题字体 */
    line-height: 1.8;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    display: flex;
    width: 400%; /* 每张图片占 100%，总宽度为图片数量的倍数 */
    animation: slide 50s infinite; /* 添加动画 */
}

.carousel-slide img {
    width: 100%;
    height: auto;
}

@keyframes slide {
    0% { transform: translateX(0); }
    25% { transform: translateX(-100%); }
    50% { transform: translateX(-200%); }
    75% { transform: translateX(-300%); }
    100% { transform: translateX(0); }
}
.swiper {
    width: 100%;
    height: 500px;
}  
.swiper img{
    width: 980px;
}
section {
    padding: 4rem 2rem; /* 增加内边距 */
    max-width: 1200px;
    margin: 0 auto;
    background-color: white; /* 浅金色背景 */
    border-radius: 8px;
}

#about {
    padding: 1rem 1rem;
    /* height: 30vh; */
    
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}


.about-text h2,.open-container h2 {
    font-size: 2.5rem; /* 增大标题字体 */
    color: #D4AF37; /* 金色标题 */
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-text p {
    font-size: 1.3rem; /* 调整段落字体大小 */
    line-height: 1.8;
    color: #4A4A4A; /* 深灰色文字 */
    margin-bottom: 1rem;
    margin: 0 auto; /* 居中对齐 */
    text-align: justify; /* 文本两端对齐 */
    width: 80%; /* 限制文本宽度 */
}
.about-detail{
    margin-top: 1rem;
}
.about-detail p{
    text-align: center;
    font-size: 1.2rem;
}
.about-detail p:nth-child(1),.about-detail p:nth-child(2){
        text-align: left;
        font-size: 1.2rem;
}    
.about-detail .a{
    margin-top: 1rem;
    text-decoration: underline;
}
.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    
}

.about-image img {
    max-width: 60%;
    border-radius: 8px; /* 添加圆角 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}

#open {
    padding: 4rem 1rem;
    text-align: center;
}

.open-container ol{
    list-style: none;
    text-align: left;
    width: 90%;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #4A4A4A; /* 深灰色文字 */
    padding-left: 10px;
    
}


.open-container a {
    display: inline-block;
    color: black;
    border: none;
    font-size: 1.2rem;
    font-family: Arial, sans-serif;
    font-weight: bold; /* 加粗字体 */
    border-radius: 8px; /* 添加圆角 */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* 添加过渡效果 */
    
}

#vision {
    padding: 4rem 1rem;
    text-align: center;
}

.vision-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    
}

.vision-item {
    flex: 1;
    min-width: 300px;
    background-color: white; /* 浅金色背景，添加透明度 */
    border-radius: 8px; /* 添加圆角 */
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    text-align: center;
}

.vision-item h3 {
    font-size: 1.5rem;
    color: #01106f; /* 深蓝色标题 */
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);

}

.vision-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4A4A4A; /* 深灰色文字 */
    text-align: left;
    margin: 1.4rem;
}

#overview {
    padding: 4rem 1rem;
}

.overview-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.overview-image {
    flex: 1;
    max-width: 560px;
    text-align: center;
}

.overview-image img {
    max-width: 80%;
    border-radius: 8px; /* 添加圆角 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}

.overview-text {
    flex: 1;
    min-width: 300px;
}

.overview-text h2 {
    font-size: 2.5rem; /* 增大标题字体 */
    color: #D4AF37; /* 金色标题 */
    margin-bottom: 1.5rem;
    text-align: center;
}

.overview-text p {
    font-size: 1.2rem; /* 调整段落字体大小 */
    line-height: 1.8;
    color: #4A4A4A; /* 深灰色文字 */
    margin-bottom: 1rem;
    text-align: justify; /* 文本两端对齐 */
    width: 80%; /* 限制文本宽度 */
    margin: 0 auto; /* 居中对齐 */
}

#csr {
    padding: 4rem 1rem;
}

.csr-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.csr-text {
    flex: 1;
    min-width: 300px;
}

.csr-text h2 {
    font-size: 2.5rem; /* 增大标题字体 */
    color: #D4AF37; /* 金色标题 */
    margin-bottom: 1.5rem;
    text-align: center;
}

.csr-text p {
    font-size: 1.2rem; /* 调整段落字体大小 */
    line-height: 1.8;
    color: #4A4A4A; /* 深灰色文字 */
    margin-bottom: 1rem;
    text-align: justify; /* 文本两端对齐 */
    width: 80%; /* 限制文本宽度 */
    margin: 0 auto; /* 居中对齐 */
}

.csr-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.csr-image img {
    max-width: 67%;
    border-radius: 8px; /* 添加圆角 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}

#contact {
    padding: 4rem 1rem;
    background-image: url('../img/contact-bg.png'); /* 联系我们背景图片 */
    background-size: cover; /* 背景图片覆盖整个区域 */
    background-position: center; /* 背景图片居中 */
    max-width: 100%;
    border-radius: 0px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    
}

.contact-text {
    flex: 1;
    min-width: 300px;
}

.contact-text h2 {
    font-size: 2rem;
    color: #D4AF37; /* 金色标题 */
    margin-bottom: 1rem;
    text-align: left;
    width: 300px;
}

.contact-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4A4A4A; /* 深灰色文字 */
    margin-bottom: 1rem;
    text-align: justify; /* 文本两端对齐 */
    width: 80%; /* 限制文本宽度 */
   
}

.contact-text ul {
    list-style: none;
    padding: 0;
    width: 80%; /* 限制列表宽度 */
}

.contact-text ul li {
    font-size: 1.2rem;
    line-height: 1.4;
    color: white; /* 深灰色文字 */
    margin-bottom: 0.5rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    font-size: 1rem;
    color: #4A4A4A; /* 深灰色文字 */
    margin-bottom: 0.5rem;
}


.contact-form input,
.contact-form textarea {
    width: 40%;
    padding: 0.75rem; /* 增加内边距 */
    border: 1px solid #D4AF37; /* 金色边框 */
    border-radius: 8px; /* 添加圆角 */
    font-size: 1rem;
    font-family: Arial, sans-serif;
    background-color: #FFF8DC; /* 浅金色背景 */
    color: #4A4A4A; /* 深灰色文字 */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加内阴影 */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form .message{
    width: 80%;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #B8860B; /* 深金色边框 */
    box-shadow: 0 0 8px rgba(184, 134, 11, 0.5); /* 添加聚焦效果 */
    outline: none; /* 移除默认聚焦样式 */
}

.contact-form textarea {
    resize: none; /* 禁止调整大小 */
}

.contact-form button {
    background-color: #D4AF37; /* 金色按钮背景 */
    color: #FFF8DC; /* 浅金色文字 */
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    font-weight: bold; /* 加粗字体 */
    border-radius: 8px; /* 添加圆角 */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* 添加过渡效果 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}

.contact-form button:hover {
    background-color: #B8860B; /* 深金色按钮背景 */
    transform: scale(1.05); /* 鼠标悬停时放大 */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* 增强阴影效果 */
}

.contact-form button:active {
    background-color: #8B6914; /* 点击时更深的金色 */
    transform: scale(0.95); /* 点击时缩小 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 减弱阴影效果 */
}

#products {
    padding: 4rem 0rem;
    max-width: 100%;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
}
.products-title{
    background-color:rgb(244,244,244);
    padding: 2rem 0;

}
.products-title div{
    max-width: 1200px;
    margin: 0 auto;
}
.products-title p{
    width: 60%;
    font-size: 1.2rem;
}

.products-title h2 {
    font-size: 2.5rem;
    color: #D4AF37;
    text-align: left;
    margin-bottom: 2rem;
    
}

.product-category {
    margin-bottom: 3rem;
}

.product-category h3 {
    font-size: 2rem;
    color: #01106f;
    margin-bottom: 1.5rem;
    text-align: center;
}

.product-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.silver-items img{
    width: 71%;
}
.product-card {
    background-color: #FFFFFF;
    border: 1px solid #c3c1b7; /* 金色边框 */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0rem;
    text-align: center;
    width: 280px;
    margin: 0.3rem;
}

.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: bold; /* 加粗标题 */
    color: #4A4A4A;
    margin-bottom: 1rem;
    word-break:keep-all; /* 防止单词换行 */
}

.product-attributes {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #565353;
    margin: 0 auto; /* 居中对齐 */
    box-shadow:0 -2px 0px rgba(0, 0, 0, 0.1);
}

.product-attributes .attribute-row {
    display: flex;
    justify-content: space-between; /* 左右分布 */
    margin-bottom: 0.3rem;
    line-height: 0%;
    width: 90%;
    margin: 0 auto; /* 居中对齐 */
}

.product-attributes .attribute-name {
    flex: 1; /* 左侧占据一半宽度 */
    text-align: left; /* 左对齐 */
}

.product-attributes .attribute-value {
    flex: 1; /* 右侧占据一半宽度 */
    text-align: left; /* 右对齐 */
    margin-left: 2.1rem; /* 增加左边距 */
    
}

footer {
    background: #FFFFFF; /* 白色页脚背景 */
    color: black; /* 深蓝色文字 */
    text-align: center;
    padding: 1rem 1rem; /* 增加内边距 */
    font-size: 1.3rem; /* 调整字体大小 */
    margin-top: 2rem; /* 增加顶部间距 */
}

footer p {
    margin: 0; /* 移除段落默认间距 */
    font-size: 1.3rem; /* 调整字体大小 */
    font-weight: bold;
}

@media (max-width:1207px) {
    .product-card{
        width: 300px;
        padding: 37px;
        margin: 1.5rem;
    }
    
}
@media (max-width:905px) {
    .product-card{
        width: 280px;
        padding: 0rem;
        margin: 0.3rem;
    }
    
}
/* 隐藏菜单按钮在桌面设备上 */

@media (min-width: 821px) {
    .menu-toggle {
        display: none;
    }

   
    .nav-links {
        position: static;
        flex-direction: row;
        height: auto;
        width: auto;
        box-shadow: none;
        padding: 0;
        left: 0;
    }

    .nav-links a {
        font-size: 1.4rem;
        padding: 0.5rem 1rem;
        font-weight: bold;
    }
}
@media (max-width: 912px){
    .nav-links a {
            font-size: 1.3rem;
    }
}
/* 针对手机设备的样式调整 */
@media (max-width: 821px) {
    /* 调整导航栏 */
    nav {
        flex-direction: column; /* 导航栏垂直排列 */
        align-items: flex-start;
        padding: 0rem;
    }
    .about-detail p{
        font-size: 1.2rem;
    }
    
    .nav-links {
        flex-direction: column; /* 导航链接垂直排列 */
        gap: 1rem; /* 增加间距 */
    }

    .nav-links a {
        font-size: 1.2rem; /* 调整字体大小 */
        padding: 0.5rem 0; /* 增加点击区域 */
    }

    .swiper {
        width: 100%;
        height: 300px; /* 调整轮播图高度 */
    }
    .swiper img{
        width: 100%;
        height: 230px; /* 调整轮播图高度 */
    }
    /* 调整 Hero 区域 */
    #hero {
        padding: 7rem 0.3rem; /* 减少顶部和底部间距 */
        padding-bottom: 0rem; /* 减少底部间距 */    
    }

    #hero h1 {
        font-size: 2rem; /* 调整标题字体大小 */
    }

    #hero p {
        font-size: 1.2rem; /* 调整副标题字体大小 */
    }

    #vision{
        padding-bottom: 0rem; /* 减少底部间距 */
    }
    .about-text p {
        width: 98%;
    }
    .product-title{
        font-size: 1.2rem; /* 调整字体大小 */
    }
    .products-title{
        padding: 1rem 1rem; /* 增加内边距 */
        font-size: 1.2rem;

    }
    .products-title p{
        width: 100%; /* 调整段落宽度 */
        
    }
    /* 调整产品卡片 */
    .product-items {
        flex-direction: column; /* 产品卡片垂直排列 */
        align-items: center;
    }

    .product-card {
        width: 85%; /* 调整卡片宽度 */
        margin-bottom: 1rem; /* 增加卡片间距 */
    }
    .product-card img{
        margin-bottom: 0px;
    }
    /* 调整产品属性 */
    .product-attributes {
        font-size: 1rem; /* 调整属性字体大小 */
    }
    .product-attributes .attribute-row{
        margin-bottom: 0.1rem;
    }
    /* 调整关于我们和其他内容区块 */
    .about-container,
    .vision-container,
    .overview-container,
    .csr-container {
        flex-direction: column; /* 内容垂直排列 */
        align-items: center;
        text-align: center; /* 文本居中 */
    }
    .overview-text p{
        line-height: 1.2;
    }
    .about-text,
    .overview-text,
    .csr-text {
        width: 100%; /* 调整宽度 */
    }

    .about-image img,
    .overview-image img,
    .csr-image img {
        max-width: 80%; /* 调整图片宽度 */
    }

    /* 调整联系信息 */
    .contact-text ul {
        width: 100%; /* 调整列表宽度 */
        padding: 0;
    }

    .contact-text ul li {
        font-size: 1rem; /* 调整字体大小 */
        line-height: 1.5;
    }

    /* 调整页脚 */
    footer {
        font-size: 1rem; /* 调整字体大小 */
    }

    
}
