:root {
  --font-ui: "Aptos", "Segoe UI Variable", "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-heading: "Aptos Display", "Segoe UI Variable", "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --bg-main: #eef2f9;
  --bg-surface: #ffffff;
  --bg-elevated: #f7f9fd;
  --text-main: #1f2a37;
  --text-muted: #5b6472;
  --brand-1: #0f5cc0;
  --brand-2: #21a1e8;
  --brand-accent: #1ec6a4;
  --border-soft: #dbe4f2;
  --shadow-soft: 0 20px 40px rgba(21, 40, 74, 0.08);
  --shadow-card: 0 10px 24px rgba(27, 44, 76, 0.08);
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  padding-bottom: 88px;
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(circle at 12% -8%, rgba(33, 161, 232, 0.2), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(30, 198, 164, 0.18), transparent 32%),
    linear-gradient(180deg, #f4f7fc 0%, var(--bg-main) 45%, #ebf0f9 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #132033;
  font-family: var(--font-heading);
  font-weight: 650;
  letter-spacing: 0.01em;
}

p,
li,
a,
button,
input,
textarea,
select {
  font-family: var(--font-ui);
}

a {
  color: var(--brand-1);
  text-decoration: none;
}

a:hover {
  color: #0a4c9d;
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  box-shadow: 0 8px 18px rgba(14, 88, 183, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0d52ab 0%, #1b8fd0 100%);
}

.btn-outline-secondary {
  border: 1px solid #99aac5;
  color: #30486b;
  background: #fff;
}

.btn-outline-secondary:hover {
  border-color: #4f77af;
  color: #1b365d;
  background: #f4f8ff;
}

/* NAVBAR */

.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(90deg, rgba(14, 19, 31, 0.95), rgba(24, 34, 53, 0.95));
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(8, 13, 24, 0.24);
}

.navbar-wrapper .navbar {
  margin-bottom: 0;
  padding: 0;
}

.sf-nav-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  height: 56px;
  padding: 0 8px;
}

.navbar-brand {
  padding: 0;
  margin-right: 10px;
  display: flex;
  align-items: center;
  height: 56px;
}

.navbar-brand .brand-logo {
  display: block;
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.sf-nav-inner .navbar-collapse {
  flex-grow: 0;
}

.sf-nav-inner .navbar-nav {
  align-items: center;
  height: 56px;
}

.sf-nav-inner .navbar-nav .nav-link {
  display: flex;
  align-items: center;
  height: 56px;
  line-height: 1;
  padding: 0 14px;
  font-size: 1.02rem;
  font-weight: 500;
  color: #d5deec;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.sf-nav-inner .navbar-nav .nav-link.active {
  background: linear-gradient(180deg, rgba(17, 30, 48, 0.95), rgba(8, 18, 33, 0.95));
  color: #ffffff;
}

.sf-nav-inner .navbar-nav .nav-link:hover {
  color: #ffffff;
}

.sf-nav-inner .dropdown-menu {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 991.98px) {
  .sf-nav-inner {
    height: auto;
    min-height: 56px;
    padding: 0 12px;
  }

  .sf-nav-inner .navbar-collapse {
    flex-grow: 1;
  }

  .sf-nav-inner .navbar-nav {
    align-items: flex-start;
    height: auto;
    padding: 8px 0 12px;
  }

  .sf-nav-inner .navbar-nav .nav-link {
    height: auto;
    padding: 10px 0;
  }
}

/* PAGE SHELL */

.page-shell {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.4rem;
  margin-top: 1.4rem;
  margin-bottom: 1.5rem;
}

/* CAROUSEL */

.carousel {
  height: 430px;
  margin: 0 auto 34px;
  max-width: 1180px;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  box-shadow: 0 26px 46px rgba(20, 35, 65, 0.28);
}

.carousel .carousel-item {
  position: relative;
  height: 430px;
  background: #6f7480;
}

.carousel .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(10, 20, 36, 0.36), rgba(8, 17, 30, 0.08));
}

.carousel-inner > .carousel-item > img {
  width: 100%;
  max-width: 1100px;
  height: 430px;
  margin: 0 auto;
  object-fit: contain;
}

.carousel-caption {
  z-index: 2;
  bottom: 15%;
  text-shadow: none;
}

.carousel-caption h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 700;
}

.carousel-caption p {
  color: rgba(241, 246, 255, 0.94);
  font-size: 1.25rem;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
}

.carousel-control-prev,
.carousel-control-next {
  width: 9%;
}

/* MARKETING SECTION */

.marketing {
  margin-top: 1.2rem;
}

.marketing > .row {
  row-gap: 1.2rem;
}

.marketing .col-lg-4 {
  text-align: center;
}

.service-card {
  position: relative;
  height: 100%;
  padding: 2rem 1.2rem 1.3rem;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow-card);
}

.service-icon {
  position: absolute;
  top: -13px;
  left: 18px;
  min-width: 54px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service-image {
  border: 5px solid #eff4fd;
  box-shadow: 0 8px 20px rgba(17, 36, 67, 0.16);
}

.marketing h2 {
  margin-top: 1rem;
  margin-bottom: 0.8rem;
  font-size: 2rem;
}

.marketing .col-lg-4 p {
  margin-right: 10px;
  margin-left: 10px;
  color: var(--text-muted);
}

/* FEATURETTES */

.featurette-divider {
  margin: 42px 0;
  border-top: 1px solid #dce4f3;
}

.featurette-card {
  padding: 1.4rem;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f9fcff);
  box-shadow: var(--shadow-card);
}

.featurette-heading {
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0.005em;
  margin-bottom: 0.9rem;
}

.featurette-card .lead {
  color: var(--text-muted);
  font-size: 1.08rem;
}

.featurette-image {
  border-radius: 16px;
  border: 1px solid #dde5f2;
  box-shadow: var(--shadow-card);
}

.tech-list {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.tech-list li {
  margin-bottom: 0.42rem;
}

/* CONTENT CARDS (ABOUT / CONTACT / DISCLAIMER) */

.content-card,
.modern-card {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow-card);
}

.content-card {
  padding: 1.3rem 1.2rem;
}

.modern-card .card-header {
  border-bottom: 1px solid #e2e9f4;
  background: linear-gradient(180deg, #f5f9ff, #eef5ff);
  border-radius: 18px 18px 0 0;
}

.modern-card iframe {
  border-radius: 14px;
}

/* FOOTER */

.site-footer {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid #dce5f2;
  color: #677485;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--brand-1);
}

.site-footer a:hover {
  color: #0a4b9a;
  text-decoration: underline;
}

/* COOKIE CONSENT */

.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(16, 22, 33, 0.95);
  color: #f4f4f4;
  border-top: 1px solid #2f3b4d;
}

.cookie-consent-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-consent-text {
  margin: 0;
  font-size: 0.95rem;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-consent-actions .btn-link {
  color: #9ecbff;
  text-decoration: none;
}

.cookie-consent-actions .btn-link:hover {
  color: #c4e0ff;
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 98px;
  }

  .carousel,
  .carousel .carousel-item,
  .carousel-inner > .carousel-item > img {
    height: 330px;
  }

  .carousel-caption {
    bottom: 9%;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .page-shell {
    border-radius: 14px;
    padding: 1rem 0.95rem;
  }

  .cookie-consent-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 992px) {
  .featurette-heading {
    font-size: 2.35rem;
  }
}
