/* 功能介紹專區（/features/）自己的樣式；共用元件在 /pains/pains.css 與 /extensions/extensions.css。
   依 landing/DESIGN.md：顏色只用 home.css :root 的變數，不新增色碼；斷點只用 1100／820／560。 */
.feat-card span { font-size: 14px; color: var(--muted); }
.feat-cta .button.ghost { background: transparent; color: var(--action-text); border-color: var(--action-text); }
.feat-plan-table th:not(:first-child), .feat-plan-table td { text-align: center; }
.feat-plan-table td { font-weight: 600; }
/* 對照表第一欄是兩三個字的短標，手機也不折行（不然會被擠成一字一行） */
.feat-compare-table th:first-child { white-space: nowrap; }
.feat-plan-link { margin-top: 8px; }
.feat-plan-link a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--action); font-weight: 600; font-size: 14px; }
.feat-plan-link .icon { width: 16px; height: 16px; }
.feat-page .features-more { margin-top: 32px; text-align: center; }
/* 搭配使用 2～4 張：欄數跟著張數，不讓最後一張落單 */
.feat-with.n2 { grid-template-columns: repeat(2, 1fr); }
.feat-with.n3 { grid-template-columns: repeat(3, 1fr); }
.feat-with.n4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .feat-with.n4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .feat-with.n3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feat-with.n2, .feat-with.n4 { grid-template-columns: 1fr; }
  /* 方案表在手機改成一個項目一張卡，四個方案兩兩並排（td 帶 data-plan） */
  .feat-plan-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .feat-plan-table, .feat-plan-table tbody { display: block; min-width: 0; }
  .feat-plan-table thead { display: none; }
  .feat-plan-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-bottom: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .feat-plan-table tbody th { grid-column: 1 / -1; padding: 0 0 4px; border: 0; white-space: normal; }
  .feat-plan-table td { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--soft); text-align: left; }
  .feat-plan-table td::before { content: attr(data-plan); font-size: 13px; font-weight: 400; color: var(--muted); }
}
