/* 預約系統介紹頁（/booking-system、/en/booking-system）自己用的幾個區塊。
   其他區塊沿用 v2.css（主視覺、功能示範、導入前後、三步驟、常見問題）和 new-features.css（卡片格子）。 */

/* 功能示範裡的「預約頁」小畫面 */
.bk-page { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 20px; background: #F6F7F9; }
.bk-store b { display: block; font-size: 17px; line-height: 1.4; }
.bk-store small { display: block; font-size: 14px; line-height: 1.4; color: var(--sub); }
.bk-addr { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.bk-addr em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--chat); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.bk-page .plan-week span { height: 48px; font-size: 14px; line-height: 1.2; text-align: center; }
.bk-page .plan-week .on { background: var(--chat); }
.bk-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.bk-slots span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 700; }
.bk-slots span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34C759; }
.bk-slots .on { background: var(--chat); color: #fff; border-color: transparent; }
.bk-slots .on::before { background: #fff; }
.bk-field { padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--sub); }
.bk-submit { padding: 11px; border-radius: 12px; background: var(--chat); color: #fff; text-align: center; font-size: 15px; font-weight: 700; }

/* 提醒訊息卡片：一行一件事 */
.msg .bk-lines { display: grid; gap: 2px; margin-top: 6px; }
.msg .bk-lines span { display: block; }
.msg .msg-acts { display: flex; gap: 6px; margin-top: 8px; }
.msg .bk-times { display: grid; gap: 6px; margin-top: 8px; }
.msg .bk-times .msg-btn { margin-top: 0; }

/* 提醒時間點表格 */
.bk-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: 16px; line-height: 1.7; }
.bk-table th, .bk-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.bk-table tbody tr:last-child > * { border-bottom: 0; }
.bk-table thead th { background: #F4F3FC; color: var(--ink); font-size: 15px; }
.bk-table tbody th { width: 18%; white-space: nowrap; }
.bk-table td:nth-child(2) { width: 18%; white-space: nowrap; color: var(--chat); font-weight: 700; }
.bk-note { margin: 18px 0 0; padding: 18px 22px; border-radius: 16px; background: #FFF8E6; color: var(--ink); font-size: 16px; line-height: 1.8; }
.bk-note b { color: #8A5A00; }

/* 適合的行業 */
.bk-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bk-chips li { padding: 9px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 16px; line-height: 1.4; }

/* 連續的區塊不要空兩倍；標題下面直接接卡片時留一點距離 */
.nf-sec + .nf-sec { padding-top: 24px; }
.nf-sec h2 + .nf-grid, .nf-sec h2 + .bk-chips, .nf-sec h2 + .bk-price, .nf-sec h2 + .bk-links { margin-top: 28px; }

/* 兩欄卡片、價格說明 */
.nf-grid.bk-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nf-grid .bk-link { margin-top: auto; padding-top: 14px; font-size: 16px; font-weight: 700; }
.nf-grid .bk-link a, .bk-links a { color: var(--chat); text-decoration: none; }
.nf-grid .bk-link a:hover, .bk-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bk-price { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.bk-price-card { padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: inset 4px 0 0 var(--chat); }
.bk-price-card .bk-big { margin: 0 0 6px; font-size: clamp(30px, 3vw, 40px); font-weight: 700; line-height: 1.25; }
.bk-price-card p { margin: 0 0 10px; font-size: 16px; line-height: 1.8; }
.bk-price-card .bk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bk-price-side { padding: 30px; background: #F4F3FC; border-radius: 18px; font-size: 16px; line-height: 1.8; }
.bk-price-side h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.5; }
.bk-price-side p { margin: 0; }

/* 延伸閱讀、最後更新 */
.bk-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.7; }
.bk-links li { padding-left: 18px; position: relative; }
.bk-links li::before { content: "→"; position: absolute; left: 0; color: var(--chat); }
.bk-updated { margin: 22px 0 0; color: var(--sub); font-size: 14px; line-height: 1.6; }

.bk-table, .bk-note, .bk-chips li, .bk-price, .bk-links { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
html:lang(en) .bk-table, html:lang(en) .bk-note, html:lang(en) .bk-links { word-break: normal; }

@media (max-width: 899px) {
  .bk-price { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 699px) {
  .nf-grid.bk-two { grid-template-columns: minmax(0, 1fr); }
  /* 手機：表格每一列變一張卡片 */
  .bk-table, .bk-table tbody, .bk-table tr, .bk-table th, .bk-table td { display: block; width: auto; }
  .bk-table { border: 0; background: none; border-radius: 0; overflow: visible; }
  .bk-table thead { display: none; }
  .bk-table tr { margin-bottom: 12px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
  .bk-table th, .bk-table td { padding: 0; border: 0; white-space: normal; }
  .bk-table tbody th { font-size: 18px; }
  .bk-table td:nth-child(2) { margin: 2px 0 6px; white-space: normal; }
  .bk-price-card, .bk-price-side { padding: 22px; }
  .bk-chips li { font-size: 15px; padding: 8px 14px; }
}

/* 英文頁裡照實際樣子放的中文訊息：跟中文頁一樣只在詞和詞之間換行 */
.msg[lang^="zh"] { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
