/* ===== Leikang Electric - Common Styles ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0a1628;
  --navy-mid: #0f2040;
  --blue: #0066cc;
  --blue-dark: #0052a3;
  --blue-light: #4d9fff;
  --blue-pale: #e8f2ff;
  --blue-glow: rgba(0,102,204,0.10);
  --white: #ffffff;
  --gray-50: #f7f9fc;
  --gray-100: #eef2f7;
  --gray-200: #dde4ed;
  --gray-300: #b8c4d4;
  --gray-400: #8899ad;
  --gray-500: #607080;
  --gray-600: #455568;
  --gray-700: #374151;
  --gray-800: #1e2a3a;
  --gray-900: #0d1b2a;
  --green: #22a06b;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 8px 0;
  position: relative;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-right {
  display: flex;
  gap: 20px;
}

.top-bar-right a {
  font-size: 12px;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
}

.top-bar-right a:hover { color: var(--blue); }

/* ===== LANGUAGE DROPDOWN ===== */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 5px;
  background: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--gray-600);
  transition: all 0.25s ease;
  user-select: none;
}

.lang-trigger:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.lang-trigger .globe-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.lang-trigger .arrow-icon {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.25s ease;
}

.lang-dropdown.open .lang-trigger .arrow-icon {
  transform: rotate(180deg);
}

.lang-dropdown.open .lang-trigger {
  border-color: var(--blue);
  color: var(--blue);
  border-radius: 5px 5px 0 0;
  border-bottom-color: var(--white);
}

.lang-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  background: var(--white);
  border: 1px solid var(--blue);
  border-top: 1px solid var(--gray-200);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2px);
  transition: all 0.2s ease;
  z-index: 999;
}

.lang-dropdown.open .lang-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-panel-label {
  padding: 10px 14px 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gray-100);
}

.lang-options { padding: 6px 0; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.lang-option:hover {
  background: var(--blue-pale);
  color: var(--blue);
}

.lang-option.active {
  color: var(--blue);
  font-weight: 600;
}

.lang-option .check-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lang-option .check-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2.5;
  display: none;
}

.lang-option.active .check-icon svg {
  display: block;
}

/* ===== NAVIGATION ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  position: relative;
}

.nav-left {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 180px;
  height: 48px;
  background: url('../images/logo.png') center/contain no-repeat;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-text { display: none; }
.logo-text span { display: none; }

.nav-menu {
  display: flex;
  gap: 0;
  list-style: none;
  align-items: center;
  justify-content: center;
}

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

.nav-menu li a {
  display: block;
  padding: 24px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-menu li::after {
  content: '/';
  color: var(--gray-300);
  font-size: 14px;
  font-weight: 300;
  margin: 0 4px;
}

.nav-menu li:last-child::after {
  display: none;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--blue);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-menu li a:hover { color: var(--blue); }
.nav-menu li a:hover::after { transform: scaleX(1); }
.nav-menu li a.active { color: var(--blue); font-weight: 600; }
.nav-menu li a.active::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  z-index: 10;
}

.nav-search {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

.nav-search:hover {
  border-color: var(--blue);
  background: var(--blue-pale);
}

.nav-search svg {
  width: 18px;
  height: 18px;
  stroke: var(--gray-500);
  fill: none;
  stroke-width: 2;
}

.nav-search:hover svg { stroke: var(--blue); }

.nav-cta {
  padding: 10px 24px;
  background: var(--blue);
  color: var(--white) !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,102,204,0.25);
}

.nav-cta::after { display: none !important; }

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  margin: 5px 0;
  border-radius: 2px;
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 50%, #14325e 100%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0,102,204,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,102,204,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

.page-hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--blue);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.06;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.page-hero-content { position: relative; z-index: 2; }

.page-hero .ph-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0,102,204,0.15);
  border: 1px solid rgba(0,102,204,0.25);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.page-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== SECTION COMMON ===== */
.section-label {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin: 16px 0;
}

.section-desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.9;
  max-width: 520px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--blue);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,102,204,0.3);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(140deg, var(--navy) 0%, #0f2d5e 60%, #163d78 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0,102,204,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,102,204,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.cta-banner-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--blue);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.06;
  top: -100px;
  right: -100px;
}

.cta-inner { position: relative; z-index: 2; }

.cta-inner h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.cta-inner p {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.cta-inner .btn-primary { padding: 16px 40px; font-size: 15px; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
  margin-top: 16px;
  max-width: 300px;
}

.footer-brand .logo-icon {
  width: 200px;
  height: 56px;
  filter: brightness(0) invert(1);
}

.footer-col h5 {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }

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

.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color 0.25s ease;
}

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

.footer-credit {
  text-align: center;
  padding: 14px 0 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
}

.footer-credit a {
  color: rgba(255,255,255,0.2);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-credit a:hover { color: var(--blue-light); }

.footer-credit .credit-sep {
  margin: 0 8px;
  opacity: 0.3;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .menu-btn { display: block; }
  .container { padding: 0 24px; }
  .nav-left { position: static; }
  .nav-right { position: static; }
  .nav-inner { justify-content: space-between; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .lang-mobile { display: flex; }
  .lang-trigger span { font-size: 0; width: 0; display: none; }
  .lang-trigger .globe-icon { width: 18px; height: 18px; }
  .top-bar-inner { justify-content: flex-end; }
  .top-bar-right { display: none; }
}

.lang-mobile { display: none; padding: 8px 24px 6px; gap: 6px; border-top: 1px solid var(--gray-200); margin-top: 6px; }
.lang-mobile a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; font-weight: 500; color: var(--gray-600); text-decoration: none; border-radius: 8px; transition: all .15s; }
.lang-mobile a:hover { background: var(--blue-pale); color: var(--blue); }
.lang-mobile a.active { color: var(--blue); font-weight: 600; background: var(--blue-pale); }

/* ===== LANGUAGE FLAG BAR ===== */
.lang-section { padding: 28px 0 0; }
.lang-bar { display: flex; align-items: center; justify-content: center; gap: 10px; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; border: 1.5px solid var(--gray-200); border-radius: 40px; background: var(--white); color: var(--gray-500); font-size: 14px; font-weight: 600; text-decoration: none; transition: all .2s; cursor: pointer; }
.lang-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.lang-btn.active { border-color: var(--blue); color: var(--blue); background: #e8f0fe; }
.lang-btn .flag { display: block; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.lang-btn span { font-size: 14px; letter-spacing: .5px; }

/* ===== MOBILE NAV ===== */
.nav-menu.show {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 8px 0;
}
.nav-menu.show li::after { display: none; }
.nav-menu.show li a { padding: 14px 24px; }

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-col { text-align: center; }
  .footer-col h5 { font-size: 13px; }
  .footer-col li a { font-size: 12px; }
  .nav-menu.show li a { font-size: 13px; padding: 12px 20px; }
  .page-hero { padding: 36px 0 28px; }
  .page-hero h1 { font-size: 20px; }
  .page-hero p { font-size: 12px; line-height: 1.6; }
  .nav-cta { padding: 10px 16px; font-size: 12px; min-height: 40px; }
  .nav-search { width: 32px; height: 32px; }
  .nav-search svg { width: 14px; height: 14px; }
  .lang-trigger { font-size: 11px; padding: 4px 8px; }
  .lang-option { padding: 6px 10px; font-size: 11px; }
  .logo-icon { width: 130px; height: 36px; }
  .nav-inner { height: 56px; }
  .nav-menu.show { top: 56px; }
  .nav-menu li a { padding: 10px 12px; font-size: 12px; }
  .lang-btn { padding: 5px 12px; gap: 5px; }
  .lang-btn .flag { width: 20px; height: 14px; }
  .lang-btn span { font-size: 11px; }
  .lang-bar { gap: 8px; }
}

/* ===== SEARCH MODAL ===== */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  backdrop-filter: blur(4px);
}

.search-modal.show {
  display: flex;
}

.search-box {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.2s;
}

.search-input-wrap:focus-within {
  border-color: var(--blue);
}

.search-input-wrap svg {
  width: 20px;
  height: 20px;
  stroke: var(--gray-400);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  color: var(--gray-900);
}

.search-input::placeholder {
  color: var(--gray-400);
}

.search-close {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.search-close:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.search-results {
  margin-top: 16px;
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--gray-800);
  transition: background 0.15s;
}

.search-result-item:hover {
  background: var(--blue-pale);
}

.search-result-item .sr-title {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.search-result-item .sr-desc {
  font-size: 12px;
  color: var(--gray-500);
}

.search-hint {
  font-size: 13px;
  color: var(--gray-400);
  text-align: center;
  padding: 20px;
}
