/* 产品规格主容器 */
.product-specs {
  max-width: 640px;
  padding: 6px 0;
  font-family: system-ui, -apple-system, sans-serif;
}

/* 规格分组容器 */
.spec-group {
  margin-bottom: 0;
}

/* 单个规格条目容器 */
.spec-item {
  display: flex;
  padding: 4px 0;
  min-height: 32px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
  transition: all 0.2s ease;
  align-items: center;
}

.spec-item:hover {
  background: rgba(0,0,0,0.08);
}

/* 动画延迟配置 */
.spec-item:nth-child(1) { animation-delay: 0.2s; }
.spec-item:nth-child(2) { animation-delay: 0.3s; }
.spec-item:nth-child(3) { animation-delay: 0.4s; }
.spec-item:nth-child(4) { animation-delay: 0.5s; }
.spec-item:nth-child(5) { animation-delay: 0.6s; }

/* 向上淡入动画定义 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 规格标签样式 */
.spec-label {
  min-width: 96px;
  max-width: 110px;
  color: #666;
  font-size: 14px;
  flex-shrink: 0;
  padding: 2px 8px 0 0;
  line-height: 1.5;
}

/* 规格值容器 */
.spec-value {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding-left: 4px;
}

/* 芯片式标签 */
.chip-tag {
  color: #0052cc;
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0,82,204,0.12);
  border: 1px solid rgba(0,82,204,0.2);
  margin-left: auto;
  white-space: nowrap;
  line-height: 1.3;
  margin-top: -1px;
}

/* 特性标签容器 */
.feature-tags {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* 单个特性标签 */
.feature-tag {
  color: #444;
  font-size: 0.8125rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
  opacity: 0;
  animation: fadeInUp 0.4s ease-out forwards;
  transition: all 0.3s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.feature-tag:hover {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.12);
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.feature-tag a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
  .spec-label { color: #999; }
  .spec-value { color: #eee; }
  .spec-item { border-color: rgba(255,255,255,0.1); }
  .chip-tag {
    color: #4dabf7;
    background: rgba(77,171,247,0.15);
    border-color: rgba(77,171,247,0.3);
  }
  .feature-tag {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
  }
  .spec-item:hover { background: rgba(255,255,255,0.05); }
  .feature-tag:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.2);
  }
}

/* 移动端适配（小于480px） */
@media (max-width: 480px) {
  .spec-item {
    padding: 2px 0;
    min-height: 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .spec-label {
    min-width: 80px;
    font-size: 13px;
    padding-right: 4px;
  }
  .spec-value {
    gap: 2px;
    padding-left: 2px;
    font-size: 14px;
  }
  .chip-tag {
    padding: 0 4px;
    font-size: 11px;
  }
  .feature-tags {
    gap: 3px;
    margin-top: 0.6rem;
  }
  .spec-item::-webkit-scrollbar { display: none; }
  .feature-tag:active { transform: scale(0.95); }
}

/* 其他组件样式 */
.comprehensive-container .comprehensive-news-container .comprehensive-news-left-inner .comprehensive-news-left-inner-button {
  bottom: 28px;
}

table.tftable {
  font-size: 15px;
  color: #000;
  width: 100%;
  border-width: 0px;
  border-color: #729ea5;
  border-collapse: collapse;
}

table.tftable td {
  font-size: 15px;
  border-width: 0px;
  padding: 3px;
  border-style: solid;
  border-color: #729ea5;
}

.product-card .product-Parameters .buy-now-button {
  margin: 12px 20px 20px;
  width: auto!important;
}

/* 标签样式 - 统一处理tisuyun_和KD_类 */
.tisuyun_bq,
.KD_bq {
  background-color: rgba(252, 241, 235, 1);
  color: rgba(254, 95, 71, 1) !important;
  margin-right: 2px;
  min-width: max-content;
  padding: 0 8px;
  height: 24px;
  line-height: 24px !important;
  font-size: 12px !important;
  font-weight: bold;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.tisuyun_bq:hover,
.KD_bq:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.tisuyun_adv,
.KD_adv {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid #0008ff;
  font-size: 12px !important;
  font-style: normal;
  line-height: 16px !important;
  border-radius: 2px;
  background: #fff;
  color: #0008ff !important;
  position: relative;
  float: right;
  margin-top: 5px;
  transition: all 0.3s ease;
}

.tisuyun_adv:hover,
.KD_adv:hover {
  background: #0008ff !important;
  color: #fff !important;
}

/* 通用样式 */
p.stock-info {
  display: block;
}

.product-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: cardFadeIn 0.6s ease-out;
}

.product-card:hover {
  border-color: #d0d0d0;
}

.product-card-header {
  border-radius: 12px 12px 0 0;
}

.product-Parameters {
  border-radius: 0 0 12px 12px;
}

.buy-now-button {
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.buy-now-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.buy-now-button:active {
  transform: translateY(1px);
}

.buy-now-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.8s ease;
}

.buy-now-button:hover::before {
  left: 100%;
}

.price {
  transition: transform 0.3s ease;
}

.amount {
  font-weight: 700;
}

.header-title h5::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  vertical-align: middle;
  background-image: url("https://www.qituyun.cn/themes/web/www/upload/local681ce25f03230.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

.product-card:hover .header-title h5::before {
  transform: rotate(5deg);
}

.product-description {
  transition: color 0.3s ease;
}

.product-card:hover .product-description {
  color: #333;
}

.product-card .product-card-body .product-description {
  padding: 10px 18px 0;
  margin-bottom: 0px;
  width: 100%;
}

/* 卡片加载动画 */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 价格跳动效果 */
@keyframes priceGlow {
  0%, 100% {
    text-shadow: none;
  }
  50% {
    text-shadow: 0 0 8px rgba(231, 76, 60, 0.3);
  }
}

.product-card:hover .amount {
  animation: priceGlow 2s ease-in-out infinite;
}

/* 标签组微弹跳 */
.product-card:hover .tisuyun_bq:nth-child(1),
.product-card:hover .KD_bq:nth-child(1) {
  transition-delay: 0.1s;
}

.product-card:hover .tisuyun_bq:nth-child(2),
.product-card:hover .KD_bq:nth-child(2) {
  transition-delay: 0.2s;
}

.product-card:hover .tisuyun_bq:nth-child(3),
.product-card:hover .KD_bq:nth-child(3) {
  transition-delay: 0.3s;
}

/* 卡片内容轻微放大 */
.product-card:hover .product-card-body {
  transition: transform 0.3s ease;
}

/* HR线条动画 */
hr {
  position: relative;
  overflow: hidden;
}

hr::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #667eea, transparent);
  transition: left 0.8s ease;
}

.product-card:hover hr::after {
  left: 100%;
}

/* 微妙的焦点指示器 */
.product-card:focus-within {
  outline: 2px solid rgba(102, 126, 234, 0.3);
  outline-offset: 2px;
}