:root {
  --navy: #0C447C;
  --navy-dark: #072F58;
  --navy-light: #185FA5;
  --gold: #BA7517;
  --gold-light: #D99A3E;
  --bg: #FFFFFF;
  --bg-soft: #F5F4F0;
  --text: #1F2937;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(12, 68, 124, 0.08);
  --shadow-lg: 0 10px 40px rgba(12, 68, 124, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.lang-en { display: none; }
body.en .lang-en { display: revert; }
body.en .lang-tc { display: none; }
span.lang-en, body.en span.lang-en { display: none; }
body.en span.lang-en { display: inline; }
body.en span.lang-tc { display: none; }
span.lang-tc { display: inline; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name .cn { font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: 1px; }
.brand-name .en { font-size: 10.5px; color: var(--text-muted); letter-spacing: 0.4px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 15px; color: var(--text);
  transition: all .2s;
}
.main-nav a:hover { color: var(--navy); background: var(--bg-soft); }
.main-nav a.active { color: var(--navy); font-weight: 700; }
.main-nav a.active::after {
  content: ""; display: block; height: 2px; margin-top: 2px;
  background: var(--gold); border-radius: 2px;
}

.lang-switch {
  margin-left: 12px;
  border: 1px solid var(--navy); border-radius: 20px;
  overflow: hidden; display: flex; cursor: pointer;
}
.lang-switch button {
  border: none; background: transparent; padding: 6px 14px;
  font-size: 13px; cursor: pointer; color: var(--navy);
  transition: all .2s; font-family: inherit;
}
.lang-switch button.on { background: var(--navy); color: #fff; }

.nav-toggle {
  display: none; border: none; background: none; cursor: pointer;
  width: 42px; height: 42px; position: relative;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  margin: 5px auto; transition: all .3s; border-radius: 2px;
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(217, 154, 62, 0.12);
}
.hero::after {
  content: ""; position: absolute; right: 80px; bottom: -160px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.hero-inner { padding: 96px 0 104px; position: relative; z-index: 1; max-width: 720px; }

/* ---- Hero carousel ---- */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero.has-carousel .hero-slides::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,36,66,0.92) 0%, rgba(12,68,124,0.82) 45%, rgba(12,68,124,0.45) 100%);
}
.hero.has-carousel::before, .hero.has-carousel::after { z-index: 1; pointer-events: none; }
.hero-slide-caption {
  position: absolute; right: 40px; bottom: 68px; z-index: 2;
  pointer-events: none;
}
.hero-slide-caption .cap {
  display: none; padding: 8px 18px; border-radius: 20px;
  background: rgba(6,36,66,0.55); border: 1px solid rgba(217,154,62,0.5);
  color: var(--gold-light); font-size: 13.5px; letter-spacing: 1px;
  backdrop-filter: blur(4px);
}
.hero-slide-caption .cap.is-active { display: inline-block; }
.hero-ctrl {
  position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.hero-dots { display: flex; gap: 10px; }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,255,255,0.4); cursor: pointer; transition: all .3s;
}
.hero-dots button.on { background: var(--gold-light); width: 26px; border-radius: 6px; }
.hero-arrow {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08); color: #fff; font-size: 14px; line-height: 1;
  cursor: pointer; transition: all .25s; display: inline-flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: rgba(217,154,62,0.5); border-color: var(--gold-light); }
.hero-eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: rgba(217,154,62,0.18); color: var(--gold-light);
  font-size: 13.5px; letter-spacing: 1px; margin-bottom: 22px;
  border: 1px solid rgba(217,154,62,0.35);
}
.hero h1 { font-size: 42px; line-height: 1.3; font-weight: 700; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p.sub { font-size: 17px; color: rgba(255,255,255,0.82); margin-bottom: 36px; max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 30px; font-size: 15.5px;
  cursor: pointer; transition: all .25s; border: none; font-family: inherit;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(186,117,23,0.35); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(12,68,124,0.3); }

/* ============ Stats strip ============ */
.stats-strip { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 40px 0 44px; gap: 28px; text-align: center;
  align-items: start;
}
.stat-item { padding: 0 6px; }
.stat-num { font-size: 32px; font-weight: 700; color: var(--navy); }
.stat-num em { font-style: normal; color: var(--gold); font-size: 22px; }
.stat-label { font-size: 15px; font-weight: 600; color: var(--text); margin-top: 2px; }
.stat-desc { font-size: 13px; line-height: 1.7; color: var(--text-muted); margin-top: 8px; }

/* ============ Sections ============ */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-eyebrow {
  color: var(--gold); font-size: 14px; letter-spacing: 2.5px;
  text-transform: uppercase; font-weight: 600; margin-bottom: 10px;
}
.section-head h2 { font-size: 32px; color: var(--navy-dark); font-weight: 700; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 16px; }

/* ============ Cards ============ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; transition: all .3s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(12,68,124,0.25); }
.card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.card .icon svg { width: 28px; height: 28px; stroke: #fff; }
.card h3 { font-size: 19px; color: var(--navy-dark); margin-bottom: 6px; }
.card .card-tag { font-size: 12.5px; color: var(--gold); font-weight: 600; letter-spacing: 1px; margin-bottom: 12px; }
.card p { font-size: 14.5px; color: var(--text-muted); }
.card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; color: var(--navy); font-size: 14.5px; font-weight: 600;
}
.card .card-link:hover { color: var(--gold); }

/* ============ Feature list (about) ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: 30px; color: var(--navy-dark); margin-bottom: 18px; }
.split p { color: var(--text-muted); margin-bottom: 14px; font-size: 15.5px; }
.feature-list { margin-top: 8px; }
.feature-list li {
  display: flex; gap: 14px; padding: 13px 0;
  border-bottom: 1px dashed var(--border); font-size: 15px;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .dot {
  flex: none; width: 22px; height: 22px; margin-top: 3px;
  border-radius: 50%; background: rgba(186,117,23,0.12);
  display: flex; align-items: center; justify-content: center;
}
.feature-list .dot::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}
.visual-panel {
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.visual-panel .vp-inner { text-align: center; color: #fff; padding: 40px; position: relative; z-index: 1; }
.visual-panel .vp-inner .big { font-size: 44px; font-weight: 700; color: var(--gold-light); }
.visual-panel .vp-inner .small { font-size: 15px; opacity: .85; margin-top: 6px; }
.visual-panel::before {
  content: ""; position: absolute; left: -60px; bottom: -60px;
  width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,0.06);
}

/* ============ Page hero (inner pages) ============ */
/* ============ Photo panels & banners ============ */
.photo-panel {
  position: relative; border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(12,68,124,0.18);
}
.photo-panel img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.photo-badge {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  background: rgba(6,36,66,0.78); backdrop-filter: blur(6px);
  border: 1px solid rgba(217,154,62,0.4);
  border-radius: 12px; padding: 16px 20px; color: #fff;
}
.photo-badge .big { font-size: 30px; font-weight: 700; color: var(--gold-light); line-height: 1.2; }
.photo-badge .small { font-size: 13.5px; opacity: .9; margin-top: 4px; }
.photo-banner {
  margin: -36px 0 0; position: relative; z-index: 2;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(12,68,124,0.2);
}
.photo-banner img { display: block; width: 100%; max-height: 380px; object-fit: cover; }

.page-hero {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: #fff; padding: 64px 0; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%; background: rgba(217,154,62,0.14);
}
.page-hero h1 { font-size: 34px; position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,0.8); margin-top: 8px; font-size: 16px; position: relative; z-index: 1; }
.breadcrumb { font-size: 13.5px; color: rgba(255,255,255,0.65); margin-bottom: 14px; position: relative; z-index: 1; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ============ Service detail blocks ============ */
.service-block {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px;
  padding: 44px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 30px;
}
.service-block .sb-head .num {
  font-size: 46px; font-weight: 700; color: rgba(12,68,124,0.12); line-height: 1;
}
.service-block .sb-head h3 { font-size: 22px; color: var(--navy-dark); margin: 10px 0 6px; }
.service-block .sb-head .tag { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.service-block .sb-head p { color: var(--text-muted); font-size: 14.5px; margin-top: 14px; }
.sb-items { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sb-item {
  background: var(--bg-soft); border-radius: 10px; padding: 18px 20px;
}
.sb-item h4 { font-size: 15px; color: var(--navy); margin-bottom: 5px; }
.sb-item p { font-size: 13.5px; color: var(--text-muted); }

/* ============ Team ============ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 22px; text-align: center; transition: all .3s;
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}
.team-card:nth-child(2n) .team-avatar { background: linear-gradient(135deg, var(--gold), var(--gold-light)); }
.team-card h3 { font-size: 17px; color: var(--navy-dark); }
.team-card .role { color: var(--gold); font-size: 13.5px; font-weight: 600; margin: 4px 0 10px; }
.team-card p { font-size: 13.5px; color: var(--text-muted); }

.job-list { display: grid; gap: 18px; }
.job-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 30px; transition: all .25s; flex-wrap: wrap;
}
.job-card:hover { border-color: var(--navy-light); box-shadow: var(--shadow); }
.job-card h3 { font-size: 17.5px; color: var(--navy-dark); margin-bottom: 4px; }
.job-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.job-meta span {
  font-size: 12.5px; padding: 4px 12px; border-radius: 14px;
  background: var(--bg-soft); color: var(--text-muted);
}
.job-card p { font-size: 14px; color: var(--text-muted); margin-top: 8px; max-width: 640px; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; }
.contact-info-card {
  background: linear-gradient(150deg, var(--navy-dark), var(--navy));
  border-radius: var(--radius); color: #fff; padding: 40px 36px;
  display: flex; flex-direction: column; gap: 4px;
}
.contact-info-card h3 { font-size: 21px; margin-bottom: 20px; }
.ci-row { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.ci-row:last-of-type { border-bottom: none; }
.ci-row .ci-icon {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
}
.ci-row .ci-icon svg { width: 20px; height: 20px; stroke: var(--gold-light); }
.ci-row .ci-label { font-size: 12.5px; color: rgba(255,255,255,0.6); }
.ci-row .ci-value { font-size: 14.5px; word-break: break-word; }
.placeholder-note {
  margin-top: 18px; font-size: 12.5px; color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.07); padding: 10px 14px; border-radius: 8px;
}

.contact-form {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 38px 36px; box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 21px; color: var(--navy-dark); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; color: var(--text); margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14.5px; font-family: inherit;
  transition: border-color .2s; background: #FBFBFA;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--navy-light); background: #fff;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--text-muted); margin-top: 12px; }

#map-container {
  width: 100%; height: 380px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); margin-top: 52px;
}

/* ============ CTA band ============ */
.cta-band {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  border-radius: 18px; color: #fff; text-align: center;
  padding: 60px 40px; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; left: -70px; top: -70px;
  width: 240px; height: 240px; border-radius: 50%; background: rgba(217,154,62,0.15);
}
.cta-band h2 { font-size: 28px; margin-bottom: 12px; position: relative; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 28px; position: relative; }

/* ============ Footer ============ */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); margin-top: 84px; }
.footer-main {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px; padding: 60px 0 44px;
}
.footer-brand img { height: 46px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13.5px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-col .addr { font-size: 13.5px; line-height: 1.8; }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.social-row a:hover { background: var(--gold); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; font-size: 13px; text-align: center; color: rgba(255,255,255,0.5);
}

/* ============ WhatsApp float ============ */
.wa-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4); transition: all .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .service-block { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; row-gap: 28px; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 16px 20px 24px; gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform .3s;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 13px 14px; font-size: 16px; }
  .main-nav a.active::after { display: none; }
  .lang-switch { margin: 12px 14px 0; align-self: flex-start; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 30px; }
  .hero-inner { padding: 64px 0 72px; }
  .cards-3 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 26px; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .sb-items { grid-template-columns: 1fr; }
  .brand-name .en { display: none; }
  .page-hero h1 { font-size: 27px; }
  .hero-slide-caption { display: none; }
  .hero-inner { padding: 64px 0 88px; }
  .photo-banner { margin-top: -24px; }
  .photo-banner img { max-height: 240px; }
  .photo-panel img { min-height: 240px; }
  .photo-badge { left: 12px; right: 12px; bottom: 12px; padding: 12px 16px; }
  .photo-badge .big { font-size: 24px; }
}
