/* ========================================
   产品详情页公共样式
   适用于：cap-hc.html / res-crsi.html / ind-series.html
   以及后续的 cap-hf.html / cap-xf.html / cap-hv.html
   ======================================== */

/* ----- 模块一：核心优势卡片 ----- */
.feature-card {
  background: #fff;
  border-radius: 28px;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid var(--line);
  box-shadow: 0 15px 30px -20px rgba(15,23,42,0.15);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(31,107,255,0.25);
  box-shadow: 0 25px 40px -25px rgba(31,107,255,0.2);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(31,107,255,0.1), rgba(83,179,255,0.05));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.feature-icon i {
  font-size: 1.8rem;
  color: var(--brand);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ----- 模块二：参数网格 ----- */
/* ----- 模块二：参数网格 ----- */
.param-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.param-card {
  background: var(--soft);
  border-radius: 20px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.25s ease;
  /* 关键：预先设置透明边框，防止 hover 时尺寸变化导致抖动 */
  border: 1px solid transparent;
}

.param-card:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 8px 20px -12px rgba(31,107,255,0.2);
  border-color: rgba(31,107,255,0.2);
}

.param-card .value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.param-card .label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ----- 模块二：规格表格 ----- */
.spec-wrapper {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  overflow: auto;
  box-shadow: 0 4px 14px rgba(0,0,0,0.02);
}

.spec-wrapper .table {
  margin-bottom: 0;
  border-collapse: collapse;
  width: 100%;
}

.spec-wrapper .table thead th {
  background: var(--soft);
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  border-top: none;
  white-space: nowrap;
}

.spec-wrapper .table tbody td {
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  color: rgba(15,23,42,0.85);
  vertical-align: middle;
  border-bottom: 1px solid rgba(230,235,244,0.6);
  transition: background 0.2s ease;
}

/* 鼠标悬浮行高亮效果 */
.spec-wrapper .table tbody tr:hover td {
  background: rgba(31, 107, 255, 0.05);
  cursor: pointer;
}

/* 最后一行无底边框 */
.spec-wrapper .table tbody tr:last-child td {
  border-bottom: none;
}

/* 表格内 code 样式（用于电阻/电容料号） */
.spec-wrapper code {
  background: rgba(31,107,255,0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  font-family: monospace;
}

/* ----- 模块三：应用场景卡片 ----- */
.scenario-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--line);
  height: 100%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.02);
}

.scenario-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31,107,255,0.25);
  box-shadow: 0 20px 35px -20px rgba(31,107,255,0.15);
}

.scenario-header {
  /*background: linear-gradient(135deg, var(--brand), var(--brand-deep));*/
    background: linear-gradient(135deg, #4A8CFF, #2A5FBF);

  padding: 1rem 1.5rem;
  color: #fff;
}

.scenario-header h4 {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-align: center;
}

.scenario-body {
  padding: 1.5rem;
}

.scenario-body p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.scenario-body p strong {
  color: var(--ink);
  font-weight: 700;
}

.scenario-result {
  color: #10B981;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

/* ----- 页面通用调整 ----- */
.product-detail-hero {
  background: linear-gradient(145deg, #0F172A 0%, #1a253b 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.product-detail-hero .hero-glow {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(31,107,255,0.25), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

/* ----- 响应式适配 ----- */
@media (max-width: 992px) {
  .feature-card {
    padding: 1.5rem;
  }
  .feature-icon {
    width: 56px;
    height: 56px;
  }
  .feature-icon i {
    font-size: 1.5rem;
  }
  .param-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail-hero {
    padding: 60px 0 40px;
  }
}

@media (max-width: 768px) {
  .feature-card {
    padding: 1.25rem;
  }
  .param-grid {
    grid-template-columns: 1fr;
  }
  .spec-wrapper .table thead th,
  .spec-wrapper .table tbody td {
    padding: 0.7rem 0.75rem;
    font-size: 0.75rem;
  }
  .scenario-header {
    padding: 0.875rem 1.25rem;
  }
  .scenario-header h4 {
    font-size: 1rem;
  }
  .scenario-body {
    padding: 1.25rem;
  }
  .product-detail-hero {
    padding: 50px 0 30px;
  }
  .product-detail-hero .page-hero-title {
    font-size: 2rem;
  }
}




/* ========================================
   产品中心总览页样式
   适用于 products.html
   ======================================== */

/* ----- 三大产品系列卡片（solution-card-modern）----- */
.solution-card-modern {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 15px 30px -20px rgba(15,23,42,0.15);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.solution-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 40px -20px rgba(31,107,255,0.2);
}

.solution-card-img {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.solution-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.solution-card-modern:hover .solution-card-img img {
  transform: scale(1.05);
}

.solution-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: white;
}

.solution-card-overlay h4 {
  color: white;
  margin-bottom: 0;
  font-weight: 700;
  font-size: 1.2rem;
}

.solution-card-desc {
  padding: 20px 20px 24px;
  background: white;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.solution-card-desc p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* 系列标签 */
.series-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.series-tag {
  background: var(--soft);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand);
}

/* 查看详情链接 */
.solution-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
  margin-top: auto;
}

.solution-link:hover {
  gap: 10px;
  color: var(--brand-dark);
}

.solution-link a {
  color: inherit;
  text-decoration: none;
}

/* ----- 硅电容四大系列卡片（spec-card）----- */
.spec-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  text-align: center;
  height: 100%;
  transition: all 0.25s ease;
}

.spec-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31,107,255,0.2);
  box-shadow: 0 15px 30px -18px rgba(31,107,255,0.15);
}

.spec-card img {
  width: 100%;
  margin-bottom: 1rem;
}

.spec-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.spec-sub {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.spec-range {
  background: var(--soft);
  border-radius: 14px;
  padding: 0.75rem;
  margin: 0.75rem 0;
}

.spec-range .value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand);
}

.spec-range .label {
  font-size: 0.7rem;
  color: var(--muted);
}

.spec-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.spec-badge {
  background: var(--soft);
  padding: 0.2rem 0.6rem;
  border-radius: 16px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--brand);
}

/* ----- 多端子产品卡片（terminal-card）----- */
.terminal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.2s;
}

.terminal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31,107,255,0.2);
  box-shadow: 0 12px 24px -18px rgba(31,107,255,0.12);
}

.terminal-card h5 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* ----- 硅电阻/硅电感产品卡片（product-card-simple）----- */
.product-card-simple {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.25s ease;
}

.product-card-simple:hover {
  transform: translateY(-3px);
  border-color: rgba(31,107,255,0.2);
  box-shadow: 0 15px 30px -18px rgba(31,107,255,0.15);
}

.product-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.product-card-simple h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-card-simple .desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.param-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.param-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.param-label {
  color: var(--muted);
}

.param-value {
  font-weight: 600;
  color: var(--ink);
}

.card-footer-link {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  text-align: right;
}

.card-footer-link a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.card-footer-link a:hover {
  gap: 10px;
  color: var(--brand-dark);
}

/* ----- 定制能力区域 ----- */
.custom-strip {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(31,107,255,0.05), rgba(83,179,255,0.08));
}

.custom-strip-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.custom-strip-title i {
  color: var(--brand);
}

.custom-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.custom-point {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(31,107,255,0.14);
  background: rgba(255,255,255,0.92);
  color: rgba(15,23,42,0.84);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.92rem;
}

.custom-point i {
  color: var(--brand);
}


/* ----- 响应式 ----- */
@media (max-width: 992px) {
  .custom-points {
    gap: 0.6rem;
  }
  .custom-point {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
  }
}

@media (max-width: 768px) {
  .solution-card-img {
    height: 140px;
  }
  .solution-card-overlay h4 {
    font-size: 1rem;
  }
  .spec-card {
    padding: 1.2rem;
  }
  .product-card-simple {
    padding: 1.2rem;
  }
  .custom-strip {
    padding: 16px 18px;
  }
  .custom-strip-title {
    font-size: 1rem;
  }
  .cta2 .ctaBox {
    padding: 24px 20px;
  }
}