
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 确保页面至少占满视口高度 */
}

.main-content {
  flex: 1; /* 内容区域自动填充剩余空间 */
}

.Subpage-header-image {
    position: relative;
    text-align: center;
}

.Subpage-header-image img {
    max-width: 100%;
    height: auto;
}

.Subpage-header-image h1 {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    border-bottom: 2px solid #ffffff;
    padding-bottom: 20px;
    color: #ffffff;
}

.table-most{
	width: 100%;
	height: auto;
	margin: 50px auto;
	padding: 25px 40px;
	box-sizing: border-box;
	
}

.table-second-floor{
	width: auto;
	min-height: 820px;
	
	border-radius: 10px;
	padding: 10px 40px;
}



        /* 以下是过滤器样式 **********************************************/

        #filter-container {
            width: 100%;
            margin: 0 auto;
			min-height: 58px;
			
        }
		
		.filter-container-expanded {
            height: auto;
        }

        /* 过滤器切换按钮样式 */
        #filter-toggler {
			
			width: 215px;
			height: 58px;
			line-height: 58px;
            cursor: pointer;
            background-color: #589dfc;
            color: #ecf0f1;
            /*padding: 10px 20px;*/
            border-radius: 10px;
            text-align: center;
            transition: background-color 0.3s ease;
        }

        #filter-toggler:hover {
            background-color: #455a64;
        }

        /* 过滤器内容区域样式 */
        #filter-content {
			margin-top: 20px;
			background-color: #eeeeee;
			border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
            padding: 20px;
			padding-top: 40px;
            display: none;

        }

        /* 每行过滤选项样式 */
      .filter-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
        }

        /* 单个过滤选项样式 */
      .filter-item {
            width: calc(35.33% - 10px);
            background-color: #eee;
            border-radius: 3px;
            padding: 2px;
            position: relative;
            display: flex;
            align-items: center;
        }

        /* 搜索框包裹层样式 */
      .search-input-wrapper {
            position: relative;
            display: flex;
			background-color: #fff;
            align-items: center;
			margin:0 0 30px 5px;
            width: 100%;
        }

        /* 搜索框样式 */
      .search-input-wrapper input {
            width: 100%;
            padding: 8px;
            border: none;
            border-radius: 3px;
            background-color: #fff;
            color: #000000;
            outline: none;
            flex: 1;
        }


.FilterForm,.FilterFormNumericalValue{
			padding: 8px;
            border: none;
            border-radius: 3px;
            background-color: #fff;
            color: #000000;
            outline: none;
}

.FilterFormNumericalValue{
			width: 80%;
	
}

.FilterForm{
            flex: 1;
        }


.search-input-wrapper span{
	position: relative;
	bottom: 30px;
	width: 1px;
}


        /* 搜索框编号样式 */
      .search-box-number {
            font-size: 12px;
            color: #000000;
            margin-right: 5px;
			margin-left:5px;
		    white-space: nowrap;

        }

        /* 删除按钮样式 */
      .delete-btn {
            position: static;
            margin-left: 10px;
            background: none;
            border: none;
            color: #000000;
            cursor: pointer;
            font-size: 20px;
		  padding-bottom: 32px;
        }

        /* 按钮容器样式（用于放置搜索和重置按钮） */
      .button-container {
            display: flex;
            justify-content: flex-start;
            margin-top: 15px;
            padding-left: 20px;
        }

        /* 搜索按钮和重置按钮通用样式 */
      .search-btn,
      .reset-btn {
            cursor: pointer;
            padding: 10px 20px;
            border-radius: 3px;
            border: none;
            margin-right: 10px;
            color: #ecf0f1;
            outline: none;
        }

        /* 搜索按钮特定样式 */
      .search-btn {
            background-color: #3498db;
        }

        /* 重置按钮特定样式 */
      .reset-btn {
            background-color: #455a64;
        }

       /********以上是过滤器样式**********************/


       /*********以下是表格样式********/
.table-BigBox{
	width: 100%;
	height: auto;
}

        .sidebar {
			float: left;
            width: 18%;
			margin: 10px auto;
            background-color: #ffffff;
            border: 1px solid #ddd;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .sidebar h2 {
            margin: 0;
            padding: 15px;
            background-color: #f1f1f1;
            font-size: 14px;
            font-weight: bold;
            border-bottom: 1px solid #ddd;
        }

        .sidebar ul {
            list-style-type: none;
            padding: 0;
            margin: 0;
        }

        .sidebar ul li {
            border-bottom: 1px solid #ddd;
        }

        .sidebar ul li a {
            display: block;
            padding: 10px 15px;
            text-decoration: none;
            color: #333;
            font-size: 12px;
        }

        .sidebar ul li a:hover {
            background-color: #f7f7f7;
        }

        .sidebar ul li a::before {
            content: '+';
            margin-right: 10px;
        }

        .sidebar ul li.sub-item a::before {
            content: '';
        }



.table-container {
	float: right;
    width: 80%;
    margin: 10px auto;
}

.table-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
	position: relative;
}


.item-per-page select {
    width: 120px;
    height: 44px;
    border: 1px solid #000; 
    background-color: white; 
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none; 
    padding: 0 5px;
}		

.item-per-page select {
    text-align: center;
}
		
.item-per-page label,
.item-per-page select,
.search-box label{
	font-size: 14px;
	font-weight: 100;
		}
		
.item-per-page,
.search-box {
    display: flex;
    align-items: center;
	position: absolute;
    top: 0;
}

.item-per-page{
    right: 47%;
}

.search-box{
	right: 0;
}

select,
input {
    margin-left: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
	font-size: 12px;
}

th {
    background-color: #444444;
	font-size: 12px;
    color: #fff;
	height: 35px;
}
		
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.pagination {
    display: flex;
    align-items: center;
}

.pagination button {
    margin: 0 10px;
    padding: 5px 10px;
}

.page-info {
    /*margin-left: 20px;*/

}
		
.pagination button#prevPage,
.pagination button#nextPage {
	width: 70px;
    background-color: #589dfc;
    color: white; 
    border: none;
    padding: 5px 10px; 
    cursor: pointer; 
}

/* 添加鼠标悬停时的样式变化，增强交互效果 */
.pagination button#prevPage:hover,
.pagination button#nextPage:hover {
    background-color: #3a7ac8;
}

.search-box-Enter-Keyword{
	position: relative;
	width: 340px;
	height: 46px;
}

.search-box-Enter-Keyword input{
    width: 100%;
    height: 100%;
	margin-left: 10px;
	box-sizing: border-box;
    background-color: #e9e9e9;
    border-radius: 30px;
	border: none;
	padding: 10px 30px 10px 10px;
}

.search-box-Enter-Keyword button{
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  padding: 8px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  line-height: 100%;
}

#pageNumbers button {
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    cursor: pointer;
}

#pageNumbers button.active {
    background-color: #589dfc;
    color: white;
}


@media (max-width: 768px) {
  .sidebar {
    float: none;
    width: 100%;
    margin: 10px 0;
  }
  
  .table-container {
    float: none;
    width: 100%;
	  overflow-x: auto;
  }
  
  .table-most {
    padding: 15px 10px;
    margin: 20px auto;
  }
  
  .table-second-floor {
    padding: 10px 15px;
  }
	
	  table {
    min-width: 800px; /* 保持表格完整显示，允许横向滚动 */
  }
  
  th, td {
    padding: 6px 4px;
    font-size: 11px;
    white-space: nowrap;
  }
  
  th {
    font-size: 11px;
    padding: 8px 4px;
  }


	
  #filter-container {
    min-height: auto;
  }
  
  #filter-toggler {
    width: 100%;
    height: 50px;
    line-height: 50px;
    font-size: 16px;
  }
  
  .filter-row {
    flex-direction: column;
  }
  
  .filter-item {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .search-input-wrapper {
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
  }
  
  .search-box-number {
    position: static;
    margin-bottom: 5px;
    font-size: 14px;
    width: 100%;
  }
  
  .input-container {
    width: 100%;
  }
  
  #dropdown, #dropdown1 {
    width: 100%;
    position: relative;
  }
  
  .delete-btn {
    padding-bottom: 0;
    margin-left: 5px;
  }

  .table-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .item-per-page, .search-box {
    position: static;
    margin: 10px 0;
    justify-content: center;
  }
  
  .search-box-Enter-Keyword {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .pagination-wrapper {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-info {
    text-align: center;
    font-size: 14px;
  }
  
  .pagination {
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .pagination button {
    margin: 2px;
    padding: 8px 12px;
    font-size: 14px;
  }

}



/* 侧边栏头部样式 */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 15px;
  background-color: #f1f1f1;
  border-bottom: 1px solid #ddd;
}

.sidebar-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
}

/* 展开/折叠按钮样式 */
.toggle-btn {
  background-color: #589dfc;
  color: white;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-btn:hover {
  background-color: #3a7ac8;
}

/* 产品系列内容区域 */
.product-series-content {
  transition: max-height 0.3s ease;
  overflow: hidden;
}

/* 手机端样式 */
@media (max-width: 768px) {
  .sidebar {
    float: none;
    width: 100%;
    margin: 10px 0;
  }
  
  .sidebar-header {
    padding: 12px 15px;
  }
  
  .toggle-btn {
    font-size: 14px;
    padding: 6px 15px;
  }
  
  /* 默认折叠状态 */
  .product-series-content.collapsed {
    max-height: 0;
  }
  
  /* 展开状态 */
  .product-series-content.expanded {
    max-height: 500px; /* 根据实际内容调整 */
  }
  
  /* 桌面端保持展开 */
  @media (min-width: 769px) {
    .toggle-btn {
      display: none; /* 桌面端隐藏按钮 */
    }
    
    .product-series-content {
      max-height: none !important; /* 桌面端始终展开 */
    }
  }
}

/* 原有的侧边栏列表样式保持不变 */
.sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  border-bottom: 1px solid #ddd;
}

.sidebar ul li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  font-size: 12px;
}

.sidebar ul li a:hover {
  background-color: #f7f7f7;
}

.sidebar ul li a::before {
  content: '+';
  margin-right: 8px;
}

.sidebar ul li.sub-item a::before {
  content: '';
}







/* 手机端过滤器布局修复 */
@media (max-width: 768px) {
  /* 过滤器容器修复 */
  #filter-content {
    padding: 15px 10px;
	  padding-top: 30px;
  }
  
  /* 过滤器行改为垂直布局 */
  .filter-row {
    flex-direction: column;
    margin-bottom: 0;
  }
  
  /* 每个过滤项占满宽度 */
  .filter-item {
    width: 100%;
    margin-bottom: 35px;
    background-color: transparent;
    padding: 0;
    display: block; /* 改为块级显示 */
  }
  
  /* 搜索输入包装器修复 */
  .search-input-wrapper {
    display: flex;
    flex-direction: row; /* 保持水平布局但优化间距 */
    align-items: center;
    background-color: #fff;
    border-radius: 5px;
    padding: 8px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
  }
  
  /* 搜索框标签样式 */
  .search-box-number {
    position: static;
    width: auto;
    min-width: 1px; /* 确保标签有足够空间 */
    font-size: 14px;
    color: #000;
    margin-bottom: 12px;
    margin-right: -12px;
    white-space: nowrap;
    flex-shrink: 0; /* 防止标签被压缩 */
  }
  
  /* 输入容器优化 */
  .input-container {
    flex: 1;
    position: relative;
    min-width: 0; /* 允许压缩 */
  }
  
  /* 文本域输入框修复 */
  #inputField, #inputField1 {
    width: 92%;
    min-height: 35px;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 8px;
    box-sizing: border-box;
    background-color: #fff;
    font-size: 14px;
  }
  
  /* 下拉菜单修复 */
  #dropdown, #dropdown1 {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
  }
  
  /* 选择框样式修复 */
  .FilterForm, .FilterFormNumericalValue {
    width: 100%;
    height: 35px;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 0 8px;
    box-sizing: border-box;
    background-color: #fff;
    font-size: 14px;
  }
  
  /* 双选择框布局（如额定电压的运算符和值） */
  .search-input-wrapper .FilterForm {
    width: 30%;
    margin-right: 2px;
  }
  
  .search-input-wrapper .FilterFormNumericalValue {
    width: 65%;
	margin-right: 35px;
  }
	
	#Temperaturerange, #Ratedripplecurrent {
		margin-right: 35px;
	}
  
  /* 删除按钮位置修复 */
  .delete-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding-bottom: 0;
    margin-left: 0;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    z-index: 10;
  }
  
  /* 按钮容器优化 */
  .button-container {
    padding-left: 0;
    justify-content: center;
    margin-top: 20px;
  }
  
  .search-btn, .reset-btn {
    width: 45%;
    margin: 0 2.5%;
    padding: 12px 0;
    font-size: 16px;
  }
}
