/*
Theme Name:  環宇香港公司秘書（WEM HK）
Theme URI:   https://worldenterprise.site/
Author:      World Enterprise Management Limited
Description: 環宇企業管理有限公司香港專用站主題。只介紹信託或公司服務提供者牌照（TC006716）範圍內的香港服務：成立公司、公司秘書、註冊辦事處地址、周年申報。內容、查詢表單與結構化資料都內建於主題，不依賴其他外掛。
Version:     1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: wem-hk
*/

:root {
	--paper: #f7f4ee;
	--paper-2: #efeae0;
	--card: #ffffff;
	--ink: #17201c;
	--ink-2: #3f4b45;
	--muted: #66726b;
	--green: #0e4a3a;
	--green-2: #156b52;
	--green-soft: #e3eee9;
	--seal: #b8352b;
	--gold: #a8894f;
	--line: #ddd6c8;
	--radius: 14px;
	--wrap: 1160px;
	--serif: "Noto Serif HK", "Noto Serif TC", "Songti TC", "PMingLiU", "MingLiU", serif;
	--sans: "PingFang HK", "PingFang TC", "Noto Sans HK", "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", sans-serif;
	--shadow: 0 1px 2px rgba(23, 32, 28, .05), 0 8px 24px rgba(23, 32, 28, .06);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16.5px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--green-2); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.35; margin: 0 0 .6em; font-weight: 700; letter-spacing: .01em; text-wrap: balance; }
.nb { display: inline-block; }
h1 { font-size: clamp(27px, 4.6vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- 頂部牌照條 ---------- */
.topbar { background: var(--green); color: #e9f1ed; font-size: 13.5px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar__right { display: flex; gap: 18px; white-space: nowrap; }

/* ---------- 頁首 ---------- */
.site-header { background: rgba(247, 244, 238, .96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__seal { width: 44px; height: 44px; border-radius: 9px; background: var(--seal); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.05; display: grid; place-items: center; text-align: center; letter-spacing: .04em; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__zh { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.brand__en { font-size: 10.5px; letter-spacing: .09em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 15.5px; white-space: nowrap; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--green); font-weight: 700; box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ---------- 按鈕 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15.5px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.3; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn--ghost:hover { background: var(--green-soft); }
.btn--light { background: #fff; color: var(--green); }
.btn--sm { padding: 9px 16px; font-size: 14.5px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- 首屏 ---------- */
.hero { padding: 64px 0 56px; background:
	linear-gradient(180deg, rgba(14, 74, 58, .05), rgba(14, 74, 58, 0) 60%),
	repeating-linear-gradient(90deg, transparent 0 119px, rgba(23, 32, 28, .035) 119px 120px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 6px 14px; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--seal); }
.hero__lead { font-size: 18px; color: var(--ink-2); max-width: 38em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.disclosure { font-size: 14px; color: var(--muted); border-left: 3px solid var(--gold); padding: 2px 0 2px 12px; max-width: 40em; }

/* 牌照卡：像一張證書 */
.licence { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); position: relative; }
.licence__inner { border: 1px solid var(--gold); border-radius: 9px; padding: 24px 24px 20px; }
.licence__title { font-family: var(--serif); font-size: 18px; font-weight: 700; margin: 0 0 2px; }
.licence__sub { font-size: 12px; letter-spacing: .08em; color: var(--muted); margin: 0 0 16px; }
.licence dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 14.5px; }
.licence dt { color: var(--muted); white-space: nowrap; }
.licence dd { margin: 0; font-weight: 600; }
.licence__no { font-family: var(--serif); font-size: 22px; color: var(--seal); letter-spacing: .06em; }
.licence__verify { display: inline-block; margin-top: 16px; font-size: 14px; }
.licence__stamp { position: absolute; right: 22px; top: 20px; width: 62px; height: 62px; border: 2px solid var(--seal); border-radius: 50%; color: var(--seal); font-family: var(--serif); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; text-align: center; line-height: 1.2; transform: rotate(-10deg); opacity: .85; }

/* ---------- 區塊 ---------- */
.section { padding: 64px 0; }
.section--tint { background: var(--paper-2); }
.section--green { background: var(--green); color: #eaf2ee; }
.section--green h2, .section--green h3 { color: #fff; }
.section__head { max-width: 46em; margin-bottom: 34px; }
.kicker { display: block; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.section__head p { color: var(--ink-2); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s, border-color .2s; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--green); color: inherit; }
.card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 16px; }
.card__icon svg { width: 22px; height: 22px; }
.card p { color: var(--ink-2); font-size: 15px; flex: 1; }
.card__more { font-weight: 700; color: var(--green); font-size: 14.5px; }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.point h3 { display: flex; align-items: baseline; gap: 10px; }
.point__no { font-family: var(--serif); color: var(--gold); font-size: 15px; }
.point p { color: inherit; opacity: .92; font-size: 15.5px; margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; margin: 0; counter-increment: step; position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 26px; color: var(--green); font-weight: 700; display: block; margin-bottom: 8px; }
.steps h3 { font-size: 17.5px; margin-bottom: .35em; }
.steps p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* ---------- 內頁 ---------- */
.page-head { padding: 40px 0 34px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(14, 74, 58, .05), rgba(14, 74, 58, 0)); }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span[aria-hidden] { margin: 0 6px; }
.page-head__lead { font-size: 18px; color: var(--ink-2); max-width: 44em; margin: 0; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; padding-top: 44px; padding-bottom: 64px; align-items: start; }
.layout--single { grid-template-columns: minmax(0, 760px); }
.content .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content > section { margin-bottom: 40px; }
.content h2 { font-size: 25px; padding-top: 6px; }
.content h2::after { content: ""; display: block; width: 40px; height: 3px; background: var(--gold); margin-top: 10px; border-radius: 2px; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 14px; height: 8px; border-left: 2.5px solid var(--green-2); border-bottom: 2.5px solid var(--green-2); transform: rotate(-45deg) translateY(-50%); }
.ticks strong { color: var(--ink); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--green-soft); color: var(--green); font-size: 13.5px; white-space: nowrap; }
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
table.data tbody th { font-weight: 700; }
table.data--kv { min-width: 0; }
table.data--kv th { white-space: nowrap; width: 1%; color: var(--muted); font-weight: 600; }
.table-note { font-size: 13.5px; color: var(--muted); margin: 10px 2px 0; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--green); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .faq__a { padding: 0 20px 16px; color: var(--ink-2); }
.faq .faq__a p:last-child { margin-bottom: 0; }

.note { background: #fbf6ea; border: 1px solid #ead9b0; border-radius: 12px; padding: 16px 18px; font-size: 15px; color: #5a4a22; }
.note strong { color: #4a3b15; }

/* ---------- 側欄與表單 ---------- */
.aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel h2, .panel h3 { font-size: 19px; margin-bottom: .4em; }
.panel p { font-size: 14.5px; color: var(--ink-2); }
.panel .btn { width: 100%; margin-bottom: 8px; }
.mini { font-size: 14px; color: var(--ink-2); margin: 0; }
.mini dt { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.mini dd { margin: 0; font-weight: 600; }

.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea { width: 100%; border: 1px solid #cfc7b6; border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 15.5px; background: #fff; color: var(--ink); }
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green-2); outline: 2px solid rgba(21, 107, 82, .2); }
.form .consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 13.5px; color: var(--ink-2); }
.form .consent input { margin-top: 5px; }
.form .hp { position: absolute; left: -9999px; }
.form__msg { border-radius: 10px; padding: 12px 14px; font-size: 14.5px; }
.form__msg--ok { background: var(--green-soft); color: var(--green); }
.form__msg--err { background: #fbe9e7; color: #8f2219; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.figure { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.figure img { display: block; width: 100%; }
.figure figcaption { font-size: 13.5px; color: var(--muted); padding: 10px 14px; }

/* ---------- 行動呼籲 ---------- */
.cta { background: var(--green); color: #eaf2ee; padding: 52px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { margin: 0; opacity: .9; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta .btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- 頁尾 ---------- */
.site-footer { background: #10201b; color: #c3cfc9; font-size: 14.5px; padding: 52px 0 26px; }
.site-footer a { color: #e6efe9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-footer h2 { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; color: #8fa39a; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer__name { font-family: var(--serif); color: #fff; font-size: 18px; margin: 0 0 2px; }
.footer__en { font-size: 12px; letter-spacing: .07em; color: #8fa39a; margin: 0 0 14px; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; font-size: 13px; color: #92a39b; display: grid; gap: 8px; }

/* ---------- 右下角浮動聯絡視窗 ---------- */
.cw {
	--cw-size: 58px;
	--cw-main: #a886cd;
	--cw-wa: #49e670;
	--cw-wx: #45dc00;
	--cw-tel: #03e78b;
	--cw-wa-head: #4ca585;
	position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 80;
	display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
	font-family: var(--sans); pointer-events: none;
}
.cw > * { pointer-events: auto; }
.cw svg { display: block; width: 100%; height: 100%; }

.cw__main { position: relative; display: flex; align-items: center; gap: 12px; }
.cw__toggle, .cw__ch {
	position: relative; width: var(--cw-size); height: var(--cw-size); border: 0; border-radius: 50%; padding: 0;
	display: grid; place-items: center; color: #fff; cursor: pointer; text-decoration: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18); transition: transform .18s ease, box-shadow .18s ease;
}
.cw__toggle:hover, .cw__ch:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(0, 0, 0, .24); color: #fff; }
.cw__toggle:focus-visible, .cw__ch:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.cw__toggle { background: var(--cw-main); }
.cw__toggle > span { width: 50%; height: 50%; }
.cw__ico-close { display: none; }
.cw.is-open .cw__ico-open { display: none; }
.cw.is-open .cw__ico-close { display: block; }

.cw__cta {
	background: #fff; color: var(--ink); font-size: 14px; line-height: 1.4; padding: 8px 14px; border-radius: 10px;
	box-shadow: 0 3px 14px rgba(0, 0, 0, .14); white-space: nowrap;
}
.cw.is-open .cw__cta { display: none; }

.cw__channels { list-style: none; margin: 0; padding: 0; display: none; flex-direction: column; gap: 12px; }
.cw.is-open .cw__channels { display: flex; }
.cw.has-panel .cw__channels { display: none; }
.cw__ch > svg { width: 52%; height: 52%; }
.cw__ch--wa { background: var(--cw-wa); }
.cw__ch--wx { background: var(--cw-wx); }
.cw__ch--tel { background: var(--cw-tel); }
.cw__tip {
	position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
	background: #fff; color: var(--ink); font-size: 14px; font-weight: 400; line-height: 1.3; white-space: nowrap;
	padding: 7px 12px; border-radius: 8px; box-shadow: 0 3px 12px rgba(0, 0, 0, .15);
	opacity: 0; visibility: hidden; transition: opacity .15s ease;
}
.cw__ch:hover .cw__tip, .cw__ch:focus-visible .cw__tip { opacity: 1; visibility: visible; }

.cw__panel {
	width: min(330px, calc(100vw - 40px)); background: #fff; border-radius: 14px; overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .22); color: var(--ink);
}
.cw__panel[hidden] { display: none; }
.cw__head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 16px; color: #fff; }
.cw__head > svg { width: 26px; height: 26px; flex: none; }
.cw__title { flex: 1; margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.cw__back { width: 34px; height: 34px; padding: 6px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; flex: none; }
.cw__back:hover { background: rgba(255, 255, 255, .18); }
.cw__panel--wa .cw__head { background: var(--cw-wa-head); }
.cw__panel--wx .cw__head { background: var(--cw-main); }

.cw__chat { background: #efeae2; padding: 18px 16px 22px; min-height: 130px; }
.cw__msg { position: relative; display: inline-block; max-width: 88%; background: #fff; border-radius: 0 10px 10px 10px; padding: 8px 12px 6px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.cw__who { display: block; font-size: 12.5px; font-weight: 600; color: #2e8b6a; margin-bottom: 2px; }
.cw__msg p { margin: 0; font-size: 15px; line-height: 1.55; }
.cw__time { display: block; text-align: right; font-size: 11.5px; color: #8a948f; margin-top: 2px; min-height: 1em; }
.cw__send { display: flex; gap: 8px; align-items: center; padding: 0 12px 12px; background: #efeae2; }
.cw__send input { flex: 1; min-width: 0; height: 42px; border: 0; border-radius: 999px; padding: 0 16px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.cw__send input:focus { outline: 2px solid var(--cw-wa-head); }
.cw__send button { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; padding: 10px; background: var(--cw-wa-head); color: #fff; cursor: pointer; }
.cw__send button:hover { filter: brightness(1.08); }
.cw__foot { margin: 0; padding: 8px 14px 10px; font-size: 12.5px; color: var(--muted); background: #fff; text-align: center; }

.cw__body { padding: 14px 18px 18px; text-align: center; }
.cw__body > p:first-child { margin: 0 0 10px; text-align: left; font-size: 14px; color: var(--muted); }
.cw__qr { display: block; width: 180px; height: 180px; margin: 0 auto 12px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }
.cw__hint { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* ---------- 微信視窗 ---------- */
.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header__actions .btn { white-space: nowrap; }
.wechat { border: 0; border-radius: var(--radius); padding: 30px 26px 22px; width: min(340px, calc(100vw - 32px)); text-align: center; color: var(--ink); background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.wechat::backdrop { background: rgba(16, 32, 27, .55); }
.wechat h2 { font-size: 20px; margin-bottom: 12px; }
.wechat__qr { display: block; width: 200px; height: 200px; margin: 0 auto 10px; }
.wechat__id { margin: 0 0 12px; font-size: 15px; color: var(--ink-2); }
.wechat__id strong { color: var(--ink); letter-spacing: .03em; }
.wechat__hint { font-size: 13px; color: var(--muted); margin: 14px 0 0; line-height: 1.7; }
.wechat__close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.wechat__close:hover { background: var(--paper-2); color: var(--ink); }
.contact-qr { display: block; width: 150px; height: 150px; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* ---------- 響應式 ---------- */
/* 頁首放不下時，先收起英文名稱與頁首的「微信」（首屏、側欄與底部仍有微信按鈕）。 */
@media (max-width: 1200px) {
	.brand__en, .header__actions .js-wechat { display: none; }
}

@media (max-width: 1020px) {
	.cards, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.layout { grid-template-columns: minmax(0, 1fr); }
	.aside { position: static; }
	.hero__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.nav-toggle { display: block; }
	.site-header .btn, .header__actions { display: none; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px; box-shadow: var(--shadow); }
	.nav.is-open { display: flex; }
	.nav a { padding: 13px 12px; font-size: 16.5px; }
	.nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--green); }
	body { padding-bottom: 0; }
}

@media (max-width: 600px) {
	.cw { --cw-size: 54px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
	.cw__cta { font-size: 13px; padding: 7px 11px; }
	.cw__tip { display: none; }
	.cw__panel { width: calc(100vw - 28px); }
}

@media (max-width: 700px) {
	body { font-size: 16px; }
	.topbar__right { display: none; }
	.hero { padding: 40px 0 44px; }
	.section { padding: 46px 0; }
	.cards, .steps, .points, .facts, .contact-grid, .footer__grid { grid-template-columns: minmax(0, 1fr); }
	.facts > div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
	.facts > div:last-child { border-bottom: 0 !important; }
	.brand__en { display: none; }
	.licence__stamp { width: 54px; height: 54px; font-size: 11px; right: 16px; top: 16px; }
	.licence dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.licence dd { margin-bottom: 8px; }
	.cta .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .topbar, .cta, .cw, .wechat, .aside, .nav-toggle { display: none !important; }
}
