:root {
  --primary: #0a5c8a;
  --primary-dark: #083d5c;
  --accent: #00b4d8;
  --accent-light: #90e0ef;
  --bg-light: #f0f7fa;
  --text: #2c3e50;
  --text-light: #6c757d;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(10,92,138,0.1);
  --shadow-hover: 0 8px 32px rgba(10,92,138,0.18);
  --radius: 12px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  padding: 0;
  min-height: 72px;
  transition: box-shadow 0.3s;
  align-items: center !important;
}
.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0 !important;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }
.navbar-brand img { height: 42px; width: auto; }
.nav-link {
  color: var(--text) !important;
  font-weight: 500;
  padding: 22px 20px !important;
  position: relative;
  transition: color 0.25s;
  font-size: 15px;
}
.nav-link:hover, .nav-link.active { color: var(--accent) !important; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 20px; right: 20px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, #0a5c8a 0%, #083d5c 40%, #062a44 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(0,180,216,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 80% 20%, rgba(144,224,239,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-bg {
  position: absolute; inset: 0;
  object-fit: cover;
  opacity: 0.12;
}
.hero-content { position: relative; z-index: 2; padding: 80px 20px 40px; }
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.hero .subtitle {
  font-size: clamp(14px, 2.5vw, 20px);
  opacity: 0.85;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-badges { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 20px 28px;
  min-width: 140px;
  transition: transform 0.3s, background 0.3s;
}
.hero-badge:hover { transform: translateY(-4px); background: rgba(255,255,255,0.18); }
.hero-badge .num {
  font-size: 36px; font-weight: 700; display: block;
  background: linear-gradient(135deg, var(--accent-light), var(--white));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-badge .label { font-size: 13px; opacity: 0.8; margin-top: 4px; }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}
.hero-scroll i { font-size: 24px; opacity: 0.6; color: #fff; }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 32px; font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.section-title .bar {
  width: 50px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-title p {
  color: var(--text-light);
  font-size: 15px;
  margin-top: 12px;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s, box-shadow 0.35s;
  background: var(--white);
  display: block;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.product-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.product-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover img { transform: scale(1.05); }
.product-card .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,42,68,0.8) 0%, transparent 60%);
  display: flex; align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s;
}
.product-card:hover .card-overlay { opacity: 1; }
.card-overlay span {
  color: #fff; font-size: 16px; font-weight: 600;
}
.product-card .card-body {
  padding: 16px 20px;
  text-align: center;
}
.product-card .card-body h5 {
  font-size: 15px; font-weight: 600;
  color: var(--primary);
  margin: 0;
}

/* ===== ABOUT ===== */
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.about-card h3 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 20px;
  position: relative;
  padding-left: 16px;
}
.about-card h3::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}
.about-card p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 16px;
  text-align: justify;
}
.about-card p:last-child { margin-bottom: 0; }
.about-icon-col { display: flex; align-items: center; justify-content: center; }
.about-icon-circle {
  width: 280px; height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 40px rgba(0,180,216,0.2);
}
.about-icon-circle i { font-size: 100px; color: rgba(255,255,255,0.9); }

/* ===== VALUES ===== */
.values { display: flex; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.value-tag {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-light);
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}
.value-tag i { color: var(--accent); }

/* ===== CONTACT ===== */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  height: 100%;
}
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.contact-item:last-child { border-bottom: none; }
.contact-item .icon-wrap {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}
.contact-item h6 {
  font-size: 13px; color: var(--text-light);
  margin-bottom: 4px; font-weight: 500;
}
.contact-item p {
  font-size: 15px; margin: 0;
  color: var(--text);
}
.contact-item a {
  color: var(--primary); text-decoration: none;
  transition: color 0.2s;
}
.contact-item a:hover { color: var(--accent); }

.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 350px;
}
.map-card img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.map-card:hover img { transform: scale(1.02); }

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 28px 0;
  text-align: center;
  font-size: 13px;
}
.footer a { color: var(--accent-light); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; border: none;
  box-shadow: 0 4px 16px rgba(0,180,216,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-2px); }

/* ===== FADE IN ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .navbar { align-items: flex-start !important; }
  .navbar-brand, .navbar-toggler { margin-top: 15px !important; }
  .navbar-collapse {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 8px 16px;
    margin-top: 4px;
  }
  .navbar-nav .nav-link { padding: 12px 8px !important; font-size: 15px; }
  .nav-link::after { display: none; }
}

@media (max-width: 768px) {
  .hero { min-height: 480px; }
  .hero-badges { gap: 16px; }
  .hero-badge { min-width: 100px; padding: 14px 18px; }
  .hero-badge .num { font-size: 28px; }
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 26px; }
  .about-card { padding: 24px; }
  .about-icon-circle { width: 180px; height: 180px; margin-bottom: 24px; }
  .about-icon-circle i { font-size: 60px; }
  .back-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

@media (max-width: 576px) {
  .navbar-brand img { height: 34px; }
  .hero h1 { font-size: 24px; }
  .hero .subtitle { font-size: 13px; }
}