/* ============================================================
   保富投資顧問(香港)有限公司 · 新官網 v0.3
   風格基準:sino-suisse.com(老闆指定)
   品牌色:品牌定稿(2026-07)——信任藍 Trust Blue #0A3C6D(Pantone 2955C)
          × 傳承金 Legacy Gold #B8A077(Pantone 871C),暖米白中性色系
   ============================================================ */
:root {
  --navy: #0a3c6d;        /* 信任藍 Trust Blue · Pantone 2955C */
  --navy-deep: #072a4e;
  --navy-soft: #2e6296;
  --gold: #b8a077;        /* 傳承金 Legacy Gold · Pantone 871C */
  --gold-deep: #93805c;
  --gold-soft: #d8cbae;
  --ink: #23262a;
  --gray: #6e6a62;
  --gray-light: #a29a8c;
  --line: #e7e2d8;
  --bg: #fdfcfa;
  --bg-soft: #f4f1ec;
  --accent: var(--gold);
  --serif: 'Noto Serif TC', Georgia, 'Times New Roman', serif;
  --sans: 'Noto Sans TC', 'Segoe UI', 'Microsoft JhengHei', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.85; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style-position: outside; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ===== 滾動浮現動畫(僅在 JS 可用時隱藏,雙保險見 site.js 兜底計時器) ===== */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .rv.on { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .12s; } .rv.d2 { transition-delay: .24s; } .rv.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ===== 頂欄 ===== */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  /* v0.10:三欄網格——品牌靠左、主導航恆居中、控制區靠右 */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 16px 40px; gap: 24px;
  background: linear-gradient(to bottom, rgba(10,16,30,.6), rgba(10,16,30,0));
  transition: background .3s, box-shadow .3s, padding .3s;
}
header .brand { justify-self: start; }
header .nav { justify-self: center; }
header .hd-right { justify-self: end; }
header.scrolled, header.solid {
  background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line); padding: 10px 40px;
}
header.scrolled .nav > li > a, header.solid .nav > li > a,
header.scrolled .lang, header.solid .lang,
header.scrolled .burger, header.solid .burger { color: var(--ink); }
header.scrolled .btn-login, header.solid .btn-login { border-color: var(--navy); color: var(--navy); }
header.scrolled .btn-login:hover, header.solid .btn-login:hover { background: var(--navy); color: #fff; }

.brand { display: flex; align-items: center; flex-shrink: 0; }
/* v0.11:頂欄只留完整標誌組合(如意鎖標 + PLCL 字標連弧線),不配文字 */
.brand-lockup { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-lockup .m { height: 40px; width: auto; display: block; }
.brand-lockup .w { height: 24px; width: auto; display: block; filter: brightness(0) invert(1); transition: filter .3s; }
header.scrolled .brand-lockup .w, header.solid .brand-lockup .w { filter: none; }

/* 一級導航 + 下拉 */
.nav { display: flex; gap: 6px; align-items: center; list-style: none; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 10px 14px; color: rgba(255,255,255,.92);
  font-size: 15px; letter-spacing: .05em; transition: color .3s; white-space: nowrap;
}
.nav > li > a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav > li:hover > a::after, .nav > li > a.here::after { transform: scaleX(1); }
.sub {
  position: absolute; top: 100%; left: 8px; min-width: 190px; padding: 10px 0;
  background: #fff; box-shadow: 0 12px 40px rgba(17,29,53,.14); border-top: 2px solid var(--accent);
  list-style: none; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s, transform .22s, visibility .22s;
}
.nav > li:hover .sub, .nav > li:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 22px; font-size: 14px; color: var(--ink); }
.sub a:hover { background: var(--bg-soft); color: var(--navy); padding-left: 26px; transition: all .18s; }

.hd-right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.btn-login {
  padding: 8px 20px; border: 1px solid rgba(255,255,255,.7); color: #fff;
  font-size: 13px; letter-spacing: .12em; transition: all .25s; white-space: nowrap;
}
.btn-login:hover { background: #fff; color: var(--navy); }
/* 語言切換:地球圖標下拉(v0.10,參照 sino-suisse) */
.lang { position: relative; color: rgba(255,255,255,.85); transition: color .3s; }
.lang-btn {
  display: flex; align-items: center; gap: 4px; padding: 8px 2px;
  background: none; border: 0; color: inherit; cursor: pointer; line-height: 1;
}
.lang-btn i { font-style: normal; font-size: 10px; opacity: .7; }
.lang-menu {
  position: absolute; top: 100%; right: -6px; min-width: 132px; padding: 8px 0;
  background: #fff; box-shadow: 0 12px 40px rgba(17,29,53,.14); border-top: 2px solid var(--accent);
  list-style: none; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s, transform .22s, visibility .22s;
}
.lang:hover .lang-menu, .lang:focus-within .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: block; padding: 8px 20px; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.lang-menu a:hover { background: var(--bg-soft); color: var(--navy); }
.lang-menu a.on { color: var(--navy); font-weight: 500; }

/* 行動端抽屜 */
.burger { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; line-height: 1; }
.drawer {
  position: fixed; inset: 0; z-index: 100; background: var(--navy-deep); color: #fff;
  padding: 90px 40px 40px; overflow-y: auto;
  transform: translateX(100%); transition: transform .35s ease; visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-close { position: absolute; top: 24px; right: 32px; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; }
.drawer a { display: block; padding: 12px 0; font-size: 19px; font-family: var(--serif); border-bottom: 1px solid rgba(255,255,255,.12); }
.drawer .dsub a { font-size: 15px; font-family: var(--sans); color: rgba(255,255,255,.75); padding: 8px 0 8px 18px; border: 0; }
.drawer .dlang { margin-top: 28px; font-size: 15px; color: rgba(255,255,255,.8); }
.drawer .dlang a { display: inline; padding: 0 8px; border: 0; font-family: var(--sans); font-size: 15px; }

/* ===== 首頁 Hero ===== */
.hero {
  min-height: 94vh; display: flex; align-items: center;
  position: relative; color: #fff; overflow: hidden;
  /* 維港夜景實拍(v0.5,Unsplash 免署名授權);左側漸層壓暗保文字對比 */
  background:
    linear-gradient(100deg, rgba(4,22,40,.78) 0%, rgba(4,22,40,.42) 45%, rgba(4,22,40,.08) 75%, rgba(4,22,40,.30) 100%),
    url(../img/hero-harbour.jpg) center 68% / cover no-repeat,
    #06182b;
}
.hero-inner { position: relative; z-index: 1; padding: 150px 0 110px; }
.kicker { font-size: 14px; letter-spacing: .38em; opacity: .85; margin-bottom: 28px; }
.hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(38px, 5.2vw, 66px); line-height: 1.3; letter-spacing: .02em; max-width: 18em;
}
.hero h1 b { font-weight: 600; }
.hero-sub { margin-top: 26px; font-size: 17px; color: rgba(255,255,255,.78); max-width: 36em; font-weight: 300; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  width: 1px; height: 64px; background: rgba(255,255,255,.35); overflow: hidden;
}
.scroll-cue::after {
  content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: #fff; animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0% { top: -40%; } 100% { top: 110%; } }

/* ===== 按鈕 ===== */
.btn {
  display: inline-block; margin-top: 44px; padding: 14px 40px;
  border: 1px solid rgba(255,255,255,.75); color: #fff;
  font-size: 13px; letter-spacing: .26em; transition: all .25s; cursor: pointer;
}
.btn:hover { background: #fff; color: var(--navy); }
.btn.dark { border-color: var(--navy); color: var(--navy); }
.btn.dark:hover { background: var(--navy); color: #fff; }
.btn.fill { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.fill:hover { background: var(--navy-deep); }

/* ===== 章節通用 ===== */
section { padding: 106px 0; }
.sec-kicker { font-size: 12.5px; letter-spacing: .32em; color: var(--gold-deep); margin-bottom: 18px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.42; color: var(--navy); }
h3.sec-sub { font-family: var(--serif); font-weight: 600; font-size: 23px; color: var(--navy); margin-bottom: 18px; }
.note { color: var(--gray-light); font-size: 13px; }

/* ===== 首頁:關於 + 財經訊息 ===== */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: start; }
.about .lead { color: var(--gray); margin-top: 26px; font-size: 16.5px; }
.news { border-top: 2px solid var(--navy); }
.news h3 { font-family: var(--serif); font-size: 18px; color: var(--navy); padding: 18px 0 4px; display: flex; justify-content: space-between; align-items: baseline; }
.news h3 span { font-size: 11.5px; letter-spacing: .2em; color: var(--gray); font-family: var(--sans); }
.news-item { padding: 17px 0; border-bottom: 1px solid var(--line); }
.news-item time { font-size: 12.5px; letter-spacing: .1em; color: var(--gold-deep); }
.news-item p { font-size: 15.5px; margin-top: 5px; color: var(--ink); }
.news-item a { font-size: 12.5px; letter-spacing: .15em; color: var(--gray); }
.news-item a:hover { color: var(--navy); }

/* ===== 數據帶(滾動計數) ===== */
.stats { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.stats::before {
  content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border: 1px solid rgba(255,255,255,.07); border-radius: 50%;
}
.stats::after {
  content: ''; position: absolute; right: -40px; top: -200px; width: 560px; height: 560px;
  border: 1px solid rgba(255,255,255,.05); border-radius: 50%;
}
.stats h2 { color: #fff; max-width: 26em; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 60px; }
.stat b { font-family: var(--serif); font-weight: 300; font-size: 56px; letter-spacing: .01em; color: var(--gold-soft); }
.stat b i { font-style: normal; font-size: 22px; margin-left: 6px; color: rgba(255,255,255,.75); }
.stat p { color: rgba(255,255,255,.65); font-size: 14.5px; margin-top: 8px; }
.stat small { display: block; color: rgba(255,255,255,.38); font-size: 12px; margin-top: 4px; }

/* ===== 服務三磚(v0.5:照片卡——上圖下文,實拍 + 藏青漸層) ===== */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tile {
  background: #fff; border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.tile:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -24px rgba(7,42,78,.35); }
.tile .ph {
  height: 200px; background-size: cover; background-position: center; position: relative;
}
.tile .ph::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,42,78,.12) 40%, rgba(7,42,78,.5));
}
.tile .ph em {
  position: absolute; right: 22px; bottom: 10px; z-index: 1;
  font-family: var(--serif); font-style: normal; font-size: 40px;
  color: rgba(255,255,255,.92); text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.tile .tx { padding: 30px 30px 38px; display: flex; flex-direction: column; flex: 1; }
.tile h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--navy); margin-bottom: 12px; }
.tile p { color: var(--gray); font-size: 15px; flex: 1; }
.tile a { display: inline-block; margin-top: 20px; align-self: flex-start; font-size: 12.5px; letter-spacing: .22em; color: var(--navy); border-bottom: 1px solid var(--navy); padding-bottom: 3px; }
.tile a:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

/* ===== 客戶登入帶(v0.5:維港夜色 + 藏青濾色,白字) ===== */
.portal {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5,24,43,.94) 0%, rgba(5,24,43,.78) 55%, rgba(7,42,78,.62) 100%),
    url(../img/portal-night.jpg) center 60% / cover no-repeat,
    var(--navy-deep);
}
.portal .sec-kicker { color: var(--gold-soft); }
.portal h2 { color: #fff; }
.portal p { color: rgba(255,255,255,.72); margin-top: 14px; max-width: 34em; }
.portal-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }

/* ===== 子頁 Hero(v0.8:IFC 黃昏特寫實拍,暮色青藍+落日暖光;左壓暗保文字) ===== */
.page-hero {
  padding: 168px 0 76px; color: #fff; position: relative; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(4,24,46,.86) 0%, rgba(5,31,58,.55) 45%, rgba(10,60,109,.16) 100%),
    url(../img/page-hero2.jpg) center 38% / cover no-repeat,
    linear-gradient(158deg, #051f3a 0%, #0a3c6d 100%);
}
.page-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(184,160,119,.35) 45%, transparent 80%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.crumb { font-size: 13px; letter-spacing: .08em; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.crumb a:hover { color: #fff; }
.crumb i { font-style: normal; margin: 0 8px; opacity: .5; }
.page-hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4vw, 52px); letter-spacing: .03em; }
.page-hero .slogan { margin-top: 14px; font-size: 16.5px; color: rgba(255,255,255,.75); font-weight: 300; letter-spacing: .05em; }

/* 子頁章節錨點導航(黏性) */
.page-tabs { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.page-tabs .wrap { display: flex; gap: 34px; overflow-x: auto; }
.page-tabs a {
  padding: 17px 0 15px; font-size: 14.5px; letter-spacing: .06em; color: var(--gray);
  border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s;
}
.page-tabs a:hover, .page-tabs a.on { color: var(--navy); border-color: var(--accent); }

/* ===== 內文區塊 ===== */
.prose { max-width: 60em; }
.prose p { color: #45423c; margin: 0 0 20px; font-size: 16px; }
.prose ul, .prose ol { margin: 0 0 20px 1.4em; color: #45423c; }
.prose li { margin-bottom: 10px; padding-left: 4px; }
.prose .em-name { color: var(--navy); font-weight: 500; }
/* 交替橫條區塊(環球股票/經營理念/服務優勢等;v0.9 依 Skylar 意見:純白底,只留水印紋):
   水印瓦片(wm-tile.svg,如意鎖 480px + 920px 留白,透明度已烘進 SVG)右左兩列錯相平鋪——
   自右下角截邊位起,每隔 700px 右、左交替向上重複,板塊越長枚數越多;金髮絲線收邊。
   調間距:改兩列的 background-size 高度(=間距×2)與左列 bottom 相位(=間距-70)。 */
section.alt {
  background:
    url(../img/wm-tile.svg?v=15) right -70px bottom -70px / 480px 1400px repeat-y,
    url(../img/wm-tile.svg?v=15) left -80px bottom 630px / 480px 1400px repeat-y,
    #fff;
  border-top: 1px solid rgba(184,160,119,.32);
  border-bottom: 1px solid rgba(184,160,119,.22);
}
@media (max-width: 900px) { section.alt { background: #fff; } }
.two-col { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.two-col .sticky-side { position: sticky; top: 92px; }

/* 定義卡(藍籌/紅籌/國企;客戶/保富/銀行) */
.def-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 34px 0 8px; }
.def-cards.two { grid-template-columns: repeat(2, 1fr); }
.def-card { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--navy); padding: 30px 26px; }
section.alt .def-card { background: #fff; }
.def-card h4 { font-family: var(--serif); font-size: 18.5px; color: var(--navy); margin-bottom: 12px; font-weight: 600; }
.def-card p { color: var(--gray); font-size: 14.5px; margin: 0; }

/* 標籤雲(服務類別) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { padding: 8px 18px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--navy); letter-spacing: .04em; }

/* 表格(交易時間) */
.tbl-wrap { overflow-x: auto; margin: 30px 0 10px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.tbl th {
  background: var(--navy); color: #fff; font-weight: 400; letter-spacing: .06em;
  padding: 13px 18px; text-align: left; font-size: 13.5px;
}
.tbl td { padding: 12px 18px; border-bottom: 1px solid var(--line); color: #45423c; vertical-align: top; }
.tbl tr:nth-child(even) td { background: #f4f6fa; }
.tbl-note { font-size: 13px; color: var(--gray); margin-top: 12px; }

/* CTA 帶(開立帳戶) */
.cta-band { background: var(--navy-deep); color: #fff; text-align: center; padding: 90px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.7); margin-top: 16px; }
.cta-band .row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn { margin-top: 36px; }

/* 聯絡頁 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.c-list { list-style: none; margin-top: 30px; }
.c-list li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.c-list .k { color: var(--gray); flex: 0 0 5.5em; letter-spacing: .08em; }
.c-list a { color: var(--navy); border-bottom: 1px solid transparent; }
.c-list a:hover { border-color: var(--navy); }
.map-embed {
  /* v0.15:正式版內嵌 Google 地圖(原 .map-ph 佔位框已退役)。
     金髮絲線收邊呼應全站;iframe 本身無邊框,由容器出邊。 */
  border: 1px solid var(--line); border-top: 2px solid var(--gold);
  background: var(--bg-soft); min-height: 380px; overflow: hidden;
}
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 378px; border: 0; }
.job { border: 1px solid var(--line); border-top: 2px solid var(--navy); padding: 40px 42px; margin-top: 36px; background: #fff; }
.job h4 { font-family: var(--serif); font-size: 21px; color: var(--navy); font-weight: 600; }
.job h5 { font-size: 14px; letter-spacing: .14em; color: var(--gold-deep); margin: 26px 0 10px; font-weight: 500; }
.job ul { margin-left: 1.3em; color: #45423c; font-size: 15px; }
.job li { margin-bottom: 8px; }

/* ===== 保富觀點(advisory.html #insights,v0.12)=====
   週報終稿摘錄:核心判斷 = 藏青面板(呼應首頁數據帶)+ 金髮絲線 + 序號;
   觀點正文 = 衬線導語 + 高行距長文;本週關注沿用 .tbl。 */
.ins-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 42px; }
.ins-head h2 { margin: 0; }
.ins-meta { text-align: right; padding-bottom: 8px; }
.ins-meta b { display: block; font-family: var(--serif); font-weight: 600; font-size: 15.5px; color: var(--navy); letter-spacing: .04em; }
.ins-meta span { font-size: 12px; letter-spacing: .16em; color: var(--gold-deep); }
.core {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--navy-deep) 0%, #0b3d6e 100%);
  padding: 52px 56px 48px; margin-bottom: 26px;
}
.core::before {
  content: ''; position: absolute; right: -140px; top: -160px; width: 460px; height: 460px;
  border: 1px solid rgba(216,203,174,.14); border-radius: 50%; pointer-events: none;
}
.core::after {
  content: ''; position: absolute; right: -60px; top: -240px; width: 620px; height: 620px;
  border: 1px solid rgba(255,255,255,.05); border-radius: 50%; pointer-events: none;
}
.core-label { display: flex; align-items: baseline; gap: 16px; }
.core-label { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--gold-soft); letter-spacing: .06em; }
.core-label span { font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .3em; color: rgba(255,255,255,.42); }
.core-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; margin-top: 30px; position: relative; z-index: 1; }
.core-item { border-top: 1px solid rgba(184,160,119,.45); padding-top: 16px; }
.core-item i { font-style: normal; font-family: var(--serif); font-size: 14px; letter-spacing: .14em; color: var(--gold-soft); }
.core-item p { margin-top: 8px; font-size: 14.5px; line-height: 1.95; color: rgba(255,255,255,.86); }
.insight { padding: 38px 0 32px; border-bottom: 1px solid var(--line); }
.insight h4 { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--navy); margin-bottom: 14px; }
.insight h4::before {
  content: ''; display: inline-block; width: 26px; height: 2px; background: var(--gold);
  margin-right: 14px; vertical-align: middle;
}
.insight p { color: #45423c; font-size: 15.5px; line-height: 2.02; text-align: justify; max-width: 62em; }
.insight p b { color: var(--navy); font-weight: 600; }
.ins-note { margin-top: 26px; font-size: 12.5px; color: var(--gray-light); line-height: 1.9; }
.ins-note a { color: var(--gold-deep); border-bottom: 1px solid rgba(147,128,92,.5); }
.ins-note a:hover { color: var(--navy); border-color: var(--navy); }

/* 法務頁(v0.5 排版升級:提高行距、條目留白、金色節號;正文文字未動) */
.legal-prose { max-width: 54em; }
.legal-prose p { color: #45423c; margin-bottom: 26px; font-size: 15.5px; line-height: 2.05; text-align: justify; }
.legal-prose h3 {
  font-family: var(--serif); font-size: 19px; color: var(--navy); margin: 40px 0 14px;
  padding-left: 14px; border-left: 3px solid var(--gold);
}
.legal-prose ol { margin: 0 0 26px 1.5em; color: #45423c; font-size: 15.5px; line-height: 2; }
.legal-prose li { margin-bottom: 10px; }

/* ===== 頁尾 ===== */
footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 70px 0 38px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; }
footer h4 { font-family: var(--serif); color: #fff; font-size: 16.5px; margin-bottom: 16px; font-weight: 400; letter-spacing: .05em; }
footer li { list-style: none; padding: 4px 0; }
footer a:hover { color: #fff; }
footer .addr { line-height: 2; }
.legal {
  border-top: 1px solid rgba(255,255,255,.15); margin-top: 52px; padding-top: 26px;
  font-size: 12.5px; color: rgba(255,255,255,.45); line-height: 1.9;
  display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.legal .lnks a { margin-right: 18px; }
.legal .lnks a:hover { color: #fff; }

/* ===== 品牌設計頁(brand.html) ===== */
.brand-page .mono { font-family: 'IBM Plex Mono', Consolas, 'Courier New', monospace; }
.brand-card {
  background: #fff; border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 1px 2px rgba(35,38,42,.04), 0 14px 34px -20px rgba(35,38,42,.16);
}
.brand-showcase { margin-top: 10px; }
.brand-showcase .stage { background: var(--bg-soft); padding: 96px 56px; display: flex; align-items: center; justify-content: center; }
.brand-showcase .lockup { width: 100%; max-width: 560px; display: flex; align-items: center; gap: 6%; }
.brand-showcase .lockup .m { width: 29%; height: auto; }
.brand-showcase .lockup .w { width: 63%; height: auto; }
.brand-caption {
  border-top: 1px solid var(--line); padding: 16px 26px; background: #fff;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.brand-caption b { font-size: 13.5px; font-weight: 500; color: var(--gray); }
.brand-caption span { font-size: 12px; letter-spacing: .2em; color: var(--gray-light); text-transform: uppercase; }
.brand-duo { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; margin-top: 40px; }
.brand-duo.rev { grid-template-columns: 7fr 5fr; }
.brand-duo .plate { background: var(--bg-soft); border: 1px solid var(--line); padding: 56px 44px; display: flex; align-items: center; justify-content: center; }
.brand-duo .plate img { width: 62%; max-width: 220px; height: auto; }
.brand-duo .plate img.wide { width: 100%; max-width: 280px; }
.brand-elems { margin-top: 22px; }
.brand-elem { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; gap: 18px; align-items: baseline; }
.brand-elem:last-child { border-bottom: none; }
.brand-elem .no { font-family: var(--serif); font-size: 14px; color: var(--gold-deep); letter-spacing: .08em; white-space: nowrap; }
.brand-elem h5 { font-size: 15px; font-weight: 600; color: var(--ink); }
.brand-elem p { font-size: 13.5px; color: var(--gray); margin-top: 3px; }
.colour-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 40px; }
.colour-card .swatch { height: 110px; }
.colour-card .body { padding: 24px 28px; }
.colour-card .names { display: flex; align-items: baseline; gap: 12px; }
.colour-card .names b { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); }
.colour-card .names span { font-size: 12px; letter-spacing: .14em; color: var(--gray-light); text-transform: uppercase; }
.colour-card .desc { font-size: 13.5px; color: var(--gray); margin-top: 12px; }
.colour-spec {
  display: grid; grid-template-columns: auto 1fr; row-gap: 8px; column-gap: 20px;
  font-family: 'IBM Plex Mono', Consolas, 'Courier New', monospace; font-size: 12.5px; margin-top: 14px;
}
.colour-spec .k { color: var(--gray-light); letter-spacing: .06em; }
.colour-spec .v { color: #45423c; }
.biz-stage { background: #ece7dd; padding: 72px 48px 8px; }
.biz-cards { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.biz-card {
  width: 340px; height: 204px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.biz-card.front { background: #fcfbf8; box-shadow: 0 18px 40px -18px rgba(35,38,42,.35), 0 2px 6px rgba(35,38,42,.08); }
.biz-card.front .lockup { width: 78%; display: flex; align-items: center; gap: 6%; }
.biz-card.front .lockup .m { width: 29%; height: auto; }
.biz-card.front .lockup .w { width: 63%; height: auto; }
.biz-card.back {
  background: var(--navy); flex-direction: column; gap: 20px;
  box-shadow: 0 18px 40px -18px rgba(10,60,109,.55), 0 2px 6px rgba(35,38,42,.1);
}
.biz-card.back img { width: 64px; height: auto; }
.biz-card.back span { font-size: 10.5px; letter-spacing: .32em; color: var(--gold); text-transform: uppercase; text-indent: .32em; }
.biz-note { padding: 22px 48px 26px; text-align: center; font-size: 12.5px; color: var(--gray); }

/* ===== 響應式 ===== */
/* 中寬屏(筆電 100% 縮放)防擠:壓縮導航字距,再窄收整條導航 */
@media (max-width: 1440px) {
  .nav > li > a { padding: 10px 10px; font-size: 14.5px; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .btn-login { display: none; }
  .lang { display: none; }
}
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .about, .stat-row, .tiles, .foot-grid, .two-col, .contact-grid,
  .def-cards, .def-cards.two,
  .brand-duo, .brand-duo.rev, .colour-cards, .core-grid { grid-template-columns: 1fr; }
  .core { padding: 38px 26px 34px; }
  .ins-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .ins-meta { text-align: left; }
  .brand-showcase .stage { padding: 56px 28px; }
  .biz-stage { padding: 48px 20px 8px; }
  .portal-inner { flex-direction: column; align-items: flex-start; }
  .two-col .sticky-side { position: static; }
  .hero-inner { padding: 130px 0 90px; }
  .legal { flex-direction: column; }
}

/* ===== v0.17 登入入口二選一彈窗 ===== */
.portal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7, 26, 46, .62); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; transition: opacity .22s ease;
}
.portal-mask[hidden] { display: none; }
.portal-mask.on { opacity: 1; }
.portal-box {
  position: relative; width: 100%; max-width: 880px; max-height: calc(100vh - 48px);
  overflow-y: auto; background: var(--bg); border-top: 3px solid var(--gold);
  padding: 46px 48px 40px; box-shadow: 0 30px 80px rgba(7, 26, 46, .34);
  transform: translateY(14px) scale(.985); transition: transform .26s ease;
}
.portal-mask.on .portal-box { transform: none; }
.portal-box h3 { font-family: var(--serif); font-size: 30px; line-height: 1.35; color: var(--navy); }
.portal-sub { color: var(--gray); margin-top: 10px; }
.portal-x {
  position: absolute; top: 14px; right: 16px; width: 40px; height: 40px;
  border: 0; background: none; font-size: 28px; line-height: 1; color: var(--gray-light);
  cursor: pointer; transition: color .2s;
}
.portal-x:hover { color: var(--navy); }

.portal-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.portal-card {
  display: block; width: 100%; text-align: center; font: inherit; color: inherit; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-soft); padding: 26px 22px 24px;
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.portal-card:hover, .portal-card:focus-visible {
  border-color: var(--gold); transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(10, 60, 109, .12); outline: none;
}
.portal-card img { width: 172px; height: 172px; margin: 0 auto 14px; object-fit: contain; }
.portal-card h4 { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.portal-card p { font-size: 14px; color: var(--gray); margin-top: 6px; line-height: 1.7; }
.portal-go {
  display: inline-block; margin-top: 16px; font-size: 13px; letter-spacing: .06em;
  color: var(--gold-deep); border-bottom: 1px solid var(--gold-soft); padding-bottom: 3px;
}

.portal-form { display: flex; gap: 12px; margin-top: 26px; }
.portal-form input {
  flex: 1; font: inherit; padding: 13px 16px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--ink);
}
.portal-form input:focus { outline: none; border-color: var(--gold); }
.portal-form button {
  font: inherit; padding: 13px 30px; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; letter-spacing: .05em; transition: background .2s;
}
.portal-form button:hover { background: var(--navy-deep); }
.portal-err { margin-top: 12px; color: #a6382f; font-size: 14px; }
.portal-err[hidden] { display: none; }
.portal-note { margin-top: 18px; font-size: 13px; color: var(--gray-light); line-height: 1.8; }
.portal-back {
  margin-top: 26px; font: inherit; font-size: 14px; border: 0; background: none;
  color: var(--gray); cursor: pointer; padding: 0;
}
.portal-back:hover { color: var(--navy); }
.portal-who { font-size: 17px; color: var(--gray); margin-left: 10px; word-break: break-all; }

.portal-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.portal-opt {
  position: relative; display: block; border: 1px solid var(--line);
  background: var(--bg-soft); padding: 26px 24px; transition: border-color .22s, transform .22s;
}
a.portal-opt:hover { border-color: var(--gold); transform: translateY(-3px); }
.portal-opt h4 { font-family: var(--serif); font-size: 20px; color: var(--navy); }
.portal-opt p { font-size: 14px; color: var(--gray); margin-top: 6px; }
.portal-opt.off { opacity: .5; cursor: not-allowed; }
.portal-badge {
  position: absolute; top: 14px; right: 14px; font-style: normal; font-size: 11px;
  letter-spacing: .08em; padding: 3px 9px; background: var(--gold-soft); color: var(--navy-deep);
}
.portal-step[hidden] { display: none; }
body.portal-open { overflow: hidden; }

@media (max-width: 760px) {
  .portal-box { padding: 40px 24px 32px; }
  .portal-box h3 { font-size: 24px; }
  .portal-cards, .portal-opts { grid-template-columns: 1fr; gap: 16px; }
  .portal-card img { width: 130px; height: 130px; }
  .portal-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-mask, .portal-box { transition: none; }
}
