:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); margin: 0; font-family: Arial, sans-serif; background-color: #08162B; color: #F3F8FF; overflow-x: hidden; }

.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.2);
    background-color: #113B7A; /* Default background for header */
    box-sizing: border-box;
}

.header-top {
    box-sizing: border-box;
    min-height: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #113B7A; /* Darker blue for top section */
    width: 100%;
}

.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: 20px;
    padding-right: 20px;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: #F3F8FF;
    font-weight: bold;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.main-nav {
    box-sizing: border-box;
    min-height: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #1D5FD1; /* Lighter blue for navigation */
    width: 100%;
}

.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;
    padding: 0 20px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.nav-list li a {
    color: #F3F8FF;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-list li a:hover {
    color: #F2C14E;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background-color: #F2C14E;
    transition: width 0.3s ease;
}

.nav-list li a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001; /* Above header */
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #F3F8FF;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
}

/* Footer styles */
.site-footer {
    background-color: #10233F; /* Card BG color */
    padding: 40px 20px;
    border-top: 1px solid #244D84; /* Border color */
    color: #AFC4E8; /* Secondary text color */
    box-sizing: border-box;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 30px auto;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    color: #F2C14E;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 15px;
    display: block;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-heading {
    font-size: 18px;
    color: #F3F8FF; /* Main text color */
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav li a {
    color: #AFC4E8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav li a:hover {
    color: #F2C14E;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1B3357; /* Divider color */
    font-size: 13px;
    color: #AFC4E8;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0;
}

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

    .header-top {
        min-height: 60px !important;
        height: 60px !important;
        position: relative;
        padding: 0 15px;
    }

    .header-container {
        width: 100%;
        max-width: none;
        padding: 0;
        justify-content: space-between;
    }

    .logo {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100% - 100px); /* Adjust to prevent overlap with hamburger */
    }

    .logo img {
        max-height: 56px !important;
    }

    .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: #113B7A; /* Match header-top background */
    }

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

    .hamburger-menu {
        display: block;
        margin-left: 0;
        position: relative;
        z-index: 1002;
    }

    .main-nav {
        min-height: 48px !important;
        height: 100vh; /* Full viewport height for mobile menu */
        width: 70%; /* Adjust as needed */
        position: fixed;
        top: var(--header-offset); /* Below header and mobile buttons */
        left: 0;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        background-color: #1D5FD1; /* Match main-nav desktop background */
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
        display: none; /* Default hidden */
        z-index: 1001; /* Above overlay */
        overflow-y: auto;
    }

    .main-nav.active {
        transform: translateX(0);
        display: flex;
    }

    .nav-container {
        width: 100%;
        max-width: none;
        padding: 0 15px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        height: auto;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list li a {
        display: block;
        padding: 10px 0;
        font-size: 16px;
    }
    .nav-list li a::after {
        left: 0;
        width: 0%;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-content img {
      max-width: 100% !important;
      height: auto !important;
      display: block;
    }
    .page-content {
      overflow-x: hidden;
      max-width: 100%;
    }
    body {
      overflow-x: hidden;
    }
}

/* Ensure no horizontal scroll caused by fixed header on mobile */
.site-header, .mobile-nav-buttons {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
