:root {
    --header-offset: 122px;
    --primary-color: #2F6BFF;
    --auxiliary-color: #6FA3FF;
    --card-bg: #FFFFFF;
    --background-color: #F4F7FB;
    --text-main: #1F2D3D;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding-top: var(--header-offset);
    background-color: var(--background-color);
    color: var(--text-main);
    line-height: 1.6;
    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.1);
    background-color: var(--card-bg);
}

.header-top {
    box-sizing: border-box;
    min-height: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--primary-color);
    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: 0 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--card-bg);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: #FFFFFF;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.btn:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.mobile-nav-buttons {
    box-sizing: border-box;
    display: none; /* Hidden by default on desktop */
    min-height: 48px;
    padding: 8px 0;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--card-bg);
    transition: all 0.3s ease;
}

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

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

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

.main-nav {
    box-sizing: border-box;
    min-height: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--auxiliary-color);
    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;
    gap: 25px;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--glow-color);
}

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

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: #E0E0E0;
    padding: 40px 0 20px 0;
    font-size: 14px;
}

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

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

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

.footer-description {
    margin-top: 0;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-heading {
    font-size: 18px;
    color: var(--card-bg);
    margin-top: 0;
    margin-bottom: 15px;
}

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

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

.footer-nav a {
    color: #E0E0E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-slot-anchor-inner {
    /* Placeholder for dynamic content, ensure it's visible */
    min-height: 1px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom .footer-legal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom .footer-legal li {
    margin-bottom: 0;
}

.footer-bottom .footer-legal a {
    font-size: 13px;
}

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

    .header-top {
        min-height: 60px;
        height: 60px;
        background-color: var(--primary-color);
    }

    .header-container {
        padding: 0 15px;
        position: relative;
        justify-content: space-between;
    }

    .logo {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 24px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100% - 100px); /* Account for hamburger menu */
    }

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

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

    .hamburger-menu {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    .mobile-nav-buttons {
        display: flex !important;
        min-height: 48px;
        height: auto; /* Allow height to adjust based on content */
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 8px 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;
        text-align: center;
    }

    .main-nav {
        min-height: 48px;
        height: calc(100% - var(--header-offset));
        position: fixed;
        top: var(--header-offset);
        left: 0;
        width: 80%;
        max-width: 300px;
        background-color: var(--card-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
        display: none; /* Initially hidden */
        z-index: 1000;
    }

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

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

    .nav-link {
        width: 100%;
        padding: 12px 20px;
        color: var(--text-main);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: var(--background-color);
        color: var(--primary-color);
    }

    .overlay.active {
        display: block;
    }

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

    .footer-col {
        align-items: center;
        text-align: center;
    }

    .footer-description {
        text-align: center;
    }

    .footer-heading {
        margin-bottom: 10px;
    }

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

    .footer-bottom {
        padding: 15px 15px 0 15px;
    }

    .footer-bottom .footer-legal {
        flex-direction: column;
        gap: 8px;
    }

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