/* 未来科技风格展示组件 - 数字孪生城市界面 */

.show_type {
  height: 45px;
  overflow: hidden;
  margin-top:60px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  position: relative;
  perspective: 1000px;
}

.show_type::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  animation: scanLine 3s linear infinite;
}

.show_type li {
  float: none;
  width: auto;
  min-width: 140px;
  text-align: center;
  line-height: 1.5;
  background: transparent;
  margin: 0 5px;
  perspective: 600px;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.show_type li a {
  font-size: 1.1rem;
  display: block;
  padding: 12px 20px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
  font-weight: 600;
}

.show_type li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cyber-gradient);
  border-radius: 25px;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 1;
}

.show_type li:hover {
  transform: translateY(-5px) rotateX(10deg);
}

.show_type li:hover::before {
  opacity: 0.1;
}

.show_type li:hover a {
  color: var(--primary-color);
  text-shadow: 0 0 8px rgba(0, 162, 255, 0.3);
}

.show_type li.ck {
  background: transparent;
  font-weight: 700;
  transform: translateY(-5px) scale(1.05);
}

.show_type li.ck::before {
  opacity: 1;
}

.show_type li.ck a:link, 
.show_type li.ck a:visited, 
.show_type li.ck a:hover {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

#loading {
  height: 40px;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

#loading span {
  float: none;
  margin-right: 15px;
  color: var(--text-secondary);
  font-weight: 600;
}

.loading_span {
  display: block;
  width: 40px;
  height: 40px;
  background: transparent;
  position: relative;
}

.loading_span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid rgba(0, 162, 255, 0.3);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.MainContents {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  padding: 25px 0;
  margin: 0 auto;
}

.ShowConts {
  width: 100%;
  margin: 0;
}

#ShowAlls {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

#ShowAlls .ListShop {
  width: 100%;
  height: auto;
  min-height: 420px;
  border: none;
  overflow: hidden;
  float: none;
  margin: 0;
  background: transparent;
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: var(--glass-bg);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(15px);
}

#ShowAlls .ListShop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(125deg, 
              rgba(0, 162, 255, 0.05) 0%, 
              rgba(126, 66, 255, 0.05) 100%);
  z-index: -1;
  border-radius: 20px;
}

#ShowAlls .ListShop:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-10px) rotateX(5deg) scale(1.02);
}

#ShowAlls .ListShop .title {
  padding: 20px 20px 10px;
  height: auto;
  overflow: hidden;
  line-height: 1.4;
}

#ShowAlls .ListShop .title a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

#ShowAlls .ListShop .title a:hover {
  color: var(--primary-color);
}

#ShowAlls .ListShop .company {
  padding: 0 20px 15px;
  height: auto;
  overflow: hidden;
  line-height: 1.4;
}

#ShowAlls .ListShop .company a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

#ShowAlls .ListShop .company a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

#ShowAlls .ListShop .img {
  width: 100%;
  height: 220px;
  padding: 0;
  overflow: hidden;
  margin: 0;
  position: relative;
}

#ShowAlls .ListShop .img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cyber-gradient);
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 2;
}

#ShowAlls .ListShop:hover .img::before {
  opacity: 0.1;
}

#ShowAlls .ListShop .img a {
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  margin-left: 0;
  overflow: hidden;
  position: relative;
  background: #f8f8f8;
}

#ShowAlls .ListShop .img a::after {
  content: '查看详情';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  color: white;
  background: var(--cyber-gradient);
  padding: 10px 20px;
  border-radius: 25px;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 3;
  font-weight: 600;
  letter-spacing: 1px;
}

#ShowAlls .ListShop:hover .img a::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#ShowAlls .ListShop .info {
  width: 100%;
  height: auto;
  overflow: hidden;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.7);
  position: static;
  left: auto;
  top: auto;
  z-index: 10;
  opacity: 1;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  backdrop-filter: blur(10px);
}

#ShowAlls .ListShop .info span {
  float: none;
  padding: 0;
}

#ShowAlls .ListShop .info .hits {
  float: none;
}

#ShowAlls .ListShop .info .hits em {
  font-weight: 700;
  color: #BAE450;
  font-style: normal;
  text-shadow: 0 0 5px rgba(186, 228, 80, 0.5);
}

#ShowAlls .ListShop .mores {
  width: 100%;
  height: auto;
  overflow: hidden;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#ShowAlls .ListShop .mores .price {
  float: none;
  padding: 0;
  line-height: 1.2;
  color: var(--primary-color);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
}

#ShowAlls .ListShop .mores .price em {
  font-style: normal;
  font-size: 2rem;
  color: var(--secondary-color);
  text-shadow: 0 0 5px rgba(126, 66, 255, 0.3);
}

#ShowAlls .ListShop .mores a {
  display: block;
  width: auto;
  min-width: 120px;
  height: auto;
  overflow: hidden;
  text-align: center;
  line-height: 1.5;
  background: var(--cyber-gradient);
  float: none;
  margin-top: 0;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  padding: 12px 25px;
  border-radius: 25px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

#ShowAlls .ListShop .mores a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: all 0.6s ease;
}

#ShowAlls .ListShop .mores a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

#ShowAlls .ListShop .mores a:hover::before {
  transform: translateX(100%);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .MainContents {
    padding: 20px 15px;
  }
  
  #ShowAlls {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .show_type {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0;
  }
  
  .show_type li {
    margin: 5px;
    width: calc(50% - 10px);
  }
  
  #ShowAlls {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  #ShowAlls .ListShop {
    min-height: 380px;
  }
  
  #ShowAlls .ListShop .img {
    height: 180px;
  }
  
  #ShowAlls .ListShop .mores {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  #ShowAlls .ListShop .mores a {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .show_type li {
    width: 100%;
    margin: 5px 0;
  }
  
  #ShowAlls .ListShop {
    min-height: 350px;
  }
  
  #ShowAlls .ListShop .img {
    height: 150px;
  }
  
  #ShowAlls .ListShop .title {
    padding: 15px 15px 10px;
  }
  
  #ShowAlls .ListShop .company {
    padding: 0 15px 10px;
  }
  
  #ShowAlls .ListShop .info {
    padding: 10px 15px;
  }
  
  #ShowAlls .ListShop .mores {
    padding: 15px;
  }
}

/* 黑暗模式支持 */
@media (prefers-color-scheme: dark) {
  #ShowAlls .ListShop {
    background: rgba(26, 32, 54, 0.8);
  }
  
  #ShowAlls .ListShop .title a {
    color: rgba(255, 255, 255, 0.9);
  }
  
  #ShowAlls .ListShop .img a {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .show_type li,
  #ShowAlls .ListShop,
  #ShowAlls .ListShop .mores a,
  .loading_span::before {
    transition: none;
    animation: none;
  }
  
  .show_type::before {
    animation: none;
  }
  
  #ShowAlls .ListShop:hover {
    transform: none;
  }
}