/* 加密貨幣卡回饋比較試算 — 只用在 /tools/crypto-card-compare（token 沿用 /style.css） */

/* 2026-11 改版：字級只用 4 級（最小 12px）；黃色只給主按鈕（訂閱）和試算第一名，提醒、標籤一律中性色 */
:root {
  --fs-s: 0.75rem;   /* 12px：標籤、小字、表頭 */
  --fs-m: 0.875rem;  /* 14px：次要文字、說明 */
  --fs-b: 1rem;      /* 16px：正文、卡名 */
  --fs-l: 1.375rem;  /* 22px：大數字、區塊標題 */
}

/* ===== 2026-11-06 簡化改版：標題區一句話＋三個信任點，試算第一名大卡、其他名次一行一張，細節點開才看 ===== */
.cc-hero {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
/* 錨點跳轉時不要被頂部導覽列蓋住 */
main section[id],
#cc-result { scroll-margin-top: 76px; }

/* 試算區一打開就要能用：不套 /script.js 的淡入動畫。
 * 卡片介紹區很長，/script.js 要求 section 露出 12% 才顯示，長頁面永遠達不到，所以也不套。 */
html.reveal-ready .cc-hero.reveal:not(.is-visible),
html.reveal-ready .cc-nofade.reveal:not(.is-visible) {
  opacity: 1;
  transform: none;
}

.cc-hero-head { max-width: 44rem; margin: 0 0 2rem; }
.cc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  font-size: var(--fs-s);
  font-weight: 700;
  color: var(--text);
}
.cc-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.cc-hero .hero-headline {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.cc-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 1rem;
}
.cc-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0;
  padding: 0;
  font-size: var(--fs-m);
  color: var(--muted);
}
.cc-trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.cc-trust li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cp-yes-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%230F7B4D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ----- 試算：左輸入、右結果 ----- */
.cc-calc {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 1.25rem;
  align-items: start;
}
.cc-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(15, 17, 21, 0.04), 0 8px 32px rgba(15, 17, 21, 0.05);
  padding: 1.5rem;
}
.cc-form { position: sticky; top: 84px; }
.cc-field { margin: 0 0 1.5rem; border: 0; padding: 0; min-width: 0; }
.cc-field:last-child { margin-bottom: 0; }
.cc-label {
  display: block;
  font-size: var(--fs-m);
  font-weight: 700;
  margin: 0 0 0.6rem;
  padding: 0;
}
.cc-label-s { font-size: var(--fs-m); }
.cc-hint {
  font-size: var(--fs-s);
  color: var(--muted);
  margin: 0.45rem 0 0;
  line-height: 1.55;
}

/* 地區：分段切換，滿版 */
.cc-seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #F2F2EF;
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}
.cc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.cc-seg label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 11px;
  font-size: var(--fs-b);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.cc-seg input:checked + label { background: var(--card-bg); color: var(--text); box-shadow: 0 1px 3px rgba(15, 17, 21, 0.12); }
.cc-seg input:focus-visible + label { outline: 2px solid var(--text); outline-offset: 2px; }

/* 金額輸入：大字 */
.cc-money {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
  padding: 0 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cc-money:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 4px rgba(15, 17, 21, 0.06);
}
.cc-money span { color: var(--muted); font-weight: 700; font-size: var(--fs-l); }
.cc-money input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: var(--fs-l);
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 0.65rem 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.cc-money input::-webkit-outer-spin-button,
.cc-money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cc-money input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.cc-twd { font-style: normal; font-size: var(--fs-s); font-weight: 600; color: var(--muted); white-space: nowrap; }
.cc-twd[hidden] { display: none; }
.cc-range {
  width: 100%;
  margin: 0.9rem 0 0;
  accent-color: var(--text);
  height: 20px;
}
.cc-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.6rem 0 0;
}
.cc-presets button {
  font: inherit;
  font-size: var(--fs-m);
  font-weight: 600;
  color: var(--text);
  background: #F5F5F2;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.35rem 0;
  min-height: 36px;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}
.cc-presets button:hover { border-color: var(--text); background: var(--card-bg); }

.cc-advanced { margin: 0; border-top: 1px solid var(--border); padding-top: 1rem; }
.cc-advanced summary {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-m);
  font-weight: 700;
  color: var(--text);
  min-height: 32px;
}
.cc-advanced summary::-webkit-details-marker { display: none; }
.cc-advanced summary::after {
  content: "";
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--transition);
}
.cc-advanced[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.cc-adv-sum { font-weight: 500; color: var(--muted); }
.cc-adv-body { padding-top: 0.75rem; }
.cc-adv-body .cc-money span, .cc-adv-body .cc-money input { font-size: var(--fs-b); }
.cc-fx-label { display: flex; justify-content: space-between; margin-top: 1.25rem; }
.cc-fx-label output { font-weight: 700; color: var(--text); }
.cc-fx-label + .cc-range { margin-top: 0.25rem; }

.cc-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.6rem 0 0;
  font-size: var(--fs-m);
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
}
.cc-check input { width: 18px; height: 18px; accent-color: var(--text); }

/* ----- 結果 ----- */
.cc-result { padding: 0.75rem; }
.cc-result-eyebrow {
  font-size: var(--fs-s);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.9rem;
}
.cc-result-head {
  font-size: var(--fs-l);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  padding: 0.75rem;
}
.cc-winner:has(.cc-win) {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(244, 197, 66, 0.18) 0%, rgba(244, 197, 66, 0) 55%),
    linear-gradient(160deg, #15171C 0%, #0B0C0F 100%);
  color: #fff;
  border-radius: 18px;
  padding: 1.35rem 1.35rem 0.6rem;
}
.cc-win {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}
.cc-win-id { min-width: 0; }
.cc-win-name { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
.cc-win-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.3rem 0 0; font-size: var(--fs-m); color: rgba(255, 255, 255, 0.65); }
.cc-win-num { text-align: right; display: grid; justify-items: end; }
.cc-win-net { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--brand); font-variant-numeric: tabular-nums; }
.cc-win-unit { font-size: var(--fs-m); font-weight: 600; color: rgba(255, 255, 255, 0.6); margin-top: 0.15rem; }
.cc-win-pct {
  margin-top: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: var(--fs-s);
  font-weight: 700;
  color: #fff;
}
.cc-win-alt { margin: 0.9rem 0 0; font-size: var(--fs-m); color: rgba(255, 255, 255, 0.7); line-height: 1.5; }
.cc-win-alt b { color: #fff; }
.cc-win-more { margin: 0.9rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.cc-win-more > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.65rem 0;
  font-size: var(--fs-m);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}
.cc-win-more > summary::-webkit-details-marker { display: none; }
.cc-win-more > summary::after { content: " ＋"; }
.cc-win-more[open] > summary::after { content: " －"; }
.cc-win-more .cc-detail-body { padding: 0 0 0.9rem; color: rgba(255, 255, 255, 0.85); }
.cc-win-more .cc-math { background: rgba(255, 255, 255, 0.06); }
.cc-win-more .cc-math dt, .cc-win-more .cc-notes, .cc-win-more .cc-perks, .cc-win-more .cc-reg-note, .cc-win-more .cc-plan { color: rgba(255, 255, 255, 0.7); }
.cc-win-more .cc-math-total { border-color: rgba(255, 255, 255, 0.12); }
.cc-win-more .cc-detail, .cc-win-more .cc-plan b, .cc-win-more .cc-reg-note b { color: #fff; }

/* 小卡面 */
.cc-thumb {
  flex: none;
  width: 52px;
  height: 33px;
  border-radius: 5px;
  object-fit: contain;
}
span.cc-thumb { display: grid; place-items: center; overflow: hidden; background: var(--tc, #1F2430); box-shadow: 0 1px 4px rgba(15, 17, 21, 0.18); }
span.cc-thumb img { max-width: 70%; max-height: 55%; object-fit: contain; }
.cc-thumb-l { width: 84px; height: 53px; border-radius: 8px; }
img.cc-thumb-l { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); }

/* 申請狀態小標章：可申請不顯示 */
.cc-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: var(--fs-s);
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.cc-pill-partial { background: var(--cp-mid-bg); color: var(--cp-mid); }
.cc-pill-unclear { background: var(--cp-na-bg); color: var(--cp-na); }
.cc-pill-soon { background: var(--cp-soon-bg); color: var(--cp-soon); }

/* 其他名次：一行一張 */
.cc-list-title { margin: 1.1rem 0.75rem 0.35rem; font-size: var(--fs-s); font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.cc-list { list-style: none; margin: 0; padding: 0; }
.cc-item + .cc-item { border-top: 1px solid var(--border); }
.cc-row {
  display: grid;
  grid-template-columns: 1.5rem auto minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--transition);
}
.cc-row::-webkit-details-marker { display: none; }
.cc-row:hover { background: #F7F7F4; }
.cc-row:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.cc-rank { font-size: var(--fs-m); font-weight: 700; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.cc-row-id { min-width: 0; display: grid; gap: 0.1rem; }
.cc-row-name { font-size: var(--fs-b); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.cc-row-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: var(--fs-s); color: var(--muted); }
.cc-row-num { display: grid; justify-items: end; line-height: 1.25; }
.cc-row-num b { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.cc-row-num b.is-neg { color: var(--cp-no); }
.cc-row-num small { font-size: var(--fs-s); color: var(--muted); }
.cc-chev { width: 8px; height: 8px; border-right: 2px solid #B9BDC6; border-bottom: 2px solid #B9BDC6; transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--transition); }
.cc-item details[open] .cc-chev { transform: rotate(-135deg) translate(-2px, -2px); }
.cc-item .cc-detail-body { padding: 0 0.75rem 1rem calc(0.75rem + 1.5rem + 0.75rem); }

/* 展開後的算式與條件 */
.cc-plan { margin: 0 0 0.6rem; font-size: var(--fs-m); color: var(--muted); }
.cc-plan b { color: var(--text); font-weight: 600; }
.cc-math {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #F7F7F4;
  font-size: var(--fs-m);
  font-variant-numeric: tabular-nums;
}
.cc-math > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.1rem 0; }
.cc-math dt { color: var(--muted); }
.cc-math dd { margin: 0; font-weight: 600; }
.cc-math-total { margin-top: 0.35rem; padding-top: 0.45rem !important; border-top: 1px dashed var(--border); }
.cc-math-total dt, .cc-math-total dd { font-weight: 800; color: inherit; }
.cc-math-total small { margin-left: 0.4rem; font-weight: 600; color: var(--muted); }
.cc-reg-note { margin: 0.75rem 0 0; font-size: var(--fs-m); line-height: 1.55; color: var(--muted); }
.cc-reg-note b { color: var(--text); }
.cc-notes { list-style: none; margin: 0.6rem 0 0; padding: 0; font-size: var(--fs-m); line-height: 1.55; color: var(--muted); }
.cc-notes li { position: relative; padding-left: 0.9rem; margin: 0.15rem 0 0; overflow-wrap: anywhere; }
.cc-notes li::before { content: ""; position: absolute; left: 0.2rem; top: 0.66em; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.cc-perks { margin: 0.5rem 0 0; font-size: var(--fs-m); line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.cc-detail { display: inline-block; margin: 0.75rem 0 0; font-size: var(--fs-m); font-weight: 700; color: var(--text); text-decoration: none; }
.cc-detail:hover { text-decoration: underline; text-underline-offset: 3px; }

.cc-more { margin: 0.25rem 0 0; }
.cc-more > summary {
  cursor: pointer;
  list-style: none;
  text-align: center;
  font-size: var(--fs-m);
  font-weight: 700;
  color: var(--text);
  padding: 0.7rem;
  margin: 0.25rem 0.75rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background-color var(--transition);
}
.cc-more > summary::-webkit-details-marker { display: none; }
.cc-more > summary:hover { background: #F7F7F4; }
.cc-more[open] > summary { display: none; }
.cc-more .cc-list { border-top: 1px solid var(--border); }
.cc-off { font-size: var(--fs-s); color: var(--muted); margin: 0.75rem 0.75rem 0; line-height: 1.55; }
.cc-disclaimer { font-size: var(--fs-s); color: var(--muted); line-height: 1.55; margin: 0.75rem 0.75rem 0.5rem; }
.cc-disclaimer a { color: var(--text); font-weight: 600; margin-left: 0.25rem; text-underline-offset: 3px; }

.cc-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 1.25rem 1.5rem;
  border-radius: 24px;
  background: #F2F2EF;
}
.cc-cta-line { font-size: var(--fs-b); color: var(--muted); margin: 0; }
.cc-cta-line b { color: var(--text); }
.cc-cta { font-size: var(--fs-b); padding: 0.8rem 1.4rem; white-space: nowrap; }
.cc-noscript {
  background: var(--cp-na-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  font-size: var(--fs-m);
  margin: 0 0 1rem;
}

/* ----- 卡片介紹區（原比較表） ----- */
.cc-section-alt { background: var(--card-bg); border-top: 1px solid var(--border); max-width: none; }
.cc-section-alt > .cc-inner { max-width: 1100px; margin: 0 auto; }
.cc-sub { color: var(--muted); font-size: var(--fs-b); margin: -1.25rem 0 1.5rem; max-width: 46rem; }
.cc-table-note { font-size: var(--fs-m); color: var(--muted); margin: 0.75rem 0 0; }

/* ----- 怎麼算 ----- */
.cc-method { max-width: 46rem; }
.cc-method p, .cc-method li { font-size: var(--fs-b); color: var(--muted); }
.cc-method strong { color: var(--text); }
.cc-formula {
  background: var(--bg);
  border-left: 3px solid var(--text);
  border-radius: 0 12px 12px 0;
  padding: 0.8rem 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem;
}
.cc-sources { font-size: var(--fs-m); }
.cc-sources a { color: var(--muted); word-break: break-word; }

.cc-faq-section .section-title { max-width: 720px; margin-left: auto; margin-right: auto; }
.cc-faq-section .faq-answer a { color: var(--text); }

@media (max-width: 899px) {
  .cc-calc { grid-template-columns: minmax(0, 1fr); }  /* 1fr 會被輸入框的最小寬度撐開（320px 寬時橫向捲動） */
  .cc-form { position: static; }
}

@media (max-width: 600px) {
  .cc-hero { padding-top: 1.75rem; }
  .cc-panel { padding: 1.15rem; border-radius: 20px; }
  .cc-result { padding: 0.5rem; }
  .cc-winner:has(.cc-win) { padding: 1.1rem 1.1rem 0.5rem; }
  .cc-win { grid-template-columns: auto minmax(0, 1fr); }
  .cc-win-num { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: flex-start; gap: 0.4rem; text-align: left; }
  .cc-win-pct { margin: 0 0 0 auto; }
  .cc-row { grid-template-columns: 1.1rem auto minmax(0, 1fr) auto; gap: 0.6rem; padding: 0.75rem 0.5rem; }
  .cc-chev { display: none; }
  .cc-item .cc-detail-body { padding: 0 0.5rem 1rem; }
  .cc-cta-wrap { padding: 1.1rem; }
  .cc-cta { display: block; width: 100%; text-align: center; }
}

/* =====================================================================
 * 卡片介紹：一張卡一個區塊（版面參考 NerdWallet、The Points Guy 的卡片列表：
 * 左卡面、中卡名與申請地區、右按鈕，下面一排重點數字，再展開等級和條款）
 * ===================================================================== */
/* 申請狀態五級（SPEC_v3）：可申請綠、有條件黃、即將開放藍、待確認灰（虛線框）、不可申請紅 */
:root {
  --cp-yes: #0F7B4D;
  --cp-yes-bg: #E7F6EE;
  --cp-mid: #8A4512;
  --cp-mid-bg: #F7EDE4;
  --cp-soon: #1D4F91;
  --cp-soon-bg: #E6EFFA;
  --cp-no: #9B2C2C;
  --cp-no-bg: #FDECEC;
  --cp-na: #5B6170;
  --cp-na-bg: #F1F2F4;
}

/* 篩選列：捲動時黏在導覽列下面 */
.cp-toolbar {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin: 0 0 1.25rem;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.cp-toolbar[hidden] { display: none; }
.cp-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cp-chip {
  font: inherit;
  font-size: var(--fs-m);
  font-weight: 600;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  min-height: 36px;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}
.cp-chip:hover { border-color: var(--text); }
.cp-chip.is-on { background: var(--text); border-color: var(--text); color: #fff; }
.cp-chip:focus-visible, .cp-sort select:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.cp-sort { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-m); font-weight: 600; color: var(--muted); margin-left: auto; }
.cp-sort select {
  font: inherit;
  font-size: var(--fs-m);
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.35rem 0.6rem;
  min-height: 36px;
  background: var(--card-bg);
}
.cp-count { margin: 0; font-size: var(--fs-s); color: var(--muted); white-space: nowrap; }
.cp-empty { color: var(--muted); text-align: center; padding: 2rem 0; }

/* 2026-11 改版：一張卡一行摘要（卡名、能不能辦、免條件回饋、年費和外幣、一年實拿），點開才看等級和條件 */
.cp-list { display: grid; gap: 0.5rem; }
.cp {
  scroll-margin-top: 150px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color var(--transition);
}
.cp:hover { border-color: #D5D7DC; }
.cp:target { border-color: var(--text); }
.cp[hidden] { display: none; }
.cp[data-calc="0"] { background: #FCFCFB; }

/* 欄寬：卡片｜能不能辦・託管｜免條件回饋｜年費・外幣｜一年實拿｜展開鈕。表頭跟每一行共用 */
.cp-listhead, .cp-sum {
  display: grid;
  grid-template-columns: 56px minmax(0, 2fr) minmax(0, 2.4fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr) 24px;
  column-gap: 1rem;
  align-items: center;
}
.cp-listhead { padding: 0 1rem 0.4rem; font-size: var(--fs-s); font-weight: 700; color: var(--muted); }
.cp-lh-card { grid-column: 1 / 3; }
.cp-sum {
  grid-template-areas: "thumb name regs rate cost net tog" "thumb meta regs rate cost net tog";
  row-gap: 0.1rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
}
.cp-sum::-webkit-details-marker { display: none; }
.cp-sum:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; border-radius: 14px; }
.cp-thumb { grid-area: thumb; }
.cp-sum .cp-name { grid-area: name; align-self: end; font-size: var(--fs-b); font-weight: 700; letter-spacing: 0; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
.cp-meta { grid-area: meta; align-self: start; font-size: var(--fs-s); color: var(--muted); line-height: 1.45; }
.cp-perks, .cp-promo { display: block; font-size: var(--fs-s); color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.cp-perks { margin-top: 0.1rem; }
.cp-facts > div:has(> dd .cp-perklist) { grid-column: 1 / -1; }
.cp-perklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.5rem; }
.cp-perklist b { font-weight: 700; }
.cp-perklist small { display: block; font-size: var(--fs-s); color: var(--muted); line-height: 1.45; }
.cp-sum .cp-regs { grid-area: regs; gap: 0.3rem; }
.cp-c-rate { grid-area: rate; }
.cp-c-cost { grid-area: cost; }
.cp-c-net { grid-area: net; }
.cp-cell { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.cp-k { display: none; font-size: var(--fs-s); font-weight: 700; color: var(--muted); }
.cp-v { font-size: var(--fs-b); font-weight: 700; overflow-wrap: anywhere; }
.cp-c-rate .cp-v { font-size: var(--fs-l); font-weight: 800; letter-spacing: -0.01em; }
.cp-cell small { font-size: var(--fs-s); color: var(--muted); overflow-wrap: anywhere; }
.cp-muted { color: var(--cp-na); font-size: var(--fs-b); font-weight: 600; }
.cp-toggle { grid-area: tog; justify-self: end; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--transition); }
.cp-row[open] .cp-toggle { transform: rotate(-135deg) translate(-2px, -2px); }
.cp-row[open] .cp-sum { border-bottom: 1px solid var(--border); }

/* 摘要列的小卡面（跟試算結果的縮圖同款） */
.cp-thumb {
  width: 56px;
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--tc, transparent);
}
span.cp-thumb { display: grid; place-items: center; overflow: hidden; background: var(--tc, #1F2430); color: var(--tt, #fff); box-shadow: 0 1px 4px rgba(15, 17, 21, 0.15); }
span.cp-thumb img { max-width: 72%; max-height: 56%; object-fit: contain; }
span.cp-thumb img.cp-fake-pill-light, span.cp-thumb img.cp-fake-pill-dark { padding: 2px 4px; border-radius: 4px; }
span.cp-thumb b { font-size: var(--fs-s); font-weight: 800; }

/* 展開後 */
.cp-body { padding: 1rem 1rem 1.1rem; }
.cp-label { font-size: var(--fs-s); font-weight: 700; color: var(--muted); margin: 0 0 0.4rem; }
.cp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.5rem; margin: 1rem 0 0; }
.cp-facts dt { font-size: var(--fs-s); font-weight: 700; color: var(--muted); margin: 0 0 0.1rem; }
.cp-facts dd { margin: 0; font-size: var(--fs-m); line-height: 1.55; overflow-wrap: anywhere; }
.cp-terms-line { display: block; font-size: var(--fs-s); color: var(--muted); }
.cp-terms-line > span + span::before { content: "・"; }
.cp-body > .cp-label:not(:first-child) { margin-top: 1rem; }
.cp-risks { margin: 0; padding-left: 1.1rem; font-size: var(--fs-m); line-height: 1.6; overflow-wrap: anywhere; }
.cp-risks li { margin: 0.15rem 0; }
.cp-risks li::marker { color: var(--muted); }
.cp-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin: 1.1rem 0 0; }
.cp-btn { padding: 0.55rem 1.1rem; font-size: var(--fs-m); }
.cp-official { font-size: var(--fs-m); font-weight: 600; color: var(--text); text-underline-offset: 3px; }
/* Max 的推薦連結（只在展開後和單卡頁；揭露小字緊跟在下面） */
.cp-ref { margin: 0.75rem 0 0; font-size: var(--fs-m); }
.cp-ref a { font-weight: 600; color: var(--text); text-underline-offset: 3px; }
.cp-ref small { display: block; margin-top: 0.15rem; font-size: var(--fs-s); color: var(--muted); }

/* 卡面：官方圖或品牌色示意卡，維持信用卡 1.586:1 比例 */
.cp-art {
  width: 100%;
  aspect-ratio: 1.586;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}
.cp-art > img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 10px 18px rgba(15, 17, 21, 0.18));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.cp:hover .cp-art > img, .cp:hover .cp-fake { transform: rotateY(-8deg) rotateX(4deg) translateY(-2px); }
.cp-art-portrait > img { border-radius: 10px; }

.cp-fake {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  color: var(--ct, #fff);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, var(--cc, #1F2430) 0%, color-mix(in srgb, var(--cc, #1F2430) 70%, #000) 100%);
  box-shadow: 0 10px 22px rgba(15, 17, 21, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.cp-fake::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% 30%;
  height: 120%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.cp-fake .cp-fake-logo {
  position: absolute;
  top: 11%;
  left: 8%;
  width: auto;
  height: auto;
  max-width: 46%;
  max-height: 17%;
  object-fit: contain;
  object-position: left center;
}
.cp-fake-pill-light, .cp-fake-pill-dark { padding: 4px 8px; border-radius: 8px; box-sizing: content-box; }
.cp-fake-pill-light { background: #fff; }
.cp-fake-pill-dark { background: #0F1115; }
.cp-fake-word {
  position: absolute;
  top: 11%;
  left: 8%;
  font-weight: 800;
  font-size: var(--fs-b);
  letter-spacing: -0.01em;
}
.cp-fake-chip {
  position: absolute;
  left: 8%;
  top: 42%;
  width: 15%;
  aspect-ratio: 1.3;
  border-radius: 4px;
  background: linear-gradient(135deg, #F6E3A1, #C9A64B 60%, #EAD48C);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.cp-fake-name {
  position: absolute;
  left: 8%;
  bottom: 10%;
  max-width: 62%;
  font-size: var(--fs-s);
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.85;
  line-height: 1.3;
}
.cp-fake-net {
  position: absolute;
  right: 7%;
  bottom: 9%;
  font-size: var(--fs-m);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.cp-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.5rem; }
.cp-tag {
  font-size: var(--fs-s);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}
/* 「已納入試算」用深色外框：黃色只留給申請狀態的「有條件」，兩個不要看起來像同一類 */
.cp-tag-calc { background: var(--card-bg); border-color: var(--text); color: var(--text); }
.cp-tag-off { background: var(--cp-na-bg); color: var(--cp-na); }
.cp-name { font-size: var(--fs-l); font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; margin: 0; }
.cp-name a { color: inherit; text-decoration: none; }
.cp-name a:hover, .cp-name a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.cp-issuer { margin: 0.2rem 0 0.7rem; font-size: var(--fs-m); color: var(--muted); }
.cp-regs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cp-reg {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-s);
  font-weight: 600;
  padding: 0.25rem 0.65rem 0.25rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
}
.cp-reg b { font-weight: 700; }
.cp-reg::before { font-weight: 800; }
/* 圖示只是裝飾：「/ ""」是給螢幕閱讀器的替代文字（空的＝不念「勾號」「右箭頭」）；不支援的瀏覽器用前一行 */
.cp-reg-yes { background: var(--cp-yes-bg); color: var(--cp-yes); }
.cp-reg-yes::before { content: "✓"; content: "✓" / ""; }
.cp-reg-partial { background: var(--cp-mid-bg); color: var(--cp-mid); }
.cp-reg-partial::before { content: "◐"; content: "◐" / ""; }
.cp-reg-soon { background: var(--cp-soon-bg); color: var(--cp-soon); }
.cp-reg-soon::before { content: "→"; content: "→" / ""; }
.cp-reg-no { background: var(--cp-no-bg); color: var(--cp-no); }
.cp-reg-no::before { content: "✕"; content: "✕" / ""; }
.cp-reg-unclear { background: var(--cp-na-bg); color: var(--cp-na); border-color: #B9BDC6; border-style: dashed; }
.cp-reg-unclear::before { content: "?"; content: "?" / ""; }

/* 資金放在哪：白底外框，跟申請狀態的色塊分開 */
.cp-custody {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-s);
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border: 1px solid #CDD1D8;
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--muted);
}
.cp-custody b { font-weight: 700; color: var(--text); }
.cp-custody-bank { gap: 0; }  /* 「銀行信用卡（先刷後繳）」括號前不要空一格 */

/* 回饋種類標章（穩定幣、BTC、平台幣、現金、點數、可選幣種、沒有回饋） */
.cp-kind {
  display: inline-block;
  font-size: var(--fs-s);
  font-weight: 700;
  line-height: 1.5;
  padding: 0 0.45rem;
  border-radius: 6px;
  background: var(--cp-na-bg);
  color: var(--text);
  vertical-align: 0.12em;
}
.cp-kind-none { background: var(--cp-na-bg); color: var(--cp-na); }
.cp-stat dd small > span { display: block; }

/* 申請前要知道 */
.cp-know { margin: 1rem 0 0; }
.cp-know ul { margin: 0; padding-left: 1.1rem; font-size: var(--fs-m); line-height: 1.6; }
.cp-know li { margin: 0.2rem 0; }
.cp-know li::marker { color: var(--muted); }

/* 重點數字列 */
.cp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0;
  margin: 1.25rem 0 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  overflow: hidden;
}
.cp-stat { padding: 0.8rem 1rem; border-right: 1px solid var(--border); min-width: 0; }
.cp-stat:last-child { border-right: 0; }
.cp-stat dt { font-size: var(--fs-s); font-weight: 700; color: var(--muted); letter-spacing: 0.02em; margin: 0 0 0.2rem; }
.cp-stat dd { margin: 0; font-size: var(--fs-b); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.cp-stat dd small { display: block; font-size: var(--fs-s); font-weight: 500; color: var(--muted); margin-top: 0.15rem; }
.cp-big { font-size: var(--fs-l); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.cp-big-muted { font-size: var(--fs-b); color: var(--cp-na); }

/* 回饋等級表 */
.cp-body { margin: 1.25rem 0 0; }
.cp-body h4, .cp-more h5 { font-size: var(--fs-m); font-weight: 700; color: var(--muted); letter-spacing: 0.03em; margin: 0 0 0.6rem; }
.cp-tier-table { width: 100%; border-collapse: collapse; font-size: var(--fs-m); line-height: 1.5; }
.cp-tier-table th, .cp-tier-table td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
.cp-tier-table thead th { font-size: var(--fs-s); font-weight: 700; color: var(--muted); padding-top: 0; }
.cp-tier-table tbody th { font-weight: 700; white-space: nowrap; }
.cp-tier-table tbody tr:last-child th, .cp-tier-table tbody tr:last-child td { border-bottom: 0; }
.cp-tier-table td:nth-child(2) { min-width: 13rem; }
.cp-tier-table td:nth-child(3) { white-space: nowrap; }
.cp-tier-table td:last-child { color: var(--muted); }
.cp-bar { display: block; height: 6px; border-radius: 999px; background: #EFEDE6; margin: 0.45rem 0 0.35rem; max-width: 200px; overflow: hidden; }
.cp-bar i { display: block; height: 100%; border-radius: inherit; background: #6B7280; }
.cp-rate { font-weight: 600; }

.cp-excluded {
  background: var(--cp-na-bg);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}
.cp-excluded h4 { margin-bottom: 0.3rem; }
.cp-excluded p { margin: 0; font-size: var(--fs-m); color: var(--text); }

/* 條款原文裡有很長的網址（例如 crypto.com/us/…），不讓它撐出橫向捲動 */
.cp-notes, .cp-know { overflow-wrap: anywhere; }
.cp-notes { margin: 0 0 1.1rem; padding-left: 1.1rem; font-size: var(--fs-m); color: var(--text); }
.cp-notes li { margin: 0.2rem 0; }
.cp-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; font-size: var(--fs-m); }
.cp-sources a { font-weight: 700; color: var(--text); }
.cp-sources q {
  display: block;
  color: var(--muted);
  font-size: var(--fs-s);
  quotes: "「" "」";
  overflow-wrap: anywhere;
}

/* 試算結果裡的小卡面 */
.cc-thumb {
  flex: none;
  width: 46px;
  height: 29px;
  border-radius: 5px;
  margin-right: 0.55rem;
  vertical-align: middle;
  object-fit: contain;
  background: var(--tc, #1F2430);
  box-shadow: 0 2px 6px rgba(15, 17, 21, 0.15);
}
span.cc-thumb { display: inline-grid; place-items: center; overflow: hidden; }
span.cc-thumb img { max-width: 70%; max-height: 60%; object-fit: contain; }
.cc-item-name { display: inline-flex; align-items: center; min-width: 0; }
/* 長卡名（例如 Crypto.com Visa Card（Prepaid Visa Platinum））要能換行，不然 320px 寬會撐出橫向捲動 */
.cc-item-title { min-width: 0; overflow-wrap: anywhere; }
.cc-detail { font-size: var(--fs-s); font-weight: 600; color: var(--muted); margin-left: 0.5rem; white-space: nowrap; }
.cc-detail:hover { color: var(--text); }

/* 窄螢幕：摘要列改兩層（卡名、狀態一層，三個數字一層），每格自己帶標題 */
@media (max-width: 899px) {
  .cp-listhead { display: none; }
  .cp-sum {
    grid-template-columns: 56px repeat(3, minmax(0, 1fr)) 20px;
    grid-template-areas: "thumb name name name tog" "thumb meta meta meta tog" "regs regs regs regs regs" "rate rate cost net net";
    column-gap: 0.75rem;
    row-gap: 0.15rem;
  }
  .cp-sum .cp-regs { margin: 0.4rem 0 0.35rem; }
  .cp-cell { align-self: start; }
  .cp-k { display: block; }
}
@media (max-width: 640px) {
  .cp-sum { padding: 0.75rem 0.85rem; }
  .cp-body { padding: 0.85rem 0.85rem 1rem; }
  .cp-facts { grid-template-columns: 1fr; }
  .cp-perklist { grid-template-columns: 1fr; }
  .cp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-stat { border-bottom: 1px solid var(--border); }
  .cp-stat:nth-child(2n) { border-right: 0; }
  /* 格數是單數（多了「每筆另收」）：最後一格「回饋發什麼」佔滿一列，不留空格 */
  .cp-stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  /* 手機：篩選列不黏頂，晶片橫向捲動，免得擋住卡片 */
  .cp-toolbar { position: static; padding: 0.6rem; }
  .cp-filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -0.6rem; padding: 0 0.6rem 0.2rem; scrollbar-width: none; }
  .cp-filters::-webkit-scrollbar { display: none; }
  .cp-chip { flex: none; }
  .cp-sort { margin-left: 0; }
  /* 等級表：一列一塊 */
  .cp-tier-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .cp-tier-table, .cp-tier-table tbody, .cp-tier-table tr, .cp-tier-table th, .cp-tier-table td { display: block; width: 100%; }
  .cp-tier-table tr { border: 1px solid var(--border); border-radius: 12px; margin: 0 0 0.6rem; padding: 0.6rem 0.8rem; }
  .cp-tier-table th, .cp-tier-table td { border: 0; padding: 0.15rem 0; min-width: 0 !important; white-space: normal !important; }
  .cp-tier-table td::before { content: attr(data-label) "："; font-size: var(--fs-s); font-weight: 700; color: var(--muted); }
  .cp-tier-table td:first-of-type::before { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .cp:hover .cp-art > img, .cp:hover .cp-fake { transform: none; }
}

/* =====================================================================
 * 單卡頁（/tools/crypto-card-compare/<id>，build.py 用 _templates/card.html 產生）
 * 重點數字列、等級表、標章沿用上面卡片介紹的 cp- 樣式
 * ===================================================================== */
.cd { max-width: 980px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }
/* 標頭：左文字、右卡面；手機卡面縮成卡名旁的縮圖（2026-11 改版第 7 項） */
.cd-head { display: grid; grid-template-columns: minmax(0, 1fr) 220px; grid-template-areas: "main art"; gap: 1.5rem; align-items: start; margin: 0 0 1.5rem; }
.cd-head-main { grid-area: main; min-width: 0; }
.cd-head .cd-art { grid-area: art; }
.cd-checked { margin: 0.7rem 0 0; font-size: var(--fs-s); color: var(--muted); }
.cd-checked a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }
.cd-name { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.cd-issuer { margin: 0.3rem 0 0.9rem; font-size: var(--fs-b); color: var(--muted); }
.cd-regions { display: grid; gap: 0.3rem; margin: 0.9rem 0 0; font-size: var(--fs-m); line-height: 1.55; }
.cd-regions div { display: flex; gap: 0.6rem; }
.cd-regions dt { flex: none; font-weight: 700; }
.cd-regions dd { margin: 0; min-width: 0; color: var(--muted); overflow-wrap: anywhere; }

.cd-sec {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin: 0 0 1.25rem;
}
.cd-sec h2 { font-size: var(--fs-b); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 0.85rem; }
.cd-sec h3 { font-size: var(--fs-m); font-weight: 700; color: var(--muted); letter-spacing: 0.03em; margin: 1.1rem 0 0.5rem; }
.cd-sec .cp-excluded h3 { margin-top: 0; }
.cd-sec p { font-size: var(--fs-m); margin: 0; }
.cd-sec.cd-top { padding: 0; overflow: hidden; }
.cd-top .cp-stats { margin: 0; border: 0; border-radius: 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
/* 單卡頁的數字列會排成兩列：每格都畫下框和右框，最外圈被外框蓋掉 */
.cd-top .cp-stat { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0 -1px -1px 0; }

.cd-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1.5rem; margin: 1rem 0 0; }
.cd-dl:first-child { margin-top: 0; }
.cd-dl dt { font-size: var(--fs-s); font-weight: 700; color: var(--muted); margin: 0 0 0.15rem; }
.cd-dl dd { margin: 0; font-size: var(--fs-m); line-height: 1.6; overflow-wrap: anywhere; }
/* 單卡頁「非現金福利」 */
.cd-perk-note { margin: 0 0 1rem !important; font-size: var(--fs-m); color: var(--muted); line-height: 1.55; }
.cd-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1.5rem; }
.cd-perks b { font-weight: 800; font-size: var(--fs-b); }
.cd-perks p { margin: 0.15rem 0 0; font-size: var(--fs-m); line-height: 1.6; overflow-wrap: anywhere; }
.cd-perks small { display: block; margin-top: 0.15rem; font-size: var(--fs-s); color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.cd-kind { margin: 0 0 0.25rem !important; font-weight: 700; }
.cd-kind .cp-kind { font-size: var(--fs-s); }
.cd-custody b { font-weight: 800; }
.cd-sec .cp-know { margin: 0; }
.cd-sec .cp-know ul { font-size: var(--fs-m); }
/* 證據與來源：預設收合（2026-11 改版第 6 項） */
.cd-evidence summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; cursor: pointer; list-style: none; min-height: 36px; }
.cd-evidence summary::-webkit-details-marker { display: none; }
.cd-evidence summary h2 { margin: 0; }
.cd-evidence summary::after { content: "展開"; margin-left: auto; font-size: var(--fs-s); font-weight: 700; color: var(--muted); }
.cd-evidence[open] summary::after { content: "收合"; }
.cd-evidence-count { font-size: var(--fs-s); color: var(--muted); }
.cd-evidence .cp-sources { margin-top: 0.9rem; }
.cd-verified { margin-top: 0.9rem !important; font-size: var(--fs-m) !important; color: var(--muted); }
.cd-calc { margin: 1.75rem 0 0; font-size: var(--fs-b); font-weight: 700; text-align: center; }
.cd-calc a { color: var(--text); text-underline-offset: 4px; }
.cd-cta { margin: 1.25rem 0 2.25rem; text-align: center; }
.cd-others h2 { font-size: var(--fs-b); font-weight: 800; margin: 0 0 0.75rem; }
.cd-others ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cd-others a {
  display: inline-block;
  font-size: var(--fs-m);
  font-weight: 600;
  line-height: 1.4;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition);
}
.cd-others a:hover { border-color: var(--text); }

@media (max-width: 760px) {
  .cd-head { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "art main"; gap: 0.9rem; }
  .cd-head .cd-art { width: 72px; align-self: start; margin-top: 0.3rem; }
  .cd-head .cd-art > img { border-radius: 6px; filter: drop-shadow(0 2px 4px rgba(15, 17, 21, 0.18)); }
  .cd-head .cd-art .cp-fake { border-radius: 6px; }
  .cd-head .cd-art .cp-fake-name, .cd-head .cd-art .cp-fake-net, .cd-head .cd-art .cp-fake-chip { display: none; }
  .cd-head .cd-art .cp-fake-word { font-size: var(--fs-s); top: 50%; transform: translateY(-50%); }
  .cd-head .cd-art .cp-fake-logo { top: 50%; transform: translateY(-50%); max-height: 40%; max-width: 70%; }
  .cd-top .cp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-top .cp-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cd-dl { grid-template-columns: 1fr; }
  .cd-perks { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cd { padding: 1.25rem 1rem 2.5rem; }
  .cd-sec { padding: 1.1rem; }
  .cd-regions div { flex-direction: column; gap: 0; }
}

/* 2026-11-06 簡化：摘要列的地區標章只露圖示＋地區，託管改灰字 */
.cp-sum .cp-regs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.cp-reg-s { padding: 0.15rem 0.55rem; font-size: var(--fs-s); }
.cp-sum .cp-custody { flex-basis: 100%; padding: 0; border: 0; background: none; font-size: var(--fs-s); font-weight: 500; color: var(--muted); }
.cp-cell small:empty { display: none; }
.cp-legend { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: -0.75rem 0 1.25rem; }
