/* 首頁與定價頁的區塊樣式（配合 chrome.css）。貼紙的位置與旋轉全用 class，不用 inline style（CSP 禁止）。 */

/* ---------- 英雄區 ---------- */
.sx-hero { background-color: var(--sec-bg); background-image: radial-gradient(rgba(255, 255, 255, .17) 2px, transparent 2.6px), radial-gradient(circle at 82% 18%, #8d7ff8 0, rgba(141, 127, 248, 0) 46%); background-size: 30px 30px, auto; padding-block: clamp(40px, 6vw, 84px) clamp(84px, 10vw, 140px); }
.hx-in { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
.hx-text h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.28; margin-bottom: 20px; }
.hx-text .sx-lead { max-width: 32em; margin-bottom: 28px; color: #f3f0ff; }
.hx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.hx-art { position: relative; width: 100%; max-width: 540px; margin-inline: auto; aspect-ratio: 1 / 1.02; }
.hx-blob { position: absolute; inset: 7% 3% 8% 6%; border-radius: 47% 53% 44% 56% / 52% 46% 54% 48%; background: #fff1bd; box-shadow: 0 0 0 12px rgba(255, 255, 255, .2); }
.hx-phone { position: absolute; z-index: 1; right: 9%; top: -2%; width: 44%; transform: rotate(5deg); }
.hx-tuntun { position: absolute; z-index: 3; left: -2%; bottom: 0; width: 62%; height: auto; filter: drop-shadow(0 12px 12px rgba(30, 20, 100, .28)); }
.hx-st-lock { --r: -12deg; --d: -1s; left: 4%; top: 6%; width: 15%; }
.hx-st-star { --r: 10deg; --d: -3s; right: 0; top: 4%; width: 16%; }
.hx-st-heart { --r: 8deg; --d: -2s; right: 2%; bottom: 14%; width: 15%; }
.hx-st-photo { --r: -9deg; --d: -4s; left: 0; top: 38%; width: 17%; }
.hx-sp1 { --s: 40px; --d: -0.4s; left: 18%; top: 2%; }
.hx-sp2 { --s: 26px; --c: #fff; --d: -1.6s; right: 34%; bottom: 2%; }
.hx-sp3 { --s: 32px; --c: #ff9fc3; --d: -2.4s; right: 0; top: 46%; }
.px-hero .hx-art { max-width: 420px; aspect-ratio: 1 / .92; }
.px-tuntun { position: absolute; z-index: 2; left: 14%; bottom: 0; width: 66%; height: auto; filter: drop-shadow(0 12px 12px rgba(30, 20, 100, .28)); }
.px-st-trophy { --r: -9deg; --d: -2s; left: 0; top: 10%; width: 22%; }
.px-hero .hx-st-star { top: 0; right: 4%; width: 22%; }

/* ---------- 四大功能 ---------- */
.fcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.fcard { display: flex; flex-direction: column; overflow: hidden; border-radius: 34px; background: var(--tint); border: 3px solid #fff; box-shadow: 0 14px 30px rgba(80, 60, 190, .1); transition: transform .25s ease, box-shadow .25s ease; }
.fcard:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 22px 40px rgba(80, 60, 190, .16); }
.fcard-mint { --tint: var(--sx-mint); --deep: var(--sx-mint-d); --strong: var(--sx-mint-s); }
.fcard-coral { --tint: var(--sx-coral); --deep: var(--sx-coral-d); --strong: var(--sx-coral-s); }
.fcard-sky { --tint: #ddf3fb; --deep: var(--sx-sky-d); --strong: var(--sx-sky-s); }
.fcard-yellow { --tint: var(--sx-yellow); --deep: var(--sx-yellow-d); --strong: var(--sx-yellow-s); }
.fc-text { padding: 32px 32px 0; }
.fc-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 800; color: var(--deep); }
.fc-icon { width: 46px; height: auto; }
.fcard h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.4; margin-bottom: 10px; }
.fc-desc { color: var(--sx-ink); margin-bottom: 14px; }
.fc-list { display: grid; gap: 8px; padding: 0; margin: 0 0 8px; list-style: none; }
.fc-list li { position: relative; padding-left: 32px; font-weight: 600; line-height: 1.55; }
.fc-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--strong, var(--sx-purple)); }
.fc-list li::after { content: ""; position: absolute; left: 7px; top: calc(.2em + 4px); width: 5px; height: 10px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.fcard-yellow .fc-list li::after { border-color: #5a3b00; }
.fc-note { margin: 10px 0 0; font-size: 14px; color: var(--deep); font-weight: 700; }
.fc-vis { position: relative; height: 330px; margin-top: auto; overflow: hidden; }
.fv-phone { position: absolute; z-index: 1; left: 50%; top: 40px; width: 200px; margin-left: -20px; transform: rotate(4deg); border-radius: 30px 30px 0 0; border-bottom: 0; }
.fv-tuntun { position: absolute; z-index: 3; left: 6px; bottom: -4px; width: 188px; height: auto; filter: drop-shadow(0 10px 10px rgba(30, 20, 100, .25)); }
.fv-st1 { --r: -10deg; --d: -1s; right: 7%; top: 14px; width: 74px; }
.fv-st2 { --r: 9deg; --d: -3s; left: 6%; top: 28px; width: 66px; }
.fcard-coral .fv-st2 { left: auto; right: 4%; top: 150px; }

/* 人臉打碼示意（抽象人形＋App 內建熊面具） */
.maskdemo { position: absolute; z-index: 2; left: 10px; top: 8px; display: flex; gap: 8px; transform: rotate(-4deg); }
.md-tile { position: relative; width: 92px; height: 112px; overflow: hidden; border-radius: 18px; border: 3px solid #fff; background: linear-gradient(160deg, #ffd6c2, #f3c9ff); box-shadow: 0 8px 14px rgba(120, 40, 20, .18); }
.silh { position: absolute; left: 50%; bottom: -26px; width: 70px; height: 78px; margin-left: -35px; border-radius: 50% 50% 18% 18% / 60% 60% 10% 10%; background: #5d4aa8; }
.silh::before { content: ""; position: absolute; left: 50%; top: -34px; width: 40px; height: 44px; margin-left: -20px; border-radius: 50%; background: #5d4aa8; box-shadow: 0 0 0 3px #f6eaff; }
.md-face { position: absolute; left: 50%; top: 20px; width: 52px; height: auto; margin-left: -26px; }
.md-label { position: absolute; left: 6px; bottom: 6px; padding: 1px 8px; border-radius: 999px; background: #fff; color: #5d2a12; font-size: 11px; font-weight: 800; line-height: 1.5; }
.md-label-on { background: #ff8f6b; color: #3d1204; }

/* ---------- 三步驟 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: s; }
.step { position: relative; padding: 24px 24px 28px; border-radius: 30px; background: var(--sx-lavender); text-align: center; }
.step:nth-child(2) { background: #fff1ec; transform: translateY(14px); }
.step:nth-child(3) { background: var(--sx-mint); }
.step-art { display: block; width: 150px; height: auto; margin: 0 auto 8px; }
.step-no { position: absolute; left: 18px; top: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sx-purple-d); color: #fff; font-family: var(--sx-display); font-size: 20px; font-weight: 700; box-shadow: 0 0 0 4px #fff; }
.step h3 { font-size: 1.3rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--sx-ink); }

/* ---------- 安心使用 ---------- */
.sf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.sf-item { display: flex; gap: 16px; padding: 22px; border-radius: 26px; background: #fff; box-shadow: 0 8px 20px rgba(11, 104, 150, .1); }
.sf-icon { flex: none; width: 56px; height: auto; align-self: flex-start; }
.sf-item h3 { font-size: 1.12rem; margin-bottom: 4px; line-height: 1.45; }
.sf-item p { margin: 0; font-size: 15px; color: var(--sx-ink); line-height: 1.7; }

/* ---------- 方案卡（首頁摘要與定價頁共用） ---------- */
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pcard { position: relative; padding: 28px 28px 26px; border-radius: 30px; background: #fff; border: 3px solid transparent; box-shadow: 0 12px 26px rgba(120, 90, 10, .1); }
.pcard-mint { background: var(--sx-mint); }
.pcard-purple { background: #fff; border-color: #a99af7; box-shadow: 0 16px 34px rgba(80, 60, 190, .2); }
.pcard-yellow { background: var(--sx-yellow); }
.pc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pc-head h3 { margin: 0; font-size: 1.35rem; }
.pc-price { margin: 4px 0; font-family: var(--sx-display); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 700; color: var(--sx-purple-d); line-height: 1.3; }
.pc-sub { margin-bottom: 14px; color: var(--sx-muted); font-weight: 600; }
.pc-foot { margin: 14px 0 0; padding-top: 12px; border-top: 2px dashed rgba(45, 36, 99, .18); font-weight: 800; color: var(--sx-deep); }
.px-fine { margin: 26px 0 0; padding: 18px 22px; border-radius: 20px; background: rgba(255, 255, 255, .8); border: 2px dashed #c9bdf8; font-size: 14px; color: var(--sx-ink); }
.px-fine p { margin: 0 0 6px; }
.px-fine p:last-child { margin: 0; }
.pcards + .px-fine { margin-bottom: 28px; }
.pricing-sum .sx-btn, #pricing .sx-btn { margin-top: 4px; }

/* ---------- 定價頁 ---------- */
.plan-pair { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; margin-top: 28px; }
.price-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0 18px; }
.price-tile { padding: 14px 16px; border-radius: 20px; background: var(--sx-lavender); }
.price-tile-hot { background: #fff1bd; box-shadow: 0 0 0 3px #ffc83d; }
.pt-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-weight: 800; font-size: 14px; color: var(--sx-deep); }
.pt-price { margin: 2px 0 0; font-family: var(--sx-display); font-weight: 700; font-size: 1.45rem; color: var(--sx-purple-d); line-height: 1.4; }
.pt-note { margin: 4px 0 0; font-size: 13px; color: #6a4a00; font-weight: 700; line-height: 1.5; }
.pcard-wide { margin-top: 24px; }
.packs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 14px 0 6px; padding: 0; list-style: none; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px 10px 16px; border-radius: 24px; background: #fff; text-align: center; box-shadow: 0 6px 14px rgba(122, 82, 0, .12); }
.pack-best { background: #ffe08a; box-shadow: 0 0 0 3px #ffb703, 0 10px 18px rgba(122, 82, 0, .2); }
.pack-star { width: 48px; height: auto; margin-bottom: 4px; }
.pack-stars { font-family: var(--sx-display); font-size: 1.2rem; font-weight: 700; color: var(--sx-deep); line-height: 1.3; }
.pack-price { font-weight: 800; color: var(--sx-purple-d); }
.pack-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 2px 12px; border-radius: 999px; background: #ff6b4a; color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.compare { width: 100%; margin-top: 28px; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 24px; border: 2px solid var(--sx-line); font-size: 16px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sx-line); }
.compare thead th { background: var(--sx-purple-d); color: #fff; font-family: var(--sx-display); font-size: 1.1rem; }
.compare thead th:last-child { background: #4c38b3; }
.compare tbody th { width: 22%; background: var(--sx-lavender); color: var(--sx-deep); font-weight: 800; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td:last-child { background: #fffaf0; font-weight: 700; }
.cmp-note { margin: 16px 0 0; font-size: 14px; color: var(--sx-muted); }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 28px 0 0; list-style: none; }
.note-card { padding: 22px; border-radius: 26px; background: #fff; box-shadow: 0 8px 20px rgba(11, 104, 150, .1); }
.note-card h3 { font-size: 1.12rem; line-height: 1.45; margin-bottom: 6px; }
.note-card p { margin: 0; font-size: 15px; }

/* ---------- 下載區 ---------- */
.sx-download { background-image: radial-gradient(rgba(255, 255, 255, .15) 2px, transparent 2.6px); background-size: 30px 30px; text-align: center; }
.sx-dl-in { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 56px); }
.sx-dl-tuntun { width: clamp(150px, 22vw, 240px); height: auto; filter: drop-shadow(0 12px 12px rgba(30, 20, 100, .3)); }
.sx-dl-text { max-width: 30em; text-align: left; }
.sx-download h2 { color: #fff; }
.sx-download p { color: #f3f0ff; }
.sx-dl-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.sx-dl-chips .sx-chip { color: var(--sx-deep); }
.sx-dl-chips .sx-chip-yellow { color: #3b2900; }
.sx-dl-sp1 { --s: 34px; left: 8%; top: 18%; }
.sx-dl-sp2 { --s: 24px; --c: #ff9fc3; --d: -1.5s; right: 10%; bottom: 20%; }

/* ---------- 響應式 ---------- */
@media (max-width: 980px) {
  .hx-in { grid-template-columns: 1fr; }
  .hx-text { text-align: center; }
  .hx-text .sx-lead { margin-inline: auto; }
  .hx-actions { justify-content: center; }
  .hx-art { max-width: 460px; }
  .fcards, .plan-pair { grid-template-columns: 1fr; }
  .pcards, .sf-grid, .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(2) { transform: none; }
  .pcards, .sf-grid, .notes { grid-template-columns: 1fr; }
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-dl-in { flex-direction: column; text-align: center; }
  .sx-dl-text { text-align: center; }
  .sx-dl-chips { justify-content: center; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare { border: 0; border-radius: 0; margin-top: 20px; }
  .compare tbody tr { margin-bottom: 14px; overflow: hidden; border-radius: 20px; border: 2px solid var(--sx-line); }
  .compare tbody th { width: 100%; padding: 12px 18px; }
  .compare td { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; padding: 12px 18px; }
  .compare td::before { content: attr(data-label); font-weight: 800; color: var(--sx-purple-d); }
  .compare td:last-child { border-bottom: 0; }
}
@media (max-width: 520px) {
  .fc-text { padding: 24px 22px 0; }
  .fc-vis { height: 300px; }
  .fv-phone { width: 176px; margin-left: -30px; }
  .fv-tuntun { width: 150px; }
  .fv-st1 { width: 60px; }
  .fv-st2 { width: 54px; }
  .price-tiles { grid-template-columns: 1fr; }
  .sx-hero { padding-bottom: 96px; }
}
