
/* 水平居中 */
.center-h {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 垂直居中容器 */
.center-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

/* 绝对定位居中 */
.center-absolute {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 网格居中 */
.center-grid {
  display: grid;
  place-items: center;
  height: 100vh;
}

/* 文本居中 */
.center-text {
  text-align: center;
  line-height: 1.5;
}

/* 行内元素居中 */
.center-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 响应式居中盒子 */
.center-box {
  width: 80%;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


/* 文本居中 */
.text-center {
  text-align: center;
}

/* 边框圆角 */
.rounded {
  border-radius: 8px;
}
.rounded-full {
  border-radius: 9999px;
}

/* 填充尺寸 */
.padding-sm {
  padding: 8px;
}
.padding-md {
  padding: 16px;
}
.padding-lg {
  padding: 24px;
}

/* 填充颜色 */
.bg-primary {
  background-color: #3498db;
}
.bg-secondary {
  background-color: #2ecc71;
}
.bg-light {
  background-color: #f8f9fa;
}

/* 宽度 */
.w-full {
  width: 100%;
}
.w-half {
  width: 50%;
}
.w-300 {
  width: 300px;
}

/* 高度 */
.h-full {
  height: 100%;
}
.h-half {
  height: 50%;
}
.h-200 {
  height: 200px;
}

/* 组合示例 */
.card {
  width: 300px;
  height: 200px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}


br{
color: rgb(102, 102, 102); 
font-family: &quot;Microsoft YaHei&quot;;
 font-size: 16px; 
white-space: normal;
}


strong{
margin: 0px;
 padding: 0px; 
color: rgb(102, 102, 102);
 font-family: &quot;
Microsoft YaHei&quot;;
 font-size: 16px;
 white-space: normal;
}


        /* 基础样式重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* 固定头部 */
        .fixed-header {
            position: sticky;
            top: 0;
            background: white;
            z-index: 100;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            padding: 10px;
        }

        /* 搜索框样式 */
        #searchInput {
            width: 100%;
            padding: 12px;
            margin-bottom: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
        }




body {
  font-family: Arial;
  padding: 10px;
  background: #f1f1f1;
}
 
/* 头部标题 */
.header {
  padding: 10px;
  text-align: center;
  background: white;
}
 
.header h1 {
  font-size: 50px;
}
 
/* 导航条 */
.topnav {
  overflow: hidden;
  background-color: #333;
}
 
/* 导航条链接 */
.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}
 
/* 链接颜色修改 */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}
 
/* 创建两列 */
/* Left column */
.leftcolumn {   
  float: left;
  width: 75%;
}
 
/* 右侧栏 */
.rightcolumn {
  float: left;
  width: 25%;
  background-color: #f1f1f1;
  padding-left: 20px;
}
 
/* 图像部分 */
.fakeimg {
  background-color: #aaa;
  width: 100%;
  padding: 20px;
}
 
/* 文章卡片效果 */
.card {
  background-color: white;
  padding: 30px;
  margin-top: 20px;
}
 
/* 列后面清除浮动 */
.row:after {
  content: "";
  display: table;
  clear: both;
}
 
/* 底部 */
.footer {
  padding: 20px;
  text-align: center;
  background: #ddd;
  margin-top: 20px;
}
 
/* 响应式布局 - 屏幕尺寸小于 800px 时，两列布局改为上下布局 */
@media screen and (max-width: 800px) {
  .leftcolumn, .rightcolumn {   
    width: 100%;
    padding: 0;
  }
}
 
/* 响应式布局 -屏幕尺寸小于 400px 时，导航等布局改为上下布局 */
@media screen and (max-width: 400px) {
  .topnav a {
    float: none;
    width: 100%;
  }
}

        /* 响应式表格容器 */
        .table-container {
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
border: 0.1rem solid #34495e; /* 内边框 */
        border-bottom:0.2rem solid #2c3e50; /* 加强底部边框 */
background: #34495e; /* 背景色 */
       color: white;
 /*  height: 100%;*/
          max-height: 70vh;
            overflow: auto;
            margin: 0 15px;

        }

        /* 表格样式 */
        #productTable {
            width: 100%;
            border-collapse: collapse;
            font-family: Arial, sans-serif;
        }

        #productTable th {
border: 0.1rem solid #34495e; /* 内边框 */
        border-bottom:0.5rem solid #2c3e50; /* 加强底部边框 */
 background-image: linear-gradient(to top, #209cff 0%, #68e0cf 100%); /* 背景色 */
       color: red;
    
            position: sticky;
            top: 0.1rem; /*  适配固定搜索框 */
            z-index: 50;
        }

        #productTable td, #productTable th {
            padding: 12px;
            border-bottom: 1px solid #eee;
             text-align: center;
border-width: 1px;    /* 边框宽度 */
  border-style: solid;  /* 边框样式（必填，否则边框不显示） */
  border-color:#A9A9A9;    /* 边框颜色 */
        }

        /* 缩略图样式 */
        .thumbnail {
            width: 60px;
            height: 60px;
            object-fit: cover;
            cursor: pointer;
            border-radius: 4px;
            transition: transform 0.2s;
        }

        .thumbnail:hover {
            transform: scale(1.05);
        }

a {
    text-decoration: none; /* 移除默认的下划线 */
}
/*a:link, a:visited, a:hover, a:active {*/
  /*  text-decoration: underline;  添加自定义下划线 */
  /*  text-decoration-color: blue; 设置下划线颜色 */
  /*  text-decoration-style: dotted;  设置下划线样式 */
/*} */
 a:link {color:#666666; } /*未访问的链接 */
 a:visited {color:#00FF00;} /*已访问的链接 */
a:hover {color:#FF00FF;}  /*鼠标划过链接 */
a:active {color:#0000FF;}  /*已选中的链接 */
      /* 返回顶部开始 */
#backToTop { 
  position: fixed; /*  定位元素相对于浏览器窗口是固定位置。即使窗口是滚动的它也不会移动*/
  bottom: 50px;
  right: 20px;
  display: none;
  cursor: pointer;  /* 设置鼠标指针的样式  */
}
/* 返回顶部结束 */

        /* 底部版权 */
        footer {
            padding: 2px;
            text-align: center;
            color: #666;
            background: #f8f9fa;
            margin-top: 2px;
        }
 .nsjb{
 background-image: linear-gradient(to top, #4481eb 0%, #04befe 100%);
     }
h1,tr:hover {
background-image: linear-gradient(to top, #4481eb 0%, #04befe 100%);
color:#FF00FF;
} 
.center-flex-both {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    height: auto; /* 使容器高度为视口高度的100% */
 /* 填充(padding)设置 */
background-color: #f0f8ff; /* 设置填充区域颜色 */
/* 分别设置各边填充(上右下左) */
  padding: 2px 2px 2px 2px;
/* 边框(border)设置 */
 /* 简写形式：宽度 样式 颜色 */
  border: 2px solid #4CAF50;
/* 圆角边框 */
  border-radius: 10px;
}

        /* 移动端优化 */
        @media (max-width: 768px) {
            #productTable td:nth-child(3),
            #productTable th:nth-child(3) {
                display: none;
            }
        }

.jzxs {
font-size: 12px; 
color: #666;
 margin-left: 15px;
            text-align: center;
        }
/* 基础样式 */
.img-container {
  display: inline-block;
  margin: 20px;
  cursor: zoom-in;
}

.thumbnail {
  
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.2s;
}

.thumbnail:hover {
  transform: scale(1.02);
}

/* 遮罩层 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* 原图容器 */
.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  animation: zoomIn 0.3s;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

@keyframes zoomIn {
  from { transform: scale(0.8); }
  to { transform: scale(1); }
}

/* 关闭按钮 */
.close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.close:hover {
  opacity: 1;
}
  @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');