/* ========================================================
   超诚建材科技 · 现代工业风视觉与转化体验增强样式库 (2026 Modern Edition)
   Author: Antigravity x 娄昊
   ======================================================== */

/* 1. 现代化微排版与色彩系统 */
:root {
  --cjc-primary: #0284c7;
  --cjc-primary-hover: #0369a1;
  --cjc-dark: #0f172a;
  --cjc-dark-card: #1e293b;
  --cjc-slate: #334155;
  --cjc-muted: #64748b;
  --cjc-border: #e2e8f0;
  --cjc-bg-alt: #f8fafc;
  --cjc-accent: #f59e0b;
}

/* 2. 现代分类标签筛选器 (Filter Bar) */
.cjc-filter-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 30px;
}
.cjc-filter-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}
.cjc-filter-group:last-child {
  margin-bottom: 0;
  border-top: 1px dashed #e2e8f0;
  padding-top: 12px;
}
.cjc-filter-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  min-width: 72px;
  padding-top: 6px;
}
.cjc-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cjc-filter-pills li a {
  display: inline-block;
  padding: 5px 14px;
  font-size: 13px;
  border-radius: 20px;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}
.cjc-filter-pills li a:hover,
.cjc-filter-pills li.active a {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

/* 3. 现代工业产品与案例卡片 (Grid Card) */
.cjc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
@media (max-width: 767px) {
  .cjc-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
.cjc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cjc-card:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.12);
}
.cjc-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}
.cjc-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cjc-card:hover .cjc-card-thumb img {
  transform: scale(1.05);
}
.cjc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  color: #fff;
  letter-spacing: 0.5px;
}
.cjc-badge-fire { background: #ea580c; }
.cjc-badge-cold { background: #0284c7; }
.cjc-badge-case { background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(4px); }

.cjc-card-body {
  padding: 16px 18px;
  flex-grow: 1;
}
.cjc-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  line-height: 1.4;
}
.cjc-card-title a {
  color: #0f172a;
  text-decoration: none;
}
.cjc-card:hover .cjc-card-title a {
  color: #0284c7;
}
.cjc-card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cjc-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: #475569;
}
.cjc-card-meta span {
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}
.cjc-card-footer {
  padding: 12px 18px;
  background: #fafafa;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cjc-card-link {
  font-size: 13px;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
}
.cjc-btn-sm {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  background: #0284c7;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.cjc-btn-sm:hover {
  background: #0369a1;
  color: #fff;
}

/* 4. 产品详情页全新黄金比例布局 */
.cjc-detail-hero {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
@media (min-width: 992px) {
  .cjc-detail-hero {
    display: flex;
    gap: 36px;
    padding: 32px;
  }
  .cjc-detail-left {
    flex: 0 0 55%;
    max-width: 55%;
  }
  .cjc-detail-right {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}
@media (max-width: 991px) {
  .cjc-detail-left, .cjc-detail-right {
    width: 100%;
  }
  .cjc-detail-right {
    margin-top: 24px;
  }
}

.cjc-detail-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 12px 0;
}
.cjc-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.cjc-spec-item {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 10px 14px;
}
.cjc-spec-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
}
.cjc-spec-val {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2px;
}

/* 转化引导黑科技卡片 */
.cjc-cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 12px;
  padding: 20px;
  color: #ffffff;
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
  margin-top: 16px;
}
.cjc-cta-box h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px 0;
}
.cjc-cta-box p {
  color: #94a3b8;
  font-size: 12px;
  margin: 0 0 14px 0;
}
.cjc-cta-actions {
  display: flex;
  gap: 10px;
}
.cjc-btn-quote {
  flex: 1;
  text-align: center;
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.cjc-btn-quote:hover {
  background: #38bdf8;
  color: #0f172a;
}
.cjc-btn-phone {
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.cjc-btn-phone:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* 5. 详细参数矩阵表格 (Specifications Table) */
.cjc-specs-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin: 28px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.cjc-specs-header {
  padding: 14px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cjc-specs-header::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: #0284c7;
  border-radius: 2px;
}
.cjc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cjc-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  padding: 10px 16px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}
.cjc-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}
.cjc-table tr:last-child td {
  border-bottom: none;
}
.cjc-table tr:hover td {
  background: #f8fafc;
}

/* 6. 移动端快捷悬浮咨询条 (Mobile Bottom Bar) */
.cjc-mobile-bar {
  display: none;
}
@media (max-width: 767px) {
  .cjc-mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 99999;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
  }
  .cjc-mobile-bar-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    text-decoration: none;
    font-weight: 500;
  }
  .cjc-mobile-bar-btn:active {
    background: rgba(255, 255, 255, 0.1);
  }
  .cjc-mobile-bar-btn.cjc-btn-highlight {
    background: #0284c7;
    font-weight: 700;
  }
  /* 为手机页面底部留出 60px 间距，防止内容被遮挡 */
  body {
    padding-bottom: 60px !important;
  }
}
