/* 沃荷返現官網(warhol.com.tw)。色值與 LIFF design tokens 同一組藍(--wh-primary #2563eb);
   LINE 綠只給「加入 LINE 好友」這個主要行動。中文字一律用系統字型(不載網路字型,首屏快)。 */
:root {
  --ink: #16213a;
  --text: #3a4560;
  --muted: #66708a;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --blue-wash: #eaf0ff;
  --rule: #d9e0ec;
  --page: #f4f6fb;
  --paper: #ffffff;
  --line: #06c755;
  --line-hover: #05a948;
  --receipt-ink: #2b3245;
  --radius: 10px;
  --font: 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', 'Heiti TC', system-ui, sans-serif;
  --font-receipt: ui-monospace, 'SF Mono', Menlo, Consolas, 'Noto Sans Mono CJK TC', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

a {
  color: var(--blue-deep);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip:focus {
  left: 1rem;
}

/* ── header ─────────────────────────────── */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.75rem;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  margin-right: auto;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.site-nav a[aria-current='page'],
.site-nav a:hover {
  color: var(--blue-deep);
}

/* ── buttons ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-line {
  background: var(--line);
  color: #fff;
}

.btn-line:hover {
  background: var(--line-hover);
  color: #fff;
}

.btn-small {
  min-height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.link-quiet {
  color: var(--text);
  font-size: 0.95rem;
}

/* ── hero:收據是全站唯一的視覺重點 ───────── */
.hero {
  background: #eaf0fc;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4.5rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 7.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 1.25rem;
}

/* 標題分兩段,換行落在逗號後,不會把「團號」拆開 */
.hero h1 span {
  display: inline-block;
}

.hero-sub {
  max-width: 34em;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.receipt {
  margin: 0;
  justify-self: center;
  width: min(100%, 22rem);
}

.receipt-paper {
  --tooth: 9px;
  position: relative;
  background: #fffefa;
  color: var(--receipt-ink);
  font-family: var(--font-receipt);
  font-size: 0.875rem;
  line-height: 1.6;
  padding: 1.5rem 1.5rem 2rem;
  transform: rotate(-2deg);
  box-shadow:
    0 1px 0 var(--rule),
    0 18px 40px -18px rgb(22 33 58 / 35%);
  /* 下緣撕紙鋸齒 */
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
}

.receipt-head {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.2em;
}

.receipt-meta {
  margin: 0.25rem 0 1rem;
  text-align: center;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8rem;
}

.receipt table {
  width: 100%;
  border-collapse: collapse;
}

.receipt td {
  padding: 0.2rem 0;
  vertical-align: top;
}

.receipt td:first-child {
  font-family: var(--font);
}

.receipt td:last-child {
  text-align: right;
  white-space: nowrap;
}

.receipt tfoot td {
  border-top: 1px dashed #9aa3b5;
  padding-top: 0.5rem;
  font-weight: 700;
}

.receipt-rebate {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
}

.receipt-rebate p {
  margin: 0;
  font-family: var(--font);
}

.receipt-rebate .receipt-rebate-amount {
  font-family: var(--font-receipt);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.receipt-rebate .receipt-rebate-note {
  font-size: 0.8rem;
  opacity: 0.9;
}

.receipt figcaption {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ── bands ──────────────────────────────── */
.band {
  padding: 3.5rem 0;
}

.band-plain {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.band h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.section-sub {
  margin: 0 0 1.5rem;
}

.band-more {
  margin: 1.5rem 0 0;
}

/* 五個步驟:真的是先後順序,所以用編號 */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  border-top: 3px solid var(--blue);
  padding-top: 0.9rem;
}

.steps li::before {
  content: counter(step);
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.steps h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 免稅店清單:一列一家,不做卡片牆 */
.store-list,
.prose .store-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.store-list li {
  border-bottom: 1px solid var(--rule);
}

.store-list a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 1rem 0.25rem;
  text-decoration: none;
}

.store-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.store-area {
  color: var(--muted);
  font-size: 0.95rem;
}

.store-list a:hover .store-name {
  color: var(--blue-deep);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
}

/* ── 文章 ───────────────────────────────── */
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1rem 1rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.crumbs li + li::before {
  content: '/';
  margin-right: 0.35rem;
  color: var(--rule);
}

.crumbs a {
  color: var(--muted);
}

.prose {
  max-width: 44rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.prose h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.4rem);
  font-weight: 800;
  margin: 0.5rem 0 1rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 0.75rem;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.4rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink);
}

.aside-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.branches dt {
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.75rem;
}

.branches dd {
  margin: 0.15rem 0 0;
}

.example {
  background: var(--paper);
  border-left: 4px solid var(--blue);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.example p {
  margin: 0.25rem 0;
}

.example-title {
  font-weight: 700;
  color: var(--ink);
}

.example-note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* 使用教學的時間軸 */
.timeline {
  list-style: none;
  counter-reset: tl;
  padding: 0 !important;
  margin: 2rem 0 0;
}

.timeline li {
  counter-increment: tl;
  position: relative;
  padding: 0 0 1.75rem 3.25rem;
  margin: 0 !important;
}

.timeline li::before {
  content: counter(tl);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.timeline li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.03rem;
  top: 2.5rem;
  bottom: 0.3rem;
  width: 2px;
  background: var(--rule);
}

.timeline h2 {
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}

.timeline p {
  margin: 0;
}

.link-list {
  list-style: none;
  padding: 0 !important;
}

.link-list li {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  margin: 0 !important;
}

.link-list span {
  font-size: 0.9rem;
  color: var(--muted);
}

.link-list-large a {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ── FAQ ────────────────────────────────── */
.faq {
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 2rem 1rem 0;
  position: relative;
  font-weight: 700;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 0.85rem;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--blue);
}

.faq details[open] summary::after {
  content: '−';
}

.faq-answer p {
  margin: 0 0 1rem;
}

/* ── CTA ────────────────────────────────── */
.cta {
  background: var(--blue-wash);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin: 3rem 0;
}

.cta-title {
  font-size: 1.3rem;
  margin: 0 0 0.5rem !important;
}

.cta p {
  margin: 0 0 1.25rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

/* ── footer ─────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: #c9d1e3;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2rem;
}

.footer-brand {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-content: start;
}

.copyright {
  margin-top: 2rem;
  color: #8f9ab3;
}

/* 手機底部常駐加好友 */
.dock {
  display: none;
}

/* ── responsive ─────────────────────────── */
@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 4.75rem;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0 1rem;
    padding-top: 0.5rem;
  }

  /* 手機改用底部常駐按鈕,header 不重複放 */
  .header-cta {
    display: none;
  }

  .site-nav {
    order: 3;
    width: 100%;
    gap: 1.25rem;
    padding: 0.25rem 0 0.6rem;
    overflow-x: auto;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .dock {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 96%);
    border-top: 1px solid var(--rule);
    z-index: 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
