/* 價目表頁 pricing/ — 沿用 main.css 的色票、字體與按鈕 */
.phero-price h1 { font-family: var(--serif); font-size: clamp(1.7rem, 4.4vw, 3.3rem); text-wrap: balance; font-weight: 700; line-height: 1.4; letter-spacing: 0.03em; color: var(--green); }
.phero-price .btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.pr-hot { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 60px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.pr-hot li { display: grid; gap: 4px; padding: 18px 20px 20px; }
.pr-hot li + li { border-left: 1px solid var(--line); }
.pr-hot span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: var(--gold-lo); }
.pr-hot b { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; color: var(--green); }
.pr-hot b small, .plan-price small, .pr-num small { font-family: var(--sans, inherit); font-size: 0.62em; font-weight: 700; margin-right: 3px; color: var(--muted); letter-spacing: 0.04em; }
.pr-hot em { font-style: normal; font-size: 0.8rem; color: var(--muted); }

.pr-sec-head { display: grid; gap: 12px; justify-items: start; margin-bottom: clamp(28px, 4vw, 48px); }

/* 六個需求入口 */
.pr-entry-sec { padding-block: clamp(64px, 8vw, 110px); }
.pr-entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.pr-entries a { position: relative; display: grid; gap: 8px; height: 100%; padding: 26px 26px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s var(--ease); }
.pr-entries a:hover, .pr-entries a:focus-visible { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 26px 44px -32px rgba(16, 39, 30, 0.4); }
.ent-n { font-family: var(--serif); font-size: 0.92rem; font-weight: 700; color: var(--gold); }
.ent-t { font-family: var(--serif); font-size: 1.22rem; font-weight: 700; color: var(--green); }
.ent-d { font-size: 0.9rem; line-height: 1.8; color: var(--muted); }
.pr-entries .go { margin-top: 6px; justify-self: start; font-size: 0.84rem; }

/* 活動方案 */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); align-items: stretch; }
.plan { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 10px; padding: 28px 24px 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.plan-k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; color: var(--gold-lo); }
.plan h3 { font-family: var(--serif); font-size: 1.25rem; color: var(--green); }
.plan-price { font-family: var(--serif); font-size: clamp(1.6rem, 2.3vw, 2rem); font-weight: 700; line-height: 1.2; color: var(--green); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.plan-price span { font-family: inherit; font-size: 0.45em; font-weight: 700; color: var(--muted); }
.plan-d { font-size: 0.9rem; line-height: 1.85; color: var(--text); }
.plan .btn { justify-self: start; margin-top: 8px; }
.plan-year { background: var(--green); border-color: var(--green); color: var(--on-ink); }
.plan-year .plan-k { color: var(--gold); }
.plan-year h3, .plan-year .plan-price { color: var(--cream, #fff); }
.plan-year .plan-price { border-color: rgba(246, 240, 225, 0.18); }
.plan-year .plan-price small, .plan-year .plan-price span { color: var(--gold-hi); }
.plan-year .plan-d { color: var(--on-ink-muted); }
.pr-note { margin-top: 22px; font-size: 0.86rem; line-height: 1.9; color: var(--muted); max-width: 62em; }

/* 完整價目表 */
.pr-tools { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 12px 0; margin-bottom: 18px; background: var(--ivory, #fbf8f1); border-bottom: 1px solid var(--line); }
.pr-tabs { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; flex: 1 1 100%; }
.pr-tabs::-webkit-scrollbar { display: none; }
.pr-tab { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font: inherit; font-size: 0.86rem; font-weight: 700; color: var(--green); cursor: pointer; transition: background 0.25s, border-color 0.25s, color 0.25s; }
.pr-tab small { font-size: 0.72rem; color: var(--muted); }
.pr-tab:hover { border-color: var(--green); }
.pr-tab.on { background: var(--green); border-color: var(--green); color: var(--gold); }
.pr-tab.on small { color: var(--gold-hi); }
.pr-search input { width: min(280px, 100%); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font: inherit; font-size: 0.9rem; color: var(--text); }
.pr-search input:focus { outline: none; border-color: var(--gold-lo); box-shadow: 0 0 0 3px rgba(218, 181, 103, 0.25); }
.pr-search { flex: 0 1 320px; }
.pr-search input { width: 100%; }

.pr-table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.pr-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.75; }
.pr-table thead th { padding: 14px 18px; text-align: left; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; color: var(--gold-lo); background: var(--paper); border-bottom: 1px solid var(--line); white-space: nowrap; }
.pr-table td, .pr-table tbody th { padding: 18px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.pr-table tbody tr:last-child > * { border-bottom: 0; }
.pr-table tbody tr { transition: background 0.2s; }
.pr-table tbody tr:hover { background: #fdf9ef; }
.pr-table tbody th { width: 21%; }
.pr-code { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; color: var(--gold-lo); }
.pr-name { display: block; font-family: var(--serif); font-size: 1rem; font-weight: 700; line-height: 1.55; color: var(--green); }
.pr-fit { width: 17%; color: var(--muted); }
.pr-del { color: var(--text); }
.pr-price { width: 17%; }
.pr-num { display: block; font-weight: 700; color: var(--green); white-space: nowrap; }
.pr-unit { font-size: 0.8rem; color: var(--muted); }
.pr-time { width: 10%; color: var(--muted); }
.pr-ask { width: 1%; white-space: nowrap; }
.pr-ask-btn { display: inline-flex; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.8rem; font-weight: 700; color: var(--green); transition: background 0.25s, border-color 0.25s, color 0.25s; }
.pr-ask-btn:hover, .pr-ask-btn:focus-visible { background: var(--green); border-color: var(--green); color: var(--gold); }
.pr-row[hidden] { display: none; }
.pr-empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.pr-fine { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 32px; margin-top: 28px; padding: 22px 26px; border-radius: var(--r); background: var(--paper); }
.pr-fine h3 { font-family: var(--serif); font-size: 1.05rem; color: var(--green); }
.pr-fine p { font-size: 0.88rem; line-height: 1.95; color: var(--muted); }
.pr-cta .kicker { color: var(--gold); }
.pr-cta-note { margin-top: 18px; font-size: 0.82rem; color: var(--on-ink-muted); }

@media (max-width: 1100px) {
  .pr-hot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pr-hot li:nth-child(4) { border-left: 0; }
  .pr-hot li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 表格在 900 以下改成卡片 */
@media (max-width: 900px) {
  .pr-table-wrap { border: 0; background: none; overflow: visible; }
  .pr-table thead { display: none; }
  .pr-table, .pr-table tbody { display: block; }
  .pr-table tbody { display: grid; gap: 12px; }
  .pr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
  .pr-row:hover { background: var(--card) !important; }
  .pr-table td, .pr-table tbody th { width: auto; padding: 0; border: 0; }
  .pr-table tbody th { grid-column: 1 / -1; }
  .pr-price { grid-column: 1; grid-row: 2; }
  .pr-time { grid-column: 2; grid-row: 2; text-align: right; align-self: end; font-size: 0.82rem; }
  .pr-fit, .pr-del { grid-column: 1 / -1; font-size: 0.86rem; }
  .pr-fit::before, .pr-del::before { content: attr(data-l) "｜"; font-weight: 700; color: var(--gold-lo); }
  .pr-ask { grid-column: 1 / -1; margin-top: 6px; }
  .pr-num { display: inline; font-size: 1.05rem; }
  .pr-tools { position: static; }
  .pr-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .pr-tabs::-webkit-scrollbar { display: none; }
  .pr-search, .pr-search input { width: 100%; flex-basis: 100%; }
}
@media (max-width: 720px) {
  .pr-hot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-hot li { padding: 14px 16px 16px; }
  .pr-hot li:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .pr-hot li:nth-child(-n + 2) { border-top: 0; }
  .pr-hot li:nth-child(even) { border-left: 1px solid var(--line); }
  .pr-hot li:last-child { grid-column: 1 / -1; border-left: 0; }
  .plans, .pr-entries { grid-template-columns: 1fr; }
  .pr-fine { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .pr-entries a { transition: none; } }
