:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy-color: #08162B;
    --header-offset: 122px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    margin: 0;
    color: var(--text-main);
    background-color: var(--deep-navy-color);
    padding-top: var(--header-offset);
    overflow-x: hidden;
    line-height: 1.6;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    background-color: var(--primary-color); /* Fallback for transparency issues */
}

.header-top {
    height: 68px;
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    box-sizing: border-box;
    overflow: hidden;
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    box-sizing: border-box;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.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;
    flex-shrink: 0;
}

.mobile-nav-buttons {
    box-sizing: border-box;
    display: none; /* Hidden on desktop by default */
    min-height: 48px;
    background-color: var(--card-bg);
}

.main-nav {
    height: 52px;
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    box-sizing: border-box;
    overflow: hidden;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    box-sizing: border-box;
}

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

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--gold-color);
}

.btn {
    background: var(--button-gradient);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    position: relative;
    width: 30px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1001;
    margin-right: 15px; /* Space between hamburger and logo on mobile */
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.hamburger-menu span:last-child {
    margin-bottom: 0;
}

.site-footer {
    background-color: var(--deep-navy-color);
    color: var(--text-secondary);
    padding: 40px 0 20px;
}

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

.footer-col h3 {
    color: var(--text-main);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold-color);
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
}

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

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

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--gold-color);
}

.footer-bottom {
    border-top: 1px solid var(--divider-color);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-slot-anchor-inner {
    min-height: 1px;
}

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

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

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

    .header-top {
        height: 60px !important;
    }

    .header-container {
        padding: 0 15px;
        max-width: none;
        width: 100%;
        position: relative;
        justify-content: flex-start; /* Align hamburger to start */
    }

    .logo {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        order: 2; /* Center logo */
        margin-left: -45px; /* Offset to visually center due to hamburger */
    }

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

    .hamburger-menu {
        display: block;
        order: 1; /* Place hamburger first */
        margin-right: 0; /* No margin on mobile */
    }

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

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

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

    .desktop-nav-buttons {
        display: none !important;
    }

    .mobile-nav-buttons {
        display: flex !important;
        min-height: 48px;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden;
        gap: 10px;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .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 {
        display: none; /* Hidden by default */
        position: fixed;
        top: var(--header-offset);
        left: 0;
        width: 80%;
        max-width: 300px;
        height: calc(100% - var(--header-offset));
        background-color: var(--deep-navy-color);
        flex-direction: column;
        padding: 20px;
        box-sizing: border-box;
        transform: translateX(-100%); /* Slide out of view */
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        height: calc(100vh - var(--header-offset)); /* Ensure it fills viewport height below header */
    }

    .main-nav.active {
        display: flex; /* Show when active */
        transform: translateX(0); /* Slide into view */
    }

    .nav-container {
        width: 100%;
        max-width: none;
        padding: 0;
        height: auto;
    }

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

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

    .main-nav a {
        display: block;
        padding: 10px 0;
        font-size: 18px;
        border-bottom: 1px solid var(--divider-color);
    }

    .main-nav li:last-child a {
        border-bottom: none;
    }

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

    .overlay.active {
        display: block;
    }

    body.no-scroll {
        overflow: hidden;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .footer-col {
        margin-bottom: 30px;
    }

    .footer-col:last-child {
        margin-bottom: 0;
    }
    .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;
  }
}
