/* 霹靂美國際級團隊-大馬｜官網共用樣式 */
:root {
  --navy: #113B5F; --navy-d: #0B2A45; --gold: #AA853D; --gold-l: #D6B266; --gold-s: #F3E9D2;
  --teal: #3A968C; --ink: #24313D; --muted: #5E6B77; --line: #E7DFCF;
  --bg: #FBF8F2; --bg2: #F4EEE2; --card: #FFFFFF;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  --r: 18px; --shadow: 0 10px 30px rgba(17, 59, 95, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ── 頁首 ── */
.top { position: sticky; top: 0; z-index: 30; background: rgba(251, 248, 242, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand b { font-family: var(--serif); font-size: 18px; letter-spacing: 1px; display: block; line-height: 1.2; }
.brand small { font-size: 11.5px; color: var(--muted); display: block; letter-spacing: .5px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--gold-s); color: var(--navy); }
.btn-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff !important; text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 999px; font-size: 15px; white-space: nowrap; border: 0; cursor: pointer; font-family: inherit; transition: background .15s, transform .15s; }
.btn-cta:hover { background: var(--navy-d); transform: translateY(-1px); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--navy); font-size: 15px; }
.btn-ghost:hover { background: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font-size: 26px; color: var(--navy); cursor: pointer; padding: 6px; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 10px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .menu-btn { display: block; }
  .top .btn-cta { display: none; }
}

/* ── 通用區塊 ── */
section { padding: 72px 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.35; font-weight: 700; }
h1 { font-size: clamp(30px, 5vw, 50px); letter-spacing: 1px; }
h2 { font-size: clamp(25px, 3.4vw, 34px); margin-bottom: 14px; }
h3 { font-size: 20px; margin-bottom: 8px; }
.lead { font-size: 17.5px; color: var(--muted); }
.center { text-align: center; }
.center .lead { max-width: 640px; margin: 0 auto; }
.alt { background: var(--bg2); }
.dark { background: var(--navy); color: #E9EEF3; }
.dark h2, .dark h3 { color: #fff; }
.dark .lead { color: #C9D4DE; }
.gold-line { width: 56px; height: 3px; background: var(--gold); border-radius: 3px; margin: 14px 0 20px; }
.center .gold-line { margin-left: auto; margin-right: auto; }

/* ── 首頁主視覺 ── */
.hero { padding: 56px 0 64px; background: radial-gradient(circle at 85% 10%, #F3E6C8 0, transparent 42%), radial-gradient(circle at 0% 90%, #E2F0EC 0, transparent 40%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.hero h1 span { color: var(--gold); }
.hero .lead { margin: 18px 0 26px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .who { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.hero .who img { width: 46px; height: 46px; border-radius: 50%; background: #fff; padding: 4px; box-shadow: var(--shadow); }
.hero figure { border-radius: 26px; overflow: hidden; box-shadow: 0 24px 60px rgba(17, 59, 95, .16); background: #fff; }
.hero figure img { width: 100%; height: auto; }
.hero figcaption { font-size: 12.5px; color: var(--muted); padding: 10px 16px; background: #fff; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 30px; } .hero { padding: 34px 0 48px; } }

/* ── 三條路（引導卡片）── */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.path { position: relative; display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px 22px; text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s; }
.path:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-l); }
.path .num { font-family: var(--serif); font-size: 15px; color: var(--gold); font-weight: 700; letter-spacing: 1px; }
.path h3 { margin: 6px 0 6px; }
.path p { color: var(--muted); font-size: 15px; }
.path .go { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--navy); }
.path.primary { background: var(--navy); border-color: var(--navy); color: #DCE5EE; }
.path.primary h3, .path.primary .go { color: #fff; }
.path.primary p { color: #C9D4DE; }
.path.primary .num { color: var(--gold-l); }
@media (max-width: 820px) { .paths { grid-template-columns: 1fr; } }

/* ── 特色、步驟、信任 ── */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
.card { background: var(--card); border-radius: var(--r); padding: 26px 24px; box-shadow: var(--shadow); }
.card .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--gold-s); color: var(--gold); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 15.5px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.step { counter-increment: s; position: relative; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r); padding: 28px 24px 24px; }
.step::before { content: counter(s); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 700; display: grid; place-items: center; font-family: var(--serif); }
.step p { color: #C9D4DE; font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.fact { background: var(--card); border-radius: 16px; padding: 20px 18px; border: 1px solid var(--line); }
.fact b { display: block; font-family: var(--serif); font-size: 22px; color: var(--navy); }
.fact span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .grid3, .steps { grid-template-columns: 1fr; } .grid2 { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr 1fr; } .steps { gap: 30px; } }

/* ── 產品系列 ── */
.series { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-top: 30px; }
.serie { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .18s; }
.serie:hover { transform: translateY(-4px); }
.serie img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center 62%; width: 100%; height: auto; background: #f2f2f2; }
.serie div { padding: 14px 16px 18px; }
.serie b { font-family: var(--serif); color: var(--navy); font-size: 17px; display: block; }
.serie span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 560px) { .series { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ── 產品清單頁 ── */
.prod-group { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; padding: 34px 0; border-top: 1px solid var(--line); }
.prod-group:first-of-type { border-top: 0; }
.prod-group > img { border-radius: var(--r); aspect-ratio: 3 / 4; object-fit: cover; object-position: center 62%; width: 100%; height: auto; position: sticky; top: 90px; box-shadow: var(--shadow); }
.prod { background: var(--card); border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; border: 1px solid var(--line); }
.prod h3 { font-size: 18px; margin-bottom: 4px; }
.prod h3 em { font-style: normal; display: inline-block; min-width: 38px; color: var(--gold); }
.prod .en { font-size: 12.5px; color: var(--muted); letter-spacing: .5px; }
.prod p { font-size: 15px; margin-top: 6px; }
.prod .how { margin-top: 10px; background: var(--gold-s); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; }
.prod .how b { color: var(--gold); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags span { font-size: 12.5px; background: var(--bg2); color: var(--muted); padding: 2px 10px; border-radius: 999px; }
@media (max-width: 820px) { .prod-group { grid-template-columns: 1fr; } .prod-group > img { position: static; max-width: 320px; } }

/* ── 文章、FAQ ── */
.article { padding: 50px 0 60px; }
.article h1 { font-size: clamp(28px, 4.4vw, 40px); }
.meta { font-size: 14px; color: var(--muted); margin: 14px 0 26px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.article h2 { font-size: 24px; margin: 38px 0 12px; }
.article p, .article li { font-size: 17px; }
.article p + p { margin-top: 12px; }
.article ol, .article ul { padding-left: 1.4em; margin: 10px 0; }
.article li { margin: 6px 0; }
.tldr { background: #fff; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; padding: 16px 20px; box-shadow: var(--shadow); }
.tldr b { color: var(--navy); }
.note { font-size: 14px; color: var(--muted); background: var(--bg2); border-radius: 12px; padding: 12px 16px; margin-top: 24px; }
.video { display: block; position: relative; max-width: 320px; border-radius: 16px; overflow: hidden; margin: 20px 0; box-shadow: var(--shadow); }
.video img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.video::after { content: "▶"; position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(17, 59, 95, .85); color: #fff; display: grid; place-items: center; font-size: 24px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy); font-size: 16.5px; list-style: none; position: relative; padding-right: 46px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 22px; color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 20px 18px; color: var(--ink); font-size: 15.5px; }
.faq .a p + p { margin-top: 8px; }
.list-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.art { background: var(--card); border-radius: var(--r); padding: 22px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .18s, box-shadow .18s; display: block; }
.art:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.art small { color: var(--gold); font-weight: 700; letter-spacing: 1px; }
.art h3 { font-size: 18px; margin: 6px 0; }
.art p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .list-articles { grid-template-columns: 1fr; } }
.crumbs { font-size: 13.5px; color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--muted); }

/* ── 聯絡區 ── */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.cbtn { display: flex; align-items: center; gap: 14px; padding: 18px 18px; border-radius: 16px; border: 0; font: inherit; font-size: 17px; font-weight: 700; color: #fff; text-decoration: none; cursor: pointer; text-align: left; box-shadow: 0 8px 20px rgba(0, 0, 0, .14); transition: transform .12s; }
.cbtn:hover { transform: translateY(-2px); }
.cbtn svg { flex: 0 0 36px; width: 36px; height: 36px; }
.cbtn small { display: block; font-size: 13px; font-weight: 400; opacity: .92; }
.cbtn.line { background: #06C755; }
.cbtn.wechat { background: linear-gradient(135deg, #1AAD19, #07C160); }
.cbtn.whatsapp { background: linear-gradient(135deg, #128C7E, #25D366); }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.cta-band { background: linear-gradient(135deg, var(--navy), #1B5383); color: #fff; border-radius: 26px; padding: 44px 36px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #D4DEE8; }

/* ── 頁尾 ── */
footer { background: var(--navy-d); color: #AFC0CF; padding: 50px 0 30px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
footer a { color: #D6E1EA; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer ul { list-style: none; }
footer li { margin: 5px 0; }
footer .legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 18px; font-size: 12.5px; line-height: 1.8; }
@media (max-width: 820px) { footer .cols { grid-template-columns: 1fr; } }

/* ── 手機底部固定按鈕 ── */
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .sticky-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25; justify-content: center; padding: 14px; border-radius: 999px; background: var(--gold); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 26px rgba(170, 133, 61, .45); }
  body { padding-bottom: 80px; }
}

/* ── WeChat 彈窗 ── */
.modal { position: fixed; inset: 0; background: rgba(10, 25, 40, .6); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal.open { display: flex; }
.sheet { background: #fff; border-radius: 20px; padding: 22px 20px 18px; width: 100%; max-width: 360px; text-align: center; }
.sheet h3 { margin: 0; }
.sheet p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.sheet img { width: 220px; height: 220px; margin: 14px auto 6px; border-radius: 10px; border: 1px solid #eee; object-fit: contain; }
.idbox { margin: 10px 0 14px; font-size: 18px; font-weight: 700; color: var(--navy); }
.copy { background: var(--gold); color: #fff; border: 0; border-radius: 10px; padding: 12px; width: 100%; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.close { margin-top: 10px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; padding: 6px; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .2s; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; }
