/* 本檔載入頁面：PCR (products/environmental-monitoring/laboratory-analyzer/pcr.html) */
/* pages/pcr.css — PCR */
/* 使用位置：整份文件：CSS 變數（顏色等共用設定，供下方規則以 var(--名稱) 取用） */
:root {
  --brand: #0a5bb5;
  --brand-ink: #0b2545;
  --accent: #f08a24;
  --teal: #1593a6;
  --line: #e2e8f0;
  --text: #334155;
  --muted: #64748b;
}

/* ===== 版面 ===== */
/* 使用位置：主要內容區 */
.laboratory-analyzer-body {
  background: linear-gradient(180deg, #eef4fa 0%, #f6f9fc 320px, #f6f9fc 100%);
  color: var(--text);
  padding-bottom: 1px;
}

/* 使用位置：麵包屑導覽 */
.laboratory-analyzer-body .breadcrumb {
  max-width: 1200px;
  width: calc(100% - 2rem);
  margin: 87px auto 0;
  box-sizing: border-box;
  background: transparent;
  box-shadow: none;
  padding: 1.1rem 0 0.4rem;
}

/* 使用位置：主要內容區 */
.pcr-container {
  max-width: 1200px;
  width: calc(100% - 2rem);
  box-sizing: border-box;
  margin: 0.8rem auto 3.5rem;
  padding: 2.4rem 2.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(15, 40, 80, 0.07);
  line-height: 1.8;
}

/* 使用位置：頁面大標題 (H1) */
.pcr-container h1 {
  margin: 0 0 1.4rem;
  font-size: 1.75rem;
  color: var(--brand-ink);
}

/* 使用位置：「PCR」區塊 */
.pcr-container h1 i {
  color: var(--brand);
}

/* ===== 區塊卡片 ===== */
/* 使用位置：「InDrop-G8_微滴式數字PCR（Droplet D」區塊、「InDrop-R2 數字PCR生物晶片螢光偵測儀」區塊 */
.pcr-card {
  margin-bottom: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 40, 80, 0.05);
  overflow: hidden;
}

/* 使用位置：「InDrop-G8_微滴式數字PCR（Droplet D」區塊、「InDrop-R2 數字PCR生物晶片螢光偵測儀」區塊 */
.pcr-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.4rem;
  background: linear-gradient(90deg, #f3f8fe 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}

/* 使用位置：「PCR」區塊、「系統指標」區塊 */
.pcr-card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, #3fa2f5, var(--brand));
}

/* 使用位置：「系統指標」區塊 */
.pcr-card:nth-of-type(2) .pcr-card-icon {
  background: linear-gradient(135deg, #5fd6df, var(--teal));
}

/* 使用位置：「InDrop-G8_微滴式數字PCR（Droplet D」標題、「InDrop-R2 數字PCR生物晶片螢光偵測儀」標題 */
.pcr-card-header h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--brand-ink);
}

/* 使用位置：「系統指標」區塊、「檢測原理」區塊 */
.pcr-card-body {
  padding: 1.4rem;
}

/* 使用位置：「系統指標」區塊、「InDrop-R2 數字PCR生物晶片螢光偵測儀」區塊 */
.pcr-card-body.split,
.pcr-card-body .split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: center;
}

/* 使用位置：「系統指標」區塊、「InDrop-R2 數字PCR生物晶片螢光偵測儀」區塊 */
.pcr-photo {
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

/* 使用位置：「系統指標」區塊、「InDrop-R2 數字PCR生物晶片螢光偵測儀」區塊 */
.pcr-photo img {
  max-height: 340px;
  width: auto;
}

/* ===== 內文 ===== */
/* 使用位置：「InDrop-G8_微滴式數字PCR（Droplet D」區塊、「InDrop-R2 數字PCR生物晶片螢光偵測儀」區塊 */
.pcr-desc {
  margin: 0;
}

/* 使用位置：「系統指標」標題、「檢測原理」標題、「技術指標」標題 */
.pcr-card-body h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.4rem 0 0.8rem;
  font-size: 1.05rem;
  color: var(--brand-ink);
}

/* 使用位置：「系統指標」區塊、「檢測原理」區塊、「技術指標」區塊 */
.pcr-card-body h3 i {
  color: var(--brand);
}

/* 規格指標 */
/* 使用位置：「系統指標」區塊、「技術指標」區塊 */
.spec-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

/* 使用位置：「技術指標」區塊 */
.spec-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 使用位置：「系統指標」區塊、「技術指標」區塊 */
.spec-grid li {
  padding: 0.6rem 0.9rem;
  border: 1px solid #dbe8f6;
  border-radius: 10px;
  background: #f3f8fe;
  line-height: 1.5;
}

/* 使用位置：「系統指標」區塊、「技術指標」區塊 */
.spec-grid strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

/* 檢測原理步驟 */
/* 使用位置：「檢測原理」區塊 */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* 使用位置：「檢測原理」區塊 */
.steps li {
  counter-increment: step;
  position: relative;
  padding: 2.9rem 1.1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  font-size: 0.93rem;
  line-height: 1.75;
}

/* 使用位置：「檢測原理」區塊｜前方裝飾 */
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3fa2f5, var(--brand));
}

/* 使用位置：「檢測原理」區塊｜前方裝飾、第 2 個 */
.steps li:nth-child(2)::before { background: linear-gradient(135deg, #5fd6df, var(--teal)); }
/* 使用位置：「檢測原理」區塊｜前方裝飾、第 3 個 */
.steps li:nth-child(3)::before { background: linear-gradient(135deg, #ffb062, var(--accent)); }

/* 使用位置：「檢測原理」區塊 */
.steps strong {
  position: absolute;
  left: 3.1rem;
  top: 1.05rem;
  color: var(--brand-ink);
}

/* ===== 相關產品 ===== */
/* 使用位置：「相關產品」區塊 */
.related-products {
  margin-top: 2.2rem;
  padding: 1.2rem 1.4rem;
  background: #f5f8ff;
  border-radius: 12px;
}

/* 使用位置：「相關產品」標題 */
.related-products h3 {
  margin: 0;
  color: var(--brand-ink);
}

/* 使用位置：「相關產品」區塊 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

/* 使用位置：「相關產品」區塊 */
.related-links a {
  padding: 0.55rem 1.2rem;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* 使用位置：「相關產品」區塊｜滑鼠移入時 */
.related-links a:hover {
  background: #0b4f9c;
  transform: translateY(-2px);
  color: #fdf583;
}

/* ===== 響應式 ===== */
@media (max-width: 900px) {
  /* 使用位置：「系統指標」區塊、「InDrop-R2 數字PCR生物晶片螢光偵測儀」區塊、「檢測原理」區塊｜螢幕寬度 ≤900px（平板/手機）時 */
  .pcr-card-body.split,
  .pcr-card-body .split,
  .steps {
    grid-template-columns: 1fr;
  }

  /* 使用位置：「系統指標」區塊、「InDrop-R2 數字PCR生物晶片螢光偵測儀」區塊｜螢幕寬度 ≤900px（平板/手機）時 */
  .pcr-photo {
    order: -1;
  }

  /* 使用位置：「技術指標」區塊｜螢幕寬度 ≤900px（平板/手機）時 */
  .spec-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* 使用位置：主要內容區｜螢幕寬度 ≤768px（平板/手機）時 */
  .pcr-container {
    width: calc(100% - 1.2rem);
    padding: 1.4rem 1.1rem;
  }

  /* 使用位置：頁面大標題 (H1)｜螢幕寬度 ≤768px（平板/手機）時 */
  .pcr-container h1 {
    font-size: 1.4rem;
  }

  /* 使用位置：「系統指標」區塊、「檢測原理」區塊｜螢幕寬度 ≤768px（平板/手機）時 */
  .pcr-card-body {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  /* 使用位置：麵包屑導覽｜螢幕寬度 ≤480px（手機）時 */
  .laboratory-analyzer-body .breadcrumb {
    margin-top: 70px;
  }
}
