/* ==========================================================================
   家樂福零食 CP 值分析 - 極簡清新商用風 (Classic E-Commerce UI)
   預設極簡明亮模式，支援溫和護眼暗黑模式切換，並支持手機端神級卡片化適配。
   ========================================================================== */

:root {
  /* ==================== 預設極簡亮色模式 (Default Light Mode) ==================== */
  --bg-app: #f8fafc;        /* Slate-50: 溫和極簡灰藍底色 */
  --panel: #ffffff;         /* 純白固體面板 */
  --panel-hover: #f1f5f9;   /* Slate-100 */
  --panel-solid: #ffffff;
  --ink: #0f172a;           /* Slate-900: 深炭黑，高可讀性主文字 */
  --muted: #475569;         /* Slate-600: 輔助中灰色 */
  --line: #e2e8f0;          /* Slate-200: 極細分隔線 */
  --line-light: #f1f5f9;    /* 淺背景色塊 */
  
  /* 商用經典色彩系統 (高易讀、無發光、無霓虹) */
  --green: #117743;         /* 家樂福官方有機深綠 */
  --green-dark: #075a31;
  --green-glow: #f0fdf4;    /* 綠色柔和標籤背景 */
  --red: #d71920;           /* 家樂福品牌紅：價格高亮 */
  --red-light: #fef2f2;     /* 紅色柔和標籤背景 */
  --amber: #ca8a04;         /* 深琥珀金 */
  --blue: #1d4ed8;          /* 經典商用藍：連結 */
  
  /* 陰影與效果 */
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 8px;     /* 扁平乾淨 */
  --border-glass: 1px solid #e2e8f0;
  --border-hover: 1px solid #cbd5e1;
  --backdrop-blur: none;    /* 去除玻璃模糊 */
  
  /* 扁平化金銀銅勳章 */
  --gold-medal: #fef08a;    /* 軟金 */
  --gold-medal-text: #854d0e;
  --silver-medal: #e2e8f0;  /* 軟銀 */
  --silver-medal-text: #475569;
  --bronze-medal: #ffedd5;  /* 軟銅 */
  --bronze-medal-text: #9a3412;
}

[data-theme="dark"] {
  /* ==================== 溫和護眼暗黑模式 (Gentle Dark Mode) ==================== */
  --bg-app: #0f172a;        /* Slate-900: 深藍灰底色，低刺眼、無死黑 */
  --panel: #1e293b;         /* Slate-800: 面板 */
  --panel-hover: #334155;   /* Slate-700 */
  --panel-solid: #1e293b;
  --ink: #e2e8f0;           /* Slate-200: 米白/淺灰主文字，消除強光暈 */
  --muted: #94a3b8;         /* Slate-400: 溫和灰輔助文字 */
  --line: #334155;          /* Slate-700: 深灰分隔線 */
  --line-light: #1e293b;
  
  --green: #34d399;         /* 軟綠色 */
  --green-dark: #059669;
  --green-glow: rgba(52, 211, 153, 0.1);
  --red: #f87171;           /* 軟紅色 */
  --red-light: rgba(248, 113, 113, 0.1);
  --amber: #fbbf24;         /* 軟金色 */
  --blue: #60a5fa;          /* 軟藍色 */
  
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --border-glass: 1px solid #334155;
  --border-hover: 1px solid #475569;
  
  /* 軟金屬暗色勳章 */
  --gold-medal: #eab308;
  --gold-medal-text: #0f172a;
  --silver-medal: #94a3b8;
  --silver-medal-text: #0f172a;
  --bronze-medal: #ca8a04;
  --bronze-medal-text: #ffffff;
}

/* ==========================================================================
   1. 基礎重設與全域排版 (Reset & Base Typography)
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-app);
  color: var(--ink);
  font-family: "Noto Sans TC", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  transition: background-color 0.2s, color 0.2s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select {
  font-family: inherit;
}

h1, h2, h3, p {
  margin-top: 0;
}

/* ==========================================================================
   2. 頁首與主題切換 (Header & Theme Toggle)
   ========================================================================== */

.topbar {
  min-height: 80px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: var(--panel);
  border-bottom: var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--green);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 0;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 900;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 太陽/月亮主題切換按鈕 - 極簡扁平 */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--line-light);
  border: var(--border-glass);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.theme-toggle-btn:hover {
  background: var(--line);
  color: var(--ink);
  transform: scale(1.05);
}

.theme-icon {
  width: 18px;
  height: 18px;
}

.summary-pill {
  min-width: 90px;
  border: var(--border-glass);
  border-radius: 6px;
  padding: 8px 12px;
  text-align: right;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.summary-pill span {
  display: block;
  color: var(--red);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.summary-pill small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ==========================================================================
   3. 主體內容與 Hero 區塊 (Main & Hero Card)
   ========================================================================== */

main {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.hero {
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  background: var(--panel);
  border: var(--border-glass);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy {
  padding: 20px;
}

.hero-copy p {
  max-width: 760px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
}

.hero-copy small {
  color: var(--green);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-glow);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(17, 119, 67, 0.12);
}

/* ==========================================================================
   4. 分頁切換 (Classic E-Commerce Category Tabs)
   ========================================================================== */

/* 外層 wrapper：左邊商品 tab 列 + 右邊刷卡攻略按鈕 */
.tab-nav-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--line);
}

.tab-container {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
  border-bottom: none; /* 邊框由 tab-nav-row 提供 */
  margin: 0;
  padding-bottom: 0;
}

.tab-container::-webkit-scrollbar {
  display: none;
}

/* 獨立刷卡攻略按鈕 */
.creditcard-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 18px;
  margin-bottom: 2px;
  background: var(--panel);
  color: var(--muted);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.creditcard-nav-btn:hover {
  border-color: #e8272e;
  color: #e8272e;
  background: rgba(232, 39, 46, 0.06);
}

.creditcard-nav-btn.active {
  background: #e8272e;
  border-color: #e8272e;
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 39, 46, 0.35);
  font-weight: 800;
}

.tab-button {
  background: transparent;
  color: var(--muted);
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 18px;
  min-height: auto;
  border-radius: 6px 6px 0 0;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-button:hover {
  background: var(--line-light);
  color: var(--green);
}

.tab-button.active {
  color: var(--green);
  border-bottom: 3px solid var(--green);
  font-weight: 800;
}

/* ==========================================================================
   5. 篩選與排序控制項 (Controls & Dropdowns)
   ========================================================================== */

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.controls label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.controls input,
.controls select {
  width: 100%;
  min-height: 40px;
  border: var(--border-glass);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 12px;
  font-size: 0.9rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.15s ease;
}

.controls input:focus,
.controls select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
  outline: none;
}

/* ==========================================================================
   6. 重點指標數據看板 (Stats Grid Widgets)
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stats-grid article {
  border: var(--border-glass);
  border-radius: var(--border-radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.stats-grid article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.stats-grid span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.stats-grid strong {
  display: block;
  margin: 4px 0;
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  font-weight: 900;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-grid small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

/* 經典價格醒目色 */
.stats-grid article:first-child strong {
  color: var(--red);
}

/* ==========================================================================
   7. 雙欄工作區 - 排行榜與包裝比較 (Workspace Layout)
   ========================================================================== */

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
  margin-bottom: 20px;
}

.panel {
  padding: 20px;
  border: var(--border-glass);
  border-radius: var(--border-radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.section-heading h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.section-heading p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.ranking-list,
.insight-list {
  display: grid;
  gap: 10px;
}

/* 排行榜極簡卡片 */
.rank-item {
  display: grid;
  grid-template-columns: 36px 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: var(--border-glass);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-1px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  background: var(--line-light);
}

/* 扁平化金銀銅勳章 */
.rank-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--line);
  color: var(--muted);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.rank-item.rank-1 .rank-number {
  background: var(--gold-medal);
  color: var(--gold-medal-text);
}

.rank-item.rank-2 .rank-number {
  background: var(--silver-medal);
  color: var(--silver-medal-text);
}

.rank-item.rank-3 .rank-number {
  background: var(--bronze-medal);
  color: var(--bronze-medal-text);
}

.rank-image,
.table-image,
.insight-image,
.variant-image,
.image-placeholder {
  border: var(--border-glass);
  border-radius: 6px;
  background: #ffffff;
  object-fit: contain;
  padding: 2px;
}

.rank-image {
  width: 64px;
  height: 64px;
}

.table-image {
  width: 50px;
  height: 50px;
}

.rank-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rank-main strong {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.rank-main small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.rank-score {
  min-width: 90px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rank-score strong {
  color: var(--red); /* 商業價格以紅字突出 */
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.rank-score small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

/* CP 進度條 - 實心扁平 */
.bar {
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green); /* 純有機綠，無發光 */
}

/* ==========================================================================
   8. 包裝比價區塊 (Package Insights)
   ========================================================================== */

.insight {
  padding: 14px;
  border: var(--border-glass);
  border-radius: var(--border-radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.insight.is-open {
  border-color: var(--border-hover);
  background: var(--line-light);
}

.insight-button {
  width: 100%;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}

.insight-button:hover,
.insight-button:focus-visible {
  background: transparent;
  color: var(--ink);
}

.insight-media {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  align-items: center;
}

.insight-image {
  width: 50px;
  height: 50px;
}

.insight-media strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.insight-media small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.compare-action {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--muted);
  background: var(--panel);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.insight-button:hover .compare-action {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-glow);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  border-radius: 4px;
  padding: 3px 8px;
  background: var(--line-light);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  border: var(--border-glass);
}

.tag.good {
  background: var(--green-glow);
  color: var(--green);
  border: 1px solid rgba(17, 119, 67, 0.15);
}

.tag.warn {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid rgba(215, 25, 32, 0.1);
}

/* 同品類子規格列表 */
.variant-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.variant-item {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 60px;
  border: var(--border-glass);
  border-radius: var(--border-radius);
  padding: 6px 10px;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel);
  transition: all 0.15s ease;
}

.variant-item:hover {
  border-color: var(--border-hover);
  background: var(--line-light);
}

.variant-item.is-best {
  background: var(--green-glow);
  border-color: rgba(17, 119, 67, 0.2);
}

.variant-image {
  width: 46px;
  height: 46px;
}

.variant-main strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}

.variant-main small,
.variant-price small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.variant-price {
  min-width: 74px;
  text-align: right;
}

.variant-price strong {
  color: var(--red);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
}

.best-badge {
  display: inline-flex;
  margin-top: 2px;
  border-radius: 4px;
  padding: 1px 6px;
  background: var(--amber);
  color: #382500;
  font-size: 0.68rem;
  font-weight: 800;
}

/* ==========================================================================
   8b. 日用百貨分頁說明 Banner (Household Info Banner)
   ========================================================================== */

.household-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.08) 0%, rgba(17, 119, 67, 0.05) 100%);
  border: 1px solid rgba(202, 138, 4, 0.25);
  box-shadow: var(--shadow);
  position: relative;
  animation: bannerSlideIn 0.35s ease;
}

@keyframes bannerSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.household-banner-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.household-banner-body {
  flex: 1;
  min-width: 0;
}

.household-banner-body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 4px;
}

.household-banner-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.6;
}

.household-banner-body p strong {
  display: inline;
  color: var(--ink);
  font-weight: 700;
}

.household-banner-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.15s ease;
  margin-top: -2px;
}

.household-banner-close:hover {
  color: var(--ink);
  background: var(--line);
}

[data-theme="dark"] .household-banner {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.07) 0%, rgba(52, 211, 153, 0.04) 100%);
  border-color: rgba(251, 191, 36, 0.2);
}

/* ==========================================================================
   9. 商品明細表格 - 電腦端 (Detailed Data Table)
   ========================================================================== */

.table-panel {
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.numeric {
  text-align: right;
  white-space: nowrap;
}

.product-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.product-link {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}

.product-link:hover {
  color: var(--green);
}

.price-main {
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  color: var(--red); /* 特價紅字，經典商用 */
}

.sub-info {
  color: var(--muted);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.source-link {
  color: var(--green);
  text-decoration: none;
}

.source-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   10. 可讀性增強：CP 值極簡扁平膠囊 (Readability: CP Badges)
   ========================================================================== */

.cp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 20px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  border: 1px solid transparent;
}

.cp-badge.cp-high {
  background: var(--green-glow);
  color: var(--green);
  border-color: rgba(17, 119, 67, 0.22);
}

.cp-badge.cp-mid {
  background: rgba(202, 138, 4, 0.06);
  color: var(--amber);
  border-color: rgba(202, 138, 4, 0.2);
}

.cp-badge.cp-low {
  background: var(--line-light);
  color: var(--muted);
  border-color: var(--line);
}

/* ==========================================================================
   11. 其他通用元件 (Other UI Elements)
   ========================================================================== */
code {
  border-radius: 4px;
  background: var(--line-light);
  padding: 2px 5px;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", monospace;
  font-size: 0.82rem;
  border: var(--border-glass);
}

.empty {
  padding: 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 700;
  background: var(--panel);
}

.image-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  background: var(--line-light);
}

/* ==========================================================================
   12. 響應式排版 - 表格轉卡片化 (Responsive Grid & Mobile Cards)
   ========================================================================== */

@media (max-width: 900px) {
  .hero,
  .workspace,
  .stats-grid,
  .controls {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 768px) {
  /* ==================== 行動端表格轉卡片 ==================== */
  .table-panel {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  .table-wrap {
    overflow: visible;
  }

  table {
    min-width: 100% !important;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 行動端商品卡片：去玻璃化，改用簡約固體白色卡片 */
  tr {
    display: grid;
    grid-template-columns: 76px 1fr;
    grid-gap: 8px 12px;
    background: var(--panel);
    border: var(--border-glass);
    border-radius: var(--border-radius);
    padding: 14px;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, border-color 0.15s;
  }

  tr:hover {
    transform: translateY(-1px);
    border-color: var(--border-hover);
  }

  td {
    display: block;
    padding: 0 !important;
    border: none !important;
    text-align: left !important;
    width: auto !important;
  }

  /* 圖片居左 */
  td:first-child {
    grid-row: 1 / 5;
    align-self: center;
    justify-self: center;
  }

  /* 商品名 */
  td:nth-child(2) {
    grid-column: 2;
  }

  .product-name {
    font-size: 0.9rem;
    line-height: 1.35;
    margin-bottom: 2px;
  }

  /* 價格紅字顯示 */
  td.price-main {
    grid-column: 2;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--red) !important;
  }

  /* 品類/品牌標籤 */
  td:nth-child(3), 
  td:nth-child(4), 
  td:nth-child(5) { 
    display: inline-flex;
    font-size: 0.72rem;
    color: var(--muted);
    background: var(--line-light);
    padding: 2px 6px !important;
    border-radius: 4px;
    margin-right: 4px;
    margin-top: 2px;
    border: var(--border-glass);
  }

  /* 重量規格 */
  td:nth-child(7), 
  td:nth-child(8) { 
    display: inline-block;
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 700;
    margin-top: 4px;
    margin-right: 10px;
  }

  /* CP 膠囊置底 */
  td:last-child {
    grid-column: 2;
    margin-top: 4px;
    justify-self: flex-start;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 16px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
  }

  .summary-pill {
    width: auto;
    flex-grow: 1;
    text-align: right;
  }

  .rank-item {
    grid-template-columns: 32px 60px 1fr;
  }

  .rank-score {
    grid-column: 3;
    text-align: left;
    min-width: auto;
    margin-top: 4px;
  }

  .rank-image {
    width: 60px;
    height: 60px;
  }

  .insight-button,
  .variant-item {
    grid-template-columns: 1fr;
  }

  .compare-action,
  .variant-price {
    justify-self: start;
    text-align: left;
  }

  .best-badge {
    justify-self: start;
  }
}

/* ==========================================================================
   10. 信用卡推薦分頁 (Credit Card Recommendations Tab)
   ========================================================================== */

.creditcard-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--line);
  padding-bottom: 12px;
}

.card-update-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--line-light);
  border: var(--border-glass);
  padding: 6px 12px;
  border-radius: 20px;
}

.creditcard-intro {
  background: var(--line-light);
  border-left: 4px solid var(--green);
  border-radius: 4px;
  padding: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.creditcard-intro p {
  margin: 0;
}

.creditcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 12px;
}

/* 擬真信用卡卡片樣式 */
.credit-card-item {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: var(--border-glass);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.credit-card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--border-hover);
}

.credit-card-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--line-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card-title-wrap {
  display: flex;
  flex-direction: column;
}

.card-bank {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.card-badge {
  background: linear-gradient(135deg, var(--red) 0%, #ff5252 100%);
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(215, 25, 32, 0.2);
}

/* 卡片圖片容器 */
.card-image-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.card-image-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.card-image {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s ease;
  z-index: 2;
}

.credit-card-item:hover .card-image {
  transform: scale(1.05) rotate(1deg);
}

.credit-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.card-description {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* 卡片自訂區段 */
.card-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-section-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

.card-section-content {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

.card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--line-light);
  display: flex;
  justify-content: flex-end;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
}

.card-btn:hover {
  background: var(--green);
  color: #ffffff;
}


/* 響應式適配 */
@media (max-width: 768px) {
  .card-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .card-update-time {
    align-self: flex-start;
  }
}

/* ===== 信用卡比較表格 ===== */
.card-compare-table-wrap {
  margin-top: 24px;
  border: var(--border-glass);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-compare-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.card-compare-table-scroll::-webkit-scrollbar {
  height: 5px;
}
.card-compare-table-scroll::-webkit-scrollbar-track {
  background: var(--line);
}
.card-compare-table-scroll::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 99px;
}

.card-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

/* ---- 欄標題（每張卡）---- */
.ctbl-corner {
  background: var(--panel);
  border-bottom: 2px solid var(--line);
  width: 96px;
  min-width: 96px;
  position: sticky;
  left: 0;
  z-index: 3;
}

.ctbl-card-head {
  background: var(--line-light);
  border-bottom: 3px solid var(--accent, var(--green));
  border-left: 1px solid var(--line);
  padding: 16px 12px 12px;
  text-align: center;
  vertical-align: top;
  min-width: 180px;
  transition: background 0.2s;
}

.ctbl-card-head:hover {
  background: color-mix(in srgb, var(--accent, var(--green)) 8%, var(--line-light));
}

.ctbl-rank {
  display: inline-block;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.ctbl-head-bank {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 3px;
}

.ctbl-head-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

/* ---- 列標題（項目名稱）---- */
.ctbl-row-head {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  border-right: 2px solid var(--line);
  padding: 14px 14px 14px 16px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
  position: sticky;
  left: 0;
  z-index: 2;
  width: 96px;
  min-width: 96px;
}

/* ---- 一般資料格 ---- */
.ctbl-cell {
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  padding: 14px 16px;
  text-align: center;
  vertical-align: middle;
}

/* 卡面圖片 */
.ctbl-img-wrap {
  width: 154px;
  height: 98px;
  background: #111;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

.ctbl-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

.ctbl-img {
  max-width: 88%;
  max-height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
  transition: transform 0.4s ease;
}

.ctbl-card-head:hover ~ * .ctbl-img,
.ctbl-cell:hover .ctbl-img {
  transform: scale(1.06) rotate(1.5deg);
}

/* 回饋數字 */
.ctbl-cashback {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* 比較進度條 */
.ctbl-bar-track {
  width: 100%;
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 4px;
}

.ctbl-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ctbl-bar-label {
  font-size: 0.72rem;
  font-weight: 700;
  display: block;
  margin-top: 4px;
}

/* 條件與回饋文字 */
.ctbl-reward-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.ctbl-carrefour-tag {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: var(--amber);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(215, 25, 32, 0.15);
}

[data-theme="dark"] .ctbl-carrefour-tag {
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(248, 113, 113, 0.2);
}

.ctbl-reward {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink);
  display: block;
  text-align: left;
  border-left: 3px solid var(--green);
  padding-left: 6px;
}

.ctbl-req {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink);
  display: block;
  text-align: left;
  border-left: 3px solid var(--orange);
  padding-left: 6px;
}

.ctbl-na {
  color: var(--muted);
  font-size: 1rem;
}

/* 申辦連結 */
.ctbl-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.03em;
}

.ctbl-link:hover {
  opacity: 0.85;
  transform: scale(1.04);
}

/* 區段分割行 */
.ctbl-section-row {
  background: var(--line-light) !important;
}

.ctbl-section-title-cell {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
  background: var(--line-light);
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--line);
  letter-spacing: 0.08em;
}

/* 懸停行高亮排除區段列 */
.card-compare-table tbody tr.ctbl-section-row:hover .ctbl-section-title-cell {
  background: var(--line-light) !important;
}

/* 條紋 */
.card-compare-table tbody tr:nth-child(even) .ctbl-cell {
  background: var(--line-light);
}
.card-compare-table tbody tr:nth-child(even) .ctbl-row-head {
  background: color-mix(in srgb, var(--line) 40%, var(--panel));
}

/* 懸停行高亮 */
.card-compare-table tbody tr:hover .ctbl-cell {
  background: color-mix(in srgb, var(--green) 5%, var(--panel));
}

@media (max-width: 600px) {
  .ctbl-row-head {
    font-size: 0.68rem;
    padding: 10px 8px;
    width: 72px;
    min-width: 72px;
  }
  .ctbl-card-head {
    min-width: 140px;
    padding: 12px 8px;
  }
  .ctbl-img-wrap {
    width: 120px;
    height: 76px;
  }
  .ctbl-cashback {
    font-size: 1.1rem;
  }
}

/* Exclusive Tab Neon Effects */
.exclusive-tab {
  position: relative;
  overflow: hidden;
  color: #ff2a85 !important;
  font-weight: 800;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  text-shadow: 0 0 4px rgba(255, 42, 133, 0.4);
}
.exclusive-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff2a85, #00f0ff, #ff2a85);
  background-size: 200% auto;
  animation: neonGlowShift 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.exclusive-tab:hover {
  background: rgba(255, 42, 133, 0.05) !important;
  text-shadow: 0 0 8px rgba(255, 42, 133, 0.8), 0 0 15px rgba(255, 42, 133, 0.4);
}
.exclusive-tab.active {
  color: #00f0ff !important;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.8), 0 0 15px rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.03) !important;
}
.exclusive-tab.active::after {
  opacity: 1;
}
@keyframes neonGlowShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Exclusive Showcase Panel Layout */
.exclusive-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px !important;
  background: linear-gradient(135deg, var(--panel) 0%, rgba(255, 42, 133, 0.03) 100%) !important;
  border: 2px solid transparent !important;
  border-radius: var(--border-radius);
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

[data-theme="dark"] .exclusive-panel {
  background: linear-gradient(135deg, var(--panel) 0%, rgba(0, 240, 255, 0.02) 100%) !important;
}

/* Animated neon border for the exclusive panel card */
.exclusive-panel.neon-active {
  border-color: rgba(255, 42, 133, 0.3) !important;
  box-shadow: 0 0 25px rgba(255, 42, 133, 0.15), 0 0 15px rgba(0, 240, 255, 0.15), var(--shadow) !important;
  animation: borderPulse 4s ease-in-out infinite alternate;
  border-style: solid !important;
}

@keyframes borderPulse {
  0% {
    border-color: rgba(255, 42, 133, 0.3);
    box-shadow: 0 0 20px rgba(255, 42, 133, 0.1), 0 0 10px rgba(0, 240, 255, 0.1);
  }
  100% {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 0 35px rgba(255, 42, 133, 0.25), 0 0 20px rgba(0, 240, 255, 0.25);
  }
}

/* Showcase Inner container */
.showcase-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

@media (max-width: 768px) {
  .showcase-container {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
}

/* Product Image container */
.showcase-image-wrap {
  position: relative;
  border-radius: 12px;
  background: #ffffff;
  padding: 24px;
  border: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.showcase-image-wrap:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.showcase-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
}

/* Neon badge on image */
.showcase-neon-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(45deg, #ff2a85, #ff6b35);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(255, 42, 133, 0.6);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(1); box-shadow: 0 0 12px rgba(255, 42, 133, 0.6); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 42, 133, 0.9); }
  100% { transform: scale(1); box-shadow: 0 0 12px rgba(255, 42, 133, 0.6); }
}

/* Product details */
.showcase-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.showcase-header {
  border-bottom: 2px dashed var(--line);
  padding-bottom: 16px;
  text-align: left;
}

.showcase-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: inline-block;
}

.showcase-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
}

.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.showcase-tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--line-light);
  color: var(--muted);
  border: 1px solid var(--line);
}

.showcase-tag.highlight {
  background: rgba(0, 240, 255, 0.08);
  color: #008899;
  border-color: rgba(0, 240, 255, 0.3);
}
[data-theme="dark"] .showcase-tag.highlight {
  color: #00f0ff;
}

/* CP and Price showcase */
.showcase-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: rgba(0, 0, 0, 0.02);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

[data-theme="dark"] .showcase-stats {
  background: rgba(255, 255, 255, 0.02);
}

.showcase-stat-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.showcase-stat-box span {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
}

.showcase-stat-box strong {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
}

.showcase-stat-box.cp strong {
  color: var(--green);
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
}

.showcase-stat-box.price strong {
  color: var(--red);
}

.showcase-info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  font-size: 0.92rem;
}

.showcase-info-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.showcase-info-item label {
  color: var(--muted);
  font-weight: 700;
}

.showcase-info-item span {
  color: var(--ink);
  font-weight: 800;
}

/* Call to action */
.showcase-actions {
  margin-top: 10px;
  display: flex;
  gap: 16px;
}

.showcase-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.showcase-btn-primary {
  background: linear-gradient(90deg, #ff2a85, #ff5e3a);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 42, 133, 0.4);
  border: none;
}

.showcase-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 42, 133, 0.6);
  background: linear-gradient(90deg, #ff3c93, #ff7150);
}

/* Recommendation Cards */
.showcase-rec-box {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  width: 100%;
  text-align: left;
}

.showcase-rec-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}

.showcase-rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .showcase-rec-grid {
    grid-template-columns: 1fr;
  }
}

.showcase-rec-card {
  background: var(--panel-hover);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
}

.showcase-rec-card strong {
  display: block;
  font-weight: 800;
  color: #ff2a85;
  margin-bottom: 4px;
}

.showcase-rec-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}



