:root {
  --header-offset: 164px;
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #1a1f36;
  --text-light: #FFFFFF;
  --btn-radius: 8px;
}
body {
  padding-top: var(--header-offset);
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--secondary-color);
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background: var(--secondary-color);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.header-top {
  background: #0b1a2a;
  width: 100%;
  min-height: 44px;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}
.logo {
  color: var(--secondary-color);
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #26A9E0, #0b78a5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1.2;
}
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn {
  display: inline-block;
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--btn-radius);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  line-height: 1.4;
}
.btn-login {
  background: var(--login-color);
  color: var(--text-light);
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 124, 7, 0.4);
}
.btn-register {
  background: linear-gradient(135deg, var(--primary-color), #0b78a5);
  color: var(--text-light);
}
.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 169, 224, 0.4);
}
.main-nav {
  background: var(--primary-color);
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 52px;
  position: static;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  box-sizing: border-box;
  width: 100%;
}
.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}
.nav-link:hover {
  background: rgba(0, 0, 0, 0.1);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--secondary-color);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transition: all 0.3s ease;
}
.nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
  background: transparent;
  border: none;
}
.hamburger-menu .bar {
  width: 24px;
  height: 2px;
  background: var(--text-light);
  margin: 3px 0;
  transition: all 0.3s ease;
}
.hamburger-menu.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-buttons {
  display: none;
}
.site-footer {
  background: #0b1a2a;
  color: var(--text-light);
  padding: 0;
  margin-top: auto;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  box-sizing: border-box;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-logo {
  color: var(--text-light);
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #26A9E0, #0b78a5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}
.footer-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-column {
  display: flex;
  flex-direction: column;
}
.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav li {
  margin: 0;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.footer-nav a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}
.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 16px 0;
}
.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}
.footer-disclaimer {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

@media (max-width: 768px) {
  :root {
    --header-offset: 146px;
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
  .site-header {
    background: #0b1a2a;
  }
  .header-top {
    min-height: 60px;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding: 12px 15px;
    justify-content: space-between;
    gap: 10px;
  }
  .logo {
    font-size: 1.5rem;
    text-align: center;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .hamburger-menu {
    display: flex;
    order: 1;
    background: var(--primary-color);
    border-radius: 8px;
    padding: 10px 12px;
    margin-right: 0;
    width: auto;
  }
  .hamburger-menu .bar {
    background: var(--text-light);
    width: 22px;
    margin: 2px 0;
  }
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--secondary-color);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 70px;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
  }
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }
  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }
  .nav-link {
    color: #1a1f36;
    font-size: 1rem;
    width: 100%;
    padding: 12px 24px;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    transition: background 0.3s ease;
    box-sizing: border-box;
  }
  .nav-link:hover {
    background: #f5f5f5;
    padding-left: 28px;
  }
  .nav-link::after {
    display: none;
  }
  .mobile-menu-overlay {
    display: block;
    cursor: pointer;
  }
  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }
  .mobile-nav-buttons {
    display: block;
    background: #0b1a2a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
  }
  .mobile-buttons-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
  }
  .mobile-buttons-container .btn {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 0.85rem;
    max-width: 200px;
  }
  .site-footer {
    text-align: center;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 15px 15px;
  }
  .footer-bottom-container {
    padding: 0 15px;
    flex-direction: column;
    text-align: center;
  }
  .footer-title {
    text-align: left;
  }
  .footer-nav {
    text-align: left;
  }
  .footer-buttons {
    justify-content: center;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-container {
    gap: 4px;
    padding: 10px;
  }
  .nav-link {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  .header-container {
    padding: 12px 15px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
