/* 科技主题增强样式 - 前台产品展示美化 */

/* 全局变量定义 */
:root {
  --tech-primary: #7c3aed;
  --tech-secondary: #a855f7;
  --tech-accent: #ec4899;
  --tech-success: #10b981;
  --tech-warning: #f59e0b;
  --tech-danger: #ef4444;
  --tech-info: #8b5cf6;
  --tech-dark: #343a40;
  --tech-light: #f8f9fa;
  --tech-gray: #6c757d;
  --tech-gradient: linear-gradient(135deg, #7c3aed, #a855f7);
  --tech-glass: rgba(255, 255, 255, 0.1);
  --tech-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --tech-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.2);
  --tech-border-radius: 1rem;
  --tech-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* neumorphic按钮效果 */
.btn-tech {
  background: var(--tech-light);
  border: none;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05),
             -5px -5px 10px rgba(255, 255, 255, 0.5);
  border-radius: 0.75rem;
  transition: var(--tech-transition);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-tech:hover {
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1),
             -3px -3px 6px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-tech-primary {
  background: var(--tech-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
  border: none;
}

.btn-tech-primary:hover {
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.6);
  transform: translateY(-2px);
}

/* 产品卡片增强样式 */
.tech-card {
  border-radius: var(--tech-border-radius);
  overflow: hidden;
  background: white;
  box-shadow: var(--tech-shadow);
  transition: var(--tech-transition);
  border: none;
  position: relative;
}

.tech-card:hover {
  box-shadow: var(--tech-shadow-hover);
  transform: translateY(-5px);
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--tech-gradient);
}

/* 玻璃态效果 */
.glass-effect {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 产品规格信息表格化 */
.tech-specs-table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.tech-specs-table tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.tech-specs-table tr:last-child {
  border-bottom: none;
}

.tech-specs-table tr:hover {
  background-color: rgba(67, 97, 238, 0.03);
}

.tech-specs-table td {
  padding: 1rem 1.25rem;
}

.tech-specs-table td:first-child {
  font-weight: 600;
  width: 40%;
  color: var(--tech-dark);
  position: relative;
}

.tech-specs-table td:first-child::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 1px;
  background-color: rgba(0, 0, 0, 0.05);
}

/* 信息图标 */
.tech-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
}

.tech-feature-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  border-radius: 30px;
  background: var(--tech-gradient);
  transition: var(--tech-transition);
  margin-right: 0.5rem;
  box-shadow: 0 2px 10px rgba(67, 97, 238, 0.3);
}

.tech-feature-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.4);
}

/* 支付方式图标样式 */
.payment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
  background: var(--tech-light);
  margin-right: 0.5rem;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--tech-transition);
}

.payment-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.payment-icon.alipay {
  color: #00a0e9;
}

.payment-icon.wechat {
  color: #07c160;
}

.payment-icon.credit-card {
  color: #f46f60;
}

.payment-icon.paypal {
  color: #0070ba;
}

/* 额外状态图标 */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  border-radius: 30px;
  transition: var(--tech-transition);
}

.status-badge.need-real-name {
  background-color: var(--tech-warning);
}

.status-badge.no-real-name {
  background-color: var(--tech-success);
}

/* 价格卡片样式 */
.price-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: var(--tech-transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.price-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.price-card .price-header {
  padding: 1.5rem;
  background: var(--tech-gradient);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.price-card .price-header::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  top: -25%;
  left: -25%;
}

.price-card .price-header .price-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
}

.price-card .price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.price-card .price-period {
  opacity: 0.8;
  font-weight: 500;
}

.price-card .price-body {
  padding: 1.5rem;
  background: white;
}

.price-card .price-description {
  color: var(--tech-gray);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* 产品页英雄区域 */
.product-hero {
  position: relative;
  padding: 3rem 0;
  background: var(--tech-gradient);
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/assets/images/tech-pattern.svg') center center repeat;
  opacity: 0.1;
}

.product-hero-content {
  position: relative;
  z-index: 1;
  color: white;
}

.product-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-vendor {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-weight: 500;
  margin-bottom: 1rem;
  backdrop-filter: blur(5px);
}

.product-vendor img {
  height: 24px;
  width: auto;
  margin-right: 0.75rem;
}

/* 动画效果 */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

/* 自适应样式 */
@media (max-width: 768px) {
  .product-title {
    font-size: 2rem;
  }
  
  .tech-specs-table td {
    padding: 0.75rem 1rem;
  }
  
  .price-card .price-amount {
    font-size: 2rem;
  }
}

/* 附加科技主题样式 */

/* 比较栏样式 */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* 高亮行 */
.tech-specs-table tr.highlight-row {
  background-color: rgba(67, 97, 238, 0.05);
}

/* 活跃卡片效果 */
.price-card.active-card {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 卡片入场动画 */
@keyframes techCardEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tech-card {
  opacity: 0;
  transform: translateY(20px);
}

.tech-card-visible {
  animation: techCardEnter 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

/* 粒子背景样式 */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

/* 闪光标签效果 */
.tech-feature-badge {
  position: relative;
  overflow: hidden;
}

.tech-feature-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
}

/* 荧光边缘效果 */
.glow-effect {
  position: relative;
}

.glow-effect::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--tech-primary), var(--tech-secondary), var(--tech-accent));
  z-index: -1;
  border-radius: inherit;
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
  opacity: 0.7;
}

/* 逐渐加载效果 */
@keyframes staggeredFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.staggered-item {
  opacity: 0;
}

.staggered-item.visible {
  animation: staggeredFadeIn 0.5s ease forwards;
}

.staggered-item:nth-child(1).visible { animation-delay: 0.1s; }
.staggered-item:nth-child(2).visible { animation-delay: 0.2s; }
.staggered-item:nth-child(3).visible { animation-delay: 0.3s; }
.staggered-item:nth-child(4).visible { animation-delay: 0.4s; }
.staggered-item:nth-child(5).visible { animation-delay: 0.5s; }

/* 响应式调整 */
@media (max-width: 576px) {
  .product-hero {
    padding: 2rem 0;
  }
  
  .product-title {
    font-size: 1.5rem;
  }
  
  .tech-feature-badge {
    font-size: 0.65em;
    padding: 0.25em 0.5em;
  }
  
  .compare-bar {
    font-size: 0.8rem;
  }
  
  .price-card .price-amount {
    font-size: 1.75rem;
  }
}

/* 打印样式调整 */
@media print {
  .product-hero::before,
  .product-hero::after,
  #particles-js,
  .pulse-animation,
  .glow-effect::before,
  .tech-feature-badge::after {
    display: none !important;
  }
  
  .glass-effect {
    background: white !important;
    border: 1px solid #eee !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
  
  .product-hero {
    background: white !important;
    color: black !important;
    padding: 1rem 0 !important;
  }
  
  .product-hero-content {
    color: black !important;
  }
  
  .tech-card, .price-card {
    box-shadow: none !important;
    border: 1px solid #eee !important;
  }
  
  .compare-bar {
    display: none !important;
  }
}

/* 英雄区域样式 */
.product-hero, .vendor-hero {
  position: relative;
  background: linear-gradient(135deg, #0061f2 0%, #6610f2 100%);
  padding: 80px 0 60px;
  overflow: hidden;
  margin-bottom: 30px;
  color: white;
}

.product-hero-content, .vendor-hero-content {
  position: relative;
  z-index: 10;
}

.product-title {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.glass-effect {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.tech-feature-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  border-radius: 30px;
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.tech-feature-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* 卡片样式 */
.tech-card {
  border-radius: 15px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.tech-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.tech-card-header {
  padding: 20px;
  border-bottom: 1px solid #eaeaea;
  background-color: #f8faff;
}

.tech-card-body {
  padding: 20px;
}

/* 按钮样式 */
.btn-tech {
  background-color: #f8f9fa;
  border: none;
  color: #343a40;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn-tech:hover {
  background-color: #e9ecef;
  color: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.btn-tech-primary {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124,58,237,0.2);
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn-tech-primary:hover {
  background: linear-gradient(135deg, #0062e6, #0056b3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,123,255,0.3);
  color: white;
}

/* 规格布局 */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@media (min-width: 768px) {
  .specs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.specs-item {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
}

.specs-item:hover {
  background-color: #e9f0ff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.specs-label {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.specs-value {
  font-weight: 600;
  font-size: 1.2rem;
  color: #343a40;
}

/* 内容展示盒子 */
.tech-content-box {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  line-height: 1.6;
}

/* 特性和用例列表 */
.tech-feature-item, .tech-usecase-item {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  padding: 12px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.tech-feature-item:hover, .tech-usecase-item:hover {
  background-color: #e9f0ff;
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* 系统和软件标签 */
.tech-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background-color: #f0f4f8;
  border-radius: 20px;
  color: #495057;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background-color: #e9f0ff;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* 相似产品项 */
.tech-similar-item {
  display: block;
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
  color: #343a40;
  text-decoration: none;
}

.tech-similar-item:hover {
  background-color: #e9f0ff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.similar-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.similar-specs {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 10px;
}

.similar-price {
  color: #7c3aed;
  font-weight: 600;
}

/* 厂商信息 */
.vendor-logo-lg {
  transition: transform 0.3s ease;
}

.vendor-logo-lg:hover {
  transform: scale(1.05);
}

.tech-vendor-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-vendor-meta-item {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tech-vendor-meta-item:hover {
  background-color: #e9f0ff;
  transform: translateX(5px);
}

/* 更多产品列表 */
.more-products-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-more-product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: #343a40;
  text-decoration: none;
}

.tech-more-product:hover {
  background-color: #e9f0ff;
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.more-product-name {
  font-weight: 500;
}

.more-product-price {
  color: #6c757d;
}

/* 价格展示 */
.featured-price-container {
  text-align: center;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 20px;
}

.featured-price-tag {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 10px;
}

.price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #7c3aed;
}

.price-period {
  font-size: 1rem;
  color: #6c757d;
  margin-left: 5px;
}

.featured-secondary-price {
  margin-top: 8px;
  font-size: 0.95rem;
}

.featured-btn {
  padding: 12px;
  font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
  .product-title {
    font-size: 2rem;
  }
  
  .product-hero, .vendor-hero {
    padding: 60px 0 40px;
  }
  
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
} 