/* assets/css/style.css */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK",
               "Microsoft JhengHei", "Noto Sans HK", sans-serif;
  color: #1f2937;
  background: #f8fafc;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: #1d4ed8; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: #6b7280; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 20px; font-weight: 800; color: #1d4ed8;
  text-decoration: none; letter-spacing: .5px;
}
.logo span { color: #0f172a; font-weight: 500; font-size: 15px; margin-left: 4px; }
.site-header nav a {
  color: #374151; text-decoration: none; margin-left: 26px; font-size: 15px;
}
.site-header nav a:hover { color: #1d4ed8; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.hero h1 { font-size: 34px; line-height: 1.35; margin: 0 0 16px; font-weight: 800; }
.hero .sub { font-size: 16px; color: #dbeafe; max-width: 780px; margin: 0 0 34px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hero-stats > div {
  background: rgba(255,255,255,.12);
  border-radius: 12px; padding: 16px; text-align: center;
}
.hero-stats strong { display: block; font-size: 22px; font-weight: 800; }
.hero-stats span { font-size: 13px; color: #bfdbfe; }

/* ---------- Section ---------- */
.section { padding: 56px 0; }
.section h2 { font-size: 24px; margin: 0 0 8px; font-weight: 800; }
.section .lead { color: #6b7280; margin: 0 0 28px; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover {
  box-shadow: 0 12px 30px rgba(15,23,42,.09);
  transform: translateY(-2px);
  border-color: #bfdbfe;
}
.card h3 { margin: 8px 0 4px; font-size: 19px; }
.card h3 a { color: #0f172a; text-decoration: none; }
.card h3 a:hover { color: #1d4ed8; }
.card .addr { color: #6b7280; font-size: 14px; margin: 0 0 14px; }
.card .desc {
  font-size: 14px; color: #4b5563; flex: 1;
  margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.chip {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: #1d4ed8; background: #eff6ff;
  border-radius: 999px; padding: 2px 10px;
}
.facts { list-style: none; margin: 0 0 18px; padding: 14px 0 0; border-top: 1px dashed #e5e7eb; }
.facts li {
  display: flex; justify-content: space-between;
  font-size: 14px; padding: 4px 0;
}
.facts li span { color: #6b7280; }
.facts li strong { color: #0f172a; }
.btn {
  display: inline-block; text-align: center;
  background: #1d4ed8; color: #fff;
  padding: 10px 18px; border-radius: 9px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  transition: background .2s;
}
.btn:hover { background: #1e40af; }

/* ---------- 篩選器 ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 18px 20px; margin-bottom: 28px;
}
.filters label { font-size: 13px; color: #6b7280; display: flex; flex-direction: column; gap: 6px; }
.filters select {
  font-size: 15px; padding: 8px 12px; border: 1px solid #d1d5db;
  border-radius: 8px; background: #fff; color: #1f2937; min-width: 150px;
}
.filters button {
  font-size: 15px; font-weight: 600; padding: 9px 22px;
  background: #1d4ed8; color: #fff; border: 0; border-radius: 8px; cursor: pointer;
}
.filters button:hover { background: #1e40af; }

/* ---------- 詳情頁 ---------- */
.breadcrumb { font-size: 13px; color: #6b7280; padding: 24px 0 0; }
.breadcrumb a { color: #6b7280; text-decoration: none; }
.breadcrumb a:hover { color: #1d4ed8; }
.detail-head { padding: 14px 0 0; }
.detail-head h1 { font-size: 30px; margin: 10px 0 6px; font-weight: 800; line-height: 1.35; }
.detail-head .addr { color: #4b5563; font-size: 15px; margin: 0 0 16px; }
.detail-head .lead {
  font-size: 15.5px; color: #374151; background: #fff;
  border: 1px solid #e5e7eb; border-left: 4px solid #2563eb;
  border-radius: 10px; padding: 16px 18px; margin: 0 0 24px;
}

/* ---------- 價格卡 ---------- */
.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 0 0 36px;
}
.price-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
}
.price-card span { display: block; font-size: 14px; color: #6b7280; margin-bottom: 6px; }
.price-card strong { display: block; font-size: 27px; color: #1d4ed8; font-weight: 800; line-height: 1.2; }
.price-card em { font-style: normal; font-size: 13px; color: #9ca3af; }
.price-card.is-best {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 6px 18px rgba(37,99,235,.12);
}
.price-card.is-best::after {
  content: "最抵";
  display: inline-block; margin-top: 8px;
  font-size: 12px; font-weight: 700;
  color: #fff; background: #2563eb;
  border-radius: 999px; padding: 1px 10px;
}

/* ---------- 區塊 ---------- */
.block { margin-bottom: 44px; }
.block h2 { font-size: 21px; margin: 0 0 12px; font-weight: 800; }

/* ---------- 表格 ---------- */
.table-scroll {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 6px 10px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.btable { width: 100%; border-collapse: collapse; text-align: center; font-size: 15px; }
.btable td, .btable th {
  border: none;
  border-bottom: 1px solid #eef2f7;
  padding: 12px 8px;
  color: #1f2937;
  text-align: center;
}
.btable tr:nth-child(even) { background: #f9fafb; }
.btable tr:last-child td { border-bottom: none; }
.unit-info td { text-align: left; }
.unit-info tr:nth-child(odd) { background: #f9fafb; }
.unit-info td:first-child { color: #6b7280; width: 32%; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a; color: #cbd5e1;
  padding: 48px 0 28px; margin-top: 40px;
}
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-cols h4 { color: #fff; font-size: 16px; margin: 0 0 10px; }
.footer-cols p { margin: 0; font-size: 14px; line-height: 1.9; }
.copy { border-top: 1px solid #1e293b; padding-top: 20px; font-size: 13px; color: #94a3b8; margin: 0; }

/* ---------- RWD ---------- */
@media (max-width: 860px) {
  .hero h1 { font-size: 26px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; gap: 20px; }
  .table-scroll .btable { min-width: 560px; }
}
@media (max-width: 560px) {
  .site-header nav a { margin-left: 14px; font-size: 14px; }
  .logo { font-size: 17px; }
  .logo span { font-size: 13px; }
  .detail-head h1 { font-size: 22px; }
}
/* ---------- 頁腳信任連結 ---------- */
.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 4px;
  margin: 0 0 22px; font-size: 14px;
}
.footer-links a { color: #94a3b8; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-links span { color: #475569; }

/* ---------- 政策頁內文 ---------- */
.policy-body { margin-top: 32px; }
.policy-section { margin-bottom: 36px; }
.policy-section h2 {
  font-size: 20px; font-weight: 800; margin: 0 0 10px;
  padding-bottom: 8px; border-bottom: 1px solid #e5e7eb;
}
.policy-section p { font-size: 15px; color: #374151; margin: 0 0 12px; }
.policy-section ul { margin: 0 0 12px; padding-left: 22px; }
.policy-section li { font-size: 15px; color: #374151; margin-bottom: 6px; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 32px; }
.faq-item {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 20px 22px; margin-bottom: 14px;
}
.faq-item h2 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: #0f172a; }
.faq-item p { margin: 0; font-size: 15px; color: #4b5563; }