/* CoinPoker 中文攻略站 — 共用樣式
   純 CSS + inline SVG，無外部字型／CDN／圖檔請求
   配色參考 coinpoker.com 的品類語言：近黑底、藍調灰文字、紅色主行動色 */

:root {
  --bg: #0d0e12;
  --bg-alt: #0a0a0e;
  --surface: #161923;
  --surface-2: #21242e;
  --border: #2a2f3d;
  --border-strong: #3a4152;

  --text: #f2f4f9;
  --text-mid: #acb0c3;
  --text-dim: #7b8093;

  --red: #e8382c;
  --red-deep: #c0180c;
  --gold: #f0b429;
  --gold-dim: #8a6512;
  --green: #22c07d;
  --green-dim: #12603f;
  --indigo: #4d54f1;

  --radius: 12px;
  --radius-sm: 7px;
  --maxw: 880px;

  --font: -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ============ 圖示系統 ============ */
.i {
  width: 1em; height: 1em;
  display: inline-block; vertical-align: -.14em;
  flex: none; fill: none;
  stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.i--fill { fill: currentColor; stroke: none; }
.i-lg { width: 1.35em; height: 1.35em; }
#sprite { display: none; }

/* 花色點綴 */
.suit-row { display: flex; gap: 7px; align-items: center; color: var(--text-dim); font-size: 15px; }
.suit-row .i:nth-child(1) { color: var(--text-mid); }
.suit-row .i:nth-child(2) { color: var(--red); }
.suit-row .i:nth-child(3) { color: var(--red); }
.suit-row .i:nth-child(4) { color: var(--text-mid); }

/* ============ 頁首 ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 14, 18, .93);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 18px;
  height: 60px; display: flex; align-items: center; gap: 16px;
}
.logo {
  font-weight: 700; font-size: 17px; color: var(--text);
  text-decoration: none; letter-spacing: .2px; white-space: nowrap;
  display: flex; align-items: center; gap: 0;
}
.logo .i { color: var(--red); width: 20px; height: 20px; margin-right: 8px; }
.logo b { color: var(--red); font-weight: 700; }
.logo span { color: var(--text-dim); font-weight: 400; font-size: 12px; margin-left: 8px; }

.nav { margin-left: auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--text-mid); text-decoration: none; font-size: 14px;
  padding: 6px 10px; border-radius: var(--radius-sm); white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--red); background: rgba(232, 56, 44, .1); }

/* ============ 麵包屑 ============ */
.crumb {
  font-size: 13px; color: var(--text-dim); padding: 20px 0 0;
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
}
.crumb a { color: var(--text-dim); text-decoration: none; }
.crumb a:hover { color: var(--red); }
.crumb i { font-style: normal; margin: 0 6px; opacity: .45; }
.crumb .i { width: 13px; height: 13px; margin-right: 5px; }

/* ============ 標題 ============ */
h1 { font-size: 31px; line-height: 1.38; margin: 16px 0 6px; letter-spacing: -.3px; font-weight: 700; }
h2 {
  font-size: 22px; line-height: 1.5; margin: 48px 0 14px;
  padding-top: 12px; border-top: 1px solid var(--border); font-weight: 700;
  display: flex; align-items: center; gap: 9px;
}
h2 .i { color: var(--red); width: 19px; height: 19px; }
h3 { font-size: 17px; margin: 28px 0 10px; font-weight: 700; color: var(--text); }
p { margin: 0 0 15px; color: var(--text-mid); }
a { color: var(--gold); }
a:hover { color: #ffcb52; }

.dek { color: var(--text-dim); font-size: 15px; margin-bottom: 20px; }

/* ============ Hero 視覺 ============ */
.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: radial-gradient(120% 140% at 78% 8%, rgba(192, 24, 12, .22) 0%, transparent 58%),
              linear-gradient(160deg, var(--surface-2) 0%, var(--bg-alt) 100%);
  padding: 26px 26px 24px; margin: 20px 0 26px;
}
.hero h1 { margin-top: 0; position: relative; z-index: 2; }
.hero .dek { margin-bottom: 14px; position: relative; z-index: 2; }
.hero-art {
  position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  width: 230px; height: 230px; opacity: .5; pointer-events: none; z-index: 1;
}
/* 頁面浮水印花色 */
.page-mark {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 150px; height: 150px; opacity: .1; color: var(--text); pointer-events: none;
  fill: none; stroke: currentColor; stroke-width: .8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ============ 直接答案段（GEO 抽取目標） ============ */
.answer {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px; margin: 22px 0 26px;
}
.answer p { margin: 0; color: var(--text); font-size: 16.5px; line-height: 1.8; }
.answer p + p { margin-top: 10px; }
.answer strong { color: var(--gold); font-weight: 700; }

/* ============ 提示框 ============ */
.note {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin: 20px 0; background: var(--surface); font-size: 15px;
}
.note p:last-child { margin-bottom: 0; }
.note .tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .4px; margin-bottom: 6px;
}
.note .tag .i { width: 14px; height: 14px; }
.note--warn { border-color: #6b2420; background: rgba(232, 56, 44, .07); }
.note--warn .tag { color: var(--red); }
.note--ok { border-color: var(--green-dim); background: rgba(34, 192, 125, .07); }
.note--ok .tag { color: var(--green); }
.note--info { border-color: #333a7a; background: rgba(77, 84, 241, .09); }
.note--info .tag { color: #8d92ff; }

/* ============ 表格 ============ */
.table-scroll { overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch; }
table {
  width: 100%; border-collapse: collapse; font-size: 14.5px;
  background: var(--surface); border-radius: var(--radius); overflow: hidden; min-width: 480px;
}
caption { caption-side: top; text-align: left; font-size: 13px; color: var(--text-dim); padding-bottom: 8px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, .022); }
td.num { font-family: var(--mono); font-size: 13.5px; }
.yes, .no, .mid { font-weight: 700; white-space: nowrap; }
.yes { color: var(--green); }
.no { color: var(--red); }
.mid { color: var(--gold); }
.yes .i, .no .i, .mid .i { width: 13px; height: 13px; margin-right: 3px; vertical-align: -.09em; }
.t-old { color: var(--text-dim); text-decoration: line-through; }
.t-new { color: var(--green); font-weight: 700; }

/* ============ 優缺點 ============ */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.pc > div { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; background: var(--surface); }
.pc h4 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.pc h4 .i { width: 16px; height: 16px; }
.pc--pro { border-top: 2px solid var(--green) !important; }
.pc--con { border-top: 2px solid var(--red) !important; }
.pc--pro h4 { color: var(--green); }
.pc--con h4 { color: var(--red); }
.pc ul { margin: 0; padding-left: 18px; }
.pc li { margin-bottom: 8px; font-size: 14.5px; color: var(--text-mid); }
.pc li:last-child { margin-bottom: 0; }

/* ============ CTA ============ */
.cta {
  position: relative; overflow: hidden;
  background: radial-gradient(100% 130% at 50% 0%, rgba(192, 24, 12, .2) 0%, transparent 62%),
              linear-gradient(135deg, var(--surface-2) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 24px 22px; margin: 32px 0; text-align: center;
}
.cta-suits {
  display: flex; justify-content: center; gap: 9px; margin-bottom: 10px;
  font-size: 14px; opacity: .75;
}
.cta-suits .i:nth-child(2), .cta-suits .i:nth-child(3) { color: var(--red); }
.cta-suits .i:nth-child(1), .cta-suits .i:nth-child(4) { color: var(--text-dim); }
.cta h4 { margin: 0 0 6px; font-size: 17.5px; color: var(--text); }
.cta p { font-size: 14px; color: var(--text-dim); margin: 0 0 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, #f0443a 0%, var(--red-deep) 100%);
  color: #fff; font-weight: 700; font-size: 16px;
  padding: 13px 32px; border-radius: 9px; text-decoration: none;
  box-shadow: 0 4px 20px rgba(192, 24, 12, .34);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn .i { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 7px 26px rgba(192, 24, 12, .46); color: #fff; }
.btn:active { transform: translateY(0); }
.cta .fine { font-size: 12px; color: var(--text-dim); margin: 13px 0 0; line-height: 1.7; }

/* ============ 事實卡 ============ */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 10px; margin: 24px 0; }
.fact {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 15px 16px;
  transition: border-color .15s ease;
}
.fact:hover { border-color: var(--border-strong); }
.fact dt {
  font-size: 12.5px; color: var(--text-dim); margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.fact dt .i { width: 14px; height: 14px; color: var(--red); }
.fact dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.4; }
.fact dd small { display: block; font-weight: 400; font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* ============ FAQ ============ */
.faq { margin: 22px 0; }
.faq dt {
  font-weight: 700; font-size: 16px; color: var(--text);
  margin: 24px 0 8px; padding-left: 26px; position: relative;
}
.faq dt .i {
  position: absolute; left: 0; top: .42em;
  width: 16px; height: 16px; color: var(--red);
}
.faq dd { margin: 0 0 0 26px; color: var(--text-mid); font-size: 15px; }

/* ============ 步驟 ============ */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 22px 0; }
.steps > li {
  counter-increment: s; position: relative;
  padding: 0 0 20px 42px; margin: 0 0 0 13px; border-left: 1px solid var(--border);
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(s); position: absolute; left: -13px; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--red); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps h4 { margin: 1px 0 6px; font-size: 15.5px; }
.steps p { font-size: 14.5px; margin-bottom: 0; }

/* ============ 卡片 ============ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 12px; margin: 22px 0; }
.card {
  display: block; text-decoration: none; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 17px 18px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--red-deep); transform: translateY(-2px); }
.card .card-ico {
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 11px;
  background: rgba(232, 56, 44, .12); border: 1px solid rgba(232, 56, 44, .22);
  display: flex; align-items: center; justify-content: center; color: var(--red);
}
.card .card-ico .i { width: 17px; height: 17px; }
.card b { display: block; color: var(--text); font-size: 15.5px; margin-bottom: 5px; }
.card span { display: block; color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }
.card em {
  font-style: normal; display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--gold); background: rgba(240, 180, 41, .12);
  padding: 1px 7px; border-radius: 4px; margin-bottom: 8px;
}

/* ============ 更新時間 ============ */
.updated {
  font-size: 13px; color: var(--text-dim);
  border-top: 1px solid var(--border); padding-top: 16px; margin-top: 44px;
}
.updated .i { width: 14px; height: 14px; margin-right: 6px; vertical-align: -.16em; color: var(--text-dim); }

/* ============ 頁尾 ============ */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 56px;
  padding: 30px 0 40px; background: var(--bg-alt);
  font-size: 13.5px; color: var(--text-dim);
}
.site-footer h5 {
  margin: 0 0 8px; color: var(--text-mid); font-size: 13.5px;
  display: flex; align-items: center; gap: 7px;
}
.site-footer h5 .i { width: 14px; height: 14px; }
.site-footer p { font-size: 13.5px; color: var(--text-dim); margin-bottom: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; }
.foot-links a { color: var(--text-mid); text-decoration: none; }
.foot-links a:hover { color: var(--red); }
.disclosure {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 15px; background: var(--surface); margin-bottom: 16px;
}
.foot-suits { margin-bottom: 16px; }

/* ============ 響應式 ============ */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  h1 { font-size: 24px; }
  h2 { font-size: 19px; margin-top: 38px; }
  h2 .i { width: 17px; height: 17px; }
  .header-inner { height: 54px; gap: 10px; }
  .logo { font-size: 15px; gap: 6px; }
  .logo span { display: none; }
  .nav a { padding: 5px 8px; font-size: 13px; }
  .pc { grid-template-columns: 1fr; }
  .answer { padding: 15px 16px; }
  .answer p { font-size: 15.5px; }
  .btn { display: flex; width: 100%; padding: 14px 20px; }
  .cta { padding: 20px 16px; }
  .hero { padding: 20px 18px; }
  .hero-art { width: 150px; height: 150px; opacity: .3; right: -34px; }
  .page-mark { width: 100px; height: 100px; opacity: .05; right: -6px; }
  .facts { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
