/* ========================================
   解决方案详情页 - 公共样式
   适用于：SOC芯片、AI/HPC、5G通讯、激光雷达、高速光模块
   ======================================== */

/* ----- 集成方案模块 ----- */
.integration-section {
  padding: 40px 0;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.integration-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

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

.integration-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 1rem;
}

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

.integration-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.integration-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

/* 结构示意图 */
.integration-diagram {
  background: #FFF;
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid var(--line);
  text-align: center;
}

.diagram-img {
  max-width: 70% !important;
  height: auto;
  border-radius: 16px;
}

.diagram-caption {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ----- 痛点与方案模块 ----- */
.problem-section {
  padding: 40px 0;
}

.problem-card, .solution-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.75rem;
  height: 100%;
  border: 1px solid var(--line);
}

.problem-header, .solution-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.problem-header i {
  color: #EF4444;
  font-size: 1.25rem;
}

.solution-header i {
  color: #10B981;
  font-size: 1.25rem;
}

.problem-header h4, .solution-header h4 {
  margin: 0;
  font-weight: 700;
}

.problem-list, .solution-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.problem-list li, .solution-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.85rem;
  color: var(--muted);
}

.problem-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #EF4444;
}

.solution-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10B981;
}

/* ----- 核心价值模块 ----- */
.value-section {
  padding: 40px 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.75rem;
  text-align: center;
  transition: all 0.3s ease;
}

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

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

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

.value-number {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.value-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ----- 推荐产品模块 ----- */
.product-section {
  padding: 40px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31,107,255,0.25);
  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-name {
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

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

.product-link {
  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;
}

.product-link:hover {
  gap: 10px;
}

/* ----- 响应式 ----- */
@media (max-width: 992px) {
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
  .integration-section, .problem-section, .value-section, .product-section {
    padding: 50px 0;
  }
}


/* ===== 对比卡片样式（痛点 vs 方案） ===== */
.compare-card {
  border-radius: 28px;
  padding: 1.8rem;
  height: 100%;
  transition: all 0.3s ease;
}

.compare-card-pain {
  background: linear-gradient(145deg, #fff5f5 0%, #fff 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: 0 12px 24px -12px rgba(239, 68, 68, 0.1);
}

.compare-card-solution {
  background: linear-gradient(135deg, #fff 0%, #f0f6ff 100%);
  border: 1px solid rgba(31, 107, 255, 0.25);
  box-shadow: 0 20px 35px -15px rgba(31, 107, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.compare-card-solution::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(31, 107, 255, 0.06), transparent);
  border-radius: 50%;
}

.compare-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid;
}

.compare-header.pain {
  border-bottom-color: rgba(239, 68, 68, 0.3);
}

.compare-header.solution {
  border-bottom-color: rgba(31, 107, 255, 0.3);
}

.compare-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 1.4rem;
}

.compare-header.pain .compare-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.compare-header.solution .compare-icon {
  background: linear-gradient(135deg, rgba(31,107,255,0.15), rgba(83,179,255,0.08));
  color: var(--brand);
}

.compare-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  flex: 1;
}

.compare-header.pain h3 { color: #dc2626; }
.compare-header.solution h3 { color: var(--brand); }

.compare-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
}

.compare-header.pain .compare-badge {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.compare-header.solution .compare-badge {
  background: rgba(31, 107, 255, 0.1);
  color: var(--brand);
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.7rem 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed rgba(0,0,0,0.05);
}


/* 添加：专门调整右侧列表的文字大小 */
.compare-list-solution li {
  font-size: 1.05rem; /* 比默认稍大，突出优势 */
  font-weight:500px;color: rgb(64, 64, 64);
}

/* 可选：调整右侧列表的图标大小与之匹配 */
.compare-list-solution li i {
  width: 20px;
  color: var(--brand);
  font-size: 1.1rem; /* 图标稍微放大保持视觉平衡 */
}


.compare-list li:last-child {
  border-bottom: none;
}

.compare-list-pain li i {
  width: 20px;
  color: #ef4444;
  font-size: 0.9rem;
}

.compare-list-solution li i {
  width: 20px;
  color: var(--brand);
  font-size: 0.9rem;
}

.compare-footer {
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.compare-footer.pain {
  background: rgba(239, 68, 68, 0.05);
  color: #dc2626;
}

.compare-footer.solution {
  background: linear-gradient(135deg, rgba(31,107,255,0.08), rgba(16,185,129,0.08));
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}


/* ===== 表格对比样式 ===== */
.product-table-section {
  padding: 40px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* 表格头部 */
.table-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.table-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31,107,255,0.1);
  padding: 0.3rem 1.2rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 1rem;
}

.table-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.title-accent {
  background: linear-gradient(135deg, var(--brand), #53b3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.table-desc {
  color: #64748b;
  font-size: 0.9rem;
}

/* 表格容器 - 支持横向滚动 */
.product-table-wrapper {
  overflow-x: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 800px;
}

.product-table th {
  text-align: left;
  padding: 1rem 1.2rem;
  background: #f8fafc;
  font-weight: 600;
  color: #1e293b;
  border-bottom: 2px solid #e2e8f0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.product-table tr:hover td {
  background: #fafcff;
}

/* 高亮行 - 旗舰产品 */
.table-row-highlight {
  background: linear-gradient(90deg, #fefce8 0%, #fff 100%);
  position: relative;
}

.table-row-highlight td {
  border-bottom-color: #fde68a;
}

.table-row-highlight:hover td {
  background: #fef9e3;
}

/* 推荐等级标签 */
.ranking {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  display: inline-block;
}

.ranking-star {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
}

.ranking-high {
  background: #e0f2fe;
  color: #0369a1;
}

.ranking-mid {
  background: #f1f5f9;
  color: #475569;
}

/* 端子数徽章 */
.terminal-badge {
  display: inline-block;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  text-align: center;
  min-width: 36px;
}

.terminal-49 {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0369a1;
}

.terminal-12 {
  background: #f1f5f9;
  color: #475569;
}

/* 型号代码 */
.model-code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-weight: 600;
  color: var(--brand);
  font-size: 0.8rem;
}

/* 规格高亮 */
.spec-highlight {
  color: #059669;
  font-weight: 700;
  background: #ecfdf5;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  display: inline-block;
}

/* 查看链接 */
.table-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.table-link:hover {
  gap: 10px;
  color: #1a5ae0;
}

/* 表格底部 */
.table-footer {
  text-align: center;
  margin-top: 2rem;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 40px;
  background: rgba(31,107,255,0.08);
  transition: all 0.2s;
}

.more-link:hover {
  background: rgba(31,107,255,0.15);
  gap: 12px;
}

/* 响应式 */
@media (max-width: 640px) {
  .product-table-section {
    padding: 50px 0;
  }
  .table-title {
    font-size: 1.5rem;
  }
  .product-table th,
  .product-table td {
    padding: 0.75rem 0.8rem;
  }
}