html, body { height: 100%; margin: 0; padding: 0; }
:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); font-family: 'Arial', sans-serif; color: #1F2D3D; background-color: #F4F7FB; overflow-x: hidden; }

a { text-decoration: none; color: #2F6BFF; }

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

.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); background-color: #FFFFFF; }

.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; background-color: #2F6BFF; color: #FFFFFF; }
.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: 24px; font-weight: bold; color: #FFFFFF; text-decoration: none; display: block; }
.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; background-color: #F4F7FB; border-bottom: 1px solid #D6E2FF; }

.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; background-color: #6FA3FF; }
.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; }
.main-nav .nav-link { display: block; padding: 0 15px; line-height: 52px; color: #FFFFFF; font-weight: bold; text-decoration: none; transition: background-color 0.3s ease; }
.main-nav .nav-link:hover { background-color: rgba(255, 255, 255, 0.1); }

.hamburger-menu { display: none; /* Hidden on desktop */ }
.overlay { display: none; /* Hidden on desktop */ }

/* Footer Styles */
.site-footer { background-color: #1F2D3D; color: #F4F7FB; padding: 40px 20px 20px; font-size: 14px; line-height: 1.6; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col { margin-bottom: 20px; /* For mobile fallback */ }
.footer-logo { font-size: 20px; font-weight: bold; color: #FFFFFF; text-decoration: none; display: block; margin-bottom: 15px; }
.footer-description { line-height: 1.6; word-wrap: break-word; overflow-wrap: break-word; color: #F4F7FB; }
.footer-col h3 { font-size: 16px; color: #FFFFFF; margin-bottom: 15px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li a { color: #F4F7FB; text-decoration: none; display: block; padding: 5px 0; transition: color 0.3s ease; }
.footer-nav li a:hover { color: #6FA3FF; }
.footer-bottom { max-width: 1200px; margin: 0 auto; text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #F4F7FB; }

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

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

    .site-header { box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); }

    .header-top { min-height: 60px !important; height: 60px !important; }
    .header-container { width: 100%; max-width: none; padding: 0 15px; position: relative; }

    .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; }
    .logo img { max-height: 56px !important; }

    .hamburger-menu {
        display: flex;
        width: 30px;
        height: 24px;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        position: relative;
        z-index: 1001;
        padding: 5px 0;
    }
    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #FFFFFF;
        transition: all 0.3s ease;
    }
    .hamburger-menu.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    .hamburger-menu.active span:nth-child(2) { opacity: 0; }
    .hamburger-menu.active span:nth-child(3) { transform: translateY(-10px) 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: 0 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 on mobile */
        position: fixed;
        top: 0; /* Will be adjusted by JS based on header-offset */
        left: 0;
        width: 75%; /* Adjust as needed */
        height: 100%;
        background-color: #6FA3FF;
        flex-direction: column;
        padding-top: var(--header-offset); /* Push content below fixed header + mobile buttons */
        transform: translateX(-100%); /* Slide out to the left */
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    .main-nav.active {
        display: flex; /* Show when active */
        transform: translateX(0); /* Slide in */
    }

    .nav-container { flex-direction: column; align-items: flex-start; padding: 20px; width: 100%; max-width: none; }
    .main-nav .nav-link { width: 100%; padding: 10px 0; line-height: normal; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 16px; }
    .main-nav .nav-link:last-child { border-bottom: none; }

    .overlay {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    .overlay.active { display: block; }

    body.no-scroll { overflow: hidden; }

    /* Footer Mobile Styles */
    .footer-top-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col h3 { text-align: center; }
    .footer-nav li a { text-align: center; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
