@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --soft: #f8fafc;
  --primary: #003b95;
  --primary-dark: #00225c;
  --primary-light: #0052cc;
  --accent: #0c4fb4;
  --accent-hover: #1a63db;
  --font-main: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(32px, 4vw, 52px);
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
}

p {
  color: var(--muted);
}

/* ==========================================================================
   SITE HEADER & NAVIGATION (COMMON)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1010;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 5px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: height 0.3s ease;
}

.site-header.scrolled .header-container {
  height: 70px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 48px;
  width: auto;
  transition: filter 0.3s ease;
}

.site-header.scrolled .logo-link img {
  filter: none;
}

/* Scrolled Color Overrides */
.site-header.scrolled .nav-link {
  color: #1a202c;
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
  color: var(--accent);
}

.site-header.scrolled .btn-search {
  color: #1a202c;
}

.site-header.scrolled .mobile-toggle {
  color: #1a202c;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* --- Navigation Dropdown System (Desktop) --- */
.nav-item.dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

/* 2nd Level Dropdown Menu (二级菜单) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 210px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  padding: 10px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.dropdown-menu li {
  position: relative;
  margin: 0;
  padding: 0;
}

.dropdown-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #2d3748 !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: rgba(12, 79, 180, 0.05);
  color: var(--accent) !important;
  padding-left: 28px;
}

/* 3rd Level Dropright Menu (三级菜单) */
.dropdown-submenu {
  position: relative;
}

.submenu-arrow {
  font-size: 10px;
  color: #a0aec0;
}

.submenu-menu {
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  padding: 10px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.submenu-menu a {
  padding: 10px 24px;
  font-size: 13.5px;
}

/* Desktop Hover Triggers */
@media (min-width: 992px) {
  .nav-item.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
  }
  
  .dropdown-submenu:hover > .submenu-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
}

/* Nav Overlay Backdrop */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  z-index: 1000;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Sidebar Header (Hidden on desktop) */
.sidebar-header {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-search {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s ease;
}

.btn-search:hover {
  color: var(--accent);
}

.btn-quote {
  background-color: var(--accent);
  color: white;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  border: none;
  transition: all 0.3s ease;
}

.btn-quote:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 15px rgba(240, 100, 34, 0.4);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* ==========================================================================
   SITE FOOTER (COMMON)
   ========================================================================== */

.site-footer {
  background-color: #050b18;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col-info img {
  height: 48px;
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.footer-title {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

/* Footer Form */
.footer-quote-desc {
  font-size: 13px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.footer-form .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  margin-bottom: 10px;
}

.footer-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.08);
}

.footer-form textarea.form-control {
  min-height: 70px;
}

.footer-form button {
  width: 100%;
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.footer-form button:hover {
  background-color: var(--accent-hover);
}

/* Copyright Row */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS (COMMON HEADER & FOOTER)
   ========================================================================== */

@media (max-width: 1199px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 991px) {
  .header-actions {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .main-nav {
    display: block;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #ffffff;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: none;
    padding: 30px 24px 40px 24px;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1005;
    overflow-y: auto;
  }
  .main-nav.active {
    right: 0;
  }

  /* Mobile Sidebar Header Layout */
  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
  }
  .sidebar-logo {
    height: 32px;
    width: auto;
  }
  .sidebar-close-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #2d3748;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .sidebar-close-btn:hover {
    color: var(--accent);
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
  }
  .nav-list li {
    width: 100%;
  }
  .nav-link {
    color: #1a202c !important;
    padding: 10px 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }
  .nav-link:hover,
  .nav-link.active {
    color: var(--accent) !important;
  }
  .nav-link::after {
    display: none;
  }
  
  /* Mobile Accordion Styles */
  .main-nav .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: #f7fafc;
    width: 100%;
    padding: 5px 0;
    margin: 5px 0 10px 0;
    display: none;
    border-radius: 6px;
  }
  .main-nav .dropdown-menu li {
    width: 100%;
  }
  .main-nav .dropdown-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
  }
  .main-nav .dropdown-menu a:hover {
    background-color: transparent;
    padding-left: 20px;
  }
  
  .main-nav .dropdown-submenu {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .main-nav .submenu-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: #edf2f7;
    width: 100%;
    padding: 5px 0;
    margin: 5px 0 5px 0;
    display: none;
    border-radius: 6px;
  }
  .main-nav .submenu-menu a {
    padding: 8px 20px 8px 32px !important;
    font-size: 13.5px;
    color: #718096 !important;
  }
  
  /* Mobile arrow rotation */
  .dropdown-arrow.rotated,
  .submenu-arrow.rotated {
    transform: rotate(90deg) !important;
    color: var(--accent) !important;
  }
}

@media (max-width: 575px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

