:root {
  --navy: #0b3d91;
  --blue: #1f6feb;
  --sky: #eaf3ff;
  --gold: #d6a64b;
  --ink: #17345f;
  --muted: #64748b;
  --line: #dce7f5;
  --soft: #f6f9fe;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(11, 61, 145, .12);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section-pad { padding: 104px 0; }
.section-soft { background: var(--soft); }
.section-navy { background: linear-gradient(135deg, #082f73, #0b3d91 60%, #1257ad); color: #fff; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 9999; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(220,231,245,.8); }
.nav-wrap { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 215px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; font-weight: 700; font-size: 15px; }
.main-nav > a, .dropdown-toggle { color: #345171; }
.main-nav > a:hover, .main-nav > a:focus, .dropdown-toggle:hover, .dropdown-toggle:focus { color: var(--navy); }
.nav-cta { background: var(--navy); color: #fff !important; padding: 11px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(11,61,145,.2); }
.dropdown { position: relative; }
.dropdown-toggle { border: 0; background: transparent; cursor: pointer; font-weight: 700; padding: 16px 0; }
.dropdown-menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); width: 172px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .22s ease; }
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: 10px; }
.dropdown-menu a:hover { background: var(--sky); color: var(--navy); }
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; }

.hero { overflow: hidden; background: radial-gradient(circle at 90% 12%, #e4efff 0, transparent 32%), linear-gradient(#fff, #fbfdff); }
.hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: .16em; margin-bottom: 14px; }
h1, h2, h3 { line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(42px, 5vw, 68px); margin-bottom: 24px; letter-spacing: -.04em; }
h1 span { color: var(--navy); }
.hero-lead { max-width: 650px; font-size: 18px; color: #53677e; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 28px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 1px solid transparent; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; box-shadow: 0 12px 30px rgba(11,61,145,.22); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.trust-points { display: flex; flex-wrap: wrap; gap: 22px; color: #51657c; font-weight: 700; }
.hero-visual { position: relative; }
.hero-visual > img { filter: drop-shadow(0 30px 48px rgba(11,61,145,.12)); }
.floating-card { position: absolute; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 18px; }
.floating-card strong, .floating-card span { display: block; }
.floating-card strong { color: var(--navy); }
.floating-card span { color: var(--muted); font-size: 13px; }
.card-one { left: 2%; bottom: 14%; }
.card-two { right: 0; top: 13%; }

.stats-bar { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid > div { padding: 28px 24px; border-right: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; gap: 14px; }
.stats-grid > div:last-child { border-right: 0; }
.stats-grid strong { color: var(--gold); font-size: 26px; }
.stats-grid span { font-weight: 700; }

.split-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 80px; }
.section-heading h2 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 18px; letter-spacing: -.025em; }
.section-heading p { color: var(--muted); max-width: 700px; }
.section-heading.center { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.section-heading.center p { margin-inline: auto; }
.section-heading.light p { color: rgba(255,255,255,.75); }
.about-copy > p { color: #566b83; font-size: 17px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.values-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.values-grid span { color: var(--blue); font-weight: 900; }
.values-grid h3 { margin: 8px 0; font-size: 21px; }
.values-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { position: relative; padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 34px rgba(11,61,145,.06); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: #b9d2f5; }
.service-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--navy), var(--blue), var(--gold)); }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--sky); color: var(--navy); font-size: 22px; font-weight: 900; }
.service-no { position: absolute; top: 24px; right: 24px; color: #b7c8df; font-weight: 900; }
.service-card h3 { font-size: 24px; margin: 24px 0 10px; }
.service-card p { color: #5d7188; }
.service-card ul { margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid #edf2f8; list-style: none; }
.service-card li { position: relative; padding-left: 18px; margin: 8px 0; color: #3e5876; font-size: 14px; }
.service-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); position: absolute; left: 0; top: .75em; }

.feature-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 68px; align-items: center; }
.feature-visual img { border-radius: 30px; box-shadow: var(--shadow); }
.feature-copy h2 { font-size: clamp(34px, 4vw, 50px); }
.feature-copy > p { color: var(--muted); font-size: 17px; }
.check-list { margin-top: 28px; display: grid; gap: 12px; }
.check-list > div { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.check-list span { width: 42px; height: 42px; display: grid; place-items: center; background: var(--navy); color: #fff; border-radius: 12px; font-weight: 900; }
.check-list p { margin: 0; color: #536980; }

.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: process; }
.process-grid article { padding: 26px 22px; min-height: 220px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; }
.process-grid span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #17345f; font-weight: 900; }
.process-grid h3 { margin: 22px 0 10px; }
.process-grid p { color: rgba(255,255,255,.72); font-size: 14px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 40px rgba(11,61,145,.08); }
table { width: 100%; min-width: 820px; border-collapse: collapse; background: #fff; }
th, td { padding: 18px 20px; text-align: left; border-bottom: 1px solid #e8eef6; vertical-align: top; }
th { background: var(--navy); color: #fff; font-size: 14px; letter-spacing: .04em; }
tbody tr:hover { background: #f8fbff; }
td:first-child { font-weight: 900; color: var(--navy); }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contact-copy h2 { font-size: clamp(34px, 4vw, 50px); }
.contact-copy > p { color: var(--muted); }
.contact-cards { display: grid; gap: 12px; margin-top: 30px; }
.contact-cards div { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.contact-cards span, .contact-cards strong { display: block; }
.contact-cards span { font-size: 13px; color: var(--muted); }
.contact-cards strong { color: var(--navy); }
.contact-form { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-weight: 800; color: #3b5574; margin-bottom: 18px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; margin-top: 7px; border: 1px solid #cedced; border-radius: 12px; padding: 13px 14px; color: var(--ink); background: #fff; outline: none; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,111,235,.1); }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 600 !important; }
.consent input { width: auto; margin-top: 7px; }
.btn.full { width: 100%; }
.form-message { min-height: 26px; margin: 14px 0 0; font-size: 14px; font-weight: 700; }

.disclaimer { background: #edf3fb; border-top: 1px solid var(--line); }
.disclaimer .container { padding: 24px 0; display: grid; grid-template-columns: 100px 1fr; gap: 20px; }
.disclaimer strong { color: var(--navy); }
.disclaimer p { margin: 0; color: #60728a; font-size: 13px; }

.site-footer { background: #061f4a; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 44px; padding: 70px 0 50px; }
.footer-grid img { width: 205px; background: #fff; border-radius: 14px; }
.footer-grid p { color: rgba(255,255,255,.68); font-size: 14px; }
.footer-grid h3 { font-size: 15px; color: var(--gold); margin-bottom: 14px; }
.footer-grid a { display: block; margin: 7px 0; color: rgba(255,255,255,.75); font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.marquee { overflow: hidden; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); background: #082b65; }
.marquee-track { width: max-content; display: flex; animation: marquee 22s linear infinite; }
.marquee-track span { display: inline-block; padding: 14px 50px; white-space: nowrap; color: #dbe9ff; font-size: 14px; letter-spacing: .04em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.footer-bottom { background: #041835; }
.footer-bottom .container { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.56); font-size: 13px; }
.footer-bottom a { color: #fff; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .section-pad { padding: 82px 0; }
  .hero-grid, .split-grid, .feature-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 760px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; left: 20px; right: 20px; top: 96px; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav > a, .dropdown-toggle { width: 100%; padding: 12px 10px; text-align: left; }
  .nav-cta { text-align: center !important; }
  .dropdown-menu { position: static; width: 100%; transform: none !important; opacity: 1; visibility: visible; display: none; box-shadow: none; border: 0; padding: 0 0 4px 16px; }
  .dropdown.open .dropdown-menu { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > div:nth-child(2) { border-right: 0; }
  .stats-grid > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.15); }
  .values-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section-pad { padding: 66px 0; }
  .brand img { width: 176px; }
  .hero { padding-top: 56px; }
  h1 { font-size: 42px; }
  .hero-lead { font-size: 16px; }
  .floating-card { display: none; }
  .service-grid, .process-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .stats-grid > div:last-child { border-bottom: 0; }
  .contact-form { padding: 22px; }
  .disclaimer .container { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom .container { flex-direction: column; justify-content: center; padding: 16px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Contact form email integration */
.contact-cards a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact-cards a:hover { color: var(--blue); }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.form-note { margin: 12px 0 0; color: #6b7f96; font-size: 12px; line-height: 1.6; }
.contact-form button:disabled { cursor: wait; opacity: .72; transform: none; }
.form-message[data-status="success"] { color: #087443; }
.form-message[data-status="error"] { color: #b42318; }
.form-message[data-status="info"] { color: #0b3d91; }
