/* Joption 品牌風格：金幣黃 + 螢幕天藍 + 鉛筆靛藍，粗黑描邊的貼紙感。
   規則：顏色一律用下面的變數；Call 永遠紅、Put 永遠綠，不拿來當裝飾。 */
:root {
  --coin: #ffc62e;
  --coin-deep: #f0a30a;
  --sky: #cff3fb;
  --sky-deep: #7fd8ee;
  --indigo: #3a35c4;
  --indigo-deep: #241f86;
  --ink: #17142b;
  --muted: #5c5870;
  --paper: #fffcf5;
  --kraft: #fff1da;
  --line: #e7dfd0;
  --call: #d9321f;
  --put: #0a7f4d;
  --edge: 2.5px solid var(--ink);
  --pop: 4px 4px 0 var(--ink);
  --pop-big: 6px 6px 0 var(--ink);
  --display: "Lilita One", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --hatch: repeating-linear-gradient(115deg, rgba(58, 53, 196, .11) 0 2px, transparent 2px 10px);
  --bar: 60px;
  --side: 290px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar) + 16px); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.8 "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
}
a { color: var(--indigo); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; padding: 8px 12px; }

/* 頂部列 */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  height: var(--bar); padding: 0 16px;
  background: var(--coin); color: var(--ink);
  border-bottom: 3px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--display); font-weight: 900; text-decoration: none; white-space: nowrap; font-size: 17px; letter-spacing: .02em; }
.brand img { flex: none; width: 40px; height: 40px; object-fit: contain; }
.menu-btn { display: none; flex: none; width: 42px; height: 42px; padding: 10px 9px; background: #fff; border: var(--edge); border-radius: 10px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.menu-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.menu-btn span { display: block; height: 3px; margin: 3px 0; background: var(--ink); border-radius: 2px; }

.search { position: relative; margin-left: auto; width: min(340px, 42vw); }
.search input {
  width: 100%; height: 40px; padding: 0 14px;
  border: var(--edge); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; font-size: 15px;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; box-shadow: 3px 3px 0 var(--indigo); }
.results {
  position: absolute; right: 0; top: 48px; width: min(460px, calc(100vw - 32px));
  max-height: 70vh; overflow: auto;
  background: #fff; color: var(--ink); border: var(--edge); border-radius: 12px;
  box-shadow: var(--pop);
}
.results a { display: block; padding: 10px 14px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); line-height: 1.5; }
.results a:last-child { border-bottom: 0; }
.results a:hover, .results a:focus { background: var(--sky); }
.results b { display: block; font-size: 16px; }
.results small { color: var(--muted); font-size: 14px; }
.results mark { background: var(--coin); color: inherit; }
.results p { margin: 0; padding: 14px; color: var(--muted); font-size: 15px; }

/* 版面 */
.layout { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); align-items: start; }
main { min-width: 0; width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px 40px 56px; }

/* 側邊選單 */
.sidebar {
  position: sticky; top: var(--bar);
  height: calc(100vh - var(--bar)); overflow-y: auto;
  padding: 18px 10px 40px;
  background: var(--kraft); border-right: 3px solid var(--ink);
  font-size: 15px; line-height: 1.45;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar ul ul { margin-left: 10px; padding-left: 8px; border-left: 2px dashed #d9c9ab; }
.sidebar a, .sidebar nav span { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.sidebar nav > ul > li > details > summary > span,
.sidebar nav > ul > li > details > summary > a { font-weight: 900; font-size: 16px; color: var(--indigo-deep); }
.sidebar a:hover { background: var(--coin); }
.sidebar a[aria-current], .sidebar nav > ul > li > details > summary > a[aria-current] { background: var(--indigo); color: #fff; font-weight: 700; box-shadow: 2px 2px 0 var(--ink); }
.sidebar details > summary { display: flex; align-items: center; cursor: pointer; list-style: none; border-radius: 8px; }
.sidebar details > summary::-webkit-details-marker { display: none; }
.sidebar details > summary > * { flex: 1; min-width: 0; }
.sidebar details > summary::after {
  content: ""; flex: none; width: 44px; height: 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M4 2l4 4-4 4' fill='none' stroke='%2317142b' stroke-width='2.4'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .15s;
}
.sidebar details[open] > summary::after { transform: rotate(90deg); }

.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(23, 20, 43, .5); }

/* 內文 */
.prose { overflow-wrap: anywhere; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.prose h1, .prose h2, .prose h3, .children h2 { font-family: var(--display); font-weight: 900; letter-spacing: .01em; text-wrap: balance; }
.prose h1 { margin: 0 0 22px; font-size: 36px; line-height: 1.3; color: var(--ink); }
.prose h1 span, .prose h2 { background: linear-gradient(transparent 68%, var(--coin) 68%, var(--coin) 92%, transparent 92%); }
.prose h1 { display: inline; background: linear-gradient(transparent 68%, var(--coin) 68%, var(--coin) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prose h1 + * { margin-top: 26px; }
/* 分享列 */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 22px; }
.share-btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px;
  background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 900; line-height: 1.2; text-decoration: none; cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink); transition: transform .1s, box-shadow .1s;
}
.share-btn:hover { background: var(--coin); }
.share-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.share-btn.line { background: #06c755; color: #fff; }
.share-done { color: var(--indigo); font-size: 15px; font-weight: 700; }
.prose h2 { display: table; margin: 42px 0 14px; font-size: 26px; line-height: 1.35; color: var(--ink); }
.prose h3 { margin: 32px 0 10px; font-size: 21px; line-height: 1.4; color: var(--indigo-deep); }
.prose h4, .prose h5 { margin: 24px 0 8px; font-size: 18px; line-height: 1.4; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 26px; }
.prose li { margin-bottom: 4px; }
.prose li::marker { color: var(--indigo); font-weight: 700; }
.prose hr { margin: 32px 0; border: 0; border-top: 2px dashed var(--line); }
.prose img { display: block; margin: 12px 0 20px; border: 2px solid var(--ink); border-radius: 10px; cursor: zoom-in; background: #fff; }
.prose img.wide, .prose img.fig { width: 100%; } /* 投影片這類橫向大圖跟著版面撐滿；小截圖維持原尺寸 */
.prose a img { cursor: pointer; box-shadow: var(--pop); transition: transform .12s, box-shadow .12s; }
.prose a:hover img { transform: translate(-2px, -2px); box-shadow: var(--pop-big); }
/* 表格：貼紙外框 + 金幣表頭，橫線分列；寬表在框內左右滑，第一欄固定 */
.table-wrap { margin: 4px 4px 22px 0; overflow-x: auto; border: var(--edge); border-radius: 12px; background: #fff; box-shadow: var(--pop); }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 11px 14px; text-align: left; }
.prose th { background: var(--coin); border-bottom: 2.5px solid var(--ink); font-weight: 900; white-space: nowrap; }
.prose td { background: #fff; border-bottom: 1px solid var(--line); overflow-wrap: normal; } /* 2.79% 這種數字不要斷行，太寬就在表格內左右滑 */
.prose tbody tr:nth-child(even) td { background: var(--paper); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover td { background: var(--sky); }
.prose td:first-child { font-weight: 700; }
.prose td:nth-child(2) strong { color: var(--indigo); white-space: nowrap; }
/* 數字表：置中對齊，第一欄跟著固定，合計欄用天藍標出 */
.nums th, .nums td { text-align: center; white-space: nowrap; }
.nums th:first-child, .nums td:first-child { position: sticky; left: 0; z-index: 1; border-right: 2.5px solid var(--ink); }
.total th:last-child { background: var(--indigo); color: #fff; }
.prose .total td:last-child, .prose .total tbody tr:nth-child(even) td:last-child { background: var(--sky); font-weight: 900; }
.prose blockquote { margin: 16px 0; padding: 10px 16px; border: 2px solid var(--ink); border-radius: var(--radius, 10px); background: var(--sky); font-size: 15.5px; }
.prose blockquote p { margin: 0; }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--kraft); font-size: .92em; }
.hl { color: var(--call); }

.cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 8px; align-items: start; }
.cols > p { margin: 0; }
/* 證書牆：窄螢幕兩張一排，大螢幕五張一排 */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0 26px; }
.gallery img { width: 100%; margin: 0 0 6px; }
.gallery p { margin: 0; text-align: center; font-size: 15px; }
/* 圖文並排：大螢幕左右排，窄的時候文字在上、圖在下 */
.split { display: grid; gap: 8px 32px; margin-bottom: 14px; }
.split > * { min-width: 0; }
.lead { font-family: var(--display); font-size: 24px; font-weight: 900; line-height: 1.5; color: var(--indigo-deep); }
.formula { display: inline-block; padding: 8px 16px; border: var(--edge); border-radius: 12px; background: var(--coin); box-shadow: var(--pop); font-weight: 900; }
.prose .trio, .prose .points { margin: 18px 0 22px; }
.cards.trio, .cards.points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.points.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trio .card:hover, .points .card:hover { transform: none; box-shadow: var(--pop); }
.prose .trio .card h3, .prose .points .card h3 { margin: 0; color: inherit; }
.prose .trio .card h3 { font-size: 24px; }
.prose .trio .card p, .prose .points .card p { margin: 6px 0 0; color: inherit; }
.trio .card:nth-child(1) { background: var(--coin); }
.trio .card:nth-child(2) { background: var(--sky-deep); }
.trio .card:nth-child(3) { background: var(--indigo); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.btn-row p { margin: 0; }
a.btn {
  display: inline-block; padding: 9px 18px; border: var(--edge); border-radius: 12px;
  background: var(--coin); color: var(--ink); font-weight: 900; font-size: 16px; line-height: 1.5; text-decoration: none;
  box-shadow: var(--pop); transition: transform .1s, box-shadow .1s;
}
a.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
a.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.video { position: relative; aspect-ratio: 16 / 9; margin: 12px 0 20px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 2px solid var(--ink); border-radius: 10px; }
iframe.tool, iframe.embed { display: block; width: 100%; min-height: 720px; margin: 12px 0 20px; border: 2px solid var(--ink); border-radius: 10px; }
iframe.embed { height: 1157px; }
.report-box { height: 960px; margin: 12px 0 20px; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: #fff; }
.report-box iframe { display: block; width: 100%; height: 100%; border: 0; transform-origin: 0 0; }
.tool-box { position: relative; margin: 12px 0 20px; }
.tool-box::before { content: "工具載入中，第一次開啟可能要等幾秒…"; position: absolute; top: 40px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 15px; }
.tool-box iframe.tool { position: relative; margin: 0; background: transparent; }
.tool-box.plain iframe.tool { border: 0; border-radius: 0; }
.tool-box.ready::before { content: none; }
.tool-box.ready iframe.tool { min-height: 0; }

/* 卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  display: block; padding: 16px 18px; border: var(--edge); border-radius: 14px;
  color: var(--ink); text-decoration: none; background: #fff; box-shadow: var(--pop);
  transition: transform .12s, box-shadow .12s;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: var(--pop-big); }
.card:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.card h3 { margin: 0; font-size: 17px; font-weight: 900; line-height: 1.45; }
.card p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.children { margin-top: 36px; }
.children h2 { margin: 0 0 16px; font-size: 21px; }

/* 上下頁 */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 2px dashed var(--line); }
.pager a { padding: 10px 14px; border: var(--edge); border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 16px; line-height: 1.45; box-shadow: 3px 3px 0 var(--ink); transition: transform .1s, box-shadow .1s, background .1s; }
.pager a:hover { background: var(--coin); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.pager a:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.pager small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.pager .next { text-align: right; }

/* 首頁主視覺：底邊就是一張雙賣損益圖 */
.hero { position: relative; overflow: hidden; background: var(--hatch), var(--sky); }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, 460px); align-items: center; gap: 24px;
  max-width: 1080px; margin: 0 auto; padding: 36px 32px 96px;
}
.hero-kicker { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: var(--indigo-deep); letter-spacing: .06em; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(32px, 5vw, 58px); font-weight: 900; line-height: 1.22; word-break: keep-all; }
.hero h1 b { display: block; font-weight: 400; font-size: 1.28em; line-height: 1.1; color: var(--indigo); text-shadow: 3px 3px 0 var(--coin); letter-spacing: .02em; }
.hero-slogan {
  display: inline-block; margin: 18px 0 0; padding: 7px 18px; border: var(--edge); border-radius: 999px;
  background: var(--ink); color: var(--coin); font-weight: 900; font-size: 19px; transform: rotate(-1.5deg);
}
.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: 6% 6% 6% 6%; border-radius: 50%;
  background: var(--coin); border: 3px solid var(--ink); box-shadow: var(--pop-big);
}
.hero-art img { position: relative; display: block; width: 100%; height: auto; }
/* 大圖動畫：時鐘一直走、金幣往上冒、+$ 跳出來、金幣閃光 */
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hero-fx g { transform-box: view-box; }
.fx-hand { transform-origin: var(--cx) var(--cy); animation: fx-spin linear infinite; fill: #191b30; }
.fx-hand.hour { animation-duration: 180s; animation-delay: -150s; }
.fx-hand.minute { animation-duration: 15s; animation-delay: -2.5s; }
.fx-hand.second { animation-duration: 3s; stroke: #d62828; stroke-width: 4; stroke-linecap: round; fill: #d62828; }
.fx-hub { fill: #191b30; }
@keyframes fx-spin { to { transform: rotate(360deg); } }
.fx-coin, .fx-plus, .fx-spark { opacity: 0; transform: translate(var(--x), var(--y)); }
.fx-coin { animation: fx-rise 4s ease-out infinite; }
.fx-coin .face { transform-box: fill-box; transform-origin: center; animation: fx-flip 1.6s ease-in-out infinite; }
@keyframes fx-rise {
  0% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.8); }
  12% { opacity: 1; }
  55% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) - 190px)) scale(1.2); }
}
@keyframes fx-flip { 50% { transform: scaleX(.3); } }
.fx-plus { animation: fx-plus 4s ease-out infinite; }
.fx-plus text {
  font-family: var(--display); font-size: 72px; fill: #e53935;
  stroke: #fff; stroke-width: 10px; stroke-linejoin: round; paint-order: stroke;
}
@keyframes fx-plus {
  0% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.4); }
  10% { opacity: 1; transform: translate(var(--x), calc(var(--y) - 20px)) scale(1.15); }
  20% { transform: translate(var(--x), calc(var(--y) - 30px)) scale(1); }
  45% { opacity: 1; }
  60%, 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) - 110px)) scale(1); }
}
.fx-spark { fill: #fffbe8; animation: fx-spark 4.2s ease-in-out infinite; }
@keyframes fx-spark {
  0%, 70%, 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0) rotate(0deg); }
  80% { opacity: 1; transform: translate(var(--x), var(--y)) scale(1.3) rotate(45deg); }
  90% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0) rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .fx-hand { animation-play-state: paused; }
  .fx-coin, .fx-plus, .fx-spark { display: none; }
}
.payoff { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 92px; display: block; }
.payoff-fill { fill: var(--paper); }
.payoff-line { fill: none; stroke: var(--ink); stroke-width: 4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.payoff-tag {
  position: absolute; z-index: 2; padding: 1px 12px; border: 2px solid var(--ink); border-radius: 999px;
  font-family: var(--display); font-size: 15px; line-height: 1.5; color: #fff; white-space: nowrap;
}
.payoff-tag.put { left: 15%; bottom: 44px; background: var(--put); transform: rotate(-6deg); }
.payoff-tag.call { right: 15%; bottom: 44px; background: var(--call); transform: rotate(6deg); }
.payoff-tag.theta { left: 50%; bottom: 72px; background: var(--coin); color: var(--ink); transform: translateX(-50%); }

.home .layout { display: block; }
.home .sidebar {
  position: fixed; top: var(--bar); left: 0; bottom: 0; z-index: 25;
  width: min(320px, 86vw); height: auto; transform: translateX(-100%); transition: transform .2s;
}
.home.nav-open .sidebar { transform: none; }
.home .menu-btn { display: block; }
.home main { max-width: 1020px; margin: 0 auto; padding-top: 28px; }
.home-body .prose { max-width: 760px; margin: 0 auto 36px; }
.home-body .prose hr { display: none; }
.home-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-cards .card { display: flex; align-items: center; gap: 14px; padding: 18px; }
.home-cards .card h3 { font-size: 19px; color: inherit; }
.card-icon {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px;
  border: var(--edge); border-radius: 50%; background: #fff; color: var(--ink);
  transition: transform .15s;
}
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.home-cards .card:hover .card-icon { transform: rotate(-10deg) scale(1.08); }
/* 金幣、天藍、靛藍斜著排，新增卡片也會自動輪替 */
.home-cards .card:nth-child(9n+1), .home-cards .card:nth-child(9n+5), .home-cards .card:nth-child(9n+9) { background: var(--coin); }
.home-cards .card:nth-child(9n+2), .home-cards .card:nth-child(9n+6), .home-cards .card:nth-child(9n+7) { background: var(--sky-deep); }
.home-cards .card:nth-child(9n+3), .home-cards .card:nth-child(9n+4), .home-cards .card:nth-child(9n+8) { background: var(--indigo); color: #fff; }

/* 頁尾 */
.foot { padding: 28px 20px; background: var(--indigo-deep); border-top: 3px solid var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.foot-links a { color: var(--coin); font-size: 15px; font-weight: 700; }
.foot-links a:hover { color: #fff; }

/* 圖片放大 */
#zoom { max-width: 96vw; max-height: 96vh; padding: 0; border: 0; border-radius: 8px; background: #fff; cursor: zoom-out; }
#zoom::backdrop { background: rgba(23, 20, 43, .88); }
#zoom img { display: block; max-width: 96vw; max-height: 96vh; }

@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1240px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .split.flip > :first-child { order: 2; }
}

@media (max-width: 960px) {
  :root { --bar: 54px; }
  .layout { display: block; }
  .menu-btn { display: block; }
  .sidebar {
    position: fixed; top: var(--bar); left: 0; bottom: 0; z-index: 25;
    width: min(320px, 86vw); height: auto; transform: translateX(-100%); transition: transform .2s;
    overscroll-behavior: contain; padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }
  .nav-open .sidebar { transform: none; }
  body.nav-open { overflow: hidden; }
  .sidebar a, .sidebar nav span { padding: 11px 10px; }
  .search input { font-size: 16px; } /* 小於 16px 時 iPhone 點輸入框會自動放大畫面 */
  .foot-links a { padding: 6px 0; }
  .foot { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  #zoom { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border-radius: 0; overflow: auto; background: #000; touch-action: pan-x pan-y pinch-zoom; }
  #zoom img { max-width: none; max-height: none; }
  main { padding: 22px 16px 44px; }
  .prose h1 { font-size: 29px; }
  .prose h2 { font-size: 23px; }
  .brand span { display: none; }
  .search { width: auto; flex: 1; }
  .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-cards .card:nth-child(odd):last-child { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .cols { grid-auto-flow: row; }
  .cards.trio { grid-template-columns: minmax(0, 1fr); }
  .cards.points, .cards.points.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lead { font-size: 21px; }
  .prose th, .prose td { padding: 8px 8px; font-size: 14px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 14px; padding: 24px 16px 84px; }
  .hero-kicker { font-size: 16px; }
  .hero-slogan { font-size: 17px; }
  .hero-art { width: min(72vw, 300px); }
  .payoff { height: 66px; }
  .payoff-tag { font-size: 13px; }
  .payoff-tag.put { left: 5%; bottom: 26px; }
  .payoff-tag.call { right: 5%; bottom: 26px; }
  .payoff-tag.theta { bottom: 50px; }
  .home-cards { gap: 14px; }
  .home-cards .card { flex-direction: column; gap: 10px; padding: 16px 8px; text-align: center; }
  .home-cards .card h3 { font-size: 16px; }
  .card-icon { width: 46px; height: 46px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* 首頁訪客人數 */
.visits { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 0 auto 32px; }
.visits[hidden] { display: none; }
.visit { min-width: 150px; padding: 10px 18px; border: var(--edge); border-radius: 14px; box-shadow: var(--pop); background: #fff; text-align: center; }
.visit:nth-child(1) { background: var(--coin); }
.visit:nth-child(2) { background: var(--sky); }
.visit b { display: block; font-family: var(--display); font-size: 30px; font-weight: 400; line-height: 1.15; color: var(--ink); }
.visit span { font-size: 14px; font-weight: 700; color: var(--muted); }
.visit:nth-child(2) span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--put); vertical-align: 1px; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .visit:nth-child(2) span::before { animation: none; } }
@media (max-width: 640px) {
  .visits { gap: 10px; }
  .visit { min-width: 0; flex: 1 1 0; padding: 8px 6px; }
  .visit b { font-size: 24px; }
  .visit span { font-size: 13px; }
}
