:root {
  color-scheme: light;
  --navy: #102136;
  --navy-2: #162b45;
  --night: #0b192a;
  --ink: #13243b;
  --gray: #45546a;
  --white: #ffffff;
  --page: #f7f8fa;
  --gold: #f0cc86;
  --gold-text: #745827;
  --line: #d9e0e9;
  --light-line: #435269;
  --light-muted: #c4cfdf;
  --sans: 'Inter', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --max: 1150px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--white); font: 1rem/1.6 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #bc8740; outline-offset: 4px; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { line-height: 1.18; }
address { font-style: normal; }
.wrap { width: min(var(--max), calc(100% - 5.4rem)); margin-inline: auto; }
.section-pad { padding-block: clamp(3.3rem, 7vw, 6.15rem); }
.skip { position: fixed; top: 0; left: 0; padding: .72rem 1rem; z-index: 20; transform: translateY(-105%); background: var(--gold); color: var(--night); }
.skip:focus { transform: none; }

.dark-stage { background: var(--navy); }
.masthead { border-bottom: 1px solid var(--light-line); background: var(--navy); }
.masthead-inner { min-height: 76px; display: flex; align-items: center; gap: 2rem; }
.identity { display: inline-flex; flex: 0 0 auto; gap: .7rem; align-items: center; font-weight: 660; }
.monogram { display: grid; place-items: center; width: 2.6rem; min-height: 2.6rem; border: 1px solid #ab976e; letter-spacing: .1em; text-indent: .1em; font: 600 1rem/1 var(--serif); color: var(--gold); }
.identity-name { letter-spacing: .025em; }
.nav { display: flex; align-items: center; gap: 1.65rem; margin-left: auto; font-size: .95rem; }
.nav a, .hero-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.nav a:hover, .hero-links a:hover, .registry a:hover { color: var(--gold); }
.language { flex: 0 0 auto; display: flex; gap: .1rem; padding: .2rem; border: 1px solid #69778c; border-radius: .4rem; }
.language button { padding: .15rem .55rem; min-width: 2.55rem; min-height: 2.45rem; border: 0; border-radius: .21rem; color: var(--white); background: transparent; font-size: .875rem; font-weight: 680; }
.language button[aria-pressed='true'] { background: var(--gold); color: var(--night); }

.hero { display: grid; align-items: center; grid-template-columns: minmax(0, 1.3fr) minmax(0, .96fr); gap: clamp(1.9rem, 7vw, 6.9rem); padding-block: clamp(2.7rem, 5.6vw, 5.4rem) clamp(2.8rem, 5.4vw, 5rem); }
.intro { min-width: 0; position: relative; }
.role { display: flex; gap: .75rem; align-items: center; color: var(--gold); font-size: .94rem; font-weight: 720; letter-spacing: .095em; text-transform: uppercase; }
.role-rule { width: 1.95rem; height: 1px; flex: none; background: currentColor; }
.hero h1 { display: grid; gap: .06em; margin: .78rem 0 .7rem; font: 500 clamp(2.95rem, 5.9vw, 6.2rem)/.97 var(--serif); letter-spacing: -.052em; }
.hero h1 span { color: #d2dfee; }
.chinese-name { font-size: clamp(1.3rem, 2.2vw, 2rem); letter-spacing: .14em; font-weight: 710; }
.firm { margin-top: 1.28rem; font-size: 1.13rem; letter-spacing: .01em; font-weight: 720; }
.representation { color: var(--light-muted); max-width: 47ch; margin-top: .22rem; }
.hero-actions, .contact-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .7rem; }
.hero-actions { margin-top: 1.58rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3.15rem; padding: .64rem 1.05rem; border: 1px solid transparent; border-radius: .32rem; line-height: 1.3; font-weight: 700; text-align: center; transition: background-color .2s, color .2s, border-color .2s; }
.button-gold { background: var(--gold); color: var(--night); }
.button-gold:hover { background: #ffdea0; }
.button-line { border-color: #7c8ca0; background: transparent; color: var(--white); }
.button-line:hover { background: #233b57; border-color: #a9b8ca; }
.button-navy { background: var(--navy); color: var(--white); }
.button-navy:hover { background: var(--navy-2); }
.icon { position: relative; display: inline-block; width: 1.04rem; height: 1.04rem; flex: 0 0 1.04rem; }
.icon-chat { border: 1.5px solid currentColor; border-radius: .34rem; }
.icon-chat::after { content: ''; position: absolute; width: .37rem; height: .29rem; bottom: -.17rem; left: .11rem; border-bottom: 1.5px solid currentColor; border-left: 1.5px solid currentColor; background: var(--gold); transform: skewY(-33deg); }
.button-gold:hover .icon-chat::after { background: #ffdea0; }
.icon-qr { color: var(--gold); background: repeating-conic-gradient(currentColor 0% 25%, transparent 0% 50%) 50% / 5px 5px; }
.icon-qr::after { content: ''; position: absolute; inset: 0; border: 1px solid currentColor; }
.hero-links { display: flex; gap: 1.15rem; flex-wrap: wrap; margin-top: .62rem; font-size: .9rem; font-weight: 650; color: var(--light-muted); }
.hero-links a + a::before { content: ''; width: 3px; height: 3px; margin-right: 1rem; background: var(--gold); border-radius: 50%; }
.hero-links a + a { display: inline-flex; }
.portrait { position: relative; isolation: isolate; margin: 0 .82rem .82rem 0; }
.portrait::before { content: ''; position: absolute; inset: .8rem -.8rem -.8rem .8rem; z-index: -1; border: 1px solid #b39766; }
.portrait img { width: 100%; aspect-ratio: .91; height: auto; object-fit: cover; object-position: 50% 19%; background: #f9f9f9; }

.registry { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.1rem; flex-wrap: wrap; padding-block: .85rem 1.05rem; border-top: 1px solid var(--light-line); }
.registry-number { display: flex; align-items: baseline; gap: .2rem .8rem; flex-wrap: wrap; font-size: .91rem; color: var(--light-muted); }
.registry-number strong { font-size: .98rem; color: var(--white); font-weight: 690; letter-spacing: .035em; }
.registry a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--white); font-size: .9375rem; font-weight: 650; text-decoration: underline; text-underline-offset: .26em; }

.services { background: var(--page); color: var(--ink); }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem 2.75rem; padding-bottom: 1.45rem; }
.section-head h2, .contact h2 { font: 500 clamp(2.4rem, 5.1vw, 4.15rem)/1.03 var(--serif); letter-spacing: -.04em; }
html[lang='zh-Hans'] .section-head h2, html[lang='zh-Hans'] .contact h2 { font-family: var(--sans); font-weight: 720; letter-spacing: 0; }
.section-head p { max-width: 47ch; color: var(--gray); }
.provider-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); text-decoration: underline; text-underline-offset: .21em; font-weight: 660; font-size: .9rem; }
.provider-link:hover { color: var(--gold-text); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .92rem; align-items: start; }
.service-card { padding: clamp(1.2rem, 2.45vw, 1.9rem); min-width: 0; background: var(--white); border: 1px solid var(--line); border-top: 2px solid #9d7a42; box-shadow: 0 6px 20px #12243a0a; }
.service-type { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; margin-bottom: 1.15rem; background: #f0eadf; color: #654c20; border-radius: .24rem; }
.service-type::before { content: ''; display: block; width: 1.1rem; height: 1.05rem; border: 1.5px solid currentColor; }
.service-type.general::before { border-radius: 45% 45% 55% 55%; border-top-width: 2px; }
.service-type.life::before { width: .85rem; height: .85rem; border-radius: 50%; box-shadow: 0 .6rem 0 -.17rem currentColor; transform: translateY(-.21rem); }
.service-type.investment::before { width: 1.2rem; border-width: 0 0 1.5px 1.5px; background: linear-gradient(145deg, transparent 43%, currentColor 44% 52%, transparent 53%) 0 0 / 100% 100%; }
.service-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.service-card p { color: var(--gray); }
.service-description { min-height: 5rem; }
.enquire { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .4rem; text-decoration: underline; text-underline-offset: .22em; font-weight: 690; color: #253e58; }
.enquire:hover { color: var(--gold-text); }
.providers { border-top: 1px solid var(--line); margin-top: .55rem; }
.providers summary { display: flex; justify-content: space-between; gap: .45rem; align-items: center; min-height: 2.8rem; list-style: none; cursor: pointer; font-size: .9rem; font-weight: 650; }
.providers summary::-webkit-details-marker { display: none; }
.providers summary::after { content: '+'; font-size: 1.28rem; color: var(--gold-text); }
.providers[open] summary::after { content: '−'; }
.providers .provider-note { font-size: .87rem; }
.providers ul { padding-left: 1.14rem; margin: .68rem 0 0; color: var(--gray); font-size: .9375rem; }
.providers li { padding-block: .23rem; overflow-wrap: anywhere; }

.contact { background: var(--night); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 9vw, 7.5rem); }
.contact-copy p { margin-top: .9rem; color: var(--light-muted); }
.contact-copy p span { margin-left: .25rem; }
.contact-actions { margin-top: 1.38rem; }
.contact-details { min-width: 0; }
.contact-details > div { display: grid; grid-template-columns: minmax(7.5rem, .6fr) minmax(0, 1fr); gap: .2rem 1rem; padding-block: .74rem .83rem; border-top: 1px solid var(--light-line); }
.contact-details > div:last-child { border-bottom: 1px solid var(--light-line); }
.contact-details dt { color: var(--gold); font-size: .9rem; font-weight: 650; }
.contact-details dd { overflow-wrap: anywhere; }
.contact-details a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; min-height: 4.35rem; border-top: 1px solid var(--light-line); color: var(--light-muted); font-size: .9rem; }
.footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.wechat-dialog { width: min(28rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); border: 1px solid var(--line); border-radius: .55rem; padding: 0; background: var(--white); color: var(--ink); box-shadow: 0 18px 80px #07132368; }
.wechat-dialog::backdrop { background: #081426c0; }
.dialog-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.38rem; }
.dialog-inner h2 { font-size: 1.45rem; padding-right: 2.15rem; align-self: flex-start; }
.dialog-inner p { color: var(--gray); }
.close { position: absolute; right: .42rem; top: .44rem; background: transparent; border: 0; border-radius: .22rem; color: var(--ink); font-size: 1.6rem; min-width: 2.85rem; min-height: 2.85rem; line-height: 1; }
.close:hover { background: #e8edf4; }
.qr-crop { position: relative; overflow: hidden; width: min(100%, 17.4rem); aspect-ratio: 1; border: 1px solid var(--line); background: var(--white); }
.qr-crop img { position: absolute; width: 181.54%; max-width: none; height: auto; top: -115.38%; left: -40.77%; }

@media (max-width: 820px) {
  .wrap { width: calc(100% - 3rem); }
  .hero { gap: 2rem; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-description { min-height: 0; }
  .contact-grid { gap: 2rem; }
  .contact-details > div { grid-template-columns: 1fr; }
}

@media (max-width: 610px) {
  .wrap { width: calc(100% - 2.3rem); }
  .masthead-inner { min-height: 63px; gap: .6rem; justify-content: space-between; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 2.04rem 2rem; gap: 1.02rem; }
  .hero h1 { font-size: clamp(2.75rem, 11.8vw, 4.55rem); }
  .firm { margin-top: .86rem; }
  .hero-actions { margin-top: 1.1rem; }
  .hero-actions .button { padding-inline: .88rem; }
  .hero-links { margin-top: .3rem; }
  .portrait { width: min(calc(100% - .82rem), 25.5rem); }
  .portrait img { aspect-ratio: 1.13; object-position: center 18%; }
  .registry { padding-block: .7rem .72rem; gap: .15rem; }
  .registry-number { gap: .18rem .65rem; }
  .section-head { flex-direction: column; gap: .6rem; padding-bottom: .8rem; }
  .service-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { gap: 1.7rem; }
  .footer { min-height: 3.6rem; }
}

@media (max-width: 355px) {
  .wrap { width: calc(100% - 1.8rem); }
  .identity { gap: .45rem; }
  .button { padding-inline: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
