:root {
  --header-offset: 122px;
  --primary: #26A9E0;
  --primary-dark: #1a7ba8;
  --primary-light: #e3f4fc;
  --accent: #EA7C07;
  --white: #FFFFFF;
  --black: #000000;
  --text-dark: #1a1a2e;
  --text-light: #ffffff;
  --menu-bg: #0d1b2a;
}

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

body {
  padding-top: var(--header-offset);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--white);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.header-top {
  background: linear-gradient(135deg, #26A9E0 0%, #1a7ba8 100%);
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  min-height: 52px;
}

.logo {
  display: inline-block;
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: lowercase;
  line-height: 1.2;
}

.logo span {
  color: #f0c419;
}

.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  background: var(--primary);
}

.btn-login {
  background: #EA7C07;
}

.btn-login:hover {
  background: #c96605;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 124, 7, 0.4);
}

.btn-download {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.main-nav {
  background: #0d1b2a;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 20px;
  flex-wrap: nowrap;
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  padding: 12px 12px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.2px;
}

.nav-link:hover {
  color: #26A9E0;
  border-bottom-color: #26A9E0;
}

.nav-link.active {
  color: #fff;
  border-bottom-color: #26A9E0;
}

.mobile-nav-buttons {
  display: none;
}

.hamburger-menu {
  display: none;
}

.mobile-menu-overlay {
  display: none;
}

/* ===== FOOTER STYLES ===== */
.site-footer {
  background: #0d1b2a;
  color: #c0c0c0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 30px;
}

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

.footer-col {
  min-width: 0;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 1px;
}

.footer-logo span {
  color: #f0c419;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #8a9bb0;
  margin-top: 15px;
}

.footer-cert {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.cert-badge {
  background: rgba(38, 169, 224, 0.15);
  border: 1px solid rgba(38, 169, 224, 0.4);
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 12px;
  color: #26A9E0;
  font-weight: 500;
}

.footer-title {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #26A9E0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  color: #8a9bb0;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.8;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-nav a:hover {
  color: #26A9E0;
  padding-left: 5px;
}

.contact-line {
  font-size: 14px;
  color: #8a9bb0;
  line-height: 2;
}

.footer-disclaimer {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #6a7b90;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 15px 0;
  background: #0a1520;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.copyright {
  font-size: 14px;
  color: #6a7b90;
  line-height: 1.5;
}

.copyright a {
  color: #26A9E0;
  text-decoration: none;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
  :root {
    --header-offset: 146px;
  }
  
  .header-top {
    min-height: 52px;
  }
  
  .header-container {
    width: 100%;
    max-width: none;
    padding: 4px 15px;
    justify-content: space-between;
  }
  
  .logo {
    font-size: 22px;
    padding-left: 0;
    flex: 0 0 auto;
  }
  
  .desktop-nav-buttons {
    display: none;
  }
  
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 300px;
    height: 100vh;
    background: #0d1b2a;
    z-index: 1200;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: 60px;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    transform: translateX(-100%);
    border-top: none;
  }
  
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }
  
  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
  }
  
  .nav-link {
    display: block;
    width: 100%;
    padding: 15px 25px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid transparent;
    text-align: left;
  }
  
  .nav-link:hover {
    color: #26A9E0;
    border-left-color: #26A9E0;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
  }
  
  .nav-link.active {
    color: #fff;
    border-left-color: #26A9E0;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(38, 169, 224, 0.1);
  }
  
  .mobile-nav-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #26A9E0 0%, #1a7ba8 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 46px;
  }
  
  .mobile-nav-buttons .btn {
    flex: 1;
    max-width: 150px;
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1301;
    padding: 5px;
    position: absolute;
    top: 8px;
    left: 10px;
  }
  
  .hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
  }
  
  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Footer Mobile */
  .site-footer {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .footer-container {
    padding: 30px 15px 20px;
  }
  
  .footer-title {
    font-size: 15px;
    margin-bottom: 15px;
  }
  
  .footer-bottom-container {
    padding: 0 10px;
  }
  
  /* Content area protection */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  
  body {
    overflow-x: hidden;
  }
  
  body.no-scroll {
    overflow: hidden;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@media (max-width: 768px) {
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
/* 内容保护（系统追加，请勿删除） */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
