/* ============================================================
   HOW好HOW好用 活動登錄網站 — Shared chrome styles
   桌面網站 1440 × auto / mobile-responsive down to 360
   ============================================================ */
@import url("colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink-ink);
  /* Lavender page wash + diagonal stripes (figma's diagonal cuts) */
  background: var(--lavender-bg);
  min-height: 100vh;
}

/* ============================================================
   Diagonal stripe background — recreates the figma cut shapes
   ============================================================ */
html { background: #c9cee5; }
body { background: #c9cee5; position: relative; overflow-x: hidden; }
.page-bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  background: #c9cee5;
  pointer-events: none;
}
/* Purple bg image with built-in diagonal cut — anchored to bottom of .page-bg,
   so the cut lines up with the bottom of HOWHOW / white panel */
.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #c9cee5;
}
/* Bottom diagonal cut — lavender slices away to reveal white at the very bottom */
/* .page-bg::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 220px;
  background: #ffffff;
  clip-path: polygon(0 100%, 100% 100%, 100% 55%, 0 100%);
  display: block;
} */

/* ============================================================
   Page wrapper — 1440-wide canvas centered
   ============================================================ */
.page {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 32px 0;
  min-height: 100vh;
}

/* ============================================================
   Mobile (≤ 1024px) — vertical stack
   ============================================================ */
@media (max-width: 1024px) {
  .page {
    width: 100%;
    padding: 12px 16px 0;
  }
}

/* ============================================================
   Top bar — master logo (right) + wordmark (left) + tabs + speech bubble
   ============================================================ */
.topbar {
  position: relative;
  display: flex; align-items: flex-start;
  padding: 0 0 18px;
  margin-bottom: 0;
}

.wordmark-block {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.wordmark-block img {
  height: 100px; width: auto; display: block;
}

.nav-tabs {
  display: flex; gap: 14px;
  margin-left: 40px;
  margin-top: 38px;
  flex: 1;
}
.nav-tabs a {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 900;
  font-size: 18px; letter-spacing: .04em;
  padding: 12px 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--magenta-600);
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(30,30,30,.06);
  transition: all .15s var(--ease-bouncy);
  border: none; cursor: pointer;
}
.nav-tabs a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(196,93,159,.18);
}
.nav-tabs a.active {
  background: var(--purple-700);
  color: #fff;
  box-shadow: 0 4px 10px rgba(125,78,124,.30);
}
.nav-tabs a.tab-home {
  background: var(--magenta-600);
  color: #fff;
}
.nav-tabs a.tab-home:hover { background: var(--magenta-700); }

.master-logo {
  flex-shrink: 0;
  margin-top: 14px;
}
.master-logo img { height: 44px; display: block; }

/* Speech bubble — top-right floating period info */
/* .period-bubble {
  position: absolute;
  top: 14px; right: -8px;
  width: 130px; height: 130px;
  background: var(--magenta-600);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; line-height: 1.3;
  text-align: center;
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  transform: rotate(-4deg);
  z-index: 4;
  letter-spacing: .02em;
  box-shadow: 0 8px 24px rgba(125,78,124,.25);
}
.period-bubble::after {
  content: ""; position: absolute;
  right: -8px; bottom: 8px;
  width: 22px; height: 22px;
  background: var(--magenta-600);
  border-radius: 8px 8px 14px 14px;
  transform: rotate(40deg) skew(-10deg, -10deg);
}
.period-bubble small {
  display: block; font-size: 12px; opacity: .9;
  font-weight: 700; margin-bottom: 2px;
}
.period-bubble b { font-size: 22px; font-weight: 900; display: block; line-height: 1.1; } */

/* ============================================================
   White rounded panel — main content card
   ============================================================ */
.panel {
  background: #fff;
  border-radius: 36px 36px 0 0;
  padding: 32px 56px 48px;
  position: relative;
  margin-top: 0;
}
.panel.full {
  border-radius: 36px;
  padding: 36px 56px;
  margin-bottom: 32px;
  box-shadow: 0 12px 36px rgba(125,78,124,.10);
}

/* ============================================================
   Sticker buttons — magenta/purple capsule with offset shadow
   ============================================================ */
.btn-sticker {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .06em;
  padding: 14px 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--magenta-600);
  color: #fff;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--purple-700);
  transition: transform .12s var(--ease-bouncy), box-shadow .12s;
}
.btn-sticker:hover {
  transform: translate(-1px,-1px);
  box-shadow: 5px 5px 0 var(--purple-700);
}
.btn-sticker:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--purple-700);
}
.btn-sticker.purple {
  background: var(--purple-700);
  box-shadow: 4px 4px 0 var(--magenta-800);
}
.btn-sticker.purple:hover { box-shadow: 5px 5px 0 var(--magenta-800); }
.btn-sticker.purple:active { box-shadow: 2px 2px 0 var(--magenta-800); }
.btn-sticker.green {
  background: #2e8b3f;
  box-shadow: 4px 4px 0 #1a5e26;
}
.btn-sticker.gray {
  background: #999;
  box-shadow: 4px 4px 0 #5a5a5a;
  color: #fff;
}

/* ============================================================
   Section heading: 享HOW康 / 拿HOW券 / 抽HOW運
   ============================================================ */
.section-head {
  display: flex; align-items: center; gap: 4px;
  margin: 28px 0 14px;
  font-family: var(--font-sans);
}
.section-head .pre {
  font-size: 28px; font-weight: 900;
  color: var(--ink-text);
}
.section-head .circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  background: var(--magenta-600); color: #fff;
  border-radius: 999px;
  font-size: 24px; font-weight: 900;
  margin: 0 4px;
}
.section-head .how {
  font-size: 38px; font-weight: 900;
  color: var(--magenta-600);
  -webkit-text-stroke: 1px var(--magenta-600);
  letter-spacing: -.02em;
  margin-right: 4px;
  font-family: "GenSenMaruGothicTW", sans-serif;
}
.section-head .tail {
  font-size: 28px; font-weight: 900;
  color: var(--magenta-600);
}
.section-head .limit {
  margin-left: 12px;
  font-size: 15px; font-weight: 700;
  color: var(--ink-text);
}

/* Magenta filled pill tag — section pre-label like 活動對象, 活動辦法 */
.pill-tag {
  display: inline-block;
  background: var(--magenta-100);
  color: var(--magenta-700);
  border-radius: 999px;
  padding: 6px 18px;
  font-weight: 900; font-size: 17px;
  margin-bottom: 10px;
}

/* ============================================================
   Bullets — magenta dot
   ============================================================ */
.bullets { padding-left: 0; list-style: none; margin: 0; }
.bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-ink);
  margin-bottom: 10px;
  font-weight: 700;
}
.bullets li::before {
  content: ""; position: absolute;
  left: 4px; top: 9px;
  width: 8px; height: 8px;
  background: var(--magenta-600);
  border-radius: 999px;
}

/* Numbered magenta-circle bullets (1 2 3 inside a magenta disc) */
.num-bullets { padding-left: 0; list-style: none; margin: 8px 0; }
.num-bullets li {
  position: relative;
  padding-left: 36px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-ink);
  margin-bottom: 8px;
  font-weight: 700;
  counter-increment: nb;
}
.num-bullets {
  counter-reset: nb;
}
.num-bullets li::before {
  content: counter(nb);
  position: absolute;
  left: 4px; top: 2px;
  width: 22px; height: 22px;
  background: var(--magenta-600);
  color: #fff;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
}

/* ============================================================
   Form
   ============================================================ */
input.account, input.captcha {
  font-family: var(--font-sans);
  font-size: 18px;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1.5px solid #c8cfcf;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-weight: 700;
  color: var(--ink-ink);
}
input.account:focus, input.captcha:focus {
  border-color: var(--magenta-600);
  box-shadow: 0 0 0 4px var(--magenta-100);
}
input::placeholder { color: #b0b0b0; font-weight: 400; }

/* ============================================================
   Footer
   ============================================================ */
.footer-howhow {
  position: absolute;
  bottom: 0; right: 32px;
  pointer-events: none;
  z-index: 2;
}
.footer-howhow img { height: 240px; display: block; }
.footer-howhow .sig {
  position: absolute;
  bottom: 14px; right: 24px;
  text-align: center;
  font-family: var(--font-sans);
}
.footer-howhow .sig .lbl {
  font-size: 10px; color: var(--ink-ink); letter-spacing: .04em;
  display: block; margin-bottom: 2px;
}
.footer-howhow .sig .name {
  font-size: 11px; color: var(--ink-ink); font-weight: 700;
  display: block;
}
.footer-howhow .sig .signature {
  font-size: 28px; font-weight: 900; color: var(--ink-ink);
  font-family: var(--font-sans);
  margin-top: -2px;
}
.footer-howhow .sig .signature sup {
  font-size: 14px; color: var(--magenta-600);
}

/* ============================================================
   Subpage chrome — 子頁共用：頂部導覽列 / period-bubble / 手機背景
   原本重複於 detail / information / notice / personal / success，集中於此一份。
   ============================================================ */
.subpage-topbar { display:flex; align-items:flex-start; padding:8px 0 16px; position:relative; }
.subpage-topbar .wordmark-mini { flex: 0 1 auto; min-width: 0; width: clamp(200px, 26vw, 360px); }
.subpage-topbar .wordmark-mini img { width: 100%; height: auto; display: block; }
.subpage-topbar .nav-tabs {
  margin-left: clamp(14px, 3vw, 56px); margin-top: 6px;
  flex: 0 1 auto; display: flex; gap: clamp(6px, 1vw, 14px); flex-wrap: nowrap;
  align-items: flex-end;
}
.subpage-topbar .nav-tabs a {
  display: inline-flex; align-items: center;
  text-decoration: none;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: transform .15s ease;
}
.subpage-topbar .nav-tabs a:hover { transform: translateY(-2px); }
.subpage-topbar .nav-tabs a img { height: clamp(38px, 4.1vw, 56px); width: auto; display: block; }
.subpage-topbar .nav-tabs a img[src*="-active.png"] { height: clamp(48px, 5.3vw, 72px); }
.subpage-topbar .nav-tabs a img[src*="nav-home.png"] { height: clamp(40px, 4.4vw, 60px); }
.subpage-topbar .master-logo { margin-top: 12px; margin-left: auto; flex: 0 0 auto; }
.subpage-topbar .master-logo img { height: clamp(30px, 3.4vw, 48px); width: auto; display: block; }
.page > .period-bubble {
  position: absolute;
  top: 96px; right: 14px;
  width: 150px; height: auto;
  z-index: 20;
  pointer-events: none;
}

@media (max-width: 1024px) {
  /* 手機改用直式背景圖 */
  .page-bg::before {
    background-image: url("../img/page-bg-purple-mobile.png") !important;
    background-size: 100% auto !important;
    background-position: center top !important;
  }
  .subpage-topbar {
    flex-wrap: wrap; padding: 8px 0 12px; gap: 0;
    position: relative; display: block;
  }
  .subpage-topbar .master-logo {
    position: absolute; top: 0px; right: -3px; margin: 0; text-align: right;
  }
  .subpage-topbar .master-logo img { height: 30px; }
  .subpage-topbar .wordmark-mini {
    display: block; width: calc(100% - 150px); max-width: 420px;
  }
  .subpage-topbar .wordmark-mini img { height: auto; width: 100%; }
  .subpage-topbar .nav-tabs {
    margin: 16px 0 0 0;
    width: 100%;
    gap: 2vw;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-end;
  }
  .subpage-topbar .nav-tabs a {
    flex: 1 1 0; min-width: 0;
    display: flex; justify-content: center;
  }
  .subpage-topbar .nav-tabs a img { height: auto !important; width: 100% !important; max-width: 100% !important; display: block; }
  .subpage-topbar .nav-tabs a img[src*="-active.png"] { height: auto !important; width: 100% !important; max-width: 100% !important; margin-top: -5px; }
  .subpage-topbar .nav-tabs a img[src*="nav-home.png"] { height: auto !important; width: auto !important; max-width: 100% !important; }
  .page > .period-bubble {
    position: absolute; top: 129px; right: 10px; width: 72px;
    z-index: 25;
  }
}
