/* ==========================================================================
   Modern design system — 幸運車牌中心
   White / Black / Gold minimal
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --surface: #FAFAFA;
  --surface-2: #F3F3F3;
  --ink: #111111;
  --ink-soft: #444444;
  --ink-muted: #888888;
  --line: #E6E6E6;
  --line-strong: #CFCFCF;
  --gold: #D9A800;
  --gold-dark: #A88200;
  --gold-soft: #FFF4CC;
  --plate-yellow: #F0C500;
  --whatsapp: #25D366;
  --danger: #C92A2A;
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.14);
  --container: 1200px;
  --font-sans: "Inter", "PingFang HK", "Noto Sans TC", "Microsoft JhengHei",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-plate: "Arial Black", "Helvetica", "PingFang HK", sans-serif;
}

* { box-sizing: border-box; }

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

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-dark); }

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

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.15; }
h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; }

p { margin: 0 0 1em; }

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Header ========== */

.m-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.m-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.m-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.m-logo small {
  font-weight: 500;
  font-size: 10px;
  color: var(--gold-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}

.m-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.m-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.m-nav a:hover { color: var(--ink); }
.m-nav a.active { color: var(--ink); border-bottom-color: var(--gold); }

.m-header__cta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.m-burger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.m-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform .2s;
}

@media (max-width: 900px) {
  .m-header__inner { flex-wrap: wrap; gap: 12px; }
  .m-nav, .m-header__cta {
    display: none;
    flex-basis: 100%;
    order: 3;
  }
  .m-burger { display: block; margin-left: auto; order: 2; }
  .m-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }
  .m-nav.is-open a {
    padding: 12px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .m-nav.is-open a:last-child { border-bottom: 0; }
  .m-header__cta.is-open {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding-bottom: 12px;
  }
  .m-header__cta.is-open .btn { flex: 1; }
}

/* ========== Buttons ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  font-family: inherit;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover { background: #000; color: #fff; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--gold {
  background: var(--gold);
  color: #000;
}
.btn--gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-1px); }
.btn--wa {
  background: var(--whatsapp);
  color: #fff;
}
.btn--wa:hover { background: #1ea952; color: #fff; transform: translateY(-1px); }
.btn--lg { padding: 14px 24px; font-size: 16px; }
.btn--xl { padding: 18px 30px; font-size: 18px; }
.btn--block { width: 100%; }

/* ========== Hero ========== */

.hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1200px 400px at 50% -100px, var(--gold-soft), transparent 70%),
    linear-gradient(180deg, #fff, #fff);
}
.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--gold);
  border-radius: 40px;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.hero__title em {
  font-style: normal;
  color: var(--gold-dark);
  background: linear-gradient(180deg, transparent 62%, var(--gold-soft) 62%);
  padding: 0 4px;
}
.hero__sub {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 32px;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}
.hero__stat {
  padding: 14px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 180px;
}
.hero__stat-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: block;
  color: var(--ink);
}
.hero__stat-label {
  font-size: 13px;
  color: var(--ink-muted);
}

/* ========== Search bar ========== */

.search {
  display: flex;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px;
  max-width: 620px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s;
}
.search:focus-within { box-shadow: 0 0 0 4px var(--gold-soft); }
.search input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 16px;
  padding: 10px 18px;
  background: transparent;
  font-family: inherit;
  color: var(--ink);
  min-width: 0;
}
.search button {
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.search button:hover { background: #000; }

.search--inline {
  border-width: 1px;
  max-width: 100%;
}

/* ========== Section ========== */

.section {
  padding: 64px 0;
}
.section--alt { background: var(--surface); }
.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.section__title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  margin: 0;
}
.section__link {
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.section__link:hover { color: var(--ink); border-color: var(--gold); }

/* ========== Category cards ========== */

.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cats a {
  display: block;
  padding: 40px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  position: relative;
  overflow: hidden;
}
.cats a:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.cats h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.cats p {
  color: var(--ink-muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.cats .more {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dark);
}
@media (max-width: 800px) {
  .cats { grid-template-columns: 1fr; }
}

/* ========== Plate card (grid item) ========== */

.plate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) {
  .plate-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .plate-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .plate-grid { grid-template-columns: 1fr; }
}

.plate-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.plate-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.plate-card--sold { opacity: 0.6; }

/* HK-style plate visual: yellow rear plate */
.hk-plate {
  background: linear-gradient(180deg, #FFDC1E 0%, #F0C500 55%, #D9A800 100%);
  border: 3px solid #000;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-plate);
  font-weight: 900;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: 3px;
  font-size: 28px;
  min-height: 56px;
  min-width: 140px;
  width: 100%;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4);
}
.hk-plate--sm { font-size: 24px; min-height: 48px; padding: 8px 12px; letter-spacing: 2px; }
.hk-plate--lg {
  font-size: clamp(36px, 7vw, 56px);
  min-height: clamp(80px, 14vw, 110px);
  letter-spacing: clamp(3px, 0.8vw, 6px);
  padding: clamp(14px, 3vw, 20px) clamp(16px, 4vw, 28px);
}
.hk-plate--xl {
  font-size: clamp(44px, 11vw, 88px);
  min-height: clamp(100px, 22vw, 170px);
  letter-spacing: clamp(3px, 1vw, 8px);
  padding: clamp(18px, 4vw, 28px) clamp(16px, 5vw, 40px);
  min-width: 0;
  max-width: 100%;
}
.hk-plate--two-line { flex-direction: column; font-size: 22px; letter-spacing: 1.5px; }
.hk-plate--two-line span { display: block; }

@media (max-width: 900px) {
  .detail__visual { padding: 24px; }
}
@media (max-width: 480px) {
  .detail__visual { padding: 16px; }
}

.plate-card__meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.plate-card__price {
  font-weight: 800;
  color: var(--ink);
}
.plate-card__price--neg {
  color: var(--gold-dark);
  font-weight: 600;
}
.plate-card__tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--ink-soft);
}
.plate-card__tag--sold {
  background: var(--danger);
  color: #fff;
}

/* ========== Filter bar ========== */

.filterbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
}
.filterbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.filterbar__row + .filterbar__row { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.filterbar__label {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.chip--gold.is-active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}
select.chip { padding-right: 28px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: right 12px top 14px, right 7px top 14px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.result-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--ink-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ========== Pagination ========== */

.pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.pager a, .pager span {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
  color: var(--ink-soft);
}
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager .is-current {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  font-weight: 700;
}
.pager .is-disabled { opacity: 0.4; pointer-events: none; }

/* ========== Breadcrumbs ========== */

.crumbs {
  padding: 18px 0;
  font-size: 13px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { margin: 0 8px; opacity: 0.5; }
.crumbs .current { color: var(--ink); font-weight: 600; }

/* ========== Detail page ========== */

.detail {
  padding: 48px 0 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
}
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; }
}
.detail__visual {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail h1 {
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 8px;
}
.detail__price {
  font-size: 28px;
  font-weight: 800;
  margin: 8px 0 24px;
  color: var(--gold-dark);
}
.detail__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}
.detail__table th, .detail__table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.detail__table th {
  font-weight: 500;
  color: var(--ink-muted);
  width: 120px;
}
.detail__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* ========== Steps ========== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}
.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--ink-muted); margin: 0; }
@media (max-width: 800px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* ========== CTA banner ========== */

.cta-banner {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 28px;
}
.cta-banner p { color: #ccc; margin: 0; }
.cta-banner__btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ========== Footer ========== */

.m-footer {
  background: #0D1117;
  color: #ccc;
  padding: 56px 0 24px;
  margin-top: 64px;
}
.m-footer a { color: #ccc; }
.m-footer a:hover { color: var(--gold); }
.m-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.m-footer h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.m-footer ul { list-style: none; padding: 0; margin: 0; }
.m-footer ul li { margin-bottom: 8px; font-size: 14px; }
.m-footer__brand p { font-size: 14px; color: #888; max-width: 320px; }
.m-footer__copy {
  border-top: 1px solid #222;
  padding-top: 20px;
  font-size: 12px;
  color: #666;
  text-align: center;
}
@media (max-width: 800px) {
  .m-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ========== Floating WhatsApp ========== */

.fab-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 40;
  transition: transform .15s;
}
.fab-wa:hover { transform: scale(1.08); color: #fff; }
.fab-wa svg { width: 28px; height: 28px; fill: #fff; }

/* ========== Content page (about/guide/etc) ========== */

.content-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.prose {
  max-width: 800px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.8em; }
.prose a { color: var(--gold-dark); border-bottom: 1px solid var(--gold); }
.prose img { border-radius: var(--radius); margin: 1em 0; }

/* ========== Partner list ========== */

.partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.partner {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.partner h4 { margin: 0 0 8px; font-size: 18px; }
.partner p { margin: 0; font-size: 14px; color: var(--ink-muted); }
.partner a { color: var(--gold-dark); }
@media (max-width: 700px) { .partners { grid-template-columns: 1fr; } }

/* ========== Download cards ========== */

.downloads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.download-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.download-card h4 { margin: 0 0 4px; }
.download-card p { margin: 0; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 700px) { .downloads { grid-template-columns: 1fr; } }

/* ========== Contact ========== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contact-box {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.contact-box h3 { margin-top: 0; }
.contact-box .tel {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ========== Utility ========== */

.muted { color: var(--ink-muted); }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-32 { margin-bottom: 32px; }
.hide-mobile { display: initial; }
.show-mobile { display: none; }
@media (max-width: 700px) {
  .hide-mobile { display: none; }
  .show-mobile { display: initial; }
}
