/* ====================================================================
   /line 加入玄燈 LINE 好友介紹頁(2026-10-29)。view: resources/views/line/benefits.blade.php
   靜態檔(不必 npm build);改了要換 view 裡的 ?v=(Cloudflare 快取靜態檔一年)。前綴 lb-。
   語彙跟網站一致:宣紙底、燙金細框、朱砂印;LINE 綠只用在加好友按鈕與「完成」記號。
   ==================================================================== */
.lb-page {
  --lb-paper: var(--xd-paper, #FAF6EE);
  --lb-paper-2: var(--xd-paper-2, #F5F0E4);
  --lb-paper-3: var(--xd-paper-3, #EDE5D1);
  --lb-sheet: var(--xd-sheet, #FDFBF5);
  --lb-ink: var(--xd-ink, #1C1913);
  --lb-ink-2: var(--xd-ink-2, #322C22);
  --lb-ink-3: var(--xd-ink-3, #514836);
  --lb-ink-4: var(--xd-ink-4, #6F6450);
  --lb-gold: var(--xd-gold, #C8A452);
  --lb-gold-ink: var(--xd-gold-ink, #7E5D22);
  --lb-gold-light: var(--xd-gold-light, #E8D29A);
  --lb-red: var(--xd-cinnabar, #B4242C);
  --lb-red-ink: var(--xd-cinnabar-ink, #7A1820);
  --lb-rule: var(--xd-rule, rgb(150 112 44 / .24));
  --lb-rule-2: var(--xd-rule-2, rgb(150 112 44 / .42));
  --lb-line: #06C755;
  --lb-line-dk: #05B04B;
  --lb-frame: inset 0 0 0 1px var(--lb-rule-2), inset 0 0 0 4px var(--lb-sheet), inset 0 0 0 5px var(--lb-rule);
  --lb-shadow: 0 1px 0 rgb(255 255 255 / .65) inset, 0 1px 2px rgb(60 45 20 / .05), 0 14px 34px -20px rgb(60 45 20 / .30);
  --lb-ease: cubic-bezier(.16, 1, .3, 1);
  color: var(--lb-ink);
  overflow-x: clip;
}
.lb-page *, .lb-page *::before, .lb-page *::after { box-sizing: border-box; }
.lb-page p { margin: 0; }
.lb-wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding-left: var(--xd-gutter, 1.125rem); padding-right: var(--xd-gutter, 1.125rem); position: relative; }
.lb-wrap-narrow { max-width: 50rem; }
@media (min-width: 640px) { .lb-wrap { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .lb-wrap { padding-left: 2rem; padding-right: 2rem; } }
#lb-steps { scroll-margin-top: 6rem; }

/* ---------- 按鈕 ---------- */
.lb-btn-line, .lb-btn-ghost, .lb-btn-ink {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.1rem; padding: .75rem 1.75rem; border-radius: 9999px;
  font-weight: 800; font-size: 1.0625rem; letter-spacing: .06em; line-height: 1.3; text-align: center; text-decoration: none !important;
  transition: transform .2s var(--lb-ease), box-shadow .2s var(--lb-ease), background-color .2s;
}
.lb-btn-line { color: #fff !important; background: var(--lb-line); box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 14px 30px -14px rgb(6 160 70 / .75); }
.lb-btn-line:hover { background: var(--lb-line-dk); transform: translateY(-1px); box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 18px 36px -14px rgb(6 160 70 / .85); }
.lb-btn-line svg { width: 1.4rem; height: 1.4rem; flex-shrink: 0; }
.lb-btn-ghost { color: var(--lb-gold-ink) !important; background: transparent; box-shadow: inset 0 0 0 1px var(--lb-rule-2); font-weight: 700; }
.lb-btn-ghost:hover { background: rgb(200 164 82 / .10); }
.lb-btn-ink { color: #fff !important; background: linear-gradient(180deg, #C2323B 0%, #9C1D25 100%); box-shadow: 0 1px 0 rgb(255 255 255 / .2) inset, 0 12px 26px -14px rgb(156 29 37 / .8); }
.lb-btn-ink:hover { background: linear-gradient(180deg, #CB3A43 0%, #A5222A 100%); }
.lb-btn-sm { min-height: 2.75rem; padding: .6rem 1.35rem; font-size: 1rem; }
.lb-btn-line:focus-visible, .lb-btn-ghost:focus-visible, .lb-btn-ink:focus-visible, .lb-link:focus-visible { outline: 3px solid var(--lb-gold); outline-offset: 3px; }
.lb-link { display: inline-block; margin-top: .55rem; font-weight: 700; color: var(--lb-gold-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 共用標題 ---------- */
.lb-sec { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.lb-sec-tint { background:
    radial-gradient(40rem 22rem at 85% 0%, rgb(232 210 154 / .22), transparent 70%),
    linear-gradient(180deg, var(--lb-paper-2) 0%, var(--lb-paper) 100%);
  border-top: 1px solid var(--lb-rule); border-bottom: 1px solid var(--lb-rule); }
.lb-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(1.75rem, 4vw, 2.75rem); }
.lb-kicker, .lb-eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .32em; color: var(--lb-gold-ink); }
.lb-kicker::before, .lb-kicker::after { content: ""; display: inline-block; width: 1.5rem; height: 1px; background: var(--lb-gold); vertical-align: middle; margin: 0 .7rem; opacity: .7; }
.lb-h2 { margin: .55rem 0 0; font-size: clamp(1.55rem, 4.2vw, 2.25rem); line-height: 1.35; letter-spacing: .04em; color: var(--lb-ink); font-weight: 800; text-wrap: balance; }
.lb-sub { margin-top: .8rem !important; font-size: 1rem; line-height: 1.8; color: var(--lb-ink-4); }
.lb-text { font-size: 1.02rem; line-height: 1.9; color: var(--lb-ink-3); }

/* ---------- 開頭 ---------- */
.lb-hero { position: relative; padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(34rem 22rem at 88% 20%, rgb(6 199 85 / .07), transparent 65%),
    radial-gradient(42rem 26rem at 6% 0%, rgb(232 210 154 / .35), transparent 70%),
    var(--lb-paper);
  border-bottom: 1px solid var(--lb-rule); }
.lb-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--xd-grain, none); opacity: .8; }
.lb-hero-grid { display: grid; gap: 2rem; align-items: center; z-index: 1; }
.lb-hero-copy { text-align: center; }
.lb-h1 { margin: .75rem 0 0; font-size: clamp(1.85rem, 6vw, 3.1rem); line-height: 1.28; letter-spacing: .03em; font-weight: 900; color: var(--lb-ink); text-wrap: balance; }
.lb-h1 span { display: inline-block; margin-top: .15em; color: var(--lb-red); }
.lb-lead { margin: 1.1rem auto 0 !important; max-width: 34rem; font-size: 1.06rem; line-height: 1.9; color: var(--lb-ink-3); }
.lb-cta-row { margin-top: 1.6rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.lb-cta-row .lb-btn-line, .lb-cta-row .lb-btn-ghost { width: 100%; max-width: 21rem; }
.lb-free-note { margin-top: 1rem !important; font-size: .9rem; line-height: 1.7; color: var(--lb-ink-4); }
.lb-hero-qr { display: none; }
@media (min-width: 768px) {
  .lb-hero-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; }
  .lb-hero-copy { text-align: left; }
  .lb-lead { margin-left: 0 !important; }
  .lb-cta-row { flex-direction: row; align-items: center; }
  .lb-cta-row .lb-btn-line, .lb-cta-row .lb-btn-ghost { width: auto; }
  .lb-hero-qr { display: block; }
}
.lb-qr-card { position: relative; width: 15rem; padding: 1.4rem 1.25rem 1.1rem; text-align: center; background: var(--lb-sheet);
  box-shadow: var(--lb-frame), var(--lb-shadow); border-radius: 4px; transform: rotate(1.2deg); }
.lb-qr-card::before { content: "掃我"; position: absolute; top: -.7rem; right: -.6rem; padding: .25rem .5rem; font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  color: #fff; background: var(--lb-red); border-radius: 3px; transform: rotate(6deg); box-shadow: 0 6px 14px -8px rgb(122 24 32 / .8); }
.lb-qr-card img { display: block; width: 180px; height: 180px; margin: 0 auto; background: #fff; border-radius: 6px; }
.lb-qr-card p { margin-top: .75rem !important; font-size: .86rem; line-height: 1.6; color: var(--lb-ink-4); }
.lb-qr-card strong { color: var(--lb-ink-2); letter-spacing: .04em; }

/* ---------- 三個好處 ---------- */
.lb-benefits { display: grid; gap: 1.1rem; }
@media (min-width: 900px) { .lb-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; } }
.lb-benefit { position: relative; padding: 1.75rem 1.5rem 1.6rem; background: var(--lb-sheet); border-radius: 4px; box-shadow: var(--lb-frame), var(--lb-shadow);
  transition: transform .25s var(--lb-ease), box-shadow .25s var(--lb-ease); }
@media (hover: hover) { .lb-benefit:hover { transform: translateY(-3px); } }
.lb-benefit-no { position: absolute; top: 1.1rem; right: 1.1rem; display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem;
  font-size: .95rem; font-weight: 800; color: var(--lb-red); border: 1.5px solid var(--lb-red); border-radius: 3px; opacity: .85; transform: rotate(-4deg); }
.lb-benefit-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.4rem; height: 3.4rem; font-size: 1.75rem; line-height: 1;
  border-radius: 9999px; background: radial-gradient(circle at 35% 30%, #FFF9E8, var(--lb-paper-3)); box-shadow: inset 0 0 0 1px var(--lb-rule-2); }
.lb-benefit h3 { margin: 1rem 0 0; font-size: 1.28rem; line-height: 1.4; font-weight: 800; letter-spacing: .04em; color: var(--lb-ink); }
.lb-benefit p { margin-top: .6rem !important; font-size: 1rem; line-height: 1.85; color: var(--lb-ink-3); }

/* ---------- 範例:LINE 聊天氣泡 ---------- */
.lb-chats { display: grid; gap: 2rem; }
@media (min-width: 960px) { .lb-chats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; align-items: start; } }
.lb-chat { margin: 0; min-width: 0; }
.lb-chat-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .6rem; margin-bottom: .8rem; font-size: .92rem; color: var(--lb-ink-4); }
.lb-chat-tag { display: inline-block; padding: .2rem .7rem; font-weight: 800; letter-spacing: .1em; color: var(--lb-red-ink); background: rgb(180 36 44 / .08); border: 1px solid rgb(180 36 44 / .28); border-radius: 3px; }
.lb-phone { border-radius: 22px; overflow: hidden; background: #8FA9CC; box-shadow: 0 0 0 1px rgb(60 45 20 / .10), 0 24px 50px -26px rgb(40 50 70 / .55); }
.lb-phone-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; padding: .7rem 1rem; background: #FFFFFF; border-bottom: 1px solid #E3E6EA; }
.lb-avatar { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; flex-shrink: 0; border-radius: 9999px; overflow: hidden;
  background: radial-gradient(circle at 40% 35%, #3A3226, #15120D); box-shadow: 0 0 0 1px rgb(200 164 82 / .5); }
.lb-avatar img { width: 82%; height: 82%; object-fit: contain; }
.lb-avatar-sm { width: 1.9rem; height: 1.9rem; }
.lb-phone-name { font-weight: 800; font-size: 1rem; color: #111; letter-spacing: .02em; }
.lb-sample { margin-left: auto; padding: .18rem .55rem; font-size: .76rem; font-weight: 700; line-height: 1.4; color: #8A5A10; background: #FFF4D6; border: 1px solid #EBCF86; border-radius: 9999px; }
.lb-phone-body { padding: 1.1rem .8rem 1.3rem;
  background:
    radial-gradient(28rem 16rem at 100% 0%, rgb(255 255 255 / .18), transparent 70%),
    linear-gradient(180deg, #93ADD0 0%, #86A1C6 100%); }
.lb-msg { display: flex; gap: .5rem; align-items: flex-start; }
.lb-bubble-wrap { display: flex; align-items: flex-end; gap: .35rem; flex: 1; min-width: 0; }
.lb-bubble { position: relative; flex: 1; min-width: 0; padding: .85rem 1rem .9rem; background: #fff; color: #111; border-radius: 4px 18px 18px 18px;
  font-size: .98rem; line-height: 1.78; box-shadow: 0 1px 1px rgb(0 0 0 / .06); overflow-wrap: anywhere; }
.lb-bubble::before { content: ""; position: absolute; top: 0; left: -7px; width: 12px; height: 12px; background: #fff; clip-path: polygon(100% 0, 0 0, 100% 100%); }
.lb-bubble p + p, .lb-bubble p + details, .lb-more p { margin-top: .85em !important; }
.lb-bubble p:first-child { font-weight: 700; }
.lb-time { flex-shrink: 0; font-size: .7rem; color: rgb(255 255 255 / .95); padding-bottom: .1rem; white-space: nowrap; text-shadow: 0 1px 1px rgb(30 40 60 / .25); }
/* 窄螢幕:氣泡旁小頭像拿掉、時間放到氣泡下方,讓文字有寬度 */
@media (max-width: 559.98px) {
  .lb-phone-body { padding: 1rem .85rem 1.1rem 1.1rem; }
  .lb-msg > .lb-avatar-sm { display: none; }
  .lb-bubble-wrap { flex-direction: column; align-items: flex-end; gap: .3rem; }
  .lb-bubble { width: 100%; }
  .lb-sample { margin-left: calc(2.25rem + .6rem); }
}
.lb-more { margin: 0; }
.lb-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: .3rem; padding-top: .7rem;
  border-top: 1px dashed #D9DEE5; font-size: .92rem; font-weight: 800; letter-spacing: .08em; color: #2C64A8; position: relative; }
.lb-more > summary::-webkit-details-marker { display: none; }
.lb-more > summary::after { content: ""; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.lb-more > summary::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 3.2rem; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 0), #fff 90%); }
.lb-more > summary:hover { color: #1B4C86; }
.lb-more > summary:focus-visible { outline: 2px solid #2C64A8; outline-offset: 2px; border-radius: 4px; }
.lb-more[open] > summary { display: none; }

/* ---------- 圖文選單 ---------- */
.lb-menu-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .lb-menu-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 3.25rem; } }
.lb-menu-copy { text-align: center; }
.lb-menu-copy .lb-h2 { margin-bottom: 1rem; }
@media (min-width: 900px) {
  .lb-menu-copy { text-align: left; }
  .lb-menu-copy .lb-kicker::before { display: none; }
  .lb-menu-copy .lb-kicker::after { display: none; }
}
.lb-menu-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; text-align: left; }
@media (min-width: 480px) { .lb-menu-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lb-menu-list li { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; font-size: .97rem; font-weight: 700; color: var(--lb-ink-2);
  background: var(--lb-sheet); border: 1px solid var(--lb-rule); border-radius: 4px; }
.lb-menu-list li span { display: inline-flex; align-items: center; justify-content: center; width: 1.45rem; height: 1.45rem; flex-shrink: 0; font-size: .78rem; border-radius: 9999px;
  color: var(--lb-gold-ink); background: var(--lb-paper-3); }
.lb-menu-list li.is-hot { color: #046B30; border-color: rgb(6 199 85 / .55); background: #EEFAF2; }
.lb-menu-list li.is-hot span { color: #fff; background: var(--lb-line); }
.lb-menu-figure { min-width: 0; }
.lb-menu-frame { position: relative; border-radius: 10px; overflow: hidden; background: var(--lb-paper-3);
  box-shadow: 0 0 0 1px var(--lb-rule-2), 0 0 0 6px var(--lb-sheet), 0 0 0 7px var(--lb-rule), 0 28px 56px -30px rgb(60 45 20 / .55); }
.lb-menu-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 809; }
.lb-menu-hot { position: absolute; left: 0; top: 0; width: 33.34%; height: 50%; border: 3px solid var(--lb-line); border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6), 0 0 0 0 rgb(6 199 85 / .45); animation: lb-pulse 2.2s var(--lb-ease) infinite; }
.lb-menu-hot em { position: absolute; left: .4rem; top: .4rem; padding: .2rem .55rem; font-style: normal; font-size: .8rem; font-weight: 800; letter-spacing: .08em;
  color: #fff; background: var(--lb-line); border-radius: 9999px; box-shadow: 0 4px 10px -4px rgb(0 80 30 / .6); }
@media (max-width: 479.98px) { .lb-menu-hot em { font-size: .68rem; padding: .12rem .42rem; left: .25rem; top: .25rem; } }
@keyframes lb-pulse { 0% { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6), 0 0 0 0 rgb(6 199 85 / .5); } 70%, 100% { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6), 0 0 0 14px rgb(6 199 85 / 0); } }
@media (prefers-reduced-motion: reduce) { .lb-menu-hot { animation: none; } .lb-benefit, .lb-btn-line { transition: none; } }

/* ---------- 三步驟 ---------- */
.lb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: none; }
.lb-step { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.25rem; background: var(--lb-sheet); border-radius: 4px; box-shadow: var(--lb-frame), var(--lb-shadow); }
.lb-step-mark { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; flex-shrink: 0; border-radius: 9999px;
  font-size: 1.15rem; font-weight: 900; color: var(--lb-gold-ink); background: var(--lb-paper-2); box-shadow: inset 0 0 0 1.5px var(--lb-gold); }
.lb-step.is-done .lb-step-mark { color: #fff; background: var(--lb-line); box-shadow: 0 6px 14px -8px rgb(6 160 70 / .8); }
.lb-step-body { flex: 1; min-width: 0; }
.lb-step-body h3 { margin: .35rem 0 0; font-size: 1.15rem; line-height: 1.45; font-weight: 800; color: var(--lb-ink); letter-spacing: .03em; }
.lb-step-body p { margin-top: .4rem !important; font-size: .98rem; line-height: 1.85; color: var(--lb-ink-3); }
.lb-step-body .lb-btn-line, .lb-step-body .lb-btn-ink { margin-top: .85rem; }
.lb-done-tag { display: inline-block; margin-left: .4rem; padding: .05rem .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; vertical-align: .15em;
  color: #046B30; background: #E6F7EC; border: 1px solid rgb(6 199 85 / .45); border-radius: 9999px; }
.lb-step.is-done { background: linear-gradient(180deg, #FBFDF9, var(--lb-sheet)); }
@media (max-width: 479.98px) {
  .lb-step { flex-direction: column; align-items: center; text-align: center; padding: 1.3rem 1.1rem 1.4rem; }
  .lb-step-body { width: 100%; }
  .lb-step-body .lb-btn-line, .lb-step-body .lb-btn-ink { width: 100%; max-width: 20rem; }
}

/* ---------- 常見問題 ---------- */
.lb-faq { border-top: 1px solid var(--lb-rule-2); }
.lb-faq-item { border-bottom: 1px solid var(--lb-rule); }
.lb-faq-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem .25rem;
  font-size: 1.06rem; font-weight: 800; line-height: 1.5; color: var(--lb-ink); }
.lb-faq-item > summary::-webkit-details-marker { display: none; }
.lb-faq-item > summary::after { content: "+"; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 9999px;
  font-size: 1.2rem; font-weight: 500; color: var(--lb-gold-ink); box-shadow: inset 0 0 0 1px var(--lb-rule-2); transition: transform .2s var(--lb-ease); }
.lb-faq-item[open] > summary::after { transform: rotate(45deg); }
.lb-faq-item > summary:hover { color: var(--lb-red-ink); }
.lb-faq-item > summary:focus-visible { outline: 2px solid var(--lb-gold); outline-offset: 2px; }
.lb-faq-item p { padding: 0 .25rem 1.25rem; font-size: 1rem; line-height: 1.9; color: var(--lb-ink-3); }

/* ---------- 結尾 ---------- */
.lb-final { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 4.75rem) 0; color: #F7EEDC; text-align: center;
  background:
    radial-gradient(36rem 20rem at 50% 120%, rgb(6 199 85 / .16), transparent 70%),
    radial-gradient(40rem 24rem at 10% -20%, rgb(217 184 101 / .18), transparent 65%),
    linear-gradient(180deg, #221B14 0%, #15110C 100%); }
.lb-final-inner { display: flex; flex-direction: column; align-items: center; }
.lb-final-title { font-size: clamp(1.45rem, 4vw, 2rem); font-weight: 800; line-height: 1.45; letter-spacing: .05em; color: #F7EEDC; text-wrap: balance; }
.lb-final-text { margin: .7rem 0 1.5rem !important; font-size: 1rem; line-height: 1.8; color: #D3C6AF; max-width: 32rem; }
.lb-final .lb-btn-line { width: 100%; max-width: 21rem; }
@media (min-width: 640px) { .lb-final .lb-btn-line { width: auto; } }
