@import url('./calculator.css');

/*
 * 韋斯會計秘書服務有限公司 — 共用設計系統
 * 專業香港 TCSP 網站：深海藍、珍珠白、香檳金
 */
:root {
  --navy: #0f2c59;
  --navy-deep: #091c3a;
  --navy-soft: #183b70;
  --gold: #d4af37;
  --gold-light: #eedb99;
  --pearl: #fcfcfa;
  --mist: #f3f5f7;
  --line: #dce2e9;
  --ink: #172332;
  --muted: #5e6b78;
  --white: #ffffff;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --shadow: 0 16px 45px rgba(10, 32, 63, .11);
  --container: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--pearl);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

/* 基礎排版 */
.container { width: var(--container); margin: 0 auto; }
.section { padding: 88px 0; }
.section--mist { background: var(--mist); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-title {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.1vw, 2.6rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .02em;
}
.section-intro { max-width: 650px; margin: 16px 0 0; color: var(--muted); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.gold-rule { display: block; width: 55px; height: 3px; margin-top: 20px; background: var(--gold); }

/* 共用頁首 */
.topbar { background: var(--navy-deep); color: rgba(255,255,255,.84); font-size: .78rem; }
.topbar__inner { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.topbar__contact, .topbar__license { display: flex; align-items: center; gap: 18px; }
.topbar__contact a { transition: color .2s; }
.topbar__contact a:hover { color: var(--gold-light); }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar svg { width: 14px; height: 14px; fill: currentColor; }
.site-nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.98); border-bottom: 1px solid rgba(15,44,89,.1); transition: box-shadow .25s, background .25s; }
.site-nav.is-scrolled { box-shadow: 0 5px 23px rgba(9,28,58,.12); }
.site-nav__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 12px; }
.brand__mark { position: relative; display: grid; width: 43px; height: 43px; place-items: center; color: var(--gold); border: 1.5px solid var(--gold); font-family: Georgia, serif; font-size: 1.02rem; font-weight: 700; letter-spacing: -.12em; }
.brand__mark::before, .brand__mark::after { position: absolute; content: ""; background: var(--gold); }
.brand__mark::before { bottom: -1px; left: 7px; width: 11px; height: 1.5px; }
.brand__mark::after { top: -1px; right: 7px; width: 11px; height: 1.5px; }
.brand__name { display: block; color: var(--navy); font-family: var(--serif); font-size: 1.08rem; font-weight: 800; letter-spacing: .03em; line-height: 1.25; }
.brand__en { display: block; margin-top: 2px; color: #718092; font-family: Georgia, serif; font-size: .55rem; letter-spacing: .08em; line-height: 1.3; }
.nav-links { display: flex; align-items: stretch; align-self: stretch; gap: 2px; }
.nav-links a { position: relative; display: flex; align-items: center; padding: 0 12px; color: #2a3b4e; font-size: .9rem; font-weight: 700; white-space: nowrap; transition: color .2s; }
.nav-links a::after { position: absolute; right: 12px; bottom: 17px; left: 12px; height: 2px; content: ""; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; color: var(--navy); border-left: 1px solid var(--line); font-size: .77rem; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.nav-cta strong { display: block; margin-top: 2px; color: var(--gold); font-family: Georgia, serif; font-size: .89rem; letter-spacing: .03em; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 0; color: var(--navy); border: 1px solid var(--line); background: var(--white); }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 18px; height: 2px; margin: 4px auto; content: ""; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-toggle.is-open span { opacity: 0; }
.menu-toggle.is-open::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: 615px; display: flex; overflow: hidden; align-items: center; color: var(--white); background-color: var(--navy); background-position: center; background-size: cover; }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(6,22,47,.96) 0%, rgba(8,28,58,.85) 39%, rgba(10,34,69,.48) 70%, rgba(10,34,69,.2) 100%); }
.hero::after { position: absolute; z-index: -1; right: 8%; bottom: -120px; width: 400px; height: 400px; content: ""; border: 1px solid rgba(212,175,55,.37); border-radius: 50%; }
.hero__content { width: var(--container); padding: 76px 0 88px; }
.hero__kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--gold-light); font-size: .82rem; font-weight: 700; letter-spacing: .17em; }
.hero__kicker::before { width: 32px; height: 1px; content: ""; background: var(--gold); }
.hero h1 { max-width: 790px; margin: 0; font-family: var(--serif); font-size: clamp(2.5rem, 5.25vw, 4.75rem); font-weight: 700; letter-spacing: .04em; line-height: 1.25; text-shadow: 0 2px 16px rgba(0,0,0,.13); }
.hero p { max-width: 590px; margin: 23px 0 0; color: rgba(255,255,255,.86); font-size: clamp(1rem, 1.8vw, 1.17rem); line-height: 1.9; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 23px; border: 1px solid transparent; font-size: .9rem; font-weight: 800; transition: transform .18s, background .18s, border-color .18s, color .18s; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { color: var(--navy-deep); background: var(--gold); border-color: var(--gold); }
.btn--gold:hover { background: #e5c456; border-color: #e5c456; }
.btn--outline-light { color: var(--white); border-color: rgba(255,255,255,.6); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--navy); }
.btn--navy { color: var(--white); background: var(--navy); border-color: var(--navy); }
.btn--navy:hover { color: var(--navy); background: transparent; }
.btn--text { min-height: auto; padding: 0; color: var(--navy); font-size: .88rem; }
.btn--text span { color: var(--gold); font-size: 1.18em; transition: transform .2s; }
.btn--text:hover span { transform: translateX(4px); }
.hero__trust { position: absolute; right: 0; bottom: 0; left: 0; border-top: 1px solid rgba(255,255,255,.18); background: rgba(6,22,47,.42); backdrop-filter: blur(6px); }
.hero__trust-inner { width: var(--container); display: flex; align-items: center; gap: 38px; min-height: 66px; }
.hero__trust-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.84); font-size: .79rem; }
.hero__trust-item svg { width: 18px; height: 18px; color: var(--gold-light); fill: currentColor; }

/* 首頁服務和優勢 */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 360px; padding: 38px 34px 33px; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: box-shadow .22s, transform .22s; }
.service-card:hover { z-index: 1; box-shadow: var(--shadow); transform: translateY(-5px); }
.service-card__no { display: block; margin-bottom: 28px; color: var(--gold); font-family: Georgia, serif; font-size: .8rem; letter-spacing: .13em; }
.service-card__icon { width: 45px; height: 45px; margin-bottom: 23px; color: var(--navy); }
.service-card__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.35; }
.service-card h3 { margin: 0; color: var(--navy); font-family: var(--serif); font-size: 1.46rem; letter-spacing: .04em; }
.service-card p { margin: 14px 0 24px; color: var(--muted); font-size: .91rem; line-height: 1.8; }
.service-card .btn { position: absolute; bottom: 34px; }
.why-layout { display: grid; grid-template-columns: .87fr 1.13fr; gap: 80px; align-items: center; }
.why-panel { position: relative; padding: 47px; overflow: hidden; color: var(--white); background: var(--navy); }
.why-panel::before { position: absolute; right: -50px; bottom: -100px; width: 280px; height: 280px; content: ""; border: 1px solid rgba(212,175,55,.4); border-radius: 50%; }
.why-panel .eyebrow { color: var(--gold-light); }
.why-panel .section-title { color: var(--white); }
.why-panel p { position: relative; margin: 20px 0 0; color: rgba(255,255,255,.76); }
.why-list { display: grid; gap: 0; }
.why-item { display: grid; grid-template-columns: 60px 1fr; gap: 21px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.why-item:first-child { padding-top: 0; }
.why-item__number { display: grid; width: 48px; height: 48px; place-items: center; color: var(--gold); border: 1px solid var(--gold); font-family: Georgia, serif; font-size: .87rem; }
.why-item h3 { margin: 0; color: var(--navy); font-family: var(--serif); font-size: 1.22rem; }
.why-item p { margin: 7px 0 0; color: var(--muted); font-size: .9rem; }
.cta-band { padding: 42px 0; background: var(--gold); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band__copy { color: var(--navy-deep); }
.cta-band h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.7vw, 2rem); }
.cta-band p { margin: 4px 0 0; font-size: .89rem; }
.cta-band .btn { flex-shrink: 0; color: var(--white); border-color: var(--navy); background: var(--navy); }
.cta-band .btn:hover { color: var(--navy); background: transparent; }

/* 內頁一般視覺 */
.page-banner { padding: 50px 0 54px; color: var(--white); background: linear-gradient(116deg, var(--navy-deep), var(--navy) 70%, #24518a); }
.breadcrumbs { margin-bottom: 18px; color: rgba(255,255,255,.7); font-size: .8rem; }
.breadcrumbs a { color: var(--gold-light); }
.breadcrumbs span { margin: 0 8px; opacity: .7; }
.page-banner h1 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: .04em; line-height: 1.25; }
.page-banner p { max-width: 660px; margin: 12px 0 0; color: rgba(255,255,255,.78); font-size: .96rem; }
.inner-layout { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 52px; padding-top: 58px; padding-bottom: 88px; }
.sidebar { align-self: start; position: sticky; top: 104px; background: var(--mist); border-top: 3px solid var(--gold); }
.sidebar__title { padding: 18px 21px 14px; color: var(--navy); font-family: var(--serif); font-size: 1.15rem; font-weight: 800; border-bottom: 1px solid var(--line); }
.sidebar__links { padding: 7px 0; }
.sidebar__links a { display: flex; align-items: center; justify-content: space-between; padding: 12px 21px; color: #4f5f71; border-left: 3px solid transparent; font-size: .88rem; font-weight: 700; transition: color .2s, background .2s, border-color .2s; }
.sidebar__links a:hover, .sidebar__links a.is-active { color: var(--navy); border-left-color: var(--gold); background: var(--white); }
.sidebar__links a span { color: var(--gold); }
.sidebar__note { padding: 19px 21px 21px; color: var(--muted); border-top: 1px solid var(--line); font-size: .75rem; line-height: 1.7; }
.content h2 { margin: 0 0 17px; color: var(--navy); font-family: var(--serif); font-size: 1.72rem; letter-spacing: .03em; }
.content h3 { margin: 33px 0 12px; color: var(--navy); font-size: 1.07rem; font-weight: 800; }
.content p { margin: 0 0 16px; color: #465565; }
.content .lead { margin-bottom: 25px; color: #36495e; font-size: 1.05rem; line-height: 1.95; }
.content ul { padding: 0; margin: 19px 0 31px; list-style: none; }
.content li { position: relative; padding: 9px 0 9px 23px; color: #465565; border-bottom: 1px solid #edf0f3; }
.content li::before { position: absolute; top: 18px; left: 1px; width: 7px; height: 7px; content: ""; background: var(--gold); }
.compliance-note { position: relative; padding: 26px 29px 26px 88px; margin: 38px 0; color: #30465e; border-left: 4px solid var(--gold); background: #fffbec; }
.compliance-note__icon { position: absolute; top: 27px; left: 27px; display: grid; width: 38px; height: 38px; place-items: center; color: var(--navy); border: 1px solid var(--gold); font-size: 1.18rem; font-weight: 900; }
.compliance-note strong { display: block; margin-bottom: 6px; color: var(--navy); font-size: .96rem; }
.compliance-note p { margin: 0; color: #485866; font-size: .89rem; }
.pricing-wrap { margin-top: 35px; overflow-x: auto; border: 1px solid var(--line); }
.pricing-table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--white); font-size: .88rem; }
.pricing-table caption { padding: 21px 24px; color: var(--navy); background: var(--mist); caption-side: top; font-family: var(--serif); font-size: 1.22rem; font-weight: 800; text-align: left; }
.pricing-table th { padding: 14px 19px; color: var(--white); background: var(--navy); font-weight: 700; text-align: left; }
.pricing-table td { padding: 17px 19px; color: #435365; border-bottom: 1px solid var(--line); vertical-align: top; }
.pricing-table tr:last-child td { border-bottom: 0; }
.pricing-table td:last-child { color: var(--navy); font-family: Georgia, var(--serif); font-size: 1.03rem; font-weight: 700; white-space: nowrap; }
.table-note { margin-top: 12px !important; color: #7b8794 !important; font-size: .75rem; }
.steps { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 26px; border: 1px solid var(--line); }
.step { padding: 25px; background: var(--white); border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step__number { color: var(--gold); font-family: Georgia, serif; font-size: 1.4rem; }
.step h3 { margin: 14px 0 5px; font-family: var(--serif); }
.step p { margin: 0; color: var(--muted); font-size: .84rem; }
.comparison { width: 100%; margin: 22px 0; border-collapse: collapse; border: 1px solid var(--line); font-size: .86rem; }
.comparison th, .comparison td { padding: 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { color: var(--navy); background: var(--mist); font-weight: 800; }

/* 聯絡頁 */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.13fr) .87fr; gap: 50px; padding: 61px 0 88px; }
.form-card { padding: 37px; background: var(--white); box-shadow: var(--shadow); }
.form-card h2 { margin: 0; color: var(--navy); font-family: var(--serif); font-size: 1.8rem; }
.form-card > p { margin: 9px 0 29px; color: var(--muted); font-size: .89rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: .84rem; font-weight: 800; }
.field label span { color: #a53a3a; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 13px; color: var(--ink); border: 1px solid #ccd5de; border-radius: 0; outline: none; background: var(--white); font-size: .9rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 129px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.15); }
.form-card .btn { margin-top: 25px; }
.form-status { min-height: 24px; margin: 13px 0 0; color: #25704e; font-size: .82rem; font-weight: 700; }
.contact-aside { display: grid; align-content: start; gap: 21px; }
.info-card { padding: 29px; background: var(--mist); border-top: 3px solid var(--gold); }
.info-card h2 { margin: 0 0 18px; color: var(--navy); font-family: var(--serif); font-size: 1.42rem; }
.info-row { display: grid; grid-template-columns: 27px 1fr; gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); }
.info-row svg { width: 18px; height: 18px; margin-top: 4px; color: var(--gold); fill: currentColor; }
.info-row strong { display: block; color: var(--navy); font-size: .84rem; }
.info-row span { display: block; margin-top: 3px; color: var(--muted); font-size: .84rem; line-height: 1.7; }
.map-frame { min-height: 257px; overflow: hidden; background: #dfe6eb; border: 0; }
.map-frame iframe { display: block; width: 100%; height: 257px; border: 0; filter: grayscale(1) contrast(.95); }
.map-caption { padding: 13px 17px; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-top: 0; font-size: .75rem; }

/* Footer */
.site-footer { color: rgba(255,255,255,.72); background: var(--navy-deep); }
.footer-main { display: grid; grid-template-columns: 1.35fr .65fr 1fr; gap: 58px; padding: 58px 0 45px; }
.footer-brand .brand__name { color: var(--white); }
.footer-brand .brand__en { color: rgba(255,255,255,.47); }
.footer-brand p { max-width: 360px; margin: 20px 0 0; color: rgba(255,255,255,.61); font-size: .82rem; line-height: 1.85; }
.footer-heading { margin: 4px 0 18px; color: var(--gold-light); font-size: .82rem; font-weight: 800; letter-spacing: .08em; }
.footer-links { display: grid; gap: 7px; }
.footer-links a { color: rgba(255,255,255,.67); font-size: .82rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact { display: grid; gap: 13px; }
.footer-contact div { display: grid; grid-template-columns: 20px 1fr; gap: 9px; font-size: .81rem; line-height: 1.65; }
.footer-contact svg { width: 14px; height: 14px; margin-top: 5px; color: var(--gold); fill: currentColor; }
.footer-bottom { padding: 19px 0; border-top: 1px solid rgba(255,255,255,.13); }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 26px; color: rgba(255,255,255,.48); font-size: .72rem; line-height: 1.7; }
.footer-disclaimer { max-width: 700px; }

/* RWD */
@media (max-width: 1050px) {
  .site-nav__inner { gap: 12px; }
  .nav-links a { padding: 0 8px; font-size: .82rem; }
  .nav-links a::after { right: 8px; left: 8px; }
  .nav-cta { padding-left: 11px; font-size: .7rem; }
  .why-layout { gap: 48px; }
}
@media (max-width: 860px) {
  :root { --container: min(100% - 36px, 680px); }
  .topbar__license { display: none; }
  .topbar__inner { justify-content: center; }
  .site-nav__inner { min-height: 72px; position: relative; }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; right: -18px; left: -18px; display: grid; max-height: 0; overflow: hidden; background: var(--white); box-shadow: 0 12px 24px rgba(9,28,58,.12); opacity: 0; transition: max-height .3s ease, opacity .24s; }
  .nav-links.is-open { max-height: 430px; opacity: 1; }
  .nav-links a { min-height: 47px; padding: 0 24px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .hero { min-height: 584px; }
  .hero__trust-inner { gap: 17px; min-height: 70px; }
  .hero__trust-item { font-size: .7rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 285px; }
  .why-layout, .contact-layout { grid-template-columns: 1fr; gap: 33px; }
  .why-panel { padding: 37px; }
  .inner-layout { grid-template-columns: 1fr; gap: 34px; }
  .sidebar { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-main { grid-template-columns: 1.2fr .8fr; gap: 35px; }
  .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  :root { --container: calc(100% - 32px); }
  body { font-size: 15px; }
  .topbar__contact { gap: 12px; }
  .topbar__item { font-size: .69rem; }
  .topbar__contact .topbar__item:last-child { display: none; }
  .brand__name { font-size: .98rem; }
  .brand__en { max-width: 165px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero { min-height: 555px; background-position: 57% center; }
  .hero__content { padding-top: 57px; padding-bottom: 110px; }
  .hero h1 { font-size: 2.32rem; }
  .hero__trust { display: none; }
  .section { padding: 61px 0; }
  .section-heading { display: block; margin-bottom: 29px; }
  .section-title { font-size: 1.76rem; }
  .service-card { min-height: 276px; padding: 31px 26px 28px; }
  .why-panel { padding: 30px; }
  .why-item { grid-template-columns: 47px 1fr; gap: 16px; }
  .why-item__number { width: 39px; height: 39px; }
  .cta-band__inner { display: block; }
  .cta-band .btn { width: 100%; margin-top: 18px; }
  .page-banner { padding: 39px 0 42px; }
  .inner-layout, .contact-layout { padding-top: 42px; padding-bottom: 62px; }
  .content h2 { font-size: 1.5rem; }
  .compliance-note { padding: 76px 21px 21px; }
  .compliance-note__icon { top: 20px; left: 21px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .form-card { padding: 27px 21px; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; padding: 46px 0 36px; }
  .footer-contact { grid-column: auto; }
  .footer-bottom__inner { display: block; }
  .footer-bottom__inner p + p { margin-top: 9px; }
}
