/* style.css */
body {
    padding-top: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff; /* 页面背景色 */
    color: #2e9fff; /* 字体颜色 */
    margin: 0;

}

pre {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.8;
}

.table-container {
    overflow-x: auto;
    background-color: rgb(255 255 255 / 25%);  
    color: #434343; 
    padding: 20px;
    font-size: 14px;
    border-radius: 10px; 
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}


.col-model-name { width: 20%; }
.col-supplier { width: 12%; }
.col-type { width: 10%; }
.col-price { width: 26%; }
.col-description { width: 30%; }


tr:hover {
    background-color: #ffffff47; 
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.4); 

    transition: all 0.3s ease; 
}



table td:nth-child(5) {
    line-height: 1.8;
}

th, td {
    word-wrap: break-word;
    text-align: left;
    padding: 12px 8px; 
    border-bottom: 1px solid #fff; 
}


td:nth-child(5) { 
    max-height: 100px; 
    font-size: 14px;
    overflow-y: auto; 
}

th {
    background-color: rgb(255 255 255 / 80%);  
}

.category {
    cursor: pointer;
    font-weight: bold;
    background-color: rgb(255 255 255 / 50%);
    position: relative; 
}

.category td::before {
    content: '\25B6';
    margin-right: 5px; 
    font-size: 16px;
    display: inline-block; 
}

.category.open td::before {
    content: '\25BC';
}


th:nth-child(1), td:nth-child(1) {
    min-width: 150px;
}

th:nth-child(2), td:nth-child(2) {
    min-width: 100px;
}

th:nth-child(3), td:nth-child(3) {
    min-width: 300px;
}







* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:'Poppins', sans-serif;
}


.scroll {
  position: relative;
  display: flex;
  margin: 0 auto;
  width: 80%;
  margin-bottom: 10px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent);
}

.scroll div {
    padding-top: 20px;
  white-space: nowrap;
  animation: animate var(--t) linear infinite;
  animation-delay: calc(var(--t) * -1);
}

.scroll div:nth-child(2) {
  animation: animate2 var(--t) linear infinite;
  animation-delay: calc(var(--t) / -2);
}

@keyframes animate {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes animate2 {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-200%);
  }
}


.scroll div span {
  display: inline-flex;
  margin: 10px;
  background-color: #ffffff99;
  color: #191919;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: .5s;
}

.scroll div span:hover {
  background-color: #42d6d6fc;
}

.imgbx img {
  max-width: 100px;
  scale: .8;
  filter: grayscale(1);
  cursor: pointer;
  transition: .5s;
}

.imgbx img:hover {
  filter: grayscale(0);
  
}