/* =========================================================
   攤玩市集 — 溫暖、有玩心的街頭市集風
   品牌色：品牌黑 #20201E／暖米白 #F5F1E8／活動橘 #EA733E
   ========================================================= */

:root {
  --ink: #20201E;
  --paper: #F5F1E8;
  --paper-deep: #ECE5D6;
  --white: #FFFDF8;
  --orange: #EA733E;
  --orange-ink: #A8461A;      /* 米白底上的橘色小字，對比 ≥ 4.5 */
  --muted: #5A574F;
  --line: #20201E;

  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-fun: "Huninn", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;

  --radius: 18px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  /* 淡淡的紙張點點紋理 */
  background-image: radial-gradient(rgba(32, 32, 30, .07) 1px, transparent 1px);
  background-size: 18px 18px;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.3; margin: 0; }
h2, h3 { font-family: var(--font-fun); font-weight: 400; }

p { margin: 0 0 1em; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 820px; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  min-height: 48px;
  padding: 10px 26px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn-lg { min-height: 56px; padding: 12px 34px; font-size: 1.1875rem; }
.btn-sm { min-height: 40px; padding: 6px 18px; font-size: .9375rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-ghost { background: var(--white); }
.btn-line { background: #06C755; color: var(--ink); }
.btn-disabled,
.btn-disabled:hover {
  background: #D9D3C7;
  color: var(--ink);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

/* ---------- sticker label ---------- */
.sticker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 14px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-family: var(--font-fun);
  font-size: .9375rem;
  letter-spacing: .05em;
  transform: rotate(-3deg);
  box-shadow: 3px 3px 0 var(--ink);
}
.sticker-orange { background: var(--orange); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, .94);
  backdrop-filter: blur(6px);
  border-bottom: 2px dashed var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.header-logo img { width: 120px; }
.header-nav { display: none; }
.header-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.header-nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
}
.header-nav a:hover { background: var(--paper-deep); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 36px 0 56px;
  overflow: hidden;
}
.hero::after {
  /* 底部手繪波浪 */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14' viewBox='0 0 40 14'%3E%3Cpath d='M0 7 Q10 0 20 7 T40 7' fill='none' stroke='%2320201E' stroke-width='2.5'/%3E%3C/svg%3E") repeat-x center / 40px 14px;
}
.hero-inner {
  display: grid;
  gap: 8px;
  align-items: center;
}
.hero-text { text-align: center; }
.hero-title img {
  width: min(88%, 460px);
  margin: 0 auto;
}
.hero-tagline {
  margin: 14px 0 4px;
  font-family: var(--font-fun);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.3;
}
.hero-tagline::after {
  content: "";
  display: block;
  width: 5.5em;
  height: 10px;
  margin: 2px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='10' viewBox='0 0 120 10'%3E%3Cpath d='M2 6 C30 1 60 9 118 3' fill='none' stroke='%23EA733E' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero-sub {
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 18px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--white);
  border: 2px dashed var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: .9375rem;
}
.fact-icon { font-size: 1rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.hero-art {
  position: relative;
  order: -1;
  width: min(72%, 300px);
  margin: 0 auto;
}
.hero-art::before {
  /* 橘色太陽背景，呼應 LINE 海報 */
  content: "";
  position: absolute;
  inset: 10% 6% 4% 10%;
  background: var(--orange);
  border-radius: 50%;
  z-index: -1;
}
.hero-art img { position: relative; }
.hero-burst {
  position: absolute;
  top: 4%;
  right: 0;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
  transform: rotate(12deg);
}
.hero-burst-2 { top: auto; bottom: 18%; left: -4%; right: auto; font-size: 1.4rem; color: var(--orange-ink); }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-alt {
  background-color: var(--paper-deep);
  border-top: 2px dashed var(--ink);
  border-bottom: 2px dashed var(--ink);
}
.section-head { text-align: center; margin-bottom: 28px; }
.eyebrow {
  margin: 0 0 4px;
  color: var(--orange-ink);
  font-weight: 900;
  font-size: .8125rem;
  letter-spacing: .25em;
}
.section-head h2 {
  display: inline-block;
  position: relative;
  font-size: clamp(1.75rem, 5vw, 2.375rem);
  padding: 0 .4em;
}
.section-head h2::before,
.section-head h2::after {
  content: "✦";
  position: absolute;
  top: 50%;
  font-size: .5em;
  color: var(--orange);
  transform: translateY(-50%);
}
.section-head h2::before { left: -.6em; }
.section-head h2::after { right: -.6em; }

.lead {
  max-width: 760px;
  margin: 0 auto 36px;
  font-size: 1.0625rem;
  text-align: justify;
}

/* ---------- about: vendors ---------- */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
}
.vendor-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 12px 16px;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.vendor-card:nth-child(odd) { transform: rotate(-1deg); }
.vendor-card:nth-child(even) { transform: rotate(1deg); }
.vendor-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.vendor-label {
  margin-top: 6px;
  padding: 2px 12px;
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-fun);
  font-size: 1rem;
}

.feature {
  display: grid;
  gap: 16px;
  align-items: center;
  padding: 24px 20px;
  background: var(--white);
  border: 2.5px dashed var(--ink);
  border-radius: 28px;
}
.feature-art img { width: min(80%, 340px); margin: 0 auto; }
.feature-text { text-align: center; }
.feature-text h3 { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 8px; }
.feature-text p:last-child { margin-bottom: 0; }

/* ---------- info ---------- */
.info-layout {
  display: grid;
  gap: 24px;
  align-items: center;
}
.info-list {
  margin: 0;
  display: grid;
  gap: 12px;
}
.info-item {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 12px;
  padding: 16px 18px;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.info-item dt {
  font-family: var(--font-fun);
  font-size: 1.0625rem;
  color: var(--orange-ink);
}
.info-item dd { margin: 0; font-weight: 700; }
.info-item .muted { font-weight: 400; font-size: .9375rem; }
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--orange-ink);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-underline-offset: 4px;
}
.map-link::before { content: "📍"; text-decoration: none; display: inline-block; }
.info-art img { width: min(80%, 380px); margin: 0 auto; }

/* ---------- fees ---------- */
.fee-layout {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}
.price-card {
  position: relative;
  padding: 26px 22px 24px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--orange);
  text-align: center;
}
.price-card .sticker { color: var(--ink); align-self: center; }
.price { margin: 4px 0 0; display: flex; flex-direction: column; }
.price-unit { font-weight: 700; letter-spacing: .1em; }
.price-amount {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(2.75rem, 12vw, 3.75rem);
  line-height: 1.1;
  color: var(--orange);
  letter-spacing: .02em;
}
.price-note { margin: 6px 0 20px; font-size: .9375rem; opacity: .9; }
.price-next {
  margin-bottom: 20px;
  padding-top: 18px;
  border-top: 2px dashed rgba(245, 241, 232, .5);
}
.price-next h3 { font-size: 1.125rem; margin-bottom: 10px; }
.price-next-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  margin: 0; padding: 0;
}
.price-next-list li {
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
  border: 1.5px solid var(--paper);
  border-radius: 14px;
}
.price-next-plan { font-weight: 700; letter-spacing: .1em; }
.price-next-amount {
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--orange);
}
.price-next-unit { font-size: .8125rem; opacity: .9; }
.price-next-cond {
  margin-top: 4px;
  font-size: .8125rem;
  font-weight: 700;
}
.price-next-btn { margin-top: 14px; }
.price-included {
  padding-top: 18px;
  border-top: 2px dashed rgba(245, 241, 232, .5);
}
.price-included h3 { font-size: 1.125rem; margin-bottom: 8px; }
.check-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0; padding: 0;
}
.check-list li {
  padding: 4px 12px;
  border: 1.5px solid var(--paper);
  border-radius: 999px;
  font-weight: 700;
  font-size: .9375rem;
}
.check-list li::before { content: "✓ "; color: var(--orange); }

/* ---------- recruit ---------- */
.recruit-layout { display: grid; gap: 20px; }
.recruit-card h3 { margin-bottom: 10px; }
.recruit-card li + li { margin-top: .6em; }
.recruit-list strong { display: block; }

.rule-cards { display: grid; gap: 14px; }
.rule-card {
  padding: 18px 20px;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.rule-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.rule-card ul, .notice ul {
  margin: 0;
  padding-left: 1.2em;
}
.rule-card li::marker, .notice li::marker { color: var(--orange-ink); }
.rule-card strong { color: var(--orange-ink); }

.schedule {
  padding: 22px 20px;
  margin-bottom: 20px;
  background: var(--white);
  border: 2.5px dashed var(--ink);
  border-radius: 24px;
}
.schedule h3, .notice h3 { font-size: 1.25rem; margin-bottom: 14px; text-align: center; }
.timeline {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 4.2em 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0 8px 22px;
}
.timeline li::before {
  /* 小圓點 */
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
}
.timeline li:not(:last-child)::after {
  /* 虛線連接 */
  content: "";
  position: absolute;
  left: 5px; top: calc(50% + 8px);
  height: calc(100% - 16px);
  border-left: 2px dashed var(--ink);
}
.timeline time {
  font-weight: 900;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}
.timeline span { font-weight: 700; }
.timeline small {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  background: var(--orange);
  border-radius: 6px;
  font-size: .8125rem;
  font-weight: 700;
}
.timeline .is-key::before { background: var(--orange); }

.notice {
  padding: 18px 20px;
  background: var(--orange);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.notice h3 { margin-bottom: 6px; }
.notice ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 28px;
  font-weight: 700;
}
.notice li::marker { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq summary {
  position: relative;
  display: block;
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  margin-right: 10px;
  font-family: var(--font-fun);
  color: var(--orange-ink);
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px; top: 50%;
  width: 28px; height: 28px;
  margin-top: -14px;
  display: grid;
  place-items: center;
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-weight: 900;
  line-height: 1;
  transition: transform .2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: -4px; }
.faq-body {
  margin: 0 20px;
  padding: 12px 0 16px;
  border-top: 2px dashed var(--paper-deep);
}
.faq-body p { margin: 0; }
.faq-body p + p { margin-top: .6em; }
.faq-body a { color: var(--orange-ink); font-weight: 700; }

/* ---------- signup ---------- */
.signup-card {
  overflow: hidden;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ink);
}
.signup-banner {
  width: 100%;
  border-bottom: 3px solid var(--ink);
}
.signup-body {
  display: grid;
  gap: 8px;
  align-items: center;
  padding: 28px 22px 8px;
}
.signup-text { text-align: center; }
.signup-text h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); margin-bottom: 12px; }
.signup-text p { color: var(--muted); }
.signup-text .signup-deadline {
  display: inline-block;
  padding: 2px 14px;
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
}
.signup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.signup-text .signup-privacy { margin-top: 12px; font-size: .8125rem; }
.signup-cat { width: min(70%, 280px); margin: 0 auto; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 24px;
}
.footer-inner {
  display: grid;
  gap: 32px;
  align-items: center;
}
.footer-info { text-align: center; }
.footer-logo { width: 200px; margin: 0 auto 20px; }
.site-footer h2 { font-size: 1.5rem; margin-bottom: 14px; }
.contact-list {
  list-style: none;
  margin: 0 0 22px; padding: 0;
  display: grid;
  gap: 10px;
}
.contact-label {
  display: block;
  font-size: .8125rem;
  letter-spacing: .1em;
  color: var(--orange);
}
.contact-list a,
.contact-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--paper);
  text-underline-offset: 4px;
  word-break: break-all;
}
.line-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 26px 22px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--orange);
}
.line-card-qr { display: none; }
.line-card-body { text-align: center; }
.line-card-body p { margin: 0; }
.line-card-title {
  font-family: var(--font-fun);
  font-size: 1.625rem;
  line-height: 1.3;
}
.line-card-title span { color: var(--orange-ink); font-family: var(--font-body); font-weight: 900; }
.line-card-sub { margin-top: 4px; font-weight: 700; }
.line-card-id {
  display: inline-block;
  margin: 12px 0 16px !important;
  padding: 2px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: .03em;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .15s ease;
}
.line-card-id:hover { background: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.line-card .btn-line { display: flex; width: fit-content; margin: 0 auto; white-space: nowrap; }
.line-card-title { white-space: nowrap; }
.copyright {
  margin: 40px 0 0;
  padding-top: 18px;
  border-top: 1px dashed rgba(245, 241, 232, .35);
  text-align: center;
  font-size: .8125rem;
  opacity: .75;
}

/* =========================================================
   平板以上
   ========================================================= */
@media (min-width: 640px) {
  .vendor-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .rule-cards { grid-template-columns: repeat(3, 1fr); }
  .timeline {
    grid-template-columns: repeat(6, 1fr);
    text-align: center;
  }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 28px 4px 0;
  }
  .timeline li::before { left: 50%; top: 0; margin: 0 0 0 -6px; }
  .timeline li:not(:last-child)::after {
    left: calc(50% + 10px); top: 5px;
    width: calc(100% - 20px); height: 0;
    border-left: 0;
    border-top: 2px dashed var(--ink);
  }
  .timeline small { display: block; margin: 4px auto 0; width: fit-content; }
  .timeline span { font-size: .9375rem; }
}

/* =========================================================
   桌機
   ========================================================= */
@media (min-width: 960px) {
  :root { --header-h: 72px; }
  .header-logo img { width: 136px; }
  .header-nav { display: block; }

  .hero { padding: 56px 0 80px; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .hero-text { text-align: left; }
  .hero-title img { margin: 0; width: 500px; }
  .hero-tagline::after { margin-left: 0; }
  .hero-facts, .hero-actions { justify-content: flex-start; }
  .hero-art { order: 0; width: 100%; max-width: 460px; }

  .section { padding: 88px 0; }
  .section-head { margin-bottom: 40px; }

  .feature { grid-template-columns: 1fr 1fr; padding: 32px 48px; }
  .feature-text { text-align: left; }

  .info-layout { grid-template-columns: 1.3fr .7fr; gap: 40px; }

  .recruit-layout { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .fee-layout { grid-template-columns: .9fr 1.1fr; align-items: stretch; }
  .price-card { display: flex; flex-direction: column; justify-content: center; }
  .rule-cards { grid-template-columns: 1fr; }

  .signup-body {
    grid-template-columns: 1.3fr .7fr;
    padding: 24px 48px 0;
  }
  .signup-text { text-align: left; }
  .signup-actions { justify-content: flex-start; }

  .footer-inner { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 48px; }
  .footer-info { text-align: left; }
  .footer-logo { margin-left: 0; }
  .contact-list { grid-template-columns: repeat(2, max-content); gap: 14px 40px; margin-bottom: 0; }
  .line-card { justify-content: flex-start; gap: clamp(18px, 2vw, 28px); padding: 24px clamp(20px, 2vw, 28px); }
  .line-card-qr {
    display: block;
    flex: none;
    width: clamp(140px, 12vw, 168px);
    height: clamp(140px, 12vw, 168px);
    border: 2px solid var(--ink);
    border-radius: 12px;
  }
  .line-card-body { text-align: left; }
  .line-card .btn-line { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
