:root {
  --header-offset: 122px;
}
body {
  padding-top: var(--header-offset);
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #08162B;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid #244D84;
}
.header-top {
  background: linear-gradient(90deg, #08162B 0%, #113B7A 100%);
  min-height: 68px;
  height: 68px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid #1B3357;
}
.header-container {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 30px;
  padding-right: 30px;
}
.logo {
  display: block;
  color: #F3F8FF;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(79, 168, 255, 0.4);
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover {
  color: #F2C14E;
  transition: color 0.2s;
}
.logo img {
  display: block;
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none;
  min-height: 48px;
}
.main-nav {
  background-color: #0A1B3B;
  min-height: 52px;
  height: 52px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-top: 1px solid #244D84;
}
.nav-container {
  box-sizing: border-box;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 0 20px;
  overflow: hidden;
}
.nav-link {
  display: block;
  color: #AFC4E8;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-link:hover {
  color: #F3F8FF;
}
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-dang-ky {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  padding: 9px 20px;
  font-size: 0.9rem;
  border-color: #4FA8FF;
  box-shadow: 0 2px 8px rgba(43, 115, 246, 0.3);
}
.btn-dang-ky:hover {
  box-shadow: 0 4px 16px rgba(79, 168, 255, 0.5);
  transform: translateY(-1px);
}
.btn-dang-nhap {
  background: linear-gradient(180deg, #F2C14E 0%, #7A5C15 100%);
  color: #08162B;
  padding: 9px 20px;
  font-size: 0.9rem;
  border-color: #F2C14E;
  box-shadow: 0 2px 8px rgba(242, 193, 78, 0.2);
}
.btn-dang-nhap:hover {
  box-shadow: 0 4px 16px rgba(242, 193, 78, 0.4);
  transform: translateY(-1px);
}
.overlay {
  display: none;
}
.site-footer {
  background-color: #08162B;
  color: #AFC4E8;
  border-top: 3px solid #1D5FD1;
  font-size: 0.85rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 25px 0;
}
.footer-col {
  min-width: 0;
}
.footer-about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-logo {
  display: inline-block;
  color: #F3F8FF;
  font-size: 1.7rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 1px;
}
.footer-logo:hover {
  color: #F2C14E;
  transition: color 0.2s;
}
.footer-description {
  line-height: 1.6;
  margin: 0;
  color: #AFC4E8;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
.footer-title {
  color: #F3F8FF;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav li {
  margin: 0;
}
.footer-nav a {
  color: #AFC4E8;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: #F2C14E;
}
.footer-dynamic-col {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.footer-dynamic-col .footer-slot-anchor-inner {
  width: 100%;
}
.footer-mid {
  padding: 15px 0;
}
.footer-bottom {
  border-top: 1px solid #1B3357;
  padding: 15px 20px;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  color: #AFC4E8;
}
.footer-slot-anchor-inner {
  min-height: 1px;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }
  .header-top {
    min-height: 60px !important;
    height: 60px !important;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
  }
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 56px;
  }
  .desktop-nav-buttons {
    display: none !important;
  }
  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #08162B;
    border-bottom: 1px solid #1B3357;
  }
  .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 {
    min-height: 48px !important;
    height: 48px !important;
  }
  .nav-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
  }
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 20px;
    gap: 16px;
    background-color: #08162B;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .main-nav.active {
    display: block;
    transform: translateX(0);
  }
  .nav-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 15px;
    gap: 16px;
  }
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 22, 43, 0.8);
    z-index: 999;
  }
  .overlay.active {
    display: block;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: 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;
}
