:root { --header-offset: 122px; --primary-color: #2F6BFF; --accent-color: #6FA3FF; --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); --card-bg: #FFFFFF; --page-bg: #F4F7FB; --text-main: #1F2D3D; --text-black: #000000; --border-color: #D6E2FF; --glow-color: #A5C4FF; }

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body { font-family: 'Arial', sans-serif; margin: 0; padding-top: var(--header-offset); color: var(--text-main); background-color: var(--page-bg); line-height: 1.6; }

a { text-decoration: none; color: var(--primary-color); }
a:hover { text-decoration: underline; }

.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

.header-top { background-color: var(--primary-color); min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; width: 100%; }
.header-container { width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }

.logo { font-size: 28px; font-weight: bold; color: #FFFFFF; text-decoration: none; white-space: nowrap; }
.logo:hover { text-decoration: none; }

.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: var(--accent-color); padding: 0 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 5px; font-weight: bold; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.3s ease, box-shadow 0.3s ease; border: none; color: #FFFFFF; background: var(--button-gradient); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.btn:hover { background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%); box-shadow: 0 4px 8px rgba(0,0,0,0.3); text-decoration: none; }

.main-nav { background-color: var(--accent-color); min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; width: 100%; }
.nav-container { height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; }
.nav-link { color: var(--text-main); padding: 8px 15px; font-weight: 500; white-space: nowrap; transition: color 0.3s ease; }
.nav-link:hover { color: var(--primary-color); text-decoration: none; }

.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 24px; background: transparent; border: none; cursor: pointer; padding: 0; position: relative; z-index: 1001; }
.hamburger-menu span { display: block; width: 100%; height: 3px; background-color: #FFFFFF; border-radius: 3px; transition: all 0.3s ease; }
.hamburger-menu.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); z-index: 999; }

/* Footer Styles */
.site-footer { background-color: var(--text-main); color: #FFFFFF; padding: 40px 20px 20px; font-size: 15px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col { margin-bottom: 20px; }
.footer-logo { font-size: 24px; font-weight: bold; color: #FFFFFF; text-decoration: none; display: block; margin-bottom: 15px; }
.footer-logo:hover { text-decoration: none; }
.footer-description { color: var(--border-color); line-height: 1.8; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { font-size: 18px; color: var(--accent-color); margin-bottom: 15px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: var(--border-color); text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--primary-color); text-decoration: underline; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; color: var(--border-color); font-size: 14px; margin-top: 20px; }
.footer-bottom p { margin: 0; }

/* Mobile Styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }

  body { padding-top: var(--header-offset); }

  .header-top { min-height: 60px !important; height: 60px !important; }
  .header-container { padding: 0 15px; width: 100%; max-width: none; justify-content: space-between; }
  .logo { flex-grow: 1; text-align: center; font-size: 24px; }
  .hamburger-menu { display: flex; order: -1; }
  .desktop-nav-buttons { display: none !important; }

  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px; padding-right: 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: var(--accent-color);
  }
  .mobile-nav-buttons .btn {
    flex: 1; min-width: 0;
    max-width: calc(50% - 5px);
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .main-nav {
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 280px;
    height: calc(100vh - var(--header-offset));
    background-color: var(--text-main);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    z-index: 1001;
    overflow-y: auto;
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0);
  }
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    width: 100%; max-width: none;
  }
  .nav-link { color: #FFFFFF; width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-link:last-child { border-bottom: none; }

  .overlay.active { display: block; }

  .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; }

  .site-footer { padding: 30px 15px 15px; }
  .footer-top-grid { grid-template-columns: 1fr; max-width: none; }
  .footer-col { margin-bottom: 30px; }
  .footer-col:last-of-type { margin-bottom: 0; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
