:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --border: #e3e8ef;
  --text: #1f2b38;
  --muted: #5c6b78;
  --primary: #0b3b61;
  --primary-dark: #072c49;
  --accent: #0f9fd7;
  --accent-dark: #0b82b0;
  --accent-soft: #e8f5fb;
  --amber: #ffcc4c;
  --navy: #0a2a44;
  --shadow-sm: 0 1px 3px rgba(11, 59, 97, 0.08);
  --shadow-md: 0 6px 20px rgba(11, 59, 97, 0.12);
  --radius: 10px;
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  white-space: nowrap;
}

.brand-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: #a9c4d8;
  letter-spacing: 0.4px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav > ul > li {
  position: relative;
}

.site-nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 6px;
  color: #dbe7f1;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.dropdown .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.dropdown:hover .submenu,
.dropdown.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  color: var(--text);
  font-weight: 500;
}

.submenu a:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  color: #fff;
  font-size: 1.1rem;
  padding: 6px 12px;
  cursor: pointer;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: #c6d3df;
  margin-top: 64px;
  font-size: 0.92rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 32px;
  padding: 48px 20px 32px;
}

.footer-inner h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.footer-inner ul {
  list-style: none;
}

.footer-inner ul li {
  margin-bottom: 8px;
}

.footer-inner a {
  color: #a9c4d8;
}

.footer-inner a:hover {
  color: var(--amber);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #8fa6b8;
}

/* ===== Page hero / banner ===== */
.page-hero {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 55%, #0d4f7d);
  color: #fff;
  padding: 56px 0;
  margin-bottom: 40px;
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-hero p {
  color: #cfe0ee;
  max-width: 720px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #9fc0d6;
  margin-bottom: 10px;
}

.breadcrumb a {
  color: var(--amber);
}

/* ===== Sections ===== */
.section {
  padding: 20px 0;
}

.section-title {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title .accent {
  color: var(--accent-dark);
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 760px;
}

.text-center {
  text-align: center;
}

/* ===== Hero (home) ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #0d5a8c 100%);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero p {
  color: #d5e5f2;
  font-size: 1.08rem;
  margin-bottom: 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.hero-visual {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 18px;
}

.hero-visual img,
.hero-visual video {
  border-radius: 6px;
  width: 100%;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--amber);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: #ffd76a;
  transform: translateY(-1px);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-blue {
  background: var(--accent);
  color: #fff;
}

.btn-blue:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

/* ===== Cards / grids ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-img {
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 20px;
}

.card-img img {
  max-height: 230px;
  object-fit: contain;
}

.card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.card-body p {
  color: var(--muted);
  font-size: 0.94rem;
  flex: 1;
  margin-bottom: 16px;
}

/* ===== Feature panels ===== */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.panel h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.15rem;
}

/* ===== Product page layout ===== */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 88px;
}

.product-gallery .frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.product-meta h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.feature-list {
  list-style: none;
  margin: 16px 0;
}

.feature-list li {
  padding: 9px 0 9px 30px;
  border-bottom: 1px solid var(--border);
  position: relative;
  color: var(--text);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 9px;
  color: var(--accent);
  font-weight: 700;
}

.feature-list li:last-child {
  border-bottom: none;
}

.doc-links {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.info-line {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.info-line .label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.info-line .value {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
}

.info-line .value a {
  color: var(--accent-dark);
}

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--primary-dark), var(--accent-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}

.cta-band h2 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.cta-band p {
  max-width: 600px;
  margin: 0 auto 22px;
  color: #dceaf5;
}

/* ===== Callout ===== */
.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 20px 0;
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero-inner,
  .product-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    display: none;
    box-shadow: var(--shadow-md);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }

  .dropdown .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    margin: 4px 0 0 16px;
  }

  .submenu a {
    color: #dbe7f1;
  }

  .submenu a:hover {
    background: transparent;
    color: var(--amber);
  }
}

@media (max-width: 600px) {
  .page-hero {
    padding: 40px 0;
  }

  .page-hero h1 {
    font-size: 1.6rem;
  }

  .hero {
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .cta-band {
    padding: 28px 20px;
  }
}