/**
 * 凯诺仕 自定义静态页样式（隐私政策 / 保安 / 关于 / 办事处）
 * ------------------------------------------------------------------
 * 页面主体沿用 terms-page.css 排版，本文件只处理各自定义组件
 * （表格、卡片网格、证书图）+ 移动端断点。
 */

/* ========== 1. 隐私政策表格 ========== */
.privacy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  border: 1px solid #e0e0e0;
}

.privacy-table thead th {
  background: #f5f1ea;
  color: #222;
  font-weight: 600;
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid #d9b166;
  font-size: 0.9rem;
}

.privacy-table tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  color: #333;
}

.privacy-table tbody tr:hover {
  background: #faf8f4;
}

.privacy-table tbody tr:last-child td {
  border-bottom: none;
}

.privacy-table th:nth-child(1),
.privacy-table td:nth-child(1) {
  width: 22%;
  min-width: 160px;
}
.privacy-table th:nth-child(2),
.privacy-table td:nth-child(2) { width: 48%; }
.privacy-table th:nth-child(3),
.privacy-table td:nth-child(3) {
  width: 30%;
  min-width: 130px;
}

/* ========== 2. 办事处卡片网格 ========== */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 1.5rem;
}

.location-card {
  border: 1px solid #e5e1d8;
  border-radius: 6px;
  padding: 1.25rem 1.35rem 1.4rem;
  background: #faf8f4;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.location-card:hover {
  border-color: #d9b166;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.location-card__city {
  font-family: "Songti SC", "SimSun", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 0.6rem;
  letter-spacing: 0.04em;
}

.location-card__addr {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #444;
  margin: 0 0 0.6rem;
  white-space: pre-line;
}

.location-card__phone {
  font-size: 0.88rem;
  color: #555;
  margin: 0 0 0.6rem;
}
.location-phone-placeholder {
  color: #b0651c;
  font-weight: 500;
  letter-spacing: 0.03em;
}
/* 电话号码可点击拨号（tel:）。Tailwind preflight 会把 a 设成
   color:inherit + text-decoration:inherit，这里补回下划线与悬停态，
   让用户看得出这是可点的链接。 */
.location-card__phone a {
  color: #333;
  text-decoration: underline;
  text-decoration-color: #d9b166;
  text-underline-offset: 3px;
  letter-spacing: 0.03em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.location-card__phone a:hover {
  color: #b0651c;
  text-decoration-color: #b0651c;
}

.location-card__role {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px dashed #d8d2c6;
  letter-spacing: 0.04em;
}

.location-footer-note {
  margin-top: 1rem;
  color: #555;
}

/* ========== 3. 关于页证书图 ========== */
.about-certificate {
  margin: 2rem auto 3rem;
  max-width: 520px;
  text-align: center;
}
.about-certificate img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e0dcd4;
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  background: #fff;
}
.about-certificate figcaption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.06em;
}

/* ==========================================================
   移动端适配 —— 统一在这一个文件里维护，各静态页共享
   ========================================================== */

/* --- 平板（≤1023px）--- */
@media (max-width: 1023px) {
  .privacy-table th:nth-child(1),
  .privacy-table td:nth-child(1),
  .privacy-table th:nth-child(3),
  .privacy-table td:nth-child(3) { min-width: 0; }
  .privacy-table { font-size: 0.875rem; }

  .location-card { padding: 1.1rem 1.15rem 1.2rem; }
  .location-card__city { font-size: 1.2rem; }
}

/* --- 手机（≤767px）--- */
@media (max-width: 767px) {
  /* 主体容器从 col-md-8 offset-md-2 → 满宽内缩 */
  .terms-main .col-md-8.offset-md-2,
  .terms-main .col-md-8 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .terms-body {
    font-size: 0.95rem;
    line-height: 1.85;
  }
  .terms-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  /* 隐私表格：强制单列滚动 */
  .privacy-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.8rem;
  }
  .privacy-table th,
  .privacy-table td { white-space: normal; }

  /* 办事处卡片：单列 + 更紧凑 */
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.25rem 0 1rem;
  }
  .location-card {
    padding: 1rem 1rem 1.15rem;
    border-radius: 8px;
  }
  .location-card__city {
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
    letter-spacing: 0.02em;
  }
  .location-card__addr {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0.45rem;
  }
  .location-card__phone {
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
  }
  .location-phone-placeholder { font-size: 0.82rem; }
  .location-card__role {
    font-size: 0.75rem;
    padding-top: 0.4rem;
  }

  /* 证书图 */
  .about-certificate {
    max-width: 100%;
    margin: 1.5rem auto 2rem;
    padding: 0 0.5rem;
  }
  .about-certificate img {
    border-radius: 6px;
  }
  .about-certificate figcaption {
    font-size: 0.75rem;
  }

  /* 面包屑 */
  .terms-breadcrumb {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* --- 小屏手机（≤480px）--- */
@media (max-width: 480px) {
  .terms-main .col-md-8.offset-md-2,
  .terms-main .col-md-8 {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
  .terms-title { font-size: 1.55rem; }

  .location-card { padding: 0.9rem 0.95rem 1.05rem; }
  .location-card__city { font-size: 1.08rem; }
  .location-card__addr { font-size: 0.85rem; }
  .location-card__phone,
  .location-phone-placeholder { font-size: 0.8rem; }
}
