/* 本檔載入頁面：CPMS (news/cpms-air-pollution.html) */
/* pages/cpms-air-pollution.css — CPMS 監控連線設施之連線項目 */
/* 使用位置：整份文件：CSS 變數（顏色等共用設定，供下方規則以 var(--名稱) 取用） */
:root {
  --brand: #0a5bb5;
  --brand-ink: #0b2545;
  --green: #4f8f1f;
  --line: #e2e8f0;
  --text: #334155;
  --muted: #64748b;
}

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

/* 使用位置：麵包屑導覽 */
.cpms-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;
}

/* 使用位置：主要內容區 */
.cpms-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);
}

/* ===== 標題列 ===== */
/* 使用位置：導覽列 */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

/* 使用位置：導覽列 */
.page-head h1 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--brand-ink);
}

/* 使用位置：導覽列 */
.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
}

/* 使用位置：導覽列｜滑鼠移入時 */
.detail-link:hover {
  color: #fff;
  background: var(--brand);
}

/* ===== 連線項目表 ===== */
/* 使用位置：「附錄一、監控連線設施之連線項目」區塊 */
.monitoring-connection-facilities-container {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* 使用位置：「附錄一、監控連線設施之連線項目」區塊 */
.monitoring-connection-facilities {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 使用位置：「附錄一、監控連線設施之連線項目」區塊 */
.monitoring-connection-facilities th {
  padding: 0.75rem 0.6rem;
  background: #0b4a8f;
  color: #fff;
  font-weight: 600;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

/* 使用位置：「附錄一、監控連線設施之連線項目」區塊 */
.monitoring-connection-facilities td {
  padding: 0.55rem 0.6rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  text-align: center;
  color: var(--green);
  font-size: 1.6rem;
  line-height: 1;
}

/* 使用位置：「附錄一、監控連線設施之連線項目」區塊｜滑鼠移入時 */
.monitoring-connection-facilities tbody tr:hover td:not(.group) {
  background: #f3f8fe;
}

/* 分類欄 (污染源 / 防制設備) */
/* 使用位置：「附錄一、監控連線設施之連線項目」區塊 */
.monitoring-connection-facilities td.group {
  width: 2.5em;
  background: #e8f1fc;
  color: var(--brand-ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
  writing-mode: vertical-rl;
  letter-spacing: 0.3em;
}

/* 設備名稱欄 */
/* 使用位置：「附錄一、監控連線設施之連線項目」區塊 */
.monitoring-connection-facilities td.item {
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--brand-ink);
  background: #fbfdff;
}

/* 「本體」「煙道出口」 */
/* 使用位置：「附錄一、監控連線設施之連線項目」區塊｜第一個、第 3 個 */
.monitoring-connection-facilities tbody tr:first-child td:nth-child(3),
.monitoring-connection-facilities tbody tr:nth-child(2) td:first-child {
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.5;
  background: #fbfdff;
}

/* 使用位置：「附錄一、監控連線設施之連線項目」區塊 */
.source-note {
  margin: 0.6rem 0 0;
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
}

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

  /* 使用位置：導覽列｜螢幕寬度 ≤768px（平板/手機）時 */
  .page-head h1 {
    font-size: 1.3rem;
  }

  /* 表格在手機上維持可讀寬度，可左右滑動 */
  /* 使用位置：「附錄一、監控連線設施之連線項目」區塊｜螢幕寬度 ≤768px（平板/手機）時 */
  .cpms-container .monitoring-connection-facilities {
    min-width: 900px;
  }
}

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