:root {
  --navy: #0f2942;
  --navy-deep: #081b30;
  --gold: #f0b429;
  --gold-deep: #d99a0f;
  --sky: #2f80c0;
  --sky-light: #e8f2fb;
  --ink: #13262f;
  --muted: #5b6b76;
  --line: #e3e9ee;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(15, 41, 66, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
    "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
}
img, svg { max-width: 100%; display: block; }

.container { width: min(1140px, 92%); margin-inline: auto; }
.section { padding: 88px 0; }
.section-tint { background: #f0e0c0; }
#fleet { background: #f0e0c0; }
#licenses { background: #f0e0c0; }

h1, h2, h3 { line-height: 1.25; color: var(--navy); }
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 42px; }
#history .section-title { font-size: clamp(2.6rem, 4.6vw, 4rem); }
#history .timeline p { font-size: 1.2rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.container.nav { width: min(1360px, 97%); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { height: 40px; width: auto; flex: none; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.brand-name {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.brand-name::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold-deep);
  margin-top: 5px;
}
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.9rem; }
.nav-links a:hover { color: var(--gold-deep); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

.lang-switch {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-left: 12px;
}
.lang-btn {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
}
.lang-btn.active { background: var(--navy); color: #fff; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* Hero */
.hero {
  background:
    url("../assets/e888.png") center bottom / cover no-repeat;
  color: #fff;
  padding: 56px 0 88px;
  min-height: 820px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -22%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.25), transparent 70%);
  pointer-events: none;
}
.hero .eyebrow { color: var(--gold); font-size: 1.6rem; letter-spacing: 0.28em; }
@keyframes heroFlow {
  0%   { background-position: 50% 0%; }
  100% { background-position: 50% 100%; }
}
.hero h1 {
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  margin-bottom: 0;
  animation: heroFlow 3s linear infinite;
  background: linear-gradient(180deg, #ffffff 0%, #ffe9a8 25%, #c9890a 50%, #fff3c9 75%, #ffffff 100%);
  background-size: 100% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 3px 18px rgba(0, 0, 0, 0.85));
}
.hero h1 span {
  animation: heroFlow 3s linear infinite;
  background: linear-gradient(180deg, #ffffff 0%, #ffe9a8 25%, #c9890a 50%, #fff3c9 75%, #ffffff 100%);
  background-size: 100% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-brand,
.hero .eyebrow,
.hero .lead {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}
.hero-brand {
  margin: 0 0 12px;
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
}
.hero-zh { margin: 0.3em 0 0; font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: 0.3em; text-indent: 0.3em; color: #ffe08a; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85); }
.hero .lead { color: #cfe3f2; max-width: 640px; margin-bottom: 34px; }
.hero-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.hero-text { flex: 1; max-width: 640px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; padding-top: 0; }
.hero .btn-primary { background: #7ec8e8; color: var(--navy-deep); }
.hero .btn-primary:hover { background: var(--sky); color: #fff; }
.hero .btn-ghost { background: var(--navy); color: #fff; border-color: var(--navy); }
.hero .btn-ghost:hover { background: var(--navy-deep); color: #fff; }

/* Stats */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; padding: 28px 0; }
.stat { text-align: center; }
.stat-num { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--gold-deep); font-weight: 800; }
.stat span { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-4px); }
.card-media {
  height: 300px;
  position: relative;
  background: linear-gradient(135deg, #dceaf7, #f2f8fd);
  display: grid; place-items: center;
}
.card-media .tag {
  position: relative;
  z-index: 2;
  background: var(--navy); color: #fff;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
}
.card-media.media-hv {
  background: url("../assets/b206.jpg") center / cover;
}
.card-media.media-hv .tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
}
.card-media.media-hems {
  background: url("../assets/aw169.jpg") center / cover;
}
.card-media.media-hems .tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
}
.card-media.media-wind {
  background: url("../assets/offshore.jpg") center / cover;
}
.card-media.media-wind .tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
}
.card-media.media-vtol {
  background: url("../assets/unmanned.png") center / cover;
}
.card-media.media-vtol .tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
}
.card-media[data-slider] { cursor: pointer; }
.media-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(8, 27, 48, 0.75);
  color: #fff;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 999px;
}
.card h3 { font-size: 1.5rem; padding: 24px 28px 8px; }
.card p { color: var(--muted); padding: 0 28px 28px; font-size: 1.05rem; }

/* Fleet */
.fleet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.fleet-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}
.fleet-card.fleet-featured { border-color: var(--gold); border-top: 4px solid var(--gold); }
.fleet-card h3 { font-size: 2.1rem; line-height: 1.2; }
.fleet-title { cursor: pointer; }
.fleet-title::after {
  content: " · 查看照片";
  font-size: 0.75rem;
  color: var(--gold-deep);
  font-weight: 600;
  vertical-align: middle;
}
.fleet-type { color: var(--gold-deep); font-size: 1.05rem; font-weight: 700; }
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.spec-table th { color: var(--muted); font-weight: 600; width: 40%; }
.spec-table td { color: var(--ink); font-weight: 500; }
.fleet-note { color: var(--muted); font-size: 0.92rem; }

/* Timeline */
.timeline { list-style: none; position: relative; max-width: 720px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 70px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--sky-light);
}
.timeline li { display: flex; gap: 22px; padding: 14px 0; align-items: flex-start; }
.tl-year {
  flex: none;
  width: 64px; text-align: right;
  font-weight: 800; color: var(--gold-deep);
}
.timeline p { margin: 0; color: var(--ink); }

/* Licenses */
.lic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.lic-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
}
.lic-card h3 {
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.lic-card > p {
  display: inline-block;
  background: #fdf3dd;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 12px 0 18px;
}
.lic-card ul { list-style: none; display: grid; gap: 12px; }
.lic-card li {
  color: var(--ink);
  font-size: 1.12rem;
  padding-left: 20px;
  position: relative;
}
.lic-card li::before {
  content: "◆";
  color: var(--gold-deep);
  font-size: 0.7rem;
  position: absolute;
  left: 0;
  top: 4px;
}
.lic-addr { margin-top: 22px; color: var(--muted); font-size: 0.92rem; }

/* Locations */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.loc {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.loc span { color: var(--gold); font-weight: 700; font-size: 0.9rem; }
.loc p { margin: 0; font-size: 1rem; }
.loc[data-slider], .loc[data-map] { cursor: pointer; }
.loc-hint {
  margin-top: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.94rem; }

/* Contact */
.contact { background: var(--navy-deep); color: #fff; }
.contact .eyebrow { color: var(--gold); }
.contact .section-title { color: #fff; }
#contact .section-title { font-size: clamp(2.6rem, 4.4vw, 3.9rem); }
.nav-links a[href="#contact"] { font-size: 1.05rem; font-weight: 700; }
.contact p { color: #cfe3f2; font-size: 1.2rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.contact-list strong { color: var(--gold); margin-right: 6px; }
.contact-list li { font-size: 1.15rem; }
.contact-list .contact-phone { color: #fff; }
.contact-form {
  background: #fff; border-radius: var(--radius);
  padding: 28px; display: grid; gap: 8px;
}
.contact-form label { font-size: 1.1rem; color: var(--ink); font-weight: 600; }
.contact-form input, .contact-form textarea, .contact-form select {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 15px 17px; font-size: 1.15rem; width: 100%;
  font-family: inherit; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--gold);
}
.contact-form .btn { margin-top: 28px; justify-self: start; font-size: 1.3rem; padding: 16px 34px; }
.contact-form .cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.contact-form .form-status { margin-top: 10px; font-size: 0.9rem; min-height: 1.2em; }
.contact-form .form-status.ok { color: #1a7f37; font-weight: 600; }
.contact-form .form-status.err { color: #b3261e; font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; color: #9fb4c6; font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-inner a { color: var(--gold); text-decoration: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 27, 48, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90%;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-img.zoom {
  max-width: 96%;
  max-height: 94vh;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* Map modal */
.map-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 27, 48, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 110;
  padding: 30px;
}
.map-modal.open { display: flex; }
.map-frame {
  width: min(900px, 94vw);
  height: min(620px, 84vh);
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.map-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

@media (min-width: 1200px) {
  html { font-size: 17px; }
}
@media (max-width: 1199px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 16px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 18px 4%; display: none;
    box-shadow: var(--shadow);
    z-index: 30;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .lang-switch { margin-left: 10px; }
  .nav { padding: 12px 0; gap: 12px; }
  .brand-mark { height: 28px; }
  .brand-name { font-size: 1.15rem; }
}
@media (max-width: 900px) {
  .card-grid, .stats-grid, .loc-grid { grid-template-columns: repeat(2, 1fr); }
  .fleet-grid, .lic-grid, .contact-grid, .feature-grid { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column; gap: 24px; justify-content: center; }
  .hero-actions { align-items: flex-start; padding-top: 0; }
  .hero { padding: 96px 0 96px; min-height: 0; }
  .hero h1 { font-size: clamp(2.6rem, 9vw, 4.2rem); }
}
@media (max-width: 560px) {
  .card-grid, .loc-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section { padding: 54px 0; }
  .timeline::before { left: 8px; }
  .timeline li { gap: 10px; }
  .tl-year { width: auto; text-align: left; }

  .nav { padding: 10px 0; gap: 8px; }
  .brand { gap: 7px; }
  .brand-mark { height: 16px; }
  .brand-name { font-size: 0.8rem; letter-spacing: 0.01em; white-space: normal; }
  .lang-btn { padding: 3px 8px; font-size: 0.72rem; }

  .hero { padding: 28px 0 28px; min-height: 30vh; }
  .hero h1 { font-size: clamp(1.6rem, 8.5vw, 2.6rem); line-height: 1.15; }
  .hero-brand { font-size: clamp(0.85rem, 3vw, 1.1rem); letter-spacing: 0.22em; }
  .hero-zh { font-size: clamp(1.15rem, 6vw, 1.7rem); letter-spacing: 0.2em; text-indent: 0.2em; }
  .hero-inner { align-items: center; }
  .hero-text, .hero-zh { text-align: center; }
  .hero .eyebrow { font-size: 1.2rem; }
  .stat-num { font-size: clamp(1.6rem, 6vw, 2rem); }
  .stat span { font-size: 0.8rem; padding: 0 4px; }

  .contact-grid { gap: 28px; }
  .contact-form { padding: 20px; }
  .fleet-card { padding: 22px; }
  .lic-card { padding: 22px 22px; }
  .feature { padding: 20px; }
  .loc { padding: 18px; }
  .card-media { height: 200px; }
  .card-media.media-vtol { background-size: contain; background-repeat: no-repeat; }
  .card h3 { font-size: 1.25rem; padding: 18px 20px 6px; }
  .card p { padding: 0 20px 20px; font-size: 1rem; }

  .lightbox { padding: 14px; }
  .lightbox-img { max-width: 96%; max-height: 90vh; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.7rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 14px; font-size: 1.7rem; }
  .lightbox-count { bottom: 16px; }
}
