/* ============================================
   语信IDC - 全新设计系统 Product.css
   产品页样式（IDC财务系统 / KVM受控端）
   ============================================ */

/* ===== 产品Hero区域 ===== */
.product-hero {
  position: relative;
  background: var(--gradient-dark);
  color: #fff;
  padding: var(--space-16) 0 var(--space-20);
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  opacity: 0.2;
}

.product-hero.idc::before {
  background: radial-gradient(circle, #2563eb 0%, transparent 70%);
}

.product-hero.kvm::before {
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
}

.product-hero-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.product-hero .container {
  position: relative;
  z-index: 1;
}

.product-hero-content {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.product-hero-info {
  flex: 1;
}

.product-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-5);
}

.product-hero-title {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.product-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}

.product-hero.idc .product-hero-icon {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-primary-lg);
}

.product-hero.kvm .product-hero-icon {
  background: var(--gradient-accent);
  box-shadow: 0 20px 40px -10px rgba(6, 182, 212, 0.5);
}

.product-hero-name {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.1;
}

.product-hero-tagline {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-1);
}

.product-hero-desc {
  font-size: var(--font-size-md);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
  max-width: 600px;
}

.product-hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.product-hero-actions .btn {
  padding: var(--space-3) var(--space-7);
  font-size: var(--font-size-md);
  border-radius: var(--radius-xl);
}

/* 产品Hero右侧装饰 */
.product-hero-visual {
  flex-shrink: 0;
  width: 320px;
  height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-hero-visual-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-hero-visual-ring:nth-child(1) {
  width: 100%;
  height: 100%;
  animation: spin 20s linear infinite;
}

.product-hero-visual-ring:nth-child(2) {
  width: 75%;
  height: 75%;
  animation: spin 15s linear infinite reverse;
}

.product-hero-visual-ring:nth-child(3) {
  width: 50%;
  height: 50%;
  animation: spin 10s linear infinite;
}

.product-hero-visual-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.product-hero-visual-center {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  z-index: 1;
  backdrop-filter: blur(10px);
}

.product-hero.idc .product-hero-visual-center {
  background: rgba(37, 99, 235, 0.3);
  border: 1px solid rgba(37, 99, 235, 0.5);
}

.product-hero.kvm .product-hero-visual-center {
  background: rgba(6, 182, 212, 0.3);
  border: 1px solid rgba(6, 182, 212, 0.5);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== 核心能力 ===== */
.product-features {
  padding: var(--space-20) 0;
}

.product-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.product-feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.product-feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.product-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-lighter);
}

.product-feature-card:hover::after {
  transform: scaleX(1);
}

.product-feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-5);
  background: var(--color-primary-bg);
  transition: all var(--transition-normal);
}

.product-feature-card:hover .product-feature-icon {
  background: var(--gradient-primary);
  transform: scale(1.1) rotate(-5deg);
}

.product-feature-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.product-feature-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  line-height: var(--line-height-relaxed);
}

/* ===== 版本权益 ===== */
.pricing-section {
  background: linear-gradient(180deg, var(--color-bg-page) 0%, #f0f4ff 50%, var(--color-bg-page) 100%);
  padding: var(--space-20) 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

.pricing-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.pricing-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-primary);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.pricing-badge {
  position: absolute;
  top: var(--space-5);
  right: -30px;
  background: var(--gradient-gold);
  color: #fff;
  padding: var(--space-1) 40px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  transform: rotate(45deg);
  box-shadow: var(--shadow-md);
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
}

.pricing-name {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.pricing-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-1);
}

.pricing-price-currency {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.pricing-price-amount {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary);
  line-height: 1;
}

.pricing-price-amount.free {
  color: var(--color-success);
}

.pricing-price-period {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.pricing-features {
  flex: 1;
  margin-bottom: var(--space-6);
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.pricing-feature-item .check {
  color: var(--color-success);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-feature-item .cross {
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-cta {
  width: 100%;
}

.pricing-cta .btn {
  width: 100%;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
}

/* ===== 功能对比表 ===== */
.comparison-section {
  padding: var(--space-20) 0;
}

.comparison-table-wrap {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table thead {
  background: var(--gradient-dark);
  color: #fff;
}

.comparison-table th {
  padding: var(--space-5) var(--space-4);
  text-align: center;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th:first-child {
  text-align: left;
  padding-left: var(--space-6);
  width: 250px;
}

.comparison-table th:last-child {
  border-right: none;
}

.comparison-table th.featured-col {
  background: rgba(37, 99, 235, 0.3);
}

.comparison-table td {
  padding: var(--space-4);
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
  border-right: 1px solid var(--color-border-light);
}

.comparison-table td:first-child {
  text-align: left;
  padding-left: var(--space-6);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.comparison-table td:last-child {
  border-right: none;
}

.comparison-table td.featured-col {
  background: var(--color-primary-bg);
  font-weight: var(--font-weight-medium);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: var(--color-bg-muted);
}

.comparison-table .check-icon {
  color: var(--color-success);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}

.comparison-table .cross-icon {
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
}

.comparison-table .value {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

/* 分组标题行 */
.comparison-table .group-row td {
  background: var(--color-bg-muted);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  text-align: left;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== 安装步骤 ===== */
.steps-section {
  background: linear-gradient(180deg, var(--color-bg-page) 0%, #f8fafc 100%);
  padding: var(--space-20) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-2xl);
  background: var(--color-bg-card);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary);
  margin: 0 auto var(--space-5);
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-normal);
}

.step-card:hover .step-number {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
}

.step-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.step-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  line-height: var(--line-height-relaxed);
  max-width: 280px;
  margin: 0 auto;
}

/* ===== 产品动态 ===== */
.product-news-section {
  padding: var(--space-20) 0;
}

.product-news-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-news-item {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
}

.product-news-item:hover {
  border-color: var(--color-primary-lighter);
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.product-news-date {
  flex-shrink: 0;
  width: 70px;
  text-align: center;
  padding: var(--space-3);
  background: var(--color-primary-bg);
  border-radius: var(--radius-lg);
}

.product-news-date-day {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary);
  line-height: 1;
}

.product-news-date-month {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.product-news-content {
  flex: 1;
  min-width: 0;
}

.product-news-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}

.product-news-item:hover .product-news-title {
  color: var(--color-primary);
}

.product-news-excerpt {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  line-height: var(--line-height-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 响应式 - 平板 ===== */
@media (max-width: 1024px) {
  .product-hero-content {
    flex-direction: column;
    text-align: center;
  }

  .product-hero-info {
    text-align: center;
  }

  .product-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .product-hero-actions {
    justify-content: center;
  }

  .product-hero-visual {
    width: 250px;
    height: 250px;
  }

  .product-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .steps-grid::before {
    display: none;
  }
}

/* ===== 响应式 - 手机 ===== */
@media (max-width: 768px) {
  .product-hero {
    padding: var(--space-12) 0;
  }

  .product-hero-name {
    font-size: var(--font-size-3xl);
  }

  .product-hero-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .product-hero-visual {
    width: 200px;
    height: 200px;
  }

  .product-hero-visual-center {
    width: 80px;
    height: 80px;
    font-size: 36px;
  }

  .product-features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: var(--space-6);
  }

  .comparison-table-wrap {
    overflow-x: auto;
  }

  .comparison-table {
    min-width: 600px;
  }

  .product-news-item {
    flex-direction: column;
  }

  .product-news-date {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
  }
}
